]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Merge branch 'master' of ssh://bacula.git.sourceforge.net/gitroot/bacula/bacula
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 BUILD_DIR
803 TOP_DIR
804 WIN32BUILDDIR
805 WIN32MAINDIR
806 WIN32TOPDIR
807 TRUEPRG
808 FALSEPRG
809 VERSION
810 DATE
811 LSMDATE
812 BACULA
813 post_host
814 CC
815 CFLAGS
816 LDFLAGS
817 CPPFLAGS
818 ac_ct_CC
819 EXEEXT
820 OBJEXT
821 CXX
822 CXXFLAGS
823 ac_ct_CXX
824 CPP
825 GREP
826 EGREP
827 INSTALL_PROGRAM
828 INSTALL_SCRIPT
829 INSTALL_DATA
830 MV
831 REMOVE
832 CP
833 SED
834 ECHO
835 CMP
836 TBL
837 AR
838 OPENSSL
839 MTX
840 DD
841 MKISOFS
842 PYTHON
843 GROWISOFS
844 DVDRWMEDIAINFO
845 DVDRWFORMAT
846 PKGCONFIG
847 QMAKE
848 QMAKEQT4
849 GMAKE
850 WXCONFIG
851 WXFLAGS
852 CDRECORD
853 PIDOF
854 AWK
855 ARFLAGS
856 MAKE_SHELL
857 LOCAL_LIBS
858 LOCAL_CFLAGS
859 LOCAL_LDFLAGS
860 LOCAL_DEFS
861 LIBTOOL
862 build
863 build_cpu
864 build_vendor
865 build_os
866 host
867 host_cpu
868 host_vendor
869 host_os
870 FGREP
871 LD
872 DUMPBIN
873 ac_ct_DUMPBIN
874 NM
875 LN_S
876 OBJDUMP
877 STRIP
878 RANLIB
879 lt_ECHO
880 DSYMUTIL
881 NMEDIT
882 LIPO
883 OTOOL
884 OTOOL64
885 CXXCPP
886 DEFAULT_OBJECT_TYPE
887 DEFAULT_ARCHIVE_TYPE
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
891 LIBTOOL_CLEAN_TARGET
892 QMAKE_LIBTOOL
893 INCLUDE_INSTALL_TARGET
894 INCLUDE_UNINSTALL_TARGET
895 HAVE_SUN_OS_TRUE
896 HAVE_SUN_OS_FALSE
897 HAVE_OSF1_OS_TRUE
898 HAVE_OSF1_OS_FALSE
899 HAVE_AIX_OS_TRUE
900 HAVE_AIX_OS_FALSE
901 HAVE_HPUX_OS_TRUE
902 HAVE_HPUX_OS_FALSE
903 HAVE_LINUX_OS_TRUE
904 HAVE_LINUX_OS_FALSE
905 HAVE_FREEBSD_OS_TRUE
906 HAVE_FREEBSD_OS_FALSE
907 HAVE_NETBSD_OS_TRUE
908 HAVE_NETBSD_OS_FALSE
909 HAVE_OPENBSD_OS_TRUE
910 HAVE_OPENBSD_OS_FALSE
911 HAVE_BSDI_OS_TRUE
912 HAVE_BSDI_OS_FALSE
913 HAVE_SGI_OS_TRUE
914 HAVE_SGI_OS_FALSE
915 HAVE_IRIX_OS_TRUE
916 HAVE_IRIX_OS_FALSE
917 HAVE_DARWIN_OS_TRUE
918 HAVE_DARWIN_OS_FALSE
919 SET_MAKE
920 MKINSTALLDIRS
921 USE_NLS
922 MSGFMT
923 GMSGFMT
924 XGETTEXT
925 MSGMERGE
926 INTL_MACOSX_LIBS
927 LIBICONV
928 LTLIBICONV
929 INTLLIBS
930 LIBINTL
931 LTLIBINTL
932 POSUB
933 GLIBC2
934 ALLOCA
935 GLIBC21
936 HAVE_POSIX_PRINTF
937 HAVE_ASPRINTF
938 HAVE_SNPRINTF
939 HAVE_WPRINTF
940 INTLBISON
941 BUILD_INCLUDED_LIBINTL
942 USE_INCLUDED_LIBINTL
943 CATOBJEXT
944 DATADIRNAME
945 INSTOBJEXT
946 GENCAT
947 INTLOBJS
948 INTL_LIBTOOL_SUFFIX_PREFIX
949 BAT_DIR
950 QWT_INC
951 QWT_LDFLAGS
952 QWT_LIB
953 QWT
954 WXCONS_CPPFLAGS
955 WXCONS_LDFLAGS
956 WX_DIR
957 TRAY_MONITOR_CPPFLAGS
958 TRAY_MONITOR_LDFLAGS
959 TRAY_MONITOR_DIR
960 TTOOL_LDFLAGS
961 STATIC_FD
962 STATIC_SD
963 STATIC_DIR
964 STATIC_CONS
965 STATIC_GNOME_CONS
966 STATIC_WX_CONS
967 ALL_DIRS
968 DIRD_DIR
969 DIR_TOOLS
970 STORED_DIR
971 CONS_INC
972 CONS_OBJ
973 CONS_SRC
974 CONS_LIBS
975 CONS_LDFLAGS
976 READLINE_SRC
977 PYTHON_LIBS
978 PYTHON_INCDIR
979 OPENSSL_LIBS
980 OPENSSL_INC
981 working_dir
982 archivedir
983 basename
984 hostname
985 scriptdir
986 bsrdir
987 logdir
988 plugindir
989 dump_email
990 job_email
991 smtp_host
992 piddir
993 subsysdir
994 baseport
995 dir_port
996 fd_port
997 sd_port
998 dir_password
999 fd_password
1000 sd_password
1001 mon_dir_password
1002 mon_fd_password
1003 mon_sd_password
1004 db_name
1005 db_user
1006 db_password
1007 db_port
1008 dir_user
1009 dir_group
1010 sd_user
1011 sd_group
1012 fd_user
1013 fd_group
1014 SBINPERM
1015 SQL_LFLAGS
1016 SQL_INCLUDE
1017 SQL_BINDIR
1018 DBI_DBD_DRIVERDIR
1019 uncomment_dbi
1020 DB_PROG
1021 DB_PROG_LIB
1022 cats
1023 DB_TYPE
1024 GETCONF
1025 XMKMF
1026 X_CFLAGS
1027 X_PRE_LIBS
1028 X_LIBS
1029 X_EXTRA_LIBS
1030 LIBOBJS
1031 CAP_LIBS
1032 FDLIBS
1033 DEBUG
1034 DINCLUDE
1035 DLIB
1036 DB_LIBS
1037 WCFLAGS
1038 WLDFLAGS
1039 WRAPLIBS
1040 OBJLIST
1041 TAPEDRIVE
1042 PSCMD
1043 WIN32
1044 MACOSX
1045 DISTNAME
1046 DISTVER
1047 LTLIBOBJS'
1048 ac_subst_files='MCOMMON'
1049       ac_precious_vars='build_alias
1050 host_alias
1051 target_alias
1052 CC
1053 CFLAGS
1054 LDFLAGS
1055 LIBS
1056 CPPFLAGS
1057 CXX
1058 CXXFLAGS
1059 CCC
1060 CPP
1061 WXCONFIG
1062 WXFLAGS
1063 CXXCPP
1064 XMKMF'
1065
1066
1067 # Initialize some variables set by options.
1068 ac_init_help=
1069 ac_init_version=false
1070 # The variables have the same names as the options, with
1071 # dashes changed to underlines.
1072 cache_file=/dev/null
1073 exec_prefix=NONE
1074 no_create=
1075 no_recursion=
1076 prefix=NONE
1077 program_prefix=NONE
1078 program_suffix=NONE
1079 program_transform_name=s,x,x,
1080 silent=
1081 site=
1082 srcdir=
1083 verbose=
1084 x_includes=NONE
1085 x_libraries=NONE
1086
1087 # Installation directory options.
1088 # These are left unexpanded so users can "make install exec_prefix=/foo"
1089 # and all the variables that are supposed to be based on exec_prefix
1090 # by default will actually change.
1091 # Use braces instead of parens because sh, perl, etc. also accept them.
1092 # (The list follows the same order as the GNU Coding Standards.)
1093 bindir='${exec_prefix}/bin'
1094 sbindir='${exec_prefix}/sbin'
1095 libexecdir='${exec_prefix}/libexec'
1096 datarootdir='${prefix}/share'
1097 datadir='${datarootdir}'
1098 sysconfdir='${prefix}/etc'
1099 sharedstatedir='${prefix}/com'
1100 localstatedir='${prefix}/var'
1101 includedir='${prefix}/include'
1102 oldincludedir='/usr/include'
1103 docdir='${datarootdir}/doc/${PACKAGE}'
1104 infodir='${datarootdir}/info'
1105 htmldir='${docdir}'
1106 dvidir='${docdir}'
1107 pdfdir='${docdir}'
1108 psdir='${docdir}'
1109 libdir='${exec_prefix}/lib'
1110 localedir='${datarootdir}/locale'
1111 mandir='${datarootdir}/man'
1112
1113 ac_prev=
1114 ac_dashdash=
1115 for ac_option
1116 do
1117   # If the previous option needs an argument, assign it.
1118   if test -n "$ac_prev"; then
1119     eval $ac_prev=\$ac_option
1120     ac_prev=
1121     continue
1122   fi
1123
1124   case $ac_option in
1125   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1126   *)    ac_optarg=yes ;;
1127   esac
1128
1129   # Accept the important Cygnus configure options, so we can diagnose typos.
1130
1131   case $ac_dashdash$ac_option in
1132   --)
1133     ac_dashdash=yes ;;
1134
1135   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1136     ac_prev=bindir ;;
1137   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1138     bindir=$ac_optarg ;;
1139
1140   -build | --build | --buil | --bui | --bu)
1141     ac_prev=build_alias ;;
1142   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1143     build_alias=$ac_optarg ;;
1144
1145   -cache-file | --cache-file | --cache-fil | --cache-fi \
1146   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1147     ac_prev=cache_file ;;
1148   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1149   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1150     cache_file=$ac_optarg ;;
1151
1152   --config-cache | -C)
1153     cache_file=config.cache ;;
1154
1155   -datadir | --datadir | --datadi | --datad)
1156     ac_prev=datadir ;;
1157   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1158     datadir=$ac_optarg ;;
1159
1160   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1161   | --dataroo | --dataro | --datar)
1162     ac_prev=datarootdir ;;
1163   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1164   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1165     datarootdir=$ac_optarg ;;
1166
1167   -disable-* | --disable-*)
1168     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1169     # Reject names that are not valid shell variable names.
1170     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1172    { (exit 1); exit 1; }; }
1173     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1174     eval enable_$ac_feature=no ;;
1175
1176   -docdir | --docdir | --docdi | --doc | --do)
1177     ac_prev=docdir ;;
1178   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1179     docdir=$ac_optarg ;;
1180
1181   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1182     ac_prev=dvidir ;;
1183   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1184     dvidir=$ac_optarg ;;
1185
1186   -enable-* | --enable-*)
1187     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1191    { (exit 1); exit 1; }; }
1192     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1193     eval enable_$ac_feature=\$ac_optarg ;;
1194
1195   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1196   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1197   | --exec | --exe | --ex)
1198     ac_prev=exec_prefix ;;
1199   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1200   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1201   | --exec=* | --exe=* | --ex=*)
1202     exec_prefix=$ac_optarg ;;
1203
1204   -gas | --gas | --ga | --g)
1205     # Obsolete; use --with-gas.
1206     with_gas=yes ;;
1207
1208   -help | --help | --hel | --he | -h)
1209     ac_init_help=long ;;
1210   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1211     ac_init_help=recursive ;;
1212   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1213     ac_init_help=short ;;
1214
1215   -host | --host | --hos | --ho)
1216     ac_prev=host_alias ;;
1217   -host=* | --host=* | --hos=* | --ho=*)
1218     host_alias=$ac_optarg ;;
1219
1220   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1221     ac_prev=htmldir ;;
1222   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1223   | --ht=*)
1224     htmldir=$ac_optarg ;;
1225
1226   -includedir | --includedir | --includedi | --included | --include \
1227   | --includ | --inclu | --incl | --inc)
1228     ac_prev=includedir ;;
1229   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1230   | --includ=* | --inclu=* | --incl=* | --inc=*)
1231     includedir=$ac_optarg ;;
1232
1233   -infodir | --infodir | --infodi | --infod | --info | --inf)
1234     ac_prev=infodir ;;
1235   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1236     infodir=$ac_optarg ;;
1237
1238   -libdir | --libdir | --libdi | --libd)
1239     ac_prev=libdir ;;
1240   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1241     libdir=$ac_optarg ;;
1242
1243   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1244   | --libexe | --libex | --libe)
1245     ac_prev=libexecdir ;;
1246   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1247   | --libexe=* | --libex=* | --libe=*)
1248     libexecdir=$ac_optarg ;;
1249
1250   -localedir | --localedir | --localedi | --localed | --locale)
1251     ac_prev=localedir ;;
1252   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1253     localedir=$ac_optarg ;;
1254
1255   -localstatedir | --localstatedir | --localstatedi | --localstated \
1256   | --localstate | --localstat | --localsta | --localst | --locals)
1257     ac_prev=localstatedir ;;
1258   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1259   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1260     localstatedir=$ac_optarg ;;
1261
1262   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1263     ac_prev=mandir ;;
1264   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1265     mandir=$ac_optarg ;;
1266
1267   -nfp | --nfp | --nf)
1268     # Obsolete; use --without-fp.
1269     with_fp=no ;;
1270
1271   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1272   | --no-cr | --no-c | -n)
1273     no_create=yes ;;
1274
1275   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1276   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1277     no_recursion=yes ;;
1278
1279   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1280   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1281   | --oldin | --oldi | --old | --ol | --o)
1282     ac_prev=oldincludedir ;;
1283   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1284   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1285   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1286     oldincludedir=$ac_optarg ;;
1287
1288   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1289     ac_prev=prefix ;;
1290   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1291     prefix=$ac_optarg ;;
1292
1293   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1294   | --program-pre | --program-pr | --program-p)
1295     ac_prev=program_prefix ;;
1296   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1297   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1298     program_prefix=$ac_optarg ;;
1299
1300   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1301   | --program-suf | --program-su | --program-s)
1302     ac_prev=program_suffix ;;
1303   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1304   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1305     program_suffix=$ac_optarg ;;
1306
1307   -program-transform-name | --program-transform-name \
1308   | --program-transform-nam | --program-transform-na \
1309   | --program-transform-n | --program-transform- \
1310   | --program-transform | --program-transfor \
1311   | --program-transfo | --program-transf \
1312   | --program-trans | --program-tran \
1313   | --progr-tra | --program-tr | --program-t)
1314     ac_prev=program_transform_name ;;
1315   -program-transform-name=* | --program-transform-name=* \
1316   | --program-transform-nam=* | --program-transform-na=* \
1317   | --program-transform-n=* | --program-transform-=* \
1318   | --program-transform=* | --program-transfor=* \
1319   | --program-transfo=* | --program-transf=* \
1320   | --program-trans=* | --program-tran=* \
1321   | --progr-tra=* | --program-tr=* | --program-t=*)
1322     program_transform_name=$ac_optarg ;;
1323
1324   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1325     ac_prev=pdfdir ;;
1326   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1327     pdfdir=$ac_optarg ;;
1328
1329   -psdir | --psdir | --psdi | --psd | --ps)
1330     ac_prev=psdir ;;
1331   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1332     psdir=$ac_optarg ;;
1333
1334   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1335   | -silent | --silent | --silen | --sile | --sil)
1336     silent=yes ;;
1337
1338   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1339     ac_prev=sbindir ;;
1340   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1341   | --sbi=* | --sb=*)
1342     sbindir=$ac_optarg ;;
1343
1344   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1345   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1346   | --sharedst | --shareds | --shared | --share | --shar \
1347   | --sha | --sh)
1348     ac_prev=sharedstatedir ;;
1349   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1350   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1351   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1352   | --sha=* | --sh=*)
1353     sharedstatedir=$ac_optarg ;;
1354
1355   -site | --site | --sit)
1356     ac_prev=site ;;
1357   -site=* | --site=* | --sit=*)
1358     site=$ac_optarg ;;
1359
1360   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1361     ac_prev=srcdir ;;
1362   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1363     srcdir=$ac_optarg ;;
1364
1365   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1366   | --syscon | --sysco | --sysc | --sys | --sy)
1367     ac_prev=sysconfdir ;;
1368   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1369   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1370     sysconfdir=$ac_optarg ;;
1371
1372   -target | --target | --targe | --targ | --tar | --ta | --t)
1373     ac_prev=target_alias ;;
1374   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1375     target_alias=$ac_optarg ;;
1376
1377   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1378     verbose=yes ;;
1379
1380   -version | --version | --versio | --versi | --vers | -V)
1381     ac_init_version=: ;;
1382
1383   -with-* | --with-*)
1384     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1385     # Reject names that are not valid shell variable names.
1386     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387       { echo "$as_me: error: invalid package name: $ac_package" >&2
1388    { (exit 1); exit 1; }; }
1389     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1390     eval with_$ac_package=\$ac_optarg ;;
1391
1392   -without-* | --without-*)
1393     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1394     # Reject names that are not valid shell variable names.
1395     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396       { echo "$as_me: error: invalid package name: $ac_package" >&2
1397    { (exit 1); exit 1; }; }
1398     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1399     eval with_$ac_package=no ;;
1400
1401   --x)
1402     # Obsolete; use --with-x.
1403     with_x=yes ;;
1404
1405   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1406   | --x-incl | --x-inc | --x-in | --x-i)
1407     ac_prev=x_includes ;;
1408   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1409   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1410     x_includes=$ac_optarg ;;
1411
1412   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1413   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1414     ac_prev=x_libraries ;;
1415   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1416   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1417     x_libraries=$ac_optarg ;;
1418
1419   -*) { echo "$as_me: error: unrecognized option: $ac_option
1420 Try \`$0 --help' for more information." >&2
1421    { (exit 1); exit 1; }; }
1422     ;;
1423
1424   *=*)
1425     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1426     # Reject names that are not valid shell variable names.
1427     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1428       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1429    { (exit 1); exit 1; }; }
1430     eval $ac_envvar=\$ac_optarg
1431     export $ac_envvar ;;
1432
1433   *)
1434     # FIXME: should be removed in autoconf 3.0.
1435     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1436     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1437       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1438     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1439     ;;
1440
1441   esac
1442 done
1443
1444 if test -n "$ac_prev"; then
1445   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1446   { echo "$as_me: error: missing argument to $ac_option" >&2
1447    { (exit 1); exit 1; }; }
1448 fi
1449
1450 # Be sure to have absolute directory names.
1451 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452                 datadir sysconfdir sharedstatedir localstatedir includedir \
1453                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454                 libdir localedir mandir
1455 do
1456   eval ac_val=\$$ac_var
1457   case $ac_val in
1458     [\\/$]* | ?:[\\/]* )  continue;;
1459     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1460   esac
1461   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1462    { (exit 1); exit 1; }; }
1463 done
1464
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1468 build=$build_alias
1469 host=$host_alias
1470 target=$target_alias
1471
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x; then
1474   if test "x$build_alias" = x; then
1475     cross_compiling=maybe
1476     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1477     If a cross compiler is detected then cross compile mode will be used." >&2
1478   elif test "x$build_alias" != "x$host_alias"; then
1479     cross_compiling=yes
1480   fi
1481 fi
1482
1483 ac_tool_prefix=
1484 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1485
1486 test "$silent" = yes && exec 6>/dev/null
1487
1488
1489 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di=`ls -di .` &&
1491 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1492   { echo "$as_me: error: Working directory cannot be determined" >&2
1493    { (exit 1); exit 1; }; }
1494 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1495   { echo "$as_me: error: pwd does not report name of working directory" >&2
1496    { (exit 1); exit 1; }; }
1497
1498
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501   ac_srcdir_defaulted=yes
1502   # Try the directory containing this script, then the parent directory.
1503   ac_confdir=`$as_dirname -- "$0" ||
1504 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505          X"$0" : 'X\(//\)[^/]' \| \
1506          X"$0" : 'X\(//\)$' \| \
1507          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1508 echo X"$0" |
1509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\/\)[^/].*/{
1514             s//\1/
1515             q
1516           }
1517           /^X\(\/\/\)$/{
1518             s//\1/
1519             q
1520           }
1521           /^X\(\/\).*/{
1522             s//\1/
1523             q
1524           }
1525           s/.*/./; q'`
1526   srcdir=$ac_confdir
1527   if test ! -r "$srcdir/$ac_unique_file"; then
1528     srcdir=..
1529   fi
1530 else
1531   ac_srcdir_defaulted=no
1532 fi
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1536    { (exit 1); exit 1; }; }
1537 fi
1538 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1539 ac_abs_confdir=`(
1540         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1541    { (exit 1); exit 1; }; }
1542         pwd)`
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1545   srcdir=.
1546 fi
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1550 case $srcdir in
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1552 esac
1553 for ac_var in $ac_precious_vars; do
1554   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555   eval ac_env_${ac_var}_value=\$${ac_var}
1556   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558 done
1559
1560 #
1561 # Report the --help message.
1562 #
1563 if test "$ac_init_help" = "long"; then
1564   # Omit some internal or obsolete options to make the list less imposing.
1565   # This message is too long to be a string in the A/UX 3.1 sh.
1566   cat <<_ACEOF
1567 \`configure' configures this package to adapt to many kinds of systems.
1568
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1570
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE.  See below for descriptions of some of the useful variables.
1573
1574 Defaults for the options are specified in brackets.
1575
1576 Configuration:
1577   -h, --help              display this help and exit
1578       --help=short        display options specific to this package
1579       --help=recursive    display the short help of all the included packages
1580   -V, --version           display version information and exit
1581   -q, --quiet, --silent   do not print \`checking...' messages
1582       --cache-file=FILE   cache test results in FILE [disabled]
1583   -C, --config-cache      alias for \`--cache-file=config.cache'
1584   -n, --no-create         do not create output files
1585       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1586
1587 Installation directories:
1588   --prefix=PREFIX         install architecture-independent files in PREFIX
1589                           [$ac_default_prefix]
1590   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1591                           [PREFIX]
1592
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1597
1598 For better control, use the options below.
1599
1600 Fine tuning of the installation directories:
1601   --bindir=DIR           user executables [EPREFIX/bin]
1602   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1603   --libexecdir=DIR       program executables [EPREFIX/libexec]
1604   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1605   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1606   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1607   --libdir=DIR           object code libraries [EPREFIX/lib]
1608   --includedir=DIR       C header files [PREFIX/include]
1609   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1610   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1611   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1612   --infodir=DIR          info documentation [DATAROOTDIR/info]
1613   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1614   --mandir=DIR           man documentation [DATAROOTDIR/man]
1615   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1616   --htmldir=DIR          html documentation [DOCDIR]
1617   --dvidir=DIR           dvi documentation [DOCDIR]
1618   --pdfdir=DIR           pdf documentation [DOCDIR]
1619   --psdir=DIR            ps documentation [DOCDIR]
1620 _ACEOF
1621
1622   cat <<\_ACEOF
1623
1624 X features:
1625   --x-includes=DIR    X include files are in DIR
1626   --x-libraries=DIR   X library files are in DIR
1627
1628 System types:
1629   --build=BUILD     configure for building on BUILD [guessed]
1630   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1631 _ACEOF
1632 fi
1633
1634 if test -n "$ac_init_help"; then
1635
1636   cat <<\_ACEOF
1637
1638 Optional Features:
1639   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1640   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1641   --enable-libtool        enable building using GNU libtool [default=yes]
1642   --enable-shared[=PKGS]  build shared libraries [default=yes]
1643   --enable-static[=PKGS]  build static libraries [default=no]
1644   --enable-fast-install[=PKGS]
1645                           optimize for fast installation [default=yes]
1646   --disable-libtool-lock  avoid locking (might break parallel builds)
1647   --enable-includes       enable installing of include files [default=no]
1648   --disable-nls           do not use Native Language Support
1649   --disable-rpath         do not hardcode runtime library paths
1650   --enable-gnome          enable build of bgnome-console GUI [default=no]
1651   --enable-bat            enable build of bat Qt4 GUI [default=no]
1652   --enable-bwx-console    enable build of wxWidgets console [default=no]
1653   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1654                           KDE [default=no]
1655   --enable-smartalloc     enable smartalloc debugging support [default=no]
1656   --enable-lockmgr        enable lock manager support [default=no]
1657   --enable-static-tools   enable static tape tools [default=no]
1658   --enable-static-fd      enable static File daemon [default=no]
1659   --enable-static-sd      enable static Storage daemon [default=no]
1660   --enable-static-dir     enable static Director [default=no]
1661   --enable-static-cons    enable static Console [default=no]
1662   --enable-client-only    build client (File daemon) only [default=no]
1663   --enable-build-dird     enable building of dird (Director) [default=yes]
1664   --enable-build-stored   enable building of stored (Storage daemon)
1665                           [default=yes]
1666   --disable-conio         disable conio support [default=no]
1667   --enable-ipv6           enable ipv6 support [default=yes]
1668   --disable-readline      disable readline support [default=yes]
1669   --enable-batch-insert   enable the DB batch insert code [default=no]
1670   --disable-largefile     omit support for large files
1671   --disable-acl           disable acl support [default=auto]
1672   --disable-xattr         disable xattr support [default=auto]
1673
1674 Optional Packages:
1675   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1676   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1677   --with-pic              try to use only PIC/non-PIC objects [default=use
1678                           both]
1679   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1680   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1681   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1682   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1683   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1684   --without-libintl-prefix     don't search for libintl in includedir and libdir
1685   --with-included-gettext use the GNU gettext library included here
1686   --with-qwt[=DIR]        specify qwt library directory
1687   --with-readline[=DIR]   specify readline library directory
1688   --with-python[=DIR]     Include Python support. DIR is the Python base
1689                           install directory, default is to search through a
1690                           number of common places for the Python files.
1691   --with-tcp-wrappers[=DIR]
1692                           enable tcpwrappers support
1693   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1694   --with-working-dir=PATH specify path of Bacula working directory
1695   --with-archivedir=PATH  specify path of SD archive directory
1696   --with-basename=RESNAME specify base resource name for daemons
1697   --with-hostname=RESNAME specify host name for daemons
1698   --with-scriptdir=PATH   specify path of Bacula scripts directory
1699   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1700   --with-logdir=PATH      specify path of Bacula logs directory
1701   --with-plugindir=PATH   specify path of Bacula plugins directory
1702   --with-dump-email=EMAIL dump email address
1703   --with-job-email=EMAIL  job output email address
1704   --with-smtp-host=HOST   SMTP mail host address
1705   --with-pid-dir=PATH     specify location of Bacula pid files
1706   --with-subsys-dir=PATH  specify location of Bacula subsys file
1707   --with-baseport=PORT    specify base port address for daemons
1708   --with-dir-password=PASSWORD
1709                           specify Director's password
1710   --with-fd-password=PASSWORD
1711                           specify Client's password
1712   --with-sd-password=PASSWORD
1713                           specify Storage daemon's password
1714   --with-mon-dir-password=PASSWORD
1715                           specify Director's password used by the monitor
1716   --with-mon-fd-password=PASSWORD
1717                           specify Client's password used by the monitor
1718   --with-mon-sd-password=PASSWORD
1719                           specify Storage daemon's password used by the
1720                           monitor
1721   --with-db-name=DBNAME   specify database name [default=bacula]
1722   --with-db-user=UNAME    specify database user [default=bacula]
1723   --with-db-password=PWD  specify database password [default=*none*]
1724   --with-db-port=DBPORT   specify a database port [default=null]
1725   --with-dir-user=USER    specify user for Director daemon
1726   --with-dir-group=GROUP  specify group for Director daemon
1727   --with-sd-user=USER     specify user for Storage daemon
1728   --with-sd-group=GROUP   specify group for Storage daemon
1729   --with-fd-user=USER     specify user for File daemon
1730   --with-fd-group=GROUP   specify group for File daemon
1731   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1732   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1733                           base install directory, [default=/usr/local/pgsql]
1734   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1735                           directory, default is to search through a number of
1736                           common places for the MySQL files.
1737   --with-embedded-mysql[=DIR]
1738                           Include MySQL support. DIR is the MySQL base install
1739                           directory, default is to search through a number of
1740                           common places for the MySQL files.
1741   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1742                           install directory, default is to search through a
1743                           number of common places for the SQLite3 files.
1744   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1745                           directory, default is to search through a number of
1746                           common places for the DBI files.
1747   --with-dbi-driver[=DRIVER]
1748                           Suport for DBI driver. DRIVER is the one DBI driver
1749                           like Mysql, Postgresql, others. Default is to not
1750                           configure any driver.
1751   --with-x                use the X Window System
1752
1753 Some influential environment variables:
1754   CC          C compiler command
1755   CFLAGS      C compiler flags
1756   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1757               nonstandard directory <lib dir>
1758   LIBS        libraries to pass to the linker, e.g. -l<library>
1759   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1760               you have headers in a nonstandard directory <include dir>
1761   CXX         C++ compiler command
1762   CXXFLAGS    C++ compiler flags
1763   CPP         C preprocessor
1764   WXCONFIG    wx-config command. On some systems, you must set it to
1765               wx-config-2.6 to use wxWidgets 2.6.
1766   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1767   CXXCPP      C++ preprocessor
1768   XMKMF       Path to xmkmf, Makefile generator for X Window System
1769
1770 Use these variables to override the choices made by `configure' or to help
1771 it to find libraries and programs with nonstandard names/locations.
1772
1773 _ACEOF
1774 ac_status=$?
1775 fi
1776
1777 if test "$ac_init_help" = "recursive"; then
1778   # If there are subdirs, report their specific --help.
1779   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1780     test -d "$ac_dir" || continue
1781     ac_builddir=.
1782
1783 case "$ac_dir" in
1784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1785 *)
1786   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1787   # A ".." for each directory in $ac_dir_suffix.
1788   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1789   case $ac_top_builddir_sub in
1790   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1791   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1792   esac ;;
1793 esac
1794 ac_abs_top_builddir=$ac_pwd
1795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1796 # for backward compatibility:
1797 ac_top_builddir=$ac_top_build_prefix
1798
1799 case $srcdir in
1800   .)  # We are building in place.
1801     ac_srcdir=.
1802     ac_top_srcdir=$ac_top_builddir_sub
1803     ac_abs_top_srcdir=$ac_pwd ;;
1804   [\\/]* | ?:[\\/]* )  # Absolute name.
1805     ac_srcdir=$srcdir$ac_dir_suffix;
1806     ac_top_srcdir=$srcdir
1807     ac_abs_top_srcdir=$srcdir ;;
1808   *) # Relative name.
1809     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1810     ac_top_srcdir=$ac_top_build_prefix$srcdir
1811     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1812 esac
1813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1814
1815     cd "$ac_dir" || { ac_status=$?; continue; }
1816     # Check for guested configure.
1817     if test -f "$ac_srcdir/configure.gnu"; then
1818       echo &&
1819       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1820     elif test -f "$ac_srcdir/configure"; then
1821       echo &&
1822       $SHELL "$ac_srcdir/configure" --help=recursive
1823     else
1824       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1825     fi || ac_status=$?
1826     cd "$ac_pwd" || { ac_status=$?; break; }
1827   done
1828 fi
1829
1830 test -n "$ac_init_help" && exit $ac_status
1831 if $ac_init_version; then
1832   cat <<\_ACEOF
1833 configure
1834 generated by GNU Autoconf 2.61
1835
1836 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1837 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1838 This configure script is free software; the Free Software Foundation
1839 gives unlimited permission to copy, distribute and modify it.
1840 _ACEOF
1841   exit
1842 fi
1843 cat >config.log <<_ACEOF
1844 This file contains any messages produced by compilers while
1845 running configure, to aid debugging if configure makes a mistake.
1846
1847 It was created by $as_me, which was
1848 generated by GNU Autoconf 2.61.  Invocation command line was
1849
1850   $ $0 $@
1851
1852 _ACEOF
1853 exec 5>>config.log
1854 {
1855 cat <<_ASUNAME
1856 ## --------- ##
1857 ## Platform. ##
1858 ## --------- ##
1859
1860 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1861 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1862 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1863 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1864 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1865
1866 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1867 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1868
1869 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1870 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1871 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1872 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1873 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1874 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1875 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1876
1877 _ASUNAME
1878
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882   IFS=$as_save_IFS
1883   test -z "$as_dir" && as_dir=.
1884   echo "PATH: $as_dir"
1885 done
1886 IFS=$as_save_IFS
1887
1888 } >&5
1889
1890 cat >&5 <<_ACEOF
1891
1892
1893 ## ----------- ##
1894 ## Core tests. ##
1895 ## ----------- ##
1896
1897 _ACEOF
1898
1899
1900 # Keep a trace of the command line.
1901 # Strip out --no-create and --no-recursion so they do not pile up.
1902 # Strip out --silent because we don't want to record it for future runs.
1903 # Also quote any args containing shell meta-characters.
1904 # Make two passes to allow for proper duplicate-argument suppression.
1905 ac_configure_args=
1906 ac_configure_args0=
1907 ac_configure_args1=
1908 ac_must_keep_next=false
1909 for ac_pass in 1 2
1910 do
1911   for ac_arg
1912   do
1913     case $ac_arg in
1914     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1915     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1916     | -silent | --silent | --silen | --sile | --sil)
1917       continue ;;
1918     *\'*)
1919       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1920     esac
1921     case $ac_pass in
1922     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1923     2)
1924       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1925       if test $ac_must_keep_next = true; then
1926         ac_must_keep_next=false # Got value, back to normal.
1927       else
1928         case $ac_arg in
1929           *=* | --config-cache | -C | -disable-* | --disable-* \
1930           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1931           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1932           | -with-* | --with-* | -without-* | --without-* | --x)
1933             case "$ac_configure_args0 " in
1934               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1935             esac
1936             ;;
1937           -* ) ac_must_keep_next=true ;;
1938         esac
1939       fi
1940       ac_configure_args="$ac_configure_args '$ac_arg'"
1941       ;;
1942     esac
1943   done
1944 done
1945 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1946 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1947
1948 # When interrupted or exit'd, cleanup temporary files, and complete
1949 # config.log.  We remove comments because anyway the quotes in there
1950 # would cause problems or look ugly.
1951 # WARNING: Use '\'' to represent an apostrophe within the trap.
1952 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1953 trap 'exit_status=$?
1954   # Save into config.log some information that might help in debugging.
1955   {
1956     echo
1957
1958     cat <<\_ASBOX
1959 ## ---------------- ##
1960 ## Cache variables. ##
1961 ## ---------------- ##
1962 _ASBOX
1963     echo
1964     # The following way of writing the cache mishandles newlines in values,
1965 (
1966   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1967     eval ac_val=\$$ac_var
1968     case $ac_val in #(
1969     *${as_nl}*)
1970       case $ac_var in #(
1971       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1972 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1973       esac
1974       case $ac_var in #(
1975       _ | IFS | as_nl) ;; #(
1976       *) $as_unset $ac_var ;;
1977       esac ;;
1978     esac
1979   done
1980   (set) 2>&1 |
1981     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1982     *${as_nl}ac_space=\ *)
1983       sed -n \
1984         "s/'\''/'\''\\\\'\'''\''/g;
1985           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1986       ;; #(
1987     *)
1988       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1989       ;;
1990     esac |
1991     sort
1992 )
1993     echo
1994
1995     cat <<\_ASBOX
1996 ## ----------------- ##
1997 ## Output variables. ##
1998 ## ----------------- ##
1999 _ASBOX
2000     echo
2001     for ac_var in $ac_subst_vars
2002     do
2003       eval ac_val=\$$ac_var
2004       case $ac_val in
2005       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006       esac
2007       echo "$ac_var='\''$ac_val'\''"
2008     done | sort
2009     echo
2010
2011     if test -n "$ac_subst_files"; then
2012       cat <<\_ASBOX
2013 ## ------------------- ##
2014 ## File substitutions. ##
2015 ## ------------------- ##
2016 _ASBOX
2017       echo
2018       for ac_var in $ac_subst_files
2019       do
2020         eval ac_val=\$$ac_var
2021         case $ac_val in
2022         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2023         esac
2024         echo "$ac_var='\''$ac_val'\''"
2025       done | sort
2026       echo
2027     fi
2028
2029     if test -s confdefs.h; then
2030       cat <<\_ASBOX
2031 ## ----------- ##
2032 ## confdefs.h. ##
2033 ## ----------- ##
2034 _ASBOX
2035       echo
2036       cat confdefs.h
2037       echo
2038     fi
2039     test "$ac_signal" != 0 &&
2040       echo "$as_me: caught signal $ac_signal"
2041     echo "$as_me: exit $exit_status"
2042   } >&5
2043   rm -f core *.core core.conftest.* &&
2044     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2045     exit $exit_status
2046 ' 0
2047 for ac_signal in 1 2 13 15; do
2048   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2049 done
2050 ac_signal=0
2051
2052 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2053 rm -f -r conftest* confdefs.h
2054
2055 # Predefined preprocessor variables.
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_NAME "$PACKAGE_NAME"
2059 _ACEOF
2060
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2064 _ACEOF
2065
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2069 _ACEOF
2070
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_STRING "$PACKAGE_STRING"
2074 _ACEOF
2075
2076
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2079 _ACEOF
2080
2081
2082 # Let the site file select an alternate cache file if it wants to.
2083 # Prefer explicitly selected file to automatically selected ones.
2084 if test -n "$CONFIG_SITE"; then
2085   set x "$CONFIG_SITE"
2086 elif test "x$prefix" != xNONE; then
2087   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2088 else
2089   set x "$ac_default_prefix/share/config.site" \
2090         "$ac_default_prefix/etc/config.site"
2091 fi
2092 shift
2093 for ac_site_file
2094 do
2095   if test -r "$ac_site_file"; then
2096     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2097 echo "$as_me: loading site script $ac_site_file" >&6;}
2098     sed 's/^/| /' "$ac_site_file" >&5
2099     . "$ac_site_file"
2100   fi
2101 done
2102
2103 if test -r "$cache_file"; then
2104   # Some versions of bash will fail to source /dev/null (special
2105   # files actually), so we avoid doing that.
2106   if test -f "$cache_file"; then
2107     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2108 echo "$as_me: loading cache $cache_file" >&6;}
2109     case $cache_file in
2110       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2111       *)                      . "./$cache_file";;
2112     esac
2113   fi
2114 else
2115   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2116 echo "$as_me: creating cache $cache_file" >&6;}
2117   >$cache_file
2118 fi
2119
2120 # Check that the precious variables saved in the cache have kept the same
2121 # value.
2122 ac_cache_corrupted=false
2123 for ac_var in $ac_precious_vars; do
2124   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2125   eval ac_new_set=\$ac_env_${ac_var}_set
2126   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2127   eval ac_new_val=\$ac_env_${ac_var}_value
2128   case $ac_old_set,$ac_new_set in
2129     set,)
2130       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2131 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2132       ac_cache_corrupted=: ;;
2133     ,set)
2134       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2135 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2136       ac_cache_corrupted=: ;;
2137     ,);;
2138     *)
2139       if test "x$ac_old_val" != "x$ac_new_val"; then
2140         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2141 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2142         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2143 echo "$as_me:   former value:  $ac_old_val" >&2;}
2144         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2145 echo "$as_me:   current value: $ac_new_val" >&2;}
2146         ac_cache_corrupted=:
2147       fi;;
2148   esac
2149   # Pass precious variables to config.status.
2150   if test "$ac_new_set" = set; then
2151     case $ac_new_val in
2152     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2153     *) ac_arg=$ac_var=$ac_new_val ;;
2154     esac
2155     case " $ac_configure_args " in
2156       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2157       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2158     esac
2159   fi
2160 done
2161 if $ac_cache_corrupted; then
2162   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2163 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2164   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2165 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2166    { (exit 1); exit 1; }; }
2167 fi
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185 ac_ext=c
2186 ac_cpp='$CPP $CPPFLAGS'
2187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190
2191
2192 BUILD_DIR=`pwd`
2193 cd ..
2194 TOP_DIR=`pwd`
2195 cd ${BUILD_DIR}
2196
2197
2198 ac_aux_dir=
2199 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2200   if test -f "$ac_dir/install-sh"; then
2201     ac_aux_dir=$ac_dir
2202     ac_install_sh="$ac_aux_dir/install-sh -c"
2203     break
2204   elif test -f "$ac_dir/install.sh"; then
2205     ac_aux_dir=$ac_dir
2206     ac_install_sh="$ac_aux_dir/install.sh -c"
2207     break
2208   elif test -f "$ac_dir/shtool"; then
2209     ac_aux_dir=$ac_dir
2210     ac_install_sh="$ac_aux_dir/shtool install -c"
2211     break
2212   fi
2213 done
2214 if test -z "$ac_aux_dir"; then
2215   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2216 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2217    { (exit 1); exit 1; }; }
2218 fi
2219
2220 # These three variables are undocumented and unsupported,
2221 # and are intended to be withdrawn in a future Autoconf release.
2222 # They can cause serious problems if a builder's source tree is in a directory
2223 # whose full name contains unusual characters.
2224 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2225 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2226 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2227
2228
2229 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2230
2231
2232 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2233 WIN32MAINDIR=${BUILD_DIR}
2234 WIN32TOPDIR=${TOP_DIR}
2235
2236
2237
2238
2239
2240
2241
2242 for ac_prog in true
2243 do
2244   # Extract the first word of "$ac_prog", so it can be a program name with args.
2245 set dummy $ac_prog; ac_word=$2
2246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2249   echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251   case $TRUEPRG in
2252   [\\/]* | ?:[\\/]*)
2253   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2254   ;;
2255   *)
2256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259   IFS=$as_save_IFS
2260   test -z "$as_dir" && as_dir=.
2261   for ac_exec_ext in '' $ac_executable_extensions; do
2262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265     break 2
2266   fi
2267 done
2268 done
2269 IFS=$as_save_IFS
2270
2271   ;;
2272 esac
2273 fi
2274 TRUEPRG=$ac_cv_path_TRUEPRG
2275 if test -n "$TRUEPRG"; then
2276   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2277 echo "${ECHO_T}$TRUEPRG" >&6; }
2278 else
2279   { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2281 fi
2282
2283
2284   test -n "$TRUEPRG" && break
2285 done
2286 test -n "$TRUEPRG" || TRUEPRG=":"
2287
2288 for ac_prog in false
2289 do
2290   # Extract the first word of "$ac_prog", so it can be a program name with args.
2291 set dummy $ac_prog; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   case $FALSEPRG in
2298   [\\/]* | ?:[\\/]*)
2299   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2300   ;;
2301   *)
2302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305   IFS=$as_save_IFS
2306   test -z "$as_dir" && as_dir=.
2307   for ac_exec_ext in '' $ac_executable_extensions; do
2308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2309     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311     break 2
2312   fi
2313 done
2314 done
2315 IFS=$as_save_IFS
2316
2317   ;;
2318 esac
2319 fi
2320 FALSEPRG=$ac_cv_path_FALSEPRG
2321 if test -n "$FALSEPRG"; then
2322   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2323 echo "${ECHO_T}$FALSEPRG" >&6; }
2324 else
2325   { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2327 fi
2328
2329
2330   test -n "$FALSEPRG" && break
2331 done
2332 test -n "$FALSEPRG" || FALSEPRG=":"
2333
2334
2335
2336 post_host=
2337 if test "x$BACULA" != x; then
2338    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2339 fi
2340 BACULA=${BACULA:-Bacula}
2341 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2342 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2343 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2344 echo "configuring for ${BACULA} $VERSION ($DATE)"
2345
2346
2347 ac_ext=c
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352 if test -n "$ac_tool_prefix"; then
2353   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_CC+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   if test -n "$CC"; then
2361   ac_cv_prog_CC="$CC" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   for ac_exec_ext in '' $ac_executable_extensions; do
2369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372     break 2
2373   fi
2374 done
2375 done
2376 IFS=$as_save_IFS
2377
2378 fi
2379 fi
2380 CC=$ac_cv_prog_CC
2381 if test -n "$CC"; then
2382   { echo "$as_me:$LINENO: result: $CC" >&5
2383 echo "${ECHO_T}$CC" >&6; }
2384 else
2385   { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2387 fi
2388
2389
2390 fi
2391 if test -z "$ac_cv_prog_CC"; then
2392   ac_ct_CC=$CC
2393   # Extract the first word of "gcc", so it can be a program name with args.
2394 set dummy gcc; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2398   echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400   if test -n "$ac_ct_CC"; then
2401   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408   for ac_exec_ext in '' $ac_executable_extensions; do
2409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410     ac_cv_prog_ac_ct_CC="gcc"
2411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412     break 2
2413   fi
2414 done
2415 done
2416 IFS=$as_save_IFS
2417
2418 fi
2419 fi
2420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2421 if test -n "$ac_ct_CC"; then
2422   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2423 echo "${ECHO_T}$ac_ct_CC" >&6; }
2424 else
2425   { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2427 fi
2428
2429   if test "x$ac_ct_CC" = x; then
2430     CC=""
2431   else
2432     case $cross_compiling:$ac_tool_warned in
2433 yes:)
2434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet.  If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&5
2437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet.  If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2440 ac_tool_warned=yes ;;
2441 esac
2442     CC=$ac_ct_CC
2443   fi
2444 else
2445   CC="$ac_cv_prog_CC"
2446 fi
2447
2448 if test -z "$CC"; then
2449           if test -n "$ac_tool_prefix"; then
2450     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}cc; ac_word=$2
2452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454 if test "${ac_cv_prog_CC+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   if test -n "$CC"; then
2458   ac_cv_prog_CC="$CC" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463   IFS=$as_save_IFS
2464   test -z "$as_dir" && as_dir=.
2465   for ac_exec_ext in '' $ac_executable_extensions; do
2466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467     ac_cv_prog_CC="${ac_tool_prefix}cc"
2468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469     break 2
2470   fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 CC=$ac_cv_prog_CC
2478 if test -n "$CC"; then
2479   { echo "$as_me:$LINENO: result: $CC" >&5
2480 echo "${ECHO_T}$CC" >&6; }
2481 else
2482   { echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6; }
2484 fi
2485
2486
2487   fi
2488 fi
2489 if test -z "$CC"; then
2490   # Extract the first word of "cc", so it can be a program name with args.
2491 set dummy cc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495   echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497   if test -n "$CC"; then
2498   ac_cv_prog_CC="$CC" # Let the user override the test.
2499 else
2500   ac_prog_rejected=no
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504   IFS=$as_save_IFS
2505   test -z "$as_dir" && as_dir=.
2506   for ac_exec_ext in '' $ac_executable_extensions; do
2507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2509        ac_prog_rejected=yes
2510        continue
2511      fi
2512     ac_cv_prog_CC="cc"
2513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514     break 2
2515   fi
2516 done
2517 done
2518 IFS=$as_save_IFS
2519
2520 if test $ac_prog_rejected = yes; then
2521   # We found a bogon in the path, so make sure we never use it.
2522   set dummy $ac_cv_prog_CC
2523   shift
2524   if test $# != 0; then
2525     # We chose a different compiler from the bogus one.
2526     # However, it has the same basename, so the bogon will be chosen
2527     # first if we set CC to just the basename; use the full file name.
2528     shift
2529     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2530   fi
2531 fi
2532 fi
2533 fi
2534 CC=$ac_cv_prog_CC
2535 if test -n "$CC"; then
2536   { echo "$as_me:$LINENO: result: $CC" >&5
2537 echo "${ECHO_T}$CC" >&6; }
2538 else
2539   { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2541 fi
2542
2543
2544 fi
2545 if test -z "$CC"; then
2546   if test -n "$ac_tool_prefix"; then
2547   for ac_prog in cl.exe
2548   do
2549     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_CC+set}" = set; then
2554   echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556   if test -n "$CC"; then
2557   ac_cv_prog_CC="$CC" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564   for ac_exec_ext in '' $ac_executable_extensions; do
2565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568     break 2
2569   fi
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 CC=$ac_cv_prog_CC
2577 if test -n "$CC"; then
2578   { echo "$as_me:$LINENO: result: $CC" >&5
2579 echo "${ECHO_T}$CC" >&6; }
2580 else
2581   { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2583 fi
2584
2585
2586     test -n "$CC" && break
2587   done
2588 fi
2589 if test -z "$CC"; then
2590   ac_ct_CC=$CC
2591   for ac_prog in cl.exe
2592 do
2593   # Extract the first word of "$ac_prog", so it can be a program name with args.
2594 set dummy $ac_prog; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   if test -n "$ac_ct_CC"; then
2601   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606   IFS=$as_save_IFS
2607   test -z "$as_dir" && as_dir=.
2608   for ac_exec_ext in '' $ac_executable_extensions; do
2609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610     ac_cv_prog_ac_ct_CC="$ac_prog"
2611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612     break 2
2613   fi
2614 done
2615 done
2616 IFS=$as_save_IFS
2617
2618 fi
2619 fi
2620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621 if test -n "$ac_ct_CC"; then
2622   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623 echo "${ECHO_T}$ac_ct_CC" >&6; }
2624 else
2625   { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2627 fi
2628
2629
2630   test -n "$ac_ct_CC" && break
2631 done
2632
2633   if test "x$ac_ct_CC" = x; then
2634     CC=""
2635   else
2636     case $cross_compiling:$ac_tool_warned in
2637 yes:)
2638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2639 whose name does not start with the host triplet.  If you think this
2640 configuration is useful to you, please write to autoconf@gnu.org." >&5
2641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet.  If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2644 ac_tool_warned=yes ;;
2645 esac
2646     CC=$ac_ct_CC
2647   fi
2648 fi
2649
2650 fi
2651
2652
2653 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: no acceptable C compiler found in \$PATH
2656 See \`config.log' for more details." >&2;}
2657    { (exit 1); exit 1; }; }
2658
2659 # Provide some information about the compiler.
2660 echo "$as_me:$LINENO: checking for C compiler version" >&5
2661 ac_compiler=`set X $ac_compile; echo $2`
2662 { (ac_try="$ac_compiler --version >&5"
2663 case "(($ac_try" in
2664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665   *) ac_try_echo=$ac_try;;
2666 esac
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668   (eval "$ac_compiler --version >&5") 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }
2672 { (ac_try="$ac_compiler -v >&5"
2673 case "(($ac_try" in
2674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675   *) ac_try_echo=$ac_try;;
2676 esac
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678   (eval "$ac_compiler -v >&5") 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }
2682 { (ac_try="$ac_compiler -V >&5"
2683 case "(($ac_try" in
2684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685   *) ac_try_echo=$ac_try;;
2686 esac
2687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688   (eval "$ac_compiler -V >&5") 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }
2692
2693 cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h.  */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h.  */
2699
2700 int
2701 main ()
2702 {
2703
2704   ;
2705   return 0;
2706 }
2707 _ACEOF
2708 ac_clean_files_save=$ac_clean_files
2709 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2710 # Try to create an executable without -o first, disregard a.out.
2711 # It will help us diagnose broken compilers, and finding out an intuition
2712 # of exeext.
2713 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2714 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2715 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2716 #
2717 # List of possible output files, starting from the most likely.
2718 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2719 # only as a last resort.  b.out is created by i960 compilers.
2720 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2721 #
2722 # The IRIX 6 linker writes into existing files which may not be
2723 # executable, retaining their permissions.  Remove them first so a
2724 # subsequent execution test works.
2725 ac_rmfiles=
2726 for ac_file in $ac_files
2727 do
2728   case $ac_file in
2729     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2730     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2731   esac
2732 done
2733 rm -f $ac_rmfiles
2734
2735 if { (ac_try="$ac_link_default"
2736 case "(($ac_try" in
2737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738   *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741   (eval "$ac_link_default") 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; then
2745   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2746 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2747 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2748 # so that the user can short-circuit this test for compilers unknown to
2749 # Autoconf.
2750 for ac_file in $ac_files ''
2751 do
2752   test -f "$ac_file" || continue
2753   case $ac_file in
2754     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2755         ;;
2756     [ab].out )
2757         # We found the default executable, but exeext='' is most
2758         # certainly right.
2759         break;;
2760     *.* )
2761         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2762         then :; else
2763            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2764         fi
2765         # We set ac_cv_exeext here because the later test for it is not
2766         # safe: cross compilers may not add the suffix if given an `-o'
2767         # argument, so we may need to know it at that point already.
2768         # Even if this section looks crufty: it has the advantage of
2769         # actually working.
2770         break;;
2771     * )
2772         break;;
2773   esac
2774 done
2775 test "$ac_cv_exeext" = no && ac_cv_exeext=
2776
2777 else
2778   ac_file=''
2779 fi
2780
2781 { echo "$as_me:$LINENO: result: $ac_file" >&5
2782 echo "${ECHO_T}$ac_file" >&6; }
2783 if test -z "$ac_file"; then
2784   echo "$as_me: failed program was:" >&5
2785 sed 's/^/| /' conftest.$ac_ext >&5
2786
2787 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2788 See \`config.log' for more details." >&5
2789 echo "$as_me: error: C compiler cannot create executables
2790 See \`config.log' for more details." >&2;}
2791    { (exit 77); exit 77; }; }
2792 fi
2793
2794 ac_exeext=$ac_cv_exeext
2795
2796 # Check that the compiler produces executables we can run.  If not, either
2797 # the compiler is broken, or we cross compile.
2798 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2799 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2800 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2801 # If not cross compiling, check that we can run a simple program.
2802 if test "$cross_compiling" != yes; then
2803   if { ac_try='./$ac_file'
2804   { (case "(($ac_try" in
2805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806   *) ac_try_echo=$ac_try;;
2807 esac
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809   (eval "$ac_try") 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; }; then
2813     cross_compiling=no
2814   else
2815     if test "$cross_compiling" = maybe; then
2816         cross_compiling=yes
2817     else
2818         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2819 If you meant to cross compile, use \`--host'.
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&2;}
2824    { (exit 1); exit 1; }; }
2825     fi
2826   fi
2827 fi
2828 { echo "$as_me:$LINENO: result: yes" >&5
2829 echo "${ECHO_T}yes" >&6; }
2830
2831 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2832 ac_clean_files=$ac_clean_files_save
2833 # Check that the compiler produces executables we can run.  If not, either
2834 # the compiler is broken, or we cross compile.
2835 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2836 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2837 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2838 echo "${ECHO_T}$cross_compiling" >&6; }
2839
2840 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2841 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2842 if { (ac_try="$ac_link"
2843 case "(($ac_try" in
2844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845   *) ac_try_echo=$ac_try;;
2846 esac
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848   (eval "$ac_link") 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); }; then
2852   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2853 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2854 # work properly (i.e., refer to `conftest.exe'), while it won't with
2855 # `rm'.
2856 for ac_file in conftest.exe conftest conftest.*; do
2857   test -f "$ac_file" || continue
2858   case $ac_file in
2859     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2860     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2861           break;;
2862     * ) break;;
2863   esac
2864 done
2865 else
2866   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2867 See \`config.log' for more details." >&5
2868 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2869 See \`config.log' for more details." >&2;}
2870    { (exit 1); exit 1; }; }
2871 fi
2872
2873 rm -f conftest$ac_cv_exeext
2874 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2875 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2876
2877 rm -f conftest.$ac_ext
2878 EXEEXT=$ac_cv_exeext
2879 ac_exeext=$EXEEXT
2880 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2881 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2882 if test "${ac_cv_objext+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885   cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h.  */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h.  */
2891
2892 int
2893 main ()
2894 {
2895
2896   ;
2897   return 0;
2898 }
2899 _ACEOF
2900 rm -f conftest.o conftest.obj
2901 if { (ac_try="$ac_compile"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_compile") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }; then
2911   for ac_file in conftest.o conftest.obj conftest.*; do
2912   test -f "$ac_file" || continue;
2913   case $ac_file in
2914     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2915     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2916        break;;
2917   esac
2918 done
2919 else
2920   echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2922
2923 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2924 See \`config.log' for more details." >&5
2925 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2926 See \`config.log' for more details." >&2;}
2927    { (exit 1); exit 1; }; }
2928 fi
2929
2930 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2931 fi
2932 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2933 echo "${ECHO_T}$ac_cv_objext" >&6; }
2934 OBJEXT=$ac_cv_objext
2935 ac_objext=$OBJEXT
2936 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2937 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2938 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2939   echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941   cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h.  */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h.  */
2947
2948 int
2949 main ()
2950 {
2951 #ifndef __GNUC__
2952        choke me
2953 #endif
2954
2955   ;
2956   return 0;
2957 }
2958 _ACEOF
2959 rm -f conftest.$ac_objext
2960 if { (ac_try="$ac_compile"
2961 case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966   (eval "$ac_compile") 2>conftest.er1
2967   ac_status=$?
2968   grep -v '^ *+' conftest.er1 >conftest.err
2969   rm -f conftest.er1
2970   cat conftest.err >&5
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); } && {
2973          test -z "$ac_c_werror_flag" ||
2974          test ! -s conftest.err
2975        } && test -s conftest.$ac_objext; then
2976   ac_compiler_gnu=yes
2977 else
2978   echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981         ac_compiler_gnu=no
2982 fi
2983
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2986
2987 fi
2988 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2989 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2990 GCC=`test $ac_compiler_gnu = yes && echo yes`
2991 ac_test_CFLAGS=${CFLAGS+set}
2992 ac_save_CFLAGS=$CFLAGS
2993 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2994 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_cc_g+set}" = set; then
2996   echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998   ac_save_c_werror_flag=$ac_c_werror_flag
2999    ac_c_werror_flag=yes
3000    ac_cv_prog_cc_g=no
3001    CFLAGS="-g"
3002    cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008
3009 int
3010 main ()
3011 {
3012
3013   ;
3014   return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3019 case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024   (eval "$ac_compile") 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } && {
3031          test -z "$ac_c_werror_flag" ||
3032          test ! -s conftest.err
3033        } && test -s conftest.$ac_objext; then
3034   ac_cv_prog_cc_g=yes
3035 else
3036   echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039         CFLAGS=""
3040       cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h.  */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h.  */
3046
3047 int
3048 main ()
3049 {
3050
3051   ;
3052   return 0;
3053 }
3054 _ACEOF
3055 rm -f conftest.$ac_objext
3056 if { (ac_try="$ac_compile"
3057 case "(($ac_try" in
3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059   *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062   (eval "$ac_compile") 2>conftest.er1
3063   ac_status=$?
3064   grep -v '^ *+' conftest.er1 >conftest.err
3065   rm -f conftest.er1
3066   cat conftest.err >&5
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); } && {
3069          test -z "$ac_c_werror_flag" ||
3070          test ! -s conftest.err
3071        } && test -s conftest.$ac_objext; then
3072   :
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077         ac_c_werror_flag=$ac_save_c_werror_flag
3078          CFLAGS="-g"
3079          cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085
3086 int
3087 main ()
3088 {
3089
3090   ;
3091   return 0;
3092 }
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101   (eval "$ac_compile") 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } && {
3108          test -z "$ac_c_werror_flag" ||
3109          test ! -s conftest.err
3110        } && test -s conftest.$ac_objext; then
3111   ac_cv_prog_cc_g=yes
3112 else
3113   echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116
3117 fi
3118
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 fi
3121
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123 fi
3124
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126    ac_c_werror_flag=$ac_save_c_werror_flag
3127 fi
3128 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3129 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3130 if test "$ac_test_CFLAGS" = set; then
3131   CFLAGS=$ac_save_CFLAGS
3132 elif test $ac_cv_prog_cc_g = yes; then
3133   if test "$GCC" = yes; then
3134     CFLAGS="-g -O2"
3135   else
3136     CFLAGS="-g"
3137   fi
3138 else
3139   if test "$GCC" = yes; then
3140     CFLAGS="-O2"
3141   else
3142     CFLAGS=
3143   fi
3144 fi
3145 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3146 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3147 if test "${ac_cv_prog_cc_c89+set}" = set; then
3148   echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150   ac_cv_prog_cc_c89=no
3151 ac_save_CC=$CC
3152 cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158 #include <stdarg.h>
3159 #include <stdio.h>
3160 #include <sys/types.h>
3161 #include <sys/stat.h>
3162 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3163 struct buf { int x; };
3164 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3165 static char *e (p, i)
3166      char **p;
3167      int i;
3168 {
3169   return p[i];
3170 }
3171 static char *f (char * (*g) (char **, int), char **p, ...)
3172 {
3173   char *s;
3174   va_list v;
3175   va_start (v,p);
3176   s = g (p, va_arg (v,int));
3177   va_end (v);
3178   return s;
3179 }
3180
3181 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3182    function prototypes and stuff, but not '\xHH' hex character constants.
3183    These don't provoke an error unfortunately, instead are silently treated
3184    as 'x'.  The following induces an error, until -std is added to get
3185    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3186    array size at least.  It's necessary to write '\x00'==0 to get something
3187    that's true only with -std.  */
3188 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3189
3190 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3191    inside strings and character constants.  */
3192 #define FOO(x) 'x'
3193 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3194
3195 int test (int i, double x);
3196 struct s1 {int (*f) (int a);};
3197 struct s2 {int (*f) (double a);};
3198 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3199 int argc;
3200 char **argv;
3201 int
3202 main ()
3203 {
3204 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3205   ;
3206   return 0;
3207 }
3208 _ACEOF
3209 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3210         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3211 do
3212   CC="$ac_save_CC $ac_arg"
3213   rm -f conftest.$ac_objext
3214 if { (ac_try="$ac_compile"
3215 case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220   (eval "$ac_compile") 2>conftest.er1
3221   ac_status=$?
3222   grep -v '^ *+' conftest.er1 >conftest.err
3223   rm -f conftest.er1
3224   cat conftest.err >&5
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); } && {
3227          test -z "$ac_c_werror_flag" ||
3228          test ! -s conftest.err
3229        } && test -s conftest.$ac_objext; then
3230   ac_cv_prog_cc_c89=$ac_arg
3231 else
3232   echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3234
3235
3236 fi
3237
3238 rm -f core conftest.err conftest.$ac_objext
3239   test "x$ac_cv_prog_cc_c89" != "xno" && break
3240 done
3241 rm -f conftest.$ac_ext
3242 CC=$ac_save_CC
3243
3244 fi
3245 # AC_CACHE_VAL
3246 case "x$ac_cv_prog_cc_c89" in
3247   x)
3248     { echo "$as_me:$LINENO: result: none needed" >&5
3249 echo "${ECHO_T}none needed" >&6; } ;;
3250   xno)
3251     { echo "$as_me:$LINENO: result: unsupported" >&5
3252 echo "${ECHO_T}unsupported" >&6; } ;;
3253   *)
3254     CC="$CC $ac_cv_prog_cc_c89"
3255     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3256 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3257 esac
3258
3259
3260 ac_ext=c
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265
3266 ac_ext=cpp
3267 ac_cpp='$CXXCPP $CPPFLAGS'
3268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3271 if test -z "$CXX"; then
3272   if test -n "$CCC"; then
3273     CXX=$CCC
3274   else
3275     if test -n "$ac_tool_prefix"; then
3276   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3277   do
3278     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3282 if test "${ac_cv_prog_CXX+set}" = set; then
3283   echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285   if test -n "$CXX"; then
3286   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293   for ac_exec_ext in '' $ac_executable_extensions; do
3294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297     break 2
3298   fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 fi
3304 fi
3305 CXX=$ac_cv_prog_CXX
3306 if test -n "$CXX"; then
3307   { echo "$as_me:$LINENO: result: $CXX" >&5
3308 echo "${ECHO_T}$CXX" >&6; }
3309 else
3310   { echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6; }
3312 fi
3313
3314
3315     test -n "$CXX" && break
3316   done
3317 fi
3318 if test -z "$CXX"; then
3319   ac_ct_CXX=$CXX
3320   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3321 do
3322   # Extract the first word of "$ac_prog", so it can be a program name with args.
3323 set dummy $ac_prog; ac_word=$2
3324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3326 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329   if test -n "$ac_ct_CXX"; then
3330   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3334 do
3335   IFS=$as_save_IFS
3336   test -z "$as_dir" && as_dir=.
3337   for ac_exec_ext in '' $ac_executable_extensions; do
3338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3339     ac_cv_prog_ac_ct_CXX="$ac_prog"
3340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341     break 2
3342   fi
3343 done
3344 done
3345 IFS=$as_save_IFS
3346
3347 fi
3348 fi
3349 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3350 if test -n "$ac_ct_CXX"; then
3351   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3352 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3353 else
3354   { echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6; }
3356 fi
3357
3358
3359   test -n "$ac_ct_CXX" && break
3360 done
3361
3362   if test "x$ac_ct_CXX" = x; then
3363     CXX="g++"
3364   else
3365     case $cross_compiling:$ac_tool_warned in
3366 yes:)
3367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3368 whose name does not start with the host triplet.  If you think this
3369 configuration is useful to you, please write to autoconf@gnu.org." >&5
3370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3371 whose name does not start with the host triplet.  If you think this
3372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3373 ac_tool_warned=yes ;;
3374 esac
3375     CXX=$ac_ct_CXX
3376   fi
3377 fi
3378
3379   fi
3380 fi
3381 # Provide some information about the compiler.
3382 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3383 ac_compiler=`set X $ac_compile; echo $2`
3384 { (ac_try="$ac_compiler --version >&5"
3385 case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390   (eval "$ac_compiler --version >&5") 2>&5
3391   ac_status=$?
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); }
3394 { (ac_try="$ac_compiler -v >&5"
3395 case "(($ac_try" in
3396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397   *) ac_try_echo=$ac_try;;
3398 esac
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400   (eval "$ac_compiler -v >&5") 2>&5
3401   ac_status=$?
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); }
3404 { (ac_try="$ac_compiler -V >&5"
3405 case "(($ac_try" in
3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407   *) ac_try_echo=$ac_try;;
3408 esac
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410   (eval "$ac_compiler -V >&5") 2>&5
3411   ac_status=$?
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); }
3414
3415 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3416 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3417 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h.  */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h.  */
3426
3427 int
3428 main ()
3429 {
3430 #ifndef __GNUC__
3431        choke me
3432 #endif
3433
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_compile") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } && {
3452          test -z "$ac_cxx_werror_flag" ||
3453          test ! -s conftest.err
3454        } && test -s conftest.$ac_objext; then
3455   ac_compiler_gnu=yes
3456 else
3457   echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460         ac_compiler_gnu=no
3461 fi
3462
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3465
3466 fi
3467 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3468 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3469 GXX=`test $ac_compiler_gnu = yes && echo yes`
3470 ac_test_CXXFLAGS=${CXXFLAGS+set}
3471 ac_save_CXXFLAGS=$CXXFLAGS
3472 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3473 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3474 if test "${ac_cv_prog_cxx_g+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3478    ac_cxx_werror_flag=yes
3479    ac_cv_prog_cxx_g=no
3480    CXXFLAGS="-g"
3481    cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h.  */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h.  */
3487
3488 int
3489 main ()
3490 {
3491
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 rm -f conftest.$ac_objext
3497 if { (ac_try="$ac_compile"
3498 case "(($ac_try" in
3499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500   *) ac_try_echo=$ac_try;;
3501 esac
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503   (eval "$ac_compile") 2>conftest.er1
3504   ac_status=$?
3505   grep -v '^ *+' conftest.er1 >conftest.err
3506   rm -f conftest.er1
3507   cat conftest.err >&5
3508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); } && {
3510          test -z "$ac_cxx_werror_flag" ||
3511          test ! -s conftest.err
3512        } && test -s conftest.$ac_objext; then
3513   ac_cv_prog_cxx_g=yes
3514 else
3515   echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518         CXXFLAGS=""
3519       cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h.  */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h.  */
3525
3526 int
3527 main ()
3528 {
3529
3530   ;
3531   return 0;
3532 }
3533 _ACEOF
3534 rm -f conftest.$ac_objext
3535 if { (ac_try="$ac_compile"
3536 case "(($ac_try" in
3537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538   *) ac_try_echo=$ac_try;;
3539 esac
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541   (eval "$ac_compile") 2>conftest.er1
3542   ac_status=$?
3543   grep -v '^ *+' conftest.er1 >conftest.err
3544   rm -f conftest.er1
3545   cat conftest.err >&5
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); } && {
3548          test -z "$ac_cxx_werror_flag" ||
3549          test ! -s conftest.err
3550        } && test -s conftest.$ac_objext; then
3551   :
3552 else
3553   echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3557          CXXFLAGS="-g"
3558          cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564
3565 int
3566 main ()
3567 {
3568
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3575 case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580   (eval "$ac_compile") 2>conftest.er1
3581   ac_status=$?
3582   grep -v '^ *+' conftest.er1 >conftest.err
3583   rm -f conftest.er1
3584   cat conftest.err >&5
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); } && {
3587          test -z "$ac_cxx_werror_flag" ||
3588          test ! -s conftest.err
3589        } && test -s conftest.$ac_objext; then
3590   ac_cv_prog_cxx_g=yes
3591 else
3592   echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595
3596 fi
3597
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 fi
3600
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 fi
3603
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3606 fi
3607 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3608 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3609 if test "$ac_test_CXXFLAGS" = set; then
3610   CXXFLAGS=$ac_save_CXXFLAGS
3611 elif test $ac_cv_prog_cxx_g = yes; then
3612   if test "$GXX" = yes; then
3613     CXXFLAGS="-g -O2"
3614   else
3615     CXXFLAGS="-g"
3616   fi
3617 else
3618   if test "$GXX" = yes; then
3619     CXXFLAGS="-O2"
3620   else
3621     CXXFLAGS=
3622   fi
3623 fi
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629
3630 if test "x$CC" != xcc; then
3631   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3632 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3633 else
3634   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3635 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3636 fi
3637 set dummy $CC; ac_cc=`echo $2 |
3638                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3639 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3640   echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642   cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h.  */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h.  */
3648
3649 int
3650 main ()
3651 {
3652
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 # Make sure it works both with $CC and with simple cc.
3658 # We do the test twice because some compilers refuse to overwrite an
3659 # existing .o file with -o, though they will create one.
3660 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3661 rm -f conftest2.*
3662 if { (case "(($ac_try" in
3663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664   *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667   (eval "$ac_try") 2>&5
3668   ac_status=$?
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } &&
3671    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676   (eval "$ac_try") 2>&5
3677   ac_status=$?
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); };
3680 then
3681   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3682   if test "x$CC" != xcc; then
3683     # Test first that cc exists at all.
3684     if { ac_try='cc -c conftest.$ac_ext >&5'
3685   { (case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690   (eval "$ac_try") 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; }; then
3694       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3695       rm -f conftest2.*
3696       if { (case "(($ac_try" in
3697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698   *) ac_try_echo=$ac_try;;
3699 esac
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701   (eval "$ac_try") 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); } &&
3705          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707   *) ac_try_echo=$ac_try;;
3708 esac
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710   (eval "$ac_try") 2>&5
3711   ac_status=$?
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); };
3714       then
3715         # cc works too.
3716         :
3717       else
3718         # cc exists but doesn't like -o.
3719         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3720       fi
3721     fi
3722   fi
3723 else
3724   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3725 fi
3726 rm -f core conftest*
3727
3728 fi
3729 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3730   { echo "$as_me:$LINENO: result: yes" >&5
3731 echo "${ECHO_T}yes" >&6; }
3732 else
3733   { echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6; }
3735
3736 cat >>confdefs.h <<\_ACEOF
3737 #define NO_MINUS_C_MINUS_O 1
3738 _ACEOF
3739
3740 fi
3741
3742 ac_ext=c
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3748 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3749 # On Suns, sometimes $CPP names a directory.
3750 if test -n "$CPP" && test -d "$CPP"; then
3751   CPP=
3752 fi
3753 if test -z "$CPP"; then
3754   if test "${ac_cv_prog_CPP+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757       # Double quotes because CPP needs to be expanded
3758     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3759     do
3760       ac_preproc_ok=false
3761 for ac_c_preproc_warn_flag in '' yes
3762 do
3763   # Use a header file that comes with gcc, so configuring glibc
3764   # with a fresh cross-compiler works.
3765   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3766   # <limits.h> exists even on freestanding compilers.
3767   # On the NeXT, cc -E runs the code through the compiler's parser,
3768   # not just through cpp. "Syntax error" is here to catch this case.
3769   cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h.  */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h.  */
3775 #ifdef __STDC__
3776 # include <limits.h>
3777 #else
3778 # include <assert.h>
3779 #endif
3780                      Syntax error
3781 _ACEOF
3782 if { (ac_try="$ac_cpp conftest.$ac_ext"
3783 case "(($ac_try" in
3784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785   *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3789   ac_status=$?
3790   grep -v '^ *+' conftest.er1 >conftest.err
3791   rm -f conftest.er1
3792   cat conftest.err >&5
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } >/dev/null && {
3795          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3796          test ! -s conftest.err
3797        }; then
3798   :
3799 else
3800   echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803   # Broken: fails on valid input.
3804 continue
3805 fi
3806
3807 rm -f conftest.err conftest.$ac_ext
3808
3809   # OK, works on sane cases.  Now check whether nonexistent headers
3810   # can be detected and how.
3811   cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h.  */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h.  */
3817 #include <ac_nonexistent.h>
3818 _ACEOF
3819 if { (ac_try="$ac_cpp conftest.$ac_ext"
3820 case "(($ac_try" in
3821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822   *) ac_try_echo=$ac_try;;
3823 esac
3824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3826   ac_status=$?
3827   grep -v '^ *+' conftest.er1 >conftest.err
3828   rm -f conftest.er1
3829   cat conftest.err >&5
3830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831   (exit $ac_status); } >/dev/null && {
3832          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3833          test ! -s conftest.err
3834        }; then
3835   # Broken: success on invalid input.
3836 continue
3837 else
3838   echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3840
3841   # Passes both tests.
3842 ac_preproc_ok=:
3843 break
3844 fi
3845
3846 rm -f conftest.err conftest.$ac_ext
3847
3848 done
3849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3850 rm -f conftest.err conftest.$ac_ext
3851 if $ac_preproc_ok; then
3852   break
3853 fi
3854
3855     done
3856     ac_cv_prog_CPP=$CPP
3857
3858 fi
3859   CPP=$ac_cv_prog_CPP
3860 else
3861   ac_cv_prog_CPP=$CPP
3862 fi
3863 { echo "$as_me:$LINENO: result: $CPP" >&5
3864 echo "${ECHO_T}$CPP" >&6; }
3865 ac_preproc_ok=false
3866 for ac_c_preproc_warn_flag in '' yes
3867 do
3868   # Use a header file that comes with gcc, so configuring glibc
3869   # with a fresh cross-compiler works.
3870   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3871   # <limits.h> exists even on freestanding compilers.
3872   # On the NeXT, cc -E runs the code through the compiler's parser,
3873   # not just through cpp. "Syntax error" is here to catch this case.
3874   cat >conftest.$ac_ext <<_ACEOF
3875 /* confdefs.h.  */
3876 _ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h.  */
3880 #ifdef __STDC__
3881 # include <limits.h>
3882 #else
3883 # include <assert.h>
3884 #endif
3885                      Syntax error
3886 _ACEOF
3887 if { (ac_try="$ac_cpp conftest.$ac_ext"
3888 case "(($ac_try" in
3889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890   *) ac_try_echo=$ac_try;;
3891 esac
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3894   ac_status=$?
3895   grep -v '^ *+' conftest.er1 >conftest.err
3896   rm -f conftest.er1
3897   cat conftest.err >&5
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); } >/dev/null && {
3900          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3901          test ! -s conftest.err
3902        }; then
3903   :
3904 else
3905   echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3907
3908   # Broken: fails on valid input.
3909 continue
3910 fi
3911
3912 rm -f conftest.err conftest.$ac_ext
3913
3914   # OK, works on sane cases.  Now check whether nonexistent headers
3915   # can be detected and how.
3916   cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h.  */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h.  */
3922 #include <ac_nonexistent.h>
3923 _ACEOF
3924 if { (ac_try="$ac_cpp conftest.$ac_ext"
3925 case "(($ac_try" in
3926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927   *) ac_try_echo=$ac_try;;
3928 esac
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3931   ac_status=$?
3932   grep -v '^ *+' conftest.er1 >conftest.err
3933   rm -f conftest.er1
3934   cat conftest.err >&5
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); } >/dev/null && {
3937          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3938          test ! -s conftest.err
3939        }; then
3940   # Broken: success on invalid input.
3941 continue
3942 else
3943   echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3945
3946   # Passes both tests.
3947 ac_preproc_ok=:
3948 break
3949 fi
3950
3951 rm -f conftest.err conftest.$ac_ext
3952
3953 done
3954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3955 rm -f conftest.err conftest.$ac_ext
3956 if $ac_preproc_ok; then
3957   :
3958 else
3959   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3960 See \`config.log' for more details." >&5
3961 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3962 See \`config.log' for more details." >&2;}
3963    { (exit 1); exit 1; }; }
3964 fi
3965
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971
3972
3973 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3974 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3975 if test "${ac_cv_path_GREP+set}" = set; then
3976   echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978   # Extract the first word of "grep ggrep" to use in msg output
3979 if test -z "$GREP"; then
3980 set dummy grep ggrep; ac_prog_name=$2
3981 if test "${ac_cv_path_GREP+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   ac_path_GREP_found=false
3985 # Loop through the user's path and test for each of PROGNAME-LIST
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3988 do
3989   IFS=$as_save_IFS
3990   test -z "$as_dir" && as_dir=.
3991   for ac_prog in grep ggrep; do
3992   for ac_exec_ext in '' $ac_executable_extensions; do
3993     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3994     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3995     # Check for GNU ac_path_GREP and select it if it is found.
3996   # Check for GNU $ac_path_GREP
3997 case `"$ac_path_GREP" --version 2>&1` in
3998 *GNU*)
3999   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4000 *)
4001   ac_count=0
4002   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4003   while :
4004   do
4005     cat "conftest.in" "conftest.in" >"conftest.tmp"
4006     mv "conftest.tmp" "conftest.in"
4007     cp "conftest.in" "conftest.nl"
4008     echo 'GREP' >> "conftest.nl"
4009     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4010     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4011     ac_count=`expr $ac_count + 1`
4012     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4013       # Best one so far, save it but keep looking for a better one
4014       ac_cv_path_GREP="$ac_path_GREP"
4015       ac_path_GREP_max=$ac_count
4016     fi
4017     # 10*(2^10) chars as input seems more than enough
4018     test $ac_count -gt 10 && break
4019   done
4020   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4021 esac
4022
4023
4024     $ac_path_GREP_found && break 3
4025   done
4026 done
4027
4028 done
4029 IFS=$as_save_IFS
4030
4031
4032 fi
4033
4034 GREP="$ac_cv_path_GREP"
4035 if test -z "$GREP"; then
4036   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4037 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4038    { (exit 1); exit 1; }; }
4039 fi
4040
4041 else
4042   ac_cv_path_GREP=$GREP
4043 fi
4044
4045
4046 fi
4047 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4048 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4049  GREP="$ac_cv_path_GREP"
4050
4051
4052 { echo "$as_me:$LINENO: checking for egrep" >&5
4053 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4054 if test "${ac_cv_path_EGREP+set}" = set; then
4055   echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4058    then ac_cv_path_EGREP="$GREP -E"
4059    else
4060      # Extract the first word of "egrep" to use in msg output
4061 if test -z "$EGREP"; then
4062 set dummy egrep; ac_prog_name=$2
4063 if test "${ac_cv_path_EGREP+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   ac_path_EGREP_found=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070 do
4071   IFS=$as_save_IFS
4072   test -z "$as_dir" && as_dir=.
4073   for ac_prog in egrep; do
4074   for ac_exec_ext in '' $ac_executable_extensions; do
4075     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4076     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4077     # Check for GNU ac_path_EGREP and select it if it is found.
4078   # Check for GNU $ac_path_EGREP
4079 case `"$ac_path_EGREP" --version 2>&1` in
4080 *GNU*)
4081   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4082 *)
4083   ac_count=0
4084   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4085   while :
4086   do
4087     cat "conftest.in" "conftest.in" >"conftest.tmp"
4088     mv "conftest.tmp" "conftest.in"
4089     cp "conftest.in" "conftest.nl"
4090     echo 'EGREP' >> "conftest.nl"
4091     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093     ac_count=`expr $ac_count + 1`
4094     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4095       # Best one so far, save it but keep looking for a better one
4096       ac_cv_path_EGREP="$ac_path_EGREP"
4097       ac_path_EGREP_max=$ac_count
4098     fi
4099     # 10*(2^10) chars as input seems more than enough
4100     test $ac_count -gt 10 && break
4101   done
4102   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103 esac
4104
4105
4106     $ac_path_EGREP_found && break 3
4107   done
4108 done
4109
4110 done
4111 IFS=$as_save_IFS
4112
4113
4114 fi
4115
4116 EGREP="$ac_cv_path_EGREP"
4117 if test -z "$EGREP"; then
4118   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4119 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4120    { (exit 1); exit 1; }; }
4121 fi
4122
4123 else
4124   ac_cv_path_EGREP=$EGREP
4125 fi
4126
4127
4128    fi
4129 fi
4130 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4131 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4132  EGREP="$ac_cv_path_EGREP"
4133
4134
4135 if test $ac_cv_c_compiler_gnu = yes; then
4136     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4137 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4138 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141     ac_pattern="Autoconf.*'x'"
4142   cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h.  */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h.  */
4148 #include <sgtty.h>
4149 Autoconf TIOCGETP
4150 _ACEOF
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4153   ac_cv_prog_gcc_traditional=yes
4154 else
4155   ac_cv_prog_gcc_traditional=no
4156 fi
4157 rm -f conftest*
4158
4159
4160   if test $ac_cv_prog_gcc_traditional = no; then
4161     cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <termio.h>
4168 Autoconf TCGETA
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4172   ac_cv_prog_gcc_traditional=yes
4173 fi
4174 rm -f conftest*
4175
4176   fi
4177 fi
4178 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4179 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4180   if test $ac_cv_prog_gcc_traditional = yes; then
4181     CC="$CC -traditional"
4182   fi
4183 fi
4184
4185 BASECC=`basename $CC`
4186 have_gcc=no
4187 if test "x$BASECC" = xgcc; then
4188    cat >>confdefs.h <<\_ACEOF
4189 #define HAVE_GCC 1
4190 _ACEOF
4191
4192    have_gcc=yes
4193 fi
4194 # Extract the first word of "$CXX", so it can be a program name with args.
4195 set dummy $CXX; ac_word=$2
4196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4198 if test "${ac_cv_path_CXX+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   case $CXX in
4202   [\\/]* | ?:[\\/]*)
4203   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4204   ;;
4205   *)
4206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211   for ac_exec_ext in '' $ac_executable_extensions; do
4212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218 done
4219 IFS=$as_save_IFS
4220
4221   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4222   ;;
4223 esac
4224 fi
4225 CXX=$ac_cv_path_CXX
4226 if test -n "$CXX"; then
4227   { echo "$as_me:$LINENO: result: $CXX" >&5
4228 echo "${ECHO_T}$CXX" >&6; }
4229 else
4230   { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4232 fi
4233
4234
4235 if test ! -e $CXX; then
4236    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4237 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4238    { (exit 1); exit 1; }; }
4239 fi
4240
4241 # Find a good install program.  We prefer a C program (faster),
4242 # so one script is as good as another.  But avoid the broken or
4243 # incompatible versions:
4244 # SysV /etc/install, /usr/sbin/install
4245 # SunOS /usr/etc/install
4246 # IRIX /sbin/install
4247 # AIX /bin/install
4248 # AmigaOS /C/install, which installs bootblocks on floppy discs
4249 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4250 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4251 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4252 # OS/2's system install, which has a completely different semantic
4253 # ./install, which can be erroneously created by make from ./install.sh.
4254 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4255 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4256 if test -z "$INSTALL"; then
4257 if test "${ac_cv_path_install+set}" = set; then
4258   echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4262 do
4263   IFS=$as_save_IFS
4264   test -z "$as_dir" && as_dir=.
4265   # Account for people who put trailing slashes in PATH elements.
4266 case $as_dir/ in
4267   ./ | .// | /cC/* | \
4268   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4269   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4270   /usr/ucb/* ) ;;
4271   *)
4272     # OSF1 and SCO ODT 3.0 have their own names for install.
4273     # Don't use installbsd from OSF since it installs stuff as root
4274     # by default.
4275     for ac_prog in ginstall scoinst install; do
4276       for ac_exec_ext in '' $ac_executable_extensions; do
4277         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4278           if test $ac_prog = install &&
4279             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4280             # AIX install.  It has an incompatible calling convention.
4281             :
4282           elif test $ac_prog = install &&
4283             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4284             # program-specific install script used by HP pwplus--don't use.
4285             :
4286           else
4287             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4288             break 3
4289           fi
4290         fi
4291       done
4292     done
4293     ;;
4294 esac
4295 done
4296 IFS=$as_save_IFS
4297
4298
4299 fi
4300   if test "${ac_cv_path_install+set}" = set; then
4301     INSTALL=$ac_cv_path_install
4302   else
4303     # As a last resort, use the slow shell script.  Don't cache a
4304     # value for INSTALL within a source directory, because that will
4305     # break other packages using the cache if that directory is
4306     # removed, or if the value is a relative name.
4307     INSTALL=$ac_install_sh
4308   fi
4309 fi
4310 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4311 echo "${ECHO_T}$INSTALL" >&6; }
4312
4313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4314 # It thinks the first close brace ends the variable substitution.
4315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4316
4317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4318
4319 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4320
4321 # Extract the first word of "mv", so it can be a program name with args.
4322 set dummy mv; ac_word=$2
4323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4325 if test "${ac_cv_path_MV+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   case $MV in
4329   [\\/]* | ?:[\\/]*)
4330   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4331   ;;
4332   *)
4333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336   IFS=$as_save_IFS
4337   test -z "$as_dir" && as_dir=.
4338   for ac_exec_ext in '' $ac_executable_extensions; do
4339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342     break 2
4343   fi
4344 done
4345 done
4346 IFS=$as_save_IFS
4347
4348   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4349   ;;
4350 esac
4351 fi
4352 MV=$ac_cv_path_MV
4353 if test -n "$MV"; then
4354   { echo "$as_me:$LINENO: result: $MV" >&5
4355 echo "${ECHO_T}$MV" >&6; }
4356 else
4357   { echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6; }
4359 fi
4360
4361
4362 # Extract the first word of "rm", so it can be a program name with args.
4363 set dummy rm; ac_word=$2
4364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4366 if test "${ac_cv_path_REMOVE+set}" = set; then
4367   echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369   case $REMOVE in
4370   [\\/]* | ?:[\\/]*)
4371   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4372   ;;
4373   *)
4374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377   IFS=$as_save_IFS
4378   test -z "$as_dir" && as_dir=.
4379   for ac_exec_ext in '' $ac_executable_extensions; do
4380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383     break 2
4384   fi
4385 done
4386 done
4387 IFS=$as_save_IFS
4388
4389   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4390   ;;
4391 esac
4392 fi
4393 REMOVE=$ac_cv_path_REMOVE
4394 if test -n "$REMOVE"; then
4395   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4396 echo "${ECHO_T}$REMOVE" >&6; }
4397 else
4398   { echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6; }
4400 fi
4401
4402
4403 # Extract the first word of "cp", so it can be a program name with args.
4404 set dummy cp; ac_word=$2
4405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4407 if test "${ac_cv_path_CP+set}" = set; then
4408   echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410   case $CP in
4411   [\\/]* | ?:[\\/]*)
4412   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4413   ;;
4414   *)
4415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4417 do
4418   IFS=$as_save_IFS
4419   test -z "$as_dir" && as_dir=.
4420   for ac_exec_ext in '' $ac_executable_extensions; do
4421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424     break 2
4425   fi
4426 done
4427 done
4428 IFS=$as_save_IFS
4429
4430   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4431   ;;
4432 esac
4433 fi
4434 CP=$ac_cv_path_CP
4435 if test -n "$CP"; then
4436   { echo "$as_me:$LINENO: result: $CP" >&5
4437 echo "${ECHO_T}$CP" >&6; }
4438 else
4439   { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4441 fi
4442
4443
4444 # Extract the first word of "sed", so it can be a program name with args.
4445 set dummy sed; ac_word=$2
4446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4448 if test "${ac_cv_path_SED+set}" = set; then
4449   echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451   case $SED in
4452   [\\/]* | ?:[\\/]*)
4453   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4454   ;;
4455   *)
4456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459   IFS=$as_save_IFS
4460   test -z "$as_dir" && as_dir=.
4461   for ac_exec_ext in '' $ac_executable_extensions; do
4462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465     break 2
4466   fi
4467 done
4468 done
4469 IFS=$as_save_IFS
4470
4471   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4472   ;;
4473 esac
4474 fi
4475 SED=$ac_cv_path_SED
4476 if test -n "$SED"; then
4477   { echo "$as_me:$LINENO: result: $SED" >&5
4478 echo "${ECHO_T}$SED" >&6; }
4479 else
4480   { echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6; }
4482 fi
4483
4484
4485 # Extract the first word of "echo", so it can be a program name with args.
4486 set dummy echo; ac_word=$2
4487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4489 if test "${ac_cv_path_ECHO+set}" = set; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   case $ECHO in
4493   [\\/]* | ?:[\\/]*)
4494   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4495   ;;
4496   *)
4497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500   IFS=$as_save_IFS
4501   test -z "$as_dir" && as_dir=.
4502   for ac_exec_ext in '' $ac_executable_extensions; do
4503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4504     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506     break 2
4507   fi
4508 done
4509 done
4510 IFS=$as_save_IFS
4511
4512   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4513   ;;
4514 esac
4515 fi
4516 ECHO=$ac_cv_path_ECHO
4517 if test -n "$ECHO"; then
4518   { echo "$as_me:$LINENO: result: $ECHO" >&5
4519 echo "${ECHO_T}$ECHO" >&6; }
4520 else
4521   { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4523 fi
4524
4525
4526 # Extract the first word of "cmp", so it can be a program name with args.
4527 set dummy cmp; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_path_CMP+set}" = set; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   case $CMP in
4534   [\\/]* | ?:[\\/]*)
4535   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4536   ;;
4537   *)
4538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4540 do
4541   IFS=$as_save_IFS
4542   test -z "$as_dir" && as_dir=.
4543   for ac_exec_ext in '' $ac_executable_extensions; do
4544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547     break 2
4548   fi
4549 done
4550 done
4551 IFS=$as_save_IFS
4552
4553   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4554   ;;
4555 esac
4556 fi
4557 CMP=$ac_cv_path_CMP
4558 if test -n "$CMP"; then
4559   { echo "$as_me:$LINENO: result: $CMP" >&5
4560 echo "${ECHO_T}$CMP" >&6; }
4561 else
4562   { echo "$as_me:$LINENO: result: no" >&5
4563 echo "${ECHO_T}no" >&6; }
4564 fi
4565
4566
4567 # Extract the first word of "tbl", so it can be a program name with args.
4568 set dummy tbl; ac_word=$2
4569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4571 if test "${ac_cv_path_TBL+set}" = set; then
4572   echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574   case $TBL in
4575   [\\/]* | ?:[\\/]*)
4576   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4577   ;;
4578   *)
4579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582   IFS=$as_save_IFS
4583   test -z "$as_dir" && as_dir=.
4584   for ac_exec_ext in '' $ac_executable_extensions; do
4585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588     break 2
4589   fi
4590 done
4591 done
4592 IFS=$as_save_IFS
4593
4594   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4595   ;;
4596 esac
4597 fi
4598 TBL=$ac_cv_path_TBL
4599 if test -n "$TBL"; then
4600   { echo "$as_me:$LINENO: result: $TBL" >&5
4601 echo "${ECHO_T}$TBL" >&6; }
4602 else
4603   { echo "$as_me:$LINENO: result: no" >&5
4604 echo "${ECHO_T}no" >&6; }
4605 fi
4606
4607
4608 # Extract the first word of "ar", so it can be a program name with args.
4609 set dummy ar; ac_word=$2
4610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4612 if test "${ac_cv_path_AR+set}" = set; then
4613   echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615   case $AR in
4616   [\\/]* | ?:[\\/]*)
4617   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4618   ;;
4619   *)
4620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623   IFS=$as_save_IFS
4624   test -z "$as_dir" && as_dir=.
4625   for ac_exec_ext in '' $ac_executable_extensions; do
4626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629     break 2
4630   fi
4631 done
4632 done
4633 IFS=$as_save_IFS
4634
4635   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4636   ;;
4637 esac
4638 fi
4639 AR=$ac_cv_path_AR
4640 if test -n "$AR"; then
4641   { echo "$as_me:$LINENO: result: $AR" >&5
4642 echo "${ECHO_T}$AR" >&6; }
4643 else
4644   { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4646 fi
4647
4648
4649 # Extract the first word of "openssl", so it can be a program name with args.
4650 set dummy openssl; ac_word=$2
4651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653 if test "${ac_cv_path_OPENSSL+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   case $OPENSSL in
4657   [\\/]* | ?:[\\/]*)
4658   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4659   ;;
4660   *)
4661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666   for ac_exec_ext in '' $ac_executable_extensions; do
4667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670     break 2
4671   fi
4672 done
4673 done
4674 IFS=$as_save_IFS
4675
4676   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4677   ;;
4678 esac
4679 fi
4680 OPENSSL=$ac_cv_path_OPENSSL
4681 if test -n "$OPENSSL"; then
4682   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4683 echo "${ECHO_T}$OPENSSL" >&6; }
4684 else
4685   { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4687 fi
4688
4689
4690 # Extract the first word of "mtx", so it can be a program name with args.
4691 set dummy mtx; ac_word=$2
4692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4694 if test "${ac_cv_path_MTX+set}" = set; then
4695   echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697   case $MTX in
4698   [\\/]* | ?:[\\/]*)
4699   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4700   ;;
4701   *)
4702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705   IFS=$as_save_IFS
4706   test -z "$as_dir" && as_dir=.
4707   for ac_exec_ext in '' $ac_executable_extensions; do
4708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711     break 2
4712   fi
4713 done
4714 done
4715 IFS=$as_save_IFS
4716
4717   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4718   ;;
4719 esac
4720 fi
4721 MTX=$ac_cv_path_MTX
4722 if test -n "$MTX"; then
4723   { echo "$as_me:$LINENO: result: $MTX" >&5
4724 echo "${ECHO_T}$MTX" >&6; }
4725 else
4726   { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4728 fi
4729
4730
4731 # Extract the first word of "dd", so it can be a program name with args.
4732 set dummy dd; ac_word=$2
4733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735 if test "${ac_cv_path_DD+set}" = set; then
4736   echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738   case $DD in
4739   [\\/]* | ?:[\\/]*)
4740   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4741   ;;
4742   *)
4743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746   IFS=$as_save_IFS
4747   test -z "$as_dir" && as_dir=.
4748   for ac_exec_ext in '' $ac_executable_extensions; do
4749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752     break 2
4753   fi
4754 done
4755 done
4756 IFS=$as_save_IFS
4757
4758   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4759   ;;
4760 esac
4761 fi
4762 DD=$ac_cv_path_DD
4763 if test -n "$DD"; then
4764   { echo "$as_me:$LINENO: result: $DD" >&5
4765 echo "${ECHO_T}$DD" >&6; }
4766 else
4767   { echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6; }
4769 fi
4770
4771
4772 # Extract the first word of "mkisofs", so it can be a program name with args.
4773 set dummy mkisofs; ac_word=$2
4774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776 if test "${ac_cv_path_MKISOFS+set}" = set; then
4777   echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779   case $MKISOFS in
4780   [\\/]* | ?:[\\/]*)
4781   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4782   ;;
4783   *)
4784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787   IFS=$as_save_IFS
4788   test -z "$as_dir" && as_dir=.
4789   for ac_exec_ext in '' $ac_executable_extensions; do
4790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793     break 2
4794   fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4800   ;;
4801 esac
4802 fi
4803 MKISOFS=$ac_cv_path_MKISOFS
4804 if test -n "$MKISOFS"; then
4805   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4806 echo "${ECHO_T}$MKISOFS" >&6; }
4807 else
4808   { echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6; }
4810 fi
4811
4812
4813 # Extract the first word of "python", so it can be a program name with args.
4814 set dummy python; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_path_PYTHON+set}" = set; then
4818   echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820   case $PYTHON in
4821   [\\/]* | ?:[\\/]*)
4822   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4823   ;;
4824   *)
4825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830   for ac_exec_ext in '' $ac_executable_extensions; do
4831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837 done
4838 IFS=$as_save_IFS
4839
4840   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4841   ;;
4842 esac
4843 fi
4844 PYTHON=$ac_cv_path_PYTHON
4845 if test -n "$PYTHON"; then
4846   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4847 echo "${ECHO_T}$PYTHON" >&6; }
4848 else
4849   { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4851 fi
4852
4853
4854 # Extract the first word of "growisofs", so it can be a program name with args.
4855 set dummy growisofs; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4859   echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861   case $GROWISOFS in
4862   [\\/]* | ?:[\\/]*)
4863   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4864   ;;
4865   *)
4866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871   for ac_exec_ext in '' $ac_executable_extensions; do
4872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875     break 2
4876   fi
4877 done
4878 done
4879 IFS=$as_save_IFS
4880
4881   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4882   ;;
4883 esac
4884 fi
4885 GROWISOFS=$ac_cv_path_GROWISOFS
4886 if test -n "$GROWISOFS"; then
4887   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4888 echo "${ECHO_T}$GROWISOFS" >&6; }
4889 else
4890   { echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6; }
4892 fi
4893
4894
4895 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4896 set dummy dvd+rw-mediainfo; ac_word=$2
4897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   case $DVDRWMEDIAINFO in
4903   [\\/]* | ?:[\\/]*)
4904   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4905   ;;
4906   *)
4907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4909 do
4910   IFS=$as_save_IFS
4911   test -z "$as_dir" && as_dir=.
4912   for ac_exec_ext in '' $ac_executable_extensions; do
4913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916     break 2
4917   fi
4918 done
4919 done
4920 IFS=$as_save_IFS
4921
4922   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4923   ;;
4924 esac
4925 fi
4926 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4927 if test -n "$DVDRWMEDIAINFO"; then
4928   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4929 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4930 else
4931   { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4933 fi
4934
4935
4936 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4937 set dummy dvd+rw-format; ac_word=$2
4938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4940 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   case $DVDRWFORMAT in
4944   [\\/]* | ?:[\\/]*)
4945   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4946   ;;
4947   *)
4948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951   IFS=$as_save_IFS
4952   test -z "$as_dir" && as_dir=.
4953   for ac_exec_ext in '' $ac_executable_extensions; do
4954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957     break 2
4958   fi
4959 done
4960 done
4961 IFS=$as_save_IFS
4962
4963   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4964   ;;
4965 esac
4966 fi
4967 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4968 if test -n "$DVDRWFORMAT"; then
4969   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4970 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4971 else
4972   { echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6; }
4974 fi
4975
4976
4977 # Extract the first word of "pkg-config", so it can be a program name with args.
4978 set dummy pkg-config; ac_word=$2
4979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4981 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   case $PKGCONFIG in
4985   [\\/]* | ?:[\\/]*)
4986   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4987   ;;
4988   *)
4989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992   IFS=$as_save_IFS
4993   test -z "$as_dir" && as_dir=.
4994   for ac_exec_ext in '' $ac_executable_extensions; do
4995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998     break 2
4999   fi
5000 done
5001 done
5002 IFS=$as_save_IFS
5003
5004   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5005   ;;
5006 esac
5007 fi
5008 PKGCONFIG=$ac_cv_path_PKGCONFIG
5009 if test -n "$PKGCONFIG"; then
5010   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5011 echo "${ECHO_T}$PKGCONFIG" >&6; }
5012 else
5013   { echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6; }
5015 fi
5016
5017
5018 # Extract the first word of "qmake", so it can be a program name with args.
5019 set dummy qmake; ac_word=$2
5020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5022 if test "${ac_cv_path_QMAKE+set}" = set; then
5023   echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025   case $QMAKE in
5026   [\\/]* | ?:[\\/]*)
5027   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5028   ;;
5029   *)
5030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035   for ac_exec_ext in '' $ac_executable_extensions; do
5036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042 done
5043 IFS=$as_save_IFS
5044
5045   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5046   ;;
5047 esac
5048 fi
5049 QMAKE=$ac_cv_path_QMAKE
5050 if test -n "$QMAKE"; then
5051   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5052 echo "${ECHO_T}$QMAKE" >&6; }
5053 else
5054   { echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6; }
5056 fi
5057
5058
5059 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5060 set dummy qmake-qt4; ac_word=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   case $QMAKEQT4 in
5067   [\\/]* | ?:[\\/]*)
5068   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5069   ;;
5070   *)
5071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076   for ac_exec_ext in '' $ac_executable_extensions; do
5077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5087   ;;
5088 esac
5089 fi
5090 QMAKEQT4=$ac_cv_path_QMAKEQT4
5091 if test -n "$QMAKEQT4"; then
5092   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5093 echo "${ECHO_T}$QMAKEQT4" >&6; }
5094 else
5095   { echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6; }
5097 fi
5098
5099
5100 # Extract the first word of "gmake", so it can be a program name with args.
5101 set dummy gmake; ac_word=$2
5102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5104 if test "${ac_cv_path_GMAKE+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   case $GMAKE in
5108   [\\/]* | ?:[\\/]*)
5109   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5110   ;;
5111   *)
5112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115   IFS=$as_save_IFS
5116   test -z "$as_dir" && as_dir=.
5117   for ac_exec_ext in '' $ac_executable_extensions; do
5118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121     break 2
5122   fi
5123 done
5124 done
5125 IFS=$as_save_IFS
5126
5127   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5128   ;;
5129 esac
5130 fi
5131 GMAKE=$ac_cv_path_GMAKE
5132 if test -n "$GMAKE"; then
5133   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5134 echo "${ECHO_T}$GMAKE" >&6; }
5135 else
5136   { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5138 fi
5139
5140
5141
5142 if test "x$WXCONFIG" = x; then
5143    WXCONFIG=wx-config
5144 fi
5145 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5146 set dummy ${WXCONFIG}; 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_WXCONFIG+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152   case $WXCONFIG in
5153   [\\/]* | ?:[\\/]*)
5154   ac_cv_path_WXCONFIG="$WXCONFIG" # 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_WXCONFIG="$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_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5173   ;;
5174 esac
5175 fi
5176 WXCONFIG=$ac_cv_path_WXCONFIG
5177 if test -n "$WXCONFIG"; then
5178   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5179 echo "${ECHO_T}$WXCONFIG" >&6; }
5180 else
5181   { echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6; }
5183 fi
5184
5185
5186
5187 # Extract the first word of "cdrecord", so it can be a program name with args.
5188 set dummy cdrecord; ac_word=$2
5189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5191 if test "${ac_cv_path_CDRECORD+set}" = set; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   case $CDRECORD in
5195   [\\/]* | ?:[\\/]*)
5196   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5197   ;;
5198   *)
5199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5201 do
5202   IFS=$as_save_IFS
5203   test -z "$as_dir" && as_dir=.
5204   for ac_exec_ext in '' $ac_executable_extensions; do
5205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208     break 2
5209   fi
5210 done
5211 done
5212 IFS=$as_save_IFS
5213
5214   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5215   ;;
5216 esac
5217 fi
5218 CDRECORD=$ac_cv_path_CDRECORD
5219 if test -n "$CDRECORD"; then
5220   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5221 echo "${ECHO_T}$CDRECORD" >&6; }
5222 else
5223   { echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6; }
5225 fi
5226
5227
5228 # Extract the first word of "pidof", so it can be a program name with args.
5229 set dummy pidof; ac_word=$2
5230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232 if test "${ac_cv_path_PIDOF+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235   case $PIDOF in
5236   [\\/]* | ?:[\\/]*)
5237   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5238   ;;
5239   *)
5240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243   IFS=$as_save_IFS
5244   test -z "$as_dir" && as_dir=.
5245   for ac_exec_ext in '' $ac_executable_extensions; do
5246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249     break 2
5250   fi
5251 done
5252 done
5253 IFS=$as_save_IFS
5254
5255   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5256   ;;
5257 esac
5258 fi
5259 PIDOF=$ac_cv_path_PIDOF
5260 if test -n "$PIDOF"; then
5261   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5262 echo "${ECHO_T}$PIDOF" >&6; }
5263 else
5264   { echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6; }
5266 fi
5267
5268
5269 for ac_prog in gawk mawk nawk awk
5270 do
5271   # Extract the first word of "$ac_prog", so it can be a program name with args.
5272 set dummy $ac_prog; ac_word=$2
5273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5275 if test "${ac_cv_prog_AWK+set}" = set; then
5276   echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278   if test -n "$AWK"; then
5279   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284   IFS=$as_save_IFS
5285   test -z "$as_dir" && as_dir=.
5286   for ac_exec_ext in '' $ac_executable_extensions; do
5287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288     ac_cv_prog_AWK="$ac_prog"
5289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290     break 2
5291   fi
5292 done
5293 done
5294 IFS=$as_save_IFS
5295
5296 fi
5297 fi
5298 AWK=$ac_cv_prog_AWK
5299 if test -n "$AWK"; then
5300   { echo "$as_me:$LINENO: result: $AWK" >&5
5301 echo "${ECHO_T}$AWK" >&6; }
5302 else
5303   { echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6; }
5305 fi
5306
5307
5308   test -n "$AWK" && break
5309 done
5310
5311 # Some AWK programs fail, so test it and warn the user
5312 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5313       { if ((prog == $2) || (("(" prog ")") == $2) ||
5314       (("" prog "") == $2) ||
5315       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5316 else
5317   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5318    The regex engine of $AWK is too broken to be used you
5319    might want to install GNU AWK.
5320    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5321 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5322    The regex engine of $AWK is too broken to be used you
5323    might want to install GNU AWK.
5324    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5325    { (exit 1); exit 1; }; }
5326 fi
5327 THE_AWK=$AWK
5328 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5329 set dummy $THE_AWK; ac_word=$2
5330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5332 if test "${ac_cv_path_AWK+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335   case $AWK in
5336   [\\/]* | ?:[\\/]*)
5337   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5338   ;;
5339   *)
5340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343   IFS=$as_save_IFS
5344   test -z "$as_dir" && as_dir=.
5345   for ac_exec_ext in '' $ac_executable_extensions; do
5346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5349     break 2
5350   fi
5351 done
5352 done
5353 IFS=$as_save_IFS
5354
5355   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5356   ;;
5357 esac
5358 fi
5359 AWK=$ac_cv_path_AWK
5360 if test -n "$AWK"; then
5361   { echo "$as_me:$LINENO: result: $AWK" >&5
5362 echo "${ECHO_T}$AWK" >&6; }
5363 else
5364   { echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6; }
5366 fi
5367
5368
5369
5370
5371 test -n "$ARFLAG" || ARFLAGS="cr"
5372
5373
5374 MAKE_SHELL=/bin/sh
5375
5376
5377
5378
5379
5380
5381
5382 use_libtool=yes
5383 # Check whether --enable-libtool was given.
5384 if test "${enable_libtool+set}" = set; then
5385   enableval=$enable_libtool;
5386        if test x$enableval = xno; then
5387           use_libtool=no
5388        fi
5389
5390
5391 fi
5392
5393 case `pwd` in
5394   *\ * | *\     *)
5395     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5396 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5397 esac
5398
5399
5400
5401 macro_version='2.2.6'
5402 macro_revision='1.3012'
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416 ltmain="$ac_aux_dir/ltmain.sh"
5417
5418 # Make sure we can run config.sub.
5419 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5420   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5421 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5422    { (exit 1); exit 1; }; }
5423
5424 { echo "$as_me:$LINENO: checking build system type" >&5
5425 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5426 if test "${ac_cv_build+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429   ac_build_alias=$build_alias
5430 test "x$ac_build_alias" = x &&
5431   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5432 test "x$ac_build_alias" = x &&
5433   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5434 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5435    { (exit 1); exit 1; }; }
5436 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5437   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5438 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5439    { (exit 1); exit 1; }; }
5440
5441 fi
5442 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5443 echo "${ECHO_T}$ac_cv_build" >&6; }
5444 case $ac_cv_build in
5445 *-*-*) ;;
5446 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5447 echo "$as_me: error: invalid value of canonical build" >&2;}
5448    { (exit 1); exit 1; }; };;
5449 esac
5450 build=$ac_cv_build
5451 ac_save_IFS=$IFS; IFS='-'
5452 set x $ac_cv_build
5453 shift
5454 build_cpu=$1
5455 build_vendor=$2
5456 shift; shift
5457 # Remember, the first character of IFS is used to create $*,
5458 # except with old shells:
5459 build_os=$*
5460 IFS=$ac_save_IFS
5461 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5462
5463
5464 { echo "$as_me:$LINENO: checking host system type" >&5
5465 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5466 if test "${ac_cv_host+set}" = set; then
5467   echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469   if test "x$host_alias" = x; then
5470   ac_cv_host=$ac_cv_build
5471 else
5472   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5473     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5474 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5475    { (exit 1); exit 1; }; }
5476 fi
5477
5478 fi
5479 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5480 echo "${ECHO_T}$ac_cv_host" >&6; }
5481 case $ac_cv_host in
5482 *-*-*) ;;
5483 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5484 echo "$as_me: error: invalid value of canonical host" >&2;}
5485    { (exit 1); exit 1; }; };;
5486 esac
5487 host=$ac_cv_host
5488 ac_save_IFS=$IFS; IFS='-'
5489 set x $ac_cv_host
5490 shift
5491 host_cpu=$1
5492 host_vendor=$2
5493 shift; shift
5494 # Remember, the first character of IFS is used to create $*,
5495 # except with old shells:
5496 host_os=$*
5497 IFS=$ac_save_IFS
5498 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5499
5500
5501 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5502 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5503 if test "${ac_cv_path_SED+set}" = set; then
5504   echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5507      for ac_i in 1 2 3 4 5 6 7; do
5508        ac_script="$ac_script$as_nl$ac_script"
5509      done
5510      echo "$ac_script" | sed 99q >conftest.sed
5511      $as_unset ac_script || ac_script=
5512      # Extract the first word of "sed gsed" to use in msg output
5513 if test -z "$SED"; then
5514 set dummy sed gsed; ac_prog_name=$2
5515 if test "${ac_cv_path_SED+set}" = set; then
5516   echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518   ac_path_SED_found=false
5519 # Loop through the user's path and test for each of PROGNAME-LIST
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523   IFS=$as_save_IFS
5524   test -z "$as_dir" && as_dir=.
5525   for ac_prog in sed gsed; do
5526   for ac_exec_ext in '' $ac_executable_extensions; do
5527     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5528     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5529     # Check for GNU ac_path_SED and select it if it is found.
5530   # Check for GNU $ac_path_SED
5531 case `"$ac_path_SED" --version 2>&1` in
5532 *GNU*)
5533   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5534 *)
5535   ac_count=0
5536   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5537   while :
5538   do
5539     cat "conftest.in" "conftest.in" >"conftest.tmp"
5540     mv "conftest.tmp" "conftest.in"
5541     cp "conftest.in" "conftest.nl"
5542     echo '' >> "conftest.nl"
5543     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5544     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5545     ac_count=`expr $ac_count + 1`
5546     if test $ac_count -gt ${ac_path_SED_max-0}; then
5547       # Best one so far, save it but keep looking for a better one
5548       ac_cv_path_SED="$ac_path_SED"
5549       ac_path_SED_max=$ac_count
5550     fi
5551     # 10*(2^10) chars as input seems more than enough
5552     test $ac_count -gt 10 && break
5553   done
5554   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5555 esac
5556
5557
5558     $ac_path_SED_found && break 3
5559   done
5560 done
5561
5562 done
5563 IFS=$as_save_IFS
5564
5565
5566 fi
5567
5568 SED="$ac_cv_path_SED"
5569 if test -z "$SED"; then
5570   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5571 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5572    { (exit 1); exit 1; }; }
5573 fi
5574
5575 else
5576   ac_cv_path_SED=$SED
5577 fi
5578
5579 fi
5580 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5581 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5582  SED="$ac_cv_path_SED"
5583   rm -f conftest.sed
5584
5585 test -z "$SED" && SED=sed
5586 Xsed="$SED -e 1s/^X//"
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598 { echo "$as_me:$LINENO: checking for fgrep" >&5
5599 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5600 if test "${ac_cv_path_FGREP+set}" = set; then
5601   echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5604    then ac_cv_path_FGREP="$GREP -F"
5605    else
5606      # Extract the first word of "fgrep" to use in msg output
5607 if test -z "$FGREP"; then
5608 set dummy fgrep; ac_prog_name=$2
5609 if test "${ac_cv_path_FGREP+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612   ac_path_FGREP_found=false
5613 # Loop through the user's path and test for each of PROGNAME-LIST
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5616 do
5617   IFS=$as_save_IFS
5618   test -z "$as_dir" && as_dir=.
5619   for ac_prog in fgrep; do
5620   for ac_exec_ext in '' $ac_executable_extensions; do
5621     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5622     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5623     # Check for GNU ac_path_FGREP and select it if it is found.
5624   # Check for GNU $ac_path_FGREP
5625 case `"$ac_path_FGREP" --version 2>&1` in
5626 *GNU*)
5627   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5628 *)
5629   ac_count=0
5630   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5631   while :
5632   do
5633     cat "conftest.in" "conftest.in" >"conftest.tmp"
5634     mv "conftest.tmp" "conftest.in"
5635     cp "conftest.in" "conftest.nl"
5636     echo 'FGREP' >> "conftest.nl"
5637     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5638     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5639     ac_count=`expr $ac_count + 1`
5640     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5641       # Best one so far, save it but keep looking for a better one
5642       ac_cv_path_FGREP="$ac_path_FGREP"
5643       ac_path_FGREP_max=$ac_count
5644     fi
5645     # 10*(2^10) chars as input seems more than enough
5646     test $ac_count -gt 10 && break
5647   done
5648   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5649 esac
5650
5651
5652     $ac_path_FGREP_found && break 3
5653   done
5654 done
5655
5656 done
5657 IFS=$as_save_IFS
5658
5659
5660 fi
5661
5662 FGREP="$ac_cv_path_FGREP"
5663 if test -z "$FGREP"; then
5664   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5665 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5666    { (exit 1); exit 1; }; }
5667 fi
5668
5669 else
5670   ac_cv_path_FGREP=$FGREP
5671 fi
5672
5673
5674    fi
5675 fi
5676 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5677 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5678  FGREP="$ac_cv_path_FGREP"
5679
5680
5681 test -z "$GREP" && GREP=grep
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701 # Check whether --with-gnu-ld was given.
5702 if test "${with_gnu_ld+set}" = set; then
5703   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5704 else
5705   with_gnu_ld=no
5706 fi
5707
5708 ac_prog=ld
5709 if test "$GCC" = yes; then
5710   # Check if gcc -print-prog-name=ld gives a path.
5711   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5712 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5713   case $host in
5714   *-*-mingw*)
5715     # gcc leaves a trailing carriage return which upsets mingw
5716     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5717   *)
5718     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5719   esac
5720   case $ac_prog in
5721     # Accept absolute paths.
5722     [\\/]* | ?:[\\/]*)
5723       re_direlt='/[^/][^/]*/\.\./'
5724       # Canonicalize the pathname of ld
5725       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5726       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5727         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5728       done
5729       test -z "$LD" && LD="$ac_prog"
5730       ;;
5731   "")
5732     # If it fails, then pretend we aren't using GCC.
5733     ac_prog=ld
5734     ;;
5735   *)
5736     # If it is relative, then search for the first ld in PATH.
5737     with_gnu_ld=unknown
5738     ;;
5739   esac
5740 elif test "$with_gnu_ld" = yes; then
5741   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5742 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5743 else
5744   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5745 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5746 fi
5747 if test "${lt_cv_path_LD+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   if test -z "$LD"; then
5751   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5752   for ac_dir in $PATH; do
5753     IFS="$lt_save_ifs"
5754     test -z "$ac_dir" && ac_dir=.
5755     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5756       lt_cv_path_LD="$ac_dir/$ac_prog"
5757       # Check to see if the program is GNU ld.  I'd rather use --version,
5758       # but apparently some variants of GNU ld only accept -v.
5759       # Break only if it was the GNU/non-GNU ld that we prefer.
5760       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5761       *GNU* | *'with BFD'*)
5762         test "$with_gnu_ld" != no && break
5763         ;;
5764       *)
5765         test "$with_gnu_ld" != yes && break
5766         ;;
5767       esac
5768     fi
5769   done
5770   IFS="$lt_save_ifs"
5771 else
5772   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5773 fi
5774 fi
5775
5776 LD="$lt_cv_path_LD"
5777 if test -n "$LD"; then
5778   { echo "$as_me:$LINENO: result: $LD" >&5
5779 echo "${ECHO_T}$LD" >&6; }
5780 else
5781   { echo "$as_me:$LINENO: result: no" >&5
5782 echo "${ECHO_T}no" >&6; }
5783 fi
5784 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5785 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5786    { (exit 1); exit 1; }; }
5787 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5788 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5789 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5790   echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5793 case `$LD -v 2>&1 </dev/null` in
5794 *GNU* | *'with BFD'*)
5795   lt_cv_prog_gnu_ld=yes
5796   ;;
5797 *)
5798   lt_cv_prog_gnu_ld=no
5799   ;;
5800 esac
5801 fi
5802 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5803 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5804 with_gnu_ld=$lt_cv_prog_gnu_ld
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5815 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5816 if test "${lt_cv_path_NM+set}" = set; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   if test -n "$NM"; then
5820   # Let the user override the test.
5821   lt_cv_path_NM="$NM"
5822 else
5823   lt_nm_to_check="${ac_tool_prefix}nm"
5824   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5825     lt_nm_to_check="$lt_nm_to_check nm"
5826   fi
5827   for lt_tmp_nm in $lt_nm_to_check; do
5828     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5829     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5830       IFS="$lt_save_ifs"
5831       test -z "$ac_dir" && ac_dir=.
5832       tmp_nm="$ac_dir/$lt_tmp_nm"
5833       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5834         # Check to see if the nm accepts a BSD-compat flag.
5835         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5836         #   nm: unknown option "B" ignored
5837         # Tru64's nm complains that /dev/null is an invalid object file
5838         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5839         */dev/null* | *'Invalid file or object type'*)
5840           lt_cv_path_NM="$tmp_nm -B"
5841           break
5842           ;;
5843         *)
5844           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5845           */dev/null*)
5846             lt_cv_path_NM="$tmp_nm -p"
5847             break
5848             ;;
5849           *)
5850             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5851             continue # so that we can try to find one that supports BSD flags
5852             ;;
5853           esac
5854           ;;
5855         esac
5856       fi
5857     done
5858     IFS="$lt_save_ifs"
5859   done
5860   : ${lt_cv_path_NM=no}
5861 fi
5862 fi
5863 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5864 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5865 if test "$lt_cv_path_NM" != "no"; then
5866   NM="$lt_cv_path_NM"
5867 else
5868   # Didn't find any BSD compatible name lister, look for dumpbin.
5869   if test -n "$ac_tool_prefix"; then
5870   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5871   do
5872     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5876 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   if test -n "$DUMPBIN"; then
5880   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885   IFS=$as_save_IFS
5886   test -z "$as_dir" && as_dir=.
5887   for ac_exec_ext in '' $ac_executable_extensions; do
5888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5889     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891     break 2
5892   fi
5893 done
5894 done
5895 IFS=$as_save_IFS
5896
5897 fi
5898 fi
5899 DUMPBIN=$ac_cv_prog_DUMPBIN
5900 if test -n "$DUMPBIN"; then
5901   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5902 echo "${ECHO_T}$DUMPBIN" >&6; }
5903 else
5904   { echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6; }
5906 fi
5907
5908
5909     test -n "$DUMPBIN" && break
5910   done
5911 fi
5912 if test -z "$DUMPBIN"; then
5913   ac_ct_DUMPBIN=$DUMPBIN
5914   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5915 do
5916   # Extract the first word of "$ac_prog", so it can be a program name with args.
5917 set dummy $ac_prog; ac_word=$2
5918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5920 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5921   echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923   if test -n "$ac_ct_DUMPBIN"; then
5924   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929   IFS=$as_save_IFS
5930   test -z "$as_dir" && as_dir=.
5931   for ac_exec_ext in '' $ac_executable_extensions; do
5932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5935     break 2
5936   fi
5937 done
5938 done
5939 IFS=$as_save_IFS
5940
5941 fi
5942 fi
5943 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5944 if test -n "$ac_ct_DUMPBIN"; then
5945   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5946 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5947 else
5948   { echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6; }
5950 fi
5951
5952
5953   test -n "$ac_ct_DUMPBIN" && break
5954 done
5955
5956   if test "x$ac_ct_DUMPBIN" = x; then
5957     DUMPBIN=":"
5958   else
5959     case $cross_compiling:$ac_tool_warned in
5960 yes:)
5961 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5962 whose name does not start with the host triplet.  If you think this
5963 configuration is useful to you, please write to autoconf@gnu.org." >&5
5964 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5965 whose name does not start with the host triplet.  If you think this
5966 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5967 ac_tool_warned=yes ;;
5968 esac
5969     DUMPBIN=$ac_ct_DUMPBIN
5970   fi
5971 fi
5972
5973
5974   if test "$DUMPBIN" != ":"; then
5975     NM="$DUMPBIN"
5976   fi
5977 fi
5978 test -z "$NM" && NM=nm
5979
5980
5981
5982
5983
5984
5985 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5986 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5987 if test "${lt_cv_nm_interface+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   lt_cv_nm_interface="BSD nm"
5991   echo "int some_variable = 0;" > conftest.$ac_ext
5992   (eval echo "\"\$as_me:5992: $ac_compile\"" >&5)
5993   (eval "$ac_compile" 2>conftest.err)
5994   cat conftest.err >&5
5995   (eval echo "\"\$as_me:5995: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5996   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5997   cat conftest.err >&5
5998   (eval echo "\"\$as_me:5998: output\"" >&5)
5999   cat conftest.out >&5
6000   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6001     lt_cv_nm_interface="MS dumpbin"
6002   fi
6003   rm -f conftest*
6004 fi
6005 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6006 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6007
6008 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6009 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6010 LN_S=$as_ln_s
6011 if test "$LN_S" = "ln -s"; then
6012   { echo "$as_me:$LINENO: result: yes" >&5
6013 echo "${ECHO_T}yes" >&6; }
6014 else
6015   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6016 echo "${ECHO_T}no, using $LN_S" >&6; }
6017 fi
6018
6019 # find the maximum length of command line arguments
6020 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6021 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6022 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025     i=0
6026   teststring="ABCD"
6027
6028   case $build_os in
6029   msdosdjgpp*)
6030     # On DJGPP, this test can blow up pretty badly due to problems in libc
6031     # (any single argument exceeding 2000 bytes causes a buffer overrun
6032     # during glob expansion).  Even if it were fixed, the result of this
6033     # check would be larger than it should be.
6034     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6035     ;;
6036
6037   gnu*)
6038     # Under GNU Hurd, this test is not required because there is
6039     # no limit to the length of command line arguments.
6040     # Libtool will interpret -1 as no limit whatsoever
6041     lt_cv_sys_max_cmd_len=-1;
6042     ;;
6043
6044   cygwin* | mingw* | cegcc*)
6045     # On Win9x/ME, this test blows up -- it succeeds, but takes
6046     # about 5 minutes as the teststring grows exponentially.
6047     # Worse, since 9x/ME are not pre-emptively multitasking,
6048     # you end up with a "frozen" computer, even though with patience
6049     # the test eventually succeeds (with a max line length of 256k).
6050     # Instead, let's just punt: use the minimum linelength reported by
6051     # all of the supported platforms: 8192 (on NT/2K/XP).
6052     lt_cv_sys_max_cmd_len=8192;
6053     ;;
6054
6055   amigaos*)
6056     # On AmigaOS with pdksh, this test takes hours, literally.
6057     # So we just punt and use a minimum line length of 8192.
6058     lt_cv_sys_max_cmd_len=8192;
6059     ;;
6060
6061   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6062     # This has been around since 386BSD, at least.  Likely further.
6063     if test -x /sbin/sysctl; then
6064       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6065     elif test -x /usr/sbin/sysctl; then
6066       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6067     else
6068       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6069     fi
6070     # And add a safety zone
6071     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6072     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6073     ;;
6074
6075   interix*)
6076     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6077     lt_cv_sys_max_cmd_len=196608
6078     ;;
6079
6080   osf*)
6081     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6082     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6083     # nice to cause kernel panics so lets avoid the loop below.
6084     # First set a reasonable default.
6085     lt_cv_sys_max_cmd_len=16384
6086     #
6087     if test -x /sbin/sysconfig; then
6088       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6089         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6090       esac
6091     fi
6092     ;;
6093   sco3.2v5*)
6094     lt_cv_sys_max_cmd_len=102400
6095     ;;
6096   sysv5* | sco5v6* | sysv4.2uw2*)
6097     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6098     if test -n "$kargmax"; then
6099       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6100     else
6101       lt_cv_sys_max_cmd_len=32768
6102     fi
6103     ;;
6104   *)
6105     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6106     if test -n "$lt_cv_sys_max_cmd_len"; then
6107       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6108       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6109     else
6110       # Make teststring a little bigger before we do anything with it.
6111       # a 1K string should be a reasonable start.
6112       for i in 1 2 3 4 5 6 7 8 ; do
6113         teststring=$teststring$teststring
6114       done
6115       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6116       # If test is not a shell built-in, we'll probably end up computing a
6117       # maximum length that is only half of the actual maximum length, but
6118       # we can't tell.
6119       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6120                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6121               test $i != 17 # 1/2 MB should be enough
6122       do
6123         i=`expr $i + 1`
6124         teststring=$teststring$teststring
6125       done
6126       # Only check the string length outside the loop.
6127       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6128       teststring=
6129       # Add a significant safety factor because C++ compilers can tack on
6130       # massive amounts of additional arguments before passing them to the
6131       # linker.  It appears as though 1/2 is a usable value.
6132       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6133     fi
6134     ;;
6135   esac
6136
6137 fi
6138
6139 if test -n $lt_cv_sys_max_cmd_len ; then
6140   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6141 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6142 else
6143   { echo "$as_me:$LINENO: result: none" >&5
6144 echo "${ECHO_T}none" >&6; }
6145 fi
6146 max_cmd_len=$lt_cv_sys_max_cmd_len
6147
6148
6149
6150
6151
6152
6153 : ${CP="cp -f"}
6154 : ${MV="mv -f"}
6155 : ${RM="rm -f"}
6156
6157 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6158 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6159 # Try some XSI features
6160 xsi_shell=no
6161 ( _lt_dummy="a/b/c"
6162   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6163       = c,a/b,, \
6164     && eval 'test $(( 1 + 1 )) -eq 2 \
6165     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6166   && xsi_shell=yes
6167 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6168 echo "${ECHO_T}$xsi_shell" >&6; }
6169
6170
6171 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6172 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6173 lt_shell_append=no
6174 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6175     >/dev/null 2>&1 \
6176   && lt_shell_append=yes
6177 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6178 echo "${ECHO_T}$lt_shell_append" >&6; }
6179
6180
6181 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6182   lt_unset=unset
6183 else
6184   lt_unset=false
6185 fi
6186
6187
6188
6189
6190
6191 # test EBCDIC or ASCII
6192 case `echo X|tr X '\101'` in
6193  A) # ASCII based system
6194     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6195   lt_SP2NL='tr \040 \012'
6196   lt_NL2SP='tr \015\012 \040\040'
6197   ;;
6198  *) # EBCDIC based system
6199   lt_SP2NL='tr \100 \n'
6200   lt_NL2SP='tr \r\n \100\100'
6201   ;;
6202 esac
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6213 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6214 if test "${lt_cv_ld_reload_flag+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   lt_cv_ld_reload_flag='-r'
6218 fi
6219 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6220 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6221 reload_flag=$lt_cv_ld_reload_flag
6222 case $reload_flag in
6223 "" | " "*) ;;
6224 *) reload_flag=" $reload_flag" ;;
6225 esac
6226 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6227 case $host_os in
6228   darwin*)
6229     if test "$GCC" = yes; then
6230       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6231     else
6232       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6233     fi
6234     ;;
6235 esac
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245 if test -n "$ac_tool_prefix"; then
6246   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6247 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6250 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6251   echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253   if test -n "$OBJDUMP"; then
6254   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259   IFS=$as_save_IFS
6260   test -z "$as_dir" && as_dir=.
6261   for ac_exec_ext in '' $ac_executable_extensions; do
6262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265     break 2
6266   fi
6267 done
6268 done
6269 IFS=$as_save_IFS
6270
6271 fi
6272 fi
6273 OBJDUMP=$ac_cv_prog_OBJDUMP
6274 if test -n "$OBJDUMP"; then
6275   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6276 echo "${ECHO_T}$OBJDUMP" >&6; }
6277 else
6278   { echo "$as_me:$LINENO: result: no" >&5
6279 echo "${ECHO_T}no" >&6; }
6280 fi
6281
6282
6283 fi
6284 if test -z "$ac_cv_prog_OBJDUMP"; then
6285   ac_ct_OBJDUMP=$OBJDUMP
6286   # Extract the first word of "objdump", so it can be a program name with args.
6287 set dummy objdump; ac_word=$2
6288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6290 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6291   echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293   if test -n "$ac_ct_OBJDUMP"; then
6294   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6298 do
6299   IFS=$as_save_IFS
6300   test -z "$as_dir" && as_dir=.
6301   for ac_exec_ext in '' $ac_executable_extensions; do
6302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305     break 2
6306   fi
6307 done
6308 done
6309 IFS=$as_save_IFS
6310
6311 fi
6312 fi
6313 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6314 if test -n "$ac_ct_OBJDUMP"; then
6315   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6316 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6317 else
6318   { echo "$as_me:$LINENO: result: no" >&5
6319 echo "${ECHO_T}no" >&6; }
6320 fi
6321
6322   if test "x$ac_ct_OBJDUMP" = x; then
6323     OBJDUMP="false"
6324   else
6325     case $cross_compiling:$ac_tool_warned in
6326 yes:)
6327 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6328 whose name does not start with the host triplet.  If you think this
6329 configuration is useful to you, please write to autoconf@gnu.org." >&5
6330 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6331 whose name does not start with the host triplet.  If you think this
6332 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6333 ac_tool_warned=yes ;;
6334 esac
6335     OBJDUMP=$ac_ct_OBJDUMP
6336   fi
6337 else
6338   OBJDUMP="$ac_cv_prog_OBJDUMP"
6339 fi
6340
6341 test -z "$OBJDUMP" && OBJDUMP=objdump
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6352 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6353 if test "${lt_cv_deplibs_check_method+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   lt_cv_file_magic_cmd='$MAGIC_CMD'
6357 lt_cv_file_magic_test_file=
6358 lt_cv_deplibs_check_method='unknown'
6359 # Need to set the preceding variable on all platforms that support
6360 # interlibrary dependencies.
6361 # 'none' -- dependencies not supported.
6362 # `unknown' -- same as none, but documents that we really don't know.
6363 # 'pass_all' -- all dependencies passed with no checks.
6364 # 'test_compile' -- check by making test program.
6365 # 'file_magic [[regex]]' -- check by looking for files in library path
6366 # which responds to the $file_magic_cmd with a given extended regex.
6367 # If you have `file' or equivalent on your system and you're not sure
6368 # whether `pass_all' will *always* work, you probably want this one.
6369
6370 case $host_os in
6371 aix[4-9]*)
6372   lt_cv_deplibs_check_method=pass_all
6373   ;;
6374
6375 beos*)
6376   lt_cv_deplibs_check_method=pass_all
6377   ;;
6378
6379 bsdi[45]*)
6380   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6381   lt_cv_file_magic_cmd='/usr/bin/file -L'
6382   lt_cv_file_magic_test_file=/shlib/libc.so
6383   ;;
6384
6385 cygwin*)
6386   # func_win32_libid is a shell function defined in ltmain.sh
6387   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6388   lt_cv_file_magic_cmd='func_win32_libid'
6389   ;;
6390
6391 mingw* | pw32*)
6392   # Base MSYS/MinGW do not provide the 'file' command needed by
6393   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6394   # unless we find 'file', for example because we are cross-compiling.
6395   if ( file / ) >/dev/null 2>&1; then
6396     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6397     lt_cv_file_magic_cmd='func_win32_libid'
6398   else
6399     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6400     lt_cv_file_magic_cmd='$OBJDUMP -f'
6401   fi
6402   ;;
6403
6404 cegcc)
6405   # use the weaker test based on 'objdump'. See mingw*.
6406   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6407   lt_cv_file_magic_cmd='$OBJDUMP -f'
6408   ;;
6409
6410 darwin* | rhapsody*)
6411   lt_cv_deplibs_check_method=pass_all
6412   ;;
6413
6414 freebsd* | dragonfly*)
6415   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6416     case $host_cpu in
6417     i*86 )
6418       # Not sure whether the presence of OpenBSD here was a mistake.
6419       # Let's accept both of them until this is cleared up.
6420       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6421       lt_cv_file_magic_cmd=/usr/bin/file
6422       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6423       ;;
6424     esac
6425   else
6426     lt_cv_deplibs_check_method=pass_all
6427   fi
6428   ;;
6429
6430 gnu*)
6431   lt_cv_deplibs_check_method=pass_all
6432   ;;
6433
6434 hpux10.20* | hpux11*)
6435   lt_cv_file_magic_cmd=/usr/bin/file
6436   case $host_cpu in
6437   ia64*)
6438     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6439     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6440     ;;
6441   hppa*64*)
6442     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]'
6443     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6444     ;;
6445   *)
6446     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6447     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6448     ;;
6449   esac
6450   ;;
6451
6452 interix[3-9]*)
6453   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6454   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6455   ;;
6456
6457 irix5* | irix6* | nonstopux*)
6458   case $LD in
6459   *-32|*"-32 ") libmagic=32-bit;;
6460   *-n32|*"-n32 ") libmagic=N32;;
6461   *-64|*"-64 ") libmagic=64-bit;;
6462   *) libmagic=never-match;;
6463   esac
6464   lt_cv_deplibs_check_method=pass_all
6465   ;;
6466
6467 # This must be Linux ELF.
6468 linux* | k*bsd*-gnu)
6469   lt_cv_deplibs_check_method=pass_all
6470   ;;
6471
6472 netbsd*)
6473   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6474     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6475   else
6476     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6477   fi
6478   ;;
6479
6480 newos6*)
6481   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6482   lt_cv_file_magic_cmd=/usr/bin/file
6483   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6484   ;;
6485
6486 *nto* | *qnx*)
6487   lt_cv_deplibs_check_method=pass_all
6488   ;;
6489
6490 openbsd*)
6491   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6492     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6493   else
6494     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6495   fi
6496   ;;
6497
6498 osf3* | osf4* | osf5*)
6499   lt_cv_deplibs_check_method=pass_all
6500   ;;
6501
6502 rdos*)
6503   lt_cv_deplibs_check_method=pass_all
6504   ;;
6505
6506 solaris*)
6507   lt_cv_deplibs_check_method=pass_all
6508   ;;
6509
6510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6511   lt_cv_deplibs_check_method=pass_all
6512   ;;
6513
6514 sysv4 | sysv4.3*)
6515   case $host_vendor in
6516   motorola)
6517     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]'
6518     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6519     ;;
6520   ncr)
6521     lt_cv_deplibs_check_method=pass_all
6522     ;;
6523   sequent)
6524     lt_cv_file_magic_cmd='/bin/file'
6525     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6526     ;;
6527   sni)
6528     lt_cv_file_magic_cmd='/bin/file'
6529     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6530     lt_cv_file_magic_test_file=/lib/libc.so
6531     ;;
6532   siemens)
6533     lt_cv_deplibs_check_method=pass_all
6534     ;;
6535   pc)
6536     lt_cv_deplibs_check_method=pass_all
6537     ;;
6538   esac
6539   ;;
6540
6541 tpf*)
6542   lt_cv_deplibs_check_method=pass_all
6543   ;;
6544 esac
6545
6546 fi
6547 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6548 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6549 file_magic_cmd=$lt_cv_file_magic_cmd
6550 deplibs_check_method=$lt_cv_deplibs_check_method
6551 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564 if test -n "$ac_tool_prefix"; then
6565   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6566 set dummy ${ac_tool_prefix}ar; ac_word=$2
6567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6569 if test "${ac_cv_prog_AR+set}" = set; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   if test -n "$AR"; then
6573   ac_cv_prog_AR="$AR" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578   IFS=$as_save_IFS
6579   test -z "$as_dir" && as_dir=.
6580   for ac_exec_ext in '' $ac_executable_extensions; do
6581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582     ac_cv_prog_AR="${ac_tool_prefix}ar"
6583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584     break 2
6585   fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590 fi
6591 fi
6592 AR=$ac_cv_prog_AR
6593 if test -n "$AR"; then
6594   { echo "$as_me:$LINENO: result: $AR" >&5
6595 echo "${ECHO_T}$AR" >&6; }
6596 else
6597   { echo "$as_me:$LINENO: result: no" >&5
6598 echo "${ECHO_T}no" >&6; }
6599 fi
6600
6601
6602 fi
6603 if test -z "$ac_cv_prog_AR"; then
6604   ac_ct_AR=$AR
6605   # Extract the first word of "ar", so it can be a program name with args.
6606 set dummy ar; ac_word=$2
6607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6609 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6610   echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612   if test -n "$ac_ct_AR"; then
6613   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6614 else
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 for as_dir in $PATH
6617 do
6618   IFS=$as_save_IFS
6619   test -z "$as_dir" && as_dir=.
6620   for ac_exec_ext in '' $ac_executable_extensions; do
6621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622     ac_cv_prog_ac_ct_AR="ar"
6623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624     break 2
6625   fi
6626 done
6627 done
6628 IFS=$as_save_IFS
6629
6630 fi
6631 fi
6632 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6633 if test -n "$ac_ct_AR"; then
6634   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6635 echo "${ECHO_T}$ac_ct_AR" >&6; }
6636 else
6637   { echo "$as_me:$LINENO: result: no" >&5
6638 echo "${ECHO_T}no" >&6; }
6639 fi
6640
6641   if test "x$ac_ct_AR" = x; then
6642     AR="false"
6643   else
6644     case $cross_compiling:$ac_tool_warned in
6645 yes:)
6646 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6647 whose name does not start with the host triplet.  If you think this
6648 configuration is useful to you, please write to autoconf@gnu.org." >&5
6649 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6650 whose name does not start with the host triplet.  If you think this
6651 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6652 ac_tool_warned=yes ;;
6653 esac
6654     AR=$ac_ct_AR
6655   fi
6656 else
6657   AR="$ac_cv_prog_AR"
6658 fi
6659
6660 test -z "$AR" && AR=ar
6661 test -z "$AR_FLAGS" && AR_FLAGS=cru
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673 if test -n "$ac_tool_prefix"; then
6674   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6675 set dummy ${ac_tool_prefix}strip; ac_word=$2
6676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6678 if test "${ac_cv_prog_STRIP+set}" = set; then
6679   echo $ECHO_N "(cached) $ECHO_C" >&6
6680 else
6681   if test -n "$STRIP"; then
6682   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6683 else
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687   IFS=$as_save_IFS
6688   test -z "$as_dir" && as_dir=.
6689   for ac_exec_ext in '' $ac_executable_extensions; do
6690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6691     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693     break 2
6694   fi
6695 done
6696 done
6697 IFS=$as_save_IFS
6698
6699 fi
6700 fi
6701 STRIP=$ac_cv_prog_STRIP
6702 if test -n "$STRIP"; then
6703   { echo "$as_me:$LINENO: result: $STRIP" >&5
6704 echo "${ECHO_T}$STRIP" >&6; }
6705 else
6706   { echo "$as_me:$LINENO: result: no" >&5
6707 echo "${ECHO_T}no" >&6; }
6708 fi
6709
6710
6711 fi
6712 if test -z "$ac_cv_prog_STRIP"; then
6713   ac_ct_STRIP=$STRIP
6714   # Extract the first word of "strip", so it can be a program name with args.
6715 set dummy strip; ac_word=$2
6716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6719   echo $ECHO_N "(cached) $ECHO_C" >&6
6720 else
6721   if test -n "$ac_ct_STRIP"; then
6722   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729   for ac_exec_ext in '' $ac_executable_extensions; do
6730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731     ac_cv_prog_ac_ct_STRIP="strip"
6732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736 done
6737 IFS=$as_save_IFS
6738
6739 fi
6740 fi
6741 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6742 if test -n "$ac_ct_STRIP"; then
6743   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6744 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6745 else
6746   { echo "$as_me:$LINENO: result: no" >&5
6747 echo "${ECHO_T}no" >&6; }
6748 fi
6749
6750   if test "x$ac_ct_STRIP" = x; then
6751     STRIP=":"
6752   else
6753     case $cross_compiling:$ac_tool_warned in
6754 yes:)
6755 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6756 whose name does not start with the host triplet.  If you think this
6757 configuration is useful to you, please write to autoconf@gnu.org." >&5
6758 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6759 whose name does not start with the host triplet.  If you think this
6760 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6761 ac_tool_warned=yes ;;
6762 esac
6763     STRIP=$ac_ct_STRIP
6764   fi
6765 else
6766   STRIP="$ac_cv_prog_STRIP"
6767 fi
6768
6769 test -z "$STRIP" && STRIP=:
6770
6771
6772
6773
6774
6775
6776 if test -n "$ac_tool_prefix"; then
6777   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_prog_RANLIB+set}" = set; then
6782   echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784   if test -n "$RANLIB"; then
6785   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790   IFS=$as_save_IFS
6791   test -z "$as_dir" && as_dir=.
6792   for ac_exec_ext in '' $ac_executable_extensions; do
6793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796     break 2
6797   fi
6798 done
6799 done
6800 IFS=$as_save_IFS
6801
6802 fi
6803 fi
6804 RANLIB=$ac_cv_prog_RANLIB
6805 if test -n "$RANLIB"; then
6806   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6807 echo "${ECHO_T}$RANLIB" >&6; }
6808 else
6809   { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6811 fi
6812
6813
6814 fi
6815 if test -z "$ac_cv_prog_RANLIB"; then
6816   ac_ct_RANLIB=$RANLIB
6817   # Extract the first word of "ranlib", so it can be a program name with args.
6818 set dummy ranlib; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6822   echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824   if test -n "$ac_ct_RANLIB"; then
6825   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830   IFS=$as_save_IFS
6831   test -z "$as_dir" && as_dir=.
6832   for ac_exec_ext in '' $ac_executable_extensions; do
6833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834     ac_cv_prog_ac_ct_RANLIB="ranlib"
6835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836     break 2
6837   fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6845 if test -n "$ac_ct_RANLIB"; then
6846   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6847 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6848 else
6849   { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6851 fi
6852
6853   if test "x$ac_ct_RANLIB" = x; then
6854     RANLIB=":"
6855   else
6856     case $cross_compiling:$ac_tool_warned in
6857 yes:)
6858 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet.  If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&5
6861 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet.  If you think this
6863 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866     RANLIB=$ac_ct_RANLIB
6867   fi
6868 else
6869   RANLIB="$ac_cv_prog_RANLIB"
6870 fi
6871
6872 test -z "$RANLIB" && RANLIB=:
6873
6874
6875
6876
6877
6878
6879 # Determine commands to create old-style static archives.
6880 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6881 old_postinstall_cmds='chmod 644 $oldlib'
6882 old_postuninstall_cmds=
6883
6884 if test -n "$RANLIB"; then
6885   case $host_os in
6886   openbsd*)
6887     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6888     ;;
6889   *)
6890     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6891     ;;
6892   esac
6893   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6894 fi
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929 # If no C compiler was specified, use CC.
6930 LTCC=${LTCC-"$CC"}
6931
6932 # If no C compiler flags were specified, use CFLAGS.
6933 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6934
6935 # Allow CC to be a program name with arguments.
6936 compiler=$CC
6937
6938
6939 # Check for command to grab the raw symbol name followed by C symbol from nm.
6940 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6941 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6942 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6943   echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945
6946 # These are sane defaults that work on at least a few old systems.
6947 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6948
6949 # Character class describing NM global symbol codes.
6950 symcode='[BCDEGRST]'
6951
6952 # Regexp to match symbols that can be accessed directly from C.
6953 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6954
6955 # Define system-specific variables.
6956 case $host_os in
6957 aix*)
6958   symcode='[BCDT]'
6959   ;;
6960 cygwin* | mingw* | pw32* | cegcc*)
6961   symcode='[ABCDGISTW]'
6962   ;;
6963 hpux*)
6964   if test "$host_cpu" = ia64; then
6965     symcode='[ABCDEGRST]'
6966   fi
6967   ;;
6968 irix* | nonstopux*)
6969   symcode='[BCDEGRST]'
6970   ;;
6971 osf*)
6972   symcode='[BCDEGQRST]'
6973   ;;
6974 solaris*)
6975   symcode='[BDRT]'
6976   ;;
6977 sco3.2v5*)
6978   symcode='[DT]'
6979   ;;
6980 sysv4.2uw2*)
6981   symcode='[DT]'
6982   ;;
6983 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6984   symcode='[ABDT]'
6985   ;;
6986 sysv4)
6987   symcode='[DFNSTU]'
6988   ;;
6989 esac
6990
6991 # If we're using GNU nm, then use its standard symbol codes.
6992 case `$NM -V 2>&1` in
6993 *GNU* | *'with BFD'*)
6994   symcode='[ABCDGIRSTW]' ;;
6995 esac
6996
6997 # Transform an extracted symbol line into a proper C declaration.
6998 # Some systems (esp. on ia64) link data and code symbols differently,
6999 # so use this general approach.
7000 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7001
7002 # Transform an extracted symbol line into symbol name and symbol address
7003 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7004 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'"
7005
7006 # Handle CRLF in mingw tool chain
7007 opt_cr=
7008 case $build_os in
7009 mingw*)
7010   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7011   ;;
7012 esac
7013
7014 # Try without a prefix underscore, then with it.
7015 for ac_symprfx in "" "_"; do
7016
7017   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7018   symxfrm="\\1 $ac_symprfx\\2 \\2"
7019
7020   # Write the raw and C identifiers.
7021   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7022     # Fake it for dumpbin and say T for any non-static function
7023     # and D for any global variable.
7024     # Also find C++ and __fastcall symbols from MSVC++,
7025     # which start with @ or ?.
7026     lt_cv_sys_global_symbol_pipe="$AWK '"\
7027 "     {last_section=section; section=\$ 3};"\
7028 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7029 "     \$ 0!~/External *\|/{next};"\
7030 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7031 "     {if(hide[section]) next};"\
7032 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7033 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7034 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7035 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7036 "     ' prfx=^$ac_symprfx"
7037   else
7038     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7039   fi
7040
7041   # Check to see that the pipe works correctly.
7042   pipe_works=no
7043
7044   rm -f conftest*
7045   cat > conftest.$ac_ext <<_LT_EOF
7046 #ifdef __cplusplus
7047 extern "C" {
7048 #endif
7049 char nm_test_var;
7050 void nm_test_func(void);
7051 void nm_test_func(void){}
7052 #ifdef __cplusplus
7053 }
7054 #endif
7055 int main(){nm_test_var='a';nm_test_func();return(0);}
7056 _LT_EOF
7057
7058   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059   (eval $ac_compile) 2>&5
7060   ac_status=$?
7061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062   (exit $ac_status); }; then
7063     # Now try to grab the symbols.
7064     nlist=conftest.nm
7065     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7066   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7067   ac_status=$?
7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); } && test -s "$nlist"; then
7070       # Try sorting and uniquifying the output.
7071       if sort "$nlist" | uniq > "$nlist"T; then
7072         mv -f "$nlist"T "$nlist"
7073       else
7074         rm -f "$nlist"T
7075       fi
7076
7077       # Make sure that we snagged all the symbols we need.
7078       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7079         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7080           cat <<_LT_EOF > conftest.$ac_ext
7081 #ifdef __cplusplus
7082 extern "C" {
7083 #endif
7084
7085 _LT_EOF
7086           # Now generate the symbol file.
7087           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7088
7089           cat <<_LT_EOF >> conftest.$ac_ext
7090
7091 /* The mapping between symbol names and symbols.  */
7092 const struct {
7093   const char *name;
7094   void       *address;
7095 }
7096 lt__PROGRAM__LTX_preloaded_symbols[] =
7097 {
7098   { "@PROGRAM@", (void *) 0 },
7099 _LT_EOF
7100           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7101           cat <<\_LT_EOF >> conftest.$ac_ext
7102   {0, (void *) 0}
7103 };
7104
7105 /* This works around a problem in FreeBSD linker */
7106 #ifdef FREEBSD_WORKAROUND
7107 static const void *lt_preloaded_setup() {
7108   return lt__PROGRAM__LTX_preloaded_symbols;
7109 }
7110 #endif
7111
7112 #ifdef __cplusplus
7113 }
7114 #endif
7115 _LT_EOF
7116           # Now try linking the two files.
7117           mv conftest.$ac_objext conftstm.$ac_objext
7118           lt_save_LIBS="$LIBS"
7119           lt_save_CFLAGS="$CFLAGS"
7120           LIBS="conftstm.$ac_objext"
7121           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7122           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7123   (eval $ac_link) 2>&5
7124   ac_status=$?
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7127             pipe_works=yes
7128           fi
7129           LIBS="$lt_save_LIBS"
7130           CFLAGS="$lt_save_CFLAGS"
7131         else
7132           echo "cannot find nm_test_func in $nlist" >&5
7133         fi
7134       else
7135         echo "cannot find nm_test_var in $nlist" >&5
7136       fi
7137     else
7138       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7139     fi
7140   else
7141     echo "$progname: failed program was:" >&5
7142     cat conftest.$ac_ext >&5
7143   fi
7144   rm -rf conftest* conftst*
7145
7146   # Do not use the global_symbol_pipe unless it works.
7147   if test "$pipe_works" = yes; then
7148     break
7149   else
7150     lt_cv_sys_global_symbol_pipe=
7151   fi
7152 done
7153
7154 fi
7155
7156 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7157   lt_cv_sys_global_symbol_to_cdecl=
7158 fi
7159 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7160   { echo "$as_me:$LINENO: result: failed" >&5
7161 echo "${ECHO_T}failed" >&6; }
7162 else
7163   { echo "$as_me:$LINENO: result: ok" >&5
7164 echo "${ECHO_T}ok" >&6; }
7165 fi
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188 # Check whether --enable-libtool-lock was given.
7189 if test "${enable_libtool_lock+set}" = set; then
7190   enableval=$enable_libtool_lock;
7191 fi
7192
7193 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7194
7195 # Some flags need to be propagated to the compiler or linker for good
7196 # libtool support.
7197 case $host in
7198 ia64-*-hpux*)
7199   # Find out which ABI we are using.
7200   echo 'int i;' > conftest.$ac_ext
7201   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7202   (eval $ac_compile) 2>&5
7203   ac_status=$?
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); }; then
7206     case `/usr/bin/file conftest.$ac_objext` in
7207       *ELF-32*)
7208         HPUX_IA64_MODE="32"
7209         ;;
7210       *ELF-64*)
7211         HPUX_IA64_MODE="64"
7212         ;;
7213     esac
7214   fi
7215   rm -rf conftest*
7216   ;;
7217 *-*-irix6*)
7218   # Find out which ABI we are using.
7219   echo '#line 7219 "configure"' > conftest.$ac_ext
7220   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7221   (eval $ac_compile) 2>&5
7222   ac_status=$?
7223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224   (exit $ac_status); }; then
7225     if test "$lt_cv_prog_gnu_ld" = yes; then
7226       case `/usr/bin/file conftest.$ac_objext` in
7227         *32-bit*)
7228           LD="${LD-ld} -melf32bsmip"
7229           ;;
7230         *N32*)
7231           LD="${LD-ld} -melf32bmipn32"
7232           ;;
7233         *64-bit*)
7234           LD="${LD-ld} -melf64bmip"
7235         ;;
7236       esac
7237     else
7238       case `/usr/bin/file conftest.$ac_objext` in
7239         *32-bit*)
7240           LD="${LD-ld} -32"
7241           ;;
7242         *N32*)
7243           LD="${LD-ld} -n32"
7244           ;;
7245         *64-bit*)
7246           LD="${LD-ld} -64"
7247           ;;
7248       esac
7249     fi
7250   fi
7251   rm -rf conftest*
7252   ;;
7253
7254 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7255 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7256   # Find out which ABI we are using.
7257   echo 'int i;' > conftest.$ac_ext
7258   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7259   (eval $ac_compile) 2>&5
7260   ac_status=$?
7261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); }; then
7263     case `/usr/bin/file conftest.o` in
7264       *32-bit*)
7265         case $host in
7266           x86_64-*kfreebsd*-gnu)
7267             LD="${LD-ld} -m elf_i386_fbsd"
7268             ;;
7269           x86_64-*linux*)
7270             LD="${LD-ld} -m elf_i386"
7271             ;;
7272           ppc64-*linux*|powerpc64-*linux*)
7273             LD="${LD-ld} -m elf32ppclinux"
7274             ;;
7275           s390x-*linux*)
7276             LD="${LD-ld} -m elf_s390"
7277             ;;
7278           sparc64-*linux*)
7279             LD="${LD-ld} -m elf32_sparc"
7280             ;;
7281         esac
7282         ;;
7283       *64-bit*)
7284         case $host in
7285           x86_64-*kfreebsd*-gnu)
7286             LD="${LD-ld} -m elf_x86_64_fbsd"
7287             ;;
7288           x86_64-*linux*)
7289             LD="${LD-ld} -m elf_x86_64"
7290             ;;
7291           ppc*-*linux*|powerpc*-*linux*)
7292             LD="${LD-ld} -m elf64ppc"
7293             ;;
7294           s390*-*linux*|s390*-*tpf*)
7295             LD="${LD-ld} -m elf64_s390"
7296             ;;
7297           sparc*-*linux*)
7298             LD="${LD-ld} -m elf64_sparc"
7299             ;;
7300         esac
7301         ;;
7302     esac
7303   fi
7304   rm -rf conftest*
7305   ;;
7306
7307 *-*-sco3.2v5*)
7308   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7309   SAVE_CFLAGS="$CFLAGS"
7310   CFLAGS="$CFLAGS -belf"
7311   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7312 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7313 if test "${lt_cv_cc_needs_belf+set}" = set; then
7314   echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316   ac_ext=c
7317 ac_cpp='$CPP $CPPFLAGS'
7318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321
7322      cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h.  */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h.  */
7328
7329 int
7330 main ()
7331 {
7332
7333   ;
7334   return 0;
7335 }
7336 _ACEOF
7337 rm -f conftest.$ac_objext conftest$ac_exeext
7338 if { (ac_try="$ac_link"
7339 case "(($ac_try" in
7340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341   *) ac_try_echo=$ac_try;;
7342 esac
7343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344   (eval "$ac_link") 2>conftest.er1
7345   ac_status=$?
7346   grep -v '^ *+' conftest.er1 >conftest.err
7347   rm -f conftest.er1
7348   cat conftest.err >&5
7349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350   (exit $ac_status); } && {
7351          test -z "$ac_c_werror_flag" ||
7352          test ! -s conftest.err
7353        } && test -s conftest$ac_exeext &&
7354        $as_test_x conftest$ac_exeext; then
7355   lt_cv_cc_needs_belf=yes
7356 else
7357   echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7359
7360         lt_cv_cc_needs_belf=no
7361 fi
7362
7363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7364       conftest$ac_exeext conftest.$ac_ext
7365      ac_ext=c
7366 ac_cpp='$CPP $CPPFLAGS'
7367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7370
7371 fi
7372 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7373 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7374   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7375     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7376     CFLAGS="$SAVE_CFLAGS"
7377   fi
7378   ;;
7379 sparc*-*solaris*)
7380   # Find out which ABI we are using.
7381   echo 'int i;' > conftest.$ac_ext
7382   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7383   (eval $ac_compile) 2>&5
7384   ac_status=$?
7385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386   (exit $ac_status); }; then
7387     case `/usr/bin/file conftest.o` in
7388     *64-bit*)
7389       case $lt_cv_prog_gnu_ld in
7390       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7391       *)
7392         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7393           LD="${LD-ld} -64"
7394         fi
7395         ;;
7396       esac
7397       ;;
7398     esac
7399   fi
7400   rm -rf conftest*
7401   ;;
7402 esac
7403
7404 need_locks="$enable_libtool_lock"
7405
7406
7407   case $host_os in
7408     rhapsody* | darwin*)
7409     if test -n "$ac_tool_prefix"; then
7410   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7411 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   if test -n "$DSYMUTIL"; then
7418   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423   IFS=$as_save_IFS
7424   test -z "$as_dir" && as_dir=.
7425   for ac_exec_ext in '' $ac_executable_extensions; do
7426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432 done
7433 IFS=$as_save_IFS
7434
7435 fi
7436 fi
7437 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7438 if test -n "$DSYMUTIL"; then
7439   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7440 echo "${ECHO_T}$DSYMUTIL" >&6; }
7441 else
7442   { echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6; }
7444 fi
7445
7446
7447 fi
7448 if test -z "$ac_cv_prog_DSYMUTIL"; then
7449   ac_ct_DSYMUTIL=$DSYMUTIL
7450   # Extract the first word of "dsymutil", so it can be a program name with args.
7451 set dummy dsymutil; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   if test -n "$ac_ct_DSYMUTIL"; then
7458   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7459 else
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463   IFS=$as_save_IFS
7464   test -z "$as_dir" && as_dir=.
7465   for ac_exec_ext in '' $ac_executable_extensions; do
7466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7467     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7469     break 2
7470   fi
7471 done
7472 done
7473 IFS=$as_save_IFS
7474
7475 fi
7476 fi
7477 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7478 if test -n "$ac_ct_DSYMUTIL"; then
7479   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7480 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7481 else
7482   { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7484 fi
7485
7486   if test "x$ac_ct_DSYMUTIL" = x; then
7487     DSYMUTIL=":"
7488   else
7489     case $cross_compiling:$ac_tool_warned in
7490 yes:)
7491 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7492 whose name does not start with the host triplet.  If you think this
7493 configuration is useful to you, please write to autoconf@gnu.org." >&5
7494 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7495 whose name does not start with the host triplet.  If you think this
7496 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7497 ac_tool_warned=yes ;;
7498 esac
7499     DSYMUTIL=$ac_ct_DSYMUTIL
7500   fi
7501 else
7502   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7503 fi
7504
7505     if test -n "$ac_tool_prefix"; then
7506   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7507 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7511   echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513   if test -n "$NMEDIT"; then
7514   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7518 do
7519   IFS=$as_save_IFS
7520   test -z "$as_dir" && as_dir=.
7521   for ac_exec_ext in '' $ac_executable_extensions; do
7522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525     break 2
7526   fi
7527 done
7528 done
7529 IFS=$as_save_IFS
7530
7531 fi
7532 fi
7533 NMEDIT=$ac_cv_prog_NMEDIT
7534 if test -n "$NMEDIT"; then
7535   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7536 echo "${ECHO_T}$NMEDIT" >&6; }
7537 else
7538   { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7540 fi
7541
7542
7543 fi
7544 if test -z "$ac_cv_prog_NMEDIT"; then
7545   ac_ct_NMEDIT=$NMEDIT
7546   # Extract the first word of "nmedit", so it can be a program name with args.
7547 set dummy nmedit; ac_word=$2
7548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7550 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7551   echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553   if test -n "$ac_ct_NMEDIT"; then
7554   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561   for ac_exec_ext in '' $ac_executable_extensions; do
7562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7563     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565     break 2
7566   fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571 fi
7572 fi
7573 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7574 if test -n "$ac_ct_NMEDIT"; then
7575   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7576 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7577 else
7578   { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7580 fi
7581
7582   if test "x$ac_ct_NMEDIT" = x; then
7583     NMEDIT=":"
7584   else
7585     case $cross_compiling:$ac_tool_warned in
7586 yes:)
7587 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7588 whose name does not start with the host triplet.  If you think this
7589 configuration is useful to you, please write to autoconf@gnu.org." >&5
7590 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7591 whose name does not start with the host triplet.  If you think this
7592 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7593 ac_tool_warned=yes ;;
7594 esac
7595     NMEDIT=$ac_ct_NMEDIT
7596   fi
7597 else
7598   NMEDIT="$ac_cv_prog_NMEDIT"
7599 fi
7600
7601     if test -n "$ac_tool_prefix"; then
7602   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7603 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606 if test "${ac_cv_prog_LIPO+set}" = set; then
7607   echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609   if test -n "$LIPO"; then
7610   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7611 else
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7614 do
7615   IFS=$as_save_IFS
7616   test -z "$as_dir" && as_dir=.
7617   for ac_exec_ext in '' $ac_executable_extensions; do
7618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7619     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7621     break 2
7622   fi
7623 done
7624 done
7625 IFS=$as_save_IFS
7626
7627 fi
7628 fi
7629 LIPO=$ac_cv_prog_LIPO
7630 if test -n "$LIPO"; then
7631   { echo "$as_me:$LINENO: result: $LIPO" >&5
7632 echo "${ECHO_T}$LIPO" >&6; }
7633 else
7634   { echo "$as_me:$LINENO: result: no" >&5
7635 echo "${ECHO_T}no" >&6; }
7636 fi
7637
7638
7639 fi
7640 if test -z "$ac_cv_prog_LIPO"; then
7641   ac_ct_LIPO=$LIPO
7642   # Extract the first word of "lipo", so it can be a program name with args.
7643 set dummy lipo; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7647   echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649   if test -n "$ac_ct_LIPO"; then
7650   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7651 else
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7654 do
7655   IFS=$as_save_IFS
7656   test -z "$as_dir" && as_dir=.
7657   for ac_exec_ext in '' $ac_executable_extensions; do
7658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7659     ac_cv_prog_ac_ct_LIPO="lipo"
7660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661     break 2
7662   fi
7663 done
7664 done
7665 IFS=$as_save_IFS
7666
7667 fi
7668 fi
7669 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7670 if test -n "$ac_ct_LIPO"; then
7671   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7672 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7673 else
7674   { echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6; }
7676 fi
7677
7678   if test "x$ac_ct_LIPO" = x; then
7679     LIPO=":"
7680   else
7681     case $cross_compiling:$ac_tool_warned in
7682 yes:)
7683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7684 whose name does not start with the host triplet.  If you think this
7685 configuration is useful to you, please write to autoconf@gnu.org." >&5
7686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7687 whose name does not start with the host triplet.  If you think this
7688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7689 ac_tool_warned=yes ;;
7690 esac
7691     LIPO=$ac_ct_LIPO
7692   fi
7693 else
7694   LIPO="$ac_cv_prog_LIPO"
7695 fi
7696
7697     if test -n "$ac_tool_prefix"; then
7698   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7699 set dummy ${ac_tool_prefix}otool; ac_word=$2
7700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7702 if test "${ac_cv_prog_OTOOL+set}" = set; then
7703   echo $ECHO_N "(cached) $ECHO_C" >&6
7704 else
7705   if test -n "$OTOOL"; then
7706   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711   IFS=$as_save_IFS
7712   test -z "$as_dir" && as_dir=.
7713   for ac_exec_ext in '' $ac_executable_extensions; do
7714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717     break 2
7718   fi
7719 done
7720 done
7721 IFS=$as_save_IFS
7722
7723 fi
7724 fi
7725 OTOOL=$ac_cv_prog_OTOOL
7726 if test -n "$OTOOL"; then
7727   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7728 echo "${ECHO_T}$OTOOL" >&6; }
7729 else
7730   { echo "$as_me:$LINENO: result: no" >&5
7731 echo "${ECHO_T}no" >&6; }
7732 fi
7733
7734
7735 fi
7736 if test -z "$ac_cv_prog_OTOOL"; then
7737   ac_ct_OTOOL=$OTOOL
7738   # Extract the first word of "otool", so it can be a program name with args.
7739 set dummy otool; ac_word=$2
7740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7742 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7743   echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745   if test -n "$ac_ct_OTOOL"; then
7746   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7747 else
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   test -z "$as_dir" && as_dir=.
7753   for ac_exec_ext in '' $ac_executable_extensions; do
7754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755     ac_cv_prog_ac_ct_OTOOL="otool"
7756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757     break 2
7758   fi
7759 done
7760 done
7761 IFS=$as_save_IFS
7762
7763 fi
7764 fi
7765 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7766 if test -n "$ac_ct_OTOOL"; then
7767   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7768 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7769 else
7770   { echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6; }
7772 fi
7773
7774   if test "x$ac_ct_OTOOL" = x; then
7775     OTOOL=":"
7776   else
7777     case $cross_compiling:$ac_tool_warned in
7778 yes:)
7779 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7780 whose name does not start with the host triplet.  If you think this
7781 configuration is useful to you, please write to autoconf@gnu.org." >&5
7782 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7783 whose name does not start with the host triplet.  If you think this
7784 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7785 ac_tool_warned=yes ;;
7786 esac
7787     OTOOL=$ac_ct_OTOOL
7788   fi
7789 else
7790   OTOOL="$ac_cv_prog_OTOOL"
7791 fi
7792
7793     if test -n "$ac_tool_prefix"; then
7794   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7795 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7798 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7799   echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801   if test -n "$OTOOL64"; then
7802   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807   IFS=$as_save_IFS
7808   test -z "$as_dir" && as_dir=.
7809   for ac_exec_ext in '' $ac_executable_extensions; do
7810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813     break 2
7814   fi
7815 done
7816 done
7817 IFS=$as_save_IFS
7818
7819 fi
7820 fi
7821 OTOOL64=$ac_cv_prog_OTOOL64
7822 if test -n "$OTOOL64"; then
7823   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7824 echo "${ECHO_T}$OTOOL64" >&6; }
7825 else
7826   { echo "$as_me:$LINENO: result: no" >&5
7827 echo "${ECHO_T}no" >&6; }
7828 fi
7829
7830
7831 fi
7832 if test -z "$ac_cv_prog_OTOOL64"; then
7833   ac_ct_OTOOL64=$OTOOL64
7834   # Extract the first word of "otool64", so it can be a program name with args.
7835 set dummy otool64; ac_word=$2
7836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7838 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7839   echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841   if test -n "$ac_ct_OTOOL64"; then
7842   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7843 else
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7846 do
7847   IFS=$as_save_IFS
7848   test -z "$as_dir" && as_dir=.
7849   for ac_exec_ext in '' $ac_executable_extensions; do
7850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7851     ac_cv_prog_ac_ct_OTOOL64="otool64"
7852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853     break 2
7854   fi
7855 done
7856 done
7857 IFS=$as_save_IFS
7858
7859 fi
7860 fi
7861 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7862 if test -n "$ac_ct_OTOOL64"; then
7863   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7864 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7865 else
7866   { echo "$as_me:$LINENO: result: no" >&5
7867 echo "${ECHO_T}no" >&6; }
7868 fi
7869
7870   if test "x$ac_ct_OTOOL64" = x; then
7871     OTOOL64=":"
7872   else
7873     case $cross_compiling:$ac_tool_warned in
7874 yes:)
7875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7876 whose name does not start with the host triplet.  If you think this
7877 configuration is useful to you, please write to autoconf@gnu.org." >&5
7878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7879 whose name does not start with the host triplet.  If you think this
7880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7881 ac_tool_warned=yes ;;
7882 esac
7883     OTOOL64=$ac_ct_OTOOL64
7884   fi
7885 else
7886   OTOOL64="$ac_cv_prog_OTOOL64"
7887 fi
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7916 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7917 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   lt_cv_apple_cc_single_mod=no
7921       if test -z "${LT_MULTI_MODULE}"; then
7922         # By default we will add the -single_module flag. You can override
7923         # by either setting the environment variable LT_MULTI_MODULE
7924         # non-empty at configure time, or by adding -multi_module to the
7925         # link flags.
7926         rm -rf libconftest.dylib*
7927         echo "int foo(void){return 1;}" > conftest.c
7928         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7929 -dynamiclib -Wl,-single_module conftest.c" >&5
7930         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7931           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7932         _lt_result=$?
7933         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7934           lt_cv_apple_cc_single_mod=yes
7935         else
7936           cat conftest.err >&5
7937         fi
7938         rm -rf libconftest.dylib*
7939         rm -f conftest.*
7940       fi
7941 fi
7942 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7943 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7944     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7945 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7946 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7947   echo $ECHO_N "(cached) $ECHO_C" >&6
7948 else
7949   lt_cv_ld_exported_symbols_list=no
7950       save_LDFLAGS=$LDFLAGS
7951       echo "_main" > conftest.sym
7952       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7953       cat >conftest.$ac_ext <<_ACEOF
7954 /* confdefs.h.  */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h.  */
7959
7960 int
7961 main ()
7962 {
7963
7964   ;
7965   return 0;
7966 }
7967 _ACEOF
7968 rm -f conftest.$ac_objext conftest$ac_exeext
7969 if { (ac_try="$ac_link"
7970 case "(($ac_try" in
7971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972   *) ac_try_echo=$ac_try;;
7973 esac
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975   (eval "$ac_link") 2>conftest.er1
7976   ac_status=$?
7977   grep -v '^ *+' conftest.er1 >conftest.err
7978   rm -f conftest.er1
7979   cat conftest.err >&5
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); } && {
7982          test -z "$ac_c_werror_flag" ||
7983          test ! -s conftest.err
7984        } && test -s conftest$ac_exeext &&
7985        $as_test_x conftest$ac_exeext; then
7986   lt_cv_ld_exported_symbols_list=yes
7987 else
7988   echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991         lt_cv_ld_exported_symbols_list=no
7992 fi
7993
7994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7995       conftest$ac_exeext conftest.$ac_ext
7996         LDFLAGS="$save_LDFLAGS"
7997
7998 fi
7999 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8000 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8001     case $host_os in
8002     rhapsody* | darwin1.[012])
8003       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8004     darwin1.*)
8005       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8006     darwin*) # darwin 5.x on
8007       # if running on 10.5 or later, the deployment target defaults
8008       # to the OS version, if on x86, and 10.4, the deployment
8009       # target defaults to 10.4. Don't you love it?
8010       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8011         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8012           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8013         10.[012]*)
8014           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8015         10.*)
8016           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8017       esac
8018     ;;
8019   esac
8020     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8021       _lt_dar_single_mod='$single_module'
8022     fi
8023     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8024       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8025     else
8026       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8027     fi
8028     if test "$DSYMUTIL" != ":"; then
8029       _lt_dsymutil='~$DSYMUTIL $lib || :'
8030     else
8031       _lt_dsymutil=
8032     fi
8033     ;;
8034   esac
8035
8036 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8037 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8038 if test "${ac_cv_header_stdc+set}" = set; then
8039   echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041   cat >conftest.$ac_ext <<_ACEOF
8042 /* confdefs.h.  */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h.  */
8047 #include <stdlib.h>
8048 #include <stdarg.h>
8049 #include <string.h>
8050 #include <float.h>
8051
8052 int
8053 main ()
8054 {
8055
8056   ;
8057   return 0;
8058 }
8059 _ACEOF
8060 rm -f conftest.$ac_objext
8061 if { (ac_try="$ac_compile"
8062 case "(($ac_try" in
8063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064   *) ac_try_echo=$ac_try;;
8065 esac
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067   (eval "$ac_compile") 2>conftest.er1
8068   ac_status=$?
8069   grep -v '^ *+' conftest.er1 >conftest.err
8070   rm -f conftest.er1
8071   cat conftest.err >&5
8072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073   (exit $ac_status); } && {
8074          test -z "$ac_c_werror_flag" ||
8075          test ! -s conftest.err
8076        } && test -s conftest.$ac_objext; then
8077   ac_cv_header_stdc=yes
8078 else
8079   echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8081
8082         ac_cv_header_stdc=no
8083 fi
8084
8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086
8087 if test $ac_cv_header_stdc = yes; then
8088   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8089   cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h.  */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h.  */
8095 #include <string.h>
8096
8097 _ACEOF
8098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8099   $EGREP "memchr" >/dev/null 2>&1; then
8100   :
8101 else
8102   ac_cv_header_stdc=no
8103 fi
8104 rm -f conftest*
8105
8106 fi
8107
8108 if test $ac_cv_header_stdc = yes; then
8109   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8110   cat >conftest.$ac_ext <<_ACEOF
8111 /* confdefs.h.  */
8112 _ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h.  */
8116 #include <stdlib.h>
8117
8118 _ACEOF
8119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8120   $EGREP "free" >/dev/null 2>&1; then
8121   :
8122 else
8123   ac_cv_header_stdc=no
8124 fi
8125 rm -f conftest*
8126
8127 fi
8128
8129 if test $ac_cv_header_stdc = yes; then
8130   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8131   if test "$cross_compiling" = yes; then
8132   :
8133 else
8134   cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h.  */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h.  */
8140 #include <ctype.h>
8141 #include <stdlib.h>
8142 #if ((' ' & 0x0FF) == 0x020)
8143 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8144 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8145 #else
8146 # define ISLOWER(c) \
8147                    (('a' <= (c) && (c) <= 'i') \
8148                      || ('j' <= (c) && (c) <= 'r') \
8149                      || ('s' <= (c) && (c) <= 'z'))
8150 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8151 #endif
8152
8153 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8154 int
8155 main ()
8156 {
8157   int i;
8158   for (i = 0; i < 256; i++)
8159     if (XOR (islower (i), ISLOWER (i))
8160         || toupper (i) != TOUPPER (i))
8161       return 2;
8162   return 0;
8163 }
8164 _ACEOF
8165 rm -f conftest$ac_exeext
8166 if { (ac_try="$ac_link"
8167 case "(($ac_try" in
8168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169   *) ac_try_echo=$ac_try;;
8170 esac
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172   (eval "$ac_link") 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8176   { (case "(($ac_try" in
8177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178   *) ac_try_echo=$ac_try;;
8179 esac
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181   (eval "$ac_try") 2>&5
8182   ac_status=$?
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); }; }; then
8185   :
8186 else
8187   echo "$as_me: program exited with status $ac_status" >&5
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191 ( exit $ac_status )
8192 ac_cv_header_stdc=no
8193 fi
8194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8195 fi
8196
8197
8198 fi
8199 fi
8200 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8201 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8202 if test $ac_cv_header_stdc = yes; then
8203
8204 cat >>confdefs.h <<\_ACEOF
8205 #define STDC_HEADERS 1
8206 _ACEOF
8207
8208 fi
8209
8210 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8221                   inttypes.h stdint.h unistd.h
8222 do
8223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8227   echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229   cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h.  */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h.  */
8235 $ac_includes_default
8236
8237 #include <$ac_header>
8238 _ACEOF
8239 rm -f conftest.$ac_objext
8240 if { (ac_try="$ac_compile"
8241 case "(($ac_try" in
8242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243   *) ac_try_echo=$ac_try;;
8244 esac
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246   (eval "$ac_compile") 2>conftest.er1
8247   ac_status=$?
8248   grep -v '^ *+' conftest.er1 >conftest.err
8249   rm -f conftest.er1
8250   cat conftest.err >&5
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); } && {
8253          test -z "$ac_c_werror_flag" ||
8254          test ! -s conftest.err
8255        } && test -s conftest.$ac_objext; then
8256   eval "$as_ac_Header=yes"
8257 else
8258   echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8260
8261         eval "$as_ac_Header=no"
8262 fi
8263
8264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 fi
8266 ac_res=`eval echo '${'$as_ac_Header'}'`
8267                { echo "$as_me:$LINENO: result: $ac_res" >&5
8268 echo "${ECHO_T}$ac_res" >&6; }
8269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8270   cat >>confdefs.h <<_ACEOF
8271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8272 _ACEOF
8273
8274 fi
8275
8276 done
8277
8278
8279
8280 for ac_header in dlfcn.h
8281 do
8282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8286   echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288   cat >conftest.$ac_ext <<_ACEOF
8289 /* confdefs.h.  */
8290 _ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h.  */
8294 $ac_includes_default
8295
8296 #include <$ac_header>
8297 _ACEOF
8298 rm -f conftest.$ac_objext
8299 if { (ac_try="$ac_compile"
8300 case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305   (eval "$ac_compile") 2>conftest.er1
8306   ac_status=$?
8307   grep -v '^ *+' conftest.er1 >conftest.err
8308   rm -f conftest.er1
8309   cat conftest.err >&5
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); } && {
8312          test -z "$ac_c_werror_flag" ||
8313          test ! -s conftest.err
8314        } && test -s conftest.$ac_objext; then
8315   eval "$as_ac_Header=yes"
8316 else
8317   echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8319
8320         eval "$as_ac_Header=no"
8321 fi
8322
8323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 fi
8325 ac_res=`eval echo '${'$as_ac_Header'}'`
8326                { echo "$as_me:$LINENO: result: $ac_res" >&5
8327 echo "${ECHO_T}$ac_res" >&6; }
8328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8329   cat >>confdefs.h <<_ACEOF
8330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8331 _ACEOF
8332
8333 fi
8334
8335 done
8336
8337
8338
8339 ac_ext=cpp
8340 ac_cpp='$CXXCPP $CPPFLAGS'
8341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8344 if test -z "$CXX"; then
8345   if test -n "$CCC"; then
8346     CXX=$CCC
8347   else
8348     if test -n "$ac_tool_prefix"; then
8349   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8350   do
8351     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8355 if test "${ac_cv_prog_CXX+set}" = set; then
8356   echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358   if test -n "$CXX"; then
8359   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8360 else
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8363 do
8364   IFS=$as_save_IFS
8365   test -z "$as_dir" && as_dir=.
8366   for ac_exec_ext in '' $ac_executable_extensions; do
8367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8368     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8370     break 2
8371   fi
8372 done
8373 done
8374 IFS=$as_save_IFS
8375
8376 fi
8377 fi
8378 CXX=$ac_cv_prog_CXX
8379 if test -n "$CXX"; then
8380   { echo "$as_me:$LINENO: result: $CXX" >&5
8381 echo "${ECHO_T}$CXX" >&6; }
8382 else
8383   { echo "$as_me:$LINENO: result: no" >&5
8384 echo "${ECHO_T}no" >&6; }
8385 fi
8386
8387
8388     test -n "$CXX" && break
8389   done
8390 fi
8391 if test -z "$CXX"; then
8392   ac_ct_CXX=$CXX
8393   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8394 do
8395   # Extract the first word of "$ac_prog", so it can be a program name with args.
8396 set dummy $ac_prog; ac_word=$2
8397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8399 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402   if test -n "$ac_ct_CXX"; then
8403   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8404 else
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 for as_dir in $PATH
8407 do
8408   IFS=$as_save_IFS
8409   test -z "$as_dir" && as_dir=.
8410   for ac_exec_ext in '' $ac_executable_extensions; do
8411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8412     ac_cv_prog_ac_ct_CXX="$ac_prog"
8413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8414     break 2
8415   fi
8416 done
8417 done
8418 IFS=$as_save_IFS
8419
8420 fi
8421 fi
8422 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8423 if test -n "$ac_ct_CXX"; then
8424   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8425 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8426 else
8427   { echo "$as_me:$LINENO: result: no" >&5
8428 echo "${ECHO_T}no" >&6; }
8429 fi
8430
8431
8432   test -n "$ac_ct_CXX" && break
8433 done
8434
8435   if test "x$ac_ct_CXX" = x; then
8436     CXX="g++"
8437   else
8438     case $cross_compiling:$ac_tool_warned in
8439 yes:)
8440 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8441 whose name does not start with the host triplet.  If you think this
8442 configuration is useful to you, please write to autoconf@gnu.org." >&5
8443 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8444 whose name does not start with the host triplet.  If you think this
8445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8446 ac_tool_warned=yes ;;
8447 esac
8448     CXX=$ac_ct_CXX
8449   fi
8450 fi
8451
8452   fi
8453 fi
8454 # Provide some information about the compiler.
8455 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8456 ac_compiler=`set X $ac_compile; echo $2`
8457 { (ac_try="$ac_compiler --version >&5"
8458 case "(($ac_try" in
8459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460   *) ac_try_echo=$ac_try;;
8461 esac
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463   (eval "$ac_compiler --version >&5") 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }
8467 { (ac_try="$ac_compiler -v >&5"
8468 case "(($ac_try" in
8469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470   *) ac_try_echo=$ac_try;;
8471 esac
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473   (eval "$ac_compiler -v >&5") 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); }
8477 { (ac_try="$ac_compiler -V >&5"
8478 case "(($ac_try" in
8479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480   *) ac_try_echo=$ac_try;;
8481 esac
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483   (eval "$ac_compiler -V >&5") 2>&5
8484   ac_status=$?
8485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486   (exit $ac_status); }
8487
8488 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8489 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8490 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8491   echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493   cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h.  */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h.  */
8499
8500 int
8501 main ()
8502 {
8503 #ifndef __GNUC__
8504        choke me
8505 #endif
8506
8507   ;
8508   return 0;
8509 }
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8513 case "(($ac_try" in
8514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515   *) ac_try_echo=$ac_try;;
8516 esac
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518   (eval "$ac_compile") 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } && {
8525          test -z "$ac_cxx_werror_flag" ||
8526          test ! -s conftest.err
8527        } && test -s conftest.$ac_objext; then
8528   ac_compiler_gnu=yes
8529 else
8530   echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533         ac_compiler_gnu=no
8534 fi
8535
8536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8538
8539 fi
8540 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8541 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8542 GXX=`test $ac_compiler_gnu = yes && echo yes`
8543 ac_test_CXXFLAGS=${CXXFLAGS+set}
8544 ac_save_CXXFLAGS=$CXXFLAGS
8545 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8546 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8547 if test "${ac_cv_prog_cxx_g+set}" = set; then
8548   echo $ECHO_N "(cached) $ECHO_C" >&6
8549 else
8550   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8551    ac_cxx_werror_flag=yes
8552    ac_cv_prog_cxx_g=no
8553    CXXFLAGS="-g"
8554    cat >conftest.$ac_ext <<_ACEOF
8555 /* confdefs.h.  */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h.  */
8560
8561 int
8562 main ()
8563 {
8564
8565   ;
8566   return 0;
8567 }
8568 _ACEOF
8569 rm -f conftest.$ac_objext
8570 if { (ac_try="$ac_compile"
8571 case "(($ac_try" in
8572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573   *) ac_try_echo=$ac_try;;
8574 esac
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576   (eval "$ac_compile") 2>conftest.er1
8577   ac_status=$?
8578   grep -v '^ *+' conftest.er1 >conftest.err
8579   rm -f conftest.er1
8580   cat conftest.err >&5
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); } && {
8583          test -z "$ac_cxx_werror_flag" ||
8584          test ! -s conftest.err
8585        } && test -s conftest.$ac_objext; then
8586   ac_cv_prog_cxx_g=yes
8587 else
8588   echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8590
8591         CXXFLAGS=""
8592       cat >conftest.$ac_ext <<_ACEOF
8593 /* confdefs.h.  */
8594 _ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h.  */
8598
8599 int
8600 main ()
8601 {
8602
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 rm -f conftest.$ac_objext
8608 if { (ac_try="$ac_compile"
8609 case "(($ac_try" in
8610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611   *) ac_try_echo=$ac_try;;
8612 esac
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614   (eval "$ac_compile") 2>conftest.er1
8615   ac_status=$?
8616   grep -v '^ *+' conftest.er1 >conftest.err
8617   rm -f conftest.er1
8618   cat conftest.err >&5
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } && {
8621          test -z "$ac_cxx_werror_flag" ||
8622          test ! -s conftest.err
8623        } && test -s conftest.$ac_objext; then
8624   :
8625 else
8626   echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8628
8629         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8630          CXXFLAGS="-g"
8631          cat >conftest.$ac_ext <<_ACEOF
8632 /* confdefs.h.  */
8633 _ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h.  */
8637
8638 int
8639 main ()
8640 {
8641
8642   ;
8643   return 0;
8644 }
8645 _ACEOF
8646 rm -f conftest.$ac_objext
8647 if { (ac_try="$ac_compile"
8648 case "(($ac_try" in
8649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650   *) ac_try_echo=$ac_try;;
8651 esac
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653   (eval "$ac_compile") 2>conftest.er1
8654   ac_status=$?
8655   grep -v '^ *+' conftest.er1 >conftest.err
8656   rm -f conftest.er1
8657   cat conftest.err >&5
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); } && {
8660          test -z "$ac_cxx_werror_flag" ||
8661          test ! -s conftest.err
8662        } && test -s conftest.$ac_objext; then
8663   ac_cv_prog_cxx_g=yes
8664 else
8665   echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8667
8668
8669 fi
8670
8671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672 fi
8673
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 fi
8676
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8679 fi
8680 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8681 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8682 if test "$ac_test_CXXFLAGS" = set; then
8683   CXXFLAGS=$ac_save_CXXFLAGS
8684 elif test $ac_cv_prog_cxx_g = yes; then
8685   if test "$GXX" = yes; then
8686     CXXFLAGS="-g -O2"
8687   else
8688     CXXFLAGS="-g"
8689   fi
8690 else
8691   if test "$GXX" = yes; then
8692     CXXFLAGS="-O2"
8693   else
8694     CXXFLAGS=
8695   fi
8696 fi
8697 ac_ext=c
8698 ac_cpp='$CPP $CPPFLAGS'
8699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8702
8703 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8704     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8705     (test "X$CXX" != "Xg++"))) ; then
8706   ac_ext=cpp
8707 ac_cpp='$CXXCPP $CPPFLAGS'
8708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8711 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8712 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8713 if test -z "$CXXCPP"; then
8714   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8715   echo $ECHO_N "(cached) $ECHO_C" >&6
8716 else
8717       # Double quotes because CXXCPP needs to be expanded
8718     for CXXCPP in "$CXX -E" "/lib/cpp"
8719     do
8720       ac_preproc_ok=false
8721 for ac_cxx_preproc_warn_flag in '' yes
8722 do
8723   # Use a header file that comes with gcc, so configuring glibc
8724   # with a fresh cross-compiler works.
8725   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8726   # <limits.h> exists even on freestanding compilers.
8727   # On the NeXT, cc -E runs the code through the compiler's parser,
8728   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
8736 # include <limits.h>
8737 #else
8738 # include <assert.h>
8739 #endif
8740                      Syntax error
8741 _ACEOF
8742 if { (ac_try="$ac_cpp conftest.$ac_ext"
8743 case "(($ac_try" in
8744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745   *) ac_try_echo=$ac_try;;
8746 esac
8747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8748   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8749   ac_status=$?
8750   grep -v '^ *+' conftest.er1 >conftest.err
8751   rm -f conftest.er1
8752   cat conftest.err >&5
8753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754   (exit $ac_status); } >/dev/null && {
8755          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8756          test ! -s conftest.err
8757        }; then
8758   :
8759 else
8760   echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8762
8763   # Broken: fails on valid input.
8764 continue
8765 fi
8766
8767 rm -f conftest.err conftest.$ac_ext
8768
8769   # OK, works on sane cases.  Now check whether nonexistent headers
8770   # can be detected and how.
8771   cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h.  */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h.  */
8777 #include <ac_nonexistent.h>
8778 _ACEOF
8779 if { (ac_try="$ac_cpp conftest.$ac_ext"
8780 case "(($ac_try" in
8781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782   *) ac_try_echo=$ac_try;;
8783 esac
8784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8786   ac_status=$?
8787   grep -v '^ *+' conftest.er1 >conftest.err
8788   rm -f conftest.er1
8789   cat conftest.err >&5
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); } >/dev/null && {
8792          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8793          test ! -s conftest.err
8794        }; then
8795   # Broken: success on invalid input.
8796 continue
8797 else
8798   echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8800
8801   # Passes both tests.
8802 ac_preproc_ok=:
8803 break
8804 fi
8805
8806 rm -f conftest.err conftest.$ac_ext
8807
8808 done
8809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8810 rm -f conftest.err conftest.$ac_ext
8811 if $ac_preproc_ok; then
8812   break
8813 fi
8814
8815     done
8816     ac_cv_prog_CXXCPP=$CXXCPP
8817
8818 fi
8819   CXXCPP=$ac_cv_prog_CXXCPP
8820 else
8821   ac_cv_prog_CXXCPP=$CXXCPP
8822 fi
8823 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8824 echo "${ECHO_T}$CXXCPP" >&6; }
8825 ac_preproc_ok=false
8826 for ac_cxx_preproc_warn_flag in '' yes
8827 do
8828   # Use a header file that comes with gcc, so configuring glibc
8829   # with a fresh cross-compiler works.
8830   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8831   # <limits.h> exists even on freestanding compilers.
8832   # On the NeXT, cc -E runs the code through the compiler's parser,
8833   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
8841 # include <limits.h>
8842 #else
8843 # include <assert.h>
8844 #endif
8845                      Syntax error
8846 _ACEOF
8847 if { (ac_try="$ac_cpp conftest.$ac_ext"
8848 case "(($ac_try" in
8849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850   *) ac_try_echo=$ac_try;;
8851 esac
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8854   ac_status=$?
8855   grep -v '^ *+' conftest.er1 >conftest.err
8856   rm -f conftest.er1
8857   cat conftest.err >&5
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); } >/dev/null && {
8860          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8861          test ! -s conftest.err
8862        }; then
8863   :
8864 else
8865   echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8867
8868   # Broken: fails on valid input.
8869 continue
8870 fi
8871
8872 rm -f conftest.err conftest.$ac_ext
8873
8874   # OK, works on sane cases.  Now check whether nonexistent headers
8875   # can be detected and how.
8876   cat >conftest.$ac_ext <<_ACEOF
8877 /* confdefs.h.  */
8878 _ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h.  */
8882 #include <ac_nonexistent.h>
8883 _ACEOF
8884 if { (ac_try="$ac_cpp conftest.$ac_ext"
8885 case "(($ac_try" in
8886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887   *) ac_try_echo=$ac_try;;
8888 esac
8889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8890   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8891   ac_status=$?
8892   grep -v '^ *+' conftest.er1 >conftest.err
8893   rm -f conftest.er1
8894   cat conftest.err >&5
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); } >/dev/null && {
8897          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8898          test ! -s conftest.err
8899        }; then
8900   # Broken: success on invalid input.
8901 continue
8902 else
8903   echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8905
8906   # Passes both tests.
8907 ac_preproc_ok=:
8908 break
8909 fi
8910
8911 rm -f conftest.err conftest.$ac_ext
8912
8913 done
8914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8915 rm -f conftest.err conftest.$ac_ext
8916 if $ac_preproc_ok; then
8917   :
8918 else
8919   _lt_caught_CXX_error=yes
8920 fi
8921
8922 ac_ext=c
8923 ac_cpp='$CPP $CPPFLAGS'
8924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8927
8928 else
8929   _lt_caught_CXX_error=yes
8930 fi
8931
8932
8933
8934
8935
8936 # Set options
8937 # Check whether --enable-shared was given.
8938 if test "${enable_shared+set}" = set; then
8939   enableval=$enable_shared; p=${PACKAGE-default}
8940     case $enableval in
8941     yes) enable_shared=yes ;;
8942     no) enable_shared=no ;;
8943     *)
8944       enable_shared=no
8945       # Look at the argument we got.  We use all the common list separators.
8946       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8947       for pkg in $enableval; do
8948         IFS="$lt_save_ifs"
8949         if test "X$pkg" = "X$p"; then
8950           enable_shared=yes
8951         fi
8952       done
8953       IFS="$lt_save_ifs"
8954       ;;
8955     esac
8956 else
8957   enable_shared=yes
8958 fi
8959
8960
8961
8962
8963
8964
8965
8966 # Check whether --enable-static was given.
8967 if test "${enable_static+set}" = set; then
8968   enableval=$enable_static; p=${PACKAGE-default}
8969     case $enableval in
8970     yes) enable_static=yes ;;
8971     no) enable_static=no ;;
8972     *)
8973      enable_static=no
8974       # Look at the argument we got.  We use all the common list separators.
8975       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8976       for pkg in $enableval; do
8977         IFS="$lt_save_ifs"
8978         if test "X$pkg" = "X$p"; then
8979           enable_static=yes
8980         fi
8981       done
8982       IFS="$lt_save_ifs"
8983       ;;
8984     esac
8985 else
8986   enable_static=no
8987 fi
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998         enable_dlopen=no
8999
9000
9001   enable_win32_dll=no
9002
9003
9004
9005
9006
9007 # Check whether --with-pic was given.
9008 if test "${with_pic+set}" = set; then
9009   withval=$with_pic; pic_mode="$withval"
9010 else
9011   pic_mode=default
9012 fi
9013
9014
9015 test -z "$pic_mode" && pic_mode=default
9016
9017
9018
9019
9020
9021
9022
9023   # Check whether --enable-fast-install was given.
9024 if test "${enable_fast_install+set}" = set; then
9025   enableval=$enable_fast_install; p=${PACKAGE-default}
9026     case $enableval in
9027     yes) enable_fast_install=yes ;;
9028     no) enable_fast_install=no ;;
9029     *)
9030       enable_fast_install=no
9031       # Look at the argument we got.  We use all the common list separators.
9032       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9033       for pkg in $enableval; do
9034         IFS="$lt_save_ifs"
9035         if test "X$pkg" = "X$p"; then
9036           enable_fast_install=yes
9037         fi
9038       done
9039       IFS="$lt_save_ifs"
9040       ;;
9041     esac
9042 else
9043   enable_fast_install=yes
9044 fi
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056 # This can be used to rebuild libtool when needed
9057 LIBTOOL_DEPS="$ltmain"
9058
9059 # Always use our own libtool.
9060 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086 test -z "$LN_S" && LN_S="ln -s"
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101 if test -n "${ZSH_VERSION+set}" ; then
9102    setopt NO_GLOB_SUBST
9103 fi
9104
9105 { echo "$as_me:$LINENO: checking for objdir" >&5
9106 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9107 if test "${lt_cv_objdir+set}" = set; then
9108   echo $ECHO_N "(cached) $ECHO_C" >&6
9109 else
9110   rm -f .libs 2>/dev/null
9111 mkdir .libs 2>/dev/null
9112 if test -d .libs; then
9113   lt_cv_objdir=.libs
9114 else
9115   # MS-DOS does not allow filenames that begin with a dot.
9116   lt_cv_objdir=_libs
9117 fi
9118 rmdir .libs 2>/dev/null
9119 fi
9120 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9121 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9122 objdir=$lt_cv_objdir
9123
9124
9125
9126
9127
9128 cat >>confdefs.h <<_ACEOF
9129 #define LT_OBJDIR "$lt_cv_objdir/"
9130 _ACEOF
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148 case $host_os in
9149 aix3*)
9150   # AIX sometimes has problems with the GCC collect2 program.  For some
9151   # reason, if we set the COLLECT_NAMES environment variable, the problems
9152   # vanish in a puff of smoke.
9153   if test "X${COLLECT_NAMES+set}" != Xset; then
9154     COLLECT_NAMES=
9155     export COLLECT_NAMES
9156   fi
9157   ;;
9158 esac
9159
9160 # Sed substitution that helps us do robust quoting.  It backslashifies
9161 # metacharacters that are still active within double-quoted strings.
9162 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9163
9164 # Same as above, but do not quote variable references.
9165 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9166
9167 # Sed substitution to delay expansion of an escaped shell variable in a
9168 # double_quote_subst'ed string.
9169 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9170
9171 # Sed substitution to delay expansion of an escaped single quote.
9172 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9173
9174 # Sed substitution to avoid accidental globbing in evaled expressions
9175 no_glob_subst='s/\*/\\\*/g'
9176
9177 # Global variables:
9178 ofile=libtool
9179 can_build_shared=yes
9180
9181 # All known linkers require a `.a' archive for static linking (except MSVC,
9182 # which needs '.lib').
9183 libext=a
9184
9185 with_gnu_ld="$lt_cv_prog_gnu_ld"
9186
9187 old_CC="$CC"
9188 old_CFLAGS="$CFLAGS"
9189
9190 # Set sane defaults for various variables
9191 test -z "$CC" && CC=cc
9192 test -z "$LTCC" && LTCC=$CC
9193 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9194 test -z "$LD" && LD=ld
9195 test -z "$ac_objext" && ac_objext=o
9196
9197 for cc_temp in $compiler""; do
9198   case $cc_temp in
9199     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9200     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9201     \-*) ;;
9202     *) break;;
9203   esac
9204 done
9205 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9206
9207
9208 # Only perform the check for file, if the check method requires it
9209 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9210 case $deplibs_check_method in
9211 file_magic*)
9212   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9213     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9214 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9215 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218   case $MAGIC_CMD in
9219 [\\/*] |  ?:[\\/]*)
9220   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9221   ;;
9222 *)
9223   lt_save_MAGIC_CMD="$MAGIC_CMD"
9224   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9225   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9226   for ac_dir in $ac_dummy; do
9227     IFS="$lt_save_ifs"
9228     test -z "$ac_dir" && ac_dir=.
9229     if test -f $ac_dir/${ac_tool_prefix}file; then
9230       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9231       if test -n "$file_magic_test_file"; then
9232         case $deplibs_check_method in
9233         "file_magic "*)
9234           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9235           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9236           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9237             $EGREP "$file_magic_regex" > /dev/null; then
9238             :
9239           else
9240             cat <<_LT_EOF 1>&2
9241
9242 *** Warning: the command libtool uses to detect shared libraries,
9243 *** $file_magic_cmd, produces output that libtool cannot recognize.
9244 *** The result is that libtool may fail to recognize shared libraries
9245 *** as such.  This will affect the creation of libtool libraries that
9246 *** depend on shared libraries, but programs linked with such libtool
9247 *** libraries will work regardless of this problem.  Nevertheless, you
9248 *** may want to report the problem to your system manager and/or to
9249 *** bug-libtool@gnu.org
9250
9251 _LT_EOF
9252           fi ;;
9253         esac
9254       fi
9255       break
9256     fi
9257   done
9258   IFS="$lt_save_ifs"
9259   MAGIC_CMD="$lt_save_MAGIC_CMD"
9260   ;;
9261 esac
9262 fi
9263
9264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9265 if test -n "$MAGIC_CMD"; then
9266   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9267 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9268 else
9269   { echo "$as_me:$LINENO: result: no" >&5
9270 echo "${ECHO_T}no" >&6; }
9271 fi
9272
9273
9274
9275
9276
9277 if test -z "$lt_cv_path_MAGIC_CMD"; then
9278   if test -n "$ac_tool_prefix"; then
9279     { echo "$as_me:$LINENO: checking for file" >&5
9280 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9281 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9282   echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284   case $MAGIC_CMD in
9285 [\\/*] |  ?:[\\/]*)
9286   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9287   ;;
9288 *)
9289   lt_save_MAGIC_CMD="$MAGIC_CMD"
9290   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9291   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9292   for ac_dir in $ac_dummy; do
9293     IFS="$lt_save_ifs"
9294     test -z "$ac_dir" && ac_dir=.
9295     if test -f $ac_dir/file; then
9296       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9297       if test -n "$file_magic_test_file"; then
9298         case $deplibs_check_method in
9299         "file_magic "*)
9300           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9301           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9302           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9303             $EGREP "$file_magic_regex" > /dev/null; then
9304             :
9305           else
9306             cat <<_LT_EOF 1>&2
9307
9308 *** Warning: the command libtool uses to detect shared libraries,
9309 *** $file_magic_cmd, produces output that libtool cannot recognize.
9310 *** The result is that libtool may fail to recognize shared libraries
9311 *** as such.  This will affect the creation of libtool libraries that
9312 *** depend on shared libraries, but programs linked with such libtool
9313 *** libraries will work regardless of this problem.  Nevertheless, you
9314 *** may want to report the problem to your system manager and/or to
9315 *** bug-libtool@gnu.org
9316
9317 _LT_EOF
9318           fi ;;
9319         esac
9320       fi
9321       break
9322     fi
9323   done
9324   IFS="$lt_save_ifs"
9325   MAGIC_CMD="$lt_save_MAGIC_CMD"
9326   ;;
9327 esac
9328 fi
9329
9330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9331 if test -n "$MAGIC_CMD"; then
9332   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9333 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9334 else
9335   { echo "$as_me:$LINENO: result: no" >&5
9336 echo "${ECHO_T}no" >&6; }
9337 fi
9338
9339
9340   else
9341     MAGIC_CMD=:
9342   fi
9343 fi
9344
9345   fi
9346   ;;
9347 esac
9348
9349 # Use C for the default configuration in the libtool script
9350
9351 lt_save_CC="$CC"
9352 ac_ext=c
9353 ac_cpp='$CPP $CPPFLAGS'
9354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9357
9358
9359 # Source file extension for C test sources.
9360 ac_ext=c
9361
9362 # Object file extension for compiled C test sources.
9363 objext=o
9364 objext=$objext
9365
9366 # Code to be used in simple compile tests
9367 lt_simple_compile_test_code="int some_variable = 0;"
9368
9369 # Code to be used in simple link tests
9370 lt_simple_link_test_code='int main(){return(0);}'
9371
9372
9373
9374
9375
9376
9377
9378 # If no C compiler was specified, use CC.
9379 LTCC=${LTCC-"$CC"}
9380
9381 # If no C compiler flags were specified, use CFLAGS.
9382 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9383
9384 # Allow CC to be a program name with arguments.
9385 compiler=$CC
9386
9387 # Save the default compiler, since it gets overwritten when the other
9388 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9389 compiler_DEFAULT=$CC
9390
9391 # save warnings/boilerplate of simple test code
9392 ac_outfile=conftest.$ac_objext
9393 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9394 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9395 _lt_compiler_boilerplate=`cat conftest.err`
9396 $RM conftest*
9397
9398 ac_outfile=conftest.$ac_objext
9399 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9400 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9401 _lt_linker_boilerplate=`cat conftest.err`
9402 $RM -r conftest*
9403
9404
9405 ## CAVEAT EMPTOR:
9406 ## There is no encapsulation within the following macros, do not change
9407 ## the running order or otherwise move them around unless you know exactly
9408 ## what you are doing...
9409 if test -n "$compiler"; then
9410
9411 lt_prog_compiler_no_builtin_flag=
9412
9413 if test "$GCC" = yes; then
9414   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9415
9416   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9417 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9418 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9419   echo $ECHO_N "(cached) $ECHO_C" >&6
9420 else
9421   lt_cv_prog_compiler_rtti_exceptions=no
9422    ac_outfile=conftest.$ac_objext
9423    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9424    lt_compiler_flag="-fno-rtti -fno-exceptions"
9425    # Insert the option either (1) after the last *FLAGS variable, or
9426    # (2) before a word containing "conftest.", or (3) at the end.
9427    # Note that $ac_compile itself does not contain backslashes and begins
9428    # with a dollar sign (not a hyphen), so the echo should work correctly.
9429    # The option is referenced via a variable to avoid confusing sed.
9430    lt_compile=`echo "$ac_compile" | $SED \
9431    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9432    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9433    -e 's:$: $lt_compiler_flag:'`
9434    (eval echo "\"\$as_me:9434: $lt_compile\"" >&5)
9435    (eval "$lt_compile" 2>conftest.err)
9436    ac_status=$?
9437    cat conftest.err >&5
9438    echo "$as_me:9438: \$? = $ac_status" >&5
9439    if (exit $ac_status) && test -s "$ac_outfile"; then
9440      # The compiler can only warn and ignore the option if not recognized
9441      # So say no if there are warnings other than the usual output.
9442      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9443      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9444      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9445        lt_cv_prog_compiler_rtti_exceptions=yes
9446      fi
9447    fi
9448    $RM conftest*
9449
9450 fi
9451 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9452 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9453
9454 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9455     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9456 else
9457     :
9458 fi
9459
9460 fi
9461
9462
9463
9464
9465
9466
9467   lt_prog_compiler_wl=
9468 lt_prog_compiler_pic=
9469 lt_prog_compiler_static=
9470
9471 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9472 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9473
9474   if test "$GCC" = yes; then
9475     lt_prog_compiler_wl='-Wl,'
9476     lt_prog_compiler_static='-static'
9477
9478     case $host_os in
9479       aix*)
9480       # All AIX code is PIC.
9481       if test "$host_cpu" = ia64; then
9482         # AIX 5 now supports IA64 processor
9483         lt_prog_compiler_static='-Bstatic'
9484       fi
9485       ;;
9486
9487     amigaos*)
9488       case $host_cpu in
9489       powerpc)
9490             # see comment about AmigaOS4 .so support
9491             lt_prog_compiler_pic='-fPIC'
9492         ;;
9493       m68k)
9494             # FIXME: we need at least 68020 code to build shared libraries, but
9495             # adding the `-m68020' flag to GCC prevents building anything better,
9496             # like `-m68040'.
9497             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9498         ;;
9499       esac
9500       ;;
9501
9502     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9503       # PIC is the default for these OSes.
9504       ;;
9505
9506     mingw* | cygwin* | pw32* | os2* | cegcc*)
9507       # This hack is so that the source file can tell whether it is being
9508       # built for inclusion in a dll (and should export symbols for example).
9509       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9510       # (--disable-auto-import) libraries
9511       lt_prog_compiler_pic='-DDLL_EXPORT'
9512       ;;
9513
9514     darwin* | rhapsody*)
9515       # PIC is the default on this platform
9516       # Common symbols not allowed in MH_DYLIB files
9517       lt_prog_compiler_pic='-fno-common'
9518       ;;
9519
9520     hpux*)
9521       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9522       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9523       # sets the default TLS model and affects inlining.
9524       case $host_cpu in
9525       hppa*64*)
9526         # +Z the default
9527         ;;
9528       *)
9529         lt_prog_compiler_pic='-fPIC'
9530         ;;
9531       esac
9532       ;;
9533
9534     interix[3-9]*)
9535       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9536       # Instead, we relocate shared libraries at runtime.
9537       ;;
9538
9539     msdosdjgpp*)
9540       # Just because we use GCC doesn't mean we suddenly get shared libraries
9541       # on systems that don't support them.
9542       lt_prog_compiler_can_build_shared=no
9543       enable_shared=no
9544       ;;
9545
9546     *nto* | *qnx*)
9547       # QNX uses GNU C++, but need to define -shared option too, otherwise
9548       # it will coredump.
9549       lt_prog_compiler_pic='-fPIC -shared'
9550       ;;
9551
9552     sysv4*MP*)
9553       if test -d /usr/nec; then
9554         lt_prog_compiler_pic=-Kconform_pic
9555       fi
9556       ;;
9557
9558     *)
9559       lt_prog_compiler_pic='-fPIC'
9560       ;;
9561     esac
9562   else
9563     # PORTME Check for flag to pass linker flags through the system compiler.
9564     case $host_os in
9565     aix*)
9566       lt_prog_compiler_wl='-Wl,'
9567       if test "$host_cpu" = ia64; then
9568         # AIX 5 now supports IA64 processor
9569         lt_prog_compiler_static='-Bstatic'
9570       else
9571         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9572       fi
9573       ;;
9574
9575     mingw* | cygwin* | pw32* | os2* | cegcc*)
9576       # This hack is so that the source file can tell whether it is being
9577       # built for inclusion in a dll (and should export symbols for example).
9578       lt_prog_compiler_pic='-DDLL_EXPORT'
9579       ;;
9580
9581     hpux9* | hpux10* | hpux11*)
9582       lt_prog_compiler_wl='-Wl,'
9583       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9584       # not for PA HP-UX.
9585       case $host_cpu in
9586       hppa*64*|ia64*)
9587         # +Z the default
9588         ;;
9589       *)
9590         lt_prog_compiler_pic='+Z'
9591         ;;
9592       esac
9593       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9594       lt_prog_compiler_static='${wl}-a ${wl}archive'
9595       ;;
9596
9597     irix5* | irix6* | nonstopux*)
9598       lt_prog_compiler_wl='-Wl,'
9599       # PIC (with -KPIC) is the default.
9600       lt_prog_compiler_static='-non_shared'
9601       ;;
9602
9603     linux* | k*bsd*-gnu)
9604       case $cc_basename in
9605       # old Intel for x86_64 which still supported -KPIC.
9606       ecc*)
9607         lt_prog_compiler_wl='-Wl,'
9608         lt_prog_compiler_pic='-KPIC'
9609         lt_prog_compiler_static='-static'
9610         ;;
9611       # icc used to be incompatible with GCC.
9612       # ICC 10 doesn't accept -KPIC any more.
9613       icc* | ifort*)
9614         lt_prog_compiler_wl='-Wl,'
9615         lt_prog_compiler_pic='-fPIC'
9616         lt_prog_compiler_static='-static'
9617         ;;
9618       # Lahey Fortran 8.1.
9619       lf95*)
9620         lt_prog_compiler_wl='-Wl,'
9621         lt_prog_compiler_pic='--shared'
9622         lt_prog_compiler_static='--static'
9623         ;;
9624       pgcc* | pgf77* | pgf90* | pgf95*)
9625         # Portland Group compilers (*not* the Pentium gcc compiler,
9626         # which looks to be a dead project)
9627         lt_prog_compiler_wl='-Wl,'
9628         lt_prog_compiler_pic='-fpic'
9629         lt_prog_compiler_static='-Bstatic'
9630         ;;
9631       ccc*)
9632         lt_prog_compiler_wl='-Wl,'
9633         # All Alpha code is PIC.
9634         lt_prog_compiler_static='-non_shared'
9635         ;;
9636       xl*)
9637         # IBM XL C 8.0/Fortran 10.1 on PPC
9638         lt_prog_compiler_wl='-Wl,'
9639         lt_prog_compiler_pic='-qpic'
9640         lt_prog_compiler_static='-qstaticlink'
9641         ;;
9642       *)
9643         case `$CC -V 2>&1 | sed 5q` in
9644         *Sun\ C*)
9645           # Sun C 5.9
9646           lt_prog_compiler_pic='-KPIC'
9647           lt_prog_compiler_static='-Bstatic'
9648           lt_prog_compiler_wl='-Wl,'
9649           ;;
9650         *Sun\ F*)
9651           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9652           lt_prog_compiler_pic='-KPIC'
9653           lt_prog_compiler_static='-Bstatic'
9654           lt_prog_compiler_wl=''
9655           ;;
9656         esac
9657         ;;
9658       esac
9659       ;;
9660
9661     newsos6)
9662       lt_prog_compiler_pic='-KPIC'
9663       lt_prog_compiler_static='-Bstatic'
9664       ;;
9665
9666     *nto* | *qnx*)
9667       # QNX uses GNU C++, but need to define -shared option too, otherwise
9668       # it will coredump.
9669       lt_prog_compiler_pic='-fPIC -shared'
9670       ;;
9671
9672     osf3* | osf4* | osf5*)
9673       lt_prog_compiler_wl='-Wl,'
9674       # All OSF/1 code is PIC.
9675       lt_prog_compiler_static='-non_shared'
9676       ;;
9677
9678     rdos*)
9679       lt_prog_compiler_static='-non_shared'
9680       ;;
9681
9682     solaris*)
9683       lt_prog_compiler_pic='-KPIC'
9684       lt_prog_compiler_static='-Bstatic'
9685       case $cc_basename in
9686       f77* | f90* | f95*)
9687         lt_prog_compiler_wl='-Qoption ld ';;
9688       *)
9689         lt_prog_compiler_wl='-Wl,';;
9690       esac
9691       ;;
9692
9693     sunos4*)
9694       lt_prog_compiler_wl='-Qoption ld '
9695       lt_prog_compiler_pic='-PIC'
9696       lt_prog_compiler_static='-Bstatic'
9697       ;;
9698
9699     sysv4 | sysv4.2uw2* | sysv4.3*)
9700       lt_prog_compiler_wl='-Wl,'
9701       lt_prog_compiler_pic='-KPIC'
9702       lt_prog_compiler_static='-Bstatic'
9703       ;;
9704
9705     sysv4*MP*)
9706       if test -d /usr/nec ;then
9707         lt_prog_compiler_pic='-Kconform_pic'
9708         lt_prog_compiler_static='-Bstatic'
9709       fi
9710       ;;
9711
9712     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9713       lt_prog_compiler_wl='-Wl,'
9714       lt_prog_compiler_pic='-KPIC'
9715       lt_prog_compiler_static='-Bstatic'
9716       ;;
9717
9718     unicos*)
9719       lt_prog_compiler_wl='-Wl,'
9720       lt_prog_compiler_can_build_shared=no
9721       ;;
9722
9723     uts4*)
9724       lt_prog_compiler_pic='-pic'
9725       lt_prog_compiler_static='-Bstatic'
9726       ;;
9727
9728     *)
9729       lt_prog_compiler_can_build_shared=no
9730       ;;
9731     esac
9732   fi
9733
9734 case $host_os in
9735   # For platforms which do not support PIC, -DPIC is meaningless:
9736   *djgpp*)
9737     lt_prog_compiler_pic=
9738     ;;
9739   *)
9740     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9741     ;;
9742 esac
9743 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9744 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9745
9746
9747
9748
9749
9750
9751 #
9752 # Check to make sure the PIC flag actually works.
9753 #
9754 if test -n "$lt_prog_compiler_pic"; then
9755   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9756 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9757 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9758   echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760   lt_cv_prog_compiler_pic_works=no
9761    ac_outfile=conftest.$ac_objext
9762    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9763    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9764    # Insert the option either (1) after the last *FLAGS variable, or
9765    # (2) before a word containing "conftest.", or (3) at the end.
9766    # Note that $ac_compile itself does not contain backslashes and begins
9767    # with a dollar sign (not a hyphen), so the echo should work correctly.
9768    # The option is referenced via a variable to avoid confusing sed.
9769    lt_compile=`echo "$ac_compile" | $SED \
9770    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9771    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9772    -e 's:$: $lt_compiler_flag:'`
9773    (eval echo "\"\$as_me:9773: $lt_compile\"" >&5)
9774    (eval "$lt_compile" 2>conftest.err)
9775    ac_status=$?
9776    cat conftest.err >&5
9777    echo "$as_me:9777: \$? = $ac_status" >&5
9778    if (exit $ac_status) && test -s "$ac_outfile"; then
9779      # The compiler can only warn and ignore the option if not recognized
9780      # So say no if there are warnings other than the usual output.
9781      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9782      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9783      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9784        lt_cv_prog_compiler_pic_works=yes
9785      fi
9786    fi
9787    $RM conftest*
9788
9789 fi
9790 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9791 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9792
9793 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9794     case $lt_prog_compiler_pic in
9795      "" | " "*) ;;
9796      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9797      esac
9798 else
9799     lt_prog_compiler_pic=
9800      lt_prog_compiler_can_build_shared=no
9801 fi
9802
9803 fi
9804
9805
9806
9807
9808
9809
9810 #
9811 # Check to make sure the static flag actually works.
9812 #
9813 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9814 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9815 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9816 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9817   echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819   lt_cv_prog_compiler_static_works=no
9820    save_LDFLAGS="$LDFLAGS"
9821    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9822    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9823    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9824      # The linker can only warn and ignore the option if not recognized
9825      # So say no if there are warnings
9826      if test -s conftest.err; then
9827        # Append any errors to the config.log.
9828        cat conftest.err 1>&5
9829        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9830        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9831        if diff conftest.exp conftest.er2 >/dev/null; then
9832          lt_cv_prog_compiler_static_works=yes
9833        fi
9834      else
9835        lt_cv_prog_compiler_static_works=yes
9836      fi
9837    fi
9838    $RM -r conftest*
9839    LDFLAGS="$save_LDFLAGS"
9840
9841 fi
9842 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9843 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9844
9845 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9846     :
9847 else
9848     lt_prog_compiler_static=
9849 fi
9850
9851
9852
9853
9854
9855
9856
9857   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9858 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9859 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9860   echo $ECHO_N "(cached) $ECHO_C" >&6
9861 else
9862   lt_cv_prog_compiler_c_o=no
9863    $RM -r conftest 2>/dev/null
9864    mkdir conftest
9865    cd conftest
9866    mkdir out
9867    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9868
9869    lt_compiler_flag="-o out/conftest2.$ac_objext"
9870    # Insert the option either (1) after the last *FLAGS variable, or
9871    # (2) before a word containing "conftest.", or (3) at the end.
9872    # Note that $ac_compile itself does not contain backslashes and begins
9873    # with a dollar sign (not a hyphen), so the echo should work correctly.
9874    lt_compile=`echo "$ac_compile" | $SED \
9875    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9876    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9877    -e 's:$: $lt_compiler_flag:'`
9878    (eval echo "\"\$as_me:9878: $lt_compile\"" >&5)
9879    (eval "$lt_compile" 2>out/conftest.err)
9880    ac_status=$?
9881    cat out/conftest.err >&5
9882    echo "$as_me:9882: \$? = $ac_status" >&5
9883    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9884    then
9885      # The compiler can only warn and ignore the option if not recognized
9886      # So say no if there are warnings
9887      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9888      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9889      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9890        lt_cv_prog_compiler_c_o=yes
9891      fi
9892    fi
9893    chmod u+w . 2>&5
9894    $RM conftest*
9895    # SGI C++ compiler will create directory out/ii_files/ for
9896    # template instantiation
9897    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9898    $RM out/* && rmdir out
9899    cd ..
9900    $RM -r conftest
9901    $RM conftest*
9902
9903 fi
9904 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9905 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9906
9907
9908
9909
9910
9911
9912   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9913 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9914 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9915   echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917   lt_cv_prog_compiler_c_o=no
9918    $RM -r conftest 2>/dev/null
9919    mkdir conftest
9920    cd conftest
9921    mkdir out
9922    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9923
9924    lt_compiler_flag="-o out/conftest2.$ac_objext"
9925    # Insert the option either (1) after the last *FLAGS variable, or
9926    # (2) before a word containing "conftest.", or (3) at the end.
9927    # Note that $ac_compile itself does not contain backslashes and begins
9928    # with a dollar sign (not a hyphen), so the echo should work correctly.
9929    lt_compile=`echo "$ac_compile" | $SED \
9930    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9931    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9932    -e 's:$: $lt_compiler_flag:'`
9933    (eval echo "\"\$as_me:9933: $lt_compile\"" >&5)
9934    (eval "$lt_compile" 2>out/conftest.err)
9935    ac_status=$?
9936    cat out/conftest.err >&5
9937    echo "$as_me:9937: \$? = $ac_status" >&5
9938    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9939    then
9940      # The compiler can only warn and ignore the option if not recognized
9941      # So say no if there are warnings
9942      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9943      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9944      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9945        lt_cv_prog_compiler_c_o=yes
9946      fi
9947    fi
9948    chmod u+w . 2>&5
9949    $RM conftest*
9950    # SGI C++ compiler will create directory out/ii_files/ for
9951    # template instantiation
9952    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9953    $RM out/* && rmdir out
9954    cd ..
9955    $RM -r conftest
9956    $RM conftest*
9957
9958 fi
9959 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9960 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9961
9962
9963
9964
9965 hard_links="nottested"
9966 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9967   # do not overwrite the value of need_locks provided by the user
9968   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9969 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9970   hard_links=yes
9971   $RM conftest*
9972   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9973   touch conftest.a
9974   ln conftest.a conftest.b 2>&5 || hard_links=no
9975   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9976   { echo "$as_me:$LINENO: result: $hard_links" >&5
9977 echo "${ECHO_T}$hard_links" >&6; }
9978   if test "$hard_links" = no; then
9979     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9980 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9981     need_locks=warn
9982   fi
9983 else
9984   need_locks=no
9985 fi
9986
9987
9988
9989
9990
9991
9992   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9993 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9994
9995   runpath_var=
9996   allow_undefined_flag=
9997   always_export_symbols=no
9998   archive_cmds=
9999   archive_expsym_cmds=
10000   compiler_needs_object=no
10001   enable_shared_with_static_runtimes=no
10002   export_dynamic_flag_spec=
10003   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10004   hardcode_automatic=no
10005   hardcode_direct=no
10006   hardcode_direct_absolute=no
10007   hardcode_libdir_flag_spec=
10008   hardcode_libdir_flag_spec_ld=
10009   hardcode_libdir_separator=
10010   hardcode_minus_L=no
10011   hardcode_shlibpath_var=unsupported
10012   inherit_rpath=no
10013   link_all_deplibs=unknown
10014   module_cmds=
10015   module_expsym_cmds=
10016   old_archive_from_new_cmds=
10017   old_archive_from_expsyms_cmds=
10018   thread_safe_flag_spec=
10019   whole_archive_flag_spec=
10020   # include_expsyms should be a list of space-separated symbols to be *always*
10021   # included in the symbol list
10022   include_expsyms=
10023   # exclude_expsyms can be an extended regexp of symbols to exclude
10024   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10025   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10026   # as well as any symbol that contains `d'.
10027   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10028   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10029   # platforms (ab)use it in PIC code, but their linkers get confused if
10030   # the symbol is explicitly referenced.  Since portable code cannot
10031   # rely on this symbol name, it's probably fine to never include it in
10032   # preloaded symbol tables.
10033   # Exclude shared library initialization/finalization symbols.
10034   extract_expsyms_cmds=
10035
10036   case $host_os in
10037   cygwin* | mingw* | pw32* | cegcc*)
10038     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10039     # When not using gcc, we currently assume that we are using
10040     # Microsoft Visual C++.
10041     if test "$GCC" != yes; then
10042       with_gnu_ld=no
10043     fi
10044     ;;
10045   interix*)
10046     # we just hope/assume this is gcc and not c89 (= MSVC++)
10047     with_gnu_ld=yes
10048     ;;
10049   openbsd*)
10050     with_gnu_ld=no
10051     ;;
10052   esac
10053
10054   ld_shlibs=yes
10055   if test "$with_gnu_ld" = yes; then
10056     # If archive_cmds runs LD, not CC, wlarc should be empty
10057     wlarc='${wl}'
10058
10059     # Set some defaults for GNU ld with shared library support. These
10060     # are reset later if shared libraries are not supported. Putting them
10061     # here allows them to be overridden if necessary.
10062     runpath_var=LD_RUN_PATH
10063     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10064     export_dynamic_flag_spec='${wl}--export-dynamic'
10065     # ancient GNU ld didn't support --whole-archive et. al.
10066     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10067       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10068     else
10069       whole_archive_flag_spec=
10070     fi
10071     supports_anon_versioning=no
10072     case `$LD -v 2>&1` in
10073       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10074       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10075       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10076       *\ 2.11.*) ;; # other 2.11 versions
10077       *) supports_anon_versioning=yes ;;
10078     esac
10079
10080     # See if GNU ld supports shared libraries.
10081     case $host_os in
10082     aix[3-9]*)
10083       # On AIX/PPC, the GNU linker is very broken
10084       if test "$host_cpu" != ia64; then
10085         ld_shlibs=no
10086         cat <<_LT_EOF 1>&2
10087
10088 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10089 *** to be unable to reliably create shared libraries on AIX.
10090 *** Therefore, libtool is disabling shared libraries support.  If you
10091 *** really care for shared libraries, you may want to modify your PATH
10092 *** so that a non-GNU linker is found, and then restart.
10093
10094 _LT_EOF
10095       fi
10096       ;;
10097
10098     amigaos*)
10099       case $host_cpu in
10100       powerpc)
10101             # see comment about AmigaOS4 .so support
10102             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10103             archive_expsym_cmds=''
10104         ;;
10105       m68k)
10106             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)'
10107             hardcode_libdir_flag_spec='-L$libdir'
10108             hardcode_minus_L=yes
10109         ;;
10110       esac
10111       ;;
10112
10113     beos*)
10114       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10115         allow_undefined_flag=unsupported
10116         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10117         # support --undefined.  This deserves some investigation.  FIXME
10118         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10119       else
10120         ld_shlibs=no
10121       fi
10122       ;;
10123
10124     cygwin* | mingw* | pw32* | cegcc*)
10125       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10126       # as there is no search path for DLLs.
10127       hardcode_libdir_flag_spec='-L$libdir'
10128       allow_undefined_flag=unsupported
10129       always_export_symbols=no
10130       enable_shared_with_static_runtimes=yes
10131       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10132
10133       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10134         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10135         # If the export-symbols file already is a .def file (1st line
10136         # is EXPORTS), use it as is; otherwise, prepend...
10137         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10138           cp $export_symbols $output_objdir/$soname.def;
10139         else
10140           echo EXPORTS > $output_objdir/$soname.def;
10141           cat $export_symbols >> $output_objdir/$soname.def;
10142         fi~
10143         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10144       else
10145         ld_shlibs=no
10146       fi
10147       ;;
10148
10149     interix[3-9]*)
10150       hardcode_direct=no
10151       hardcode_shlibpath_var=no
10152       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10153       export_dynamic_flag_spec='${wl}-E'
10154       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10155       # Instead, shared libraries are loaded at an image base (0x10000000 by
10156       # default) and relocated if they conflict, which is a slow very memory
10157       # consuming and fragmenting process.  To avoid this, we pick a random,
10158       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10159       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10160       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10161       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'
10162       ;;
10163
10164     gnu* | linux* | tpf* | k*bsd*-gnu)
10165       tmp_diet=no
10166       if test "$host_os" = linux-dietlibc; then
10167         case $cc_basename in
10168           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10169         esac
10170       fi
10171       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10172          && test "$tmp_diet" = no
10173       then
10174         tmp_addflag=
10175         tmp_sharedflag='-shared'
10176         case $cc_basename,$host_cpu in
10177         pgcc*)                          # Portland Group C compiler
10178           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'
10179           tmp_addflag=' $pic_flag'
10180           ;;
10181         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10182           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'
10183           tmp_addflag=' $pic_flag -Mnomain' ;;
10184         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10185           tmp_addflag=' -i_dynamic' ;;
10186         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10187           tmp_addflag=' -i_dynamic -nofor_main' ;;
10188         ifc* | ifort*)                  # Intel Fortran compiler
10189           tmp_addflag=' -nofor_main' ;;
10190         lf95*)                          # Lahey Fortran 8.1
10191           whole_archive_flag_spec=
10192           tmp_sharedflag='--shared' ;;
10193         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10194           tmp_sharedflag='-qmkshrobj'
10195           tmp_addflag= ;;
10196         esac
10197         case `$CC -V 2>&1 | sed 5q` in
10198         *Sun\ C*)                       # Sun C 5.9
10199           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'
10200           compiler_needs_object=yes
10201           tmp_sharedflag='-G' ;;
10202         *Sun\ F*)                       # Sun Fortran 8.3
10203           tmp_sharedflag='-G' ;;
10204         esac
10205         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206
10207         if test "x$supports_anon_versioning" = xyes; then
10208           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10209             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10210             echo "local: *; };" >> $output_objdir/$libname.ver~
10211             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10212         fi
10213
10214         case $cc_basename in
10215         xlf*)
10216           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10217           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10218           hardcode_libdir_flag_spec=
10219           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10220           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10221           if test "x$supports_anon_versioning" = xyes; then
10222             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10223               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10224               echo "local: *; };" >> $output_objdir/$libname.ver~
10225               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10226           fi
10227           ;;
10228         esac
10229       else
10230         ld_shlibs=no
10231       fi
10232       ;;
10233
10234     netbsd*)
10235       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10236         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10237         wlarc=
10238       else
10239         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10240         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10241       fi
10242       ;;
10243
10244     solaris*)
10245       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10246         ld_shlibs=no
10247         cat <<_LT_EOF 1>&2
10248
10249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10250 *** create shared libraries on Solaris systems.  Therefore, libtool
10251 *** is disabling shared libraries support.  We urge you to upgrade GNU
10252 *** binutils to release 2.9.1 or newer.  Another option is to modify
10253 *** your PATH or compiler configuration so that the native linker is
10254 *** used, and then restart.
10255
10256 _LT_EOF
10257       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10258         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10259         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10260       else
10261         ld_shlibs=no
10262       fi
10263       ;;
10264
10265     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10266       case `$LD -v 2>&1` in
10267         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10268         ld_shlibs=no
10269         cat <<_LT_EOF 1>&2
10270
10271 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10272 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10273 *** is disabling shared libraries support.  We urge you to upgrade GNU
10274 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10275 *** your PATH or compiler configuration so that the native linker is
10276 *** used, and then restart.
10277
10278 _LT_EOF
10279         ;;
10280         *)
10281           # For security reasons, it is highly recommended that you always
10282           # use absolute paths for naming shared libraries, and exclude the
10283           # DT_RUNPATH tag from executables and libraries.  But doing so
10284           # requires that you compile everything twice, which is a pain.
10285           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10286             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10287             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10288             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10289           else
10290             ld_shlibs=no
10291           fi
10292         ;;
10293       esac
10294       ;;
10295
10296     sunos4*)
10297       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10298       wlarc=
10299       hardcode_direct=yes
10300       hardcode_shlibpath_var=no
10301       ;;
10302
10303     *)
10304       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10305         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10306         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10307       else
10308         ld_shlibs=no
10309       fi
10310       ;;
10311     esac
10312
10313     if test "$ld_shlibs" = no; then
10314       runpath_var=
10315       hardcode_libdir_flag_spec=
10316       export_dynamic_flag_spec=
10317       whole_archive_flag_spec=
10318     fi
10319   else
10320     # PORTME fill in a description of your system's linker (not GNU ld)
10321     case $host_os in
10322     aix3*)
10323       allow_undefined_flag=unsupported
10324       always_export_symbols=yes
10325       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'
10326       # Note: this linker hardcodes the directories in LIBPATH if there
10327       # are no directories specified by -L.
10328       hardcode_minus_L=yes
10329       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10330         # Neither direct hardcoding nor static linking is supported with a
10331         # broken collect2.
10332         hardcode_direct=unsupported
10333       fi
10334       ;;
10335
10336     aix[4-9]*)
10337       if test "$host_cpu" = ia64; then
10338         # On IA64, the linker does run time linking by default, so we don't
10339         # have to do anything special.
10340         aix_use_runtimelinking=no
10341         exp_sym_flag='-Bexport'
10342         no_entry_flag=""
10343       else
10344         # If we're using GNU nm, then we don't want the "-C" option.
10345         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10346         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10347           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'
10348         else
10349           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'
10350         fi
10351         aix_use_runtimelinking=no
10352
10353         # Test if we are trying to use run time linking or normal
10354         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10355         # need to do runtime linking.
10356         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10357           for ld_flag in $LDFLAGS; do
10358           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10359             aix_use_runtimelinking=yes
10360             break
10361           fi
10362           done
10363           ;;
10364         esac
10365
10366         exp_sym_flag='-bexport'
10367         no_entry_flag='-bnoentry'
10368       fi
10369
10370       # When large executables or shared objects are built, AIX ld can
10371       # have problems creating the table of contents.  If linking a library
10372       # or program results in "error TOC overflow" add -mminimal-toc to
10373       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10374       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10375
10376       archive_cmds=''
10377       hardcode_direct=yes
10378       hardcode_direct_absolute=yes
10379       hardcode_libdir_separator=':'
10380       link_all_deplibs=yes
10381       file_list_spec='${wl}-f,'
10382
10383       if test "$GCC" = yes; then
10384         case $host_os in aix4.[012]|aix4.[012].*)
10385         # We only want to do this on AIX 4.2 and lower, the check
10386         # below for broken collect2 doesn't work under 4.3+
10387           collect2name=`${CC} -print-prog-name=collect2`
10388           if test -f "$collect2name" &&
10389            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10390           then
10391           # We have reworked collect2
10392           :
10393           else
10394           # We have old collect2
10395           hardcode_direct=unsupported
10396           # It fails to find uninstalled libraries when the uninstalled
10397           # path is not listed in the libpath.  Setting hardcode_minus_L
10398           # to unsupported forces relinking
10399           hardcode_minus_L=yes
10400           hardcode_libdir_flag_spec='-L$libdir'
10401           hardcode_libdir_separator=
10402           fi
10403           ;;
10404         esac
10405         shared_flag='-shared'
10406         if test "$aix_use_runtimelinking" = yes; then
10407           shared_flag="$shared_flag "'${wl}-G'
10408         fi
10409       else
10410         # not using gcc
10411         if test "$host_cpu" = ia64; then
10412         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10413         # chokes on -Wl,-G. The following line is correct:
10414           shared_flag='-G'
10415         else
10416           if test "$aix_use_runtimelinking" = yes; then
10417             shared_flag='${wl}-G'
10418           else
10419             shared_flag='${wl}-bM:SRE'
10420           fi
10421         fi
10422       fi
10423
10424       export_dynamic_flag_spec='${wl}-bexpall'
10425       # It seems that -bexpall does not export symbols beginning with
10426       # underscore (_), so it is better to generate a list of symbols to export.
10427       always_export_symbols=yes
10428       if test "$aix_use_runtimelinking" = yes; then
10429         # Warning - without using the other runtime loading flags (-brtl),
10430         # -berok will link without error, but may produce a broken library.
10431         allow_undefined_flag='-berok'
10432         # Determine the default libpath from the value encoded in an
10433         # empty executable.
10434         cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h.  */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h.  */
10440
10441 int
10442 main ()
10443 {
10444
10445   ;
10446   return 0;
10447 }
10448 _ACEOF
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453   *) ac_try_echo=$ac_try;;
10454 esac
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456   (eval "$ac_link") 2>conftest.er1
10457   ac_status=$?
10458   grep -v '^ *+' conftest.er1 >conftest.err
10459   rm -f conftest.er1
10460   cat conftest.err >&5
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); } && {
10463          test -z "$ac_c_werror_flag" ||
10464          test ! -s conftest.err
10465        } && test -s conftest$ac_exeext &&
10466        $as_test_x conftest$ac_exeext; then
10467
10468 lt_aix_libpath_sed='
10469     /Import File Strings/,/^$/ {
10470         /^0/ {
10471             s/^0  *\(.*\)$/\1/
10472             p
10473         }
10474     }'
10475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10476 # Check for a 64-bit object if we didn't find anything.
10477 if test -z "$aix_libpath"; then
10478   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10479 fi
10480 else
10481   echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10483
10484
10485 fi
10486
10487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10488       conftest$ac_exeext conftest.$ac_ext
10489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10490
10491         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10492         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"
10493       else
10494         if test "$host_cpu" = ia64; then
10495           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10496           allow_undefined_flag="-z nodefs"
10497           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"
10498         else
10499          # Determine the default libpath from the value encoded in an
10500          # empty executable.
10501          cat >conftest.$ac_ext <<_ACEOF
10502 /* confdefs.h.  */
10503 _ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h.  */
10507
10508 int
10509 main ()
10510 {
10511
10512   ;
10513   return 0;
10514 }
10515 _ACEOF
10516 rm -f conftest.$ac_objext conftest$ac_exeext
10517 if { (ac_try="$ac_link"
10518 case "(($ac_try" in
10519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520   *) ac_try_echo=$ac_try;;
10521 esac
10522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523   (eval "$ac_link") 2>conftest.er1
10524   ac_status=$?
10525   grep -v '^ *+' conftest.er1 >conftest.err
10526   rm -f conftest.er1
10527   cat conftest.err >&5
10528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529   (exit $ac_status); } && {
10530          test -z "$ac_c_werror_flag" ||
10531          test ! -s conftest.err
10532        } && test -s conftest$ac_exeext &&
10533        $as_test_x conftest$ac_exeext; then
10534
10535 lt_aix_libpath_sed='
10536     /Import File Strings/,/^$/ {
10537         /^0/ {
10538             s/^0  *\(.*\)$/\1/
10539             p
10540         }
10541     }'
10542 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10543 # Check for a 64-bit object if we didn't find anything.
10544 if test -z "$aix_libpath"; then
10545   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10546 fi
10547 else
10548   echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10550
10551
10552 fi
10553
10554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10555       conftest$ac_exeext conftest.$ac_ext
10556 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10557
10558          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10559           # Warning - without using the other run time loading flags,
10560           # -berok will link without error, but may produce a broken library.
10561           no_undefined_flag=' ${wl}-bernotok'
10562           allow_undefined_flag=' ${wl}-berok'
10563           # Exported symbols can be pulled into shared objects from archives
10564           whole_archive_flag_spec='$convenience'
10565           archive_cmds_need_lc=yes
10566           # This is similar to how AIX traditionally builds its shared libraries.
10567           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'
10568         fi
10569       fi
10570       ;;
10571
10572     amigaos*)
10573       case $host_cpu in
10574       powerpc)
10575             # see comment about AmigaOS4 .so support
10576             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10577             archive_expsym_cmds=''
10578         ;;
10579       m68k)
10580             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)'
10581             hardcode_libdir_flag_spec='-L$libdir'
10582             hardcode_minus_L=yes
10583         ;;
10584       esac
10585       ;;
10586
10587     bsdi[45]*)
10588       export_dynamic_flag_spec=-rdynamic
10589       ;;
10590
10591     cygwin* | mingw* | pw32* | cegcc*)
10592       # When not using gcc, we currently assume that we are using
10593       # Microsoft Visual C++.
10594       # hardcode_libdir_flag_spec is actually meaningless, as there is
10595       # no search path for DLLs.
10596       hardcode_libdir_flag_spec=' '
10597       allow_undefined_flag=unsupported
10598       # Tell ltmain to make .lib files, not .a files.
10599       libext=lib
10600       # Tell ltmain to make .dll files, not .so files.
10601       shrext_cmds=".dll"
10602       # FIXME: Setting linknames here is a bad hack.
10603       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10604       # The linker will automatically build a .lib file if we build a DLL.
10605       old_archive_from_new_cmds='true'
10606       # FIXME: Should let the user specify the lib program.
10607       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10608       fix_srcfile_path='`cygpath -w "$srcfile"`'
10609       enable_shared_with_static_runtimes=yes
10610       ;;
10611
10612     darwin* | rhapsody*)
10613
10614
10615   archive_cmds_need_lc=no
10616   hardcode_direct=no
10617   hardcode_automatic=yes
10618   hardcode_shlibpath_var=unsupported
10619   whole_archive_flag_spec=''
10620   link_all_deplibs=yes
10621   allow_undefined_flag="$_lt_dar_allow_undefined"
10622   case $cc_basename in
10623      ifort*) _lt_dar_can_shared=yes ;;
10624      *) _lt_dar_can_shared=$GCC ;;
10625   esac
10626   if test "$_lt_dar_can_shared" = "yes"; then
10627     output_verbose_link_cmd=echo
10628     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10629     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10630     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}"
10631     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}"
10632
10633   else
10634   ld_shlibs=no
10635   fi
10636
10637       ;;
10638
10639     dgux*)
10640       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10641       hardcode_libdir_flag_spec='-L$libdir'
10642       hardcode_shlibpath_var=no
10643       ;;
10644
10645     freebsd1*)
10646       ld_shlibs=no
10647       ;;
10648
10649     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10650     # support.  Future versions do this automatically, but an explicit c++rt0.o
10651     # does not break anything, and helps significantly (at the cost of a little
10652     # extra space).
10653     freebsd2.2*)
10654       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10655       hardcode_libdir_flag_spec='-R$libdir'
10656       hardcode_direct=yes
10657       hardcode_shlibpath_var=no
10658       ;;
10659
10660     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10661     freebsd2*)
10662       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10663       hardcode_direct=yes
10664       hardcode_minus_L=yes
10665       hardcode_shlibpath_var=no
10666       ;;
10667
10668     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10669     freebsd* | dragonfly*)
10670       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10671       hardcode_libdir_flag_spec='-R$libdir'
10672       hardcode_direct=yes
10673       hardcode_shlibpath_var=no
10674       ;;
10675
10676     hpux9*)
10677       if test "$GCC" = yes; then
10678         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'
10679       else
10680         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'
10681       fi
10682       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10683       hardcode_libdir_separator=:
10684       hardcode_direct=yes
10685
10686       # hardcode_minus_L: Not really in the search PATH,
10687       # but as the default location of the library.
10688       hardcode_minus_L=yes
10689       export_dynamic_flag_spec='${wl}-E'
10690       ;;
10691
10692     hpux10*)
10693       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10694         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10695       else
10696         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10697       fi
10698       if test "$with_gnu_ld" = no; then
10699         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10700         hardcode_libdir_flag_spec_ld='+b $libdir'
10701         hardcode_libdir_separator=:
10702         hardcode_direct=yes
10703         hardcode_direct_absolute=yes
10704         export_dynamic_flag_spec='${wl}-E'
10705         # hardcode_minus_L: Not really in the search PATH,
10706         # but as the default location of the library.
10707         hardcode_minus_L=yes
10708       fi
10709       ;;
10710
10711     hpux11*)
10712       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10713         case $host_cpu in
10714         hppa*64*)
10715           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10716           ;;
10717         ia64*)
10718           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10719           ;;
10720         *)
10721           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10722           ;;
10723         esac
10724       else
10725         case $host_cpu in
10726         hppa*64*)
10727           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10728           ;;
10729         ia64*)
10730           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10731           ;;
10732         *)
10733           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10734           ;;
10735         esac
10736       fi
10737       if test "$with_gnu_ld" = no; then
10738         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10739         hardcode_libdir_separator=:
10740
10741         case $host_cpu in
10742         hppa*64*|ia64*)
10743           hardcode_direct=no
10744           hardcode_shlibpath_var=no
10745           ;;
10746         *)
10747           hardcode_direct=yes
10748           hardcode_direct_absolute=yes
10749           export_dynamic_flag_spec='${wl}-E'
10750
10751           # hardcode_minus_L: Not really in the search PATH,
10752           # but as the default location of the library.
10753           hardcode_minus_L=yes
10754           ;;
10755         esac
10756       fi
10757       ;;
10758
10759     irix5* | irix6* | nonstopux*)
10760       if test "$GCC" = yes; then
10761         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'
10762         # Try to use the -exported_symbol ld option, if it does not
10763         # work, assume that -exports_file does not work either and
10764         # implicitly export all symbols.
10765         save_LDFLAGS="$LDFLAGS"
10766         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10767         cat >conftest.$ac_ext <<_ACEOF
10768 int foo(void) {}
10769 _ACEOF
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (ac_try="$ac_link"
10772 case "(($ac_try" in
10773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774   *) ac_try_echo=$ac_try;;
10775 esac
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777   (eval "$ac_link") 2>conftest.er1
10778   ac_status=$?
10779   grep -v '^ *+' conftest.er1 >conftest.err
10780   rm -f conftest.er1
10781   cat conftest.err >&5
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); } && {
10784          test -z "$ac_c_werror_flag" ||
10785          test ! -s conftest.err
10786        } && test -s conftest$ac_exeext &&
10787        $as_test_x conftest$ac_exeext; then
10788   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'
10789
10790 else
10791   echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10793
10794
10795 fi
10796
10797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10798       conftest$ac_exeext conftest.$ac_ext
10799         LDFLAGS="$save_LDFLAGS"
10800       else
10801         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'
10802         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'
10803       fi
10804       archive_cmds_need_lc='no'
10805       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10806       hardcode_libdir_separator=:
10807       inherit_rpath=yes
10808       link_all_deplibs=yes
10809       ;;
10810
10811     netbsd*)
10812       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10813         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10814       else
10815         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10816       fi
10817       hardcode_libdir_flag_spec='-R$libdir'
10818       hardcode_direct=yes
10819       hardcode_shlibpath_var=no
10820       ;;
10821
10822     newsos6)
10823       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10824       hardcode_direct=yes
10825       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10826       hardcode_libdir_separator=:
10827       hardcode_shlibpath_var=no
10828       ;;
10829
10830     *nto* | *qnx*)
10831       ;;
10832
10833     openbsd*)
10834       if test -f /usr/libexec/ld.so; then
10835         hardcode_direct=yes
10836         hardcode_shlibpath_var=no
10837         hardcode_direct_absolute=yes
10838         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10839           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10840           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10841           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10842           export_dynamic_flag_spec='${wl}-E'
10843         else
10844           case $host_os in
10845            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10846              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10847              hardcode_libdir_flag_spec='-R$libdir'
10848              ;;
10849            *)
10850              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10851              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10852              ;;
10853           esac
10854         fi
10855       else
10856         ld_shlibs=no
10857       fi
10858       ;;
10859
10860     os2*)
10861       hardcode_libdir_flag_spec='-L$libdir'
10862       hardcode_minus_L=yes
10863       allow_undefined_flag=unsupported
10864       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'
10865       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10866       ;;
10867
10868     osf3*)
10869       if test "$GCC" = yes; then
10870         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10871         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'
10872       else
10873         allow_undefined_flag=' -expect_unresolved \*'
10874         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'
10875       fi
10876       archive_cmds_need_lc='no'
10877       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10878       hardcode_libdir_separator=:
10879       ;;
10880
10881     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10882       if test "$GCC" = yes; then
10883         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10884         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'
10885         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10886       else
10887         allow_undefined_flag=' -expect_unresolved \*'
10888         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'
10889         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~
10890         $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'
10891
10892         # Both c and cxx compiler support -rpath directly
10893         hardcode_libdir_flag_spec='-rpath $libdir'
10894       fi
10895       archive_cmds_need_lc='no'
10896       hardcode_libdir_separator=:
10897       ;;
10898
10899     solaris*)
10900       no_undefined_flag=' -z defs'
10901       if test "$GCC" = yes; then
10902         wlarc='${wl}'
10903         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10904         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10905           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10906       else
10907         case `$CC -V 2>&1` in
10908         *"Compilers 5.0"*)
10909           wlarc=''
10910           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10911           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10912           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10913           ;;
10914         *)
10915           wlarc='${wl}'
10916           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10917           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10918           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10919           ;;
10920         esac
10921       fi
10922       hardcode_libdir_flag_spec='-R$libdir'
10923       hardcode_shlibpath_var=no
10924       case $host_os in
10925       solaris2.[0-5] | solaris2.[0-5].*) ;;
10926       *)
10927         # The compiler driver will combine and reorder linker options,
10928         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10929         # but is careful enough not to reorder.
10930         # Supported since Solaris 2.6 (maybe 2.5.1?)
10931         if test "$GCC" = yes; then
10932           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10933         else
10934           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10935         fi
10936         ;;
10937       esac
10938       link_all_deplibs=yes
10939       ;;
10940
10941     sunos4*)
10942       if test "x$host_vendor" = xsequent; then
10943         # Use $CC to link under sequent, because it throws in some extra .o
10944         # files that make .init and .fini sections work.
10945         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10946       else
10947         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10948       fi
10949       hardcode_libdir_flag_spec='-L$libdir'
10950       hardcode_direct=yes
10951       hardcode_minus_L=yes
10952       hardcode_shlibpath_var=no
10953       ;;
10954
10955     sysv4)
10956       case $host_vendor in
10957         sni)
10958           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10959           hardcode_direct=yes # is this really true???
10960         ;;
10961         siemens)
10962           ## LD is ld it makes a PLAMLIB
10963           ## CC just makes a GrossModule.
10964           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10965           reload_cmds='$CC -r -o $output$reload_objs'
10966           hardcode_direct=no
10967         ;;
10968         motorola)
10969           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10970           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10971         ;;
10972       esac
10973       runpath_var='LD_RUN_PATH'
10974       hardcode_shlibpath_var=no
10975       ;;
10976
10977     sysv4.3*)
10978       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979       hardcode_shlibpath_var=no
10980       export_dynamic_flag_spec='-Bexport'
10981       ;;
10982
10983     sysv4*MP*)
10984       if test -d /usr/nec; then
10985         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10986         hardcode_shlibpath_var=no
10987         runpath_var=LD_RUN_PATH
10988         hardcode_runpath_var=yes
10989         ld_shlibs=yes
10990       fi
10991       ;;
10992
10993     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10994       no_undefined_flag='${wl}-z,text'
10995       archive_cmds_need_lc=no
10996       hardcode_shlibpath_var=no
10997       runpath_var='LD_RUN_PATH'
10998
10999       if test "$GCC" = yes; then
11000         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11001         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11002       else
11003         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005       fi
11006       ;;
11007
11008     sysv5* | sco3.2v5* | sco5v6*)
11009       # Note: We can NOT use -z defs as we might desire, because we do not
11010       # link with -lc, and that would cause any symbols used from libc to
11011       # always be unresolved, which means just about no library would
11012       # ever link correctly.  If we're not using GNU ld we use -z text
11013       # though, which does catch some bad symbols but isn't as heavy-handed
11014       # as -z defs.
11015       no_undefined_flag='${wl}-z,text'
11016       allow_undefined_flag='${wl}-z,nodefs'
11017       archive_cmds_need_lc=no
11018       hardcode_shlibpath_var=no
11019       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11020       hardcode_libdir_separator=':'
11021       link_all_deplibs=yes
11022       export_dynamic_flag_spec='${wl}-Bexport'
11023       runpath_var='LD_RUN_PATH'
11024
11025       if test "$GCC" = yes; then
11026         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11027         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028       else
11029         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031       fi
11032       ;;
11033
11034     uts4*)
11035       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11036       hardcode_libdir_flag_spec='-L$libdir'
11037       hardcode_shlibpath_var=no
11038       ;;
11039
11040     *)
11041       ld_shlibs=no
11042       ;;
11043     esac
11044
11045     if test x$host_vendor = xsni; then
11046       case $host in
11047       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11048         export_dynamic_flag_spec='${wl}-Blargedynsym'
11049         ;;
11050       esac
11051     fi
11052   fi
11053
11054 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11055 echo "${ECHO_T}$ld_shlibs" >&6; }
11056 test "$ld_shlibs" = no && can_build_shared=no
11057
11058 with_gnu_ld=$with_gnu_ld
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074 #
11075 # Do we need to explicitly link libc?
11076 #
11077 case "x$archive_cmds_need_lc" in
11078 x|xyes)
11079   # Assume -lc should be added
11080   archive_cmds_need_lc=yes
11081
11082   if test "$enable_shared" = yes && test "$GCC" = yes; then
11083     case $archive_cmds in
11084     *'~'*)
11085       # FIXME: we may have to deal with multi-command sequences.
11086       ;;
11087     '$CC '*)
11088       # Test whether the compiler implicitly links with -lc since on some
11089       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11090       # to ld, don't add -lc before -lgcc.
11091       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11092 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11093       $RM conftest*
11094       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11095
11096       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097   (eval $ac_compile) 2>&5
11098   ac_status=$?
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); } 2>conftest.err; then
11101         soname=conftest
11102         lib=conftest
11103         libobjs=conftest.$ac_objext
11104         deplibs=
11105         wl=$lt_prog_compiler_wl
11106         pic_flag=$lt_prog_compiler_pic
11107         compiler_flags=-v
11108         linker_flags=-v
11109         verstring=
11110         output_objdir=.
11111         libname=conftest
11112         lt_save_allow_undefined_flag=$allow_undefined_flag
11113         allow_undefined_flag=
11114         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11115   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }
11119         then
11120           archive_cmds_need_lc=no
11121         else
11122           archive_cmds_need_lc=yes
11123         fi
11124         allow_undefined_flag=$lt_save_allow_undefined_flag
11125       else
11126         cat conftest.err 1>&5
11127       fi
11128       $RM conftest*
11129       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11130 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11131       ;;
11132     esac
11133   fi
11134   ;;
11135 esac
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
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11294 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11295
11296 if test "$GCC" = yes; then
11297   case $host_os in
11298     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11299     *) lt_awk_arg="/^libraries:/" ;;
11300   esac
11301   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11302   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11303     # if the path contains ";" then we assume it to be the separator
11304     # otherwise default to the standard path separator (i.e. ":") - it is
11305     # assumed that no part of a normal pathname contains ";" but that should
11306     # okay in the real world where ";" in dirpaths is itself problematic.
11307     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11308   else
11309     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11310   fi
11311   # Ok, now we have the path, separated by spaces, we can step through it
11312   # and add multilib dir if necessary.
11313   lt_tmp_lt_search_path_spec=
11314   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11315   for lt_sys_path in $lt_search_path_spec; do
11316     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11317       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11318     else
11319       test -d "$lt_sys_path" && \
11320         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11321     fi
11322   done
11323   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11324 BEGIN {RS=" "; FS="/|\n";} {
11325   lt_foo="";
11326   lt_count=0;
11327   for (lt_i = NF; lt_i > 0; lt_i--) {
11328     if ($lt_i != "" && $lt_i != ".") {
11329       if ($lt_i == "..") {
11330         lt_count++;
11331       } else {
11332         if (lt_count == 0) {
11333           lt_foo="/" $lt_i lt_foo;
11334         } else {
11335           lt_count--;
11336         }
11337       }
11338     }
11339   }
11340   if (lt_foo != "") { lt_freq[lt_foo]++; }
11341   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11342 }'`
11343   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11344 else
11345   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11346 fi
11347 library_names_spec=
11348 libname_spec='lib$name'
11349 soname_spec=
11350 shrext_cmds=".so"
11351 postinstall_cmds=
11352 postuninstall_cmds=
11353 finish_cmds=
11354 finish_eval=
11355 shlibpath_var=
11356 shlibpath_overrides_runpath=unknown
11357 version_type=none
11358 dynamic_linker="$host_os ld.so"
11359 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11360 need_lib_prefix=unknown
11361 hardcode_into_libs=no
11362
11363 # when you set need_version to no, make sure it does not cause -set_version
11364 # flags to be left without arguments
11365 need_version=unknown
11366
11367 case $host_os in
11368 aix3*)
11369   version_type=linux
11370   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11371   shlibpath_var=LIBPATH
11372
11373   # AIX 3 has no versioning support, so we append a major version to the name.
11374   soname_spec='${libname}${release}${shared_ext}$major'
11375   ;;
11376
11377 aix[4-9]*)
11378   version_type=linux
11379   need_lib_prefix=no
11380   need_version=no
11381   hardcode_into_libs=yes
11382   if test "$host_cpu" = ia64; then
11383     # AIX 5 supports IA64
11384     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11385     shlibpath_var=LD_LIBRARY_PATH
11386   else
11387     # With GCC up to 2.95.x, collect2 would create an import file
11388     # for dependence libraries.  The import file would start with
11389     # the line `#! .'.  This would cause the generated library to
11390     # depend on `.', always an invalid library.  This was fixed in
11391     # development snapshots of GCC prior to 3.0.
11392     case $host_os in
11393       aix4 | aix4.[01] | aix4.[01].*)
11394       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11395            echo ' yes '
11396            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11397         :
11398       else
11399         can_build_shared=no
11400       fi
11401       ;;
11402     esac
11403     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11404     # soname into executable. Probably we can add versioning support to
11405     # collect2, so additional links can be useful in future.
11406     if test "$aix_use_runtimelinking" = yes; then
11407       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11408       # instead of lib<name>.a to let people know that these are not
11409       # typical AIX shared libraries.
11410       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11411     else
11412       # We preserve .a as extension for shared libraries through AIX4.2
11413       # and later when we are not doing run time linking.
11414       library_names_spec='${libname}${release}.a $libname.a'
11415       soname_spec='${libname}${release}${shared_ext}$major'
11416     fi
11417     shlibpath_var=LIBPATH
11418   fi
11419   ;;
11420
11421 amigaos*)
11422   case $host_cpu in
11423   powerpc)
11424     # Since July 2007 AmigaOS4 officially supports .so libraries.
11425     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11426     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11427     ;;
11428   m68k)
11429     library_names_spec='$libname.ixlibrary $libname.a'
11430     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11431     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'
11432     ;;
11433   esac
11434   ;;
11435
11436 beos*)
11437   library_names_spec='${libname}${shared_ext}'
11438   dynamic_linker="$host_os ld.so"
11439   shlibpath_var=LIBRARY_PATH
11440   ;;
11441
11442 bsdi[45]*)
11443   version_type=linux
11444   need_version=no
11445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446   soname_spec='${libname}${release}${shared_ext}$major'
11447   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11448   shlibpath_var=LD_LIBRARY_PATH
11449   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11450   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11451   # the default ld.so.conf also contains /usr/contrib/lib and
11452   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11453   # libtool to hard-code these into programs
11454   ;;
11455
11456 cygwin* | mingw* | pw32* | cegcc*)
11457   version_type=windows
11458   shrext_cmds=".dll"
11459   need_version=no
11460   need_lib_prefix=no
11461
11462   case $GCC,$host_os in
11463   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11464     library_names_spec='$libname.dll.a'
11465     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11466     postinstall_cmds='base_file=`basename \${file}`~
11467       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11468       dldir=$destdir/`dirname \$dlpath`~
11469       test -d \$dldir || mkdir -p \$dldir~
11470       $install_prog $dir/$dlname \$dldir/$dlname~
11471       chmod a+x \$dldir/$dlname~
11472       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11473         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11474       fi'
11475     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11476       dlpath=$dir/\$dldll~
11477        $RM \$dlpath'
11478     shlibpath_overrides_runpath=yes
11479
11480     case $host_os in
11481     cygwin*)
11482       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11483       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11484       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11485       ;;
11486     mingw* | cegcc*)
11487       # MinGW DLLs use traditional 'lib' prefix
11488       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11489       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11490       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11491         # It is most probably a Windows format PATH printed by
11492         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11493         # path with ; separators, and with drive letters. We can handle the
11494         # drive letters (cygwin fileutils understands them), so leave them,
11495         # especially as we might pass files found there to a mingw objdump,
11496         # which wouldn't understand a cygwinified path. Ahh.
11497         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11498       else
11499         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11500       fi
11501       ;;
11502     pw32*)
11503       # pw32 DLLs use 'pw' prefix rather than 'lib'
11504       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11505       ;;
11506     esac
11507     ;;
11508
11509   *)
11510     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11511     ;;
11512   esac
11513   dynamic_linker='Win32 ld.exe'
11514   # FIXME: first we should search . and the directory the executable is in
11515   shlibpath_var=PATH
11516   ;;
11517
11518 darwin* | rhapsody*)
11519   dynamic_linker="$host_os dyld"
11520   version_type=darwin
11521   need_lib_prefix=no
11522   need_version=no
11523   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11524   soname_spec='${libname}${release}${major}$shared_ext'
11525   shlibpath_overrides_runpath=yes
11526   shlibpath_var=DYLD_LIBRARY_PATH
11527   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11528
11529   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11530   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11531   ;;
11532
11533 dgux*)
11534   version_type=linux
11535   need_lib_prefix=no
11536   need_version=no
11537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11538   soname_spec='${libname}${release}${shared_ext}$major'
11539   shlibpath_var=LD_LIBRARY_PATH
11540   ;;
11541
11542 freebsd1*)
11543   dynamic_linker=no
11544   ;;
11545
11546 freebsd* | dragonfly*)
11547   # DragonFly does not have aout.  When/if they implement a new
11548   # versioning mechanism, adjust this.
11549   if test -x /usr/bin/objformat; then
11550     objformat=`/usr/bin/objformat`
11551   else
11552     case $host_os in
11553     freebsd[123]*) objformat=aout ;;
11554     *) objformat=elf ;;
11555     esac
11556   fi
11557   version_type=freebsd-$objformat
11558   case $version_type in
11559     freebsd-elf*)
11560       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11561       need_version=no
11562       need_lib_prefix=no
11563       ;;
11564     freebsd-*)
11565       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11566       need_version=yes
11567       ;;
11568   esac
11569   shlibpath_var=LD_LIBRARY_PATH
11570   case $host_os in
11571   freebsd2*)
11572     shlibpath_overrides_runpath=yes
11573     ;;
11574   freebsd3.[01]* | freebsdelf3.[01]*)
11575     shlibpath_overrides_runpath=yes
11576     hardcode_into_libs=yes
11577     ;;
11578   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11579   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11580     shlibpath_overrides_runpath=no
11581     hardcode_into_libs=yes
11582     ;;
11583   *) # from 4.6 on, and DragonFly
11584     shlibpath_overrides_runpath=yes
11585     hardcode_into_libs=yes
11586     ;;
11587   esac
11588   ;;
11589
11590 gnu*)
11591   version_type=linux
11592   need_lib_prefix=no
11593   need_version=no
11594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11595   soname_spec='${libname}${release}${shared_ext}$major'
11596   shlibpath_var=LD_LIBRARY_PATH
11597   hardcode_into_libs=yes
11598   ;;
11599
11600 hpux9* | hpux10* | hpux11*)
11601   # Give a soname corresponding to the major version so that dld.sl refuses to
11602   # link against other versions.
11603   version_type=sunos
11604   need_lib_prefix=no
11605   need_version=no
11606   case $host_cpu in
11607   ia64*)
11608     shrext_cmds='.so'
11609     hardcode_into_libs=yes
11610     dynamic_linker="$host_os dld.so"
11611     shlibpath_var=LD_LIBRARY_PATH
11612     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11613     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11614     soname_spec='${libname}${release}${shared_ext}$major'
11615     if test "X$HPUX_IA64_MODE" = X32; then
11616       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11617     else
11618       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11619     fi
11620     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11621     ;;
11622   hppa*64*)
11623     shrext_cmds='.sl'
11624     hardcode_into_libs=yes
11625     dynamic_linker="$host_os dld.sl"
11626     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11627     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629     soname_spec='${libname}${release}${shared_ext}$major'
11630     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11631     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11632     ;;
11633   *)
11634     shrext_cmds='.sl'
11635     dynamic_linker="$host_os dld.sl"
11636     shlibpath_var=SHLIB_PATH
11637     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11638     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639     soname_spec='${libname}${release}${shared_ext}$major'
11640     ;;
11641   esac
11642   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11643   postinstall_cmds='chmod 555 $lib'
11644   ;;
11645
11646 interix[3-9]*)
11647   version_type=linux
11648   need_lib_prefix=no
11649   need_version=no
11650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11651   soname_spec='${libname}${release}${shared_ext}$major'
11652   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11653   shlibpath_var=LD_LIBRARY_PATH
11654   shlibpath_overrides_runpath=no
11655   hardcode_into_libs=yes
11656   ;;
11657
11658 irix5* | irix6* | nonstopux*)
11659   case $host_os in
11660     nonstopux*) version_type=nonstopux ;;
11661     *)
11662         if test "$lt_cv_prog_gnu_ld" = yes; then
11663                 version_type=linux
11664         else
11665                 version_type=irix
11666         fi ;;
11667   esac
11668   need_lib_prefix=no
11669   need_version=no
11670   soname_spec='${libname}${release}${shared_ext}$major'
11671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11672   case $host_os in
11673   irix5* | nonstopux*)
11674     libsuff= shlibsuff=
11675     ;;
11676   *)
11677     case $LD in # libtool.m4 will add one of these switches to LD
11678     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11679       libsuff= shlibsuff= libmagic=32-bit;;
11680     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11681       libsuff=32 shlibsuff=N32 libmagic=N32;;
11682     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11683       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11684     *) libsuff= shlibsuff= libmagic=never-match;;
11685     esac
11686     ;;
11687   esac
11688   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11689   shlibpath_overrides_runpath=no
11690   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11691   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11692   hardcode_into_libs=yes
11693   ;;
11694
11695 # No shared lib support for Linux oldld, aout, or coff.
11696 linux*oldld* | linux*aout* | linux*coff*)
11697   dynamic_linker=no
11698   ;;
11699
11700 # This must be Linux ELF.
11701 linux* | k*bsd*-gnu)
11702   version_type=linux
11703   need_lib_prefix=no
11704   need_version=no
11705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11706   soname_spec='${libname}${release}${shared_ext}$major'
11707   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11708   shlibpath_var=LD_LIBRARY_PATH
11709   shlibpath_overrides_runpath=no
11710   # Some binutils ld are patched to set DT_RUNPATH
11711   save_LDFLAGS=$LDFLAGS
11712   save_libdir=$libdir
11713   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11714        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11715   cat >conftest.$ac_ext <<_ACEOF
11716 /* confdefs.h.  */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h.  */
11721
11722 int
11723 main ()
11724 {
11725
11726   ;
11727   return 0;
11728 }
11729 _ACEOF
11730 rm -f conftest.$ac_objext conftest$ac_exeext
11731 if { (ac_try="$ac_link"
11732 case "(($ac_try" in
11733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734   *) ac_try_echo=$ac_try;;
11735 esac
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737   (eval "$ac_link") 2>conftest.er1
11738   ac_status=$?
11739   grep -v '^ *+' conftest.er1 >conftest.err
11740   rm -f conftest.er1
11741   cat conftest.err >&5
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); } && {
11744          test -z "$ac_c_werror_flag" ||
11745          test ! -s conftest.err
11746        } && test -s conftest$ac_exeext &&
11747        $as_test_x conftest$ac_exeext; then
11748   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11749   shlibpath_overrides_runpath=yes
11750 fi
11751
11752 else
11753   echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11755
11756
11757 fi
11758
11759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11760       conftest$ac_exeext conftest.$ac_ext
11761   LDFLAGS=$save_LDFLAGS
11762   libdir=$save_libdir
11763
11764   # This implies no fast_install, which is unacceptable.
11765   # Some rework will be needed to allow for fast_install
11766   # before this can be enabled.
11767   hardcode_into_libs=yes
11768
11769   # Append ld.so.conf contents to the search path
11770   if test -f /etc/ld.so.conf; then
11771     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' ' '`
11772     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11773   fi
11774
11775   # We used to test for /lib/ld.so.1 and disable shared libraries on
11776   # powerpc, because MkLinux only supported shared libraries with the
11777   # GNU dynamic linker.  Since this was broken with cross compilers,
11778   # most powerpc-linux boxes support dynamic linking these days and
11779   # people can always --disable-shared, the test was removed, and we
11780   # assume the GNU/Linux dynamic linker is in use.
11781   dynamic_linker='GNU/Linux ld.so'
11782   ;;
11783
11784 netbsd*)
11785   version_type=sunos
11786   need_lib_prefix=no
11787   need_version=no
11788   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11790     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11791     dynamic_linker='NetBSD (a.out) ld.so'
11792   else
11793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11794     soname_spec='${libname}${release}${shared_ext}$major'
11795     dynamic_linker='NetBSD ld.elf_so'
11796   fi
11797   shlibpath_var=LD_LIBRARY_PATH
11798   shlibpath_overrides_runpath=yes
11799   hardcode_into_libs=yes
11800   ;;
11801
11802 newsos6)
11803   version_type=linux
11804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11805   shlibpath_var=LD_LIBRARY_PATH
11806   shlibpath_overrides_runpath=yes
11807   ;;
11808
11809 *nto* | *qnx*)
11810   version_type=qnx
11811   need_lib_prefix=no
11812   need_version=no
11813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11814   soname_spec='${libname}${release}${shared_ext}$major'
11815   shlibpath_var=LD_LIBRARY_PATH
11816   shlibpath_overrides_runpath=no
11817   hardcode_into_libs=yes
11818   dynamic_linker='ldqnx.so'
11819   ;;
11820
11821 openbsd*)
11822   version_type=sunos
11823   sys_lib_dlsearch_path_spec="/usr/lib"
11824   need_lib_prefix=no
11825   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11826   case $host_os in
11827     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11828     *)                          need_version=no  ;;
11829   esac
11830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11831   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11832   shlibpath_var=LD_LIBRARY_PATH
11833   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11834     case $host_os in
11835       openbsd2.[89] | openbsd2.[89].*)
11836         shlibpath_overrides_runpath=no
11837         ;;
11838       *)
11839         shlibpath_overrides_runpath=yes
11840         ;;
11841       esac
11842   else
11843     shlibpath_overrides_runpath=yes
11844   fi
11845   ;;
11846
11847 os2*)
11848   libname_spec='$name'
11849   shrext_cmds=".dll"
11850   need_lib_prefix=no
11851   library_names_spec='$libname${shared_ext} $libname.a'
11852   dynamic_linker='OS/2 ld.exe'
11853   shlibpath_var=LIBPATH
11854   ;;
11855
11856 osf3* | osf4* | osf5*)
11857   version_type=osf
11858   need_lib_prefix=no
11859   need_version=no
11860   soname_spec='${libname}${release}${shared_ext}$major'
11861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11862   shlibpath_var=LD_LIBRARY_PATH
11863   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11864   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11865   ;;
11866
11867 rdos*)
11868   dynamic_linker=no
11869   ;;
11870
11871 solaris*)
11872   version_type=linux
11873   need_lib_prefix=no
11874   need_version=no
11875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11876   soname_spec='${libname}${release}${shared_ext}$major'
11877   shlibpath_var=LD_LIBRARY_PATH
11878   shlibpath_overrides_runpath=yes
11879   hardcode_into_libs=yes
11880   # ldd complains unless libraries are executable
11881   postinstall_cmds='chmod +x $lib'
11882   ;;
11883
11884 sunos4*)
11885   version_type=sunos
11886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11887   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11888   shlibpath_var=LD_LIBRARY_PATH
11889   shlibpath_overrides_runpath=yes
11890   if test "$with_gnu_ld" = yes; then
11891     need_lib_prefix=no
11892   fi
11893   need_version=yes
11894   ;;
11895
11896 sysv4 | sysv4.3*)
11897   version_type=linux
11898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11899   soname_spec='${libname}${release}${shared_ext}$major'
11900   shlibpath_var=LD_LIBRARY_PATH
11901   case $host_vendor in
11902     sni)
11903       shlibpath_overrides_runpath=no
11904       need_lib_prefix=no
11905       runpath_var=LD_RUN_PATH
11906       ;;
11907     siemens)
11908       need_lib_prefix=no
11909       ;;
11910     motorola)
11911       need_lib_prefix=no
11912       need_version=no
11913       shlibpath_overrides_runpath=no
11914       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11915       ;;
11916   esac
11917   ;;
11918
11919 sysv4*MP*)
11920   if test -d /usr/nec ;then
11921     version_type=linux
11922     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11923     soname_spec='$libname${shared_ext}.$major'
11924     shlibpath_var=LD_LIBRARY_PATH
11925   fi
11926   ;;
11927
11928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11929   version_type=freebsd-elf
11930   need_lib_prefix=no
11931   need_version=no
11932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11933   soname_spec='${libname}${release}${shared_ext}$major'
11934   shlibpath_var=LD_LIBRARY_PATH
11935   shlibpath_overrides_runpath=yes
11936   hardcode_into_libs=yes
11937   if test "$with_gnu_ld" = yes; then
11938     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11939   else
11940     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11941     case $host_os in
11942       sco3.2v5*)
11943         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11944         ;;
11945     esac
11946   fi
11947   sys_lib_dlsearch_path_spec='/usr/lib'
11948   ;;
11949
11950 tpf*)
11951   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11952   version_type=linux
11953   need_lib_prefix=no
11954   need_version=no
11955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11956   shlibpath_var=LD_LIBRARY_PATH
11957   shlibpath_overrides_runpath=no
11958   hardcode_into_libs=yes
11959   ;;
11960
11961 uts4*)
11962   version_type=linux
11963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11964   soname_spec='${libname}${release}${shared_ext}$major'
11965   shlibpath_var=LD_LIBRARY_PATH
11966   ;;
11967
11968 *)
11969   dynamic_linker=no
11970   ;;
11971 esac
11972 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11973 echo "${ECHO_T}$dynamic_linker" >&6; }
11974 test "$dynamic_linker" = no && can_build_shared=no
11975
11976 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11977 if test "$GCC" = yes; then
11978   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11979 fi
11980
11981 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11982   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11983 fi
11984 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11985   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11986 fi
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12075 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12076 hardcode_action=
12077 if test -n "$hardcode_libdir_flag_spec" ||
12078    test -n "$runpath_var" ||
12079    test "X$hardcode_automatic" = "Xyes" ; then
12080
12081   # We can hardcode non-existent directories.
12082   if test "$hardcode_direct" != no &&
12083      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12084      # have to relink, otherwise we might link with an installed library
12085      # when we should be linking with a yet-to-be-installed one
12086      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12087      test "$hardcode_minus_L" != no; then
12088     # Linking always hardcodes the temporary library directory.
12089     hardcode_action=relink
12090   else
12091     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12092     hardcode_action=immediate
12093   fi
12094 else
12095   # We cannot hardcode anything, or else we can only hardcode existing
12096   # directories.
12097   hardcode_action=unsupported
12098 fi
12099 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12100 echo "${ECHO_T}$hardcode_action" >&6; }
12101
12102 if test "$hardcode_action" = relink ||
12103    test "$inherit_rpath" = yes; then
12104   # Fast installation is not supported
12105   enable_fast_install=no
12106 elif test "$shlibpath_overrides_runpath" = yes ||
12107      test "$enable_shared" = no; then
12108   # Fast installation is not necessary
12109   enable_fast_install=needless
12110 fi
12111
12112
12113
12114
12115
12116
12117   if test "x$enable_dlopen" != xyes; then
12118   enable_dlopen=unknown
12119   enable_dlopen_self=unknown
12120   enable_dlopen_self_static=unknown
12121 else
12122   lt_cv_dlopen=no
12123   lt_cv_dlopen_libs=
12124
12125   case $host_os in
12126   beos*)
12127     lt_cv_dlopen="load_add_on"
12128     lt_cv_dlopen_libs=
12129     lt_cv_dlopen_self=yes
12130     ;;
12131
12132   mingw* | pw32* | cegcc*)
12133     lt_cv_dlopen="LoadLibrary"
12134     lt_cv_dlopen_libs=
12135     ;;
12136
12137   cygwin*)
12138     lt_cv_dlopen="dlopen"
12139     lt_cv_dlopen_libs=
12140     ;;
12141
12142   darwin*)
12143   # if libdl is installed we need to link against it
12144     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12145 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12146 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12147   echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149   ac_check_lib_save_LIBS=$LIBS
12150 LIBS="-ldl  $LIBS"
12151 cat >conftest.$ac_ext <<_ACEOF
12152 /* confdefs.h.  */
12153 _ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h.  */
12157
12158 /* Override any GCC internal prototype to avoid an error.
12159    Use char because int might match the return type of a GCC
12160    builtin and then its argument prototype would still apply.  */
12161 #ifdef __cplusplus
12162 extern "C"
12163 #endif
12164 char dlopen ();
12165 int
12166 main ()
12167 {
12168 return dlopen ();
12169   ;
12170   return 0;
12171 }
12172 _ACEOF
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (ac_try="$ac_link"
12175 case "(($ac_try" in
12176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177   *) ac_try_echo=$ac_try;;
12178 esac
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180   (eval "$ac_link") 2>conftest.er1
12181   ac_status=$?
12182   grep -v '^ *+' conftest.er1 >conftest.err
12183   rm -f conftest.er1
12184   cat conftest.err >&5
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); } && {
12187          test -z "$ac_c_werror_flag" ||
12188          test ! -s conftest.err
12189        } && test -s conftest$ac_exeext &&
12190        $as_test_x conftest$ac_exeext; then
12191   ac_cv_lib_dl_dlopen=yes
12192 else
12193   echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12195
12196         ac_cv_lib_dl_dlopen=no
12197 fi
12198
12199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12200       conftest$ac_exeext conftest.$ac_ext
12201 LIBS=$ac_check_lib_save_LIBS
12202 fi
12203 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12204 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12205 if test $ac_cv_lib_dl_dlopen = yes; then
12206   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12207 else
12208
12209     lt_cv_dlopen="dyld"
12210     lt_cv_dlopen_libs=
12211     lt_cv_dlopen_self=yes
12212
12213 fi
12214
12215     ;;
12216
12217   *)
12218     { echo "$as_me:$LINENO: checking for shl_load" >&5
12219 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12220 if test "${ac_cv_func_shl_load+set}" = set; then
12221   echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223   cat >conftest.$ac_ext <<_ACEOF
12224 /* confdefs.h.  */
12225 _ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h.  */
12229 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12231 #define shl_load innocuous_shl_load
12232
12233 /* System header to define __stub macros and hopefully few prototypes,
12234     which can conflict with char shl_load (); below.
12235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12236     <limits.h> exists even on freestanding compilers.  */
12237
12238 #ifdef __STDC__
12239 # include <limits.h>
12240 #else
12241 # include <assert.h>
12242 #endif
12243
12244 #undef shl_load
12245
12246 /* Override any GCC internal prototype to avoid an error.
12247    Use char because int might match the return type of a GCC
12248    builtin and then its argument prototype would still apply.  */
12249 #ifdef __cplusplus
12250 extern "C"
12251 #endif
12252 char shl_load ();
12253 /* The GNU C library defines this for functions which it implements
12254     to always fail with ENOSYS.  Some functions are actually named
12255     something starting with __ and the normal name is an alias.  */
12256 #if defined __stub_shl_load || defined __stub___shl_load
12257 choke me
12258 #endif
12259
12260 int
12261 main ()
12262 {
12263 return shl_load ();
12264   ;
12265   return 0;
12266 }
12267 _ACEOF
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (ac_try="$ac_link"
12270 case "(($ac_try" in
12271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272   *) ac_try_echo=$ac_try;;
12273 esac
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275   (eval "$ac_link") 2>conftest.er1
12276   ac_status=$?
12277   grep -v '^ *+' conftest.er1 >conftest.err
12278   rm -f conftest.er1
12279   cat conftest.err >&5
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); } && {
12282          test -z "$ac_c_werror_flag" ||
12283          test ! -s conftest.err
12284        } && test -s conftest$ac_exeext &&
12285        $as_test_x conftest$ac_exeext; then
12286   ac_cv_func_shl_load=yes
12287 else
12288   echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12290
12291         ac_cv_func_shl_load=no
12292 fi
12293
12294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12295       conftest$ac_exeext conftest.$ac_ext
12296 fi
12297 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12298 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12299 if test $ac_cv_func_shl_load = yes; then
12300   lt_cv_dlopen="shl_load"
12301 else
12302   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12303 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12304 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12305   echo $ECHO_N "(cached) $ECHO_C" >&6
12306 else
12307   ac_check_lib_save_LIBS=$LIBS
12308 LIBS="-ldld  $LIBS"
12309 cat >conftest.$ac_ext <<_ACEOF
12310 /* confdefs.h.  */
12311 _ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h.  */
12315
12316 /* Override any GCC internal prototype to avoid an error.
12317    Use char because int might match the return type of a GCC
12318    builtin and then its argument prototype would still apply.  */
12319 #ifdef __cplusplus
12320 extern "C"
12321 #endif
12322 char shl_load ();
12323 int
12324 main ()
12325 {
12326 return shl_load ();
12327   ;
12328   return 0;
12329 }
12330 _ACEOF
12331 rm -f conftest.$ac_objext conftest$ac_exeext
12332 if { (ac_try="$ac_link"
12333 case "(($ac_try" in
12334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335   *) ac_try_echo=$ac_try;;
12336 esac
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338   (eval "$ac_link") 2>conftest.er1
12339   ac_status=$?
12340   grep -v '^ *+' conftest.er1 >conftest.err
12341   rm -f conftest.er1
12342   cat conftest.err >&5
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); } && {
12345          test -z "$ac_c_werror_flag" ||
12346          test ! -s conftest.err
12347        } && test -s conftest$ac_exeext &&
12348        $as_test_x conftest$ac_exeext; then
12349   ac_cv_lib_dld_shl_load=yes
12350 else
12351   echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12353
12354         ac_cv_lib_dld_shl_load=no
12355 fi
12356
12357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12358       conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12360 fi
12361 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12362 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12363 if test $ac_cv_lib_dld_shl_load = yes; then
12364   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12365 else
12366   { echo "$as_me:$LINENO: checking for dlopen" >&5
12367 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12368 if test "${ac_cv_func_dlopen+set}" = set; then
12369   echo $ECHO_N "(cached) $ECHO_C" >&6
12370 else
12371   cat >conftest.$ac_ext <<_ACEOF
12372 /* confdefs.h.  */
12373 _ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h.  */
12377 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12379 #define dlopen innocuous_dlopen
12380
12381 /* System header to define __stub macros and hopefully few prototypes,
12382     which can conflict with char dlopen (); below.
12383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12384     <limits.h> exists even on freestanding compilers.  */
12385
12386 #ifdef __STDC__
12387 # include <limits.h>
12388 #else
12389 # include <assert.h>
12390 #endif
12391
12392 #undef dlopen
12393
12394 /* Override any GCC internal prototype to avoid an error.
12395    Use char because int might match the return type of a GCC
12396    builtin and then its argument prototype would still apply.  */
12397 #ifdef __cplusplus
12398 extern "C"
12399 #endif
12400 char dlopen ();
12401 /* The GNU C library defines this for functions which it implements
12402     to always fail with ENOSYS.  Some functions are actually named
12403     something starting with __ and the normal name is an alias.  */
12404 #if defined __stub_dlopen || defined __stub___dlopen
12405 choke me
12406 #endif
12407
12408 int
12409 main ()
12410 {
12411 return dlopen ();
12412   ;
12413   return 0;
12414 }
12415 _ACEOF
12416 rm -f conftest.$ac_objext conftest$ac_exeext
12417 if { (ac_try="$ac_link"
12418 case "(($ac_try" in
12419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420   *) ac_try_echo=$ac_try;;
12421 esac
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423   (eval "$ac_link") 2>conftest.er1
12424   ac_status=$?
12425   grep -v '^ *+' conftest.er1 >conftest.err
12426   rm -f conftest.er1
12427   cat conftest.err >&5
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); } && {
12430          test -z "$ac_c_werror_flag" ||
12431          test ! -s conftest.err
12432        } && test -s conftest$ac_exeext &&
12433        $as_test_x conftest$ac_exeext; then
12434   ac_cv_func_dlopen=yes
12435 else
12436   echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12438
12439         ac_cv_func_dlopen=no
12440 fi
12441
12442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12443       conftest$ac_exeext conftest.$ac_ext
12444 fi
12445 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12446 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12447 if test $ac_cv_func_dlopen = yes; then
12448   lt_cv_dlopen="dlopen"
12449 else
12450   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12451 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12452 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12453   echo $ECHO_N "(cached) $ECHO_C" >&6
12454 else
12455   ac_check_lib_save_LIBS=$LIBS
12456 LIBS="-ldl  $LIBS"
12457 cat >conftest.$ac_ext <<_ACEOF
12458 /* confdefs.h.  */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h.  */
12463
12464 /* Override any GCC internal prototype to avoid an error.
12465    Use char because int might match the return type of a GCC
12466    builtin and then its argument prototype would still apply.  */
12467 #ifdef __cplusplus
12468 extern "C"
12469 #endif
12470 char dlopen ();
12471 int
12472 main ()
12473 {
12474 return dlopen ();
12475   ;
12476   return 0;
12477 }
12478 _ACEOF
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (ac_try="$ac_link"
12481 case "(($ac_try" in
12482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483   *) ac_try_echo=$ac_try;;
12484 esac
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486   (eval "$ac_link") 2>conftest.er1
12487   ac_status=$?
12488   grep -v '^ *+' conftest.er1 >conftest.err
12489   rm -f conftest.er1
12490   cat conftest.err >&5
12491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492   (exit $ac_status); } && {
12493          test -z "$ac_c_werror_flag" ||
12494          test ! -s conftest.err
12495        } && test -s conftest$ac_exeext &&
12496        $as_test_x conftest$ac_exeext; then
12497   ac_cv_lib_dl_dlopen=yes
12498 else
12499   echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12501
12502         ac_cv_lib_dl_dlopen=no
12503 fi
12504
12505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12506       conftest$ac_exeext conftest.$ac_ext
12507 LIBS=$ac_check_lib_save_LIBS
12508 fi
12509 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12510 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12511 if test $ac_cv_lib_dl_dlopen = yes; then
12512   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12513 else
12514   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12515 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12516 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12517   echo $ECHO_N "(cached) $ECHO_C" >&6
12518 else
12519   ac_check_lib_save_LIBS=$LIBS
12520 LIBS="-lsvld  $LIBS"
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h.  */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h.  */
12527
12528 /* Override any GCC internal prototype to avoid an error.
12529    Use char because int might match the return type of a GCC
12530    builtin and then its argument prototype would still apply.  */
12531 #ifdef __cplusplus
12532 extern "C"
12533 #endif
12534 char dlopen ();
12535 int
12536 main ()
12537 {
12538 return dlopen ();
12539   ;
12540   return 0;
12541 }
12542 _ACEOF
12543 rm -f conftest.$ac_objext conftest$ac_exeext
12544 if { (ac_try="$ac_link"
12545 case "(($ac_try" in
12546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547   *) ac_try_echo=$ac_try;;
12548 esac
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550   (eval "$ac_link") 2>conftest.er1
12551   ac_status=$?
12552   grep -v '^ *+' conftest.er1 >conftest.err
12553   rm -f conftest.er1
12554   cat conftest.err >&5
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); } && {
12557          test -z "$ac_c_werror_flag" ||
12558          test ! -s conftest.err
12559        } && test -s conftest$ac_exeext &&
12560        $as_test_x conftest$ac_exeext; then
12561   ac_cv_lib_svld_dlopen=yes
12562 else
12563   echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12565
12566         ac_cv_lib_svld_dlopen=no
12567 fi
12568
12569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12570       conftest$ac_exeext conftest.$ac_ext
12571 LIBS=$ac_check_lib_save_LIBS
12572 fi
12573 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12574 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12575 if test $ac_cv_lib_svld_dlopen = yes; then
12576   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12577 else
12578   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12579 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12580 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12581   echo $ECHO_N "(cached) $ECHO_C" >&6
12582 else
12583   ac_check_lib_save_LIBS=$LIBS
12584 LIBS="-ldld  $LIBS"
12585 cat >conftest.$ac_ext <<_ACEOF
12586 /* confdefs.h.  */
12587 _ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h.  */
12591
12592 /* Override any GCC internal prototype to avoid an error.
12593    Use char because int might match the return type of a GCC
12594    builtin and then its argument prototype would still apply.  */
12595 #ifdef __cplusplus
12596 extern "C"
12597 #endif
12598 char dld_link ();
12599 int
12600 main ()
12601 {
12602 return dld_link ();
12603   ;
12604   return 0;
12605 }
12606 _ACEOF
12607 rm -f conftest.$ac_objext conftest$ac_exeext
12608 if { (ac_try="$ac_link"
12609 case "(($ac_try" in
12610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611   *) ac_try_echo=$ac_try;;
12612 esac
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614   (eval "$ac_link") 2>conftest.er1
12615   ac_status=$?
12616   grep -v '^ *+' conftest.er1 >conftest.err
12617   rm -f conftest.er1
12618   cat conftest.err >&5
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); } && {
12621          test -z "$ac_c_werror_flag" ||
12622          test ! -s conftest.err
12623        } && test -s conftest$ac_exeext &&
12624        $as_test_x conftest$ac_exeext; then
12625   ac_cv_lib_dld_dld_link=yes
12626 else
12627   echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12629
12630         ac_cv_lib_dld_dld_link=no
12631 fi
12632
12633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12634       conftest$ac_exeext conftest.$ac_ext
12635 LIBS=$ac_check_lib_save_LIBS
12636 fi
12637 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12638 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12639 if test $ac_cv_lib_dld_dld_link = yes; then
12640   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12641 fi
12642
12643
12644 fi
12645
12646
12647 fi
12648
12649
12650 fi
12651
12652
12653 fi
12654
12655
12656 fi
12657
12658     ;;
12659   esac
12660
12661   if test "x$lt_cv_dlopen" != xno; then
12662     enable_dlopen=yes
12663   else
12664     enable_dlopen=no
12665   fi
12666
12667   case $lt_cv_dlopen in
12668   dlopen)
12669     save_CPPFLAGS="$CPPFLAGS"
12670     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12671
12672     save_LDFLAGS="$LDFLAGS"
12673     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12674
12675     save_LIBS="$LIBS"
12676     LIBS="$lt_cv_dlopen_libs $LIBS"
12677
12678     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12679 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12680 if test "${lt_cv_dlopen_self+set}" = set; then
12681   echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683           if test "$cross_compiling" = yes; then :
12684   lt_cv_dlopen_self=cross
12685 else
12686   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12687   lt_status=$lt_dlunknown
12688   cat > conftest.$ac_ext <<_LT_EOF
12689 #line 12689 "configure"
12690 #include "confdefs.h"
12691
12692 #if HAVE_DLFCN_H
12693 #include <dlfcn.h>
12694 #endif
12695
12696 #include <stdio.h>
12697
12698 #ifdef RTLD_GLOBAL
12699 #  define LT_DLGLOBAL           RTLD_GLOBAL
12700 #else
12701 #  ifdef DL_GLOBAL
12702 #    define LT_DLGLOBAL         DL_GLOBAL
12703 #  else
12704 #    define LT_DLGLOBAL         0
12705 #  endif
12706 #endif
12707
12708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12709    find out it does not work in some platform. */
12710 #ifndef LT_DLLAZY_OR_NOW
12711 #  ifdef RTLD_LAZY
12712 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12713 #  else
12714 #    ifdef DL_LAZY
12715 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12716 #    else
12717 #      ifdef RTLD_NOW
12718 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12719 #      else
12720 #        ifdef DL_NOW
12721 #          define LT_DLLAZY_OR_NOW      DL_NOW
12722 #        else
12723 #          define LT_DLLAZY_OR_NOW      0
12724 #        endif
12725 #      endif
12726 #    endif
12727 #  endif
12728 #endif
12729
12730 void fnord() { int i=42;}
12731 int main ()
12732 {
12733   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12734   int status = $lt_dlunknown;
12735
12736   if (self)
12737     {
12738       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12739       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12740       /* dlclose (self); */
12741     }
12742   else
12743     puts (dlerror ());
12744
12745   return status;
12746 }
12747 _LT_EOF
12748   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12749   (eval $ac_link) 2>&5
12750   ac_status=$?
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12753     (./conftest; exit; ) >&5 2>/dev/null
12754     lt_status=$?
12755     case x$lt_status in
12756       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12757       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12758       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12759     esac
12760   else :
12761     # compilation failed
12762     lt_cv_dlopen_self=no
12763   fi
12764 fi
12765 rm -fr conftest*
12766
12767
12768 fi
12769 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12770 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12771
12772     if test "x$lt_cv_dlopen_self" = xyes; then
12773       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12774       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12775 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12776 if test "${lt_cv_dlopen_self_static+set}" = set; then
12777   echo $ECHO_N "(cached) $ECHO_C" >&6
12778 else
12779           if test "$cross_compiling" = yes; then :
12780   lt_cv_dlopen_self_static=cross
12781 else
12782   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12783   lt_status=$lt_dlunknown
12784   cat > conftest.$ac_ext <<_LT_EOF
12785 #line 12785 "configure"
12786 #include "confdefs.h"
12787
12788 #if HAVE_DLFCN_H
12789 #include <dlfcn.h>
12790 #endif
12791
12792 #include <stdio.h>
12793
12794 #ifdef RTLD_GLOBAL
12795 #  define LT_DLGLOBAL           RTLD_GLOBAL
12796 #else
12797 #  ifdef DL_GLOBAL
12798 #    define LT_DLGLOBAL         DL_GLOBAL
12799 #  else
12800 #    define LT_DLGLOBAL         0
12801 #  endif
12802 #endif
12803
12804 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12805    find out it does not work in some platform. */
12806 #ifndef LT_DLLAZY_OR_NOW
12807 #  ifdef RTLD_LAZY
12808 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12809 #  else
12810 #    ifdef DL_LAZY
12811 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12812 #    else
12813 #      ifdef RTLD_NOW
12814 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12815 #      else
12816 #        ifdef DL_NOW
12817 #          define LT_DLLAZY_OR_NOW      DL_NOW
12818 #        else
12819 #          define LT_DLLAZY_OR_NOW      0
12820 #        endif
12821 #      endif
12822 #    endif
12823 #  endif
12824 #endif
12825
12826 void fnord() { int i=42;}
12827 int main ()
12828 {
12829   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12830   int status = $lt_dlunknown;
12831
12832   if (self)
12833     {
12834       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12835       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12836       /* dlclose (self); */
12837     }
12838   else
12839     puts (dlerror ());
12840
12841   return status;
12842 }
12843 _LT_EOF
12844   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12845   (eval $ac_link) 2>&5
12846   ac_status=$?
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12849     (./conftest; exit; ) >&5 2>/dev/null
12850     lt_status=$?
12851     case x$lt_status in
12852       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12853       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12854       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12855     esac
12856   else :
12857     # compilation failed
12858     lt_cv_dlopen_self_static=no
12859   fi
12860 fi
12861 rm -fr conftest*
12862
12863
12864 fi
12865 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12866 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12867     fi
12868
12869     CPPFLAGS="$save_CPPFLAGS"
12870     LDFLAGS="$save_LDFLAGS"
12871     LIBS="$save_LIBS"
12872     ;;
12873   esac
12874
12875   case $lt_cv_dlopen_self in
12876   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12877   *) enable_dlopen_self=unknown ;;
12878   esac
12879
12880   case $lt_cv_dlopen_self_static in
12881   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12882   *) enable_dlopen_self_static=unknown ;;
12883   esac
12884 fi
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902 striplib=
12903 old_striplib=
12904 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12905 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12906 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12907   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12908   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12909   { echo "$as_me:$LINENO: result: yes" >&5
12910 echo "${ECHO_T}yes" >&6; }
12911 else
12912 # FIXME - insert some real tests, host_os isn't really good enough
12913   case $host_os in
12914   darwin*)
12915     if test -n "$STRIP" ; then
12916       striplib="$STRIP -x"
12917       old_striplib="$STRIP -S"
12918       { echo "$as_me:$LINENO: result: yes" >&5
12919 echo "${ECHO_T}yes" >&6; }
12920     else
12921       { echo "$as_me:$LINENO: result: no" >&5
12922 echo "${ECHO_T}no" >&6; }
12923     fi
12924     ;;
12925   *)
12926     { echo "$as_me:$LINENO: result: no" >&5
12927 echo "${ECHO_T}no" >&6; }
12928     ;;
12929   esac
12930 fi
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943   # Report which library types will actually be built
12944   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12945 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12946   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12947 echo "${ECHO_T}$can_build_shared" >&6; }
12948
12949   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12950 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12951   test "$can_build_shared" = "no" && enable_shared=no
12952
12953   # On AIX, shared libraries and static libraries use the same namespace, and
12954   # are all built from PIC.
12955   case $host_os in
12956   aix3*)
12957     test "$enable_shared" = yes && enable_static=no
12958     if test -n "$RANLIB"; then
12959       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12960       postinstall_cmds='$RANLIB $lib'
12961     fi
12962     ;;
12963
12964   aix[4-9]*)
12965     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12966       test "$enable_shared" = yes && enable_static=no
12967     fi
12968     ;;
12969   esac
12970   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12971 echo "${ECHO_T}$enable_shared" >&6; }
12972
12973   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12974 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12975   # Make sure either enable_shared or enable_static is yes.
12976   test "$enable_shared" = yes || enable_static=yes
12977   { echo "$as_me:$LINENO: result: $enable_static" >&5
12978 echo "${ECHO_T}$enable_static" >&6; }
12979
12980
12981
12982
12983 fi
12984 ac_ext=c
12985 ac_cpp='$CPP $CPPFLAGS'
12986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12989
12990 CC="$lt_save_CC"
12991
12992
12993 ac_ext=cpp
12994 ac_cpp='$CXXCPP $CPPFLAGS'
12995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12998
12999 archive_cmds_need_lc_CXX=no
13000 allow_undefined_flag_CXX=
13001 always_export_symbols_CXX=no
13002 archive_expsym_cmds_CXX=
13003 compiler_needs_object_CXX=no
13004 export_dynamic_flag_spec_CXX=
13005 hardcode_direct_CXX=no
13006 hardcode_direct_absolute_CXX=no
13007 hardcode_libdir_flag_spec_CXX=
13008 hardcode_libdir_flag_spec_ld_CXX=
13009 hardcode_libdir_separator_CXX=
13010 hardcode_minus_L_CXX=no
13011 hardcode_shlibpath_var_CXX=unsupported
13012 hardcode_automatic_CXX=no
13013 inherit_rpath_CXX=no
13014 module_cmds_CXX=
13015 module_expsym_cmds_CXX=
13016 link_all_deplibs_CXX=unknown
13017 old_archive_cmds_CXX=$old_archive_cmds
13018 no_undefined_flag_CXX=
13019 whole_archive_flag_spec_CXX=
13020 enable_shared_with_static_runtimes_CXX=no
13021
13022 # Source file extension for C++ test sources.
13023 ac_ext=cpp
13024
13025 # Object file extension for compiled C++ test sources.
13026 objext=o
13027 objext_CXX=$objext
13028
13029 # No sense in running all these tests if we already determined that
13030 # the CXX compiler isn't working.  Some variables (like enable_shared)
13031 # are currently assumed to apply to all compilers on this platform,
13032 # and will be corrupted by setting them based on a non-working compiler.
13033 if test "$_lt_caught_CXX_error" != yes; then
13034   # Code to be used in simple compile tests
13035   lt_simple_compile_test_code="int some_variable = 0;"
13036
13037   # Code to be used in simple link tests
13038   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13039
13040   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13041
13042
13043
13044
13045
13046
13047 # If no C compiler was specified, use CC.
13048 LTCC=${LTCC-"$CC"}
13049
13050 # If no C compiler flags were specified, use CFLAGS.
13051 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13052
13053 # Allow CC to be a program name with arguments.
13054 compiler=$CC
13055
13056
13057   # save warnings/boilerplate of simple test code
13058   ac_outfile=conftest.$ac_objext
13059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13060 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13061 _lt_compiler_boilerplate=`cat conftest.err`
13062 $RM conftest*
13063
13064   ac_outfile=conftest.$ac_objext
13065 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13066 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13067 _lt_linker_boilerplate=`cat conftest.err`
13068 $RM -r conftest*
13069
13070
13071   # Allow CC to be a program name with arguments.
13072   lt_save_CC=$CC
13073   lt_save_LD=$LD
13074   lt_save_GCC=$GCC
13075   GCC=$GXX
13076   lt_save_with_gnu_ld=$with_gnu_ld
13077   lt_save_path_LD=$lt_cv_path_LD
13078   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13079     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13080   else
13081     $as_unset lt_cv_prog_gnu_ld
13082   fi
13083   if test -n "${lt_cv_path_LDCXX+set}"; then
13084     lt_cv_path_LD=$lt_cv_path_LDCXX
13085   else
13086     $as_unset lt_cv_path_LD
13087   fi
13088   test -z "${LDCXX+set}" || LD=$LDCXX
13089   CC=${CXX-"c++"}
13090   compiler=$CC
13091   compiler_CXX=$CC
13092   for cc_temp in $compiler""; do
13093   case $cc_temp in
13094     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13095     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13096     \-*) ;;
13097     *) break;;
13098   esac
13099 done
13100 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13101
13102
13103   if test -n "$compiler"; then
13104     # We don't want -fno-exception when compiling C++ code, so set the
13105     # no_builtin_flag separately
13106     if test "$GXX" = yes; then
13107       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13108     else
13109       lt_prog_compiler_no_builtin_flag_CXX=
13110     fi
13111
13112     if test "$GXX" = yes; then
13113       # Set up default GNU C++ configuration
13114
13115
13116
13117 # Check whether --with-gnu-ld was given.
13118 if test "${with_gnu_ld+set}" = set; then
13119   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13120 else
13121   with_gnu_ld=no
13122 fi
13123
13124 ac_prog=ld
13125 if test "$GCC" = yes; then
13126   # Check if gcc -print-prog-name=ld gives a path.
13127   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13128 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13129   case $host in
13130   *-*-mingw*)
13131     # gcc leaves a trailing carriage return which upsets mingw
13132     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13133   *)
13134     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13135   esac
13136   case $ac_prog in
13137     # Accept absolute paths.
13138     [\\/]* | ?:[\\/]*)
13139       re_direlt='/[^/][^/]*/\.\./'
13140       # Canonicalize the pathname of ld
13141       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13142       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13143         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13144       done
13145       test -z "$LD" && LD="$ac_prog"
13146       ;;
13147   "")
13148     # If it fails, then pretend we aren't using GCC.
13149     ac_prog=ld
13150     ;;
13151   *)
13152     # If it is relative, then search for the first ld in PATH.
13153     with_gnu_ld=unknown
13154     ;;
13155   esac
13156 elif test "$with_gnu_ld" = yes; then
13157   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13158 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13159 else
13160   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13161 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13162 fi
13163 if test "${lt_cv_path_LD+set}" = set; then
13164   echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166   if test -z "$LD"; then
13167   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13168   for ac_dir in $PATH; do
13169     IFS="$lt_save_ifs"
13170     test -z "$ac_dir" && ac_dir=.
13171     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13172       lt_cv_path_LD="$ac_dir/$ac_prog"
13173       # Check to see if the program is GNU ld.  I'd rather use --version,
13174       # but apparently some variants of GNU ld only accept -v.
13175       # Break only if it was the GNU/non-GNU ld that we prefer.
13176       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13177       *GNU* | *'with BFD'*)
13178         test "$with_gnu_ld" != no && break
13179         ;;
13180       *)
13181         test "$with_gnu_ld" != yes && break
13182         ;;
13183       esac
13184     fi
13185   done
13186   IFS="$lt_save_ifs"
13187 else
13188   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13189 fi
13190 fi
13191
13192 LD="$lt_cv_path_LD"
13193 if test -n "$LD"; then
13194   { echo "$as_me:$LINENO: result: $LD" >&5
13195 echo "${ECHO_T}$LD" >&6; }
13196 else
13197   { echo "$as_me:$LINENO: result: no" >&5
13198 echo "${ECHO_T}no" >&6; }
13199 fi
13200 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13201 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13202    { (exit 1); exit 1; }; }
13203 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13204 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13205 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13206   echo $ECHO_N "(cached) $ECHO_C" >&6
13207 else
13208   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13209 case `$LD -v 2>&1 </dev/null` in
13210 *GNU* | *'with BFD'*)
13211   lt_cv_prog_gnu_ld=yes
13212   ;;
13213 *)
13214   lt_cv_prog_gnu_ld=no
13215   ;;
13216 esac
13217 fi
13218 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13219 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13220 with_gnu_ld=$lt_cv_prog_gnu_ld
13221
13222
13223
13224
13225
13226
13227
13228       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13229       # archiving commands below assume that GNU ld is being used.
13230       if test "$with_gnu_ld" = yes; then
13231         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13232         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'
13233
13234         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13235         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13236
13237         # If archive_cmds runs LD, not CC, wlarc should be empty
13238         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13239         #     investigate it a little bit more. (MM)
13240         wlarc='${wl}'
13241
13242         # ancient GNU ld didn't support --whole-archive et. al.
13243         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13244           $GREP 'no-whole-archive' > /dev/null; then
13245           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13246         else
13247           whole_archive_flag_spec_CXX=
13248         fi
13249       else
13250         with_gnu_ld=no
13251         wlarc=
13252
13253         # A generic and very simple default shared library creation
13254         # command for GNU C++ for the case where it uses the native
13255         # linker, instead of GNU ld.  If possible, this setting should
13256         # overridden to take advantage of the native linker features on
13257         # the platform it is being used on.
13258         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13259       fi
13260
13261       # Commands to make compiler produce verbose output that lists
13262       # what "hidden" libraries, object files and flags are used when
13263       # linking a shared library.
13264       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13265
13266     else
13267       GXX=no
13268       with_gnu_ld=no
13269       wlarc=
13270     fi
13271
13272     # PORTME: fill in a description of your system's C++ link characteristics
13273     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13274 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13275     ld_shlibs_CXX=yes
13276     case $host_os in
13277       aix3*)
13278         # FIXME: insert proper C++ library support
13279         ld_shlibs_CXX=no
13280         ;;
13281       aix[4-9]*)
13282         if test "$host_cpu" = ia64; then
13283           # On IA64, the linker does run time linking by default, so we don't
13284           # have to do anything special.
13285           aix_use_runtimelinking=no
13286           exp_sym_flag='-Bexport'
13287           no_entry_flag=""
13288         else
13289           aix_use_runtimelinking=no
13290
13291           # Test if we are trying to use run time linking or normal
13292           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13293           # need to do runtime linking.
13294           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13295             for ld_flag in $LDFLAGS; do
13296               case $ld_flag in
13297               *-brtl*)
13298                 aix_use_runtimelinking=yes
13299                 break
13300                 ;;
13301               esac
13302             done
13303             ;;
13304           esac
13305
13306           exp_sym_flag='-bexport'
13307           no_entry_flag='-bnoentry'
13308         fi
13309
13310         # When large executables or shared objects are built, AIX ld can
13311         # have problems creating the table of contents.  If linking a library
13312         # or program results in "error TOC overflow" add -mminimal-toc to
13313         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13314         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13315
13316         archive_cmds_CXX=''
13317         hardcode_direct_CXX=yes
13318         hardcode_direct_absolute_CXX=yes
13319         hardcode_libdir_separator_CXX=':'
13320         link_all_deplibs_CXX=yes
13321         file_list_spec_CXX='${wl}-f,'
13322
13323         if test "$GXX" = yes; then
13324           case $host_os in aix4.[012]|aix4.[012].*)
13325           # We only want to do this on AIX 4.2 and lower, the check
13326           # below for broken collect2 doesn't work under 4.3+
13327           collect2name=`${CC} -print-prog-name=collect2`
13328           if test -f "$collect2name" &&
13329              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13330           then
13331             # We have reworked collect2
13332             :
13333           else
13334             # We have old collect2
13335             hardcode_direct_CXX=unsupported
13336             # It fails to find uninstalled libraries when the uninstalled
13337             # path is not listed in the libpath.  Setting hardcode_minus_L
13338             # to unsupported forces relinking
13339             hardcode_minus_L_CXX=yes
13340             hardcode_libdir_flag_spec_CXX='-L$libdir'
13341             hardcode_libdir_separator_CXX=
13342           fi
13343           esac
13344           shared_flag='-shared'
13345           if test "$aix_use_runtimelinking" = yes; then
13346             shared_flag="$shared_flag "'${wl}-G'
13347           fi
13348         else
13349           # not using gcc
13350           if test "$host_cpu" = ia64; then
13351           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13352           # chokes on -Wl,-G. The following line is correct:
13353           shared_flag='-G'
13354           else
13355             if test "$aix_use_runtimelinking" = yes; then
13356               shared_flag='${wl}-G'
13357             else
13358               shared_flag='${wl}-bM:SRE'
13359             fi
13360           fi
13361         fi
13362
13363         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13364         # It seems that -bexpall does not export symbols beginning with
13365         # underscore (_), so it is better to generate a list of symbols to
13366         # export.
13367         always_export_symbols_CXX=yes
13368         if test "$aix_use_runtimelinking" = yes; then
13369           # Warning - without using the other runtime loading flags (-brtl),
13370           # -berok will link without error, but may produce a broken library.
13371           allow_undefined_flag_CXX='-berok'
13372           # Determine the default libpath from the value encoded in an empty
13373           # executable.
13374           cat >conftest.$ac_ext <<_ACEOF
13375 /* confdefs.h.  */
13376 _ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h.  */
13380
13381 int
13382 main ()
13383 {
13384
13385   ;
13386   return 0;
13387 }
13388 _ACEOF
13389 rm -f conftest.$ac_objext conftest$ac_exeext
13390 if { (ac_try="$ac_link"
13391 case "(($ac_try" in
13392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393   *) ac_try_echo=$ac_try;;
13394 esac
13395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396   (eval "$ac_link") 2>conftest.er1
13397   ac_status=$?
13398   grep -v '^ *+' conftest.er1 >conftest.err
13399   rm -f conftest.er1
13400   cat conftest.err >&5
13401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402   (exit $ac_status); } && {
13403          test -z "$ac_cxx_werror_flag" ||
13404          test ! -s conftest.err
13405        } && test -s conftest$ac_exeext &&
13406        $as_test_x conftest$ac_exeext; then
13407
13408 lt_aix_libpath_sed='
13409     /Import File Strings/,/^$/ {
13410         /^0/ {
13411             s/^0  *\(.*\)$/\1/
13412             p
13413         }
13414     }'
13415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13416 # Check for a 64-bit object if we didn't find anything.
13417 if test -z "$aix_libpath"; then
13418   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13419 fi
13420 else
13421   echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13423
13424
13425 fi
13426
13427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13428       conftest$ac_exeext conftest.$ac_ext
13429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13430
13431           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13432
13433           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"
13434         else
13435           if test "$host_cpu" = ia64; then
13436             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13437             allow_undefined_flag_CXX="-z nodefs"
13438             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"
13439           else
13440             # Determine the default libpath from the value encoded in an
13441             # empty executable.
13442             cat >conftest.$ac_ext <<_ACEOF
13443 /* confdefs.h.  */
13444 _ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h.  */
13448
13449 int
13450 main ()
13451 {
13452
13453   ;
13454   return 0;
13455 }
13456 _ACEOF
13457 rm -f conftest.$ac_objext conftest$ac_exeext
13458 if { (ac_try="$ac_link"
13459 case "(($ac_try" in
13460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461   *) ac_try_echo=$ac_try;;
13462 esac
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464   (eval "$ac_link") 2>conftest.er1
13465   ac_status=$?
13466   grep -v '^ *+' conftest.er1 >conftest.err
13467   rm -f conftest.er1
13468   cat conftest.err >&5
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); } && {
13471          test -z "$ac_cxx_werror_flag" ||
13472          test ! -s conftest.err
13473        } && test -s conftest$ac_exeext &&
13474        $as_test_x conftest$ac_exeext; then
13475
13476 lt_aix_libpath_sed='
13477     /Import File Strings/,/^$/ {
13478         /^0/ {
13479             s/^0  *\(.*\)$/\1/
13480             p
13481         }
13482     }'
13483 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13484 # Check for a 64-bit object if we didn't find anything.
13485 if test -z "$aix_libpath"; then
13486   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13487 fi
13488 else
13489   echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13491
13492
13493 fi
13494
13495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13496       conftest$ac_exeext conftest.$ac_ext
13497 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13498
13499             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13500             # Warning - without using the other run time loading flags,
13501             # -berok will link without error, but may produce a broken library.
13502             no_undefined_flag_CXX=' ${wl}-bernotok'
13503             allow_undefined_flag_CXX=' ${wl}-berok'
13504             # Exported symbols can be pulled into shared objects from archives
13505             whole_archive_flag_spec_CXX='$convenience'
13506             archive_cmds_need_lc_CXX=yes
13507             # This is similar to how AIX traditionally builds its shared
13508             # libraries.
13509             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'
13510           fi
13511         fi
13512         ;;
13513
13514       beos*)
13515         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13516           allow_undefined_flag_CXX=unsupported
13517           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13518           # support --undefined.  This deserves some investigation.  FIXME
13519           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13520         else
13521           ld_shlibs_CXX=no
13522         fi
13523         ;;
13524
13525       chorus*)
13526         case $cc_basename in
13527           *)
13528           # FIXME: insert proper C++ library support
13529           ld_shlibs_CXX=no
13530           ;;
13531         esac
13532         ;;
13533
13534       cygwin* | mingw* | pw32* | cegcc*)
13535         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13536         # as there is no search path for DLLs.
13537         hardcode_libdir_flag_spec_CXX='-L$libdir'
13538         allow_undefined_flag_CXX=unsupported
13539         always_export_symbols_CXX=no
13540         enable_shared_with_static_runtimes_CXX=yes
13541
13542         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13543           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'
13544           # If the export-symbols file already is a .def file (1st line
13545           # is EXPORTS), use it as is; otherwise, prepend...
13546           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13547             cp $export_symbols $output_objdir/$soname.def;
13548           else
13549             echo EXPORTS > $output_objdir/$soname.def;
13550             cat $export_symbols >> $output_objdir/$soname.def;
13551           fi~
13552           $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'
13553         else
13554           ld_shlibs_CXX=no
13555         fi
13556         ;;
13557       darwin* | rhapsody*)
13558
13559
13560   archive_cmds_need_lc_CXX=no
13561   hardcode_direct_CXX=no
13562   hardcode_automatic_CXX=yes
13563   hardcode_shlibpath_var_CXX=unsupported
13564   whole_archive_flag_spec_CXX=''
13565   link_all_deplibs_CXX=yes
13566   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13567   case $cc_basename in
13568      ifort*) _lt_dar_can_shared=yes ;;
13569      *) _lt_dar_can_shared=$GCC ;;
13570   esac
13571   if test "$_lt_dar_can_shared" = "yes"; then
13572     output_verbose_link_cmd=echo
13573     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}"
13574     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13575     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}"
13576     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}"
13577        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13578       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}"
13579       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}"
13580     fi
13581
13582   else
13583   ld_shlibs_CXX=no
13584   fi
13585
13586         ;;
13587
13588       dgux*)
13589         case $cc_basename in
13590           ec++*)
13591             # FIXME: insert proper C++ library support
13592             ld_shlibs_CXX=no
13593             ;;
13594           ghcx*)
13595             # Green Hills C++ Compiler
13596             # FIXME: insert proper C++ library support
13597             ld_shlibs_CXX=no
13598             ;;
13599           *)
13600             # FIXME: insert proper C++ library support
13601             ld_shlibs_CXX=no
13602             ;;
13603         esac
13604         ;;
13605
13606       freebsd[12]*)
13607         # C++ shared libraries reported to be fairly broken before
13608         # switch to ELF
13609         ld_shlibs_CXX=no
13610         ;;
13611
13612       freebsd-elf*)
13613         archive_cmds_need_lc_CXX=no
13614         ;;
13615
13616       freebsd* | dragonfly*)
13617         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13618         # conventions
13619         ld_shlibs_CXX=yes
13620         ;;
13621
13622       gnu*)
13623         ;;
13624
13625       hpux9*)
13626         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13627         hardcode_libdir_separator_CXX=:
13628         export_dynamic_flag_spec_CXX='${wl}-E'
13629         hardcode_direct_CXX=yes
13630         hardcode_minus_L_CXX=yes # Not in the search PATH,
13631                                              # but as the default
13632                                              # location of the library.
13633
13634         case $cc_basename in
13635           CC*)
13636             # FIXME: insert proper C++ library support
13637             ld_shlibs_CXX=no
13638             ;;
13639           aCC*)
13640             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'
13641             # Commands to make compiler produce verbose output that lists
13642             # what "hidden" libraries, object files and flags are used when
13643             # linking a shared library.
13644             #
13645             # There doesn't appear to be a way to prevent this compiler from
13646             # explicitly linking system object files so we need to strip them
13647             # from the output so that they don't get included in the library
13648             # dependencies.
13649             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'
13650             ;;
13651           *)
13652             if test "$GXX" = yes; then
13653               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'
13654             else
13655               # FIXME: insert proper C++ library support
13656               ld_shlibs_CXX=no
13657             fi
13658             ;;
13659         esac
13660         ;;
13661
13662       hpux10*|hpux11*)
13663         if test $with_gnu_ld = no; then
13664           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13665           hardcode_libdir_separator_CXX=:
13666
13667           case $host_cpu in
13668             hppa*64*|ia64*)
13669               ;;
13670             *)
13671               export_dynamic_flag_spec_CXX='${wl}-E'
13672               ;;
13673           esac
13674         fi
13675         case $host_cpu in
13676           hppa*64*|ia64*)
13677             hardcode_direct_CXX=no
13678             hardcode_shlibpath_var_CXX=no
13679             ;;
13680           *)
13681             hardcode_direct_CXX=yes
13682             hardcode_direct_absolute_CXX=yes
13683             hardcode_minus_L_CXX=yes # Not in the search PATH,
13684                                                  # but as the default
13685                                                  # location of the library.
13686             ;;
13687         esac
13688
13689         case $cc_basename in
13690           CC*)
13691             # FIXME: insert proper C++ library support
13692             ld_shlibs_CXX=no
13693             ;;
13694           aCC*)
13695             case $host_cpu in
13696               hppa*64*)
13697                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13698                 ;;
13699               ia64*)
13700                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13701                 ;;
13702               *)
13703                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13704                 ;;
13705             esac
13706             # Commands to make compiler produce verbose output that lists
13707             # what "hidden" libraries, object files and flags are used when
13708             # linking a shared library.
13709             #
13710             # There doesn't appear to be a way to prevent this compiler from
13711             # explicitly linking system object files so we need to strip them
13712             # from the output so that they don't get included in the library
13713             # dependencies.
13714             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'
13715             ;;
13716           *)
13717             if test "$GXX" = yes; then
13718               if test $with_gnu_ld = no; then
13719                 case $host_cpu in
13720                   hppa*64*)
13721                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13722                     ;;
13723                   ia64*)
13724                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13725                     ;;
13726                   *)
13727                     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'
13728                     ;;
13729                 esac
13730               fi
13731             else
13732               # FIXME: insert proper C++ library support
13733               ld_shlibs_CXX=no
13734             fi
13735             ;;
13736         esac
13737         ;;
13738
13739       interix[3-9]*)
13740         hardcode_direct_CXX=no
13741         hardcode_shlibpath_var_CXX=no
13742         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13743         export_dynamic_flag_spec_CXX='${wl}-E'
13744         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13745         # Instead, shared libraries are loaded at an image base (0x10000000 by
13746         # default) and relocated if they conflict, which is a slow very memory
13747         # consuming and fragmenting process.  To avoid this, we pick a random,
13748         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13749         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13750         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'
13751         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'
13752         ;;
13753       irix5* | irix6*)
13754         case $cc_basename in
13755           CC*)
13756             # SGI C++
13757             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'
13758
13759             # Archives containing C++ object files must be created using
13760             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13761             # necessary to make sure instantiated templates are included
13762             # in the archive.
13763             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13764             ;;
13765           *)
13766             if test "$GXX" = yes; then
13767               if test "$with_gnu_ld" = no; then
13768                 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'
13769               else
13770                 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'
13771               fi
13772             fi
13773             link_all_deplibs_CXX=yes
13774             ;;
13775         esac
13776         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13777         hardcode_libdir_separator_CXX=:
13778         inherit_rpath_CXX=yes
13779         ;;
13780
13781       linux* | k*bsd*-gnu)
13782         case $cc_basename in
13783           KCC*)
13784             # Kuck and Associates, Inc. (KAI) C++ Compiler
13785
13786             # KCC will only create a shared library if the output file
13787             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13788             # to its proper name (with version) after linking.
13789             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'
13790             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'
13791             # Commands to make compiler produce verbose output that lists
13792             # what "hidden" libraries, object files and flags are used when
13793             # linking a shared library.
13794             #
13795             # There doesn't appear to be a way to prevent this compiler from
13796             # explicitly linking system object files so we need to strip them
13797             # from the output so that they don't get included in the library
13798             # dependencies.
13799             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'
13800
13801             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13802             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13803
13804             # Archives containing C++ object files must be created using
13805             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13806             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13807             ;;
13808           icpc* | ecpc* )
13809             # Intel C++
13810             with_gnu_ld=yes
13811             # version 8.0 and above of icpc choke on multiply defined symbols
13812             # if we add $predep_objects and $postdep_objects, however 7.1 and
13813             # earlier do not add the objects themselves.
13814             case `$CC -V 2>&1` in
13815               *"Version 7."*)
13816                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13817                 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'
13818                 ;;
13819               *)  # Version 8.0 or newer
13820                 tmp_idyn=
13821                 case $host_cpu in
13822                   ia64*) tmp_idyn=' -i_dynamic';;
13823                 esac
13824                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13825                 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'
13826                 ;;
13827             esac
13828             archive_cmds_need_lc_CXX=no
13829             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13830             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13831             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13832             ;;
13833           pgCC* | pgcpp*)
13834             # Portland Group C++ compiler
13835             case `$CC -V` in
13836             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13837               prelink_cmds_CXX='tpldir=Template.dir~
13838                 rm -rf $tpldir~
13839                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13840                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13841               old_archive_cmds_CXX='tpldir=Template.dir~
13842                 rm -rf $tpldir~
13843                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13844                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13845                 $RANLIB $oldlib'
13846               archive_cmds_CXX='tpldir=Template.dir~
13847                 rm -rf $tpldir~
13848                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13849                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13850               archive_expsym_cmds_CXX='tpldir=Template.dir~
13851                 rm -rf $tpldir~
13852                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13853                 $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'
13854               ;;
13855             *) # Version 6 will use weak symbols
13856               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13857               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'
13858               ;;
13859             esac
13860
13861             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13862             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13863             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'
13864             ;;
13865           cxx*)
13866             # Compaq C++
13867             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13868             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'
13869
13870             runpath_var=LD_RUN_PATH
13871             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13872             hardcode_libdir_separator_CXX=:
13873
13874             # Commands to make compiler produce verbose output that lists
13875             # what "hidden" libraries, object files and flags are used when
13876             # linking a shared library.
13877             #
13878             # There doesn't appear to be a way to prevent this compiler from
13879             # explicitly linking system object files so we need to strip them
13880             # from the output so that they don't get included in the library
13881             # dependencies.
13882             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'
13883             ;;
13884           xl*)
13885             # IBM XL 8.0 on PPC, with GNU ld
13886             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13887             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13888             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13889             if test "x$supports_anon_versioning" = xyes; then
13890               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13891                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13892                 echo "local: *; };" >> $output_objdir/$libname.ver~
13893                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13894             fi
13895             ;;
13896           *)
13897             case `$CC -V 2>&1 | sed 5q` in
13898             *Sun\ C*)
13899               # Sun C++ 5.9
13900               no_undefined_flag_CXX=' -zdefs'
13901               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13902               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'
13903               hardcode_libdir_flag_spec_CXX='-R$libdir'
13904               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'
13905               compiler_needs_object_CXX=yes
13906
13907               # Not sure whether something based on
13908               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13909               # would be better.
13910               output_verbose_link_cmd='echo'
13911
13912               # Archives containing C++ object files must be created using
13913               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13914               # necessary to make sure instantiated templates are included
13915               # in the archive.
13916               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13917               ;;
13918             esac
13919             ;;
13920         esac
13921         ;;
13922
13923       lynxos*)
13924         # FIXME: insert proper C++ library support
13925         ld_shlibs_CXX=no
13926         ;;
13927
13928       m88k*)
13929         # FIXME: insert proper C++ library support
13930         ld_shlibs_CXX=no
13931         ;;
13932
13933       mvs*)
13934         case $cc_basename in
13935           cxx*)
13936             # FIXME: insert proper C++ library support
13937             ld_shlibs_CXX=no
13938             ;;
13939           *)
13940             # FIXME: insert proper C++ library support
13941             ld_shlibs_CXX=no
13942             ;;
13943         esac
13944         ;;
13945
13946       netbsd*)
13947         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13948           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13949           wlarc=
13950           hardcode_libdir_flag_spec_CXX='-R$libdir'
13951           hardcode_direct_CXX=yes
13952           hardcode_shlibpath_var_CXX=no
13953         fi
13954         # Workaround some broken pre-1.5 toolchains
13955         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13956         ;;
13957
13958       *nto* | *qnx*)
13959         ld_shlibs_CXX=yes
13960         ;;
13961
13962       openbsd2*)
13963         # C++ shared libraries are fairly broken
13964         ld_shlibs_CXX=no
13965         ;;
13966
13967       openbsd*)
13968         if test -f /usr/libexec/ld.so; then
13969           hardcode_direct_CXX=yes
13970           hardcode_shlibpath_var_CXX=no
13971           hardcode_direct_absolute_CXX=yes
13972           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13973           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13974           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13975             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13976             export_dynamic_flag_spec_CXX='${wl}-E'
13977             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13978           fi
13979           output_verbose_link_cmd=echo
13980         else
13981           ld_shlibs_CXX=no
13982         fi
13983         ;;
13984
13985       osf3* | osf4* | osf5*)
13986         case $cc_basename in
13987           KCC*)
13988             # Kuck and Associates, Inc. (KAI) C++ Compiler
13989
13990             # KCC will only create a shared library if the output file
13991             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13992             # to its proper name (with version) after linking.
13993             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'
13994
13995             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13996             hardcode_libdir_separator_CXX=:
13997
13998             # Archives containing C++ object files must be created using
13999             # the KAI C++ compiler.
14000             case $host in
14001               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14002               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14003             esac
14004             ;;
14005           RCC*)
14006             # Rational C++ 2.4.1
14007             # FIXME: insert proper C++ library support
14008             ld_shlibs_CXX=no
14009             ;;
14010           cxx*)
14011             case $host in
14012               osf3*)
14013                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14014                 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'
14015                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14016                 ;;
14017               *)
14018                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14019                 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'
14020                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14021                   echo "-hidden">> $lib.exp~
14022                   $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~
14023                   $RM $lib.exp'
14024                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14025                 ;;
14026             esac
14027
14028             hardcode_libdir_separator_CXX=:
14029
14030             # Commands to make compiler produce verbose output that lists
14031             # what "hidden" libraries, object files and flags are used when
14032             # linking a shared library.
14033             #
14034             # There doesn't appear to be a way to prevent this compiler from
14035             # explicitly linking system object files so we need to strip them
14036             # from the output so that they don't get included in the library
14037             # dependencies.
14038             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'
14039             ;;
14040           *)
14041             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14042               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14043               case $host in
14044                 osf3*)
14045                   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'
14046                   ;;
14047                 *)
14048                   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'
14049                   ;;
14050               esac
14051
14052               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14053               hardcode_libdir_separator_CXX=:
14054
14055               # Commands to make compiler produce verbose output that lists
14056               # what "hidden" libraries, object files and flags are used when
14057               # linking a shared library.
14058               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14059
14060             else
14061               # FIXME: insert proper C++ library support
14062               ld_shlibs_CXX=no
14063             fi
14064             ;;
14065         esac
14066         ;;
14067
14068       psos*)
14069         # FIXME: insert proper C++ library support
14070         ld_shlibs_CXX=no
14071         ;;
14072
14073       sunos4*)
14074         case $cc_basename in
14075           CC*)
14076             # Sun C++ 4.x
14077             # FIXME: insert proper C++ library support
14078             ld_shlibs_CXX=no
14079             ;;
14080           lcc*)
14081             # Lucid
14082             # FIXME: insert proper C++ library support
14083             ld_shlibs_CXX=no
14084             ;;
14085           *)
14086             # FIXME: insert proper C++ library support
14087             ld_shlibs_CXX=no
14088             ;;
14089         esac
14090         ;;
14091
14092       solaris*)
14093         case $cc_basename in
14094           CC*)
14095             # Sun C++ 4.2, 5.x and Centerline C++
14096             archive_cmds_need_lc_CXX=yes
14097             no_undefined_flag_CXX=' -zdefs'
14098             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14099             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14100               $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'
14101
14102             hardcode_libdir_flag_spec_CXX='-R$libdir'
14103             hardcode_shlibpath_var_CXX=no
14104             case $host_os in
14105               solaris2.[0-5] | solaris2.[0-5].*) ;;
14106               *)
14107                 # The compiler driver will combine and reorder linker options,
14108                 # but understands `-z linker_flag'.
14109                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14110                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14111                 ;;
14112             esac
14113             link_all_deplibs_CXX=yes
14114
14115             output_verbose_link_cmd='echo'
14116
14117             # Archives containing C++ object files must be created using
14118             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14119             # necessary to make sure instantiated templates are included
14120             # in the archive.
14121             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14122             ;;
14123           gcx*)
14124             # Green Hills C++ Compiler
14125             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14126
14127             # The C++ compiler must be used to create the archive.
14128             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14129             ;;
14130           *)
14131             # GNU C++ compiler with Solaris linker
14132             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14133               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14134               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14135                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14136                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14137                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14138
14139                 # Commands to make compiler produce verbose output that lists
14140                 # what "hidden" libraries, object files and flags are used when
14141                 # linking a shared library.
14142                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14143               else
14144                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14145                 # platform.
14146                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14147                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14148                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14149
14150                 # Commands to make compiler produce verbose output that lists
14151                 # what "hidden" libraries, object files and flags are used when
14152                 # linking a shared library.
14153                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14154               fi
14155
14156               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14157               case $host_os in
14158                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14159                 *)
14160                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14161                   ;;
14162               esac
14163             fi
14164             ;;
14165         esac
14166         ;;
14167
14168     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14169       no_undefined_flag_CXX='${wl}-z,text'
14170       archive_cmds_need_lc_CXX=no
14171       hardcode_shlibpath_var_CXX=no
14172       runpath_var='LD_RUN_PATH'
14173
14174       case $cc_basename in
14175         CC*)
14176           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14177           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14178           ;;
14179         *)
14180           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14181           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14182           ;;
14183       esac
14184       ;;
14185
14186       sysv5* | sco3.2v5* | sco5v6*)
14187         # Note: We can NOT use -z defs as we might desire, because we do not
14188         # link with -lc, and that would cause any symbols used from libc to
14189         # always be unresolved, which means just about no library would
14190         # ever link correctly.  If we're not using GNU ld we use -z text
14191         # though, which does catch some bad symbols but isn't as heavy-handed
14192         # as -z defs.
14193         no_undefined_flag_CXX='${wl}-z,text'
14194         allow_undefined_flag_CXX='${wl}-z,nodefs'
14195         archive_cmds_need_lc_CXX=no
14196         hardcode_shlibpath_var_CXX=no
14197         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14198         hardcode_libdir_separator_CXX=':'
14199         link_all_deplibs_CXX=yes
14200         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14201         runpath_var='LD_RUN_PATH'
14202
14203         case $cc_basename in
14204           CC*)
14205             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14206             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14207             ;;
14208           *)
14209             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14210             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14211             ;;
14212         esac
14213       ;;
14214
14215       tandem*)
14216         case $cc_basename in
14217           NCC*)
14218             # NonStop-UX NCC 3.20
14219             # FIXME: insert proper C++ library support
14220             ld_shlibs_CXX=no
14221             ;;
14222           *)
14223             # FIXME: insert proper C++ library support
14224             ld_shlibs_CXX=no
14225             ;;
14226         esac
14227         ;;
14228
14229       vxworks*)
14230         # FIXME: insert proper C++ library support
14231         ld_shlibs_CXX=no
14232         ;;
14233
14234       *)
14235         # FIXME: insert proper C++ library support
14236         ld_shlibs_CXX=no
14237         ;;
14238     esac
14239
14240     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14241 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14242     test "$ld_shlibs_CXX" = no && can_build_shared=no
14243
14244     GCC_CXX="$GXX"
14245     LD_CXX="$LD"
14246
14247     ## CAVEAT EMPTOR:
14248     ## There is no encapsulation within the following macros, do not change
14249     ## the running order or otherwise move them around unless you know exactly
14250     ## what you are doing...
14251     # Dependencies to place before and after the object being linked:
14252 predep_objects_CXX=
14253 postdep_objects_CXX=
14254 predeps_CXX=
14255 postdeps_CXX=
14256 compiler_lib_search_path_CXX=
14257
14258 cat > conftest.$ac_ext <<_LT_EOF
14259 class Foo
14260 {
14261 public:
14262   Foo (void) { a = 0; }
14263 private:
14264   int a;
14265 };
14266 _LT_EOF
14267
14268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14269   (eval $ac_compile) 2>&5
14270   ac_status=$?
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); }; then
14273   # Parse the compiler output and extract the necessary
14274   # objects, libraries and library flags.
14275
14276   # Sentinel used to keep track of whether or not we are before
14277   # the conftest object file.
14278   pre_test_object_deps_done=no
14279
14280   for p in `eval "$output_verbose_link_cmd"`; do
14281     case $p in
14282
14283     -L* | -R* | -l*)
14284        # Some compilers place space between "-{L,R}" and the path.
14285        # Remove the space.
14286        if test $p = "-L" ||
14287           test $p = "-R"; then
14288          prev=$p
14289          continue
14290        else
14291          prev=
14292        fi
14293
14294        if test "$pre_test_object_deps_done" = no; then
14295          case $p in
14296          -L* | -R*)
14297            # Internal compiler library paths should come after those
14298            # provided the user.  The postdeps already come after the
14299            # user supplied libs so there is no need to process them.
14300            if test -z "$compiler_lib_search_path_CXX"; then
14301              compiler_lib_search_path_CXX="${prev}${p}"
14302            else
14303              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14304            fi
14305            ;;
14306          # The "-l" case would never come before the object being
14307          # linked, so don't bother handling this case.
14308          esac
14309        else
14310          if test -z "$postdeps_CXX"; then
14311            postdeps_CXX="${prev}${p}"
14312          else
14313            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14314          fi
14315        fi
14316        ;;
14317
14318     *.$objext)
14319        # This assumes that the test object file only shows up
14320        # once in the compiler output.
14321        if test "$p" = "conftest.$objext"; then
14322          pre_test_object_deps_done=yes
14323          continue
14324        fi
14325
14326        if test "$pre_test_object_deps_done" = no; then
14327          if test -z "$predep_objects_CXX"; then
14328            predep_objects_CXX="$p"
14329          else
14330            predep_objects_CXX="$predep_objects_CXX $p"
14331          fi
14332        else
14333          if test -z "$postdep_objects_CXX"; then
14334            postdep_objects_CXX="$p"
14335          else
14336            postdep_objects_CXX="$postdep_objects_CXX $p"
14337          fi
14338        fi
14339        ;;
14340
14341     *) ;; # Ignore the rest.
14342
14343     esac
14344   done
14345
14346   # Clean up.
14347   rm -f a.out a.exe
14348 else
14349   echo "libtool.m4: error: problem compiling CXX test program"
14350 fi
14351
14352 $RM -f confest.$objext
14353
14354 # PORTME: override above test on systems where it is broken
14355 case $host_os in
14356 interix[3-9]*)
14357   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14358   # hack all around it, let's just trust "g++" to DTRT.
14359   predep_objects_CXX=
14360   postdep_objects_CXX=
14361   postdeps_CXX=
14362   ;;
14363
14364 linux*)
14365   case `$CC -V 2>&1 | sed 5q` in
14366   *Sun\ C*)
14367     # Sun C++ 5.9
14368
14369     # The more standards-conforming stlport4 library is
14370     # incompatible with the Cstd library. Avoid specifying
14371     # it if it's in CXXFLAGS. Ignore libCrun as
14372     # -library=stlport4 depends on it.
14373     case " $CXX $CXXFLAGS " in
14374     *" -library=stlport4 "*)
14375       solaris_use_stlport4=yes
14376       ;;
14377     esac
14378
14379     if test "$solaris_use_stlport4" != yes; then
14380       postdeps_CXX='-library=Cstd -library=Crun'
14381     fi
14382     ;;
14383   esac
14384   ;;
14385
14386 solaris*)
14387   case $cc_basename in
14388   CC*)
14389     # The more standards-conforming stlport4 library is
14390     # incompatible with the Cstd library. Avoid specifying
14391     # it if it's in CXXFLAGS. Ignore libCrun as
14392     # -library=stlport4 depends on it.
14393     case " $CXX $CXXFLAGS " in
14394     *" -library=stlport4 "*)
14395       solaris_use_stlport4=yes
14396       ;;
14397     esac
14398
14399     # Adding this requires a known-good setup of shared libraries for
14400     # Sun compiler versions before 5.6, else PIC objects from an old
14401     # archive will be linked into the output, leading to subtle bugs.
14402     if test "$solaris_use_stlport4" != yes; then
14403       postdeps_CXX='-library=Cstd -library=Crun'
14404     fi
14405     ;;
14406   esac
14407   ;;
14408 esac
14409
14410
14411 case " $postdeps_CXX " in
14412 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14413 esac
14414  compiler_lib_search_dirs_CXX=
14415 if test -n "${compiler_lib_search_path_CXX}"; then
14416  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14417 fi
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449     lt_prog_compiler_wl_CXX=
14450 lt_prog_compiler_pic_CXX=
14451 lt_prog_compiler_static_CXX=
14452
14453 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14454 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14455
14456   # C++ specific cases for pic, static, wl, etc.
14457   if test "$GXX" = yes; then
14458     lt_prog_compiler_wl_CXX='-Wl,'
14459     lt_prog_compiler_static_CXX='-static'
14460
14461     case $host_os in
14462     aix*)
14463       # All AIX code is PIC.
14464       if test "$host_cpu" = ia64; then
14465         # AIX 5 now supports IA64 processor
14466         lt_prog_compiler_static_CXX='-Bstatic'
14467       fi
14468       ;;
14469
14470     amigaos*)
14471       case $host_cpu in
14472       powerpc)
14473             # see comment about AmigaOS4 .so support
14474             lt_prog_compiler_pic_CXX='-fPIC'
14475         ;;
14476       m68k)
14477             # FIXME: we need at least 68020 code to build shared libraries, but
14478             # adding the `-m68020' flag to GCC prevents building anything better,
14479             # like `-m68040'.
14480             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14481         ;;
14482       esac
14483       ;;
14484
14485     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14486       # PIC is the default for these OSes.
14487       ;;
14488     mingw* | cygwin* | os2* | pw32* | cegcc*)
14489       # This hack is so that the source file can tell whether it is being
14490       # built for inclusion in a dll (and should export symbols for example).
14491       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14492       # (--disable-auto-import) libraries
14493       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14494       ;;
14495     darwin* | rhapsody*)
14496       # PIC is the default on this platform
14497       # Common symbols not allowed in MH_DYLIB files
14498       lt_prog_compiler_pic_CXX='-fno-common'
14499       ;;
14500     *djgpp*)
14501       # DJGPP does not support shared libraries at all
14502       lt_prog_compiler_pic_CXX=
14503       ;;
14504     interix[3-9]*)
14505       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14506       # Instead, we relocate shared libraries at runtime.
14507       ;;
14508     sysv4*MP*)
14509       if test -d /usr/nec; then
14510         lt_prog_compiler_pic_CXX=-Kconform_pic
14511       fi
14512       ;;
14513     hpux*)
14514       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14515       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14516       # sets the default TLS model and affects inlining.
14517       case $host_cpu in
14518       hppa*64*)
14519         ;;
14520       *)
14521         lt_prog_compiler_pic_CXX='-fPIC'
14522         ;;
14523       esac
14524       ;;
14525     *qnx* | *nto*)
14526       # QNX uses GNU C++, but need to define -shared option too, otherwise
14527       # it will coredump.
14528       lt_prog_compiler_pic_CXX='-fPIC -shared'
14529       ;;
14530     *)
14531       lt_prog_compiler_pic_CXX='-fPIC'
14532       ;;
14533     esac
14534   else
14535     case $host_os in
14536       aix[4-9]*)
14537         # All AIX code is PIC.
14538         if test "$host_cpu" = ia64; then
14539           # AIX 5 now supports IA64 processor
14540           lt_prog_compiler_static_CXX='-Bstatic'
14541         else
14542           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14543         fi
14544         ;;
14545       chorus*)
14546         case $cc_basename in
14547         cxch68*)
14548           # Green Hills C++ Compiler
14549           # _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"
14550           ;;
14551         esac
14552         ;;
14553       dgux*)
14554         case $cc_basename in
14555           ec++*)
14556             lt_prog_compiler_pic_CXX='-KPIC'
14557             ;;
14558           ghcx*)
14559             # Green Hills C++ Compiler
14560             lt_prog_compiler_pic_CXX='-pic'
14561             ;;
14562           *)
14563             ;;
14564         esac
14565         ;;
14566       freebsd* | dragonfly*)
14567         # FreeBSD uses GNU C++
14568         ;;
14569       hpux9* | hpux10* | hpux11*)
14570         case $cc_basename in
14571           CC*)
14572             lt_prog_compiler_wl_CXX='-Wl,'
14573             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14574             if test "$host_cpu" != ia64; then
14575               lt_prog_compiler_pic_CXX='+Z'
14576             fi
14577             ;;
14578           aCC*)
14579             lt_prog_compiler_wl_CXX='-Wl,'
14580             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14581             case $host_cpu in
14582             hppa*64*|ia64*)
14583               # +Z the default
14584               ;;
14585             *)
14586               lt_prog_compiler_pic_CXX='+Z'
14587               ;;
14588             esac
14589             ;;
14590           *)
14591             ;;
14592         esac
14593         ;;
14594       interix*)
14595         # This is c89, which is MS Visual C++ (no shared libs)
14596         # Anyone wants to do a port?
14597         ;;
14598       irix5* | irix6* | nonstopux*)
14599         case $cc_basename in
14600           CC*)
14601             lt_prog_compiler_wl_CXX='-Wl,'
14602             lt_prog_compiler_static_CXX='-non_shared'
14603             # CC pic flag -KPIC is the default.
14604             ;;
14605           *)
14606             ;;
14607         esac
14608         ;;
14609       linux* | k*bsd*-gnu)
14610         case $cc_basename in
14611           KCC*)
14612             # KAI C++ Compiler
14613             lt_prog_compiler_wl_CXX='--backend -Wl,'
14614             lt_prog_compiler_pic_CXX='-fPIC'
14615             ;;
14616           ecpc* )
14617             # old Intel C++ for x86_64 which still supported -KPIC.
14618             lt_prog_compiler_wl_CXX='-Wl,'
14619             lt_prog_compiler_pic_CXX='-KPIC'
14620             lt_prog_compiler_static_CXX='-static'
14621             ;;
14622           icpc* )
14623             # Intel C++, used to be incompatible with GCC.
14624             # ICC 10 doesn't accept -KPIC any more.
14625             lt_prog_compiler_wl_CXX='-Wl,'
14626             lt_prog_compiler_pic_CXX='-fPIC'
14627             lt_prog_compiler_static_CXX='-static'
14628             ;;
14629           pgCC* | pgcpp*)
14630             # Portland Group C++ compiler
14631             lt_prog_compiler_wl_CXX='-Wl,'
14632             lt_prog_compiler_pic_CXX='-fpic'
14633             lt_prog_compiler_static_CXX='-Bstatic'
14634             ;;
14635           cxx*)
14636             # Compaq C++
14637             # Make sure the PIC flag is empty.  It appears that all Alpha
14638             # Linux and Compaq Tru64 Unix objects are PIC.
14639             lt_prog_compiler_pic_CXX=
14640             lt_prog_compiler_static_CXX='-non_shared'
14641             ;;
14642           xlc* | xlC*)
14643             # IBM XL 8.0 on PPC
14644             lt_prog_compiler_wl_CXX='-Wl,'
14645             lt_prog_compiler_pic_CXX='-qpic'
14646             lt_prog_compiler_static_CXX='-qstaticlink'
14647             ;;
14648           *)
14649             case `$CC -V 2>&1 | sed 5q` in
14650             *Sun\ C*)
14651               # Sun C++ 5.9
14652               lt_prog_compiler_pic_CXX='-KPIC'
14653               lt_prog_compiler_static_CXX='-Bstatic'
14654               lt_prog_compiler_wl_CXX='-Qoption ld '
14655               ;;
14656             esac
14657             ;;
14658         esac
14659         ;;
14660       lynxos*)
14661         ;;
14662       m88k*)
14663         ;;
14664       mvs*)
14665         case $cc_basename in
14666           cxx*)
14667             lt_prog_compiler_pic_CXX='-W c,exportall'
14668             ;;
14669           *)
14670             ;;
14671         esac
14672         ;;
14673       netbsd*)
14674         ;;
14675       *qnx* | *nto*)
14676         # QNX uses GNU C++, but need to define -shared option too, otherwise
14677         # it will coredump.
14678         lt_prog_compiler_pic_CXX='-fPIC -shared'
14679         ;;
14680       osf3* | osf4* | osf5*)
14681         case $cc_basename in
14682           KCC*)
14683             lt_prog_compiler_wl_CXX='--backend -Wl,'
14684             ;;
14685           RCC*)
14686             # Rational C++ 2.4.1
14687             lt_prog_compiler_pic_CXX='-pic'
14688             ;;
14689           cxx*)
14690             # Digital/Compaq C++
14691             lt_prog_compiler_wl_CXX='-Wl,'
14692             # Make sure the PIC flag is empty.  It appears that all Alpha
14693             # Linux and Compaq Tru64 Unix objects are PIC.
14694             lt_prog_compiler_pic_CXX=
14695             lt_prog_compiler_static_CXX='-non_shared'
14696             ;;
14697           *)
14698             ;;
14699         esac
14700         ;;
14701       psos*)
14702         ;;
14703       solaris*)
14704         case $cc_basename in
14705           CC*)
14706             # Sun C++ 4.2, 5.x and Centerline C++
14707             lt_prog_compiler_pic_CXX='-KPIC'
14708             lt_prog_compiler_static_CXX='-Bstatic'
14709             lt_prog_compiler_wl_CXX='-Qoption ld '
14710             ;;
14711           gcx*)
14712             # Green Hills C++ Compiler
14713             lt_prog_compiler_pic_CXX='-PIC'
14714             ;;
14715           *)
14716             ;;
14717         esac
14718         ;;
14719       sunos4*)
14720         case $cc_basename in
14721           CC*)
14722             # Sun C++ 4.x
14723             lt_prog_compiler_pic_CXX='-pic'
14724             lt_prog_compiler_static_CXX='-Bstatic'
14725             ;;
14726           lcc*)
14727             # Lucid
14728             lt_prog_compiler_pic_CXX='-pic'
14729             ;;
14730           *)
14731             ;;
14732         esac
14733         ;;
14734       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14735         case $cc_basename in
14736           CC*)
14737             lt_prog_compiler_wl_CXX='-Wl,'
14738             lt_prog_compiler_pic_CXX='-KPIC'
14739             lt_prog_compiler_static_CXX='-Bstatic'
14740             ;;
14741         esac
14742         ;;
14743       tandem*)
14744         case $cc_basename in
14745           NCC*)
14746             # NonStop-UX NCC 3.20
14747             lt_prog_compiler_pic_CXX='-KPIC'
14748             ;;
14749           *)
14750             ;;
14751         esac
14752         ;;
14753       vxworks*)
14754         ;;
14755       *)
14756         lt_prog_compiler_can_build_shared_CXX=no
14757         ;;
14758     esac
14759   fi
14760
14761 case $host_os in
14762   # For platforms which do not support PIC, -DPIC is meaningless:
14763   *djgpp*)
14764     lt_prog_compiler_pic_CXX=
14765     ;;
14766   *)
14767     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14768     ;;
14769 esac
14770 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14771 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14772
14773
14774
14775 #
14776 # Check to make sure the PIC flag actually works.
14777 #
14778 if test -n "$lt_prog_compiler_pic_CXX"; then
14779   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14780 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14781 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14782   echo $ECHO_N "(cached) $ECHO_C" >&6
14783 else
14784   lt_cv_prog_compiler_pic_works_CXX=no
14785    ac_outfile=conftest.$ac_objext
14786    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14787    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14788    # Insert the option either (1) after the last *FLAGS variable, or
14789    # (2) before a word containing "conftest.", or (3) at the end.
14790    # Note that $ac_compile itself does not contain backslashes and begins
14791    # with a dollar sign (not a hyphen), so the echo should work correctly.
14792    # The option is referenced via a variable to avoid confusing sed.
14793    lt_compile=`echo "$ac_compile" | $SED \
14794    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14795    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14796    -e 's:$: $lt_compiler_flag:'`
14797    (eval echo "\"\$as_me:14797: $lt_compile\"" >&5)
14798    (eval "$lt_compile" 2>conftest.err)
14799    ac_status=$?
14800    cat conftest.err >&5
14801    echo "$as_me:14801: \$? = $ac_status" >&5
14802    if (exit $ac_status) && test -s "$ac_outfile"; then
14803      # The compiler can only warn and ignore the option if not recognized
14804      # So say no if there are warnings other than the usual output.
14805      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14806      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14807      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14808        lt_cv_prog_compiler_pic_works_CXX=yes
14809      fi
14810    fi
14811    $RM conftest*
14812
14813 fi
14814 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14815 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14816
14817 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14818     case $lt_prog_compiler_pic_CXX in
14819      "" | " "*) ;;
14820      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14821      esac
14822 else
14823     lt_prog_compiler_pic_CXX=
14824      lt_prog_compiler_can_build_shared_CXX=no
14825 fi
14826
14827 fi
14828
14829
14830
14831 #
14832 # Check to make sure the static flag actually works.
14833 #
14834 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14835 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14836 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14837 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14838   echo $ECHO_N "(cached) $ECHO_C" >&6
14839 else
14840   lt_cv_prog_compiler_static_works_CXX=no
14841    save_LDFLAGS="$LDFLAGS"
14842    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14843    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14844    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14845      # The linker can only warn and ignore the option if not recognized
14846      # So say no if there are warnings
14847      if test -s conftest.err; then
14848        # Append any errors to the config.log.
14849        cat conftest.err 1>&5
14850        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14851        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14852        if diff conftest.exp conftest.er2 >/dev/null; then
14853          lt_cv_prog_compiler_static_works_CXX=yes
14854        fi
14855      else
14856        lt_cv_prog_compiler_static_works_CXX=yes
14857      fi
14858    fi
14859    $RM -r conftest*
14860    LDFLAGS="$save_LDFLAGS"
14861
14862 fi
14863 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14864 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14865
14866 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14867     :
14868 else
14869     lt_prog_compiler_static_CXX=
14870 fi
14871
14872
14873
14874
14875     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14876 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14877 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14878   echo $ECHO_N "(cached) $ECHO_C" >&6
14879 else
14880   lt_cv_prog_compiler_c_o_CXX=no
14881    $RM -r conftest 2>/dev/null
14882    mkdir conftest
14883    cd conftest
14884    mkdir out
14885    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14886
14887    lt_compiler_flag="-o out/conftest2.$ac_objext"
14888    # Insert the option either (1) after the last *FLAGS variable, or
14889    # (2) before a word containing "conftest.", or (3) at the end.
14890    # Note that $ac_compile itself does not contain backslashes and begins
14891    # with a dollar sign (not a hyphen), so the echo should work correctly.
14892    lt_compile=`echo "$ac_compile" | $SED \
14893    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14894    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14895    -e 's:$: $lt_compiler_flag:'`
14896    (eval echo "\"\$as_me:14896: $lt_compile\"" >&5)
14897    (eval "$lt_compile" 2>out/conftest.err)
14898    ac_status=$?
14899    cat out/conftest.err >&5
14900    echo "$as_me:14900: \$? = $ac_status" >&5
14901    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14902    then
14903      # The compiler can only warn and ignore the option if not recognized
14904      # So say no if there are warnings
14905      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14906      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14907      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14908        lt_cv_prog_compiler_c_o_CXX=yes
14909      fi
14910    fi
14911    chmod u+w . 2>&5
14912    $RM conftest*
14913    # SGI C++ compiler will create directory out/ii_files/ for
14914    # template instantiation
14915    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14916    $RM out/* && rmdir out
14917    cd ..
14918    $RM -r conftest
14919    $RM conftest*
14920
14921 fi
14922 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14923 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14924
14925
14926
14927     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14928 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14929 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14930   echo $ECHO_N "(cached) $ECHO_C" >&6
14931 else
14932   lt_cv_prog_compiler_c_o_CXX=no
14933    $RM -r conftest 2>/dev/null
14934    mkdir conftest
14935    cd conftest
14936    mkdir out
14937    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14938
14939    lt_compiler_flag="-o out/conftest2.$ac_objext"
14940    # Insert the option either (1) after the last *FLAGS variable, or
14941    # (2) before a word containing "conftest.", or (3) at the end.
14942    # Note that $ac_compile itself does not contain backslashes and begins
14943    # with a dollar sign (not a hyphen), so the echo should work correctly.
14944    lt_compile=`echo "$ac_compile" | $SED \
14945    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14946    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14947    -e 's:$: $lt_compiler_flag:'`
14948    (eval echo "\"\$as_me:14948: $lt_compile\"" >&5)
14949    (eval "$lt_compile" 2>out/conftest.err)
14950    ac_status=$?
14951    cat out/conftest.err >&5
14952    echo "$as_me:14952: \$? = $ac_status" >&5
14953    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14954    then
14955      # The compiler can only warn and ignore the option if not recognized
14956      # So say no if there are warnings
14957      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14958      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14959      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14960        lt_cv_prog_compiler_c_o_CXX=yes
14961      fi
14962    fi
14963    chmod u+w . 2>&5
14964    $RM conftest*
14965    # SGI C++ compiler will create directory out/ii_files/ for
14966    # template instantiation
14967    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14968    $RM out/* && rmdir out
14969    cd ..
14970    $RM -r conftest
14971    $RM conftest*
14972
14973 fi
14974 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14975 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14976
14977
14978
14979
14980 hard_links="nottested"
14981 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14982   # do not overwrite the value of need_locks provided by the user
14983   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14984 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14985   hard_links=yes
14986   $RM conftest*
14987   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14988   touch conftest.a
14989   ln conftest.a conftest.b 2>&5 || hard_links=no
14990   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14991   { echo "$as_me:$LINENO: result: $hard_links" >&5
14992 echo "${ECHO_T}$hard_links" >&6; }
14993   if test "$hard_links" = no; then
14994     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14995 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14996     need_locks=warn
14997   fi
14998 else
14999   need_locks=no
15000 fi
15001
15002
15003
15004     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15005 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15006
15007   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15008   case $host_os in
15009   aix[4-9]*)
15010     # If we're using GNU nm, then we don't want the "-C" option.
15011     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15012     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15013       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'
15014     else
15015       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'
15016     fi
15017     ;;
15018   pw32*)
15019     export_symbols_cmds_CXX="$ltdll_cmds"
15020   ;;
15021   cygwin* | mingw* | cegcc*)
15022     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'
15023   ;;
15024   *)
15025     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15026   ;;
15027   esac
15028   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15029
15030 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15031 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15032 test "$ld_shlibs_CXX" = no && can_build_shared=no
15033
15034 with_gnu_ld_CXX=$with_gnu_ld
15035
15036
15037
15038
15039
15040
15041 #
15042 # Do we need to explicitly link libc?
15043 #
15044 case "x$archive_cmds_need_lc_CXX" in
15045 x|xyes)
15046   # Assume -lc should be added
15047   archive_cmds_need_lc_CXX=yes
15048
15049   if test "$enable_shared" = yes && test "$GCC" = yes; then
15050     case $archive_cmds_CXX in
15051     *'~'*)
15052       # FIXME: we may have to deal with multi-command sequences.
15053       ;;
15054     '$CC '*)
15055       # Test whether the compiler implicitly links with -lc since on some
15056       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15057       # to ld, don't add -lc before -lgcc.
15058       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15059 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15060       $RM conftest*
15061       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15062
15063       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15064   (eval $ac_compile) 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); } 2>conftest.err; then
15068         soname=conftest
15069         lib=conftest
15070         libobjs=conftest.$ac_objext
15071         deplibs=
15072         wl=$lt_prog_compiler_wl_CXX
15073         pic_flag=$lt_prog_compiler_pic_CXX
15074         compiler_flags=-v
15075         linker_flags=-v
15076         verstring=
15077         output_objdir=.
15078         libname=conftest
15079         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15080         allow_undefined_flag_CXX=
15081         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15082   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15083   ac_status=$?
15084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); }
15086         then
15087           archive_cmds_need_lc_CXX=no
15088         else
15089           archive_cmds_need_lc_CXX=yes
15090         fi
15091         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15092       else
15093         cat conftest.err 1>&5
15094       fi
15095       $RM conftest*
15096       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15097 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15098       ;;
15099     esac
15100   fi
15101   ;;
15102 esac
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15168 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15169
15170 library_names_spec=
15171 libname_spec='lib$name'
15172 soname_spec=
15173 shrext_cmds=".so"
15174 postinstall_cmds=
15175 postuninstall_cmds=
15176 finish_cmds=
15177 finish_eval=
15178 shlibpath_var=
15179 shlibpath_overrides_runpath=unknown
15180 version_type=none
15181 dynamic_linker="$host_os ld.so"
15182 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15183 need_lib_prefix=unknown
15184 hardcode_into_libs=no
15185
15186 # when you set need_version to no, make sure it does not cause -set_version
15187 # flags to be left without arguments
15188 need_version=unknown
15189
15190 case $host_os in
15191 aix3*)
15192   version_type=linux
15193   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15194   shlibpath_var=LIBPATH
15195
15196   # AIX 3 has no versioning support, so we append a major version to the name.
15197   soname_spec='${libname}${release}${shared_ext}$major'
15198   ;;
15199
15200 aix[4-9]*)
15201   version_type=linux
15202   need_lib_prefix=no
15203   need_version=no
15204   hardcode_into_libs=yes
15205   if test "$host_cpu" = ia64; then
15206     # AIX 5 supports IA64
15207     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15208     shlibpath_var=LD_LIBRARY_PATH
15209   else
15210     # With GCC up to 2.95.x, collect2 would create an import file
15211     # for dependence libraries.  The import file would start with
15212     # the line `#! .'.  This would cause the generated library to
15213     # depend on `.', always an invalid library.  This was fixed in
15214     # development snapshots of GCC prior to 3.0.
15215     case $host_os in
15216       aix4 | aix4.[01] | aix4.[01].*)
15217       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15218            echo ' yes '
15219            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15220         :
15221       else
15222         can_build_shared=no
15223       fi
15224       ;;
15225     esac
15226     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15227     # soname into executable. Probably we can add versioning support to
15228     # collect2, so additional links can be useful in future.
15229     if test "$aix_use_runtimelinking" = yes; then
15230       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15231       # instead of lib<name>.a to let people know that these are not
15232       # typical AIX shared libraries.
15233       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234     else
15235       # We preserve .a as extension for shared libraries through AIX4.2
15236       # and later when we are not doing run time linking.
15237       library_names_spec='${libname}${release}.a $libname.a'
15238       soname_spec='${libname}${release}${shared_ext}$major'
15239     fi
15240     shlibpath_var=LIBPATH
15241   fi
15242   ;;
15243
15244 amigaos*)
15245   case $host_cpu in
15246   powerpc)
15247     # Since July 2007 AmigaOS4 officially supports .so libraries.
15248     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15249     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250     ;;
15251   m68k)
15252     library_names_spec='$libname.ixlibrary $libname.a'
15253     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15254     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'
15255     ;;
15256   esac
15257   ;;
15258
15259 beos*)
15260   library_names_spec='${libname}${shared_ext}'
15261   dynamic_linker="$host_os ld.so"
15262   shlibpath_var=LIBRARY_PATH
15263   ;;
15264
15265 bsdi[45]*)
15266   version_type=linux
15267   need_version=no
15268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15269   soname_spec='${libname}${release}${shared_ext}$major'
15270   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15271   shlibpath_var=LD_LIBRARY_PATH
15272   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15273   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15274   # the default ld.so.conf also contains /usr/contrib/lib and
15275   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15276   # libtool to hard-code these into programs
15277   ;;
15278
15279 cygwin* | mingw* | pw32* | cegcc*)
15280   version_type=windows
15281   shrext_cmds=".dll"
15282   need_version=no
15283   need_lib_prefix=no
15284
15285   case $GCC,$host_os in
15286   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15287     library_names_spec='$libname.dll.a'
15288     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15289     postinstall_cmds='base_file=`basename \${file}`~
15290       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15291       dldir=$destdir/`dirname \$dlpath`~
15292       test -d \$dldir || mkdir -p \$dldir~
15293       $install_prog $dir/$dlname \$dldir/$dlname~
15294       chmod a+x \$dldir/$dlname~
15295       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15296         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15297       fi'
15298     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15299       dlpath=$dir/\$dldll~
15300        $RM \$dlpath'
15301     shlibpath_overrides_runpath=yes
15302
15303     case $host_os in
15304     cygwin*)
15305       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15306       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15307       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15308       ;;
15309     mingw* | cegcc*)
15310       # MinGW DLLs use traditional 'lib' prefix
15311       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15312       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15313       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15314         # It is most probably a Windows format PATH printed by
15315         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15316         # path with ; separators, and with drive letters. We can handle the
15317         # drive letters (cygwin fileutils understands them), so leave them,
15318         # especially as we might pass files found there to a mingw objdump,
15319         # which wouldn't understand a cygwinified path. Ahh.
15320         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15321       else
15322         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15323       fi
15324       ;;
15325     pw32*)
15326       # pw32 DLLs use 'pw' prefix rather than 'lib'
15327       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15328       ;;
15329     esac
15330     ;;
15331
15332   *)
15333     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15334     ;;
15335   esac
15336   dynamic_linker='Win32 ld.exe'
15337   # FIXME: first we should search . and the directory the executable is in
15338   shlibpath_var=PATH
15339   ;;
15340
15341 darwin* | rhapsody*)
15342   dynamic_linker="$host_os dyld"
15343   version_type=darwin
15344   need_lib_prefix=no
15345   need_version=no
15346   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15347   soname_spec='${libname}${release}${major}$shared_ext'
15348   shlibpath_overrides_runpath=yes
15349   shlibpath_var=DYLD_LIBRARY_PATH
15350   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15351
15352   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15353   ;;
15354
15355 dgux*)
15356   version_type=linux
15357   need_lib_prefix=no
15358   need_version=no
15359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15360   soname_spec='${libname}${release}${shared_ext}$major'
15361   shlibpath_var=LD_LIBRARY_PATH
15362   ;;
15363
15364 freebsd1*)
15365   dynamic_linker=no
15366   ;;
15367
15368 freebsd* | dragonfly*)
15369   # DragonFly does not have aout.  When/if they implement a new
15370   # versioning mechanism, adjust this.
15371   if test -x /usr/bin/objformat; then
15372     objformat=`/usr/bin/objformat`
15373   else
15374     case $host_os in
15375     freebsd[123]*) objformat=aout ;;
15376     *) objformat=elf ;;
15377     esac
15378   fi
15379   version_type=freebsd-$objformat
15380   case $version_type in
15381     freebsd-elf*)
15382       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15383       need_version=no
15384       need_lib_prefix=no
15385       ;;
15386     freebsd-*)
15387       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15388       need_version=yes
15389       ;;
15390   esac
15391   shlibpath_var=LD_LIBRARY_PATH
15392   case $host_os in
15393   freebsd2*)
15394     shlibpath_overrides_runpath=yes
15395     ;;
15396   freebsd3.[01]* | freebsdelf3.[01]*)
15397     shlibpath_overrides_runpath=yes
15398     hardcode_into_libs=yes
15399     ;;
15400   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15401   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15402     shlibpath_overrides_runpath=no
15403     hardcode_into_libs=yes
15404     ;;
15405   *) # from 4.6 on, and DragonFly
15406     shlibpath_overrides_runpath=yes
15407     hardcode_into_libs=yes
15408     ;;
15409   esac
15410   ;;
15411
15412 gnu*)
15413   version_type=linux
15414   need_lib_prefix=no
15415   need_version=no
15416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15417   soname_spec='${libname}${release}${shared_ext}$major'
15418   shlibpath_var=LD_LIBRARY_PATH
15419   hardcode_into_libs=yes
15420   ;;
15421
15422 hpux9* | hpux10* | hpux11*)
15423   # Give a soname corresponding to the major version so that dld.sl refuses to
15424   # link against other versions.
15425   version_type=sunos
15426   need_lib_prefix=no
15427   need_version=no
15428   case $host_cpu in
15429   ia64*)
15430     shrext_cmds='.so'
15431     hardcode_into_libs=yes
15432     dynamic_linker="$host_os dld.so"
15433     shlibpath_var=LD_LIBRARY_PATH
15434     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436     soname_spec='${libname}${release}${shared_ext}$major'
15437     if test "X$HPUX_IA64_MODE" = X32; then
15438       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15439     else
15440       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15441     fi
15442     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15443     ;;
15444   hppa*64*)
15445     shrext_cmds='.sl'
15446     hardcode_into_libs=yes
15447     dynamic_linker="$host_os dld.sl"
15448     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15449     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15450     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451     soname_spec='${libname}${release}${shared_ext}$major'
15452     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15453     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15454     ;;
15455   *)
15456     shrext_cmds='.sl'
15457     dynamic_linker="$host_os dld.sl"
15458     shlibpath_var=SHLIB_PATH
15459     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15460     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461     soname_spec='${libname}${release}${shared_ext}$major'
15462     ;;
15463   esac
15464   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15465   postinstall_cmds='chmod 555 $lib'
15466   ;;
15467
15468 interix[3-9]*)
15469   version_type=linux
15470   need_lib_prefix=no
15471   need_version=no
15472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15473   soname_spec='${libname}${release}${shared_ext}$major'
15474   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15475   shlibpath_var=LD_LIBRARY_PATH
15476   shlibpath_overrides_runpath=no
15477   hardcode_into_libs=yes
15478   ;;
15479
15480 irix5* | irix6* | nonstopux*)
15481   case $host_os in
15482     nonstopux*) version_type=nonstopux ;;
15483     *)
15484         if test "$lt_cv_prog_gnu_ld" = yes; then
15485                 version_type=linux
15486         else
15487                 version_type=irix
15488         fi ;;
15489   esac
15490   need_lib_prefix=no
15491   need_version=no
15492   soname_spec='${libname}${release}${shared_ext}$major'
15493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15494   case $host_os in
15495   irix5* | nonstopux*)
15496     libsuff= shlibsuff=
15497     ;;
15498   *)
15499     case $LD in # libtool.m4 will add one of these switches to LD
15500     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15501       libsuff= shlibsuff= libmagic=32-bit;;
15502     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15503       libsuff=32 shlibsuff=N32 libmagic=N32;;
15504     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15505       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15506     *) libsuff= shlibsuff= libmagic=never-match;;
15507     esac
15508     ;;
15509   esac
15510   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15511   shlibpath_overrides_runpath=no
15512   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15513   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15514   hardcode_into_libs=yes
15515   ;;
15516
15517 # No shared lib support for Linux oldld, aout, or coff.
15518 linux*oldld* | linux*aout* | linux*coff*)
15519   dynamic_linker=no
15520   ;;
15521
15522 # This must be Linux ELF.
15523 linux* | k*bsd*-gnu)
15524   version_type=linux
15525   need_lib_prefix=no
15526   need_version=no
15527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528   soname_spec='${libname}${release}${shared_ext}$major'
15529   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15530   shlibpath_var=LD_LIBRARY_PATH
15531   shlibpath_overrides_runpath=no
15532   # Some binutils ld are patched to set DT_RUNPATH
15533   save_LDFLAGS=$LDFLAGS
15534   save_libdir=$libdir
15535   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15536        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15537   cat >conftest.$ac_ext <<_ACEOF
15538 /* confdefs.h.  */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h.  */
15543
15544 int
15545 main ()
15546 {
15547
15548   ;
15549   return 0;
15550 }
15551 _ACEOF
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (ac_try="$ac_link"
15554 case "(($ac_try" in
15555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556   *) ac_try_echo=$ac_try;;
15557 esac
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559   (eval "$ac_link") 2>conftest.er1
15560   ac_status=$?
15561   grep -v '^ *+' conftest.er1 >conftest.err
15562   rm -f conftest.er1
15563   cat conftest.err >&5
15564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565   (exit $ac_status); } && {
15566          test -z "$ac_cxx_werror_flag" ||
15567          test ! -s conftest.err
15568        } && test -s conftest$ac_exeext &&
15569        $as_test_x conftest$ac_exeext; then
15570   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15571   shlibpath_overrides_runpath=yes
15572 fi
15573
15574 else
15575   echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15577
15578
15579 fi
15580
15581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15582       conftest$ac_exeext conftest.$ac_ext
15583   LDFLAGS=$save_LDFLAGS
15584   libdir=$save_libdir
15585
15586   # This implies no fast_install, which is unacceptable.
15587   # Some rework will be needed to allow for fast_install
15588   # before this can be enabled.
15589   hardcode_into_libs=yes
15590
15591   # Append ld.so.conf contents to the search path
15592   if test -f /etc/ld.so.conf; then
15593     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' ' '`
15594     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15595   fi
15596
15597   # We used to test for /lib/ld.so.1 and disable shared libraries on
15598   # powerpc, because MkLinux only supported shared libraries with the
15599   # GNU dynamic linker.  Since this was broken with cross compilers,
15600   # most powerpc-linux boxes support dynamic linking these days and
15601   # people can always --disable-shared, the test was removed, and we
15602   # assume the GNU/Linux dynamic linker is in use.
15603   dynamic_linker='GNU/Linux ld.so'
15604   ;;
15605
15606 netbsd*)
15607   version_type=sunos
15608   need_lib_prefix=no
15609   need_version=no
15610   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15611     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15612     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15613     dynamic_linker='NetBSD (a.out) ld.so'
15614   else
15615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15616     soname_spec='${libname}${release}${shared_ext}$major'
15617     dynamic_linker='NetBSD ld.elf_so'
15618   fi
15619   shlibpath_var=LD_LIBRARY_PATH
15620   shlibpath_overrides_runpath=yes
15621   hardcode_into_libs=yes
15622   ;;
15623
15624 newsos6)
15625   version_type=linux
15626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627   shlibpath_var=LD_LIBRARY_PATH
15628   shlibpath_overrides_runpath=yes
15629   ;;
15630
15631 *nto* | *qnx*)
15632   version_type=qnx
15633   need_lib_prefix=no
15634   need_version=no
15635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15636   soname_spec='${libname}${release}${shared_ext}$major'
15637   shlibpath_var=LD_LIBRARY_PATH
15638   shlibpath_overrides_runpath=no
15639   hardcode_into_libs=yes
15640   dynamic_linker='ldqnx.so'
15641   ;;
15642
15643 openbsd*)
15644   version_type=sunos
15645   sys_lib_dlsearch_path_spec="/usr/lib"
15646   need_lib_prefix=no
15647   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15648   case $host_os in
15649     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15650     *)                          need_version=no  ;;
15651   esac
15652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15653   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15654   shlibpath_var=LD_LIBRARY_PATH
15655   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15656     case $host_os in
15657       openbsd2.[89] | openbsd2.[89].*)
15658         shlibpath_overrides_runpath=no
15659         ;;
15660       *)
15661         shlibpath_overrides_runpath=yes
15662         ;;
15663       esac
15664   else
15665     shlibpath_overrides_runpath=yes
15666   fi
15667   ;;
15668
15669 os2*)
15670   libname_spec='$name'
15671   shrext_cmds=".dll"
15672   need_lib_prefix=no
15673   library_names_spec='$libname${shared_ext} $libname.a'
15674   dynamic_linker='OS/2 ld.exe'
15675   shlibpath_var=LIBPATH
15676   ;;
15677
15678 osf3* | osf4* | osf5*)
15679   version_type=osf
15680   need_lib_prefix=no
15681   need_version=no
15682   soname_spec='${libname}${release}${shared_ext}$major'
15683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684   shlibpath_var=LD_LIBRARY_PATH
15685   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15686   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15687   ;;
15688
15689 rdos*)
15690   dynamic_linker=no
15691   ;;
15692
15693 solaris*)
15694   version_type=linux
15695   need_lib_prefix=no
15696   need_version=no
15697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15698   soname_spec='${libname}${release}${shared_ext}$major'
15699   shlibpath_var=LD_LIBRARY_PATH
15700   shlibpath_overrides_runpath=yes
15701   hardcode_into_libs=yes
15702   # ldd complains unless libraries are executable
15703   postinstall_cmds='chmod +x $lib'
15704   ;;
15705
15706 sunos4*)
15707   version_type=sunos
15708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15709   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15710   shlibpath_var=LD_LIBRARY_PATH
15711   shlibpath_overrides_runpath=yes
15712   if test "$with_gnu_ld" = yes; then
15713     need_lib_prefix=no
15714   fi
15715   need_version=yes
15716   ;;
15717
15718 sysv4 | sysv4.3*)
15719   version_type=linux
15720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721   soname_spec='${libname}${release}${shared_ext}$major'
15722   shlibpath_var=LD_LIBRARY_PATH
15723   case $host_vendor in
15724     sni)
15725       shlibpath_overrides_runpath=no
15726       need_lib_prefix=no
15727       runpath_var=LD_RUN_PATH
15728       ;;
15729     siemens)
15730       need_lib_prefix=no
15731       ;;
15732     motorola)
15733       need_lib_prefix=no
15734       need_version=no
15735       shlibpath_overrides_runpath=no
15736       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15737       ;;
15738   esac
15739   ;;
15740
15741 sysv4*MP*)
15742   if test -d /usr/nec ;then
15743     version_type=linux
15744     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15745     soname_spec='$libname${shared_ext}.$major'
15746     shlibpath_var=LD_LIBRARY_PATH
15747   fi
15748   ;;
15749
15750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15751   version_type=freebsd-elf
15752   need_lib_prefix=no
15753   need_version=no
15754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15755   soname_spec='${libname}${release}${shared_ext}$major'
15756   shlibpath_var=LD_LIBRARY_PATH
15757   shlibpath_overrides_runpath=yes
15758   hardcode_into_libs=yes
15759   if test "$with_gnu_ld" = yes; then
15760     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15761   else
15762     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15763     case $host_os in
15764       sco3.2v5*)
15765         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15766         ;;
15767     esac
15768   fi
15769   sys_lib_dlsearch_path_spec='/usr/lib'
15770   ;;
15771
15772 tpf*)
15773   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15774   version_type=linux
15775   need_lib_prefix=no
15776   need_version=no
15777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15778   shlibpath_var=LD_LIBRARY_PATH
15779   shlibpath_overrides_runpath=no
15780   hardcode_into_libs=yes
15781   ;;
15782
15783 uts4*)
15784   version_type=linux
15785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786   soname_spec='${libname}${release}${shared_ext}$major'
15787   shlibpath_var=LD_LIBRARY_PATH
15788   ;;
15789
15790 *)
15791   dynamic_linker=no
15792   ;;
15793 esac
15794 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15795 echo "${ECHO_T}$dynamic_linker" >&6; }
15796 test "$dynamic_linker" = no && can_build_shared=no
15797
15798 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15799 if test "$GCC" = yes; then
15800   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15801 fi
15802
15803 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15804   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15805 fi
15806 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15807   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15808 fi
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15846 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15847 hardcode_action_CXX=
15848 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15849    test -n "$runpath_var_CXX" ||
15850    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15851
15852   # We can hardcode non-existent directories.
15853   if test "$hardcode_direct_CXX" != no &&
15854      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15855      # have to relink, otherwise we might link with an installed library
15856      # when we should be linking with a yet-to-be-installed one
15857      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15858      test "$hardcode_minus_L_CXX" != no; then
15859     # Linking always hardcodes the temporary library directory.
15860     hardcode_action_CXX=relink
15861   else
15862     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15863     hardcode_action_CXX=immediate
15864   fi
15865 else
15866   # We cannot hardcode anything, or else we can only hardcode existing
15867   # directories.
15868   hardcode_action_CXX=unsupported
15869 fi
15870 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15871 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15872
15873 if test "$hardcode_action_CXX" = relink ||
15874    test "$inherit_rpath_CXX" = yes; then
15875   # Fast installation is not supported
15876   enable_fast_install=no
15877 elif test "$shlibpath_overrides_runpath" = yes ||
15878      test "$enable_shared" = no; then
15879   # Fast installation is not necessary
15880   enable_fast_install=needless
15881 fi
15882
15883
15884
15885
15886
15887
15888
15889   fi # test -n "$compiler"
15890
15891   CC=$lt_save_CC
15892   LDCXX=$LD
15893   LD=$lt_save_LD
15894   GCC=$lt_save_GCC
15895   with_gnu_ld=$lt_save_with_gnu_ld
15896   lt_cv_path_LDCXX=$lt_cv_path_LD
15897   lt_cv_path_LD=$lt_save_path_LD
15898   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15899   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15900 fi # test "$_lt_caught_CXX_error" != yes
15901
15902 ac_ext=c
15903 ac_cpp='$CPP $CPPFLAGS'
15904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920         ac_config_commands="$ac_config_commands libtool"
15921
15922
15923
15924
15925 # Only expand once:
15926
15927
15928
15929
15930 if test x$use_libtool != xno; then
15931    DEFAULT_OBJECT_TYPE=".lo"
15932    DEFAULT_ARCHIVE_TYPE=".la"
15933    DEFAULT_SHARED_OBJECT_TYPE=".la"
15934    LIBTOOL="\$(LIBTOOL)"
15935    LIBTOOL_INSTALL_TARGET="libtool-install"
15936    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15937    LIBTOOL_CLEAN_TARGET="libtool-clean"
15938    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15939 else
15940    DEFAULT_OBJECT_TYPE=".o"
15941    DEFAULT_ARCHIVE_TYPE=".a"
15942    DEFAULT_SHARED_OBJECT_TYPE=".so"
15943    LIBTOOL="# \$(LIBTOOL)"
15944    LIBTOOL_INSTALL_TARGET=""
15945    LIBTOOL_UNINSTALL_TARGET=""
15946    LIBTOOL_CLEAN_TARGET=""
15947    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15948 fi
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959 # Check whether --enable-includes was given.
15960 if test "${enable_includes+set}" = set; then
15961   enableval=$enable_includes;
15962        if test x$enableval = xyes; then
15963           install_includes=yes
15964        fi
15965
15966
15967 fi
15968
15969
15970
15971 if test x$use_libtool != xno -a x$install_includes = xyes; then
15972    INCLUDE_INSTALL_TARGET="install-includes"
15973    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15974 else
15975    INCLUDE_INSTALL_TARGET=""
15976    INCLUDE_UNINSTALL_TARGET=""
15977 fi
15978
15979
15980
15981
15982 { echo "$as_me:$LINENO: checking host system type" >&5
15983 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15984 if test "${ac_cv_host+set}" = set; then
15985   echo $ECHO_N "(cached) $ECHO_C" >&6
15986 else
15987   if test "x$host_alias" = x; then
15988   ac_cv_host=$ac_cv_build
15989 else
15990   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15991     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15992 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15993    { (exit 1); exit 1; }; }
15994 fi
15995
15996 fi
15997 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15998 echo "${ECHO_T}$ac_cv_host" >&6; }
15999 case $ac_cv_host in
16000 *-*-*) ;;
16001 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16002 echo "$as_me: error: invalid value of canonical host" >&2;}
16003    { (exit 1); exit 1; }; };;
16004 esac
16005 host=$ac_cv_host
16006 ac_save_IFS=$IFS; IFS='-'
16007 set x $ac_cv_host
16008 shift
16009 host_cpu=$1
16010 host_vendor=$2
16011 shift; shift
16012 # Remember, the first character of IFS is used to create $*,
16013 # except with old shells:
16014 host_os=$*
16015 IFS=$ac_save_IFS
16016 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16017
16018
16019 case $host_os in
16020   *cygwin* ) CYGWIN=yes;;
16021          * ) CYGWIN=no;;
16022 esac
16023
16024 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16025 then
16026
16027
16028 if $TRUEPRG; then
16029   HAVE_SUN_OS_TRUE=
16030   HAVE_SUN_OS_FALSE='#'
16031 else
16032   HAVE_SUN_OS_TRUE='#'
16033   HAVE_SUN_OS_FALSE=
16034 fi
16035         cat >>confdefs.h <<\_ACEOF
16036 #define HAVE_SUN_OS 1
16037 _ACEOF
16038
16039 else
16040
16041
16042 if $FALSEPRG; then
16043   HAVE_SUN_OS_TRUE=
16044   HAVE_SUN_OS_FALSE='#'
16045 else
16046   HAVE_SUN_OS_TRUE='#'
16047   HAVE_SUN_OS_FALSE=
16048 fi
16049 fi
16050
16051 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16052 then
16053
16054
16055 if $TRUEPRG; then
16056   HAVE_OSF1_OS_TRUE=
16057   HAVE_OSF1_OS_FALSE='#'
16058 else
16059   HAVE_OSF1_OS_TRUE='#'
16060   HAVE_OSF1_OS_FALSE=
16061 fi
16062         cat >>confdefs.h <<\_ACEOF
16063 #define HAVE_OSF1_OS 1
16064 _ACEOF
16065
16066 else
16067
16068
16069 if $FALSEPRG; then
16070   HAVE_OSF1_OS_TRUE=
16071   HAVE_OSF1_OS_FALSE='#'
16072 else
16073   HAVE_OSF1_OS_TRUE='#'
16074   HAVE_OSF1_OS_FALSE=
16075 fi
16076 fi
16077
16078 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16079 then
16080
16081
16082 if $TRUEPRG; then
16083   HAVE_AIX_OS_TRUE=
16084   HAVE_AIX_OS_FALSE='#'
16085 else
16086   HAVE_AIX_OS_TRUE='#'
16087   HAVE_AIX_OS_FALSE=
16088 fi
16089         cat >>confdefs.h <<\_ACEOF
16090 #define HAVE_AIX_OS 1
16091 _ACEOF
16092
16093 else
16094
16095
16096 if $FALSEPRG; then
16097   HAVE_AIX_OS_TRUE=
16098   HAVE_AIX_OS_FALSE='#'
16099 else
16100   HAVE_AIX_OS_TRUE='#'
16101   HAVE_AIX_OS_FALSE=
16102 fi
16103 fi
16104
16105 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16106 then
16107
16108
16109 if $TRUEPRG; then
16110   HAVE_HPUX_OS_TRUE=
16111   HAVE_HPUX_OS_FALSE='#'
16112 else
16113   HAVE_HPUX_OS_TRUE='#'
16114   HAVE_HPUX_OS_FALSE=
16115 fi
16116         cat >>confdefs.h <<\_ACEOF
16117 #define HAVE_HPUX_OS 1
16118 _ACEOF
16119
16120 else
16121
16122
16123 if $FALSEPRG; then
16124   HAVE_HPUX_OS_TRUE=
16125   HAVE_HPUX_OS_FALSE='#'
16126 else
16127   HAVE_HPUX_OS_TRUE='#'
16128   HAVE_HPUX_OS_FALSE=
16129 fi
16130 fi
16131
16132 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16133 then
16134
16135
16136 if $TRUEPRG; then
16137   HAVE_LINUX_OS_TRUE=
16138   HAVE_LINUX_OS_FALSE='#'
16139 else
16140   HAVE_LINUX_OS_TRUE='#'
16141   HAVE_LINUX_OS_FALSE=
16142 fi
16143         cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_LINUX_OS 1
16145 _ACEOF
16146
16147 else
16148
16149
16150 if $FALSEPRG; then
16151   HAVE_LINUX_OS_TRUE=
16152   HAVE_LINUX_OS_FALSE='#'
16153 else
16154   HAVE_LINUX_OS_TRUE='#'
16155   HAVE_LINUX_OS_FALSE=
16156 fi
16157 fi
16158
16159 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16160 then
16161
16162
16163 if $TRUEPRG; then
16164   HAVE_FREEBSD_OS_TRUE=
16165   HAVE_FREEBSD_OS_FALSE='#'
16166 else
16167   HAVE_FREEBSD_OS_TRUE='#'
16168   HAVE_FREEBSD_OS_FALSE=
16169 fi
16170         cat >>confdefs.h <<\_ACEOF
16171 #define HAVE_FREEBSD_OS 1
16172 _ACEOF
16173
16174 else
16175
16176
16177 if $FALSEPRG; then
16178   HAVE_FREEBSD_OS_TRUE=
16179   HAVE_FREEBSD_OS_FALSE='#'
16180 else
16181   HAVE_FREEBSD_OS_TRUE='#'
16182   HAVE_FREEBSD_OS_FALSE=
16183 fi
16184 fi
16185
16186 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16187 then
16188
16189
16190 if $TRUEPRG; then
16191   HAVE_NETBSD_OS_TRUE=
16192   HAVE_NETBSD_OS_FALSE='#'
16193 else
16194   HAVE_NETBSD_OS_TRUE='#'
16195   HAVE_NETBSD_OS_FALSE=
16196 fi
16197         cat >>confdefs.h <<\_ACEOF
16198 #define HAVE_NETBSD_OS 1
16199 _ACEOF
16200
16201 else
16202
16203
16204 if $FALSEPRG; then
16205   HAVE_NETBSD_OS_TRUE=
16206   HAVE_NETBSD_OS_FALSE='#'
16207 else
16208   HAVE_NETBSD_OS_TRUE='#'
16209   HAVE_NETBSD_OS_FALSE=
16210 fi
16211 fi
16212
16213 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16214 then
16215
16216
16217 if $TRUEPRG; then
16218   HAVE_OPENBSD_OS_TRUE=
16219   HAVE_OPENBSD_OS_FALSE='#'
16220 else
16221   HAVE_OPENBSD_OS_TRUE='#'
16222   HAVE_OPENBSD_OS_FALSE=
16223 fi
16224         cat >>confdefs.h <<\_ACEOF
16225 #define HAVE_OPENBSD_OS 1
16226 _ACEOF
16227
16228 else
16229
16230
16231 if $FALSEPRG; then
16232   HAVE_OPENBSD_OS_TRUE=
16233   HAVE_OPENBSD_OS_FALSE='#'
16234 else
16235   HAVE_OPENBSD_OS_TRUE='#'
16236   HAVE_OPENBSD_OS_FALSE=
16237 fi
16238 fi
16239
16240 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16241 then
16242
16243
16244 if $TRUEPRG; then
16245   HAVE_BSDI_OS_TRUE=
16246   HAVE_BSDI_OS_FALSE='#'
16247 else
16248   HAVE_BSDI_OS_TRUE='#'
16249   HAVE_BSDI_OS_FALSE=
16250 fi
16251         cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_BSDI_OS 1
16253 _ACEOF
16254
16255 else
16256
16257
16258 if $FALSEPRG; then
16259   HAVE_BSDI_OS_TRUE=
16260   HAVE_BSDI_OS_FALSE='#'
16261 else
16262   HAVE_BSDI_OS_TRUE='#'
16263   HAVE_BSDI_OS_FALSE=
16264 fi
16265 fi
16266
16267 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16268 then
16269
16270
16271 if $TRUEPRG; then
16272   HAVE_SGI_OS_TRUE=
16273   HAVE_SGI_OS_FALSE='#'
16274 else
16275   HAVE_SGI_OS_TRUE='#'
16276   HAVE_SGI_OS_FALSE=
16277 fi
16278         cat >>confdefs.h <<\_ACEOF
16279 #define HAVE_SGI_OS 1
16280 _ACEOF
16281
16282 else
16283
16284
16285 if $FALSEPRG; then
16286   HAVE_SGI_OS_TRUE=
16287   HAVE_SGI_OS_FALSE='#'
16288 else
16289   HAVE_SGI_OS_TRUE='#'
16290   HAVE_SGI_OS_FALSE=
16291 fi
16292 fi
16293
16294 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16295 then
16296
16297
16298 if $TRUEPRG; then
16299   HAVE_IRIX_OS_TRUE=
16300   HAVE_IRIX_OS_FALSE='#'
16301 else
16302   HAVE_IRIX_OS_TRUE='#'
16303   HAVE_IRIX_OS_FALSE=
16304 fi
16305         cat >>confdefs.h <<\_ACEOF
16306 #define HAVE_IRIX_OS 1
16307 _ACEOF
16308
16309 else
16310
16311
16312 if $FALSEPRG; then
16313   HAVE_IRIX_OS_TRUE=
16314   HAVE_IRIX_OS_FALSE='#'
16315 else
16316   HAVE_IRIX_OS_TRUE='#'
16317   HAVE_IRIX_OS_FALSE=
16318 fi
16319 fi
16320
16321 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16322 then
16323
16324
16325 if $TRUEPRG; then
16326   HAVE_DARWIN_OS_TRUE=
16327   HAVE_DARWIN_OS_FALSE='#'
16328 else
16329   HAVE_DARWIN_OS_TRUE='#'
16330   HAVE_DARWIN_OS_FALSE=
16331 fi
16332     cat >>confdefs.h <<\_ACEOF
16333 #define HAVE_DARWIN_OS 1
16334 _ACEOF
16335
16336 else
16337
16338
16339 if $FALSEPRG; then
16340   HAVE_DARWIN_OS_TRUE=
16341   HAVE_DARWIN_OS_FALSE='#'
16342 else
16343   HAVE_DARWIN_OS_TRUE='#'
16344   HAVE_DARWIN_OS_FALSE=
16345 fi
16346 fi
16347
16348
16349 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16350 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16351 if test "x$DISTNAME" != "x"
16352 then
16353         echo "distname set to $DISTNAME"
16354 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16355 then
16356         DISTNAME=alpha
16357 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16358 then
16359         DISTNAME=aix
16360 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16361 then
16362         DISTNAME=hpux
16363 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16364 then
16365         DISTNAME=solaris
16366 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16367 then
16368         DISTNAME=freebsd
16369 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16370 then
16371         DISTNAME=netbsd
16372 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16373 then
16374         DISTNAME=openbsd
16375 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16376 then
16377         DISTNAME=irix
16378 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16379 then
16380         DISTNAME=bsdi
16381 elif test -f /etc/SuSE-release
16382 then
16383         DISTNAME=suse
16384 elif test -d /etc/SuSEconfig
16385 then
16386         DISTNAME=suse5
16387 elif test -f /etc/mandrake-release
16388 then
16389         DISTNAME=mandrake
16390 elif test -f /etc/whitebox-release
16391 then
16392        DISTNAME=redhat
16393 elif test -f /etc/redhat-release
16394 then
16395         DISTNAME=redhat
16396 elif test -f /etc/gentoo-release
16397 then
16398         DISTNAME=gentoo
16399 elif test -f /etc/debian_version
16400 then
16401         DISTNAME=debian
16402 elif test -f /etc/slackware-version
16403 then
16404         DISTNAME=slackware
16405 elif test x$host_vendor = xapple
16406 then
16407     DISTNAME=osx
16408 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16409 then
16410     DISTNAME=darwin
16411 elif test -f /etc/engarde-version
16412 then
16413         DISTNAME=engarde
16414 elif test "$CYGWIN" = yes
16415 then
16416         DISTNAME=cygwin
16417         cat >>confdefs.h <<\_ACEOF
16418 #define HAVE_CYGWIN 1
16419 _ACEOF
16420
16421 else
16422         DISTNAME=unknown
16423 fi
16424 { echo "$as_me:$LINENO: result: done" >&5
16425 echo "${ECHO_T}done" >&6; }
16426
16427
16428 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16429 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16430 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16431 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16432   echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434   cat >conftest.make <<\_ACEOF
16435 SHELL = /bin/sh
16436 all:
16437         @echo '@@@%%%=$(MAKE)=@@@%%%'
16438 _ACEOF
16439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16440 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16441   *@@@%%%=?*=@@@%%%*)
16442     eval ac_cv_prog_make_${ac_make}_set=yes;;
16443   *)
16444     eval ac_cv_prog_make_${ac_make}_set=no;;
16445 esac
16446 rm -f conftest.make
16447 fi
16448 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16449   { echo "$as_me:$LINENO: result: yes" >&5
16450 echo "${ECHO_T}yes" >&6; }
16451   SET_MAKE=
16452 else
16453   { echo "$as_me:$LINENO: result: no" >&5
16454 echo "${ECHO_T}no" >&6; }
16455   SET_MAKE="MAKE=${MAKE-make}"
16456 fi
16457
16458
16459
16460         MKINSTALLDIRS=
16461   if test -n "$ac_aux_dir"; then
16462     case "$ac_aux_dir" in
16463       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16464       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16465     esac
16466   fi
16467   if test -z "$MKINSTALLDIRS"; then
16468     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16469   fi
16470
16471
16472
16473   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16474 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16475     # Check whether --enable-nls was given.
16476 if test "${enable_nls+set}" = set; then
16477   enableval=$enable_nls; USE_NLS=$enableval
16478 else
16479   USE_NLS=yes
16480 fi
16481
16482   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16483 echo "${ECHO_T}$USE_NLS" >&6; }
16484
16485
16486
16487
16488
16489
16490 # Prepare PATH_SEPARATOR.
16491 # The user is always right.
16492 if test "${PATH_SEPARATOR+set}" != set; then
16493   echo "#! /bin/sh" >conf$$.sh
16494   echo  "exit 0"   >>conf$$.sh
16495   chmod +x conf$$.sh
16496   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16497     PATH_SEPARATOR=';'
16498   else
16499     PATH_SEPARATOR=:
16500   fi
16501   rm -f conf$$.sh
16502 fi
16503
16504 # Find out how to test for executable files. Don't use a zero-byte file,
16505 # as systems may use methods other than mode bits to determine executability.
16506 cat >conf$$.file <<_ASEOF
16507 #! /bin/sh
16508 exit 0
16509 _ASEOF
16510 chmod +x conf$$.file
16511 if test -x conf$$.file >/dev/null 2>&1; then
16512   ac_executable_p="test -x"
16513 else
16514   ac_executable_p="test -f"
16515 fi
16516 rm -f conf$$.file
16517
16518 # Extract the first word of "msgfmt", so it can be a program name with args.
16519 set dummy msgfmt; ac_word=$2
16520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16522 if test "${ac_cv_path_MSGFMT+set}" = set; then
16523   echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525   case "$MSGFMT" in
16526   [\\/]* | ?:[\\/]*)
16527     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16528     ;;
16529   *)
16530     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16531     for ac_dir in $PATH; do
16532       IFS="$ac_save_IFS"
16533       test -z "$ac_dir" && ac_dir=.
16534       for ac_exec_ext in '' $ac_executable_extensions; do
16535         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16536           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16537           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16538      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16539             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16540             break 2
16541           fi
16542         fi
16543       done
16544     done
16545     IFS="$ac_save_IFS"
16546   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16547     ;;
16548 esac
16549 fi
16550 MSGFMT="$ac_cv_path_MSGFMT"
16551 if test "$MSGFMT" != ":"; then
16552   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16553 echo "${ECHO_T}$MSGFMT" >&6; }
16554 else
16555   { echo "$as_me:$LINENO: result: no" >&5
16556 echo "${ECHO_T}no" >&6; }
16557 fi
16558
16559   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16560 set dummy gmsgfmt; ac_word=$2
16561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16563 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16564   echo $ECHO_N "(cached) $ECHO_C" >&6
16565 else
16566   case $GMSGFMT in
16567   [\\/]* | ?:[\\/]*)
16568   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16569   ;;
16570   *)
16571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16572 for as_dir in $PATH
16573 do
16574   IFS=$as_save_IFS
16575   test -z "$as_dir" && as_dir=.
16576   for ac_exec_ext in '' $ac_executable_extensions; do
16577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16578     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16580     break 2
16581   fi
16582 done
16583 done
16584 IFS=$as_save_IFS
16585
16586   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16587   ;;
16588 esac
16589 fi
16590 GMSGFMT=$ac_cv_path_GMSGFMT
16591 if test -n "$GMSGFMT"; then
16592   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16593 echo "${ECHO_T}$GMSGFMT" >&6; }
16594 else
16595   { echo "$as_me:$LINENO: result: no" >&5
16596 echo "${ECHO_T}no" >&6; }
16597 fi
16598
16599
16600
16601
16602 # Prepare PATH_SEPARATOR.
16603 # The user is always right.
16604 if test "${PATH_SEPARATOR+set}" != set; then
16605   echo "#! /bin/sh" >conf$$.sh
16606   echo  "exit 0"   >>conf$$.sh
16607   chmod +x conf$$.sh
16608   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16609     PATH_SEPARATOR=';'
16610   else
16611     PATH_SEPARATOR=:
16612   fi
16613   rm -f conf$$.sh
16614 fi
16615
16616 # Find out how to test for executable files. Don't use a zero-byte file,
16617 # as systems may use methods other than mode bits to determine executability.
16618 cat >conf$$.file <<_ASEOF
16619 #! /bin/sh
16620 exit 0
16621 _ASEOF
16622 chmod +x conf$$.file
16623 if test -x conf$$.file >/dev/null 2>&1; then
16624   ac_executable_p="test -x"
16625 else
16626   ac_executable_p="test -f"
16627 fi
16628 rm -f conf$$.file
16629
16630 # Extract the first word of "xgettext", so it can be a program name with args.
16631 set dummy xgettext; ac_word=$2
16632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16634 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16635   echo $ECHO_N "(cached) $ECHO_C" >&6
16636 else
16637   case "$XGETTEXT" in
16638   [\\/]* | ?:[\\/]*)
16639     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16640     ;;
16641   *)
16642     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16643     for ac_dir in $PATH; do
16644       IFS="$ac_save_IFS"
16645       test -z "$ac_dir" && ac_dir=.
16646       for ac_exec_ext in '' $ac_executable_extensions; do
16647         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16648           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16649           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16650      (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
16651             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16652             break 2
16653           fi
16654         fi
16655       done
16656     done
16657     IFS="$ac_save_IFS"
16658   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16659     ;;
16660 esac
16661 fi
16662 XGETTEXT="$ac_cv_path_XGETTEXT"
16663 if test "$XGETTEXT" != ":"; then
16664   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16665 echo "${ECHO_T}$XGETTEXT" >&6; }
16666 else
16667   { echo "$as_me:$LINENO: result: no" >&5
16668 echo "${ECHO_T}no" >&6; }
16669 fi
16670
16671     rm -f messages.po
16672
16673
16674 # Prepare PATH_SEPARATOR.
16675 # The user is always right.
16676 if test "${PATH_SEPARATOR+set}" != set; then
16677   echo "#! /bin/sh" >conf$$.sh
16678   echo  "exit 0"   >>conf$$.sh
16679   chmod +x conf$$.sh
16680   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16681     PATH_SEPARATOR=';'
16682   else
16683     PATH_SEPARATOR=:
16684   fi
16685   rm -f conf$$.sh
16686 fi
16687
16688 # Find out how to test for executable files. Don't use a zero-byte file,
16689 # as systems may use methods other than mode bits to determine executability.
16690 cat >conf$$.file <<_ASEOF
16691 #! /bin/sh
16692 exit 0
16693 _ASEOF
16694 chmod +x conf$$.file
16695 if test -x conf$$.file >/dev/null 2>&1; then
16696   ac_executable_p="test -x"
16697 else
16698   ac_executable_p="test -f"
16699 fi
16700 rm -f conf$$.file
16701
16702 # Extract the first word of "msgmerge", so it can be a program name with args.
16703 set dummy msgmerge; ac_word=$2
16704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16706 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16707   echo $ECHO_N "(cached) $ECHO_C" >&6
16708 else
16709   case "$MSGMERGE" in
16710   [\\/]* | ?:[\\/]*)
16711     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16712     ;;
16713   *)
16714     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16715     for ac_dir in $PATH; do
16716       IFS="$ac_save_IFS"
16717       test -z "$ac_dir" && ac_dir=.
16718       for ac_exec_ext in '' $ac_executable_extensions; do
16719         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16720           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16721           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16722             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16723             break 2
16724           fi
16725         fi
16726       done
16727     done
16728     IFS="$ac_save_IFS"
16729   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16730     ;;
16731 esac
16732 fi
16733 MSGMERGE="$ac_cv_path_MSGMERGE"
16734 if test "$MSGMERGE" != ":"; then
16735   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16736 echo "${ECHO_T}$MSGMERGE" >&6; }
16737 else
16738   { echo "$as_me:$LINENO: result: no" >&5
16739 echo "${ECHO_T}no" >&6; }
16740 fi
16741
16742
16743       if test "$GMSGFMT" != ":"; then
16744             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16745        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16746       : ;
16747     else
16748       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16749       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16750 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16751       GMSGFMT=":"
16752     fi
16753   fi
16754
16755       if test "$XGETTEXT" != ":"; then
16756             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16757        (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
16758       : ;
16759     else
16760       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16761 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16762       XGETTEXT=":"
16763     fi
16764         rm -f messages.po
16765   fi
16766
16767   ac_config_commands="$ac_config_commands default-1"
16768
16769
16770
16771       if test "X$prefix" = "XNONE"; then
16772     acl_final_prefix="$ac_default_prefix"
16773   else
16774     acl_final_prefix="$prefix"
16775   fi
16776   if test "X$exec_prefix" = "XNONE"; then
16777     acl_final_exec_prefix='${prefix}'
16778   else
16779     acl_final_exec_prefix="$exec_prefix"
16780   fi
16781   acl_save_prefix="$prefix"
16782   prefix="$acl_final_prefix"
16783   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16784   prefix="$acl_save_prefix"
16785
16786
16787 # Check whether --with-gnu-ld was given.
16788 if test "${with_gnu_ld+set}" = set; then
16789   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16790 else
16791   with_gnu_ld=no
16792 fi
16793
16794 # Prepare PATH_SEPARATOR.
16795 # The user is always right.
16796 if test "${PATH_SEPARATOR+set}" != set; then
16797   echo "#! /bin/sh" >conf$$.sh
16798   echo  "exit 0"   >>conf$$.sh
16799   chmod +x conf$$.sh
16800   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16801     PATH_SEPARATOR=';'
16802   else
16803     PATH_SEPARATOR=:
16804   fi
16805   rm -f conf$$.sh
16806 fi
16807 ac_prog=ld
16808 if test "$GCC" = yes; then
16809   # Check if gcc -print-prog-name=ld gives a path.
16810   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16811 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16812   case $host in
16813   *-*-mingw*)
16814     # gcc leaves a trailing carriage return which upsets mingw
16815     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16816   *)
16817     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16818   esac
16819   case $ac_prog in
16820     # Accept absolute paths.
16821     [\\/]* | [A-Za-z]:[\\/]*)
16822       re_direlt='/[^/][^/]*/\.\./'
16823       # Canonicalize the path of ld
16824       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16825       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16826         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16827       done
16828       test -z "$LD" && LD="$ac_prog"
16829       ;;
16830   "")
16831     # If it fails, then pretend we aren't using GCC.
16832     ac_prog=ld
16833     ;;
16834   *)
16835     # If it is relative, then search for the first ld in PATH.
16836     with_gnu_ld=unknown
16837     ;;
16838   esac
16839 elif test "$with_gnu_ld" = yes; then
16840   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16841 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16842 else
16843   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16844 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16845 fi
16846 if test "${acl_cv_path_LD+set}" = set; then
16847   echo $ECHO_N "(cached) $ECHO_C" >&6
16848 else
16849   if test -z "$LD"; then
16850   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16851   for ac_dir in $PATH; do
16852     test -z "$ac_dir" && ac_dir=.
16853     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16854       acl_cv_path_LD="$ac_dir/$ac_prog"
16855       # Check to see if the program is GNU ld.  I'd rather use --version,
16856       # but apparently some GNU ld's only accept -v.
16857       # Break only if it was the GNU/non-GNU ld that we prefer.
16858       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16859       *GNU* | *'with BFD'*)
16860         test "$with_gnu_ld" != no && break ;;
16861       *)
16862         test "$with_gnu_ld" != yes && break ;;
16863       esac
16864     fi
16865   done
16866   IFS="$ac_save_ifs"
16867 else
16868   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16869 fi
16870 fi
16871
16872 LD="$acl_cv_path_LD"
16873 if test -n "$LD"; then
16874   { echo "$as_me:$LINENO: result: $LD" >&5
16875 echo "${ECHO_T}$LD" >&6; }
16876 else
16877   { echo "$as_me:$LINENO: result: no" >&5
16878 echo "${ECHO_T}no" >&6; }
16879 fi
16880 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16881 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16882    { (exit 1); exit 1; }; }
16883 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16884 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16885 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16886   echo $ECHO_N "(cached) $ECHO_C" >&6
16887 else
16888   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16889 case `$LD -v 2>&1 </dev/null` in
16890 *GNU* | *'with BFD'*)
16891   acl_cv_prog_gnu_ld=yes ;;
16892 *)
16893   acl_cv_prog_gnu_ld=no ;;
16894 esac
16895 fi
16896 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16897 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16898 with_gnu_ld=$acl_cv_prog_gnu_ld
16899
16900
16901
16902
16903                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16904 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16905 if test "${acl_cv_rpath+set}" = set; then
16906   echo $ECHO_N "(cached) $ECHO_C" >&6
16907 else
16908
16909     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16910     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16911     . ./conftest.sh
16912     rm -f ./conftest.sh
16913     acl_cv_rpath=done
16914
16915 fi
16916 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16917 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16918   wl="$acl_cv_wl"
16919   libext="$acl_cv_libext"
16920   shlibext="$acl_cv_shlibext"
16921   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16922   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16923   hardcode_direct="$acl_cv_hardcode_direct"
16924   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16925     # Check whether --enable-rpath was given.
16926 if test "${enable_rpath+set}" = set; then
16927   enableval=$enable_rpath; :
16928 else
16929   enable_rpath=yes
16930 fi
16931
16932
16933
16934
16935
16936
16937
16938
16939     use_additional=yes
16940
16941   acl_save_prefix="$prefix"
16942   prefix="$acl_final_prefix"
16943   acl_save_exec_prefix="$exec_prefix"
16944   exec_prefix="$acl_final_exec_prefix"
16945
16946     eval additional_includedir=\"$includedir\"
16947     eval additional_libdir=\"$libdir\"
16948
16949   exec_prefix="$acl_save_exec_prefix"
16950   prefix="$acl_save_prefix"
16951
16952
16953 # Check whether --with-libiconv-prefix was given.
16954 if test "${with_libiconv_prefix+set}" = set; then
16955   withval=$with_libiconv_prefix;
16956     if test "X$withval" = "Xno"; then
16957       use_additional=no
16958     else
16959       if test "X$withval" = "X"; then
16960
16961   acl_save_prefix="$prefix"
16962   prefix="$acl_final_prefix"
16963   acl_save_exec_prefix="$exec_prefix"
16964   exec_prefix="$acl_final_exec_prefix"
16965
16966           eval additional_includedir=\"$includedir\"
16967           eval additional_libdir=\"$libdir\"
16968
16969   exec_prefix="$acl_save_exec_prefix"
16970   prefix="$acl_save_prefix"
16971
16972       else
16973         additional_includedir="$withval/include"
16974         additional_libdir="$withval/lib"
16975       fi
16976     fi
16977
16978 fi
16979
16980       LIBICONV=
16981   LTLIBICONV=
16982   INCICONV=
16983   rpathdirs=
16984   ltrpathdirs=
16985   names_already_handled=
16986   names_next_round='iconv '
16987   while test -n "$names_next_round"; do
16988     names_this_round="$names_next_round"
16989     names_next_round=
16990     for name in $names_this_round; do
16991       already_handled=
16992       for n in $names_already_handled; do
16993         if test "$n" = "$name"; then
16994           already_handled=yes
16995           break
16996         fi
16997       done
16998       if test -z "$already_handled"; then
16999         names_already_handled="$names_already_handled $name"
17000                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17001         eval value=\"\$HAVE_LIB$uppername\"
17002         if test -n "$value"; then
17003           if test "$value" = yes; then
17004             eval value=\"\$LIB$uppername\"
17005             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17006             eval value=\"\$LTLIB$uppername\"
17007             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17008           else
17009                                     :
17010           fi
17011         else
17012                               found_dir=
17013           found_la=
17014           found_so=
17015           found_a=
17016           if test $use_additional = yes; then
17017             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17018               found_dir="$additional_libdir"
17019               found_so="$additional_libdir/lib$name.$shlibext"
17020               if test -f "$additional_libdir/lib$name.la"; then
17021                 found_la="$additional_libdir/lib$name.la"
17022               fi
17023             else
17024               if test -f "$additional_libdir/lib$name.$libext"; then
17025                 found_dir="$additional_libdir"
17026                 found_a="$additional_libdir/lib$name.$libext"
17027                 if test -f "$additional_libdir/lib$name.la"; then
17028                   found_la="$additional_libdir/lib$name.la"
17029                 fi
17030               fi
17031             fi
17032           fi
17033           if test "X$found_dir" = "X"; then
17034             for x in $LDFLAGS $LTLIBICONV; do
17035
17036   acl_save_prefix="$prefix"
17037   prefix="$acl_final_prefix"
17038   acl_save_exec_prefix="$exec_prefix"
17039   exec_prefix="$acl_final_exec_prefix"
17040   eval x=\"$x\"
17041   exec_prefix="$acl_save_exec_prefix"
17042   prefix="$acl_save_prefix"
17043
17044               case "$x" in
17045                 -L*)
17046                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17047                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17048                     found_dir="$dir"
17049                     found_so="$dir/lib$name.$shlibext"
17050                     if test -f "$dir/lib$name.la"; then
17051                       found_la="$dir/lib$name.la"
17052                     fi
17053                   else
17054                     if test -f "$dir/lib$name.$libext"; then
17055                       found_dir="$dir"
17056                       found_a="$dir/lib$name.$libext"
17057                       if test -f "$dir/lib$name.la"; then
17058                         found_la="$dir/lib$name.la"
17059                       fi
17060                     fi
17061                   fi
17062                   ;;
17063               esac
17064               if test "X$found_dir" != "X"; then
17065                 break
17066               fi
17067             done
17068           fi
17069           if test "X$found_dir" != "X"; then
17070                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17071             if test "X$found_so" != "X"; then
17072                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17073                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17074               else
17075                                                                                 haveit=
17076                 for x in $ltrpathdirs; do
17077                   if test "X$x" = "X$found_dir"; then
17078                     haveit=yes
17079                     break
17080                   fi
17081                 done
17082                 if test -z "$haveit"; then
17083                   ltrpathdirs="$ltrpathdirs $found_dir"
17084                 fi
17085                                 if test "$hardcode_direct" = yes; then
17086                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17087                 else
17088                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17089                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17090                                                             haveit=
17091                     for x in $rpathdirs; do
17092                       if test "X$x" = "X$found_dir"; then
17093                         haveit=yes
17094                         break
17095                       fi
17096                     done
17097                     if test -z "$haveit"; then
17098                       rpathdirs="$rpathdirs $found_dir"
17099                     fi
17100                   else
17101                                                                                 haveit=
17102                     for x in $LDFLAGS $LIBICONV; do
17103
17104   acl_save_prefix="$prefix"
17105   prefix="$acl_final_prefix"
17106   acl_save_exec_prefix="$exec_prefix"
17107   exec_prefix="$acl_final_exec_prefix"
17108   eval x=\"$x\"
17109   exec_prefix="$acl_save_exec_prefix"
17110   prefix="$acl_save_prefix"
17111
17112                       if test "X$x" = "X-L$found_dir"; then
17113                         haveit=yes
17114                         break
17115                       fi
17116                     done
17117                     if test -z "$haveit"; then
17118                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17119                     fi
17120                     if test "$hardcode_minus_L" != no; then
17121                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17122                     else
17123                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17124                     fi
17125                   fi
17126                 fi
17127               fi
17128             else
17129               if test "X$found_a" != "X"; then
17130                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17131               else
17132                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17133               fi
17134             fi
17135                         additional_includedir=
17136             case "$found_dir" in
17137               */lib | */lib/)
17138                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17139                 additional_includedir="$basedir/include"
17140                 ;;
17141             esac
17142             if test "X$additional_includedir" != "X"; then
17143                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17144                 haveit=
17145                 if test "X$additional_includedir" = "X/usr/local/include"; then
17146                   if test -n "$GCC"; then
17147                     case $host_os in
17148                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17149                     esac
17150                   fi
17151                 fi
17152                 if test -z "$haveit"; then
17153                   for x in $CPPFLAGS $INCICONV; do
17154
17155   acl_save_prefix="$prefix"
17156   prefix="$acl_final_prefix"
17157   acl_save_exec_prefix="$exec_prefix"
17158   exec_prefix="$acl_final_exec_prefix"
17159   eval x=\"$x\"
17160   exec_prefix="$acl_save_exec_prefix"
17161   prefix="$acl_save_prefix"
17162
17163                     if test "X$x" = "X-I$additional_includedir"; then
17164                       haveit=yes
17165                       break
17166                     fi
17167                   done
17168                   if test -z "$haveit"; then
17169                     if test -d "$additional_includedir"; then
17170                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17171                     fi
17172                   fi
17173                 fi
17174               fi
17175             fi
17176                         if test -n "$found_la"; then
17177                                                         save_libdir="$libdir"
17178               case "$found_la" in
17179                 */* | *\\*) . "$found_la" ;;
17180                 *) . "./$found_la" ;;
17181               esac
17182               libdir="$save_libdir"
17183                             for dep in $dependency_libs; do
17184                 case "$dep" in
17185                   -L*)
17186                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17187                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17188                       haveit=
17189                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17190                         if test -n "$GCC"; then
17191                           case $host_os in
17192                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17193                           esac
17194                         fi
17195                       fi
17196                       if test -z "$haveit"; then
17197                         haveit=
17198                         for x in $LDFLAGS $LIBICONV; do
17199
17200   acl_save_prefix="$prefix"
17201   prefix="$acl_final_prefix"
17202   acl_save_exec_prefix="$exec_prefix"
17203   exec_prefix="$acl_final_exec_prefix"
17204   eval x=\"$x\"
17205   exec_prefix="$acl_save_exec_prefix"
17206   prefix="$acl_save_prefix"
17207
17208                           if test "X$x" = "X-L$additional_libdir"; then
17209                             haveit=yes
17210                             break
17211                           fi
17212                         done
17213                         if test -z "$haveit"; then
17214                           if test -d "$additional_libdir"; then
17215                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17216                           fi
17217                         fi
17218                         haveit=
17219                         for x in $LDFLAGS $LTLIBICONV; do
17220
17221   acl_save_prefix="$prefix"
17222   prefix="$acl_final_prefix"
17223   acl_save_exec_prefix="$exec_prefix"
17224   exec_prefix="$acl_final_exec_prefix"
17225   eval x=\"$x\"
17226   exec_prefix="$acl_save_exec_prefix"
17227   prefix="$acl_save_prefix"
17228
17229                           if test "X$x" = "X-L$additional_libdir"; then
17230                             haveit=yes
17231                             break
17232                           fi
17233                         done
17234                         if test -z "$haveit"; then
17235                           if test -d "$additional_libdir"; then
17236                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17237                           fi
17238                         fi
17239                       fi
17240                     fi
17241                     ;;
17242                   -R*)
17243                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17244                     if test "$enable_rpath" != no; then
17245                                                                   haveit=
17246                       for x in $rpathdirs; do
17247                         if test "X$x" = "X$dir"; then
17248                           haveit=yes
17249                           break
17250                         fi
17251                       done
17252                       if test -z "$haveit"; then
17253                         rpathdirs="$rpathdirs $dir"
17254                       fi
17255                                                                   haveit=
17256                       for x in $ltrpathdirs; do
17257                         if test "X$x" = "X$dir"; then
17258                           haveit=yes
17259                           break
17260                         fi
17261                       done
17262                       if test -z "$haveit"; then
17263                         ltrpathdirs="$ltrpathdirs $dir"
17264                       fi
17265                     fi
17266                     ;;
17267                   -l*)
17268                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17269                     ;;
17270                   *.la)
17271                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17272                     ;;
17273                   *)
17274                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17275                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17276                     ;;
17277                 esac
17278               done
17279             fi
17280           else
17281                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17282             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17283           fi
17284         fi
17285       fi
17286     done
17287   done
17288   if test "X$rpathdirs" != "X"; then
17289     if test -n "$hardcode_libdir_separator"; then
17290                         alldirs=
17291       for found_dir in $rpathdirs; do
17292         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17293       done
17294             acl_save_libdir="$libdir"
17295       libdir="$alldirs"
17296       eval flag=\"$hardcode_libdir_flag_spec\"
17297       libdir="$acl_save_libdir"
17298       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17299     else
17300             for found_dir in $rpathdirs; do
17301         acl_save_libdir="$libdir"
17302         libdir="$found_dir"
17303         eval flag=\"$hardcode_libdir_flag_spec\"
17304         libdir="$acl_save_libdir"
17305         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17306       done
17307     fi
17308   fi
17309   if test "X$ltrpathdirs" != "X"; then
17310             for found_dir in $ltrpathdirs; do
17311       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17312     done
17313   fi
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17333 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17334 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17335   echo $ECHO_N "(cached) $ECHO_C" >&6
17336 else
17337   gt_save_CPPFLAGS="$CPPFLAGS"
17338      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17339      gt_save_LIBS="$LIBS"
17340      LIBS="$LIBS -framework CoreFoundation"
17341      cat >conftest.$ac_ext <<_ACEOF
17342 /* confdefs.h.  */
17343 _ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h.  */
17347 #include <CFPreferences.h>
17348 int
17349 main ()
17350 {
17351 CFPreferencesCopyAppValue(NULL, NULL)
17352   ;
17353   return 0;
17354 }
17355 _ACEOF
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (ac_try="$ac_link"
17358 case "(($ac_try" in
17359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360   *) ac_try_echo=$ac_try;;
17361 esac
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363   (eval "$ac_link") 2>conftest.er1
17364   ac_status=$?
17365   grep -v '^ *+' conftest.er1 >conftest.err
17366   rm -f conftest.er1
17367   cat conftest.err >&5
17368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369   (exit $ac_status); } && {
17370          test -z "$ac_c_werror_flag" ||
17371          test ! -s conftest.err
17372        } && test -s conftest$ac_exeext &&
17373        $as_test_x conftest$ac_exeext; then
17374   gt_cv_func_CFPreferencesCopyAppValue=yes
17375 else
17376   echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17378
17379         gt_cv_func_CFPreferencesCopyAppValue=no
17380 fi
17381
17382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17383       conftest$ac_exeext conftest.$ac_ext
17384      CPPFLAGS="$gt_save_CPPFLAGS"
17385      LIBS="$gt_save_LIBS"
17386 fi
17387 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17388 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17389   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17390
17391 cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17393 _ACEOF
17394
17395   fi
17396     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17397 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17398 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17399   echo $ECHO_N "(cached) $ECHO_C" >&6
17400 else
17401   gt_save_CPPFLAGS="$CPPFLAGS"
17402      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17403      gt_save_LIBS="$LIBS"
17404      LIBS="$LIBS -framework CoreFoundation"
17405      cat >conftest.$ac_ext <<_ACEOF
17406 /* confdefs.h.  */
17407 _ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h.  */
17411 #include <CFLocale.h>
17412 int
17413 main ()
17414 {
17415 CFLocaleCopyCurrent();
17416   ;
17417   return 0;
17418 }
17419 _ACEOF
17420 rm -f conftest.$ac_objext conftest$ac_exeext
17421 if { (ac_try="$ac_link"
17422 case "(($ac_try" in
17423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424   *) ac_try_echo=$ac_try;;
17425 esac
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427   (eval "$ac_link") 2>conftest.er1
17428   ac_status=$?
17429   grep -v '^ *+' conftest.er1 >conftest.err
17430   rm -f conftest.er1
17431   cat conftest.err >&5
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); } && {
17434          test -z "$ac_c_werror_flag" ||
17435          test ! -s conftest.err
17436        } && test -s conftest$ac_exeext &&
17437        $as_test_x conftest$ac_exeext; then
17438   gt_cv_func_CFLocaleCopyCurrent=yes
17439 else
17440   echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443         gt_cv_func_CFLocaleCopyCurrent=no
17444 fi
17445
17446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17447       conftest$ac_exeext conftest.$ac_ext
17448      CPPFLAGS="$gt_save_CPPFLAGS"
17449      LIBS="$gt_save_LIBS"
17450 fi
17451 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17452 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17453   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17454
17455 cat >>confdefs.h <<\_ACEOF
17456 #define HAVE_CFLOCALECOPYCURRENT 1
17457 _ACEOF
17458
17459   fi
17460   INTL_MACOSX_LIBS=
17461   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17462     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17463   fi
17464
17465
17466
17467
17468   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17469 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17470     # Check whether --enable-nls was given.
17471 if test "${enable_nls+set}" = set; then
17472   enableval=$enable_nls; USE_NLS=$enableval
17473 else
17474   USE_NLS=yes
17475 fi
17476
17477   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17478 echo "${ECHO_T}$USE_NLS" >&6; }
17479
17480
17481
17482
17483   LIBINTL=
17484   LTLIBINTL=
17485   POSUB=
17486
17487     if test "$USE_NLS" = "yes"; then
17488     gt_use_preinstalled_gnugettext=no
17489
17490
17491
17492
17493
17494
17495         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17496 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17497 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17498   echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500   cat >conftest.$ac_ext <<_ACEOF
17501 /* confdefs.h.  */
17502 _ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h.  */
17506 #include <libintl.h>
17507 extern int _nl_msg_cat_cntr;
17508 extern int *_nl_domain_bindings;
17509 int
17510 main ()
17511 {
17512 bindtextdomain ("", "");
17513 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17514   ;
17515   return 0;
17516 }
17517 _ACEOF
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (ac_try="$ac_link"
17520 case "(($ac_try" in
17521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522   *) ac_try_echo=$ac_try;;
17523 esac
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525   (eval "$ac_link") 2>conftest.er1
17526   ac_status=$?
17527   grep -v '^ *+' conftest.er1 >conftest.err
17528   rm -f conftest.er1
17529   cat conftest.err >&5
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); } && {
17532          test -z "$ac_c_werror_flag" ||
17533          test ! -s conftest.err
17534        } && test -s conftest$ac_exeext &&
17535        $as_test_x conftest$ac_exeext; then
17536   gt_cv_func_gnugettext1_libc=yes
17537 else
17538   echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17540
17541         gt_cv_func_gnugettext1_libc=no
17542 fi
17543
17544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17545       conftest$ac_exeext conftest.$ac_ext
17546 fi
17547 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17548 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17549
17550         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17551
17552
17553
17554
17555
17556           am_save_CPPFLAGS="$CPPFLAGS"
17557
17558   for element in $INCICONV; do
17559     haveit=
17560     for x in $CPPFLAGS; do
17561
17562   acl_save_prefix="$prefix"
17563   prefix="$acl_final_prefix"
17564   acl_save_exec_prefix="$exec_prefix"
17565   exec_prefix="$acl_final_exec_prefix"
17566   eval x=\"$x\"
17567   exec_prefix="$acl_save_exec_prefix"
17568   prefix="$acl_save_prefix"
17569
17570       if test "X$x" = "X$element"; then
17571         haveit=yes
17572         break
17573       fi
17574     done
17575     if test -z "$haveit"; then
17576       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17577     fi
17578   done
17579
17580
17581   { echo "$as_me:$LINENO: checking for iconv" >&5
17582 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17583 if test "${am_cv_func_iconv+set}" = set; then
17584   echo $ECHO_N "(cached) $ECHO_C" >&6
17585 else
17586
17587     am_cv_func_iconv="no, consider installing GNU libiconv"
17588     am_cv_lib_iconv=no
17589     cat >conftest.$ac_ext <<_ACEOF
17590 /* confdefs.h.  */
17591 _ACEOF
17592 cat confdefs.h >>conftest.$ac_ext
17593 cat >>conftest.$ac_ext <<_ACEOF
17594 /* end confdefs.h.  */
17595 #include <stdlib.h>
17596 #include <iconv.h>
17597 int
17598 main ()
17599 {
17600 iconv_t cd = iconv_open("","");
17601        iconv(cd,NULL,NULL,NULL,NULL);
17602        iconv_close(cd);
17603   ;
17604   return 0;
17605 }
17606 _ACEOF
17607 rm -f conftest.$ac_objext conftest$ac_exeext
17608 if { (ac_try="$ac_link"
17609 case "(($ac_try" in
17610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611   *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614   (eval "$ac_link") 2>conftest.er1
17615   ac_status=$?
17616   grep -v '^ *+' conftest.er1 >conftest.err
17617   rm -f conftest.er1
17618   cat conftest.err >&5
17619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620   (exit $ac_status); } && {
17621          test -z "$ac_c_werror_flag" ||
17622          test ! -s conftest.err
17623        } && test -s conftest$ac_exeext &&
17624        $as_test_x conftest$ac_exeext; then
17625   am_cv_func_iconv=yes
17626 else
17627   echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17629
17630
17631 fi
17632
17633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17634       conftest$ac_exeext conftest.$ac_ext
17635     if test "$am_cv_func_iconv" != yes; then
17636       am_save_LIBS="$LIBS"
17637       LIBS="$LIBS $LIBICONV"
17638       cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h.  */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h.  */
17644 #include <stdlib.h>
17645 #include <iconv.h>
17646 int
17647 main ()
17648 {
17649 iconv_t cd = iconv_open("","");
17650          iconv(cd,NULL,NULL,NULL,NULL);
17651          iconv_close(cd);
17652   ;
17653   return 0;
17654 }
17655 _ACEOF
17656 rm -f conftest.$ac_objext conftest$ac_exeext
17657 if { (ac_try="$ac_link"
17658 case "(($ac_try" in
17659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660   *) ac_try_echo=$ac_try;;
17661 esac
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663   (eval "$ac_link") 2>conftest.er1
17664   ac_status=$?
17665   grep -v '^ *+' conftest.er1 >conftest.err
17666   rm -f conftest.er1
17667   cat conftest.err >&5
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); } && {
17670          test -z "$ac_c_werror_flag" ||
17671          test ! -s conftest.err
17672        } && test -s conftest$ac_exeext &&
17673        $as_test_x conftest$ac_exeext; then
17674   am_cv_lib_iconv=yes
17675         am_cv_func_iconv=yes
17676 else
17677   echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17679
17680
17681 fi
17682
17683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17684       conftest$ac_exeext conftest.$ac_ext
17685       LIBS="$am_save_LIBS"
17686     fi
17687
17688 fi
17689 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17690 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17691   if test "$am_cv_func_iconv" = yes; then
17692
17693 cat >>confdefs.h <<\_ACEOF
17694 #define HAVE_ICONV 1
17695 _ACEOF
17696
17697   fi
17698   if test "$am_cv_lib_iconv" = yes; then
17699     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17700 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17701     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17702 echo "${ECHO_T}$LIBICONV" >&6; }
17703   else
17704             CPPFLAGS="$am_save_CPPFLAGS"
17705     LIBICONV=
17706     LTLIBICONV=
17707   fi
17708
17709
17710
17711
17712
17713
17714     use_additional=yes
17715
17716   acl_save_prefix="$prefix"
17717   prefix="$acl_final_prefix"
17718   acl_save_exec_prefix="$exec_prefix"
17719   exec_prefix="$acl_final_exec_prefix"
17720
17721     eval additional_includedir=\"$includedir\"
17722     eval additional_libdir=\"$libdir\"
17723
17724   exec_prefix="$acl_save_exec_prefix"
17725   prefix="$acl_save_prefix"
17726
17727
17728 # Check whether --with-libintl-prefix was given.
17729 if test "${with_libintl_prefix+set}" = set; then
17730   withval=$with_libintl_prefix;
17731     if test "X$withval" = "Xno"; then
17732       use_additional=no
17733     else
17734       if test "X$withval" = "X"; then
17735
17736   acl_save_prefix="$prefix"
17737   prefix="$acl_final_prefix"
17738   acl_save_exec_prefix="$exec_prefix"
17739   exec_prefix="$acl_final_exec_prefix"
17740
17741           eval additional_includedir=\"$includedir\"
17742           eval additional_libdir=\"$libdir\"
17743
17744   exec_prefix="$acl_save_exec_prefix"
17745   prefix="$acl_save_prefix"
17746
17747       else
17748         additional_includedir="$withval/include"
17749         additional_libdir="$withval/lib"
17750       fi
17751     fi
17752
17753 fi
17754
17755       LIBINTL=
17756   LTLIBINTL=
17757   INCINTL=
17758   rpathdirs=
17759   ltrpathdirs=
17760   names_already_handled=
17761   names_next_round='intl '
17762   while test -n "$names_next_round"; do
17763     names_this_round="$names_next_round"
17764     names_next_round=
17765     for name in $names_this_round; do
17766       already_handled=
17767       for n in $names_already_handled; do
17768         if test "$n" = "$name"; then
17769           already_handled=yes
17770           break
17771         fi
17772       done
17773       if test -z "$already_handled"; then
17774         names_already_handled="$names_already_handled $name"
17775                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17776         eval value=\"\$HAVE_LIB$uppername\"
17777         if test -n "$value"; then
17778           if test "$value" = yes; then
17779             eval value=\"\$LIB$uppername\"
17780             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17781             eval value=\"\$LTLIB$uppername\"
17782             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17783           else
17784                                     :
17785           fi
17786         else
17787                               found_dir=
17788           found_la=
17789           found_so=
17790           found_a=
17791           if test $use_additional = yes; then
17792             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17793               found_dir="$additional_libdir"
17794               found_so="$additional_libdir/lib$name.$shlibext"
17795               if test -f "$additional_libdir/lib$name.la"; then
17796                 found_la="$additional_libdir/lib$name.la"
17797               fi
17798             else
17799               if test -f "$additional_libdir/lib$name.$libext"; then
17800                 found_dir="$additional_libdir"
17801                 found_a="$additional_libdir/lib$name.$libext"
17802                 if test -f "$additional_libdir/lib$name.la"; then
17803                   found_la="$additional_libdir/lib$name.la"
17804                 fi
17805               fi
17806             fi
17807           fi
17808           if test "X$found_dir" = "X"; then
17809             for x in $LDFLAGS $LTLIBINTL; do
17810
17811   acl_save_prefix="$prefix"
17812   prefix="$acl_final_prefix"
17813   acl_save_exec_prefix="$exec_prefix"
17814   exec_prefix="$acl_final_exec_prefix"
17815   eval x=\"$x\"
17816   exec_prefix="$acl_save_exec_prefix"
17817   prefix="$acl_save_prefix"
17818
17819               case "$x" in
17820                 -L*)
17821                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17822                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17823                     found_dir="$dir"
17824                     found_so="$dir/lib$name.$shlibext"
17825                     if test -f "$dir/lib$name.la"; then
17826                       found_la="$dir/lib$name.la"
17827                     fi
17828                   else
17829                     if test -f "$dir/lib$name.$libext"; then
17830                       found_dir="$dir"
17831                       found_a="$dir/lib$name.$libext"
17832                       if test -f "$dir/lib$name.la"; then
17833                         found_la="$dir/lib$name.la"
17834                       fi
17835                     fi
17836                   fi
17837                   ;;
17838               esac
17839               if test "X$found_dir" != "X"; then
17840                 break
17841               fi
17842             done
17843           fi
17844           if test "X$found_dir" != "X"; then
17845                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17846             if test "X$found_so" != "X"; then
17847                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17848                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17849               else
17850                                                                                 haveit=
17851                 for x in $ltrpathdirs; do
17852                   if test "X$x" = "X$found_dir"; then
17853                     haveit=yes
17854                     break
17855                   fi
17856                 done
17857                 if test -z "$haveit"; then
17858                   ltrpathdirs="$ltrpathdirs $found_dir"
17859                 fi
17860                                 if test "$hardcode_direct" = yes; then
17861                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17862                 else
17863                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17864                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17865                                                             haveit=
17866                     for x in $rpathdirs; do
17867                       if test "X$x" = "X$found_dir"; then
17868                         haveit=yes
17869                         break
17870                       fi
17871                     done
17872                     if test -z "$haveit"; then
17873                       rpathdirs="$rpathdirs $found_dir"
17874                     fi
17875                   else
17876                                                                                 haveit=
17877                     for x in $LDFLAGS $LIBINTL; do
17878
17879   acl_save_prefix="$prefix"
17880   prefix="$acl_final_prefix"
17881   acl_save_exec_prefix="$exec_prefix"
17882   exec_prefix="$acl_final_exec_prefix"
17883   eval x=\"$x\"
17884   exec_prefix="$acl_save_exec_prefix"
17885   prefix="$acl_save_prefix"
17886
17887                       if test "X$x" = "X-L$found_dir"; then
17888                         haveit=yes
17889                         break
17890                       fi
17891                     done
17892                     if test -z "$haveit"; then
17893                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17894                     fi
17895                     if test "$hardcode_minus_L" != no; then
17896                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17897                     else
17898                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17899                     fi
17900                   fi
17901                 fi
17902               fi
17903             else
17904               if test "X$found_a" != "X"; then
17905                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17906               else
17907                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17908               fi
17909             fi
17910                         additional_includedir=
17911             case "$found_dir" in
17912               */lib | */lib/)
17913                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17914                 additional_includedir="$basedir/include"
17915                 ;;
17916             esac
17917             if test "X$additional_includedir" != "X"; then
17918                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17919                 haveit=
17920                 if test "X$additional_includedir" = "X/usr/local/include"; then
17921                   if test -n "$GCC"; then
17922                     case $host_os in
17923                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17924                     esac
17925                   fi
17926                 fi
17927                 if test -z "$haveit"; then
17928                   for x in $CPPFLAGS $INCINTL; do
17929
17930   acl_save_prefix="$prefix"
17931   prefix="$acl_final_prefix"
17932   acl_save_exec_prefix="$exec_prefix"
17933   exec_prefix="$acl_final_exec_prefix"
17934   eval x=\"$x\"
17935   exec_prefix="$acl_save_exec_prefix"
17936   prefix="$acl_save_prefix"
17937
17938                     if test "X$x" = "X-I$additional_includedir"; then
17939                       haveit=yes
17940                       break
17941                     fi
17942                   done
17943                   if test -z "$haveit"; then
17944                     if test -d "$additional_includedir"; then
17945                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17946                     fi
17947                   fi
17948                 fi
17949               fi
17950             fi
17951                         if test -n "$found_la"; then
17952                                                         save_libdir="$libdir"
17953               case "$found_la" in
17954                 */* | *\\*) . "$found_la" ;;
17955                 *) . "./$found_la" ;;
17956               esac
17957               libdir="$save_libdir"
17958                             for dep in $dependency_libs; do
17959                 case "$dep" in
17960                   -L*)
17961                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17962                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17963                       haveit=
17964                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17965                         if test -n "$GCC"; then
17966                           case $host_os in
17967                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17968                           esac
17969                         fi
17970                       fi
17971                       if test -z "$haveit"; then
17972                         haveit=
17973                         for x in $LDFLAGS $LIBINTL; do
17974
17975   acl_save_prefix="$prefix"
17976   prefix="$acl_final_prefix"
17977   acl_save_exec_prefix="$exec_prefix"
17978   exec_prefix="$acl_final_exec_prefix"
17979   eval x=\"$x\"
17980   exec_prefix="$acl_save_exec_prefix"
17981   prefix="$acl_save_prefix"
17982
17983                           if test "X$x" = "X-L$additional_libdir"; then
17984                             haveit=yes
17985                             break
17986                           fi
17987                         done
17988                         if test -z "$haveit"; then
17989                           if test -d "$additional_libdir"; then
17990                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17991                           fi
17992                         fi
17993                         haveit=
17994                         for x in $LDFLAGS $LTLIBINTL; do
17995
17996   acl_save_prefix="$prefix"
17997   prefix="$acl_final_prefix"
17998   acl_save_exec_prefix="$exec_prefix"
17999   exec_prefix="$acl_final_exec_prefix"
18000   eval x=\"$x\"
18001   exec_prefix="$acl_save_exec_prefix"
18002   prefix="$acl_save_prefix"
18003
18004                           if test "X$x" = "X-L$additional_libdir"; then
18005                             haveit=yes
18006                             break
18007                           fi
18008                         done
18009                         if test -z "$haveit"; then
18010                           if test -d "$additional_libdir"; then
18011                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18012                           fi
18013                         fi
18014                       fi
18015                     fi
18016                     ;;
18017                   -R*)
18018                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18019                     if test "$enable_rpath" != no; then
18020                                                                   haveit=
18021                       for x in $rpathdirs; do
18022                         if test "X$x" = "X$dir"; then
18023                           haveit=yes
18024                           break
18025                         fi
18026                       done
18027                       if test -z "$haveit"; then
18028                         rpathdirs="$rpathdirs $dir"
18029                       fi
18030                                                                   haveit=
18031                       for x in $ltrpathdirs; do
18032                         if test "X$x" = "X$dir"; then
18033                           haveit=yes
18034                           break
18035                         fi
18036                       done
18037                       if test -z "$haveit"; then
18038                         ltrpathdirs="$ltrpathdirs $dir"
18039                       fi
18040                     fi
18041                     ;;
18042                   -l*)
18043                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18044                     ;;
18045                   *.la)
18046                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18047                     ;;
18048                   *)
18049                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18050                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18051                     ;;
18052                 esac
18053               done
18054             fi
18055           else
18056                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18057             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18058           fi
18059         fi
18060       fi
18061     done
18062   done
18063   if test "X$rpathdirs" != "X"; then
18064     if test -n "$hardcode_libdir_separator"; then
18065                         alldirs=
18066       for found_dir in $rpathdirs; do
18067         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18068       done
18069             acl_save_libdir="$libdir"
18070       libdir="$alldirs"
18071       eval flag=\"$hardcode_libdir_flag_spec\"
18072       libdir="$acl_save_libdir"
18073       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18074     else
18075             for found_dir in $rpathdirs; do
18076         acl_save_libdir="$libdir"
18077         libdir="$found_dir"
18078         eval flag=\"$hardcode_libdir_flag_spec\"
18079         libdir="$acl_save_libdir"
18080         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18081       done
18082     fi
18083   fi
18084   if test "X$ltrpathdirs" != "X"; then
18085             for found_dir in $ltrpathdirs; do
18086       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18087     done
18088   fi
18089
18090           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18091 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18092 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18093   echo $ECHO_N "(cached) $ECHO_C" >&6
18094 else
18095   gt_save_CPPFLAGS="$CPPFLAGS"
18096             CPPFLAGS="$CPPFLAGS $INCINTL"
18097             gt_save_LIBS="$LIBS"
18098             LIBS="$LIBS $LIBINTL"
18099                         cat >conftest.$ac_ext <<_ACEOF
18100 /* confdefs.h.  */
18101 _ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h.  */
18105 #include <libintl.h>
18106 extern int _nl_msg_cat_cntr;
18107 extern
18108 #ifdef __cplusplus
18109 "C"
18110 #endif
18111 const char *_nl_expand_alias (const char *);
18112 int
18113 main ()
18114 {
18115 bindtextdomain ("", "");
18116 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18117   ;
18118   return 0;
18119 }
18120 _ACEOF
18121 rm -f conftest.$ac_objext conftest$ac_exeext
18122 if { (ac_try="$ac_link"
18123 case "(($ac_try" in
18124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125   *) ac_try_echo=$ac_try;;
18126 esac
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128   (eval "$ac_link") 2>conftest.er1
18129   ac_status=$?
18130   grep -v '^ *+' conftest.er1 >conftest.err
18131   rm -f conftest.er1
18132   cat conftest.err >&5
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); } && {
18135          test -z "$ac_c_werror_flag" ||
18136          test ! -s conftest.err
18137        } && test -s conftest$ac_exeext &&
18138        $as_test_x conftest$ac_exeext; then
18139   gt_cv_func_gnugettext1_libintl=yes
18140 else
18141   echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18143
18144         gt_cv_func_gnugettext1_libintl=no
18145 fi
18146
18147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18148       conftest$ac_exeext conftest.$ac_ext
18149                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18150               LIBS="$LIBS $LIBICONV"
18151               cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h.  */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h.  */
18157 #include <libintl.h>
18158 extern int _nl_msg_cat_cntr;
18159 extern
18160 #ifdef __cplusplus
18161 "C"
18162 #endif
18163 const char *_nl_expand_alias (const char *);
18164 int
18165 main ()
18166 {
18167 bindtextdomain ("", "");
18168 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173 rm -f conftest.$ac_objext conftest$ac_exeext
18174 if { (ac_try="$ac_link"
18175 case "(($ac_try" in
18176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177   *) ac_try_echo=$ac_try;;
18178 esac
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180   (eval "$ac_link") 2>conftest.er1
18181   ac_status=$?
18182   grep -v '^ *+' conftest.er1 >conftest.err
18183   rm -f conftest.er1
18184   cat conftest.err >&5
18185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186   (exit $ac_status); } && {
18187          test -z "$ac_c_werror_flag" ||
18188          test ! -s conftest.err
18189        } && test -s conftest$ac_exeext &&
18190        $as_test_x conftest$ac_exeext; then
18191   LIBINTL="$LIBINTL $LIBICONV"
18192                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18193                 gt_cv_func_gnugettext1_libintl=yes
18194
18195 else
18196   echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18198
18199
18200 fi
18201
18202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18203       conftest$ac_exeext conftest.$ac_ext
18204             fi
18205             CPPFLAGS="$gt_save_CPPFLAGS"
18206             LIBS="$gt_save_LIBS"
18207 fi
18208 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18209 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18210         fi
18211
18212                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18213            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18214                 && test "$PACKAGE" != gettext-runtime \
18215                 && test "$PACKAGE" != gettext-tools; }; then
18216           gt_use_preinstalled_gnugettext=yes
18217         else
18218                     LIBINTL=
18219           LTLIBINTL=
18220           INCINTL=
18221         fi
18222
18223
18224
18225     if test -n "$INTL_MACOSX_LIBS"; then
18226       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18227          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18228                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18229         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18230       fi
18231     fi
18232
18233     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18234        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18235
18236 cat >>confdefs.h <<\_ACEOF
18237 #define ENABLE_NLS 1
18238 _ACEOF
18239
18240     else
18241       USE_NLS=no
18242     fi
18243   fi
18244
18245   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18246 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18247   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18248 echo "${ECHO_T}$USE_NLS" >&6; }
18249   if test "$USE_NLS" = "yes"; then
18250     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18251 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18252     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18253       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18254         gt_source="external libintl"
18255       else
18256         gt_source="libc"
18257       fi
18258     else
18259       gt_source="included intl directory"
18260     fi
18261     { echo "$as_me:$LINENO: result: $gt_source" >&5
18262 echo "${ECHO_T}$gt_source" >&6; }
18263   fi
18264
18265   if test "$USE_NLS" = "yes"; then
18266
18267     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18268       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18269         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18270 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18271         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18272 echo "${ECHO_T}$LIBINTL" >&6; }
18273
18274   for element in $INCINTL; do
18275     haveit=
18276     for x in $CPPFLAGS; do
18277
18278   acl_save_prefix="$prefix"
18279   prefix="$acl_final_prefix"
18280   acl_save_exec_prefix="$exec_prefix"
18281   exec_prefix="$acl_final_exec_prefix"
18282   eval x=\"$x\"
18283   exec_prefix="$acl_save_exec_prefix"
18284   prefix="$acl_save_prefix"
18285
18286       if test "X$x" = "X$element"; then
18287         haveit=yes
18288         break
18289       fi
18290     done
18291     if test -z "$haveit"; then
18292       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18293     fi
18294   done
18295
18296       fi
18297
18298
18299 cat >>confdefs.h <<\_ACEOF
18300 #define HAVE_GETTEXT 1
18301 _ACEOF
18302
18303
18304 cat >>confdefs.h <<\_ACEOF
18305 #define HAVE_DCGETTEXT 1
18306 _ACEOF
18307
18308     fi
18309
18310         POSUB=po
18311   fi
18312
18313
18314
18315     INTLLIBS="$LIBINTL"
18316
18317
18318
18319
18320
18321
18322
18323 os_name=`uname -s 2>/dev/null`
18324 if test x${prefix} = xNONE ; then
18325    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18326       sysconfdir=/etc/bacula
18327    fi
18328
18329    if test `eval echo ${libdir}` = NONE/lib ; then
18330       case ${os_name} in
18331       Linux)
18332          os_processor=`uname -p 2>/dev/null`
18333          case ${os_processor} in
18334          x86_64)
18335             libdir=/usr/lib64
18336             ;;
18337          *)
18338             libdir=/usr/lib
18339             ;;
18340          esac
18341          ;;
18342       *)
18343          libdir=/usr/lib
18344          ;;
18345       esac
18346    fi
18347
18348    if test `eval echo ${includedir}` = NONE/include ; then
18349       includedir=/usr/include
18350    fi
18351
18352    if test `eval echo ${datarootdir}` = NONE/share ; then
18353       datarootdir=/usr/share
18354    fi
18355    prefix=
18356 fi
18357
18358 if test x${exec_prefix} = xNONE ; then
18359    exec_prefix=${prefix}
18360 fi
18361
18362 sysconfdir=`eval echo ${sysconfdir}`
18363 datarootdir=`eval echo ${datarootdir}`
18364 docdir=`eval echo ${docdir}`
18365 htmldir=`eval echo ${htmldir}`
18366 libdir=`eval echo ${libdir}`
18367 includedir=`eval echo ${includedir}`
18368 localedir=`eval echo ${datarootdir}/locale`
18369 cat >>confdefs.h <<_ACEOF
18370 #define SYSCONFDIR "$sysconfdir"
18371 _ACEOF
18372
18373 cat >>confdefs.h <<_ACEOF
18374 #define LOCALEDIR "$localedir"
18375 _ACEOF
18376
18377
18378 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18379    sbindir=${exec_prefix}/sbin
18380 fi
18381 sbindir=`eval echo ${sbindir}`
18382
18383 if test x$mandir = x'${prefix}/man' ; then
18384    mandir=/usr/share/man
18385 fi
18386
18387 if test x$htmldir = x${docdir} ; then
18388    htmldir=`eval echo ${docdir}bacula/html`
18389 fi
18390
18391 if test x$docdir = x'/usr/share/doc/' ; then
18392    docdir=`eval echo ${docdir}bacula`
18393 fi
18394
18395
18396 for ac_prog in msgfmt
18397 do
18398   # Extract the first word of "$ac_prog", so it can be a program name with args.
18399 set dummy $ac_prog; ac_word=$2
18400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18402 if test "${ac_cv_path_MSGFMT+set}" = set; then
18403   echo $ECHO_N "(cached) $ECHO_C" >&6
18404 else
18405   case $MSGFMT in
18406   [\\/]* | ?:[\\/]*)
18407   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18408   ;;
18409   *)
18410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18411 for as_dir in $PATH
18412 do
18413   IFS=$as_save_IFS
18414   test -z "$as_dir" && as_dir=.
18415   for ac_exec_ext in '' $ac_executable_extensions; do
18416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18417     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18419     break 2
18420   fi
18421 done
18422 done
18423 IFS=$as_save_IFS
18424
18425   ;;
18426 esac
18427 fi
18428 MSGFMT=$ac_cv_path_MSGFMT
18429 if test -n "$MSGFMT"; then
18430   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18431 echo "${ECHO_T}$MSGFMT" >&6; }
18432 else
18433   { echo "$as_me:$LINENO: result: no" >&5
18434 echo "${ECHO_T}no" >&6; }
18435 fi
18436
18437
18438   test -n "$MSGFMT" && break
18439 done
18440 test -n "$MSGFMT" || MSGFMT="no"
18441
18442 if test "$MSGFMT" = "no"
18443 then
18444    echo 'msgfmt program not found, disabling NLS !'
18445    USE_NLS=no
18446    USE_INCLUDED_LIBINTL=no
18447 #else
18448
18449     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18450 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18451 if test "${ac_cv_gnu_library_2+set}" = set; then
18452   echo $ECHO_N "(cached) $ECHO_C" >&6
18453 else
18454   cat >conftest.$ac_ext <<_ACEOF
18455 /* confdefs.h.  */
18456 _ACEOF
18457 cat confdefs.h >>conftest.$ac_ext
18458 cat >>conftest.$ac_ext <<_ACEOF
18459 /* end confdefs.h.  */
18460
18461 #include <features.h>
18462 #ifdef __GNU_LIBRARY__
18463  #if (__GLIBC__ >= 2)
18464   Lucky GNU user
18465  #endif
18466 #endif
18467
18468 _ACEOF
18469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18470   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18471   ac_cv_gnu_library_2=yes
18472 else
18473   ac_cv_gnu_library_2=no
18474 fi
18475 rm -f conftest*
18476
18477
18478
18479 fi
18480 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18481 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18482
18483     GLIBC2="$ac_cv_gnu_library_2"
18484
18485
18486 if test -n "$ac_tool_prefix"; then
18487   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18488 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18491 if test "${ac_cv_prog_RANLIB+set}" = set; then
18492   echo $ECHO_N "(cached) $ECHO_C" >&6
18493 else
18494   if test -n "$RANLIB"; then
18495   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18496 else
18497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18498 for as_dir in $PATH
18499 do
18500   IFS=$as_save_IFS
18501   test -z "$as_dir" && as_dir=.
18502   for ac_exec_ext in '' $ac_executable_extensions; do
18503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18504     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18506     break 2
18507   fi
18508 done
18509 done
18510 IFS=$as_save_IFS
18511
18512 fi
18513 fi
18514 RANLIB=$ac_cv_prog_RANLIB
18515 if test -n "$RANLIB"; then
18516   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18517 echo "${ECHO_T}$RANLIB" >&6; }
18518 else
18519   { echo "$as_me:$LINENO: result: no" >&5
18520 echo "${ECHO_T}no" >&6; }
18521 fi
18522
18523
18524 fi
18525 if test -z "$ac_cv_prog_RANLIB"; then
18526   ac_ct_RANLIB=$RANLIB
18527   # Extract the first word of "ranlib", so it can be a program name with args.
18528 set dummy ranlib; ac_word=$2
18529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18531 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18532   echo $ECHO_N "(cached) $ECHO_C" >&6
18533 else
18534   if test -n "$ac_ct_RANLIB"; then
18535   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18536 else
18537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18538 for as_dir in $PATH
18539 do
18540   IFS=$as_save_IFS
18541   test -z "$as_dir" && as_dir=.
18542   for ac_exec_ext in '' $ac_executable_extensions; do
18543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18544     ac_cv_prog_ac_ct_RANLIB="ranlib"
18545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18546     break 2
18547   fi
18548 done
18549 done
18550 IFS=$as_save_IFS
18551
18552 fi
18553 fi
18554 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18555 if test -n "$ac_ct_RANLIB"; then
18556   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18557 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18558 else
18559   { echo "$as_me:$LINENO: result: no" >&5
18560 echo "${ECHO_T}no" >&6; }
18561 fi
18562
18563   if test "x$ac_ct_RANLIB" = x; then
18564     RANLIB=":"
18565   else
18566     case $cross_compiling:$ac_tool_warned in
18567 yes:)
18568 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18569 whose name does not start with the host triplet.  If you think this
18570 configuration is useful to you, please write to autoconf@gnu.org." >&5
18571 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18572 whose name does not start with the host triplet.  If you think this
18573 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18574 ac_tool_warned=yes ;;
18575 esac
18576     RANLIB=$ac_ct_RANLIB
18577   fi
18578 else
18579   RANLIB="$ac_cv_prog_RANLIB"
18580 fi
18581
18582
18583         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18584 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18585 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18586   echo $ECHO_N "(cached) $ECHO_C" >&6
18587 else
18588   ac_check_lib_save_LIBS=$LIBS
18589 LIBS="-lcposix  $LIBS"
18590 cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h.  */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h.  */
18596
18597 /* Override any GCC internal prototype to avoid an error.
18598    Use char because int might match the return type of a GCC
18599    builtin and then its argument prototype would still apply.  */
18600 #ifdef __cplusplus
18601 extern "C"
18602 #endif
18603 char strerror ();
18604 int
18605 main ()
18606 {
18607 return strerror ();
18608   ;
18609   return 0;
18610 }
18611 _ACEOF
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616   *) ac_try_echo=$ac_try;;
18617 esac
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619   (eval "$ac_link") 2>conftest.er1
18620   ac_status=$?
18621   grep -v '^ *+' conftest.er1 >conftest.err
18622   rm -f conftest.er1
18623   cat conftest.err >&5
18624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625   (exit $ac_status); } && {
18626          test -z "$ac_c_werror_flag" ||
18627          test ! -s conftest.err
18628        } && test -s conftest$ac_exeext &&
18629        $as_test_x conftest$ac_exeext; then
18630   ac_cv_lib_cposix_strerror=yes
18631 else
18632   echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18634
18635         ac_cv_lib_cposix_strerror=no
18636 fi
18637
18638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18639       conftest$ac_exeext conftest.$ac_ext
18640 LIBS=$ac_check_lib_save_LIBS
18641 fi
18642 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18643 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18644 if test $ac_cv_lib_cposix_strerror = yes; then
18645   LIBS="$LIBS -lcposix"
18646 fi
18647
18648
18649
18650 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18651 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18652 if test "${ac_cv_c_const+set}" = set; then
18653   echo $ECHO_N "(cached) $ECHO_C" >&6
18654 else
18655   cat >conftest.$ac_ext <<_ACEOF
18656 /* confdefs.h.  */
18657 _ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h.  */
18661
18662 int
18663 main ()
18664 {
18665 /* FIXME: Include the comments suggested by Paul. */
18666 #ifndef __cplusplus
18667   /* Ultrix mips cc rejects this.  */
18668   typedef int charset[2];
18669   const charset cs;
18670   /* SunOS 4.1.1 cc rejects this.  */
18671   char const *const *pcpcc;
18672   char **ppc;
18673   /* NEC SVR4.0.2 mips cc rejects this.  */
18674   struct point {int x, y;};
18675   static struct point const zero = {0,0};
18676   /* AIX XL C 1.02.0.0 rejects this.
18677      It does not let you subtract one const X* pointer from another in
18678      an arm of an if-expression whose if-part is not a constant
18679      expression */
18680   const char *g = "string";
18681   pcpcc = &g + (g ? g-g : 0);
18682   /* HPUX 7.0 cc rejects these. */
18683   ++pcpcc;
18684   ppc = (char**) pcpcc;
18685   pcpcc = (char const *const *) ppc;
18686   { /* SCO 3.2v4 cc rejects this.  */
18687     char *t;
18688     char const *s = 0 ? (char *) 0 : (char const *) 0;
18689
18690     *t++ = 0;
18691     if (s) return 0;
18692   }
18693   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18694     int x[] = {25, 17};
18695     const int *foo = &x[0];
18696     ++foo;
18697   }
18698   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18699     typedef const int *iptr;
18700     iptr p = 0;
18701     ++p;
18702   }
18703   { /* AIX XL C 1.02.0.0 rejects this saying
18704        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18705     struct s { int j; const int *ap[3]; };
18706     struct s *b; b->j = 5;
18707   }
18708   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18709     const int foo = 10;
18710     if (!foo) return 0;
18711   }
18712   return !cs[0] && !zero.x;
18713 #endif
18714
18715   ;
18716   return 0;
18717 }
18718 _ACEOF
18719 rm -f conftest.$ac_objext
18720 if { (ac_try="$ac_compile"
18721 case "(($ac_try" in
18722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18723   *) ac_try_echo=$ac_try;;
18724 esac
18725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18726   (eval "$ac_compile") 2>conftest.er1
18727   ac_status=$?
18728   grep -v '^ *+' conftest.er1 >conftest.err
18729   rm -f conftest.er1
18730   cat conftest.err >&5
18731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732   (exit $ac_status); } && {
18733          test -z "$ac_c_werror_flag" ||
18734          test ! -s conftest.err
18735        } && test -s conftest.$ac_objext; then
18736   ac_cv_c_const=yes
18737 else
18738   echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18740
18741         ac_cv_c_const=no
18742 fi
18743
18744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18745 fi
18746 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18747 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18748 if test $ac_cv_c_const = no; then
18749
18750 cat >>confdefs.h <<\_ACEOF
18751 #define const
18752 _ACEOF
18753
18754 fi
18755
18756
18757   { echo "$as_me:$LINENO: checking for signed" >&5
18758 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18759 if test "${bh_cv_c_signed+set}" = set; then
18760   echo $ECHO_N "(cached) $ECHO_C" >&6
18761 else
18762   cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h.  */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h.  */
18768
18769 int
18770 main ()
18771 {
18772 signed char x;
18773   ;
18774   return 0;
18775 }
18776 _ACEOF
18777 rm -f conftest.$ac_objext
18778 if { (ac_try="$ac_compile"
18779 case "(($ac_try" in
18780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781   *) ac_try_echo=$ac_try;;
18782 esac
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784   (eval "$ac_compile") 2>conftest.er1
18785   ac_status=$?
18786   grep -v '^ *+' conftest.er1 >conftest.err
18787   rm -f conftest.er1
18788   cat conftest.err >&5
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); } && {
18791          test -z "$ac_c_werror_flag" ||
18792          test ! -s conftest.err
18793        } && test -s conftest.$ac_objext; then
18794   bh_cv_c_signed=yes
18795 else
18796   echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.$ac_ext >&5
18798
18799         bh_cv_c_signed=no
18800 fi
18801
18802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18803 fi
18804 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18805 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18806   if test $bh_cv_c_signed = no; then
18807
18808 cat >>confdefs.h <<\_ACEOF
18809 #define signed
18810 _ACEOF
18811
18812   fi
18813
18814 { echo "$as_me:$LINENO: checking for inline" >&5
18815 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18816 if test "${ac_cv_c_inline+set}" = set; then
18817   echo $ECHO_N "(cached) $ECHO_C" >&6
18818 else
18819   ac_cv_c_inline=no
18820 for ac_kw in inline __inline__ __inline; do
18821   cat >conftest.$ac_ext <<_ACEOF
18822 /* confdefs.h.  */
18823 _ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h.  */
18827 #ifndef __cplusplus
18828 typedef int foo_t;
18829 static $ac_kw foo_t static_foo () {return 0; }
18830 $ac_kw foo_t foo () {return 0; }
18831 #endif
18832
18833 _ACEOF
18834 rm -f conftest.$ac_objext
18835 if { (ac_try="$ac_compile"
18836 case "(($ac_try" in
18837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838   *) ac_try_echo=$ac_try;;
18839 esac
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841   (eval "$ac_compile") 2>conftest.er1
18842   ac_status=$?
18843   grep -v '^ *+' conftest.er1 >conftest.err
18844   rm -f conftest.er1
18845   cat conftest.err >&5
18846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847   (exit $ac_status); } && {
18848          test -z "$ac_c_werror_flag" ||
18849          test ! -s conftest.err
18850        } && test -s conftest.$ac_objext; then
18851   ac_cv_c_inline=$ac_kw
18852 else
18853   echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18855
18856
18857 fi
18858
18859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18860   test "$ac_cv_c_inline" != no && break
18861 done
18862
18863 fi
18864 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18865 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18866
18867
18868 case $ac_cv_c_inline in
18869   inline | yes) ;;
18870   *)
18871     case $ac_cv_c_inline in
18872       no) ac_val=;;
18873       *) ac_val=$ac_cv_c_inline;;
18874     esac
18875     cat >>confdefs.h <<_ACEOF
18876 #ifndef __cplusplus
18877 #define inline $ac_val
18878 #endif
18879 _ACEOF
18880     ;;
18881 esac
18882
18883 { echo "$as_me:$LINENO: checking for off_t" >&5
18884 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18885 if test "${ac_cv_type_off_t+set}" = set; then
18886   echo $ECHO_N "(cached) $ECHO_C" >&6
18887 else
18888   cat >conftest.$ac_ext <<_ACEOF
18889 /* confdefs.h.  */
18890 _ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h.  */
18894 $ac_includes_default
18895 typedef off_t ac__type_new_;
18896 int
18897 main ()
18898 {
18899 if ((ac__type_new_ *) 0)
18900   return 0;
18901 if (sizeof (ac__type_new_))
18902   return 0;
18903   ;
18904   return 0;
18905 }
18906 _ACEOF
18907 rm -f conftest.$ac_objext
18908 if { (ac_try="$ac_compile"
18909 case "(($ac_try" in
18910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911   *) ac_try_echo=$ac_try;;
18912 esac
18913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914   (eval "$ac_compile") 2>conftest.er1
18915   ac_status=$?
18916   grep -v '^ *+' conftest.er1 >conftest.err
18917   rm -f conftest.er1
18918   cat conftest.err >&5
18919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); } && {
18921          test -z "$ac_c_werror_flag" ||
18922          test ! -s conftest.err
18923        } && test -s conftest.$ac_objext; then
18924   ac_cv_type_off_t=yes
18925 else
18926   echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18928
18929         ac_cv_type_off_t=no
18930 fi
18931
18932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18933 fi
18934 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18935 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18936 if test $ac_cv_type_off_t = yes; then
18937   :
18938 else
18939
18940 cat >>confdefs.h <<_ACEOF
18941 #define off_t long int
18942 _ACEOF
18943
18944 fi
18945
18946 { echo "$as_me:$LINENO: checking for size_t" >&5
18947 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18948 if test "${ac_cv_type_size_t+set}" = set; then
18949   echo $ECHO_N "(cached) $ECHO_C" >&6
18950 else
18951   cat >conftest.$ac_ext <<_ACEOF
18952 /* confdefs.h.  */
18953 _ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h.  */
18957 $ac_includes_default
18958 typedef size_t ac__type_new_;
18959 int
18960 main ()
18961 {
18962 if ((ac__type_new_ *) 0)
18963   return 0;
18964 if (sizeof (ac__type_new_))
18965   return 0;
18966   ;
18967   return 0;
18968 }
18969 _ACEOF
18970 rm -f conftest.$ac_objext
18971 if { (ac_try="$ac_compile"
18972 case "(($ac_try" in
18973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974   *) ac_try_echo=$ac_try;;
18975 esac
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977   (eval "$ac_compile") 2>conftest.er1
18978   ac_status=$?
18979   grep -v '^ *+' conftest.er1 >conftest.err
18980   rm -f conftest.er1
18981   cat conftest.err >&5
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); } && {
18984          test -z "$ac_c_werror_flag" ||
18985          test ! -s conftest.err
18986        } && test -s conftest.$ac_objext; then
18987   ac_cv_type_size_t=yes
18988 else
18989   echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18991
18992         ac_cv_type_size_t=no
18993 fi
18994
18995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18996 fi
18997 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18998 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18999 if test $ac_cv_type_size_t = yes; then
19000   :
19001 else
19002
19003 cat >>confdefs.h <<_ACEOF
19004 #define size_t unsigned int
19005 _ACEOF
19006
19007 fi
19008
19009
19010   { echo "$as_me:$LINENO: checking for long long" >&5
19011 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19012 if test "${ac_cv_type_long_long+set}" = set; then
19013   echo $ECHO_N "(cached) $ECHO_C" >&6
19014 else
19015   cat >conftest.$ac_ext <<_ACEOF
19016 /* confdefs.h.  */
19017 _ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h.  */
19021 long long ll = 1LL; int i = 63;
19022 int
19023 main ()
19024 {
19025 long long llmax = (long long) -1;
19026      return ll << i | ll >> i | llmax / ll | llmax % ll;
19027   ;
19028   return 0;
19029 }
19030 _ACEOF
19031 rm -f conftest.$ac_objext conftest$ac_exeext
19032 if { (ac_try="$ac_link"
19033 case "(($ac_try" in
19034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035   *) ac_try_echo=$ac_try;;
19036 esac
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038   (eval "$ac_link") 2>conftest.er1
19039   ac_status=$?
19040   grep -v '^ *+' conftest.er1 >conftest.err
19041   rm -f conftest.er1
19042   cat conftest.err >&5
19043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); } && {
19045          test -z "$ac_c_werror_flag" ||
19046          test ! -s conftest.err
19047        } && test -s conftest$ac_exeext &&
19048        $as_test_x conftest$ac_exeext; then
19049   ac_cv_type_long_long=yes
19050 else
19051   echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19053
19054         ac_cv_type_long_long=no
19055 fi
19056
19057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19058       conftest$ac_exeext conftest.$ac_ext
19059 fi
19060 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19061 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19062   if test $ac_cv_type_long_long = yes; then
19063
19064 cat >>confdefs.h <<\_ACEOF
19065 #define HAVE_LONG_LONG 1
19066 _ACEOF
19067
19068   fi
19069
19070
19071   { echo "$as_me:$LINENO: checking for long double" >&5
19072 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19073 if test "${gt_cv_c_long_double+set}" = set; then
19074   echo $ECHO_N "(cached) $ECHO_C" >&6
19075 else
19076   if test "$GCC" = yes; then
19077        gt_cv_c_long_double=yes
19078      else
19079        cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h.  */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h.  */
19085
19086          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19087          long double foo = 0.0;
19088          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19089          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19090
19091 int
19092 main ()
19093 {
19094
19095   ;
19096   return 0;
19097 }
19098 _ACEOF
19099 rm -f conftest.$ac_objext
19100 if { (ac_try="$ac_compile"
19101 case "(($ac_try" in
19102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103   *) ac_try_echo=$ac_try;;
19104 esac
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106   (eval "$ac_compile") 2>conftest.er1
19107   ac_status=$?
19108   grep -v '^ *+' conftest.er1 >conftest.err
19109   rm -f conftest.er1
19110   cat conftest.err >&5
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); } && {
19113          test -z "$ac_c_werror_flag" ||
19114          test ! -s conftest.err
19115        } && test -s conftest.$ac_objext; then
19116   gt_cv_c_long_double=yes
19117 else
19118   echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121         gt_cv_c_long_double=no
19122 fi
19123
19124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19125      fi
19126 fi
19127 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19128 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19129   if test $gt_cv_c_long_double = yes; then
19130
19131 cat >>confdefs.h <<\_ACEOF
19132 #define HAVE_LONG_DOUBLE 1
19133 _ACEOF
19134
19135   fi
19136
19137
19138   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19139 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19140 if test "${gt_cv_c_wchar_t+set}" = set; then
19141   echo $ECHO_N "(cached) $ECHO_C" >&6
19142 else
19143   cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h.  */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h.  */
19149 #include <stddef.h>
19150        wchar_t foo = (wchar_t)'\0';
19151 int
19152 main ()
19153 {
19154
19155   ;
19156   return 0;
19157 }
19158 _ACEOF
19159 rm -f conftest.$ac_objext
19160 if { (ac_try="$ac_compile"
19161 case "(($ac_try" in
19162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163   *) ac_try_echo=$ac_try;;
19164 esac
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166   (eval "$ac_compile") 2>conftest.er1
19167   ac_status=$?
19168   grep -v '^ *+' conftest.er1 >conftest.err
19169   rm -f conftest.er1
19170   cat conftest.err >&5
19171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172   (exit $ac_status); } && {
19173          test -z "$ac_c_werror_flag" ||
19174          test ! -s conftest.err
19175        } && test -s conftest.$ac_objext; then
19176   gt_cv_c_wchar_t=yes
19177 else
19178   echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19180
19181         gt_cv_c_wchar_t=no
19182 fi
19183
19184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19185 fi
19186 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19187 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19188   if test $gt_cv_c_wchar_t = yes; then
19189
19190 cat >>confdefs.h <<\_ACEOF
19191 #define HAVE_WCHAR_T 1
19192 _ACEOF
19193
19194   fi
19195
19196
19197   { echo "$as_me:$LINENO: checking for wint_t" >&5
19198 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19199 if test "${gt_cv_c_wint_t+set}" = set; then
19200   echo $ECHO_N "(cached) $ECHO_C" >&6
19201 else
19202   cat >conftest.$ac_ext <<_ACEOF
19203 /* confdefs.h.  */
19204 _ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h.  */
19208 #include <wchar.h>
19209        wint_t foo = (wchar_t)'\0';
19210 int
19211 main ()
19212 {
19213
19214   ;
19215   return 0;
19216 }
19217 _ACEOF
19218 rm -f conftest.$ac_objext
19219 if { (ac_try="$ac_compile"
19220 case "(($ac_try" in
19221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222   *) ac_try_echo=$ac_try;;
19223 esac
19224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225   (eval "$ac_compile") 2>conftest.er1
19226   ac_status=$?
19227   grep -v '^ *+' conftest.er1 >conftest.err
19228   rm -f conftest.er1
19229   cat conftest.err >&5
19230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231   (exit $ac_status); } && {
19232          test -z "$ac_c_werror_flag" ||
19233          test ! -s conftest.err
19234        } && test -s conftest.$ac_objext; then
19235   gt_cv_c_wint_t=yes
19236 else
19237   echo "$as_me: failed program was:" >&5
19238 sed 's/^/| /' conftest.$ac_ext >&5
19239
19240         gt_cv_c_wint_t=no
19241 fi
19242
19243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19244 fi
19245 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19246 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19247   if test $gt_cv_c_wint_t = yes; then
19248
19249 cat >>confdefs.h <<\_ACEOF
19250 #define HAVE_WINT_T 1
19251 _ACEOF
19252
19253   fi
19254
19255
19256   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19257 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19258 if test "${gl_cv_header_inttypes_h+set}" = set; then
19259   echo $ECHO_N "(cached) $ECHO_C" >&6
19260 else
19261   cat >conftest.$ac_ext <<_ACEOF
19262 /* confdefs.h.  */
19263 _ACEOF
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h.  */
19267 #include <sys/types.h>
19268 #include <inttypes.h>
19269 int
19270 main ()
19271 {
19272 uintmax_t i = (uintmax_t) -1;
19273   ;
19274   return 0;
19275 }
19276 _ACEOF
19277 rm -f conftest.$ac_objext
19278 if { (ac_try="$ac_compile"
19279 case "(($ac_try" in
19280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281   *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284   (eval "$ac_compile") 2>conftest.er1
19285   ac_status=$?
19286   grep -v '^ *+' conftest.er1 >conftest.err
19287   rm -f conftest.er1
19288   cat conftest.err >&5
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); } && {
19291          test -z "$ac_c_werror_flag" ||
19292          test ! -s conftest.err
19293        } && test -s conftest.$ac_objext; then
19294   gl_cv_header_inttypes_h=yes
19295 else
19296   echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19298
19299         gl_cv_header_inttypes_h=no
19300 fi
19301
19302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19303 fi
19304 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19305 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19306   if test $gl_cv_header_inttypes_h = yes; then
19307
19308 cat >>confdefs.h <<_ACEOF
19309 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19310 _ACEOF
19311
19312   fi
19313
19314
19315   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19316 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19317 if test "${gl_cv_header_stdint_h+set}" = set; then
19318   echo $ECHO_N "(cached) $ECHO_C" >&6
19319 else
19320   cat >conftest.$ac_ext <<_ACEOF
19321 /* confdefs.h.  */
19322 _ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h.  */
19326 #include <sys/types.h>
19327 #include <stdint.h>
19328 int
19329 main ()
19330 {
19331 uintmax_t i = (uintmax_t) -1;
19332   ;
19333   return 0;
19334 }
19335 _ACEOF
19336 rm -f conftest.$ac_objext
19337 if { (ac_try="$ac_compile"
19338 case "(($ac_try" in
19339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340   *) ac_try_echo=$ac_try;;
19341 esac
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343   (eval "$ac_compile") 2>conftest.er1
19344   ac_status=$?
19345   grep -v '^ *+' conftest.er1 >conftest.err
19346   rm -f conftest.er1
19347   cat conftest.err >&5
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); } && {
19350          test -z "$ac_c_werror_flag" ||
19351          test ! -s conftest.err
19352        } && test -s conftest.$ac_objext; then
19353   gl_cv_header_stdint_h=yes
19354 else
19355   echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19357
19358         gl_cv_header_stdint_h=no
19359 fi
19360
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19362 fi
19363 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19364 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19365   if test $gl_cv_header_stdint_h = yes; then
19366
19367 cat >>confdefs.h <<_ACEOF
19368 #define HAVE_STDINT_H_WITH_UINTMAX 1
19369 _ACEOF
19370
19371   fi
19372
19373
19374
19375
19376   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19377 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19378 if test "${gt_cv_c_intmax_t+set}" = set; then
19379   echo $ECHO_N "(cached) $ECHO_C" >&6
19380 else
19381   cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h.  */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h.  */
19387
19388 #include <stddef.h>
19389 #include <stdlib.h>
19390 #if HAVE_STDINT_H_WITH_UINTMAX
19391 #include <stdint.h>
19392 #endif
19393 #if HAVE_INTTYPES_H_WITH_UINTMAX
19394 #include <inttypes.h>
19395 #endif
19396
19397 int
19398 main ()
19399 {
19400 intmax_t x = -1;
19401   ;
19402   return 0;
19403 }
19404 _ACEOF
19405 rm -f conftest.$ac_objext
19406 if { (ac_try="$ac_compile"
19407 case "(($ac_try" in
19408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409   *) ac_try_echo=$ac_try;;
19410 esac
19411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412   (eval "$ac_compile") 2>conftest.er1
19413   ac_status=$?
19414   grep -v '^ *+' conftest.er1 >conftest.err
19415   rm -f conftest.er1
19416   cat conftest.err >&5
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } && {
19419          test -z "$ac_c_werror_flag" ||
19420          test ! -s conftest.err
19421        } && test -s conftest.$ac_objext; then
19422   gt_cv_c_intmax_t=yes
19423 else
19424   echo "$as_me: failed program was:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19426
19427         gt_cv_c_intmax_t=no
19428 fi
19429
19430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19431 fi
19432 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19433 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19434   if test $gt_cv_c_intmax_t = yes; then
19435
19436 cat >>confdefs.h <<\_ACEOF
19437 #define HAVE_INTMAX_T 1
19438 _ACEOF
19439
19440   fi
19441
19442
19443
19444   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19445 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19446 if test "${gt_cv_func_printf_posix+set}" = set; then
19447   echo $ECHO_N "(cached) $ECHO_C" >&6
19448 else
19449
19450       if test "$cross_compiling" = yes; then
19451
19452         cat >conftest.$ac_ext <<_ACEOF
19453 /* confdefs.h.  */
19454 _ACEOF
19455 cat confdefs.h >>conftest.$ac_ext
19456 cat >>conftest.$ac_ext <<_ACEOF
19457 /* end confdefs.h.  */
19458
19459 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19460   notposix
19461 #endif
19462
19463 _ACEOF
19464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19465   $EGREP "notposix" >/dev/null 2>&1; then
19466   gt_cv_func_printf_posix="guessing no"
19467 else
19468   gt_cv_func_printf_posix="guessing yes"
19469 fi
19470 rm -f conftest*
19471
19472
19473 else
19474   cat >conftest.$ac_ext <<_ACEOF
19475 /* confdefs.h.  */
19476 _ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h.  */
19480
19481 #include <stdio.h>
19482 #include <string.h>
19483 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19484    dollar expansion (possibly an autoconf bug).  */
19485 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19486 static char buf[100];
19487 int main ()
19488 {
19489   sprintf (buf, format, 33, 55);
19490   return (strcmp (buf, "55 33") != 0);
19491 }
19492 _ACEOF
19493 rm -f conftest$ac_exeext
19494 if { (ac_try="$ac_link"
19495 case "(($ac_try" in
19496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497   *) ac_try_echo=$ac_try;;
19498 esac
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500   (eval "$ac_link") 2>&5
19501   ac_status=$?
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19504   { (case "(($ac_try" in
19505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506   *) ac_try_echo=$ac_try;;
19507 esac
19508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509   (eval "$ac_try") 2>&5
19510   ac_status=$?
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); }; }; then
19513   gt_cv_func_printf_posix=yes
19514 else
19515   echo "$as_me: program exited with status $ac_status" >&5
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19518
19519 ( exit $ac_status )
19520 gt_cv_func_printf_posix=no
19521 fi
19522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19523 fi
19524
19525
19526
19527 fi
19528 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19529 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19530   case $gt_cv_func_printf_posix in
19531     *yes)
19532
19533 cat >>confdefs.h <<\_ACEOF
19534 #define HAVE_POSIX_PRINTF 1
19535 _ACEOF
19536
19537       ;;
19538   esac
19539
19540 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19541 # for constant arguments.  Useless!
19542 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19543 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19544 if test "${ac_cv_working_alloca_h+set}" = set; then
19545   echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19547   cat >conftest.$ac_ext <<_ACEOF
19548 /* confdefs.h.  */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h.  */
19553 #include <alloca.h>
19554 int
19555 main ()
19556 {
19557 char *p = (char *) alloca (2 * sizeof (int));
19558                           if (p) return 0;
19559   ;
19560   return 0;
19561 }
19562 _ACEOF
19563 rm -f conftest.$ac_objext conftest$ac_exeext
19564 if { (ac_try="$ac_link"
19565 case "(($ac_try" in
19566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567   *) ac_try_echo=$ac_try;;
19568 esac
19569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570   (eval "$ac_link") 2>conftest.er1
19571   ac_status=$?
19572   grep -v '^ *+' conftest.er1 >conftest.err
19573   rm -f conftest.er1
19574   cat conftest.err >&5
19575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576   (exit $ac_status); } && {
19577          test -z "$ac_c_werror_flag" ||
19578          test ! -s conftest.err
19579        } && test -s conftest$ac_exeext &&
19580        $as_test_x conftest$ac_exeext; then
19581   ac_cv_working_alloca_h=yes
19582 else
19583   echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19585
19586         ac_cv_working_alloca_h=no
19587 fi
19588
19589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19590       conftest$ac_exeext conftest.$ac_ext
19591 fi
19592 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19593 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19594 if test $ac_cv_working_alloca_h = yes; then
19595
19596 cat >>confdefs.h <<\_ACEOF
19597 #define HAVE_ALLOCA_H 1
19598 _ACEOF
19599
19600 fi
19601
19602 { echo "$as_me:$LINENO: checking for alloca" >&5
19603 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19604 if test "${ac_cv_func_alloca_works+set}" = set; then
19605   echo $ECHO_N "(cached) $ECHO_C" >&6
19606 else
19607   cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h.  */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h.  */
19613 #ifdef __GNUC__
19614 # define alloca __builtin_alloca
19615 #else
19616 # ifdef _MSC_VER
19617 #  include <malloc.h>
19618 #  define alloca _alloca
19619 # else
19620 #  ifdef HAVE_ALLOCA_H
19621 #   include <alloca.h>
19622 #  else
19623 #   ifdef _AIX
19624  #pragma alloca
19625 #   else
19626 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19627 char *alloca ();
19628 #    endif
19629 #   endif
19630 #  endif
19631 # endif
19632 #endif
19633
19634 int
19635 main ()
19636 {
19637 char *p = (char *) alloca (1);
19638                                     if (p) return 0;
19639   ;
19640   return 0;
19641 }
19642 _ACEOF
19643 rm -f conftest.$ac_objext conftest$ac_exeext
19644 if { (ac_try="$ac_link"
19645 case "(($ac_try" in
19646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647   *) ac_try_echo=$ac_try;;
19648 esac
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650   (eval "$ac_link") 2>conftest.er1
19651   ac_status=$?
19652   grep -v '^ *+' conftest.er1 >conftest.err
19653   rm -f conftest.er1
19654   cat conftest.err >&5
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); } && {
19657          test -z "$ac_c_werror_flag" ||
19658          test ! -s conftest.err
19659        } && test -s conftest$ac_exeext &&
19660        $as_test_x conftest$ac_exeext; then
19661   ac_cv_func_alloca_works=yes
19662 else
19663   echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19665
19666         ac_cv_func_alloca_works=no
19667 fi
19668
19669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19670       conftest$ac_exeext conftest.$ac_ext
19671 fi
19672 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19673 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19674
19675 if test $ac_cv_func_alloca_works = yes; then
19676
19677 cat >>confdefs.h <<\_ACEOF
19678 #define HAVE_ALLOCA 1
19679 _ACEOF
19680
19681 else
19682   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19683 # that cause trouble.  Some versions do not even contain alloca or
19684 # contain a buggy version.  If you still want to use their alloca,
19685 # use ar to extract alloca.o from them instead of compiling alloca.c.
19686
19687 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19688
19689 cat >>confdefs.h <<\_ACEOF
19690 #define C_ALLOCA 1
19691 _ACEOF
19692
19693
19694 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19695 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19696 if test "${ac_cv_os_cray+set}" = set; then
19697   echo $ECHO_N "(cached) $ECHO_C" >&6
19698 else
19699   cat >conftest.$ac_ext <<_ACEOF
19700 /* confdefs.h.  */
19701 _ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h.  */
19705 #if defined CRAY && ! defined CRAY2
19706 webecray
19707 #else
19708 wenotbecray
19709 #endif
19710
19711 _ACEOF
19712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19713   $EGREP "webecray" >/dev/null 2>&1; then
19714   ac_cv_os_cray=yes
19715 else
19716   ac_cv_os_cray=no
19717 fi
19718 rm -f conftest*
19719
19720 fi
19721 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19722 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19723 if test $ac_cv_os_cray = yes; then
19724   for ac_func in _getb67 GETB67 getb67; do
19725     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19729   echo $ECHO_N "(cached) $ECHO_C" >&6
19730 else
19731   cat >conftest.$ac_ext <<_ACEOF
19732 /* confdefs.h.  */
19733 _ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h.  */
19737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19739 #define $ac_func innocuous_$ac_func
19740
19741 /* System header to define __stub macros and hopefully few prototypes,
19742     which can conflict with char $ac_func (); below.
19743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19744     <limits.h> exists even on freestanding compilers.  */
19745
19746 #ifdef __STDC__
19747 # include <limits.h>
19748 #else
19749 # include <assert.h>
19750 #endif
19751
19752 #undef $ac_func
19753
19754 /* Override any GCC internal prototype to avoid an error.
19755    Use char because int might match the return type of a GCC
19756    builtin and then its argument prototype would still apply.  */
19757 #ifdef __cplusplus
19758 extern "C"
19759 #endif
19760 char $ac_func ();
19761 /* The GNU C library defines this for functions which it implements
19762     to always fail with ENOSYS.  Some functions are actually named
19763     something starting with __ and the normal name is an alias.  */
19764 #if defined __stub_$ac_func || defined __stub___$ac_func
19765 choke me
19766 #endif
19767
19768 int
19769 main ()
19770 {
19771 return $ac_func ();
19772   ;
19773   return 0;
19774 }
19775 _ACEOF
19776 rm -f conftest.$ac_objext conftest$ac_exeext
19777 if { (ac_try="$ac_link"
19778 case "(($ac_try" in
19779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780   *) ac_try_echo=$ac_try;;
19781 esac
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783   (eval "$ac_link") 2>conftest.er1
19784   ac_status=$?
19785   grep -v '^ *+' conftest.er1 >conftest.err
19786   rm -f conftest.er1
19787   cat conftest.err >&5
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); } && {
19790          test -z "$ac_c_werror_flag" ||
19791          test ! -s conftest.err
19792        } && test -s conftest$ac_exeext &&
19793        $as_test_x conftest$ac_exeext; then
19794   eval "$as_ac_var=yes"
19795 else
19796   echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19798
19799         eval "$as_ac_var=no"
19800 fi
19801
19802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19803       conftest$ac_exeext conftest.$ac_ext
19804 fi
19805 ac_res=`eval echo '${'$as_ac_var'}'`
19806                { echo "$as_me:$LINENO: result: $ac_res" >&5
19807 echo "${ECHO_T}$ac_res" >&6; }
19808 if test `eval echo '${'$as_ac_var'}'` = yes; then
19809
19810 cat >>confdefs.h <<_ACEOF
19811 #define CRAY_STACKSEG_END $ac_func
19812 _ACEOF
19813
19814     break
19815 fi
19816
19817   done
19818 fi
19819
19820 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19821 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19822 if test "${ac_cv_c_stack_direction+set}" = set; then
19823   echo $ECHO_N "(cached) $ECHO_C" >&6
19824 else
19825   if test "$cross_compiling" = yes; then
19826   ac_cv_c_stack_direction=0
19827 else
19828   cat >conftest.$ac_ext <<_ACEOF
19829 /* confdefs.h.  */
19830 _ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h.  */
19834 $ac_includes_default
19835 int
19836 find_stack_direction ()
19837 {
19838   static char *addr = 0;
19839   auto char dummy;
19840   if (addr == 0)
19841     {
19842       addr = &dummy;
19843       return find_stack_direction ();
19844     }
19845   else
19846     return (&dummy > addr) ? 1 : -1;
19847 }
19848
19849 int
19850 main ()
19851 {
19852   return find_stack_direction () < 0;
19853 }
19854 _ACEOF
19855 rm -f conftest$ac_exeext
19856 if { (ac_try="$ac_link"
19857 case "(($ac_try" in
19858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859   *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862   (eval "$ac_link") 2>&5
19863   ac_status=$?
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19866   { (case "(($ac_try" in
19867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868   *) ac_try_echo=$ac_try;;
19869 esac
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871   (eval "$ac_try") 2>&5
19872   ac_status=$?
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); }; }; then
19875   ac_cv_c_stack_direction=1
19876 else
19877   echo "$as_me: program exited with status $ac_status" >&5
19878 echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19880
19881 ( exit $ac_status )
19882 ac_cv_c_stack_direction=-1
19883 fi
19884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19885 fi
19886
19887
19888 fi
19889 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19890 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19891
19892 cat >>confdefs.h <<_ACEOF
19893 #define STACK_DIRECTION $ac_cv_c_stack_direction
19894 _ACEOF
19895
19896
19897 fi
19898
19899
19900
19901 for ac_header in stdlib.h unistd.h
19902 do
19903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19905   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19908   echo $ECHO_N "(cached) $ECHO_C" >&6
19909 fi
19910 ac_res=`eval echo '${'$as_ac_Header'}'`
19911                { echo "$as_me:$LINENO: result: $ac_res" >&5
19912 echo "${ECHO_T}$ac_res" >&6; }
19913 else
19914   # Is the header compilable?
19915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19917 cat >conftest.$ac_ext <<_ACEOF
19918 /* confdefs.h.  */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h.  */
19923 $ac_includes_default
19924 #include <$ac_header>
19925 _ACEOF
19926 rm -f conftest.$ac_objext
19927 if { (ac_try="$ac_compile"
19928 case "(($ac_try" in
19929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930   *) ac_try_echo=$ac_try;;
19931 esac
19932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933   (eval "$ac_compile") 2>conftest.er1
19934   ac_status=$?
19935   grep -v '^ *+' conftest.er1 >conftest.err
19936   rm -f conftest.er1
19937   cat conftest.err >&5
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); } && {
19940          test -z "$ac_c_werror_flag" ||
19941          test ! -s conftest.err
19942        } && test -s conftest.$ac_objext; then
19943   ac_header_compiler=yes
19944 else
19945   echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19947
19948         ac_header_compiler=no
19949 fi
19950
19951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19953 echo "${ECHO_T}$ac_header_compiler" >&6; }
19954
19955 # Is the header present?
19956 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19958 cat >conftest.$ac_ext <<_ACEOF
19959 /* confdefs.h.  */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h.  */
19964 #include <$ac_header>
19965 _ACEOF
19966 if { (ac_try="$ac_cpp conftest.$ac_ext"
19967 case "(($ac_try" in
19968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969   *) ac_try_echo=$ac_try;;
19970 esac
19971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19973   ac_status=$?
19974   grep -v '^ *+' conftest.er1 >conftest.err
19975   rm -f conftest.er1
19976   cat conftest.err >&5
19977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978   (exit $ac_status); } >/dev/null && {
19979          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19980          test ! -s conftest.err
19981        }; then
19982   ac_header_preproc=yes
19983 else
19984   echo "$as_me: failed program was:" >&5
19985 sed 's/^/| /' conftest.$ac_ext >&5
19986
19987   ac_header_preproc=no
19988 fi
19989
19990 rm -f conftest.err conftest.$ac_ext
19991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19992 echo "${ECHO_T}$ac_header_preproc" >&6; }
19993
19994 # So?  What about this header?
19995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19996   yes:no: )
19997     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20001     ac_header_preproc=yes
20002     ;;
20003   no:yes:* )
20004     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20006     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20007 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20008     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20010     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20011 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20014     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20016
20017     ;;
20018 esac
20019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20022   echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024   eval "$as_ac_Header=\$ac_header_preproc"
20025 fi
20026 ac_res=`eval echo '${'$as_ac_Header'}'`
20027                { echo "$as_me:$LINENO: result: $ac_res" >&5
20028 echo "${ECHO_T}$ac_res" >&6; }
20029
20030 fi
20031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20032   cat >>confdefs.h <<_ACEOF
20033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20034 _ACEOF
20035
20036 fi
20037
20038 done
20039
20040
20041 for ac_func in getpagesize
20042 do
20043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20047   echo $ECHO_N "(cached) $ECHO_C" >&6
20048 else
20049   cat >conftest.$ac_ext <<_ACEOF
20050 /* confdefs.h.  */
20051 _ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h.  */
20055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20057 #define $ac_func innocuous_$ac_func
20058
20059 /* System header to define __stub macros and hopefully few prototypes,
20060     which can conflict with char $ac_func (); below.
20061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20062     <limits.h> exists even on freestanding compilers.  */
20063
20064 #ifdef __STDC__
20065 # include <limits.h>
20066 #else
20067 # include <assert.h>
20068 #endif
20069
20070 #undef $ac_func
20071
20072 /* Override any GCC internal prototype to avoid an error.
20073    Use char because int might match the return type of a GCC
20074    builtin and then its argument prototype would still apply.  */
20075 #ifdef __cplusplus
20076 extern "C"
20077 #endif
20078 char $ac_func ();
20079 /* The GNU C library defines this for functions which it implements
20080     to always fail with ENOSYS.  Some functions are actually named
20081     something starting with __ and the normal name is an alias.  */
20082 #if defined __stub_$ac_func || defined __stub___$ac_func
20083 choke me
20084 #endif
20085
20086 int
20087 main ()
20088 {
20089 return $ac_func ();
20090   ;
20091   return 0;
20092 }
20093 _ACEOF
20094 rm -f conftest.$ac_objext conftest$ac_exeext
20095 if { (ac_try="$ac_link"
20096 case "(($ac_try" in
20097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098   *) ac_try_echo=$ac_try;;
20099 esac
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101   (eval "$ac_link") 2>conftest.er1
20102   ac_status=$?
20103   grep -v '^ *+' conftest.er1 >conftest.err
20104   rm -f conftest.er1
20105   cat conftest.err >&5
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); } && {
20108          test -z "$ac_c_werror_flag" ||
20109          test ! -s conftest.err
20110        } && test -s conftest$ac_exeext &&
20111        $as_test_x conftest$ac_exeext; then
20112   eval "$as_ac_var=yes"
20113 else
20114   echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20116
20117         eval "$as_ac_var=no"
20118 fi
20119
20120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20121       conftest$ac_exeext conftest.$ac_ext
20122 fi
20123 ac_res=`eval echo '${'$as_ac_var'}'`
20124                { echo "$as_me:$LINENO: result: $ac_res" >&5
20125 echo "${ECHO_T}$ac_res" >&6; }
20126 if test `eval echo '${'$as_ac_var'}'` = yes; then
20127   cat >>confdefs.h <<_ACEOF
20128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20129 _ACEOF
20130
20131 fi
20132 done
20133
20134 { echo "$as_me:$LINENO: checking for working mmap" >&5
20135 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20136 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20137   echo $ECHO_N "(cached) $ECHO_C" >&6
20138 else
20139   if test "$cross_compiling" = yes; then
20140   ac_cv_func_mmap_fixed_mapped=no
20141 else
20142   cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h.  */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h.  */
20148 $ac_includes_default
20149 /* malloc might have been renamed as rpl_malloc. */
20150 #undef malloc
20151
20152 /* Thanks to Mike Haertel and Jim Avera for this test.
20153    Here is a matrix of mmap possibilities:
20154         mmap private not fixed
20155         mmap private fixed at somewhere currently unmapped
20156         mmap private fixed at somewhere already mapped
20157         mmap shared not fixed
20158         mmap shared fixed at somewhere currently unmapped
20159         mmap shared fixed at somewhere already mapped
20160    For private mappings, we should verify that changes cannot be read()
20161    back from the file, nor mmap's back from the file at a different
20162    address.  (There have been systems where private was not correctly
20163    implemented like the infamous i386 svr4.0, and systems where the
20164    VM page cache was not coherent with the file system buffer cache
20165    like early versions of FreeBSD and possibly contemporary NetBSD.)
20166    For shared mappings, we should conversely verify that changes get
20167    propagated back to all the places they're supposed to be.
20168
20169    Grep wants private fixed already mapped.
20170    The main things grep needs to know about mmap are:
20171    * does it exist and is it safe to write into the mmap'd area
20172    * how to use it (BSD variants)  */
20173
20174 #include <fcntl.h>
20175 #include <sys/mman.h>
20176
20177 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20178 char *malloc ();
20179 #endif
20180
20181 /* This mess was copied from the GNU getpagesize.h.  */
20182 #ifndef HAVE_GETPAGESIZE
20183 /* Assume that all systems that can run configure have sys/param.h.  */
20184 # ifndef HAVE_SYS_PARAM_H
20185 #  define HAVE_SYS_PARAM_H 1
20186 # endif
20187
20188 # ifdef _SC_PAGESIZE
20189 #  define getpagesize() sysconf(_SC_PAGESIZE)
20190 # else /* no _SC_PAGESIZE */
20191 #  ifdef HAVE_SYS_PARAM_H
20192 #   include <sys/param.h>
20193 #   ifdef EXEC_PAGESIZE
20194 #    define getpagesize() EXEC_PAGESIZE
20195 #   else /* no EXEC_PAGESIZE */
20196 #    ifdef NBPG
20197 #     define getpagesize() NBPG * CLSIZE
20198 #     ifndef CLSIZE
20199 #      define CLSIZE 1
20200 #     endif /* no CLSIZE */
20201 #    else /* no NBPG */
20202 #     ifdef NBPC
20203 #      define getpagesize() NBPC
20204 #     else /* no NBPC */
20205 #      ifdef PAGESIZE
20206 #       define getpagesize() PAGESIZE
20207 #      endif /* PAGESIZE */
20208 #     endif /* no NBPC */
20209 #    endif /* no NBPG */
20210 #   endif /* no EXEC_PAGESIZE */
20211 #  else /* no HAVE_SYS_PARAM_H */
20212 #   define getpagesize() 8192   /* punt totally */
20213 #  endif /* no HAVE_SYS_PARAM_H */
20214 # endif /* no _SC_PAGESIZE */
20215
20216 #endif /* no HAVE_GETPAGESIZE */
20217
20218 int
20219 main ()
20220 {
20221   char *data, *data2, *data3;
20222   int i, pagesize;
20223   int fd;
20224
20225   pagesize = getpagesize ();
20226
20227   /* First, make a file with some known garbage in it. */
20228   data = (char *) malloc (pagesize);
20229   if (!data)
20230     return 1;
20231   for (i = 0; i < pagesize; ++i)
20232     *(data + i) = rand ();
20233   umask (0);
20234   fd = creat ("conftest.mmap", 0600);
20235   if (fd < 0)
20236     return 1;
20237   if (write (fd, data, pagesize) != pagesize)
20238     return 1;
20239   close (fd);
20240
20241   /* Next, try to mmap the file at a fixed address which already has
20242      something else allocated at it.  If we can, also make sure that
20243      we see the same garbage.  */
20244   fd = open ("conftest.mmap", O_RDWR);
20245   if (fd < 0)
20246     return 1;
20247   data2 = (char *) malloc (2 * pagesize);
20248   if (!data2)
20249     return 1;
20250   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20251   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20252                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20253     return 1;
20254   for (i = 0; i < pagesize; ++i)
20255     if (*(data + i) != *(data2 + i))
20256       return 1;
20257
20258   /* Finally, make sure that changes to the mapped area do not
20259      percolate back to the file as seen by read().  (This is a bug on
20260      some variants of i386 svr4.0.)  */
20261   for (i = 0; i < pagesize; ++i)
20262     *(data2 + i) = *(data2 + i) + 1;
20263   data3 = (char *) malloc (pagesize);
20264   if (!data3)
20265     return 1;
20266   if (read (fd, data3, pagesize) != pagesize)
20267     return 1;
20268   for (i = 0; i < pagesize; ++i)
20269     if (*(data + i) != *(data3 + i))
20270       return 1;
20271   close (fd);
20272   return 0;
20273 }
20274 _ACEOF
20275 rm -f conftest$ac_exeext
20276 if { (ac_try="$ac_link"
20277 case "(($ac_try" in
20278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279   *) ac_try_echo=$ac_try;;
20280 esac
20281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282   (eval "$ac_link") 2>&5
20283   ac_status=$?
20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20286   { (case "(($ac_try" in
20287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20288   *) ac_try_echo=$ac_try;;
20289 esac
20290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20291   (eval "$ac_try") 2>&5
20292   ac_status=$?
20293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294   (exit $ac_status); }; }; then
20295   ac_cv_func_mmap_fixed_mapped=yes
20296 else
20297   echo "$as_me: program exited with status $ac_status" >&5
20298 echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20300
20301 ( exit $ac_status )
20302 ac_cv_func_mmap_fixed_mapped=no
20303 fi
20304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20305 fi
20306
20307
20308 fi
20309 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20310 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20311 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20312
20313 cat >>confdefs.h <<\_ACEOF
20314 #define HAVE_MMAP 1
20315 _ACEOF
20316
20317 fi
20318 rm -f conftest.mmap
20319
20320
20321     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20322 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20323 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20324   echo $ECHO_N "(cached) $ECHO_C" >&6
20325 else
20326   cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h.  */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h.  */
20332
20333 #include <features.h>
20334 #ifdef __GNU_LIBRARY__
20335  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20336   Lucky GNU user
20337  #endif
20338 #endif
20339
20340 _ACEOF
20341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20342   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20343   ac_cv_gnu_library_2_1=yes
20344 else
20345   ac_cv_gnu_library_2_1=no
20346 fi
20347 rm -f conftest*
20348
20349
20350
20351 fi
20352 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20353 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20354
20355     GLIBC21="$ac_cv_gnu_library_2_1"
20356
20357
20358
20359
20360   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20361 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20362 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20363   echo $ECHO_N "(cached) $ECHO_C" >&6
20364 else
20365
20366       if test "$cross_compiling" = yes; then
20367
20368           # Guess based on the CPU.
20369           case "$host_cpu" in
20370             alpha* | i3456786 | m68k | s390*)
20371               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20372             *)
20373               gt_cv_int_divbyzero_sigfpe="guessing no";;
20374           esac
20375
20376 else
20377   cat >conftest.$ac_ext <<_ACEOF
20378 /* confdefs.h.  */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h.  */
20383
20384 #include <stdlib.h>
20385 #include <signal.h>
20386
20387 static void
20388 #ifdef __cplusplus
20389 sigfpe_handler (int sig)
20390 #else
20391 sigfpe_handler (sig) int sig;
20392 #endif
20393 {
20394   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20395   exit (sig != SIGFPE);
20396 }
20397
20398 int x = 1;
20399 int y = 0;
20400 int z;
20401 int nan;
20402
20403 int main ()
20404 {
20405   signal (SIGFPE, sigfpe_handler);
20406 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20407 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20408   signal (SIGTRAP, sigfpe_handler);
20409 #endif
20410 /* Linux/SPARC yields signal SIGILL.  */
20411 #if defined (__sparc__) && defined (__linux__)
20412   signal (SIGILL, sigfpe_handler);
20413 #endif
20414
20415   z = x / y;
20416   nan = y / y;
20417   exit (1);
20418 }
20419
20420 _ACEOF
20421 rm -f conftest$ac_exeext
20422 if { (ac_try="$ac_link"
20423 case "(($ac_try" in
20424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425   *) ac_try_echo=$ac_try;;
20426 esac
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428   (eval "$ac_link") 2>&5
20429   ac_status=$?
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20432   { (case "(($ac_try" in
20433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434   *) ac_try_echo=$ac_try;;
20435 esac
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437   (eval "$ac_try") 2>&5
20438   ac_status=$?
20439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); }; }; then
20441   gt_cv_int_divbyzero_sigfpe=yes
20442 else
20443   echo "$as_me: program exited with status $ac_status" >&5
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20446
20447 ( exit $ac_status )
20448 gt_cv_int_divbyzero_sigfpe=no
20449 fi
20450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20451 fi
20452
20453
20454
20455 fi
20456 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20457 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20458   case "$gt_cv_int_divbyzero_sigfpe" in
20459     *yes) value=1;;
20460     *) value=0;;
20461   esac
20462
20463 cat >>confdefs.h <<_ACEOF
20464 #define INTDIV0_RAISES_SIGFPE $value
20465 _ACEOF
20466
20467
20468
20469   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20470 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20471 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20472   echo $ECHO_N "(cached) $ECHO_C" >&6
20473 else
20474   cat >conftest.$ac_ext <<_ACEOF
20475 /* confdefs.h.  */
20476 _ACEOF
20477 cat confdefs.h >>conftest.$ac_ext
20478 cat >>conftest.$ac_ext <<_ACEOF
20479 /* end confdefs.h.  */
20480 unsigned long long ull = 1ULL; int i = 63;
20481 int
20482 main ()
20483 {
20484 unsigned long long ullmax = (unsigned long long) -1;
20485      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20486   ;
20487   return 0;
20488 }
20489 _ACEOF
20490 rm -f conftest.$ac_objext conftest$ac_exeext
20491 if { (ac_try="$ac_link"
20492 case "(($ac_try" in
20493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494   *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497   (eval "$ac_link") 2>conftest.er1
20498   ac_status=$?
20499   grep -v '^ *+' conftest.er1 >conftest.err
20500   rm -f conftest.er1
20501   cat conftest.err >&5
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); } && {
20504          test -z "$ac_c_werror_flag" ||
20505          test ! -s conftest.err
20506        } && test -s conftest$ac_exeext &&
20507        $as_test_x conftest$ac_exeext; then
20508   ac_cv_type_unsigned_long_long=yes
20509 else
20510   echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20512
20513         ac_cv_type_unsigned_long_long=no
20514 fi
20515
20516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20517       conftest$ac_exeext conftest.$ac_ext
20518 fi
20519 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20520 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20521   if test $ac_cv_type_unsigned_long_long = yes; then
20522
20523 cat >>confdefs.h <<\_ACEOF
20524 #define HAVE_UNSIGNED_LONG_LONG 1
20525 _ACEOF
20526
20527   fi
20528
20529
20530
20531
20532   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20533
20534     test $ac_cv_type_unsigned_long_long = yes \
20535       && ac_type='unsigned long long' \
20536       || ac_type='unsigned long'
20537
20538 cat >>confdefs.h <<_ACEOF
20539 #define uintmax_t $ac_type
20540 _ACEOF
20541
20542   else
20543
20544 cat >>confdefs.h <<\_ACEOF
20545 #define HAVE_UINTMAX_T 1
20546 _ACEOF
20547
20548   fi
20549
20550
20551   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20552 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20553 if test "${gt_cv_header_inttypes_h+set}" = set; then
20554   echo $ECHO_N "(cached) $ECHO_C" >&6
20555 else
20556
20557     cat >conftest.$ac_ext <<_ACEOF
20558 /* confdefs.h.  */
20559 _ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h.  */
20563 #include <sys/types.h>
20564 #include <inttypes.h>
20565 int
20566 main ()
20567 {
20568
20569   ;
20570   return 0;
20571 }
20572 _ACEOF
20573 rm -f conftest.$ac_objext
20574 if { (ac_try="$ac_compile"
20575 case "(($ac_try" in
20576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577   *) ac_try_echo=$ac_try;;
20578 esac
20579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580   (eval "$ac_compile") 2>conftest.er1
20581   ac_status=$?
20582   grep -v '^ *+' conftest.er1 >conftest.err
20583   rm -f conftest.er1
20584   cat conftest.err >&5
20585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); } && {
20587          test -z "$ac_c_werror_flag" ||
20588          test ! -s conftest.err
20589        } && test -s conftest.$ac_objext; then
20590   gt_cv_header_inttypes_h=yes
20591 else
20592   echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20594
20595         gt_cv_header_inttypes_h=no
20596 fi
20597
20598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20599
20600 fi
20601 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20602 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20603   if test $gt_cv_header_inttypes_h = yes; then
20604
20605 cat >>confdefs.h <<_ACEOF
20606 #define HAVE_INTTYPES_H 1
20607 _ACEOF
20608
20609   fi
20610
20611
20612
20613   if test $gt_cv_header_inttypes_h = yes; then
20614     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20615 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20616 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20617   echo $ECHO_N "(cached) $ECHO_C" >&6
20618 else
20619
20620         cat >conftest.$ac_ext <<_ACEOF
20621 /* confdefs.h.  */
20622 _ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h.  */
20626 #include <inttypes.h>
20627 #ifdef PRId32
20628 char *p = PRId32;
20629 #endif
20630
20631 int
20632 main ()
20633 {
20634
20635   ;
20636   return 0;
20637 }
20638 _ACEOF
20639 rm -f conftest.$ac_objext
20640 if { (ac_try="$ac_compile"
20641 case "(($ac_try" in
20642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643   *) ac_try_echo=$ac_try;;
20644 esac
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646   (eval "$ac_compile") 2>conftest.er1
20647   ac_status=$?
20648   grep -v '^ *+' conftest.er1 >conftest.err
20649   rm -f conftest.er1
20650   cat conftest.err >&5
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); } && {
20653          test -z "$ac_c_werror_flag" ||
20654          test ! -s conftest.err
20655        } && test -s conftest.$ac_objext; then
20656   gt_cv_inttypes_pri_broken=no
20657 else
20658   echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20660
20661         gt_cv_inttypes_pri_broken=yes
20662 fi
20663
20664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20665
20666 fi
20667 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20668 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20669   fi
20670   if test "$gt_cv_inttypes_pri_broken" = yes; then
20671
20672 cat >>confdefs.h <<_ACEOF
20673 #define PRI_MACROS_BROKEN 1
20674 _ACEOF
20675
20676   fi
20677
20678
20679
20680 for ac_header in stdint.h
20681 do
20682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20684   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20687   echo $ECHO_N "(cached) $ECHO_C" >&6
20688 fi
20689 ac_res=`eval echo '${'$as_ac_Header'}'`
20690                { echo "$as_me:$LINENO: result: $ac_res" >&5
20691 echo "${ECHO_T}$ac_res" >&6; }
20692 else
20693   # Is the header compilable?
20694 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20696 cat >conftest.$ac_ext <<_ACEOF
20697 /* confdefs.h.  */
20698 _ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h.  */
20702 $ac_includes_default
20703 #include <$ac_header>
20704 _ACEOF
20705 rm -f conftest.$ac_objext
20706 if { (ac_try="$ac_compile"
20707 case "(($ac_try" in
20708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709   *) ac_try_echo=$ac_try;;
20710 esac
20711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712   (eval "$ac_compile") 2>conftest.er1
20713   ac_status=$?
20714   grep -v '^ *+' conftest.er1 >conftest.err
20715   rm -f conftest.er1
20716   cat conftest.err >&5
20717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718   (exit $ac_status); } && {
20719          test -z "$ac_c_werror_flag" ||
20720          test ! -s conftest.err
20721        } && test -s conftest.$ac_objext; then
20722   ac_header_compiler=yes
20723 else
20724   echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20726
20727         ac_header_compiler=no
20728 fi
20729
20730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20732 echo "${ECHO_T}$ac_header_compiler" >&6; }
20733
20734 # Is the header present?
20735 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20737 cat >conftest.$ac_ext <<_ACEOF
20738 /* confdefs.h.  */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h.  */
20743 #include <$ac_header>
20744 _ACEOF
20745 if { (ac_try="$ac_cpp conftest.$ac_ext"
20746 case "(($ac_try" in
20747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748   *) ac_try_echo=$ac_try;;
20749 esac
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20752   ac_status=$?
20753   grep -v '^ *+' conftest.er1 >conftest.err
20754   rm -f conftest.er1
20755   cat conftest.err >&5
20756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); } >/dev/null && {
20758          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20759          test ! -s conftest.err
20760        }; then
20761   ac_header_preproc=yes
20762 else
20763   echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20765
20766   ac_header_preproc=no
20767 fi
20768
20769 rm -f conftest.err conftest.$ac_ext
20770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20771 echo "${ECHO_T}$ac_header_preproc" >&6; }
20772
20773 # So?  What about this header?
20774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20775   yes:no: )
20776     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20780     ac_header_preproc=yes
20781     ;;
20782   no:yes:* )
20783     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20785     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20786 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20787     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20789     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20790 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20793     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20795
20796     ;;
20797 esac
20798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20801   echo $ECHO_N "(cached) $ECHO_C" >&6
20802 else
20803   eval "$as_ac_Header=\$ac_header_preproc"
20804 fi
20805 ac_res=`eval echo '${'$as_ac_Header'}'`
20806                { echo "$as_me:$LINENO: result: $ac_res" >&5
20807 echo "${ECHO_T}$ac_res" >&6; }
20808
20809 fi
20810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20811   cat >>confdefs.h <<_ACEOF
20812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20813 _ACEOF
20814
20815 fi
20816
20817 done
20818
20819     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20820 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20821   result=
20822   cat >conftest.$ac_ext <<_ACEOF
20823 /* confdefs.h.  */
20824 _ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h.  */
20828
20829 #include <limits.h>
20830 #if HAVE_STDINT_H
20831 #include <stdint.h>
20832 #endif
20833 #ifdef SIZE_MAX
20834 Found it
20835 #endif
20836
20837 _ACEOF
20838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20839   $EGREP "Found it" >/dev/null 2>&1; then
20840   result=yes
20841 fi
20842 rm -f conftest*
20843
20844   if test -z "$result"; then
20845                     if test "$cross_compiling" = yes; then
20846   # Depending upon the size, compute the lo and hi bounds.
20847 cat >conftest.$ac_ext <<_ACEOF
20848 /* confdefs.h.  */
20849 _ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h.  */
20853 #include <stddef.h>
20854 int
20855 main ()
20856 {
20857 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20858 test_array [0] = 0
20859
20860   ;
20861   return 0;
20862 }
20863 _ACEOF
20864 rm -f conftest.$ac_objext
20865 if { (ac_try="$ac_compile"
20866 case "(($ac_try" in
20867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868   *) ac_try_echo=$ac_try;;
20869 esac
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871   (eval "$ac_compile") 2>conftest.er1
20872   ac_status=$?
20873   grep -v '^ *+' conftest.er1 >conftest.err
20874   rm -f conftest.er1
20875   cat conftest.err >&5
20876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877   (exit $ac_status); } && {
20878          test -z "$ac_c_werror_flag" ||
20879          test ! -s conftest.err
20880        } && test -s conftest.$ac_objext; then
20881   ac_lo=0 ac_mid=0
20882   while :; do
20883     cat >conftest.$ac_ext <<_ACEOF
20884 /* confdefs.h.  */
20885 _ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h.  */
20889 #include <stddef.h>
20890 int
20891 main ()
20892 {
20893 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20894 test_array [0] = 0
20895
20896   ;
20897   return 0;
20898 }
20899 _ACEOF
20900 rm -f conftest.$ac_objext
20901 if { (ac_try="$ac_compile"
20902 case "(($ac_try" in
20903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904   *) ac_try_echo=$ac_try;;
20905 esac
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907   (eval "$ac_compile") 2>conftest.er1
20908   ac_status=$?
20909   grep -v '^ *+' conftest.er1 >conftest.err
20910   rm -f conftest.er1
20911   cat conftest.err >&5
20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913   (exit $ac_status); } && {
20914          test -z "$ac_c_werror_flag" ||
20915          test ! -s conftest.err
20916        } && test -s conftest.$ac_objext; then
20917   ac_hi=$ac_mid; break
20918 else
20919   echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20921
20922         ac_lo=`expr $ac_mid + 1`
20923                         if test $ac_lo -le $ac_mid; then
20924                           ac_lo= ac_hi=
20925                           break
20926                         fi
20927                         ac_mid=`expr 2 '*' $ac_mid + 1`
20928 fi
20929
20930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20931   done
20932 else
20933   echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20935
20936         cat >conftest.$ac_ext <<_ACEOF
20937 /* confdefs.h.  */
20938 _ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h.  */
20942 #include <stddef.h>
20943 int
20944 main ()
20945 {
20946 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20947 test_array [0] = 0
20948
20949   ;
20950   return 0;
20951 }
20952 _ACEOF
20953 rm -f conftest.$ac_objext
20954 if { (ac_try="$ac_compile"
20955 case "(($ac_try" in
20956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957   *) ac_try_echo=$ac_try;;
20958 esac
20959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960   (eval "$ac_compile") 2>conftest.er1
20961   ac_status=$?
20962   grep -v '^ *+' conftest.er1 >conftest.err
20963   rm -f conftest.er1
20964   cat conftest.err >&5
20965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966   (exit $ac_status); } && {
20967          test -z "$ac_c_werror_flag" ||
20968          test ! -s conftest.err
20969        } && test -s conftest.$ac_objext; then
20970   ac_hi=-1 ac_mid=-1
20971   while :; do
20972     cat >conftest.$ac_ext <<_ACEOF
20973 /* confdefs.h.  */
20974 _ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h.  */
20978 #include <stddef.h>
20979 int
20980 main ()
20981 {
20982 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20983 test_array [0] = 0
20984
20985   ;
20986   return 0;
20987 }
20988 _ACEOF
20989 rm -f conftest.$ac_objext
20990 if { (ac_try="$ac_compile"
20991 case "(($ac_try" in
20992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993   *) ac_try_echo=$ac_try;;
20994 esac
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996   (eval "$ac_compile") 2>conftest.er1
20997   ac_status=$?
20998   grep -v '^ *+' conftest.er1 >conftest.err
20999   rm -f conftest.er1
21000   cat conftest.err >&5
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); } && {
21003          test -z "$ac_c_werror_flag" ||
21004          test ! -s conftest.err
21005        } && test -s conftest.$ac_objext; then
21006   ac_lo=$ac_mid; break
21007 else
21008   echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011         ac_hi=`expr '(' $ac_mid ')' - 1`
21012                         if test $ac_mid -le $ac_hi; then
21013                           ac_lo= ac_hi=
21014                           break
21015                         fi
21016                         ac_mid=`expr 2 '*' $ac_mid`
21017 fi
21018
21019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21020   done
21021 else
21022   echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025         ac_lo= ac_hi=
21026 fi
21027
21028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21029 fi
21030
21031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032 # Binary search between lo and hi bounds.
21033 while test "x$ac_lo" != "x$ac_hi"; do
21034   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21035   cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h.  */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h.  */
21041 #include <stddef.h>
21042 int
21043 main ()
21044 {
21045 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21046 test_array [0] = 0
21047
21048   ;
21049   return 0;
21050 }
21051 _ACEOF
21052 rm -f conftest.$ac_objext
21053 if { (ac_try="$ac_compile"
21054 case "(($ac_try" in
21055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056   *) ac_try_echo=$ac_try;;
21057 esac
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059   (eval "$ac_compile") 2>conftest.er1
21060   ac_status=$?
21061   grep -v '^ *+' conftest.er1 >conftest.err
21062   rm -f conftest.er1
21063   cat conftest.err >&5
21064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065   (exit $ac_status); } && {
21066          test -z "$ac_c_werror_flag" ||
21067          test ! -s conftest.err
21068        } && test -s conftest.$ac_objext; then
21069   ac_hi=$ac_mid
21070 else
21071   echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21073
21074         ac_lo=`expr '(' $ac_mid ')' + 1`
21075 fi
21076
21077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21078 done
21079 case $ac_lo in
21080 ?*) res_hi=$ac_lo;;
21081 '') result=? ;;
21082 esac
21083 else
21084   cat >conftest.$ac_ext <<_ACEOF
21085 /* confdefs.h.  */
21086 _ACEOF
21087 cat confdefs.h >>conftest.$ac_ext
21088 cat >>conftest.$ac_ext <<_ACEOF
21089 /* end confdefs.h.  */
21090 #include <stddef.h>
21091 static long int longval () { return ~(size_t)0 / 10; }
21092 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21093 #include <stdio.h>
21094 #include <stdlib.h>
21095 int
21096 main ()
21097 {
21098
21099   FILE *f = fopen ("conftest.val", "w");
21100   if (! f)
21101     return 1;
21102   if ((~(size_t)0 / 10) < 0)
21103     {
21104       long int i = longval ();
21105       if (i != (~(size_t)0 / 10))
21106         return 1;
21107       fprintf (f, "%ld\n", i);
21108     }
21109   else
21110     {
21111       unsigned long int i = ulongval ();
21112       if (i != (~(size_t)0 / 10))
21113         return 1;
21114       fprintf (f, "%lu\n", i);
21115     }
21116   return ferror (f) || fclose (f) != 0;
21117
21118   ;
21119   return 0;
21120 }
21121 _ACEOF
21122 rm -f conftest$ac_exeext
21123 if { (ac_try="$ac_link"
21124 case "(($ac_try" in
21125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126   *) ac_try_echo=$ac_try;;
21127 esac
21128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21129   (eval "$ac_link") 2>&5
21130   ac_status=$?
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21133   { (case "(($ac_try" in
21134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21135   *) ac_try_echo=$ac_try;;
21136 esac
21137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21138   (eval "$ac_try") 2>&5
21139   ac_status=$?
21140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141   (exit $ac_status); }; }; then
21142   res_hi=`cat conftest.val`
21143 else
21144   echo "$as_me: program exited with status $ac_status" >&5
21145 echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21147
21148 ( exit $ac_status )
21149 result=?
21150 fi
21151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21152 fi
21153 rm -f conftest.val
21154
21155     if test "$cross_compiling" = yes; then
21156   # Depending upon the size, compute the lo and hi bounds.
21157 cat >conftest.$ac_ext <<_ACEOF
21158 /* confdefs.h.  */
21159 _ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h.  */
21163 #include <stddef.h>
21164 int
21165 main ()
21166 {
21167 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21168 test_array [0] = 0
21169
21170   ;
21171   return 0;
21172 }
21173 _ACEOF
21174 rm -f conftest.$ac_objext
21175 if { (ac_try="$ac_compile"
21176 case "(($ac_try" in
21177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178   *) ac_try_echo=$ac_try;;
21179 esac
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181   (eval "$ac_compile") 2>conftest.er1
21182   ac_status=$?
21183   grep -v '^ *+' conftest.er1 >conftest.err
21184   rm -f conftest.er1
21185   cat conftest.err >&5
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); } && {
21188          test -z "$ac_c_werror_flag" ||
21189          test ! -s conftest.err
21190        } && test -s conftest.$ac_objext; then
21191   ac_lo=0 ac_mid=0
21192   while :; do
21193     cat >conftest.$ac_ext <<_ACEOF
21194 /* confdefs.h.  */
21195 _ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h.  */
21199 #include <stddef.h>
21200 int
21201 main ()
21202 {
21203 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21204 test_array [0] = 0
21205
21206   ;
21207   return 0;
21208 }
21209 _ACEOF
21210 rm -f conftest.$ac_objext
21211 if { (ac_try="$ac_compile"
21212 case "(($ac_try" in
21213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214   *) ac_try_echo=$ac_try;;
21215 esac
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217   (eval "$ac_compile") 2>conftest.er1
21218   ac_status=$?
21219   grep -v '^ *+' conftest.er1 >conftest.err
21220   rm -f conftest.er1
21221   cat conftest.err >&5
21222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223   (exit $ac_status); } && {
21224          test -z "$ac_c_werror_flag" ||
21225          test ! -s conftest.err
21226        } && test -s conftest.$ac_objext; then
21227   ac_hi=$ac_mid; break
21228 else
21229   echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21231
21232         ac_lo=`expr $ac_mid + 1`
21233                         if test $ac_lo -le $ac_mid; then
21234                           ac_lo= ac_hi=
21235                           break
21236                         fi
21237                         ac_mid=`expr 2 '*' $ac_mid + 1`
21238 fi
21239
21240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21241   done
21242 else
21243   echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21245
21246         cat >conftest.$ac_ext <<_ACEOF
21247 /* confdefs.h.  */
21248 _ACEOF
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h.  */
21252 #include <stddef.h>
21253 int
21254 main ()
21255 {
21256 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21257 test_array [0] = 0
21258
21259   ;
21260   return 0;
21261 }
21262 _ACEOF
21263 rm -f conftest.$ac_objext
21264 if { (ac_try="$ac_compile"
21265 case "(($ac_try" in
21266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267   *) ac_try_echo=$ac_try;;
21268 esac
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270   (eval "$ac_compile") 2>conftest.er1
21271   ac_status=$?
21272   grep -v '^ *+' conftest.er1 >conftest.err
21273   rm -f conftest.er1
21274   cat conftest.err >&5
21275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276   (exit $ac_status); } && {
21277          test -z "$ac_c_werror_flag" ||
21278          test ! -s conftest.err
21279        } && test -s conftest.$ac_objext; then
21280   ac_hi=-1 ac_mid=-1
21281   while :; do
21282     cat >conftest.$ac_ext <<_ACEOF
21283 /* confdefs.h.  */
21284 _ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h.  */
21288 #include <stddef.h>
21289 int
21290 main ()
21291 {
21292 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21293 test_array [0] = 0
21294
21295   ;
21296   return 0;
21297 }
21298 _ACEOF
21299 rm -f conftest.$ac_objext
21300 if { (ac_try="$ac_compile"
21301 case "(($ac_try" in
21302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303   *) ac_try_echo=$ac_try;;
21304 esac
21305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21306   (eval "$ac_compile") 2>conftest.er1
21307   ac_status=$?
21308   grep -v '^ *+' conftest.er1 >conftest.err
21309   rm -f conftest.er1
21310   cat conftest.err >&5
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); } && {
21313          test -z "$ac_c_werror_flag" ||
21314          test ! -s conftest.err
21315        } && test -s conftest.$ac_objext; then
21316   ac_lo=$ac_mid; break
21317 else
21318   echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21320
21321         ac_hi=`expr '(' $ac_mid ')' - 1`
21322                         if test $ac_mid -le $ac_hi; then
21323                           ac_lo= ac_hi=
21324                           break
21325                         fi
21326                         ac_mid=`expr 2 '*' $ac_mid`
21327 fi
21328
21329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21330   done
21331 else
21332   echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21334
21335         ac_lo= ac_hi=
21336 fi
21337
21338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21339 fi
21340
21341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21342 # Binary search between lo and hi bounds.
21343 while test "x$ac_lo" != "x$ac_hi"; do
21344   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21345   cat >conftest.$ac_ext <<_ACEOF
21346 /* confdefs.h.  */
21347 _ACEOF
21348 cat confdefs.h >>conftest.$ac_ext
21349 cat >>conftest.$ac_ext <<_ACEOF
21350 /* end confdefs.h.  */
21351 #include <stddef.h>
21352 int
21353 main ()
21354 {
21355 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21356 test_array [0] = 0
21357
21358   ;
21359   return 0;
21360 }
21361 _ACEOF
21362 rm -f conftest.$ac_objext
21363 if { (ac_try="$ac_compile"
21364 case "(($ac_try" in
21365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21366   *) ac_try_echo=$ac_try;;
21367 esac
21368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21369   (eval "$ac_compile") 2>conftest.er1
21370   ac_status=$?
21371   grep -v '^ *+' conftest.er1 >conftest.err
21372   rm -f conftest.er1
21373   cat conftest.err >&5
21374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375   (exit $ac_status); } && {
21376          test -z "$ac_c_werror_flag" ||
21377          test ! -s conftest.err
21378        } && test -s conftest.$ac_objext; then
21379   ac_hi=$ac_mid
21380 else
21381   echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21383
21384         ac_lo=`expr '(' $ac_mid ')' + 1`
21385 fi
21386
21387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21388 done
21389 case $ac_lo in
21390 ?*) res_lo=$ac_lo;;
21391 '') result=? ;;
21392 esac
21393 else
21394   cat >conftest.$ac_ext <<_ACEOF
21395 /* confdefs.h.  */
21396 _ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h.  */
21400 #include <stddef.h>
21401 static long int longval () { return ~(size_t)0 % 10; }
21402 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21403 #include <stdio.h>
21404 #include <stdlib.h>
21405 int
21406 main ()
21407 {
21408
21409   FILE *f = fopen ("conftest.val", "w");
21410   if (! f)
21411     return 1;
21412   if ((~(size_t)0 % 10) < 0)
21413     {
21414       long int i = longval ();
21415       if (i != (~(size_t)0 % 10))
21416         return 1;
21417       fprintf (f, "%ld\n", i);
21418     }
21419   else
21420     {
21421       unsigned long int i = ulongval ();
21422       if (i != (~(size_t)0 % 10))
21423         return 1;
21424       fprintf (f, "%lu\n", i);
21425     }
21426   return ferror (f) || fclose (f) != 0;
21427
21428   ;
21429   return 0;
21430 }
21431 _ACEOF
21432 rm -f conftest$ac_exeext
21433 if { (ac_try="$ac_link"
21434 case "(($ac_try" in
21435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436   *) ac_try_echo=$ac_try;;
21437 esac
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439   (eval "$ac_link") 2>&5
21440   ac_status=$?
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21443   { (case "(($ac_try" in
21444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445   *) ac_try_echo=$ac_try;;
21446 esac
21447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448   (eval "$ac_try") 2>&5
21449   ac_status=$?
21450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451   (exit $ac_status); }; }; then
21452   res_lo=`cat conftest.val`
21453 else
21454   echo "$as_me: program exited with status $ac_status" >&5
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458 ( exit $ac_status )
21459 result=?
21460 fi
21461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21462 fi
21463 rm -f conftest.val
21464
21465     if test "$cross_compiling" = yes; then
21466   # Depending upon the size, compute the lo and hi bounds.
21467 cat >conftest.$ac_ext <<_ACEOF
21468 /* confdefs.h.  */
21469 _ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h.  */
21473 #include <stddef.h>
21474 int
21475 main ()
21476 {
21477 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21478 test_array [0] = 0
21479
21480   ;
21481   return 0;
21482 }
21483 _ACEOF
21484 rm -f conftest.$ac_objext
21485 if { (ac_try="$ac_compile"
21486 case "(($ac_try" in
21487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488   *) ac_try_echo=$ac_try;;
21489 esac
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491   (eval "$ac_compile") 2>conftest.er1
21492   ac_status=$?
21493   grep -v '^ *+' conftest.er1 >conftest.err
21494   rm -f conftest.er1
21495   cat conftest.err >&5
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); } && {
21498          test -z "$ac_c_werror_flag" ||
21499          test ! -s conftest.err
21500        } && test -s conftest.$ac_objext; then
21501   ac_lo=0 ac_mid=0
21502   while :; do
21503     cat >conftest.$ac_ext <<_ACEOF
21504 /* confdefs.h.  */
21505 _ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h.  */
21509 #include <stddef.h>
21510 int
21511 main ()
21512 {
21513 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21514 test_array [0] = 0
21515
21516   ;
21517   return 0;
21518 }
21519 _ACEOF
21520 rm -f conftest.$ac_objext
21521 if { (ac_try="$ac_compile"
21522 case "(($ac_try" in
21523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21524   *) ac_try_echo=$ac_try;;
21525 esac
21526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21527   (eval "$ac_compile") 2>conftest.er1
21528   ac_status=$?
21529   grep -v '^ *+' conftest.er1 >conftest.err
21530   rm -f conftest.er1
21531   cat conftest.err >&5
21532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533   (exit $ac_status); } && {
21534          test -z "$ac_c_werror_flag" ||
21535          test ! -s conftest.err
21536        } && test -s conftest.$ac_objext; then
21537   ac_hi=$ac_mid; break
21538 else
21539   echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21541
21542         ac_lo=`expr $ac_mid + 1`
21543                         if test $ac_lo -le $ac_mid; then
21544                           ac_lo= ac_hi=
21545                           break
21546                         fi
21547                         ac_mid=`expr 2 '*' $ac_mid + 1`
21548 fi
21549
21550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21551   done
21552 else
21553   echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21555
21556         cat >conftest.$ac_ext <<_ACEOF
21557 /* confdefs.h.  */
21558 _ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h.  */
21562 #include <stddef.h>
21563 int
21564 main ()
21565 {
21566 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21567 test_array [0] = 0
21568
21569   ;
21570   return 0;
21571 }
21572 _ACEOF
21573 rm -f conftest.$ac_objext
21574 if { (ac_try="$ac_compile"
21575 case "(($ac_try" in
21576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577   *) ac_try_echo=$ac_try;;
21578 esac
21579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21580   (eval "$ac_compile") 2>conftest.er1
21581   ac_status=$?
21582   grep -v '^ *+' conftest.er1 >conftest.err
21583   rm -f conftest.er1
21584   cat conftest.err >&5
21585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586   (exit $ac_status); } && {
21587          test -z "$ac_c_werror_flag" ||
21588          test ! -s conftest.err
21589        } && test -s conftest.$ac_objext; then
21590   ac_hi=-1 ac_mid=-1
21591   while :; do
21592     cat >conftest.$ac_ext <<_ACEOF
21593 /* confdefs.h.  */
21594 _ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h.  */
21598 #include <stddef.h>
21599 int
21600 main ()
21601 {
21602 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21603 test_array [0] = 0
21604
21605   ;
21606   return 0;
21607 }
21608 _ACEOF
21609 rm -f conftest.$ac_objext
21610 if { (ac_try="$ac_compile"
21611 case "(($ac_try" in
21612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613   *) ac_try_echo=$ac_try;;
21614 esac
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616   (eval "$ac_compile") 2>conftest.er1
21617   ac_status=$?
21618   grep -v '^ *+' conftest.er1 >conftest.err
21619   rm -f conftest.er1
21620   cat conftest.err >&5
21621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622   (exit $ac_status); } && {
21623          test -z "$ac_c_werror_flag" ||
21624          test ! -s conftest.err
21625        } && test -s conftest.$ac_objext; then
21626   ac_lo=$ac_mid; break
21627 else
21628   echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21630
21631         ac_hi=`expr '(' $ac_mid ')' - 1`
21632                         if test $ac_mid -le $ac_hi; then
21633                           ac_lo= ac_hi=
21634                           break
21635                         fi
21636                         ac_mid=`expr 2 '*' $ac_mid`
21637 fi
21638
21639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21640   done
21641 else
21642   echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21644
21645         ac_lo= ac_hi=
21646 fi
21647
21648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21649 fi
21650
21651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21652 # Binary search between lo and hi bounds.
21653 while test "x$ac_lo" != "x$ac_hi"; do
21654   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21655   cat >conftest.$ac_ext <<_ACEOF
21656 /* confdefs.h.  */
21657 _ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h.  */
21661 #include <stddef.h>
21662 int
21663 main ()
21664 {
21665 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21666 test_array [0] = 0
21667
21668   ;
21669   return 0;
21670 }
21671 _ACEOF
21672 rm -f conftest.$ac_objext
21673 if { (ac_try="$ac_compile"
21674 case "(($ac_try" in
21675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676   *) ac_try_echo=$ac_try;;
21677 esac
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679   (eval "$ac_compile") 2>conftest.er1
21680   ac_status=$?
21681   grep -v '^ *+' conftest.er1 >conftest.err
21682   rm -f conftest.er1
21683   cat conftest.err >&5
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); } && {
21686          test -z "$ac_c_werror_flag" ||
21687          test ! -s conftest.err
21688        } && test -s conftest.$ac_objext; then
21689   ac_hi=$ac_mid
21690 else
21691   echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.$ac_ext >&5
21693
21694         ac_lo=`expr '(' $ac_mid ')' + 1`
21695 fi
21696
21697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21698 done
21699 case $ac_lo in
21700 ?*) fits_in_uint=$ac_lo;;
21701 '') result=? ;;
21702 esac
21703 else
21704   cat >conftest.$ac_ext <<_ACEOF
21705 /* confdefs.h.  */
21706 _ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h.  */
21710 #include <stddef.h>
21711 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21712 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21713 #include <stdio.h>
21714 #include <stdlib.h>
21715 int
21716 main ()
21717 {
21718
21719   FILE *f = fopen ("conftest.val", "w");
21720   if (! f)
21721     return 1;
21722   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21723     {
21724       long int i = longval ();
21725       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21726         return 1;
21727       fprintf (f, "%ld\n", i);
21728     }
21729   else
21730     {
21731       unsigned long int i = ulongval ();
21732       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21733         return 1;
21734       fprintf (f, "%lu\n", i);
21735     }
21736   return ferror (f) || fclose (f) != 0;
21737
21738   ;
21739   return 0;
21740 }
21741 _ACEOF
21742 rm -f conftest$ac_exeext
21743 if { (ac_try="$ac_link"
21744 case "(($ac_try" in
21745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746   *) ac_try_echo=$ac_try;;
21747 esac
21748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21749   (eval "$ac_link") 2>&5
21750   ac_status=$?
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21753   { (case "(($ac_try" in
21754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755   *) ac_try_echo=$ac_try;;
21756 esac
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758   (eval "$ac_try") 2>&5
21759   ac_status=$?
21760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); }; }; then
21762   fits_in_uint=`cat conftest.val`
21763 else
21764   echo "$as_me: program exited with status $ac_status" >&5
21765 echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21767
21768 ( exit $ac_status )
21769 result=?
21770 fi
21771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21772 fi
21773 rm -f conftest.val
21774
21775     if test "$fits_in_uint" = 1; then
21776                   cat >conftest.$ac_ext <<_ACEOF
21777 /* confdefs.h.  */
21778 _ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h.  */
21782 #include <stddef.h>
21783         extern size_t foo;
21784         extern unsigned long foo;
21785
21786 int
21787 main ()
21788 {
21789
21790   ;
21791   return 0;
21792 }
21793 _ACEOF
21794 rm -f conftest.$ac_objext
21795 if { (ac_try="$ac_compile"
21796 case "(($ac_try" in
21797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798   *) ac_try_echo=$ac_try;;
21799 esac
21800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801   (eval "$ac_compile") 2>conftest.er1
21802   ac_status=$?
21803   grep -v '^ *+' conftest.er1 >conftest.err
21804   rm -f conftest.er1
21805   cat conftest.err >&5
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); } && {
21808          test -z "$ac_c_werror_flag" ||
21809          test ! -s conftest.err
21810        } && test -s conftest.$ac_objext; then
21811   fits_in_uint=0
21812 else
21813   echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21815
21816
21817 fi
21818
21819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820     fi
21821     if test -z "$result"; then
21822       if test "$fits_in_uint" = 1; then
21823         result="$res_hi$res_lo"U
21824       else
21825         result="$res_hi$res_lo"UL
21826       fi
21827     else
21828             result='~(size_t)0'
21829     fi
21830   fi
21831   { echo "$as_me:$LINENO: result: $result" >&5
21832 echo "${ECHO_T}$result" >&6; }
21833   if test "$result" != yes; then
21834
21835 cat >>confdefs.h <<_ACEOF
21836 #define SIZE_MAX $result
21837 _ACEOF
21838
21839   fi
21840
21841
21842
21843
21844
21845 for ac_header in stdint.h
21846 do
21847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21849   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21852   echo $ECHO_N "(cached) $ECHO_C" >&6
21853 fi
21854 ac_res=`eval echo '${'$as_ac_Header'}'`
21855                { echo "$as_me:$LINENO: result: $ac_res" >&5
21856 echo "${ECHO_T}$ac_res" >&6; }
21857 else
21858   # Is the header compilable?
21859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21861 cat >conftest.$ac_ext <<_ACEOF
21862 /* confdefs.h.  */
21863 _ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h.  */
21867 $ac_includes_default
21868 #include <$ac_header>
21869 _ACEOF
21870 rm -f conftest.$ac_objext
21871 if { (ac_try="$ac_compile"
21872 case "(($ac_try" in
21873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874   *) ac_try_echo=$ac_try;;
21875 esac
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877   (eval "$ac_compile") 2>conftest.er1
21878   ac_status=$?
21879   grep -v '^ *+' conftest.er1 >conftest.err
21880   rm -f conftest.er1
21881   cat conftest.err >&5
21882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883   (exit $ac_status); } && {
21884          test -z "$ac_c_werror_flag" ||
21885          test ! -s conftest.err
21886        } && test -s conftest.$ac_objext; then
21887   ac_header_compiler=yes
21888 else
21889   echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21891
21892         ac_header_compiler=no
21893 fi
21894
21895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21897 echo "${ECHO_T}$ac_header_compiler" >&6; }
21898
21899 # Is the header present?
21900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21902 cat >conftest.$ac_ext <<_ACEOF
21903 /* confdefs.h.  */
21904 _ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h.  */
21908 #include <$ac_header>
21909 _ACEOF
21910 if { (ac_try="$ac_cpp conftest.$ac_ext"
21911 case "(($ac_try" in
21912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21913   *) ac_try_echo=$ac_try;;
21914 esac
21915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21917   ac_status=$?
21918   grep -v '^ *+' conftest.er1 >conftest.err
21919   rm -f conftest.er1
21920   cat conftest.err >&5
21921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922   (exit $ac_status); } >/dev/null && {
21923          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21924          test ! -s conftest.err
21925        }; then
21926   ac_header_preproc=yes
21927 else
21928   echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21930
21931   ac_header_preproc=no
21932 fi
21933
21934 rm -f conftest.err conftest.$ac_ext
21935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21936 echo "${ECHO_T}$ac_header_preproc" >&6; }
21937
21938 # So?  What about this header?
21939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21940   yes:no: )
21941     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21943     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21945     ac_header_preproc=yes
21946     ;;
21947   no:yes:* )
21948     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21950     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21951 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21952     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21954     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21955 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21956     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21958     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21960
21961     ;;
21962 esac
21963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21966   echo $ECHO_N "(cached) $ECHO_C" >&6
21967 else
21968   eval "$as_ac_Header=\$ac_header_preproc"
21969 fi
21970 ac_res=`eval echo '${'$as_ac_Header'}'`
21971                { echo "$as_me:$LINENO: result: $ac_res" >&5
21972 echo "${ECHO_T}$ac_res" >&6; }
21973
21974 fi
21975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21976   cat >>confdefs.h <<_ACEOF
21977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21978 _ACEOF
21979
21980 fi
21981
21982 done
21983
21984
21985
21986
21987
21988
21989
21990
21991   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21992 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21993 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21994   echo $ECHO_N "(cached) $ECHO_C" >&6
21995 else
21996   cat >conftest.$ac_ext <<_ACEOF
21997 /* confdefs.h.  */
21998 _ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h.  */
22002 $ac_includes_default
22003 typedef ptrdiff_t ac__type_new_;
22004 int
22005 main ()
22006 {
22007 if ((ac__type_new_ *) 0)
22008   return 0;
22009 if (sizeof (ac__type_new_))
22010   return 0;
22011   ;
22012   return 0;
22013 }
22014 _ACEOF
22015 rm -f conftest.$ac_objext
22016 if { (ac_try="$ac_compile"
22017 case "(($ac_try" in
22018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019   *) ac_try_echo=$ac_try;;
22020 esac
22021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022   (eval "$ac_compile") 2>conftest.er1
22023   ac_status=$?
22024   grep -v '^ *+' conftest.er1 >conftest.err
22025   rm -f conftest.er1
22026   cat conftest.err >&5
22027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028   (exit $ac_status); } && {
22029          test -z "$ac_c_werror_flag" ||
22030          test ! -s conftest.err
22031        } && test -s conftest.$ac_objext; then
22032   ac_cv_type_ptrdiff_t=yes
22033 else
22034   echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22036
22037         ac_cv_type_ptrdiff_t=no
22038 fi
22039
22040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22041 fi
22042 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22043 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22044 if test $ac_cv_type_ptrdiff_t = yes; then
22045   :
22046 else
22047
22048 cat >>confdefs.h <<\_ACEOF
22049 #define ptrdiff_t long
22050 _ACEOF
22051
22052
22053 fi
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22066 stdlib.h string.h unistd.h sys/param.h
22067 do
22068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22070   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22073   echo $ECHO_N "(cached) $ECHO_C" >&6
22074 fi
22075 ac_res=`eval echo '${'$as_ac_Header'}'`
22076                { echo "$as_me:$LINENO: result: $ac_res" >&5
22077 echo "${ECHO_T}$ac_res" >&6; }
22078 else
22079   # Is the header compilable?
22080 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22082 cat >conftest.$ac_ext <<_ACEOF
22083 /* confdefs.h.  */
22084 _ACEOF
22085 cat confdefs.h >>conftest.$ac_ext
22086 cat >>conftest.$ac_ext <<_ACEOF
22087 /* end confdefs.h.  */
22088 $ac_includes_default
22089 #include <$ac_header>
22090 _ACEOF
22091 rm -f conftest.$ac_objext
22092 if { (ac_try="$ac_compile"
22093 case "(($ac_try" in
22094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095   *) ac_try_echo=$ac_try;;
22096 esac
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098   (eval "$ac_compile") 2>conftest.er1
22099   ac_status=$?
22100   grep -v '^ *+' conftest.er1 >conftest.err
22101   rm -f conftest.er1
22102   cat conftest.err >&5
22103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104   (exit $ac_status); } && {
22105          test -z "$ac_c_werror_flag" ||
22106          test ! -s conftest.err
22107        } && test -s conftest.$ac_objext; then
22108   ac_header_compiler=yes
22109 else
22110   echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22112
22113         ac_header_compiler=no
22114 fi
22115
22116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22118 echo "${ECHO_T}$ac_header_compiler" >&6; }
22119
22120 # Is the header present?
22121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22123 cat >conftest.$ac_ext <<_ACEOF
22124 /* confdefs.h.  */
22125 _ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h.  */
22129 #include <$ac_header>
22130 _ACEOF
22131 if { (ac_try="$ac_cpp conftest.$ac_ext"
22132 case "(($ac_try" in
22133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22134   *) ac_try_echo=$ac_try;;
22135 esac
22136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22137   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22138   ac_status=$?
22139   grep -v '^ *+' conftest.er1 >conftest.err
22140   rm -f conftest.er1
22141   cat conftest.err >&5
22142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143   (exit $ac_status); } >/dev/null && {
22144          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22145          test ! -s conftest.err
22146        }; then
22147   ac_header_preproc=yes
22148 else
22149   echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152   ac_header_preproc=no
22153 fi
22154
22155 rm -f conftest.err conftest.$ac_ext
22156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22157 echo "${ECHO_T}$ac_header_preproc" >&6; }
22158
22159 # So?  What about this header?
22160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22161   yes:no: )
22162     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22166     ac_header_preproc=yes
22167     ;;
22168   no:yes:* )
22169     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22171     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22172 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22173     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22175     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22176 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22179     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22181
22182     ;;
22183 esac
22184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22187   echo $ECHO_N "(cached) $ECHO_C" >&6
22188 else
22189   eval "$as_ac_Header=\$ac_header_preproc"
22190 fi
22191 ac_res=`eval echo '${'$as_ac_Header'}'`
22192                { echo "$as_me:$LINENO: result: $ac_res" >&5
22193 echo "${ECHO_T}$ac_res" >&6; }
22194
22195 fi
22196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22197   cat >>confdefs.h <<_ACEOF
22198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22199 _ACEOF
22200
22201 fi
22202
22203 done
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22229 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22230 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22231 __fsetlocking
22232 do
22233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22237   echo $ECHO_N "(cached) $ECHO_C" >&6
22238 else
22239   cat >conftest.$ac_ext <<_ACEOF
22240 /* confdefs.h.  */
22241 _ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h.  */
22245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22247 #define $ac_func innocuous_$ac_func
22248
22249 /* System header to define __stub macros and hopefully few prototypes,
22250     which can conflict with char $ac_func (); below.
22251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22252     <limits.h> exists even on freestanding compilers.  */
22253
22254 #ifdef __STDC__
22255 # include <limits.h>
22256 #else
22257 # include <assert.h>
22258 #endif
22259
22260 #undef $ac_func
22261
22262 /* Override any GCC internal prototype to avoid an error.
22263    Use char because int might match the return type of a GCC
22264    builtin and then its argument prototype would still apply.  */
22265 #ifdef __cplusplus
22266 extern "C"
22267 #endif
22268 char $ac_func ();
22269 /* The GNU C library defines this for functions which it implements
22270     to always fail with ENOSYS.  Some functions are actually named
22271     something starting with __ and the normal name is an alias.  */
22272 #if defined __stub_$ac_func || defined __stub___$ac_func
22273 choke me
22274 #endif
22275
22276 int
22277 main ()
22278 {
22279 return $ac_func ();
22280   ;
22281   return 0;
22282 }
22283 _ACEOF
22284 rm -f conftest.$ac_objext conftest$ac_exeext
22285 if { (ac_try="$ac_link"
22286 case "(($ac_try" in
22287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288   *) ac_try_echo=$ac_try;;
22289 esac
22290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291   (eval "$ac_link") 2>conftest.er1
22292   ac_status=$?
22293   grep -v '^ *+' conftest.er1 >conftest.err
22294   rm -f conftest.er1
22295   cat conftest.err >&5
22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297   (exit $ac_status); } && {
22298          test -z "$ac_c_werror_flag" ||
22299          test ! -s conftest.err
22300        } && test -s conftest$ac_exeext &&
22301        $as_test_x conftest$ac_exeext; then
22302   eval "$as_ac_var=yes"
22303 else
22304   echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22306
22307         eval "$as_ac_var=no"
22308 fi
22309
22310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22311       conftest$ac_exeext conftest.$ac_ext
22312 fi
22313 ac_res=`eval echo '${'$as_ac_var'}'`
22314                { echo "$as_me:$LINENO: result: $ac_res" >&5
22315 echo "${ECHO_T}$ac_res" >&6; }
22316 if test `eval echo '${'$as_ac_var'}'` = yes; then
22317   cat >>confdefs.h <<_ACEOF
22318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22319 _ACEOF
22320
22321 fi
22322 done
22323
22324
22325
22326   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22327 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22328 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22329   echo $ECHO_N "(cached) $ECHO_C" >&6
22330 else
22331   cat >conftest.$ac_ext <<_ACEOF
22332 /* confdefs.h.  */
22333 _ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h.  */
22337 #include <stdio.h>
22338 int
22339 main ()
22340 {
22341
22342 #ifndef _snprintf
22343   char *p = (char *) _snprintf;
22344 #endif
22345
22346   ;
22347   return 0;
22348 }
22349 _ACEOF
22350 rm -f conftest.$ac_objext
22351 if { (ac_try="$ac_compile"
22352 case "(($ac_try" in
22353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354   *) ac_try_echo=$ac_try;;
22355 esac
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357   (eval "$ac_compile") 2>conftest.er1
22358   ac_status=$?
22359   grep -v '^ *+' conftest.er1 >conftest.err
22360   rm -f conftest.er1
22361   cat conftest.err >&5
22362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363   (exit $ac_status); } && {
22364          test -z "$ac_c_werror_flag" ||
22365          test ! -s conftest.err
22366        } && test -s conftest.$ac_objext; then
22367   ac_cv_have_decl__snprintf=yes
22368 else
22369   echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22371
22372         ac_cv_have_decl__snprintf=no
22373 fi
22374
22375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22376 fi
22377 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22378 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22379   if test $ac_cv_have_decl__snprintf = yes; then
22380     gt_value=1
22381   else
22382     gt_value=0
22383   fi
22384
22385 cat >>confdefs.h <<_ACEOF
22386 #define HAVE_DECL__SNPRINTF $gt_value
22387 _ACEOF
22388
22389
22390
22391   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22392 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22393 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22394   echo $ECHO_N "(cached) $ECHO_C" >&6
22395 else
22396   cat >conftest.$ac_ext <<_ACEOF
22397 /* confdefs.h.  */
22398 _ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h.  */
22402 #include <stdio.h>
22403 int
22404 main ()
22405 {
22406
22407 #ifndef _snwprintf
22408   char *p = (char *) _snwprintf;
22409 #endif
22410
22411   ;
22412   return 0;
22413 }
22414 _ACEOF
22415 rm -f conftest.$ac_objext
22416 if { (ac_try="$ac_compile"
22417 case "(($ac_try" in
22418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419   *) ac_try_echo=$ac_try;;
22420 esac
22421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22422   (eval "$ac_compile") 2>conftest.er1
22423   ac_status=$?
22424   grep -v '^ *+' conftest.er1 >conftest.err
22425   rm -f conftest.er1
22426   cat conftest.err >&5
22427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428   (exit $ac_status); } && {
22429          test -z "$ac_c_werror_flag" ||
22430          test ! -s conftest.err
22431        } && test -s conftest.$ac_objext; then
22432   ac_cv_have_decl__snwprintf=yes
22433 else
22434   echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22436
22437         ac_cv_have_decl__snwprintf=no
22438 fi
22439
22440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441 fi
22442 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22443 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22444   if test $ac_cv_have_decl__snwprintf = yes; then
22445     gt_value=1
22446   else
22447     gt_value=0
22448   fi
22449
22450 cat >>confdefs.h <<_ACEOF
22451 #define HAVE_DECL__SNWPRINTF $gt_value
22452 _ACEOF
22453
22454
22455
22456
22457   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22458 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22459 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22460   echo $ECHO_N "(cached) $ECHO_C" >&6
22461 else
22462   cat >conftest.$ac_ext <<_ACEOF
22463 /* confdefs.h.  */
22464 _ACEOF
22465 cat confdefs.h >>conftest.$ac_ext
22466 cat >>conftest.$ac_ext <<_ACEOF
22467 /* end confdefs.h.  */
22468 #include <stdio.h>
22469 int
22470 main ()
22471 {
22472
22473 #ifndef feof_unlocked
22474   char *p = (char *) feof_unlocked;
22475 #endif
22476
22477   ;
22478   return 0;
22479 }
22480 _ACEOF
22481 rm -f conftest.$ac_objext
22482 if { (ac_try="$ac_compile"
22483 case "(($ac_try" in
22484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485   *) ac_try_echo=$ac_try;;
22486 esac
22487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488   (eval "$ac_compile") 2>conftest.er1
22489   ac_status=$?
22490   grep -v '^ *+' conftest.er1 >conftest.err
22491   rm -f conftest.er1
22492   cat conftest.err >&5
22493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494   (exit $ac_status); } && {
22495          test -z "$ac_c_werror_flag" ||
22496          test ! -s conftest.err
22497        } && test -s conftest.$ac_objext; then
22498   ac_cv_have_decl_feof_unlocked=yes
22499 else
22500   echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22502
22503         ac_cv_have_decl_feof_unlocked=no
22504 fi
22505
22506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507 fi
22508 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22509 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22510   if test $ac_cv_have_decl_feof_unlocked = yes; then
22511     gt_value=1
22512   else
22513     gt_value=0
22514   fi
22515
22516 cat >>confdefs.h <<_ACEOF
22517 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22518 _ACEOF
22519
22520
22521
22522   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22523 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22524 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22525   echo $ECHO_N "(cached) $ECHO_C" >&6
22526 else
22527   cat >conftest.$ac_ext <<_ACEOF
22528 /* confdefs.h.  */
22529 _ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h.  */
22533 #include <stdio.h>
22534 int
22535 main ()
22536 {
22537
22538 #ifndef fgets_unlocked
22539   char *p = (char *) fgets_unlocked;
22540 #endif
22541
22542   ;
22543   return 0;
22544 }
22545 _ACEOF
22546 rm -f conftest.$ac_objext
22547 if { (ac_try="$ac_compile"
22548 case "(($ac_try" in
22549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550   *) ac_try_echo=$ac_try;;
22551 esac
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553   (eval "$ac_compile") 2>conftest.er1
22554   ac_status=$?
22555   grep -v '^ *+' conftest.er1 >conftest.err
22556   rm -f conftest.er1
22557   cat conftest.err >&5
22558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559   (exit $ac_status); } && {
22560          test -z "$ac_c_werror_flag" ||
22561          test ! -s conftest.err
22562        } && test -s conftest.$ac_objext; then
22563   ac_cv_have_decl_fgets_unlocked=yes
22564 else
22565   echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22567
22568         ac_cv_have_decl_fgets_unlocked=no
22569 fi
22570
22571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22572 fi
22573 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22574 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22575   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22576     gt_value=1
22577   else
22578     gt_value=0
22579   fi
22580
22581 cat >>confdefs.h <<_ACEOF
22582 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22583 _ACEOF
22584
22585
22586
22587   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22588 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22589 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22590   echo $ECHO_N "(cached) $ECHO_C" >&6
22591 else
22592   cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h.  */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h.  */
22598 #include <stdio.h>
22599 int
22600 main ()
22601 {
22602
22603 #ifndef getc_unlocked
22604   char *p = (char *) getc_unlocked;
22605 #endif
22606
22607   ;
22608   return 0;
22609 }
22610 _ACEOF
22611 rm -f conftest.$ac_objext
22612 if { (ac_try="$ac_compile"
22613 case "(($ac_try" in
22614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22615   *) ac_try_echo=$ac_try;;
22616 esac
22617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22618   (eval "$ac_compile") 2>conftest.er1
22619   ac_status=$?
22620   grep -v '^ *+' conftest.er1 >conftest.err
22621   rm -f conftest.er1
22622   cat conftest.err >&5
22623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624   (exit $ac_status); } && {
22625          test -z "$ac_c_werror_flag" ||
22626          test ! -s conftest.err
22627        } && test -s conftest.$ac_objext; then
22628   ac_cv_have_decl_getc_unlocked=yes
22629 else
22630   echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.$ac_ext >&5
22632
22633         ac_cv_have_decl_getc_unlocked=no
22634 fi
22635
22636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22637 fi
22638 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22639 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22640   if test $ac_cv_have_decl_getc_unlocked = yes; then
22641     gt_value=1
22642   else
22643     gt_value=0
22644   fi
22645
22646 cat >>confdefs.h <<_ACEOF
22647 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22648 _ACEOF
22649
22650
22651
22652   case $gt_cv_func_printf_posix in
22653     *yes) HAVE_POSIX_PRINTF=1 ;;
22654     *) HAVE_POSIX_PRINTF=0 ;;
22655   esac
22656
22657   if test "$ac_cv_func_asprintf" = yes; then
22658     HAVE_ASPRINTF=1
22659   else
22660     HAVE_ASPRINTF=0
22661   fi
22662
22663   if test "$ac_cv_func_snprintf" = yes; then
22664     HAVE_SNPRINTF=1
22665   else
22666     HAVE_SNPRINTF=0
22667   fi
22668
22669   if test "$ac_cv_func_wprintf" = yes; then
22670     HAVE_WPRINTF=1
22671   else
22672     HAVE_WPRINTF=0
22673   fi
22674
22675
22676
22677
22678
22679
22680
22681           am_save_CPPFLAGS="$CPPFLAGS"
22682
22683   for element in $INCICONV; do
22684     haveit=
22685     for x in $CPPFLAGS; do
22686
22687   acl_save_prefix="$prefix"
22688   prefix="$acl_final_prefix"
22689   acl_save_exec_prefix="$exec_prefix"
22690   exec_prefix="$acl_final_exec_prefix"
22691   eval x=\"$x\"
22692   exec_prefix="$acl_save_exec_prefix"
22693   prefix="$acl_save_prefix"
22694
22695       if test "X$x" = "X$element"; then
22696         haveit=yes
22697         break
22698       fi
22699     done
22700     if test -z "$haveit"; then
22701       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22702     fi
22703   done
22704
22705
22706   { echo "$as_me:$LINENO: checking for iconv" >&5
22707 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22708 if test "${am_cv_func_iconv+set}" = set; then
22709   echo $ECHO_N "(cached) $ECHO_C" >&6
22710 else
22711
22712     am_cv_func_iconv="no, consider installing GNU libiconv"
22713     am_cv_lib_iconv=no
22714     cat >conftest.$ac_ext <<_ACEOF
22715 /* confdefs.h.  */
22716 _ACEOF
22717 cat confdefs.h >>conftest.$ac_ext
22718 cat >>conftest.$ac_ext <<_ACEOF
22719 /* end confdefs.h.  */
22720 #include <stdlib.h>
22721 #include <iconv.h>
22722 int
22723 main ()
22724 {
22725 iconv_t cd = iconv_open("","");
22726        iconv(cd,NULL,NULL,NULL,NULL);
22727        iconv_close(cd);
22728   ;
22729   return 0;
22730 }
22731 _ACEOF
22732 rm -f conftest.$ac_objext conftest$ac_exeext
22733 if { (ac_try="$ac_link"
22734 case "(($ac_try" in
22735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22736   *) ac_try_echo=$ac_try;;
22737 esac
22738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22739   (eval "$ac_link") 2>conftest.er1
22740   ac_status=$?
22741   grep -v '^ *+' conftest.er1 >conftest.err
22742   rm -f conftest.er1
22743   cat conftest.err >&5
22744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745   (exit $ac_status); } && {
22746          test -z "$ac_c_werror_flag" ||
22747          test ! -s conftest.err
22748        } && test -s conftest$ac_exeext &&
22749        $as_test_x conftest$ac_exeext; then
22750   am_cv_func_iconv=yes
22751 else
22752   echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22754
22755
22756 fi
22757
22758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22759       conftest$ac_exeext conftest.$ac_ext
22760     if test "$am_cv_func_iconv" != yes; then
22761       am_save_LIBS="$LIBS"
22762       LIBS="$LIBS $LIBICONV"
22763       cat >conftest.$ac_ext <<_ACEOF
22764 /* confdefs.h.  */
22765 _ACEOF
22766 cat confdefs.h >>conftest.$ac_ext
22767 cat >>conftest.$ac_ext <<_ACEOF
22768 /* end confdefs.h.  */
22769 #include <stdlib.h>
22770 #include <iconv.h>
22771 int
22772 main ()
22773 {
22774 iconv_t cd = iconv_open("","");
22775          iconv(cd,NULL,NULL,NULL,NULL);
22776          iconv_close(cd);
22777   ;
22778   return 0;
22779 }
22780 _ACEOF
22781 rm -f conftest.$ac_objext conftest$ac_exeext
22782 if { (ac_try="$ac_link"
22783 case "(($ac_try" in
22784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785   *) ac_try_echo=$ac_try;;
22786 esac
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788   (eval "$ac_link") 2>conftest.er1
22789   ac_status=$?
22790   grep -v '^ *+' conftest.er1 >conftest.err
22791   rm -f conftest.er1
22792   cat conftest.err >&5
22793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794   (exit $ac_status); } && {
22795          test -z "$ac_c_werror_flag" ||
22796          test ! -s conftest.err
22797        } && test -s conftest$ac_exeext &&
22798        $as_test_x conftest$ac_exeext; then
22799   am_cv_lib_iconv=yes
22800         am_cv_func_iconv=yes
22801 else
22802   echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22804
22805
22806 fi
22807
22808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22809       conftest$ac_exeext conftest.$ac_ext
22810       LIBS="$am_save_LIBS"
22811     fi
22812
22813 fi
22814 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22815 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22816   if test "$am_cv_func_iconv" = yes; then
22817
22818 cat >>confdefs.h <<\_ACEOF
22819 #define HAVE_ICONV 1
22820 _ACEOF
22821
22822   fi
22823   if test "$am_cv_lib_iconv" = yes; then
22824     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22825 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22826     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22827 echo "${ECHO_T}$LIBICONV" >&6; }
22828   else
22829             CPPFLAGS="$am_save_CPPFLAGS"
22830     LIBICONV=
22831     LTLIBICONV=
22832   fi
22833
22834
22835
22836   if test "$am_cv_func_iconv" = yes; then
22837     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22838 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22839     if test "${am_cv_proto_iconv+set}" = set; then
22840   echo $ECHO_N "(cached) $ECHO_C" >&6
22841 else
22842
22843       cat >conftest.$ac_ext <<_ACEOF
22844 /* confdefs.h.  */
22845 _ACEOF
22846 cat confdefs.h >>conftest.$ac_ext
22847 cat >>conftest.$ac_ext <<_ACEOF
22848 /* end confdefs.h.  */
22849
22850 #include <stdlib.h>
22851 #include <iconv.h>
22852 extern
22853 #ifdef __cplusplus
22854 "C"
22855 #endif
22856 #if defined(__STDC__) || defined(__cplusplus)
22857 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22858 #else
22859 size_t iconv();
22860 #endif
22861
22862 int
22863 main ()
22864 {
22865
22866   ;
22867   return 0;
22868 }
22869 _ACEOF
22870 rm -f conftest.$ac_objext
22871 if { (ac_try="$ac_compile"
22872 case "(($ac_try" in
22873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22874   *) ac_try_echo=$ac_try;;
22875 esac
22876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22877   (eval "$ac_compile") 2>conftest.er1
22878   ac_status=$?
22879   grep -v '^ *+' conftest.er1 >conftest.err
22880   rm -f conftest.er1
22881   cat conftest.err >&5
22882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883   (exit $ac_status); } && {
22884          test -z "$ac_c_werror_flag" ||
22885          test ! -s conftest.err
22886        } && test -s conftest.$ac_objext; then
22887   am_cv_proto_iconv_arg1=""
22888 else
22889   echo "$as_me: failed program was:" >&5
22890 sed 's/^/| /' conftest.$ac_ext >&5
22891
22892         am_cv_proto_iconv_arg1="const"
22893 fi
22894
22895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22896       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);"
22897 fi
22898
22899     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22900     { echo "$as_me:$LINENO: result: ${ac_t:-
22901          }$am_cv_proto_iconv" >&5
22902 echo "${ECHO_T}${ac_t:-
22903          }$am_cv_proto_iconv" >&6; }
22904
22905 cat >>confdefs.h <<_ACEOF
22906 #define ICONV_CONST $am_cv_proto_iconv_arg1
22907 _ACEOF
22908
22909   fi
22910
22911
22912   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22913 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22914 if test "${am_cv_langinfo_codeset+set}" = set; then
22915   echo $ECHO_N "(cached) $ECHO_C" >&6
22916 else
22917   cat >conftest.$ac_ext <<_ACEOF
22918 /* confdefs.h.  */
22919 _ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h.  */
22923 #include <langinfo.h>
22924 int
22925 main ()
22926 {
22927 char* cs = nl_langinfo(CODESET);
22928   ;
22929   return 0;
22930 }
22931 _ACEOF
22932 rm -f conftest.$ac_objext conftest$ac_exeext
22933 if { (ac_try="$ac_link"
22934 case "(($ac_try" in
22935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936   *) ac_try_echo=$ac_try;;
22937 esac
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939   (eval "$ac_link") 2>conftest.er1
22940   ac_status=$?
22941   grep -v '^ *+' conftest.er1 >conftest.err
22942   rm -f conftest.er1
22943   cat conftest.err >&5
22944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945   (exit $ac_status); } && {
22946          test -z "$ac_c_werror_flag" ||
22947          test ! -s conftest.err
22948        } && test -s conftest$ac_exeext &&
22949        $as_test_x conftest$ac_exeext; then
22950   am_cv_langinfo_codeset=yes
22951 else
22952   echo "$as_me: failed program was:" >&5
22953 sed 's/^/| /' conftest.$ac_ext >&5
22954
22955         am_cv_langinfo_codeset=no
22956 fi
22957
22958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22959       conftest$ac_exeext conftest.$ac_ext
22960
22961 fi
22962 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22963 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22964   if test $am_cv_langinfo_codeset = yes; then
22965
22966 cat >>confdefs.h <<\_ACEOF
22967 #define HAVE_LANGINFO_CODESET 1
22968 _ACEOF
22969
22970   fi
22971
22972   if test $ac_cv_header_locale_h = yes; then
22973
22974   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22975 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22976 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22977   echo $ECHO_N "(cached) $ECHO_C" >&6
22978 else
22979   cat >conftest.$ac_ext <<_ACEOF
22980 /* confdefs.h.  */
22981 _ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h.  */
22985 #include <locale.h>
22986 int
22987 main ()
22988 {
22989 return LC_MESSAGES
22990   ;
22991   return 0;
22992 }
22993 _ACEOF
22994 rm -f conftest.$ac_objext conftest$ac_exeext
22995 if { (ac_try="$ac_link"
22996 case "(($ac_try" in
22997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22998   *) ac_try_echo=$ac_try;;
22999 esac
23000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23001   (eval "$ac_link") 2>conftest.er1
23002   ac_status=$?
23003   grep -v '^ *+' conftest.er1 >conftest.err
23004   rm -f conftest.er1
23005   cat conftest.err >&5
23006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007   (exit $ac_status); } && {
23008          test -z "$ac_c_werror_flag" ||
23009          test ! -s conftest.err
23010        } && test -s conftest$ac_exeext &&
23011        $as_test_x conftest$ac_exeext; then
23012   gt_cv_val_LC_MESSAGES=yes
23013 else
23014   echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23016
23017         gt_cv_val_LC_MESSAGES=no
23018 fi
23019
23020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23021       conftest$ac_exeext conftest.$ac_ext
23022 fi
23023 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23024 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23025   if test $gt_cv_val_LC_MESSAGES = yes; then
23026
23027 cat >>confdefs.h <<\_ACEOF
23028 #define HAVE_LC_MESSAGES 1
23029 _ACEOF
23030
23031   fi
23032
23033   fi
23034
23035   if test -n "$INTL_MACOSX_LIBS"; then
23036     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23037   fi
23038
23039                       for ac_prog in bison
23040 do
23041   # Extract the first word of "$ac_prog", so it can be a program name with args.
23042 set dummy $ac_prog; ac_word=$2
23043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23045 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23046   echo $ECHO_N "(cached) $ECHO_C" >&6
23047 else
23048   if test -n "$INTLBISON"; then
23049   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23050 else
23051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23052 for as_dir in $PATH
23053 do
23054   IFS=$as_save_IFS
23055   test -z "$as_dir" && as_dir=.
23056   for ac_exec_ext in '' $ac_executable_extensions; do
23057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23058     ac_cv_prog_INTLBISON="$ac_prog"
23059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23060     break 2
23061   fi
23062 done
23063 done
23064 IFS=$as_save_IFS
23065
23066 fi
23067 fi
23068 INTLBISON=$ac_cv_prog_INTLBISON
23069 if test -n "$INTLBISON"; then
23070   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23071 echo "${ECHO_T}$INTLBISON" >&6; }
23072 else
23073   { echo "$as_me:$LINENO: result: no" >&5
23074 echo "${ECHO_T}no" >&6; }
23075 fi
23076
23077
23078   test -n "$INTLBISON" && break
23079 done
23080
23081   if test -z "$INTLBISON"; then
23082     ac_verc_fail=yes
23083   else
23084         { echo "$as_me:$LINENO: checking version of bison" >&5
23085 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23086     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23087     case $ac_prog_version in
23088       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23089       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23090          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23091       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23092     esac
23093     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23094 echo "${ECHO_T}$ac_prog_version" >&6; }
23095   fi
23096   if test $ac_verc_fail = yes; then
23097     INTLBISON=:
23098   fi
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23116 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23117 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23118   echo $ECHO_N "(cached) $ECHO_C" >&6
23119 else
23120   gt_save_CPPFLAGS="$CPPFLAGS"
23121      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23122      gt_save_LIBS="$LIBS"
23123      LIBS="$LIBS -framework CoreFoundation"
23124      cat >conftest.$ac_ext <<_ACEOF
23125 /* confdefs.h.  */
23126 _ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h.  */
23130 #include <CFPreferences.h>
23131 int
23132 main ()
23133 {
23134 CFPreferencesCopyAppValue(NULL, NULL)
23135   ;
23136   return 0;
23137 }
23138 _ACEOF
23139 rm -f conftest.$ac_objext conftest$ac_exeext
23140 if { (ac_try="$ac_link"
23141 case "(($ac_try" in
23142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143   *) ac_try_echo=$ac_try;;
23144 esac
23145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146   (eval "$ac_link") 2>conftest.er1
23147   ac_status=$?
23148   grep -v '^ *+' conftest.er1 >conftest.err
23149   rm -f conftest.er1
23150   cat conftest.err >&5
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); } && {
23153          test -z "$ac_c_werror_flag" ||
23154          test ! -s conftest.err
23155        } && test -s conftest$ac_exeext &&
23156        $as_test_x conftest$ac_exeext; then
23157   gt_cv_func_CFPreferencesCopyAppValue=yes
23158 else
23159   echo "$as_me: failed program was:" >&5
23160 sed 's/^/| /' conftest.$ac_ext >&5
23161
23162         gt_cv_func_CFPreferencesCopyAppValue=no
23163 fi
23164
23165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23166       conftest$ac_exeext conftest.$ac_ext
23167      CPPFLAGS="$gt_save_CPPFLAGS"
23168      LIBS="$gt_save_LIBS"
23169 fi
23170 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23171 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23172   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23173
23174 cat >>confdefs.h <<\_ACEOF
23175 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23176 _ACEOF
23177
23178   fi
23179     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23180 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23181 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23182   echo $ECHO_N "(cached) $ECHO_C" >&6
23183 else
23184   gt_save_CPPFLAGS="$CPPFLAGS"
23185      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23186      gt_save_LIBS="$LIBS"
23187      LIBS="$LIBS -framework CoreFoundation"
23188      cat >conftest.$ac_ext <<_ACEOF
23189 /* confdefs.h.  */
23190 _ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h.  */
23194 #include <CFLocale.h>
23195 int
23196 main ()
23197 {
23198 CFLocaleCopyCurrent();
23199   ;
23200   return 0;
23201 }
23202 _ACEOF
23203 rm -f conftest.$ac_objext conftest$ac_exeext
23204 if { (ac_try="$ac_link"
23205 case "(($ac_try" in
23206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23207   *) ac_try_echo=$ac_try;;
23208 esac
23209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23210   (eval "$ac_link") 2>conftest.er1
23211   ac_status=$?
23212   grep -v '^ *+' conftest.er1 >conftest.err
23213   rm -f conftest.er1
23214   cat conftest.err >&5
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); } && {
23217          test -z "$ac_c_werror_flag" ||
23218          test ! -s conftest.err
23219        } && test -s conftest$ac_exeext &&
23220        $as_test_x conftest$ac_exeext; then
23221   gt_cv_func_CFLocaleCopyCurrent=yes
23222 else
23223   echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23225
23226         gt_cv_func_CFLocaleCopyCurrent=no
23227 fi
23228
23229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23230       conftest$ac_exeext conftest.$ac_ext
23231      CPPFLAGS="$gt_save_CPPFLAGS"
23232      LIBS="$gt_save_LIBS"
23233 fi
23234 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23235 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23236   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23237
23238 cat >>confdefs.h <<\_ACEOF
23239 #define HAVE_CFLOCALECOPYCURRENT 1
23240 _ACEOF
23241
23242   fi
23243   INTL_MACOSX_LIBS=
23244   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23245     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23246   fi
23247
23248
23249
23250
23251   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23252 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23253     # Check whether --enable-nls was given.
23254 if test "${enable_nls+set}" = set; then
23255   enableval=$enable_nls; USE_NLS=$enableval
23256 else
23257   USE_NLS=yes
23258 fi
23259
23260   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23261 echo "${ECHO_T}$USE_NLS" >&6; }
23262
23263
23264
23265
23266     BUILD_INCLUDED_LIBINTL=no
23267     USE_INCLUDED_LIBINTL=no
23268
23269   LIBINTL=
23270   LTLIBINTL=
23271   POSUB=
23272
23273     if test "$USE_NLS" = "yes"; then
23274     gt_use_preinstalled_gnugettext=no
23275
23276       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23277 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23278
23279 # Check whether --with-included-gettext was given.
23280 if test "${with_included_gettext+set}" = set; then
23281   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23282 else
23283   nls_cv_force_use_gnu_gettext=no
23284 fi
23285
23286       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23287 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23288
23289       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23290       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23291
23292
23293
23294
23295
23296
23297         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23298 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23299 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23300   echo $ECHO_N "(cached) $ECHO_C" >&6
23301 else
23302   cat >conftest.$ac_ext <<_ACEOF
23303 /* confdefs.h.  */
23304 _ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h.  */
23308 #include <libintl.h>
23309 extern int _nl_msg_cat_cntr;
23310 extern int *_nl_domain_bindings;
23311 int
23312 main ()
23313 {
23314 bindtextdomain ("", "");
23315 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23316   ;
23317   return 0;
23318 }
23319 _ACEOF
23320 rm -f conftest.$ac_objext conftest$ac_exeext
23321 if { (ac_try="$ac_link"
23322 case "(($ac_try" in
23323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324   *) ac_try_echo=$ac_try;;
23325 esac
23326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23327   (eval "$ac_link") 2>conftest.er1
23328   ac_status=$?
23329   grep -v '^ *+' conftest.er1 >conftest.err
23330   rm -f conftest.er1
23331   cat conftest.err >&5
23332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333   (exit $ac_status); } && {
23334          test -z "$ac_c_werror_flag" ||
23335          test ! -s conftest.err
23336        } && test -s conftest$ac_exeext &&
23337        $as_test_x conftest$ac_exeext; then
23338   gt_cv_func_gnugettext1_libc=yes
23339 else
23340   echo "$as_me: failed program was:" >&5
23341 sed 's/^/| /' conftest.$ac_ext >&5
23342
23343         gt_cv_func_gnugettext1_libc=no
23344 fi
23345
23346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23347       conftest$ac_exeext conftest.$ac_ext
23348 fi
23349 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23350 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23351
23352         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23353
23354
23355
23356     use_additional=yes
23357
23358   acl_save_prefix="$prefix"
23359   prefix="$acl_final_prefix"
23360   acl_save_exec_prefix="$exec_prefix"
23361   exec_prefix="$acl_final_exec_prefix"
23362
23363     eval additional_includedir=\"$includedir\"
23364     eval additional_libdir=\"$libdir\"
23365
23366   exec_prefix="$acl_save_exec_prefix"
23367   prefix="$acl_save_prefix"
23368
23369
23370 # Check whether --with-libintl-prefix was given.
23371 if test "${with_libintl_prefix+set}" = set; then
23372   withval=$with_libintl_prefix;
23373     if test "X$withval" = "Xno"; then
23374       use_additional=no
23375     else
23376       if test "X$withval" = "X"; then
23377
23378   acl_save_prefix="$prefix"
23379   prefix="$acl_final_prefix"
23380   acl_save_exec_prefix="$exec_prefix"
23381   exec_prefix="$acl_final_exec_prefix"
23382
23383           eval additional_includedir=\"$includedir\"
23384           eval additional_libdir=\"$libdir\"
23385
23386   exec_prefix="$acl_save_exec_prefix"
23387   prefix="$acl_save_prefix"
23388
23389       else
23390         additional_includedir="$withval/include"
23391         additional_libdir="$withval/lib"
23392       fi
23393     fi
23394
23395 fi
23396
23397       LIBINTL=
23398   LTLIBINTL=
23399   INCINTL=
23400   rpathdirs=
23401   ltrpathdirs=
23402   names_already_handled=
23403   names_next_round='intl '
23404   while test -n "$names_next_round"; do
23405     names_this_round="$names_next_round"
23406     names_next_round=
23407     for name in $names_this_round; do
23408       already_handled=
23409       for n in $names_already_handled; do
23410         if test "$n" = "$name"; then
23411           already_handled=yes
23412           break
23413         fi
23414       done
23415       if test -z "$already_handled"; then
23416         names_already_handled="$names_already_handled $name"
23417                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23418         eval value=\"\$HAVE_LIB$uppername\"
23419         if test -n "$value"; then
23420           if test "$value" = yes; then
23421             eval value=\"\$LIB$uppername\"
23422             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23423             eval value=\"\$LTLIB$uppername\"
23424             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23425           else
23426                                     :
23427           fi
23428         else
23429                               found_dir=
23430           found_la=
23431           found_so=
23432           found_a=
23433           if test $use_additional = yes; then
23434             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23435               found_dir="$additional_libdir"
23436               found_so="$additional_libdir/lib$name.$shlibext"
23437               if test -f "$additional_libdir/lib$name.la"; then
23438                 found_la="$additional_libdir/lib$name.la"
23439               fi
23440             else
23441               if test -f "$additional_libdir/lib$name.$libext"; then
23442                 found_dir="$additional_libdir"
23443                 found_a="$additional_libdir/lib$name.$libext"
23444                 if test -f "$additional_libdir/lib$name.la"; then
23445                   found_la="$additional_libdir/lib$name.la"
23446                 fi
23447               fi
23448             fi
23449           fi
23450           if test "X$found_dir" = "X"; then
23451             for x in $LDFLAGS $LTLIBINTL; do
23452
23453   acl_save_prefix="$prefix"
23454   prefix="$acl_final_prefix"
23455   acl_save_exec_prefix="$exec_prefix"
23456   exec_prefix="$acl_final_exec_prefix"
23457   eval x=\"$x\"
23458   exec_prefix="$acl_save_exec_prefix"
23459   prefix="$acl_save_prefix"
23460
23461               case "$x" in
23462                 -L*)
23463                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23464                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23465                     found_dir="$dir"
23466                     found_so="$dir/lib$name.$shlibext"
23467                     if test -f "$dir/lib$name.la"; then
23468                       found_la="$dir/lib$name.la"
23469                     fi
23470                   else
23471                     if test -f "$dir/lib$name.$libext"; then
23472                       found_dir="$dir"
23473                       found_a="$dir/lib$name.$libext"
23474                       if test -f "$dir/lib$name.la"; then
23475                         found_la="$dir/lib$name.la"
23476                       fi
23477                     fi
23478                   fi
23479                   ;;
23480               esac
23481               if test "X$found_dir" != "X"; then
23482                 break
23483               fi
23484             done
23485           fi
23486           if test "X$found_dir" != "X"; then
23487                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23488             if test "X$found_so" != "X"; then
23489                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23490                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23491               else
23492                                                                                 haveit=
23493                 for x in $ltrpathdirs; do
23494                   if test "X$x" = "X$found_dir"; then
23495                     haveit=yes
23496                     break
23497                   fi
23498                 done
23499                 if test -z "$haveit"; then
23500                   ltrpathdirs="$ltrpathdirs $found_dir"
23501                 fi
23502                                 if test "$hardcode_direct" = yes; then
23503                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23504                 else
23505                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23506                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23507                                                             haveit=
23508                     for x in $rpathdirs; do
23509                       if test "X$x" = "X$found_dir"; then
23510                         haveit=yes
23511                         break
23512                       fi
23513                     done
23514                     if test -z "$haveit"; then
23515                       rpathdirs="$rpathdirs $found_dir"
23516                     fi
23517                   else
23518                                                                                 haveit=
23519                     for x in $LDFLAGS $LIBINTL; do
23520
23521   acl_save_prefix="$prefix"
23522   prefix="$acl_final_prefix"
23523   acl_save_exec_prefix="$exec_prefix"
23524   exec_prefix="$acl_final_exec_prefix"
23525   eval x=\"$x\"
23526   exec_prefix="$acl_save_exec_prefix"
23527   prefix="$acl_save_prefix"
23528
23529                       if test "X$x" = "X-L$found_dir"; then
23530                         haveit=yes
23531                         break
23532                       fi
23533                     done
23534                     if test -z "$haveit"; then
23535                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23536                     fi
23537                     if test "$hardcode_minus_L" != no; then
23538                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23539                     else
23540                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23541                     fi
23542                   fi
23543                 fi
23544               fi
23545             else
23546               if test "X$found_a" != "X"; then
23547                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23548               else
23549                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23550               fi
23551             fi
23552                         additional_includedir=
23553             case "$found_dir" in
23554               */lib | */lib/)
23555                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23556                 additional_includedir="$basedir/include"
23557                 ;;
23558             esac
23559             if test "X$additional_includedir" != "X"; then
23560                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23561                 haveit=
23562                 if test "X$additional_includedir" = "X/usr/local/include"; then
23563                   if test -n "$GCC"; then
23564                     case $host_os in
23565                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23566                     esac
23567                   fi
23568                 fi
23569                 if test -z "$haveit"; then
23570                   for x in $CPPFLAGS $INCINTL; do
23571
23572   acl_save_prefix="$prefix"
23573   prefix="$acl_final_prefix"
23574   acl_save_exec_prefix="$exec_prefix"
23575   exec_prefix="$acl_final_exec_prefix"
23576   eval x=\"$x\"
23577   exec_prefix="$acl_save_exec_prefix"
23578   prefix="$acl_save_prefix"
23579
23580                     if test "X$x" = "X-I$additional_includedir"; then
23581                       haveit=yes
23582                       break
23583                     fi
23584                   done
23585                   if test -z "$haveit"; then
23586                     if test -d "$additional_includedir"; then
23587                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23588                     fi
23589                   fi
23590                 fi
23591               fi
23592             fi
23593                         if test -n "$found_la"; then
23594                                                         save_libdir="$libdir"
23595               case "$found_la" in
23596                 */* | *\\*) . "$found_la" ;;
23597                 *) . "./$found_la" ;;
23598               esac
23599               libdir="$save_libdir"
23600                             for dep in $dependency_libs; do
23601                 case "$dep" in
23602                   -L*)
23603                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23604                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23605                       haveit=
23606                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23607                         if test -n "$GCC"; then
23608                           case $host_os in
23609                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23610                           esac
23611                         fi
23612                       fi
23613                       if test -z "$haveit"; then
23614                         haveit=
23615                         for x in $LDFLAGS $LIBINTL; do
23616
23617   acl_save_prefix="$prefix"
23618   prefix="$acl_final_prefix"
23619   acl_save_exec_prefix="$exec_prefix"
23620   exec_prefix="$acl_final_exec_prefix"
23621   eval x=\"$x\"
23622   exec_prefix="$acl_save_exec_prefix"
23623   prefix="$acl_save_prefix"
23624
23625                           if test "X$x" = "X-L$additional_libdir"; then
23626                             haveit=yes
23627                             break
23628                           fi
23629                         done
23630                         if test -z "$haveit"; then
23631                           if test -d "$additional_libdir"; then
23632                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23633                           fi
23634                         fi
23635                         haveit=
23636                         for x in $LDFLAGS $LTLIBINTL; do
23637
23638   acl_save_prefix="$prefix"
23639   prefix="$acl_final_prefix"
23640   acl_save_exec_prefix="$exec_prefix"
23641   exec_prefix="$acl_final_exec_prefix"
23642   eval x=\"$x\"
23643   exec_prefix="$acl_save_exec_prefix"
23644   prefix="$acl_save_prefix"
23645
23646                           if test "X$x" = "X-L$additional_libdir"; then
23647                             haveit=yes
23648                             break
23649                           fi
23650                         done
23651                         if test -z "$haveit"; then
23652                           if test -d "$additional_libdir"; then
23653                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23654                           fi
23655                         fi
23656                       fi
23657                     fi
23658                     ;;
23659                   -R*)
23660                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23661                     if test "$enable_rpath" != no; then
23662                                                                   haveit=
23663                       for x in $rpathdirs; do
23664                         if test "X$x" = "X$dir"; then
23665                           haveit=yes
23666                           break
23667                         fi
23668                       done
23669                       if test -z "$haveit"; then
23670                         rpathdirs="$rpathdirs $dir"
23671                       fi
23672                                                                   haveit=
23673                       for x in $ltrpathdirs; do
23674                         if test "X$x" = "X$dir"; then
23675                           haveit=yes
23676                           break
23677                         fi
23678                       done
23679                       if test -z "$haveit"; then
23680                         ltrpathdirs="$ltrpathdirs $dir"
23681                       fi
23682                     fi
23683                     ;;
23684                   -l*)
23685                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23686                     ;;
23687                   *.la)
23688                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23689                     ;;
23690                   *)
23691                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23692                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23693                     ;;
23694                 esac
23695               done
23696             fi
23697           else
23698                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23699             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23700           fi
23701         fi
23702       fi
23703     done
23704   done
23705   if test "X$rpathdirs" != "X"; then
23706     if test -n "$hardcode_libdir_separator"; then
23707                         alldirs=
23708       for found_dir in $rpathdirs; do
23709         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23710       done
23711             acl_save_libdir="$libdir"
23712       libdir="$alldirs"
23713       eval flag=\"$hardcode_libdir_flag_spec\"
23714       libdir="$acl_save_libdir"
23715       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23716     else
23717             for found_dir in $rpathdirs; do
23718         acl_save_libdir="$libdir"
23719         libdir="$found_dir"
23720         eval flag=\"$hardcode_libdir_flag_spec\"
23721         libdir="$acl_save_libdir"
23722         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23723       done
23724     fi
23725   fi
23726   if test "X$ltrpathdirs" != "X"; then
23727             for found_dir in $ltrpathdirs; do
23728       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23729     done
23730   fi
23731
23732           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23733 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23734 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23735   echo $ECHO_N "(cached) $ECHO_C" >&6
23736 else
23737   gt_save_CPPFLAGS="$CPPFLAGS"
23738             CPPFLAGS="$CPPFLAGS $INCINTL"
23739             gt_save_LIBS="$LIBS"
23740             LIBS="$LIBS $LIBINTL"
23741                         cat >conftest.$ac_ext <<_ACEOF
23742 /* confdefs.h.  */
23743 _ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h.  */
23747 #include <libintl.h>
23748 extern int _nl_msg_cat_cntr;
23749 extern
23750 #ifdef __cplusplus
23751 "C"
23752 #endif
23753 const char *_nl_expand_alias (const char *);
23754 int
23755 main ()
23756 {
23757 bindtextdomain ("", "");
23758 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23759   ;
23760   return 0;
23761 }
23762 _ACEOF
23763 rm -f conftest.$ac_objext conftest$ac_exeext
23764 if { (ac_try="$ac_link"
23765 case "(($ac_try" in
23766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23767   *) ac_try_echo=$ac_try;;
23768 esac
23769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23770   (eval "$ac_link") 2>conftest.er1
23771   ac_status=$?
23772   grep -v '^ *+' conftest.er1 >conftest.err
23773   rm -f conftest.er1
23774   cat conftest.err >&5
23775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776   (exit $ac_status); } && {
23777          test -z "$ac_c_werror_flag" ||
23778          test ! -s conftest.err
23779        } && test -s conftest$ac_exeext &&
23780        $as_test_x conftest$ac_exeext; then
23781   gt_cv_func_gnugettext1_libintl=yes
23782 else
23783   echo "$as_me: failed program was:" >&5
23784 sed 's/^/| /' conftest.$ac_ext >&5
23785
23786         gt_cv_func_gnugettext1_libintl=no
23787 fi
23788
23789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23790       conftest$ac_exeext conftest.$ac_ext
23791                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23792               LIBS="$LIBS $LIBICONV"
23793               cat >conftest.$ac_ext <<_ACEOF
23794 /* confdefs.h.  */
23795 _ACEOF
23796 cat confdefs.h >>conftest.$ac_ext
23797 cat >>conftest.$ac_ext <<_ACEOF
23798 /* end confdefs.h.  */
23799 #include <libintl.h>
23800 extern int _nl_msg_cat_cntr;
23801 extern
23802 #ifdef __cplusplus
23803 "C"
23804 #endif
23805 const char *_nl_expand_alias (const char *);
23806 int
23807 main ()
23808 {
23809 bindtextdomain ("", "");
23810 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23811   ;
23812   return 0;
23813 }
23814 _ACEOF
23815 rm -f conftest.$ac_objext conftest$ac_exeext
23816 if { (ac_try="$ac_link"
23817 case "(($ac_try" in
23818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23819   *) ac_try_echo=$ac_try;;
23820 esac
23821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23822   (eval "$ac_link") 2>conftest.er1
23823   ac_status=$?
23824   grep -v '^ *+' conftest.er1 >conftest.err
23825   rm -f conftest.er1
23826   cat conftest.err >&5
23827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828   (exit $ac_status); } && {
23829          test -z "$ac_c_werror_flag" ||
23830          test ! -s conftest.err
23831        } && test -s conftest$ac_exeext &&
23832        $as_test_x conftest$ac_exeext; then
23833   LIBINTL="$LIBINTL $LIBICONV"
23834                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23835                 gt_cv_func_gnugettext1_libintl=yes
23836
23837 else
23838   echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23840
23841
23842 fi
23843
23844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23845       conftest$ac_exeext conftest.$ac_ext
23846             fi
23847             CPPFLAGS="$gt_save_CPPFLAGS"
23848             LIBS="$gt_save_LIBS"
23849 fi
23850 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23851 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23852         fi
23853
23854                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23855            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23856                 && test "$PACKAGE" != gettext-runtime \
23857                 && test "$PACKAGE" != gettext-tools; }; then
23858           gt_use_preinstalled_gnugettext=yes
23859         else
23860                     LIBINTL=
23861           LTLIBINTL=
23862           INCINTL=
23863         fi
23864
23865
23866         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23867                               nls_cv_use_gnu_gettext=yes
23868         fi
23869       fi
23870
23871       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23872                 BUILD_INCLUDED_LIBINTL=yes
23873         USE_INCLUDED_LIBINTL=yes
23874         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23875         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23876         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23877       fi
23878
23879       CATOBJEXT=
23880       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23881          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23882                 CATOBJEXT=.gmo
23883       fi
23884
23885
23886     if test -n "$INTL_MACOSX_LIBS"; then
23887       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23888          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23889                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23890         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23891       fi
23892     fi
23893
23894     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23895        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23896
23897 cat >>confdefs.h <<\_ACEOF
23898 #define ENABLE_NLS 1
23899 _ACEOF
23900
23901     else
23902       USE_NLS=no
23903     fi
23904   fi
23905
23906   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23907 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23908   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23909 echo "${ECHO_T}$USE_NLS" >&6; }
23910   if test "$USE_NLS" = "yes"; then
23911     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23912 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23913     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23914       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23915         gt_source="external libintl"
23916       else
23917         gt_source="libc"
23918       fi
23919     else
23920       gt_source="included intl directory"
23921     fi
23922     { echo "$as_me:$LINENO: result: $gt_source" >&5
23923 echo "${ECHO_T}$gt_source" >&6; }
23924   fi
23925
23926   if test "$USE_NLS" = "yes"; then
23927
23928     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23929       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23930         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23931 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23932         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23933 echo "${ECHO_T}$LIBINTL" >&6; }
23934
23935   for element in $INCINTL; do
23936     haveit=
23937     for x in $CPPFLAGS; do
23938
23939   acl_save_prefix="$prefix"
23940   prefix="$acl_final_prefix"
23941   acl_save_exec_prefix="$exec_prefix"
23942   exec_prefix="$acl_final_exec_prefix"
23943   eval x=\"$x\"
23944   exec_prefix="$acl_save_exec_prefix"
23945   prefix="$acl_save_prefix"
23946
23947       if test "X$x" = "X$element"; then
23948         haveit=yes
23949         break
23950       fi
23951     done
23952     if test -z "$haveit"; then
23953       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23954     fi
23955   done
23956
23957       fi
23958
23959
23960 cat >>confdefs.h <<\_ACEOF
23961 #define HAVE_GETTEXT 1
23962 _ACEOF
23963
23964
23965 cat >>confdefs.h <<\_ACEOF
23966 #define HAVE_DCGETTEXT 1
23967 _ACEOF
23968
23969     fi
23970
23971         POSUB=po
23972   fi
23973
23974
23975             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23976       BUILD_INCLUDED_LIBINTL=yes
23977     fi
23978
23979
23980
23981
23982
23983         nls_cv_header_intl=
23984     nls_cv_header_libgt=
23985
23986         DATADIRNAME=share
23987
23988
23989         INSTOBJEXT=.mo
23990
23991
23992         GENCAT=gencat
23993
23994
23995         INTLOBJS=
23996     if test "$USE_INCLUDED_LIBINTL" = yes; then
23997       INTLOBJS="\$(GETTOBJS)"
23998     fi
23999
24000
24001         INTL_LIBTOOL_SUFFIX_PREFIX=
24002
24003
24004
24005     INTLLIBS="$LIBINTL"
24006
24007
24008
24009
24010
24011
24012 fi
24013
24014 support_mysql=no
24015 support_sqlite=no
24016 support_sqlite3=no
24017 support_postgresql=no
24018 support_dbi=no
24019 support_smartalloc=yes
24020 support_readline=yes
24021 support_conio=yes
24022 support_gnome=no
24023 support_bat=no
24024 support_wx_console=no
24025 support_tray_monitor=no
24026 support_tls=no
24027 support_crypto=no
24028 gnome_version=
24029 wx_version=
24030 support_static_tools=no
24031 support_static_fd=no
24032 support_static_sd=no
24033 support_static_dir=no
24034 support_static_cons=no
24035 support_python=no
24036 build_client_only=no
24037 build_dird=yes
24038 build_stored=yes
24039 cats=
24040 db_type=Internal
24041 support_lockmgr=no
24042 DB_TYPE=bdb
24043
24044
24045 # Check whether --enable-gnome was given.
24046 if test "${enable_gnome+set}" = set; then
24047   enableval=$enable_gnome;
24048        if test x$enableval = xyes; then
24049           support_gnome=yes
24050        fi
24051
24052
24053 fi
24054
24055
24056 GNOME_DIR=
24057 if test x$support_gnome = xyes; then
24058    { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24059 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24060    { (exit 1); exit 1; }; }
24061    { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24062 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24063    { (exit 1); exit 1; }; }
24064 fi
24065 # AC_SUBST(GNOME_DIR)
24066
24067 # Check whether --enable-bat was given.
24068 if test "${enable_bat+set}" = set; then
24069   enableval=$enable_bat;
24070        if test x$enableval = xyes; then
24071
24072 cat >>confdefs.h <<\_ACEOF
24073 #define HAVE_BAT 1
24074 _ACEOF
24075
24076           support_bat=yes
24077        fi
24078
24079
24080 fi
24081
24082
24083 BAT_DIR=
24084 if test x$support_bat = xyes; then
24085    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24086    pkg=$?
24087    if test $pkg = 0; then
24088       BAT_DIR=src/qt-console
24089    else
24090       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24091 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24092    { (exit 1); exit 1; }; }
24093    fi
24094 fi
24095
24096 got_qwt=no
24097 QWT_INC=
24098 QWT_LDFLAGS=
24099 QWT_LIB=
24100 QWT=
24101 no_qwt=no
24102 if test x$support_bat = xyes; then
24103    { echo "$as_me:$LINENO: checking for qwt support" >&5
24104 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24105
24106 # Check whether --with-qwt was given.
24107 if test "${with_qwt+set}" = set; then
24108   withval=$with_qwt;
24109           case "$with_qwt" in
24110           no)
24111              no_qwt=yes
24112              ;;
24113           yes|*)
24114              if test -f ${with_qwt}/include/qwt.h; then
24115                 QWT_INC="${with_qwt}/include"
24116                 QWT_LDFLAGS="-L${with_qwt}/lib"
24117                 QWT_LIB="-lqwt"
24118                 QWT="qwt"
24119              fi
24120              ;;
24121           esac
24122
24123
24124 fi
24125
24126
24127             if test $no_qwt = no; then
24128       if test x$QWT_INC = x; then
24129          for root in /usr /usr/local; do
24130             for ver in qwt qwt5 qwt-qt4; do
24131                if test -f ${root}/include/${ver}/qwt.h; then
24132                   QWT_INC="${root}/include/${ver}"
24133                   if test -d ${root}/lib64/; then
24134                      QWT_LDFLAGS="-L${root}/lib64"
24135                   elif test -d ${root}/lib/64/; then
24136                      QWT_LDFLAGS="-L${root}/64"
24137                   else
24138                      QWT_LDFLAGS="-L${root}/lib"
24139                   fi
24140                   QWT_LIB="-lqwt"
24141                   QWT="qwt"
24142                   got_qwt=yes
24143                   break;
24144                fi
24145             done
24146          done
24147       fi
24148    fi
24149    if test x$QWT_INC = x; then
24150       { echo "$as_me:$LINENO: result: no" >&5
24151 echo "${ECHO_T}no" >&6; }
24152    else
24153
24154 cat >>confdefs.h <<\_ACEOF
24155 #define HAVE_QWT 1
24156 _ACEOF
24157
24158       { echo "$as_me:$LINENO: result: yes" >&5
24159 echo "${ECHO_T}yes" >&6; }
24160    fi
24161 fi
24162
24163
24164
24165
24166
24167
24168
24169 # Check whether --enable-bwx-console was given.
24170 if test "${enable_bwx_console+set}" = set; then
24171   enableval=$enable_bwx_console;
24172        if test x$enableval = xyes; then
24173           support_wx_console=yes
24174        fi
24175
24176
24177 fi
24178
24179
24180 WX_DIR=
24181 if test x$support_wx_console = xyes; then
24182    abc=`$WXCONFIG $WXFLAGS --cppflags`
24183    pkg=$?
24184    if test $pkg = 0; then
24185       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24186       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24187       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24188
24189
24190
24191       WX_DIR="src/wx-console"
24192    else
24193       echo " "
24194       echo "wx-config program not found. bwx-console disabled."
24195       echo " "
24196       support_wx_console=no
24197    fi
24198 fi
24199
24200
24201 # Check whether --enable-tray-monitor was given.
24202 if test "${enable_tray_monitor+set}" = set; then
24203   enableval=$enable_tray_monitor;
24204        if test x$enableval = xyes; then
24205           support_tray_monitor=yes
24206        fi
24207
24208
24209 fi
24210
24211
24212 TRAY_MONITOR_DIR=
24213 if test x$support_tray_monitor = xyes; then
24214    abc=`$PKGCONFIG --exists gtk+-2.0`
24215    pkg=$?
24216    if test $pkg = 0; then
24217       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24218       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24219
24220
24221       TRAY_MONITOR_DIR=src/tray-monitor
24222       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24223       pkg=$?
24224       if test $pkg = 0; then
24225
24226 cat >>confdefs.h <<\_ACEOF
24227 #define HAVE_GTK_2_4 1
24228 _ACEOF
24229
24230       fi
24231    fi
24232 fi
24233
24234
24235 # Check whether --enable-smartalloc was given.
24236 if test "${enable_smartalloc+set}" = set; then
24237   enableval=$enable_smartalloc;
24238        if test x$enableval = xno; then
24239           support_smartalloc=no
24240        fi
24241
24242
24243 fi
24244
24245
24246 if test x$support_smartalloc = xyes; then
24247
24248 cat >>confdefs.h <<\_ACEOF
24249 #define SMARTALLOC 1
24250 _ACEOF
24251
24252 fi
24253
24254 # Check whether --enable-lockmgr was given.
24255 if test "${enable_lockmgr+set}" = set; then
24256   enableval=$enable_lockmgr;
24257        if test x$enableval = xyes; then
24258           support_lockmgr=yes
24259        fi
24260
24261
24262 fi
24263
24264
24265 if test x$support_lockmgr = xyes; then
24266
24267 cat >>confdefs.h <<\_ACEOF
24268 #define _USE_LOCKMGR 1
24269 _ACEOF
24270
24271 fi
24272
24273
24274 # Check whether --enable-static-tools was given.
24275 if test "${enable_static_tools+set}" = set; then
24276   enableval=$enable_static_tools;
24277        if test x$enableval = xyes; then
24278           if test x$use_libtool = xyes; then
24279              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24280   please rerun configure with --disable-libtool" >&5
24281 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24282   please rerun configure with --disable-libtool" >&2;}
24283    { (exit 1); exit 1; }; }
24284           fi
24285           support_static_tools=yes
24286        fi
24287
24288
24289 fi
24290
24291
24292 TTOOL_LDFLAGS=
24293 if test x$support_static_tools = xyes; then
24294    TTOOL_LDFLAGS="-static"
24295 fi
24296
24297
24298 # Check whether --enable-static-fd was given.
24299 if test "${enable_static_fd+set}" = set; then
24300   enableval=$enable_static_fd;
24301        if test x$enableval = xyes; then
24302           if test x$use_libtool = xyes; then
24303              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24304   please rerun configure with --disable-libtool" >&5
24305 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24306   please rerun configure with --disable-libtool" >&2;}
24307    { (exit 1); exit 1; }; }
24308           fi
24309           support_static_fd=yes
24310        fi
24311
24312
24313 fi
24314
24315
24316 STATIC_FD=
24317 if test x$support_static_fd = xyes; then
24318    STATIC_FD="static-bacula-fd"
24319 fi
24320
24321
24322 # Check whether --enable-static-sd was given.
24323 if test "${enable_static_sd+set}" = set; then
24324   enableval=$enable_static_sd;
24325        if test x$enableval = xyes; then
24326           if test x$use_libtool = xyes; then
24327              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24328   please rerun configure with --disable-libtool" >&5
24329 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24330   please rerun configure with --disable-libtool" >&2;}
24331    { (exit 1); exit 1; }; }
24332           fi
24333           support_static_sd=yes
24334        fi
24335
24336
24337 fi
24338
24339
24340 STATIC_SD=
24341 if test x$support_static_sd = xyes; then
24342    STATIC_SD="static-bacula-sd"
24343 fi
24344
24345
24346 # Check whether --enable-static-dir was given.
24347 if test "${enable_static_dir+set}" = set; then
24348   enableval=$enable_static_dir;
24349        if test x$enableval = xyes; then
24350           if test x$use_libtool = xyes; then
24351              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24352   please rerun configure with --disable-libtool" >&5
24353 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24354   please rerun configure with --disable-libtool" >&2;}
24355    { (exit 1); exit 1; }; }
24356           fi
24357           support_static_dir=yes
24358        fi
24359
24360
24361 fi
24362
24363
24364 STATIC_DIR=
24365 if test x$support_static_dir = xyes; then
24366    STATIC_DIR="static-bacula-dir"
24367 fi
24368
24369
24370 # Check whether --enable-static-cons was given.
24371 if test "${enable_static_cons+set}" = set; then
24372   enableval=$enable_static_cons;
24373        if test x$enableval = xyes; then
24374           if test x$use_libtool = xyes; then
24375              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24376   please rerun configure with --disable-libtool" >&5
24377 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24378   please rerun configure with --disable-libtool" >&2;}
24379    { (exit 1); exit 1; }; }
24380           fi
24381           support_static_cons=yes
24382        fi
24383
24384
24385 fi
24386
24387
24388 STATIC_CONS=
24389 STATIC_GNOME_CONS=
24390 STATIC_WX_CONS=
24391 if test x$support_static_cons = xyes; then
24392    STATIC_CONS="static-bconsole"
24393    STATIC_GNOME_CONS="static-bgnome-console"
24394    STATIC_WX_CONS="static-bwx-console"
24395 fi
24396
24397
24398
24399
24400 # Check whether --enable-client-only was given.
24401 if test "${enable_client_only+set}" = set; then
24402   enableval=$enable_client_only;
24403        if test x$enableval = xyes; then
24404           build_client_only=yes
24405           db_type=None
24406           DB_TYPE=none
24407        fi
24408
24409
24410 fi
24411
24412 if test x$build_client_only = xno; then
24413    ALL_DIRS="subdirs"
24414 else
24415    ALL_DIRS=""
24416 fi
24417
24418
24419 # Check whether --enable-build-dird was given.
24420 if test "${enable_build_dird+set}" = set; then
24421   enableval=$enable_build_dird;
24422        if test x$enableval = xno; then
24423           build_dird=no
24424        fi
24425
24426
24427 fi
24428
24429 if test x$build_dird = xyes; then
24430    DIRD_DIR="src/dird"
24431    DIR_TOOLS="DIRTOOLS"
24432 else
24433    DIRD_DIR=""
24434    DIR_TOOLS="NODIRTOOLS"
24435 fi
24436
24437
24438
24439 # Check whether --enable-build-stored was given.
24440 if test "${enable_build_stored+set}" = set; then
24441   enableval=$enable_build_stored;
24442       if test x$enableval = xno; then
24443          build_stored=no
24444       fi
24445
24446
24447 fi
24448
24449 if test x$build_stored = xyes; then
24450    STORED_DIR="src/stored"
24451 else
24452    STORED_DIR=""
24453 fi
24454
24455
24456 # Check whether --enable-conio was given.
24457 if test "${enable_conio+set}" = set; then
24458   enableval=$enable_conio;
24459        if test x$enableval = xno; then
24460           support_conio=no
24461        fi
24462
24463
24464 fi
24465
24466
24467
24468 support_ipv6=yes
24469 # Check whether --enable-ipv6 was given.
24470 if test "${enable_ipv6+set}" = set; then
24471   enableval=$enable_ipv6;
24472        if test x$enableval = xno; then
24473           support_ipv6=no
24474        fi
24475
24476
24477 fi
24478
24479
24480 if test x$support_ipv6 = xyes; then
24481     cat >conftest.$ac_ext <<_ACEOF
24482 /* confdefs.h.  */
24483 _ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h.  */
24487  #include <sys/types.h>
24488 #include <sys/socket.h>
24489 #include <netinet/in.h>
24490 int
24491 main ()
24492 {
24493 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24494   ;
24495   return 0;
24496 }
24497 _ACEOF
24498 rm -f conftest.$ac_objext conftest$ac_exeext
24499 if { (ac_try="$ac_link"
24500 case "(($ac_try" in
24501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502   *) ac_try_echo=$ac_try;;
24503 esac
24504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24505   (eval "$ac_link") 2>conftest.er1
24506   ac_status=$?
24507   grep -v '^ *+' conftest.er1 >conftest.err
24508   rm -f conftest.er1
24509   cat conftest.err >&5
24510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511   (exit $ac_status); } && {
24512          test -z "$ac_c_werror_flag" ||
24513          test ! -s conftest.err
24514        } && test -s conftest$ac_exeext &&
24515        $as_test_x conftest$ac_exeext; then
24516   support_ipv6=yes
24517 else
24518   echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24520
24521         support_ipv6=no
24522 fi
24523
24524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24525       conftest$ac_exeext conftest.$ac_ext
24526 fi
24527
24528 if test x$support_ipv6 = xyes; then
24529
24530 cat >>confdefs.h <<\_ACEOF
24531 #define HAVE_IPV6 1
24532 _ACEOF
24533
24534 fi
24535
24536 got_conio="no"
24537 if test x$support_conio = xyes; then
24538    if test "${ac_cv_header_termcap_h+set}" = set; then
24539   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24540 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24541 if test "${ac_cv_header_termcap_h+set}" = set; then
24542   echo $ECHO_N "(cached) $ECHO_C" >&6
24543 fi
24544 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24545 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24546 else
24547   # Is the header compilable?
24548 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24549 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24550 cat >conftest.$ac_ext <<_ACEOF
24551 /* confdefs.h.  */
24552 _ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h.  */
24556 $ac_includes_default
24557 #include <termcap.h>
24558 _ACEOF
24559 rm -f conftest.$ac_objext
24560 if { (ac_try="$ac_compile"
24561 case "(($ac_try" in
24562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24563   *) ac_try_echo=$ac_try;;
24564 esac
24565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24566   (eval "$ac_compile") 2>conftest.er1
24567   ac_status=$?
24568   grep -v '^ *+' conftest.er1 >conftest.err
24569   rm -f conftest.er1
24570   cat conftest.err >&5
24571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572   (exit $ac_status); } && {
24573          test -z "$ac_c_werror_flag" ||
24574          test ! -s conftest.err
24575        } && test -s conftest.$ac_objext; then
24576   ac_header_compiler=yes
24577 else
24578   echo "$as_me: failed program was:" >&5
24579 sed 's/^/| /' conftest.$ac_ext >&5
24580
24581         ac_header_compiler=no
24582 fi
24583
24584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24586 echo "${ECHO_T}$ac_header_compiler" >&6; }
24587
24588 # Is the header present?
24589 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24590 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24591 cat >conftest.$ac_ext <<_ACEOF
24592 /* confdefs.h.  */
24593 _ACEOF
24594 cat confdefs.h >>conftest.$ac_ext
24595 cat >>conftest.$ac_ext <<_ACEOF
24596 /* end confdefs.h.  */
24597 #include <termcap.h>
24598 _ACEOF
24599 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
24612          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24613          test ! -s conftest.err
24614        }; then
24615   ac_header_preproc=yes
24616 else
24617   echo "$as_me: failed program was:" >&5
24618 sed 's/^/| /' conftest.$ac_ext >&5
24619
24620   ac_header_preproc=no
24621 fi
24622
24623 rm -f conftest.err conftest.$ac_ext
24624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24625 echo "${ECHO_T}$ac_header_preproc" >&6; }
24626
24627 # So?  What about this header?
24628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24629   yes:no: )
24630     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24631 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24632     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24633 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24634     ac_header_preproc=yes
24635     ;;
24636   no:yes:* )
24637     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24638 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24639     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24640 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24641     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24642 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24643     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24644 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24645     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24646 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24647     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24648 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24649
24650     ;;
24651 esac
24652 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24653 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24654 if test "${ac_cv_header_termcap_h+set}" = set; then
24655   echo $ECHO_N "(cached) $ECHO_C" >&6
24656 else
24657   ac_cv_header_termcap_h=$ac_header_preproc
24658 fi
24659 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24660 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24661
24662 fi
24663 if test $ac_cv_header_termcap_h = yes; then
24664    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24665 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24666 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24667   echo $ECHO_N "(cached) $ECHO_C" >&6
24668 else
24669   ac_check_lib_save_LIBS=$LIBS
24670 LIBS="-ltermcap  $LIBS"
24671 cat >conftest.$ac_ext <<_ACEOF
24672 /* confdefs.h.  */
24673 _ACEOF
24674 cat confdefs.h >>conftest.$ac_ext
24675 cat >>conftest.$ac_ext <<_ACEOF
24676 /* end confdefs.h.  */
24677
24678 /* Override any GCC internal prototype to avoid an error.
24679    Use char because int might match the return type of a GCC
24680    builtin and then its argument prototype would still apply.  */
24681 #ifdef __cplusplus
24682 extern "C"
24683 #endif
24684 char tgetent ();
24685 int
24686 main ()
24687 {
24688 return tgetent ();
24689   ;
24690   return 0;
24691 }
24692 _ACEOF
24693 rm -f conftest.$ac_objext conftest$ac_exeext
24694 if { (ac_try="$ac_link"
24695 case "(($ac_try" in
24696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24697   *) ac_try_echo=$ac_try;;
24698 esac
24699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24700   (eval "$ac_link") 2>conftest.er1
24701   ac_status=$?
24702   grep -v '^ *+' conftest.er1 >conftest.err
24703   rm -f conftest.er1
24704   cat conftest.err >&5
24705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706   (exit $ac_status); } && {
24707          test -z "$ac_c_werror_flag" ||
24708          test ! -s conftest.err
24709        } && test -s conftest$ac_exeext &&
24710        $as_test_x conftest$ac_exeext; then
24711   ac_cv_lib_termcap_tgetent=yes
24712 else
24713   echo "$as_me: failed program was:" >&5
24714 sed 's/^/| /' conftest.$ac_ext >&5
24715
24716         ac_cv_lib_termcap_tgetent=no
24717 fi
24718
24719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24720       conftest$ac_exeext conftest.$ac_ext
24721 LIBS=$ac_check_lib_save_LIBS
24722 fi
24723 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24724 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24725 if test $ac_cv_lib_termcap_tgetent = yes; then
24726    CONS_LIBS="-ltermcap"
24727     CONS_OBJ="conio.o"
24728     CONS_SRC="conio.c"
24729     got_conio="yes"
24730     support_readline=no
24731
24732 cat >>confdefs.h <<\_ACEOF
24733 #define HAVE_CONIO 1
24734 _ACEOF
24735
24736
24737 else
24738    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24739 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24740 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24741   echo $ECHO_N "(cached) $ECHO_C" >&6
24742 else
24743   ac_check_lib_save_LIBS=$LIBS
24744 LIBS="-lncurses  $LIBS"
24745 cat >conftest.$ac_ext <<_ACEOF
24746 /* confdefs.h.  */
24747 _ACEOF
24748 cat confdefs.h >>conftest.$ac_ext
24749 cat >>conftest.$ac_ext <<_ACEOF
24750 /* end confdefs.h.  */
24751
24752 /* Override any GCC internal prototype to avoid an error.
24753    Use char because int might match the return type of a GCC
24754    builtin and then its argument prototype would still apply.  */
24755 #ifdef __cplusplus
24756 extern "C"
24757 #endif
24758 char tgetent ();
24759 int
24760 main ()
24761 {
24762 return tgetent ();
24763   ;
24764   return 0;
24765 }
24766 _ACEOF
24767 rm -f conftest.$ac_objext conftest$ac_exeext
24768 if { (ac_try="$ac_link"
24769 case "(($ac_try" in
24770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24771   *) ac_try_echo=$ac_try;;
24772 esac
24773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24774   (eval "$ac_link") 2>conftest.er1
24775   ac_status=$?
24776   grep -v '^ *+' conftest.er1 >conftest.err
24777   rm -f conftest.er1
24778   cat conftest.err >&5
24779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780   (exit $ac_status); } && {
24781          test -z "$ac_c_werror_flag" ||
24782          test ! -s conftest.err
24783        } && test -s conftest$ac_exeext &&
24784        $as_test_x conftest$ac_exeext; then
24785   ac_cv_lib_ncurses_tgetent=yes
24786 else
24787   echo "$as_me: failed program was:" >&5
24788 sed 's/^/| /' conftest.$ac_ext >&5
24789
24790         ac_cv_lib_ncurses_tgetent=no
24791 fi
24792
24793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24794       conftest$ac_exeext conftest.$ac_ext
24795 LIBS=$ac_check_lib_save_LIBS
24796 fi
24797 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24798 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24799 if test $ac_cv_lib_ncurses_tgetent = yes; then
24800    CONS_LIBS="-lncurses"
24801       CONS_OBJ="conio.o"
24802       CONS_SRC="conio.c"
24803       got_conio="yes"
24804       support_readline=no
24805
24806 cat >>confdefs.h <<\_ACEOF
24807 #define HAVE_CONIO 1
24808 _ACEOF
24809
24810
24811 fi
24812
24813
24814 fi
24815
24816
24817 else
24818
24819
24820 for ac_header in curses.h
24821 do
24822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24824   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24827   echo $ECHO_N "(cached) $ECHO_C" >&6
24828 fi
24829 ac_res=`eval echo '${'$as_ac_Header'}'`
24830                { echo "$as_me:$LINENO: result: $ac_res" >&5
24831 echo "${ECHO_T}$ac_res" >&6; }
24832 else
24833   # Is the header compilable?
24834 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24836 cat >conftest.$ac_ext <<_ACEOF
24837 /* confdefs.h.  */
24838 _ACEOF
24839 cat confdefs.h >>conftest.$ac_ext
24840 cat >>conftest.$ac_ext <<_ACEOF
24841 /* end confdefs.h.  */
24842 $ac_includes_default
24843 #include <$ac_header>
24844 _ACEOF
24845 rm -f conftest.$ac_objext
24846 if { (ac_try="$ac_compile"
24847 case "(($ac_try" in
24848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24849   *) ac_try_echo=$ac_try;;
24850 esac
24851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24852   (eval "$ac_compile") 2>conftest.er1
24853   ac_status=$?
24854   grep -v '^ *+' conftest.er1 >conftest.err
24855   rm -f conftest.er1
24856   cat conftest.err >&5
24857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858   (exit $ac_status); } && {
24859          test -z "$ac_c_werror_flag" ||
24860          test ! -s conftest.err
24861        } && test -s conftest.$ac_objext; then
24862   ac_header_compiler=yes
24863 else
24864   echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.$ac_ext >&5
24866
24867         ac_header_compiler=no
24868 fi
24869
24870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24872 echo "${ECHO_T}$ac_header_compiler" >&6; }
24873
24874 # Is the header present?
24875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24877 cat >conftest.$ac_ext <<_ACEOF
24878 /* confdefs.h.  */
24879 _ACEOF
24880 cat confdefs.h >>conftest.$ac_ext
24881 cat >>conftest.$ac_ext <<_ACEOF
24882 /* end confdefs.h.  */
24883 #include <$ac_header>
24884 _ACEOF
24885 if { (ac_try="$ac_cpp conftest.$ac_ext"
24886 case "(($ac_try" in
24887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888   *) ac_try_echo=$ac_try;;
24889 esac
24890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24892   ac_status=$?
24893   grep -v '^ *+' conftest.er1 >conftest.err
24894   rm -f conftest.er1
24895   cat conftest.err >&5
24896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897   (exit $ac_status); } >/dev/null && {
24898          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24899          test ! -s conftest.err
24900        }; then
24901   ac_header_preproc=yes
24902 else
24903   echo "$as_me: failed program was:" >&5
24904 sed 's/^/| /' conftest.$ac_ext >&5
24905
24906   ac_header_preproc=no
24907 fi
24908
24909 rm -f conftest.err conftest.$ac_ext
24910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24911 echo "${ECHO_T}$ac_header_preproc" >&6; }
24912
24913 # So?  What about this header?
24914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24915   yes:no: )
24916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24920     ac_header_preproc=yes
24921     ;;
24922   no:yes:* )
24923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24925     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24926 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24927     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24929     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24930 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24933     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24935
24936     ;;
24937 esac
24938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24941   echo $ECHO_N "(cached) $ECHO_C" >&6
24942 else
24943   eval "$as_ac_Header=\$ac_header_preproc"
24944 fi
24945 ac_res=`eval echo '${'$as_ac_Header'}'`
24946                { echo "$as_me:$LINENO: result: $ac_res" >&5
24947 echo "${ECHO_T}$ac_res" >&6; }
24948
24949 fi
24950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24951   cat >>confdefs.h <<_ACEOF
24952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24953 _ACEOF
24954
24955 fi
24956
24957 done
24958
24959     { echo "$as_me:$LINENO: checking for term.h" >&5
24960 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24961 if test "${ac_cv_header_term_h+set}" = set; then
24962   echo $ECHO_N "(cached) $ECHO_C" >&6
24963 else
24964   cat >conftest.$ac_ext <<_ACEOF
24965 /* confdefs.h.  */
24966 _ACEOF
24967 cat confdefs.h >>conftest.$ac_ext
24968 cat >>conftest.$ac_ext <<_ACEOF
24969 /* end confdefs.h.  */
24970 #if HAVE_CURSES_H
24971 #include <curses.h>
24972 #endif
24973
24974
24975 #include <term.h>
24976 _ACEOF
24977 rm -f conftest.$ac_objext
24978 if { (ac_try="$ac_compile"
24979 case "(($ac_try" in
24980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24981   *) ac_try_echo=$ac_try;;
24982 esac
24983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24984   (eval "$ac_compile") 2>conftest.er1
24985   ac_status=$?
24986   grep -v '^ *+' conftest.er1 >conftest.err
24987   rm -f conftest.er1
24988   cat conftest.err >&5
24989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990   (exit $ac_status); } && {
24991          test -z "$ac_c_werror_flag" ||
24992          test ! -s conftest.err
24993        } && test -s conftest.$ac_objext; then
24994   ac_cv_header_term_h=yes
24995 else
24996   echo "$as_me: failed program was:" >&5
24997 sed 's/^/| /' conftest.$ac_ext >&5
24998
24999         ac_cv_header_term_h=no
25000 fi
25001
25002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25003 fi
25004 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25005 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25006 if test $ac_cv_header_term_h = yes; then
25007    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25008 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25009 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25010   echo $ECHO_N "(cached) $ECHO_C" >&6
25011 else
25012   ac_check_lib_save_LIBS=$LIBS
25013 LIBS="-lcurses  $LIBS"
25014 cat >conftest.$ac_ext <<_ACEOF
25015 /* confdefs.h.  */
25016 _ACEOF
25017 cat confdefs.h >>conftest.$ac_ext
25018 cat >>conftest.$ac_ext <<_ACEOF
25019 /* end confdefs.h.  */
25020
25021 /* Override any GCC internal prototype to avoid an error.
25022    Use char because int might match the return type of a GCC
25023    builtin and then its argument prototype would still apply.  */
25024 #ifdef __cplusplus
25025 extern "C"
25026 #endif
25027 char tgetent ();
25028 int
25029 main ()
25030 {
25031 return tgetent ();
25032   ;
25033   return 0;
25034 }
25035 _ACEOF
25036 rm -f conftest.$ac_objext conftest$ac_exeext
25037 if { (ac_try="$ac_link"
25038 case "(($ac_try" in
25039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040   *) ac_try_echo=$ac_try;;
25041 esac
25042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25043   (eval "$ac_link") 2>conftest.er1
25044   ac_status=$?
25045   grep -v '^ *+' conftest.er1 >conftest.err
25046   rm -f conftest.er1
25047   cat conftest.err >&5
25048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049   (exit $ac_status); } && {
25050          test -z "$ac_c_werror_flag" ||
25051          test ! -s conftest.err
25052        } && test -s conftest$ac_exeext &&
25053        $as_test_x conftest$ac_exeext; then
25054   ac_cv_lib_curses_tgetent=yes
25055 else
25056   echo "$as_me: failed program was:" >&5
25057 sed 's/^/| /' conftest.$ac_ext >&5
25058
25059         ac_cv_lib_curses_tgetent=no
25060 fi
25061
25062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25063       conftest$ac_exeext conftest.$ac_ext
25064 LIBS=$ac_check_lib_save_LIBS
25065 fi
25066 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25067 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25068 if test $ac_cv_lib_curses_tgetent = yes; then
25069    CONS_LIBS="-lcurses"
25070          CONS_OBJ="conio.o"
25071          CONS_SRC="conio.c"
25072          got_conio="yes"
25073          support_readline=no
25074
25075 cat >>confdefs.h <<\_ACEOF
25076 #define HAVE_CONIO 1
25077 _ACEOF
25078
25079
25080 fi
25081
25082
25083 else
25084    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25085 fi
25086
25087
25088
25089 fi
25090
25091
25092 fi
25093
25094
25095 # Check whether --enable-readline was given.
25096 if test "${enable_readline+set}" = set; then
25097   enableval=$enable_readline;
25098        if test x$enableval = xno; then
25099           support_readline=no
25100        fi
25101
25102
25103 fi
25104
25105
25106 got_readline="no"
25107 READLINE_SRC=
25108 if test x$support_readline = xyes; then
25109
25110 # Check whether --with-readline was given.
25111 if test "${with_readline+set}" = set; then
25112   withval=$with_readline;
25113           case "$with_readline" in
25114           no)
25115              :
25116              ;;
25117           yes|*)
25118              if test -f ${with_readline}/readline.h; then
25119                 CONS_INC="-I${with_readline}"
25120                 CONS_LDFLAGS="-L$with_readline"
25121              elif test -f ${with_readline}/include/readline/readline.h; then
25122                 CONS_INC="-I${with_readline}/include/readline"
25123                 CONS_LDFLAGS="-L${with_readline}/lib"
25124                 with_readline="${with_readline}/include/readline"
25125              else
25126                 with_readline="/usr/include/readline"
25127              fi
25128
25129              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25131   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25132 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25134   echo $ECHO_N "(cached) $ECHO_C" >&6
25135 fi
25136 ac_res=`eval echo '${'$as_ac_Header'}'`
25137                { echo "$as_me:$LINENO: result: $ac_res" >&5
25138 echo "${ECHO_T}$ac_res" >&6; }
25139 else
25140   # Is the header compilable?
25141 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25142 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25143 cat >conftest.$ac_ext <<_ACEOF
25144 /* confdefs.h.  */
25145 _ACEOF
25146 cat confdefs.h >>conftest.$ac_ext
25147 cat >>conftest.$ac_ext <<_ACEOF
25148 /* end confdefs.h.  */
25149 $ac_includes_default
25150 #include <${with_readline}/readline.h>
25151 _ACEOF
25152 rm -f conftest.$ac_objext
25153 if { (ac_try="$ac_compile"
25154 case "(($ac_try" in
25155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156   *) ac_try_echo=$ac_try;;
25157 esac
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159   (eval "$ac_compile") 2>conftest.er1
25160   ac_status=$?
25161   grep -v '^ *+' conftest.er1 >conftest.err
25162   rm -f conftest.er1
25163   cat conftest.err >&5
25164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165   (exit $ac_status); } && {
25166          test -z "$ac_c_werror_flag" ||
25167          test ! -s conftest.err
25168        } && test -s conftest.$ac_objext; then
25169   ac_header_compiler=yes
25170 else
25171   echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.$ac_ext >&5
25173
25174         ac_header_compiler=no
25175 fi
25176
25177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25179 echo "${ECHO_T}$ac_header_compiler" >&6; }
25180
25181 # Is the header present?
25182 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25183 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25184 cat >conftest.$ac_ext <<_ACEOF
25185 /* confdefs.h.  */
25186 _ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h.  */
25190 #include <${with_readline}/readline.h>
25191 _ACEOF
25192 if { (ac_try="$ac_cpp conftest.$ac_ext"
25193 case "(($ac_try" in
25194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195   *) ac_try_echo=$ac_try;;
25196 esac
25197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25198   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25199   ac_status=$?
25200   grep -v '^ *+' conftest.er1 >conftest.err
25201   rm -f conftest.er1
25202   cat conftest.err >&5
25203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204   (exit $ac_status); } >/dev/null && {
25205          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25206          test ! -s conftest.err
25207        }; then
25208   ac_header_preproc=yes
25209 else
25210   echo "$as_me: failed program was:" >&5
25211 sed 's/^/| /' conftest.$ac_ext >&5
25212
25213   ac_header_preproc=no
25214 fi
25215
25216 rm -f conftest.err conftest.$ac_ext
25217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25218 echo "${ECHO_T}$ac_header_preproc" >&6; }
25219
25220 # So?  What about this header?
25221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25222   yes:no: )
25223     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25224 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25225     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25226 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25227     ac_header_preproc=yes
25228     ;;
25229   no:yes:* )
25230     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25231 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25232     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25233 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25234     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25235 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25236     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25237 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25238     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25239 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25240     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25241 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25242
25243     ;;
25244 esac
25245 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25246 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25248   echo $ECHO_N "(cached) $ECHO_C" >&6
25249 else
25250   eval "$as_ac_Header=\$ac_header_preproc"
25251 fi
25252 ac_res=`eval echo '${'$as_ac_Header'}'`
25253                { echo "$as_me:$LINENO: result: $ac_res" >&5
25254 echo "${ECHO_T}$ac_res" >&6; }
25255
25256 fi
25257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25258
25259
25260 cat >>confdefs.h <<\_ACEOF
25261 #define HAVE_READLINE 1
25262 _ACEOF
25263
25264                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25265                     got_readline="yes"
25266
25267 else
25268
25269                     echo " "
25270                     echo "readline.h not found. readline turned off ..."
25271                     echo " "
25272
25273
25274 fi
25275
25276
25277              ;;
25278           esac
25279
25280 else
25281
25282                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25283   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25284 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25285 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25286   echo $ECHO_N "(cached) $ECHO_C" >&6
25287 fi
25288 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25289 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25290 else
25291   # Is the header compilable?
25292 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25293 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25294 cat >conftest.$ac_ext <<_ACEOF
25295 /* confdefs.h.  */
25296 _ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h.  */
25300 $ac_includes_default
25301 #include </usr/include/readline/readline.h>
25302 _ACEOF
25303 rm -f conftest.$ac_objext
25304 if { (ac_try="$ac_compile"
25305 case "(($ac_try" in
25306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25307   *) ac_try_echo=$ac_try;;
25308 esac
25309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25310   (eval "$ac_compile") 2>conftest.er1
25311   ac_status=$?
25312   grep -v '^ *+' conftest.er1 >conftest.err
25313   rm -f conftest.er1
25314   cat conftest.err >&5
25315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316   (exit $ac_status); } && {
25317          test -z "$ac_c_werror_flag" ||
25318          test ! -s conftest.err
25319        } && test -s conftest.$ac_objext; then
25320   ac_header_compiler=yes
25321 else
25322   echo "$as_me: failed program was:" >&5
25323 sed 's/^/| /' conftest.$ac_ext >&5
25324
25325         ac_header_compiler=no
25326 fi
25327
25328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25330 echo "${ECHO_T}$ac_header_compiler" >&6; }
25331
25332 # Is the header present?
25333 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25334 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25335 cat >conftest.$ac_ext <<_ACEOF
25336 /* confdefs.h.  */
25337 _ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h.  */
25341 #include </usr/include/readline/readline.h>
25342 _ACEOF
25343 if { (ac_try="$ac_cpp conftest.$ac_ext"
25344 case "(($ac_try" in
25345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25346   *) ac_try_echo=$ac_try;;
25347 esac
25348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25349   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25350   ac_status=$?
25351   grep -v '^ *+' conftest.er1 >conftest.err
25352   rm -f conftest.er1
25353   cat conftest.err >&5
25354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355   (exit $ac_status); } >/dev/null && {
25356          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25357          test ! -s conftest.err
25358        }; then
25359   ac_header_preproc=yes
25360 else
25361   echo "$as_me: failed program was:" >&5
25362 sed 's/^/| /' conftest.$ac_ext >&5
25363
25364   ac_header_preproc=no
25365 fi
25366
25367 rm -f conftest.err conftest.$ac_ext
25368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25369 echo "${ECHO_T}$ac_header_preproc" >&6; }
25370
25371 # So?  What about this header?
25372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25373   yes:no: )
25374     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25375 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25376     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25377 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25378     ac_header_preproc=yes
25379     ;;
25380   no:yes:* )
25381     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25382 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25383     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25384 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25385     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25386 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25387     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25388 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25389     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25390 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25391     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25392 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25393
25394     ;;
25395 esac
25396 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25397 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25398 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25399   echo $ECHO_N "(cached) $ECHO_C" >&6
25400 else
25401   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25402 fi
25403 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25404 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25405
25406 fi
25407 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25408
25409
25410 cat >>confdefs.h <<\_ACEOF
25411 #define HAVE_READLINE 1
25412 _ACEOF
25413
25414                 got_readline="yes"
25415                 CONS_INC="-I/usr/include/readline"
25416                 CONS_LIBS="-lreadline -ltermcap"
25417
25418 else
25419
25420                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25422   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25423 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25425   echo $ECHO_N "(cached) $ECHO_C" >&6
25426 fi
25427 ac_res=`eval echo '${'$as_ac_Header'}'`
25428                { echo "$as_me:$LINENO: result: $ac_res" >&5
25429 echo "${ECHO_T}$ac_res" >&6; }
25430 else
25431   # Is the header compilable?
25432 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25433 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25434 cat >conftest.$ac_ext <<_ACEOF
25435 /* confdefs.h.  */
25436 _ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h.  */
25440 $ac_includes_default
25441 #include <${TOP_DIR}/depkgs/readline/readline.h>
25442 _ACEOF
25443 rm -f conftest.$ac_objext
25444 if { (ac_try="$ac_compile"
25445 case "(($ac_try" in
25446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447   *) ac_try_echo=$ac_try;;
25448 esac
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450   (eval "$ac_compile") 2>conftest.er1
25451   ac_status=$?
25452   grep -v '^ *+' conftest.er1 >conftest.err
25453   rm -f conftest.er1
25454   cat conftest.err >&5
25455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456   (exit $ac_status); } && {
25457          test -z "$ac_c_werror_flag" ||
25458          test ! -s conftest.err
25459        } && test -s conftest.$ac_objext; then
25460   ac_header_compiler=yes
25461 else
25462   echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25464
25465         ac_header_compiler=no
25466 fi
25467
25468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25470 echo "${ECHO_T}$ac_header_compiler" >&6; }
25471
25472 # Is the header present?
25473 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25474 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25475 cat >conftest.$ac_ext <<_ACEOF
25476 /* confdefs.h.  */
25477 _ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h.  */
25481 #include <${TOP_DIR}/depkgs/readline/readline.h>
25482 _ACEOF
25483 if { (ac_try="$ac_cpp conftest.$ac_ext"
25484 case "(($ac_try" in
25485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25486   *) ac_try_echo=$ac_try;;
25487 esac
25488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25490   ac_status=$?
25491   grep -v '^ *+' conftest.er1 >conftest.err
25492   rm -f conftest.er1
25493   cat conftest.err >&5
25494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495   (exit $ac_status); } >/dev/null && {
25496          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25497          test ! -s conftest.err
25498        }; then
25499   ac_header_preproc=yes
25500 else
25501   echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25503
25504   ac_header_preproc=no
25505 fi
25506
25507 rm -f conftest.err conftest.$ac_ext
25508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25509 echo "${ECHO_T}$ac_header_preproc" >&6; }
25510
25511 # So?  What about this header?
25512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25513   yes:no: )
25514     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25515 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25516     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25517 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25518     ac_header_preproc=yes
25519     ;;
25520   no:yes:* )
25521     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25522 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25523     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25524 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25525     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25526 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25527     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25528 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25529     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25530 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25531     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25532 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25533
25534     ;;
25535 esac
25536 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25537 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25539   echo $ECHO_N "(cached) $ECHO_C" >&6
25540 else
25541   eval "$as_ac_Header=\$ac_header_preproc"
25542 fi
25543 ac_res=`eval echo '${'$as_ac_Header'}'`
25544                { echo "$as_me:$LINENO: result: $ac_res" >&5
25545 echo "${ECHO_T}$ac_res" >&6; }
25546
25547 fi
25548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25549
25550
25551 cat >>confdefs.h <<\_ACEOF
25552 #define HAVE_READLINE 1
25553 _ACEOF
25554
25555                         got_readline="yes"
25556                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25557                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25558                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25559                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25560
25561 else
25562
25563                         echo " "
25564                         echo "readline.h not found. readline turned off ..."
25565                         echo " "
25566
25567
25568 fi
25569
25570
25571
25572
25573 fi
25574
25575
25576
25577
25578 fi
25579
25580 fi
25581
25582
25583
25584
25585
25586
25587
25588
25589 MAKE_SHELL=/bin/sh
25590
25591 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25592 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25593 if test "${ac_cv_header_stat_broken+set}" = set; then
25594   echo $ECHO_N "(cached) $ECHO_C" >&6
25595 else
25596   cat >conftest.$ac_ext <<_ACEOF
25597 /* confdefs.h.  */
25598 _ACEOF
25599 cat confdefs.h >>conftest.$ac_ext
25600 cat >>conftest.$ac_ext <<_ACEOF
25601 /* end confdefs.h.  */
25602 #include <sys/types.h>
25603 #include <sys/stat.h>
25604
25605 #if defined S_ISBLK && defined S_IFDIR
25606 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25607 #endif
25608
25609 #if defined S_ISBLK && defined S_IFCHR
25610 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25611 #endif
25612
25613 #if defined S_ISLNK && defined S_IFREG
25614 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25615 #endif
25616
25617 #if defined S_ISSOCK && defined S_IFREG
25618 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25619 #endif
25620
25621 _ACEOF
25622 rm -f conftest.$ac_objext
25623 if { (ac_try="$ac_compile"
25624 case "(($ac_try" in
25625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25626   *) ac_try_echo=$ac_try;;
25627 esac
25628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25629   (eval "$ac_compile") 2>conftest.er1
25630   ac_status=$?
25631   grep -v '^ *+' conftest.er1 >conftest.err
25632   rm -f conftest.er1
25633   cat conftest.err >&5
25634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635   (exit $ac_status); } && {
25636          test -z "$ac_c_werror_flag" ||
25637          test ! -s conftest.err
25638        } && test -s conftest.$ac_objext; then
25639   ac_cv_header_stat_broken=no
25640 else
25641   echo "$as_me: failed program was:" >&5
25642 sed 's/^/| /' conftest.$ac_ext >&5
25643
25644         ac_cv_header_stat_broken=yes
25645 fi
25646
25647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25648 fi
25649 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25650 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25651 if test $ac_cv_header_stat_broken = yes; then
25652
25653 cat >>confdefs.h <<\_ACEOF
25654 #define STAT_MACROS_BROKEN 1
25655 _ACEOF
25656
25657 fi
25658
25659
25660
25661
25662
25663
25664 ac_header_dirent=no
25665 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25666   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25667 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25668 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25670   echo $ECHO_N "(cached) $ECHO_C" >&6
25671 else
25672   cat >conftest.$ac_ext <<_ACEOF
25673 /* confdefs.h.  */
25674 _ACEOF
25675 cat confdefs.h >>conftest.$ac_ext
25676 cat >>conftest.$ac_ext <<_ACEOF
25677 /* end confdefs.h.  */
25678 #include <sys/types.h>
25679 #include <$ac_hdr>
25680
25681 int
25682 main ()
25683 {
25684 if ((DIR *) 0)
25685 return 0;
25686   ;
25687   return 0;
25688 }
25689 _ACEOF
25690 rm -f conftest.$ac_objext
25691 if { (ac_try="$ac_compile"
25692 case "(($ac_try" in
25693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25694   *) ac_try_echo=$ac_try;;
25695 esac
25696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25697   (eval "$ac_compile") 2>conftest.er1
25698   ac_status=$?
25699   grep -v '^ *+' conftest.er1 >conftest.err
25700   rm -f conftest.er1
25701   cat conftest.err >&5
25702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703   (exit $ac_status); } && {
25704          test -z "$ac_c_werror_flag" ||
25705          test ! -s conftest.err
25706        } && test -s conftest.$ac_objext; then
25707   eval "$as_ac_Header=yes"
25708 else
25709   echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25711
25712         eval "$as_ac_Header=no"
25713 fi
25714
25715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25716 fi
25717 ac_res=`eval echo '${'$as_ac_Header'}'`
25718                { echo "$as_me:$LINENO: result: $ac_res" >&5
25719 echo "${ECHO_T}$ac_res" >&6; }
25720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25721   cat >>confdefs.h <<_ACEOF
25722 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25723 _ACEOF
25724
25725 ac_header_dirent=$ac_hdr; break
25726 fi
25727
25728 done
25729 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25730 if test $ac_header_dirent = dirent.h; then
25731   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25732 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25733 if test "${ac_cv_search_opendir+set}" = set; then
25734   echo $ECHO_N "(cached) $ECHO_C" >&6
25735 else
25736   ac_func_search_save_LIBS=$LIBS
25737 cat >conftest.$ac_ext <<_ACEOF
25738 /* confdefs.h.  */
25739 _ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h.  */
25743
25744 /* Override any GCC internal prototype to avoid an error.
25745    Use char because int might match the return type of a GCC
25746    builtin and then its argument prototype would still apply.  */
25747 #ifdef __cplusplus
25748 extern "C"
25749 #endif
25750 char opendir ();
25751 int
25752 main ()
25753 {
25754 return opendir ();
25755   ;
25756   return 0;
25757 }
25758 _ACEOF
25759 for ac_lib in '' dir; do
25760   if test -z "$ac_lib"; then
25761     ac_res="none required"
25762   else
25763     ac_res=-l$ac_lib
25764     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25765   fi
25766   rm -f conftest.$ac_objext conftest$ac_exeext
25767 if { (ac_try="$ac_link"
25768 case "(($ac_try" in
25769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25770   *) ac_try_echo=$ac_try;;
25771 esac
25772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25773   (eval "$ac_link") 2>conftest.er1
25774   ac_status=$?
25775   grep -v '^ *+' conftest.er1 >conftest.err
25776   rm -f conftest.er1
25777   cat conftest.err >&5
25778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779   (exit $ac_status); } && {
25780          test -z "$ac_c_werror_flag" ||
25781          test ! -s conftest.err
25782        } && test -s conftest$ac_exeext &&
25783        $as_test_x conftest$ac_exeext; then
25784   ac_cv_search_opendir=$ac_res
25785 else
25786   echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25788
25789
25790 fi
25791
25792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25793       conftest$ac_exeext
25794   if test "${ac_cv_search_opendir+set}" = set; then
25795   break
25796 fi
25797 done
25798 if test "${ac_cv_search_opendir+set}" = set; then
25799   :
25800 else
25801   ac_cv_search_opendir=no
25802 fi
25803 rm conftest.$ac_ext
25804 LIBS=$ac_func_search_save_LIBS
25805 fi
25806 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25807 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25808 ac_res=$ac_cv_search_opendir
25809 if test "$ac_res" != no; then
25810   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25811
25812 fi
25813
25814 else
25815   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25816 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25817 if test "${ac_cv_search_opendir+set}" = set; then
25818   echo $ECHO_N "(cached) $ECHO_C" >&6
25819 else
25820   ac_func_search_save_LIBS=$LIBS
25821 cat >conftest.$ac_ext <<_ACEOF
25822 /* confdefs.h.  */
25823 _ACEOF
25824 cat confdefs.h >>conftest.$ac_ext
25825 cat >>conftest.$ac_ext <<_ACEOF
25826 /* end confdefs.h.  */
25827
25828 /* Override any GCC internal prototype to avoid an error.
25829    Use char because int might match the return type of a GCC
25830    builtin and then its argument prototype would still apply.  */
25831 #ifdef __cplusplus
25832 extern "C"
25833 #endif
25834 char opendir ();
25835 int
25836 main ()
25837 {
25838 return opendir ();
25839   ;
25840   return 0;
25841 }
25842 _ACEOF
25843 for ac_lib in '' x; do
25844   if test -z "$ac_lib"; then
25845     ac_res="none required"
25846   else
25847     ac_res=-l$ac_lib
25848     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25849   fi
25850   rm -f conftest.$ac_objext conftest$ac_exeext
25851 if { (ac_try="$ac_link"
25852 case "(($ac_try" in
25853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25854   *) ac_try_echo=$ac_try;;
25855 esac
25856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25857   (eval "$ac_link") 2>conftest.er1
25858   ac_status=$?
25859   grep -v '^ *+' conftest.er1 >conftest.err
25860   rm -f conftest.er1
25861   cat conftest.err >&5
25862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863   (exit $ac_status); } && {
25864          test -z "$ac_c_werror_flag" ||
25865          test ! -s conftest.err
25866        } && test -s conftest$ac_exeext &&
25867        $as_test_x conftest$ac_exeext; then
25868   ac_cv_search_opendir=$ac_res
25869 else
25870   echo "$as_me: failed program was:" >&5
25871 sed 's/^/| /' conftest.$ac_ext >&5
25872
25873
25874 fi
25875
25876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25877       conftest$ac_exeext
25878   if test "${ac_cv_search_opendir+set}" = set; then
25879   break
25880 fi
25881 done
25882 if test "${ac_cv_search_opendir+set}" = set; then
25883   :
25884 else
25885   ac_cv_search_opendir=no
25886 fi
25887 rm conftest.$ac_ext
25888 LIBS=$ac_func_search_save_LIBS
25889 fi
25890 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25891 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25892 ac_res=$ac_cv_search_opendir
25893 if test "$ac_res" != no; then
25894   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25895
25896 fi
25897
25898 fi
25899
25900
25901
25902
25903
25904
25905
25906
25907 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
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
26002 for ac_func in nanosleep nl_langinfo
26003 do
26004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26008   echo $ECHO_N "(cached) $ECHO_C" >&6
26009 else
26010   cat >conftest.$ac_ext <<_ACEOF
26011 /* confdefs.h.  */
26012 _ACEOF
26013 cat confdefs.h >>conftest.$ac_ext
26014 cat >>conftest.$ac_ext <<_ACEOF
26015 /* end confdefs.h.  */
26016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26018 #define $ac_func innocuous_$ac_func
26019
26020 /* System header to define __stub macros and hopefully few prototypes,
26021     which can conflict with char $ac_func (); below.
26022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26023     <limits.h> exists even on freestanding compilers.  */
26024
26025 #ifdef __STDC__
26026 # include <limits.h>
26027 #else
26028 # include <assert.h>
26029 #endif
26030
26031 #undef $ac_func
26032
26033 /* Override any GCC internal prototype to avoid an error.
26034    Use char because int might match the return type of a GCC
26035    builtin and then its argument prototype would still apply.  */
26036 #ifdef __cplusplus
26037 extern "C"
26038 #endif
26039 char $ac_func ();
26040 /* The GNU C library defines this for functions which it implements
26041     to always fail with ENOSYS.  Some functions are actually named
26042     something starting with __ and the normal name is an alias.  */
26043 #if defined __stub_$ac_func || defined __stub___$ac_func
26044 choke me
26045 #endif
26046
26047 int
26048 main ()
26049 {
26050 return $ac_func ();
26051   ;
26052   return 0;
26053 }
26054 _ACEOF
26055 rm -f conftest.$ac_objext conftest$ac_exeext
26056 if { (ac_try="$ac_link"
26057 case "(($ac_try" in
26058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26059   *) ac_try_echo=$ac_try;;
26060 esac
26061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26062   (eval "$ac_link") 2>conftest.er1
26063   ac_status=$?
26064   grep -v '^ *+' conftest.er1 >conftest.err
26065   rm -f conftest.er1
26066   cat conftest.err >&5
26067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068   (exit $ac_status); } && {
26069          test -z "$ac_c_werror_flag" ||
26070          test ! -s conftest.err
26071        } && test -s conftest$ac_exeext &&
26072        $as_test_x conftest$ac_exeext; then
26073   eval "$as_ac_var=yes"
26074 else
26075   echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26077
26078         eval "$as_ac_var=no"
26079 fi
26080
26081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26082       conftest$ac_exeext conftest.$ac_ext
26083 fi
26084 ac_res=`eval echo '${'$as_ac_var'}'`
26085                { echo "$as_me:$LINENO: result: $ac_res" >&5
26086 echo "${ECHO_T}$ac_res" >&6; }
26087 if test `eval echo '${'$as_ac_var'}'` = yes; then
26088   cat >>confdefs.h <<_ACEOF
26089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26090 _ACEOF
26091
26092 fi
26093 done
26094
26095
26096 for ac_header in varargs.h
26097 do
26098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26100   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26103   echo $ECHO_N "(cached) $ECHO_C" >&6
26104 fi
26105 ac_res=`eval echo '${'$as_ac_Header'}'`
26106                { echo "$as_me:$LINENO: result: $ac_res" >&5
26107 echo "${ECHO_T}$ac_res" >&6; }
26108 else
26109   # Is the header compilable?
26110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26112 cat >conftest.$ac_ext <<_ACEOF
26113 /* confdefs.h.  */
26114 _ACEOF
26115 cat confdefs.h >>conftest.$ac_ext
26116 cat >>conftest.$ac_ext <<_ACEOF
26117 /* end confdefs.h.  */
26118 $ac_includes_default
26119 #include <$ac_header>
26120 _ACEOF
26121 rm -f conftest.$ac_objext
26122 if { (ac_try="$ac_compile"
26123 case "(($ac_try" in
26124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26125   *) ac_try_echo=$ac_try;;
26126 esac
26127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26128   (eval "$ac_compile") 2>conftest.er1
26129   ac_status=$?
26130   grep -v '^ *+' conftest.er1 >conftest.err
26131   rm -f conftest.er1
26132   cat conftest.err >&5
26133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134   (exit $ac_status); } && {
26135          test -z "$ac_c_werror_flag" ||
26136          test ! -s conftest.err
26137        } && test -s conftest.$ac_objext; then
26138   ac_header_compiler=yes
26139 else
26140   echo "$as_me: failed program was:" >&5
26141 sed 's/^/| /' conftest.$ac_ext >&5
26142
26143         ac_header_compiler=no
26144 fi
26145
26146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26148 echo "${ECHO_T}$ac_header_compiler" >&6; }
26149
26150 # Is the header present?
26151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26153 cat >conftest.$ac_ext <<_ACEOF
26154 /* confdefs.h.  */
26155 _ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
26158 /* end confdefs.h.  */
26159 #include <$ac_header>
26160 _ACEOF
26161 if { (ac_try="$ac_cpp conftest.$ac_ext"
26162 case "(($ac_try" in
26163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26164   *) ac_try_echo=$ac_try;;
26165 esac
26166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26167   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26168   ac_status=$?
26169   grep -v '^ *+' conftest.er1 >conftest.err
26170   rm -f conftest.er1
26171   cat conftest.err >&5
26172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173   (exit $ac_status); } >/dev/null && {
26174          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26175          test ! -s conftest.err
26176        }; then
26177   ac_header_preproc=yes
26178 else
26179   echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.$ac_ext >&5
26181
26182   ac_header_preproc=no
26183 fi
26184
26185 rm -f conftest.err conftest.$ac_ext
26186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26187 echo "${ECHO_T}$ac_header_preproc" >&6; }
26188
26189 # So?  What about this header?
26190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26191   yes:no: )
26192     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26196     ac_header_preproc=yes
26197     ;;
26198   no:yes:* )
26199     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26201     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26202 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26203     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26205     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26206 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26209     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26211
26212     ;;
26213 esac
26214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26217   echo $ECHO_N "(cached) $ECHO_C" >&6
26218 else
26219   eval "$as_ac_Header=\$ac_header_preproc"
26220 fi
26221 ac_res=`eval echo '${'$as_ac_Header'}'`
26222                { echo "$as_me:$LINENO: result: $ac_res" >&5
26223 echo "${ECHO_T}$ac_res" >&6; }
26224
26225 fi
26226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26227   cat >>confdefs.h <<_ACEOF
26228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26229 _ACEOF
26230
26231 fi
26232
26233 done
26234
26235
26236
26237 { echo "$as_me:$LINENO: checking for Python support" >&5
26238 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26239
26240 # Check whether --with-python was given.
26241 if test "${with_python+set}" = set; then
26242   withval=$with_python;
26243        PYTHON_INCDIR=
26244        PYTHON_LIBS=
26245        if test "$withval" != "no"; then
26246           if test "$withval" = "yes"; then
26247              if test -e /usr/bin/python-config ; then
26248                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26249                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26250              else
26251                 for python_root in /usr /usr/local /usr/sfw; do
26252                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26253                       if test -f $python_root/include/${ver}/Python.h; then
26254                          PYTHON_INCDIR=-I$python_root/include/${ver}
26255                          if test -d $python_root/lib64/${ver}/config; then
26256                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26257                          else
26258                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26259                          fi
26260                          break
26261                       fi
26262                    done
26263                 done
26264
26265                 if test x$PYTHON_INCDIR = x; then
26266                    if test -f $prefix/include/Python.h; then
26267                       PYTHON_INCDIR=-I$prefix/include
26268                       if test -d $prefix/lib64/config; then
26269                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26270                       else
26271                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26272                       fi
26273                    else
26274                       { echo "$as_me:$LINENO: result: no" >&5
26275 echo "${ECHO_T}no" >&6; }
26276                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26277 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26278    { (exit 1); exit 1; }; }
26279                    fi
26280                 fi
26281              fi
26282           else
26283              if test -e $withval/bin/python-config ; then
26284                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26285                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26286              elif test -f $withval/Python.h; then
26287                 PYTHON_INCDIR=-I$withval
26288                 PYTHON_LIBS="-L$withval/config -lpython"
26289              elif test -f $withval/include/Python.h; then
26290                 PYTHON_INCDIR=-I$withval/include
26291                 if test -d $withval/lib64/config; then
26292                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26293                 else
26294                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26295                 fi
26296              elif test -f $withval/include/python/Python.h; then
26297                 PYTHON_INCDIR=-I$withval/include/python
26298                 if test -d $withval/lib64/python/config; then
26299                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26300                 else
26301                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26302                 fi
26303              else
26304                 { echo "$as_me:$LINENO: result: no" >&5
26305 echo "${ECHO_T}no" >&6; }
26306                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26307 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26308    { (exit 1); exit 1; }; }
26309              fi
26310           fi
26311
26312           cat >>confdefs.h <<\_ACEOF
26313 #define HAVE_PYTHON 1
26314 _ACEOF
26315
26316           { echo "$as_me:$LINENO: result: yes" >&5
26317 echo "${ECHO_T}yes" >&6; }
26318           support_python=yes
26319           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26320 echo "$as_me: checking for more Python libs" >&6;}
26321           saved_LIBS="$LIBS"; LIBS=
26322           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26323 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26324 if test "${ac_cv_search_shm_open+set}" = set; then
26325   echo $ECHO_N "(cached) $ECHO_C" >&6
26326 else
26327   ac_func_search_save_LIBS=$LIBS
26328 cat >conftest.$ac_ext <<_ACEOF
26329 /* confdefs.h.  */
26330 _ACEOF
26331 cat confdefs.h >>conftest.$ac_ext
26332 cat >>conftest.$ac_ext <<_ACEOF
26333 /* end confdefs.h.  */
26334
26335 /* Override any GCC internal prototype to avoid an error.
26336    Use char because int might match the return type of a GCC
26337    builtin and then its argument prototype would still apply.  */
26338 #ifdef __cplusplus
26339 extern "C"
26340 #endif
26341 char shm_open ();
26342 int
26343 main ()
26344 {
26345 return shm_open ();
26346   ;
26347   return 0;
26348 }
26349 _ACEOF
26350 for ac_lib in '' rt; do
26351   if test -z "$ac_lib"; then
26352     ac_res="none required"
26353   else
26354     ac_res=-l$ac_lib
26355     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26356   fi
26357   rm -f conftest.$ac_objext conftest$ac_exeext
26358 if { (ac_try="$ac_link"
26359 case "(($ac_try" in
26360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26361   *) ac_try_echo=$ac_try;;
26362 esac
26363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26364   (eval "$ac_link") 2>conftest.er1
26365   ac_status=$?
26366   grep -v '^ *+' conftest.er1 >conftest.err
26367   rm -f conftest.er1
26368   cat conftest.err >&5
26369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370   (exit $ac_status); } && {
26371          test -z "$ac_c_werror_flag" ||
26372          test ! -s conftest.err
26373        } && test -s conftest$ac_exeext &&
26374        $as_test_x conftest$ac_exeext; then
26375   ac_cv_search_shm_open=$ac_res
26376 else
26377   echo "$as_me: failed program was:" >&5
26378 sed 's/^/| /' conftest.$ac_ext >&5
26379
26380
26381 fi
26382
26383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26384       conftest$ac_exeext
26385   if test "${ac_cv_search_shm_open+set}" = set; then
26386   break
26387 fi
26388 done
26389 if test "${ac_cv_search_shm_open+set}" = set; then
26390   :
26391 else
26392   ac_cv_search_shm_open=no
26393 fi
26394 rm conftest.$ac_ext
26395 LIBS=$ac_func_search_save_LIBS
26396 fi
26397 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26398 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26399 ac_res=$ac_cv_search_shm_open
26400 if test "$ac_res" != no; then
26401   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26402
26403 fi
26404
26405
26406 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26407 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26408 if test "${ac_cv_lib_util_openpty+set}" = set; then
26409   echo $ECHO_N "(cached) $ECHO_C" >&6
26410 else
26411   ac_check_lib_save_LIBS=$LIBS
26412 LIBS="-lutil  $LIBS"
26413 cat >conftest.$ac_ext <<_ACEOF
26414 /* confdefs.h.  */
26415 _ACEOF
26416 cat confdefs.h >>conftest.$ac_ext
26417 cat >>conftest.$ac_ext <<_ACEOF
26418 /* end confdefs.h.  */
26419
26420 /* Override any GCC internal prototype to avoid an error.
26421    Use char because int might match the return type of a GCC
26422    builtin and then its argument prototype would still apply.  */
26423 #ifdef __cplusplus
26424 extern "C"
26425 #endif
26426 char openpty ();
26427 int
26428 main ()
26429 {
26430 return openpty ();
26431   ;
26432   return 0;
26433 }
26434 _ACEOF
26435 rm -f conftest.$ac_objext conftest$ac_exeext
26436 if { (ac_try="$ac_link"
26437 case "(($ac_try" in
26438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26439   *) ac_try_echo=$ac_try;;
26440 esac
26441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26442   (eval "$ac_link") 2>conftest.er1
26443   ac_status=$?
26444   grep -v '^ *+' conftest.er1 >conftest.err
26445   rm -f conftest.er1
26446   cat conftest.err >&5
26447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448   (exit $ac_status); } && {
26449          test -z "$ac_c_werror_flag" ||
26450          test ! -s conftest.err
26451        } && test -s conftest$ac_exeext &&
26452        $as_test_x conftest$ac_exeext; then
26453   ac_cv_lib_util_openpty=yes
26454 else
26455   echo "$as_me: failed program was:" >&5
26456 sed 's/^/| /' conftest.$ac_ext >&5
26457
26458         ac_cv_lib_util_openpty=no
26459 fi
26460
26461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26462       conftest$ac_exeext conftest.$ac_ext
26463 LIBS=$ac_check_lib_save_LIBS
26464 fi
26465 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26466 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26467 if test $ac_cv_lib_util_openpty = yes; then
26468   cat >>confdefs.h <<_ACEOF
26469 #define HAVE_LIBUTIL 1
26470 _ACEOF
26471
26472   LIBS="-lutil $LIBS"
26473
26474 fi
26475
26476           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26477           LIBS="$saved_LIBS"
26478        else
26479           { echo "$as_me:$LINENO: result: no" >&5
26480 echo "${ECHO_T}no" >&6; }
26481        fi
26482
26483 else
26484
26485        { echo "$as_me:$LINENO: result: no" >&5
26486 echo "${ECHO_T}no" >&6; }
26487
26488
26489 fi
26490
26491
26492
26493
26494 { echo "$as_me:$LINENO: checking for socket" >&5
26495 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26496 if test "${ac_cv_func_socket+set}" = set; then
26497   echo $ECHO_N "(cached) $ECHO_C" >&6
26498 else
26499   cat >conftest.$ac_ext <<_ACEOF
26500 /* confdefs.h.  */
26501 _ACEOF
26502 cat confdefs.h >>conftest.$ac_ext
26503 cat >>conftest.$ac_ext <<_ACEOF
26504 /* end confdefs.h.  */
26505 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26506    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26507 #define socket innocuous_socket
26508
26509 /* System header to define __stub macros and hopefully few prototypes,
26510     which can conflict with char socket (); below.
26511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26512     <limits.h> exists even on freestanding compilers.  */
26513
26514 #ifdef __STDC__
26515 # include <limits.h>
26516 #else
26517 # include <assert.h>
26518 #endif
26519
26520 #undef socket
26521
26522 /* Override any GCC internal prototype to avoid an error.
26523    Use char because int might match the return type of a GCC
26524    builtin and then its argument prototype would still apply.  */
26525 #ifdef __cplusplus
26526 extern "C"
26527 #endif
26528 char socket ();
26529 /* The GNU C library defines this for functions which it implements
26530     to always fail with ENOSYS.  Some functions are actually named
26531     something starting with __ and the normal name is an alias.  */
26532 #if defined __stub_socket || defined __stub___socket
26533 choke me
26534 #endif
26535
26536 int
26537 main ()
26538 {
26539 return socket ();
26540   ;
26541   return 0;
26542 }
26543 _ACEOF
26544 rm -f conftest.$ac_objext conftest$ac_exeext
26545 if { (ac_try="$ac_link"
26546 case "(($ac_try" in
26547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26548   *) ac_try_echo=$ac_try;;
26549 esac
26550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26551   (eval "$ac_link") 2>conftest.er1
26552   ac_status=$?
26553   grep -v '^ *+' conftest.er1 >conftest.err
26554   rm -f conftest.er1
26555   cat conftest.err >&5
26556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557   (exit $ac_status); } && {
26558          test -z "$ac_c_werror_flag" ||
26559          test ! -s conftest.err
26560        } && test -s conftest$ac_exeext &&
26561        $as_test_x conftest$ac_exeext; then
26562   ac_cv_func_socket=yes
26563 else
26564   echo "$as_me: failed program was:" >&5
26565 sed 's/^/| /' conftest.$ac_ext >&5
26566
26567         ac_cv_func_socket=no
26568 fi
26569
26570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26571       conftest$ac_exeext conftest.$ac_ext
26572 fi
26573 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26574 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26575 if test $ac_cv_func_socket = yes; then
26576   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26577 echo "${ECHO_T}using libc's socket" >&6; }
26578 else
26579
26580 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26581 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26582 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26583   echo $ECHO_N "(cached) $ECHO_C" >&6
26584 else
26585   ac_check_lib_save_LIBS=$LIBS
26586 LIBS="-lxnet  $LIBS"
26587 cat >conftest.$ac_ext <<_ACEOF
26588 /* confdefs.h.  */
26589 _ACEOF
26590 cat confdefs.h >>conftest.$ac_ext
26591 cat >>conftest.$ac_ext <<_ACEOF
26592 /* end confdefs.h.  */
26593
26594 /* Override any GCC internal prototype to avoid an error.
26595    Use char because int might match the return type of a GCC
26596    builtin and then its argument prototype would still apply.  */
26597 #ifdef __cplusplus
26598 extern "C"
26599 #endif
26600 char socket ();
26601 int
26602 main ()
26603 {
26604 return socket ();
26605   ;
26606   return 0;
26607 }
26608 _ACEOF
26609 rm -f conftest.$ac_objext conftest$ac_exeext
26610 if { (ac_try="$ac_link"
26611 case "(($ac_try" in
26612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26613   *) ac_try_echo=$ac_try;;
26614 esac
26615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26616   (eval "$ac_link") 2>conftest.er1
26617   ac_status=$?
26618   grep -v '^ *+' conftest.er1 >conftest.err
26619   rm -f conftest.er1
26620   cat conftest.err >&5
26621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622   (exit $ac_status); } && {
26623          test -z "$ac_c_werror_flag" ||
26624          test ! -s conftest.err
26625        } && test -s conftest$ac_exeext &&
26626        $as_test_x conftest$ac_exeext; then
26627   ac_cv_lib_xnet_socket=yes
26628 else
26629   echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26631
26632         ac_cv_lib_xnet_socket=no
26633 fi
26634
26635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26636       conftest$ac_exeext conftest.$ac_ext
26637 LIBS=$ac_check_lib_save_LIBS
26638 fi
26639 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26640 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26641 if test $ac_cv_lib_xnet_socket = yes; then
26642   cat >>confdefs.h <<_ACEOF
26643 #define HAVE_LIBXNET 1
26644 _ACEOF
26645
26646   LIBS="-lxnet $LIBS"
26647
26648 fi
26649
26650
26651 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26652 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26653 if test "${ac_cv_lib_socket_socket+set}" = set; then
26654   echo $ECHO_N "(cached) $ECHO_C" >&6
26655 else
26656   ac_check_lib_save_LIBS=$LIBS
26657 LIBS="-lsocket  $LIBS"
26658 cat >conftest.$ac_ext <<_ACEOF
26659 /* confdefs.h.  */
26660 _ACEOF
26661 cat confdefs.h >>conftest.$ac_ext
26662 cat >>conftest.$ac_ext <<_ACEOF
26663 /* end confdefs.h.  */
26664
26665 /* Override any GCC internal prototype to avoid an error.
26666    Use char because int might match the return type of a GCC
26667    builtin and then its argument prototype would still apply.  */
26668 #ifdef __cplusplus
26669 extern "C"
26670 #endif
26671 char socket ();
26672 int
26673 main ()
26674 {
26675 return socket ();
26676   ;
26677   return 0;
26678 }
26679 _ACEOF
26680 rm -f conftest.$ac_objext conftest$ac_exeext
26681 if { (ac_try="$ac_link"
26682 case "(($ac_try" in
26683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26684   *) ac_try_echo=$ac_try;;
26685 esac
26686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26687   (eval "$ac_link") 2>conftest.er1
26688   ac_status=$?
26689   grep -v '^ *+' conftest.er1 >conftest.err
26690   rm -f conftest.er1
26691   cat conftest.err >&5
26692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693   (exit $ac_status); } && {
26694          test -z "$ac_c_werror_flag" ||
26695          test ! -s conftest.err
26696        } && test -s conftest$ac_exeext &&
26697        $as_test_x conftest$ac_exeext; then
26698   ac_cv_lib_socket_socket=yes
26699 else
26700   echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26702
26703         ac_cv_lib_socket_socket=no
26704 fi
26705
26706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26707       conftest$ac_exeext conftest.$ac_ext
26708 LIBS=$ac_check_lib_save_LIBS
26709 fi
26710 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26711 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26712 if test $ac_cv_lib_socket_socket = yes; then
26713   cat >>confdefs.h <<_ACEOF
26714 #define HAVE_LIBSOCKET 1
26715 _ACEOF
26716
26717   LIBS="-lsocket $LIBS"
26718
26719 fi
26720
26721
26722 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26723 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26724 if test "${ac_cv_lib_inet_socket+set}" = set; then
26725   echo $ECHO_N "(cached) $ECHO_C" >&6
26726 else
26727   ac_check_lib_save_LIBS=$LIBS
26728 LIBS="-linet  $LIBS"
26729 cat >conftest.$ac_ext <<_ACEOF
26730 /* confdefs.h.  */
26731 _ACEOF
26732 cat confdefs.h >>conftest.$ac_ext
26733 cat >>conftest.$ac_ext <<_ACEOF
26734 /* end confdefs.h.  */
26735
26736 /* Override any GCC internal prototype to avoid an error.
26737    Use char because int might match the return type of a GCC
26738    builtin and then its argument prototype would still apply.  */
26739 #ifdef __cplusplus
26740 extern "C"
26741 #endif
26742 char socket ();
26743 int
26744 main ()
26745 {
26746 return socket ();
26747   ;
26748   return 0;
26749 }
26750 _ACEOF
26751 rm -f conftest.$ac_objext conftest$ac_exeext
26752 if { (ac_try="$ac_link"
26753 case "(($ac_try" in
26754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26755   *) ac_try_echo=$ac_try;;
26756 esac
26757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26758   (eval "$ac_link") 2>conftest.er1
26759   ac_status=$?
26760   grep -v '^ *+' conftest.er1 >conftest.err
26761   rm -f conftest.er1
26762   cat conftest.err >&5
26763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764   (exit $ac_status); } && {
26765          test -z "$ac_c_werror_flag" ||
26766          test ! -s conftest.err
26767        } && test -s conftest$ac_exeext &&
26768        $as_test_x conftest$ac_exeext; then
26769   ac_cv_lib_inet_socket=yes
26770 else
26771   echo "$as_me: failed program was:" >&5
26772 sed 's/^/| /' conftest.$ac_ext >&5
26773
26774         ac_cv_lib_inet_socket=no
26775 fi
26776
26777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26778       conftest$ac_exeext conftest.$ac_ext
26779 LIBS=$ac_check_lib_save_LIBS
26780 fi
26781 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26782 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26783 if test $ac_cv_lib_inet_socket = yes; then
26784   cat >>confdefs.h <<_ACEOF
26785 #define HAVE_LIBINET 1
26786 _ACEOF
26787
26788   LIBS="-linet $LIBS"
26789
26790 fi
26791
26792 fi
26793
26794
26795 TCPW_MSG="no"
26796 WRAPLIBS=""
26797
26798 # Check whether --with-tcp-wrappers was given.
26799 if test "${with_tcp_wrappers+set}" = set; then
26800   withval=$with_tcp_wrappers;
26801        if test "x$withval" != "xno" ; then
26802           saved_LIBS="$LIBS"
26803           LIBS="$saved_LIBS -lwrap"
26804           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26805 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26806 if test "${ac_cv_search_nanosleep+set}" = set; then
26807   echo $ECHO_N "(cached) $ECHO_C" >&6
26808 else
26809   ac_func_search_save_LIBS=$LIBS
26810 cat >conftest.$ac_ext <<_ACEOF
26811 /* confdefs.h.  */
26812 _ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h.  */
26816
26817 /* Override any GCC internal prototype to avoid an error.
26818    Use char because int might match the return type of a GCC
26819    builtin and then its argument prototype would still apply.  */
26820 #ifdef __cplusplus
26821 extern "C"
26822 #endif
26823 char nanosleep ();
26824 int
26825 main ()
26826 {
26827 return nanosleep ();
26828   ;
26829   return 0;
26830 }
26831 _ACEOF
26832 for ac_lib in '' rt; do
26833   if test -z "$ac_lib"; then
26834     ac_res="none required"
26835   else
26836     ac_res=-l$ac_lib
26837     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26838   fi
26839   rm -f conftest.$ac_objext conftest$ac_exeext
26840 if { (ac_try="$ac_link"
26841 case "(($ac_try" in
26842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26843   *) ac_try_echo=$ac_try;;
26844 esac
26845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26846   (eval "$ac_link") 2>conftest.er1
26847   ac_status=$?
26848   grep -v '^ *+' conftest.er1 >conftest.err
26849   rm -f conftest.er1
26850   cat conftest.err >&5
26851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852   (exit $ac_status); } && {
26853          test -z "$ac_c_werror_flag" ||
26854          test ! -s conftest.err
26855        } && test -s conftest$ac_exeext &&
26856        $as_test_x conftest$ac_exeext; then
26857   ac_cv_search_nanosleep=$ac_res
26858 else
26859   echo "$as_me: failed program was:" >&5
26860 sed 's/^/| /' conftest.$ac_ext >&5
26861
26862
26863 fi
26864
26865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26866       conftest$ac_exeext
26867   if test "${ac_cv_search_nanosleep+set}" = set; then
26868   break
26869 fi
26870 done
26871 if test "${ac_cv_search_nanosleep+set}" = set; then
26872   :
26873 else
26874   ac_cv_search_nanosleep=no
26875 fi
26876 rm conftest.$ac_ext
26877 LIBS=$ac_func_search_save_LIBS
26878 fi
26879 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26880 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26881 ac_res=$ac_cv_search_nanosleep
26882 if test "$ac_res" != no; then
26883   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26884
26885 fi
26886
26887           { echo "$as_me:$LINENO: checking for libwrap" >&5
26888 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26889           cat >conftest.$ac_ext <<_ACEOF
26890 /* confdefs.h.  */
26891 _ACEOF
26892 cat confdefs.h >>conftest.$ac_ext
26893 cat >>conftest.$ac_ext <<_ACEOF
26894 /* end confdefs.h.  */
26895
26896                #include <sys/types.h>
26897                #include <tcpd.h>
26898                int deny_severity = 0;
26899                int allow_severity = 0;
26900                struct request_info *req;
26901
26902 int
26903 main ()
26904 {
26905
26906                 hosts_access(req);
26907
26908   ;
26909   return 0;
26910 }
26911 _ACEOF
26912 rm -f conftest.$ac_objext conftest$ac_exeext
26913 if { (ac_try="$ac_link"
26914 case "(($ac_try" in
26915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916   *) ac_try_echo=$ac_try;;
26917 esac
26918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26919   (eval "$ac_link") 2>conftest.er1
26920   ac_status=$?
26921   grep -v '^ *+' conftest.er1 >conftest.err
26922   rm -f conftest.er1
26923   cat conftest.err >&5
26924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925   (exit $ac_status); } && {
26926          test -z "$ac_c_werror_flag" ||
26927          test ! -s conftest.err
26928        } && test -s conftest$ac_exeext &&
26929        $as_test_x conftest$ac_exeext; then
26930
26931                  { echo "$as_me:$LINENO: result: yes" >&5
26932 echo "${ECHO_T}yes" >&6; }
26933
26934 cat >>confdefs.h <<\_ACEOF
26935 #define HAVE_LIBWRAP 1
26936 _ACEOF
26937
26938                  TCPW_MSG="yes"
26939                  LIBS="$saved_LIBS"
26940                  WRAPLIBS="-lwrap"
26941
26942 else
26943   echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26945
26946
26947                  LIBS="$saved_LIBS -lwrap -lnsl"
26948                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26949                  cat >conftest.$ac_ext <<_ACEOF
26950 /* confdefs.h.  */
26951 _ACEOF
26952 cat confdefs.h >>conftest.$ac_ext
26953 cat >>conftest.$ac_ext <<_ACEOF
26954 /* end confdefs.h.  */
26955
26956                        #include <sys/types.h>
26957                        #include <tcpd.h>
26958                        int deny_severity = 0;
26959                        int allow_severity = 0;
26960                        struct request_info *req;
26961
26962 int
26963 main ()
26964 {
26965
26966                        hosts_access(req);
26967
26968   ;
26969   return 0;
26970 }
26971 _ACEOF
26972 rm -f conftest.$ac_objext conftest$ac_exeext
26973 if { (ac_try="$ac_link"
26974 case "(($ac_try" in
26975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26976   *) ac_try_echo=$ac_try;;
26977 esac
26978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26979   (eval "$ac_link") 2>conftest.er1
26980   ac_status=$?
26981   grep -v '^ *+' conftest.er1 >conftest.err
26982   rm -f conftest.er1
26983   cat conftest.err >&5
26984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985   (exit $ac_status); } && {
26986          test -z "$ac_c_werror_flag" ||
26987          test ! -s conftest.err
26988        } && test -s conftest$ac_exeext &&
26989        $as_test_x conftest$ac_exeext; then
26990
26991                       { echo "$as_me:$LINENO: result: yes" >&5
26992 echo "${ECHO_T}yes" >&6; }
26993
26994 cat >>confdefs.h <<\_ACEOF
26995 #define HAVE_LIBWRAP 1
26996 _ACEOF
26997
26998                       TCPW_MSG="yes"
26999                       LIBS="$saved_LIBS"
27000                       WRAPLIBS="-lwrap"
27001
27002 else
27003   echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27005
27006
27007                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27008 echo "$as_me: error: *** libwrap missing" >&2;}
27009    { (exit 1); exit 1; }; }
27010
27011
27012 fi
27013
27014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27015       conftest$ac_exeext conftest.$ac_ext
27016
27017
27018 fi
27019
27020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27021       conftest$ac_exeext conftest.$ac_ext
27022        fi
27023
27024
27025 fi
27026
27027
27028 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27029 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27030
27031 # Check whether --with-openssl was given.
27032 if test "${with_openssl+set}" = set; then
27033   withval=$with_openssl;
27034         with_openssl_directory=${withval}
27035
27036
27037 fi
27038
27039
27040 if test "x$with_openssl_directory" != "xno"; then
27041    OPENSSL_LIBS="-lssl -lcrypto"
27042    OPENSSL_INC=""
27043
27044    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27045       #
27046       # Make sure the $with_openssl_directory also makes sense
27047       #
27048       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27049          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27050          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27051       fi
27052    fi
27053
27054    saved_LIBS="${LIBS}"
27055    saved_CFLAGS="${CFLAGS}"
27056    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27057    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27058
27059    cat >conftest.$ac_ext <<_ACEOF
27060 /* confdefs.h.  */
27061 _ACEOF
27062 cat confdefs.h >>conftest.$ac_ext
27063 cat >>conftest.$ac_ext <<_ACEOF
27064 /* end confdefs.h.  */
27065
27066           #include <openssl/ssl.h>
27067
27068 int
27069 main ()
27070 {
27071
27072            CRYPTO_set_id_callback(NULL);
27073
27074   ;
27075   return 0;
27076 }
27077 _ACEOF
27078 rm -f conftest.$ac_objext conftest$ac_exeext
27079 if { (ac_try="$ac_link"
27080 case "(($ac_try" in
27081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27082   *) ac_try_echo=$ac_try;;
27083 esac
27084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27085   (eval "$ac_link") 2>conftest.er1
27086   ac_status=$?
27087   grep -v '^ *+' conftest.er1 >conftest.err
27088   rm -f conftest.er1
27089   cat conftest.err >&5
27090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091   (exit $ac_status); } && {
27092          test -z "$ac_c_werror_flag" ||
27093          test ! -s conftest.err
27094        } && test -s conftest$ac_exeext &&
27095        $as_test_x conftest$ac_exeext; then
27096
27097           support_tls="yes"
27098           support_crypto="yes"
27099
27100 else
27101   echo "$as_me: failed program was:" >&5
27102 sed 's/^/| /' conftest.$ac_ext >&5
27103
27104
27105           support_tls="no"
27106
27107
27108 fi
27109
27110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27111       conftest$ac_exeext conftest.$ac_ext
27112
27113    cat >conftest.$ac_ext <<_ACEOF
27114 /* confdefs.h.  */
27115 _ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h.  */
27119
27120           #include <openssl/evp.h>
27121
27122 int
27123 main ()
27124 {
27125
27126           EVP_sha512();
27127
27128   ;
27129   return 0;
27130 }
27131 _ACEOF
27132 rm -f conftest.$ac_objext conftest$ac_exeext
27133 if { (ac_try="$ac_link"
27134 case "(($ac_try" in
27135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136   *) ac_try_echo=$ac_try;;
27137 esac
27138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27139   (eval "$ac_link") 2>conftest.er1
27140   ac_status=$?
27141   grep -v '^ *+' conftest.er1 >conftest.err
27142   rm -f conftest.er1
27143   cat conftest.err >&5
27144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145   (exit $ac_status); } && {
27146          test -z "$ac_c_werror_flag" ||
27147          test ! -s conftest.err
27148        } && test -s conftest$ac_exeext &&
27149        $as_test_x conftest$ac_exeext; then
27150
27151           ac_cv_openssl_sha2="yes"
27152
27153 else
27154   echo "$as_me: failed program was:" >&5
27155 sed 's/^/| /' conftest.$ac_ext >&5
27156
27157
27158           ac_cv_openssl_sha2="no"
27159
27160
27161 fi
27162
27163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27164       conftest$ac_exeext conftest.$ac_ext
27165
27166                cat >conftest.$ac_ext <<_ACEOF
27167 /* confdefs.h.  */
27168 _ACEOF
27169 cat confdefs.h >>conftest.$ac_ext
27170 cat >>conftest.$ac_ext <<_ACEOF
27171 /* end confdefs.h.  */
27172
27173           #include <openssl/evp.h>
27174
27175 int
27176 main ()
27177 {
27178
27179           EVP_aes_192_cbc();
27180
27181   ;
27182   return 0;
27183 }
27184 _ACEOF
27185 rm -f conftest.$ac_objext conftest$ac_exeext
27186 if { (ac_try="$ac_link"
27187 case "(($ac_try" in
27188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27189   *) ac_try_echo=$ac_try;;
27190 esac
27191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27192   (eval "$ac_link") 2>conftest.er1
27193   ac_status=$?
27194   grep -v '^ *+' conftest.er1 >conftest.err
27195   rm -f conftest.er1
27196   cat conftest.err >&5
27197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198   (exit $ac_status); } && {
27199          test -z "$ac_c_werror_flag" ||
27200          test ! -s conftest.err
27201        } && test -s conftest$ac_exeext &&
27202        $as_test_x conftest$ac_exeext; then
27203
27204           ac_cv_openssl_export="no"
27205
27206 else
27207   echo "$as_me: failed program was:" >&5
27208 sed 's/^/| /' conftest.$ac_ext >&5
27209
27210
27211           ac_cv_openssl_export="yes"
27212
27213
27214 fi
27215
27216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27217       conftest$ac_exeext conftest.$ac_ext
27218
27219    LIBS="${saved_LIBS}"
27220    CFLAGS="${saved_CFLAGS}"
27221
27222    if test "$support_tls" = "yes"; then
27223
27224 cat >>confdefs.h <<\_ACEOF
27225 #define HAVE_OPENSSL 1
27226 _ACEOF
27227
27228
27229 cat >>confdefs.h <<\_ACEOF
27230 #define HAVE_TLS 1
27231 _ACEOF
27232
27233
27234 cat >>confdefs.h <<\_ACEOF
27235 #define HAVE_CRYPTO 1
27236 _ACEOF
27237
27238    fi
27239
27240    if test "$ac_cv_openssl_sha2" = "yes"; then
27241
27242 cat >>confdefs.h <<\_ACEOF
27243 #define HAVE_SHA2 1
27244 _ACEOF
27245
27246    fi
27247
27248    if test "$ac_cv_openssl_export" = "yes"; then
27249
27250 cat >>confdefs.h <<\_ACEOF
27251 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27252 _ACEOF
27253
27254    fi
27255 else
27256    support_tls="no"
27257    support_crypto="no"
27258    OPENSSL_LIBS=""
27259    OPENSSL_INC=""
27260 fi
27261
27262 if test "$support_tls" = "no"; then
27263    OPENSSL_LIBS=""
27264    OPENSSL_INC=""
27265 fi
27266
27267 { echo "$as_me:$LINENO: result: $support_tls" >&5
27268 echo "${ECHO_T}$support_tls" >&6; }
27269
27270
27271
27272 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27273 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27274 if test "${ac_cv_search_dlopen+set}" = set; then
27275   echo $ECHO_N "(cached) $ECHO_C" >&6
27276 else
27277   ac_func_search_save_LIBS=$LIBS
27278 cat >conftest.$ac_ext <<_ACEOF
27279 /* confdefs.h.  */
27280 _ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h.  */
27284
27285 /* Override any GCC internal prototype to avoid an error.
27286    Use char because int might match the return type of a GCC
27287    builtin and then its argument prototype would still apply.  */
27288 #ifdef __cplusplus
27289 extern "C"
27290 #endif
27291 char dlopen ();
27292 int
27293 main ()
27294 {
27295 return dlopen ();
27296   ;
27297   return 0;
27298 }
27299 _ACEOF
27300 for ac_lib in '' dl; do
27301   if test -z "$ac_lib"; then
27302     ac_res="none required"
27303   else
27304     ac_res=-l$ac_lib
27305     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27306   fi
27307   rm -f conftest.$ac_objext conftest$ac_exeext
27308 if { (ac_try="$ac_link"
27309 case "(($ac_try" in
27310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27311   *) ac_try_echo=$ac_try;;
27312 esac
27313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27314   (eval "$ac_link") 2>conftest.er1
27315   ac_status=$?
27316   grep -v '^ *+' conftest.er1 >conftest.err
27317   rm -f conftest.er1
27318   cat conftest.err >&5
27319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320   (exit $ac_status); } && {
27321          test -z "$ac_c_werror_flag" ||
27322          test ! -s conftest.err
27323        } && test -s conftest$ac_exeext &&
27324        $as_test_x conftest$ac_exeext; then
27325   ac_cv_search_dlopen=$ac_res
27326 else
27327   echo "$as_me: failed program was:" >&5
27328 sed 's/^/| /' conftest.$ac_ext >&5
27329
27330
27331 fi
27332
27333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27334       conftest$ac_exeext
27335   if test "${ac_cv_search_dlopen+set}" = set; then
27336   break
27337 fi
27338 done
27339 if test "${ac_cv_search_dlopen+set}" = set; then
27340   :
27341 else
27342   ac_cv_search_dlopen=no
27343 fi
27344 rm conftest.$ac_ext
27345 LIBS=$ac_func_search_save_LIBS
27346 fi
27347 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27348 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27349 ac_res=$ac_cv_search_dlopen
27350 if test "$ac_res" != no; then
27351   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27352
27353 fi
27354
27355
27356 working_dir=`eval echo ${prefix}/var/bacula/working`
27357
27358 # Check whether --with-working-dir was given.
27359 if test "${with_working_dir+set}" = set; then
27360   withval=$with_working_dir;
27361        if test "x$withval" != "xno" ; then
27362          working_dir=$withval
27363        fi
27364
27365
27366 fi
27367
27368
27369
27370
27371 archivedir=/tmp
27372
27373 # Check whether --with-archivedir was given.
27374 if test "${with_archivedir+set}" = set; then
27375   withval=$with_archivedir;
27376        if test "x$withval" != "xno" ; then
27377           archivedir=$withval
27378        fi
27379
27380
27381 fi
27382
27383
27384
27385
27386 basename=`hostname`
27387
27388 # Check whether --with-basename was given.
27389 if test "${with_basename+set}" = set; then
27390   withval=$with_basename;
27391        if test "x$withval" != "xno" ; then
27392           basename=$withval
27393        fi
27394
27395
27396 fi
27397
27398
27399
27400
27401 hostname=`uname -n | cut -d '.' -f 1`
27402 if test x${hostname} = x ; then
27403   hostname="localhost"
27404 fi
27405
27406 # Check whether --with-hostname was given.
27407 if test "${with_hostname+set}" = set; then
27408   withval=$with_hostname;
27409        if test "x$withval" != "xno" ; then
27410          hostname=$withval
27411        fi
27412
27413
27414 fi
27415
27416
27417
27418
27419
27420 scriptdir=`eval echo ${sysconfdir}`
27421
27422 # Check whether --with-scriptdir was given.
27423 if test "${with_scriptdir+set}" = set; then
27424   withval=$with_scriptdir;
27425        if test "x$withval" != "xno" ; then
27426           scriptdir=$withval
27427        fi
27428
27429
27430 fi
27431
27432
27433
27434
27435
27436 bsrdir=/tmp
27437
27438 # Check whether --with-bsrdir was given.
27439 if test "${with_bsrdir+set}" = set; then
27440   withval=$with_bsrdir;
27441        if test "x$withval" != "xno" ; then
27442           bsrdir=$withval
27443        fi
27444
27445
27446 fi
27447
27448
27449
27450
27451 logdir=/tmp
27452
27453 # Check whether --with-logdir was given.
27454 if test "${with_logdir+set}" = set; then
27455   withval=$with_logdir;
27456        if test "x$withval" != "xno" ; then
27457           logdir=$withval
27458        fi
27459
27460
27461 fi
27462
27463
27464
27465
27466
27467 # ------------------------------------------
27468 # Where to place plugindir (plugin files)
27469 # ------------------------------------------
27470 plugindir=`eval echo ${libdir}`
27471
27472 # Check whether --with-plugindir was given.
27473 if test "${with_plugindir+set}" = set; then
27474   withval=$with_plugindir;
27475        if test "x$withval" != "xno" ; then
27476           plugindir=$withval
27477        fi
27478
27479
27480 fi
27481
27482
27483
27484
27485 dump_email=root@localhost
27486
27487 # Check whether --with-dump-email was given.
27488 if test "${with_dump_email+set}" = set; then
27489   withval=$with_dump_email;
27490        if test "x$withval" != "xno" ; then
27491           dump_email=$withval
27492        fi
27493
27494
27495 fi
27496
27497
27498
27499
27500 job_email=root@localhost
27501
27502 # Check whether --with-job-email was given.
27503 if test "${with_job_email+set}" = set; then
27504   withval=$with_job_email;
27505        if test "x$withval" != "xno" ; then
27506           job_email=$withval
27507        fi
27508
27509
27510 fi
27511
27512
27513
27514
27515 smtp_host=localhost
27516
27517 # Check whether --with-smtp_host was given.
27518 if test "${with_smtp_host+set}" = set; then
27519   withval=$with_smtp_host;
27520        if test "x$withval" != "xno" ; then
27521           smtp_host=$withval
27522        fi
27523
27524
27525 fi
27526
27527
27528
27529
27530 piddir=/var/run
27531
27532 # Check whether --with-pid-dir was given.
27533 if test "${with_pid_dir+set}" = set; then
27534   withval=$with_pid_dir;
27535        if test "x$withval" != "xno" ; then
27536           piddir=$withval
27537        fi
27538
27539
27540 fi
27541
27542
27543 cat >>confdefs.h <<_ACEOF
27544 #define _PATH_BACULA_PIDDIR "$piddir"
27545 _ACEOF
27546
27547
27548
27549 subsysdir=/var/run/subsys
27550 if test -d /var/run/subsys; then
27551    subsysdir=/var/run/subsys
27552 elif test -d /var/lock/subsys; then
27553    subsysdir=/var/lock/subsys
27554 else
27555    subsysdir=/var/run/subsys
27556 fi
27557
27558 # Check whether --with-subsys-dir was given.
27559 if test "${with_subsys_dir+set}" = set; then
27560   withval=$with_subsys_dir;
27561        if test "x$withval" != "xno" ; then
27562           subsysdir=$withval
27563        fi
27564
27565
27566 fi
27567
27568
27569
27570
27571 baseport=9101
27572
27573 # Check whether --with-baseport was given.
27574 if test "${with_baseport+set}" = set; then
27575   withval=$with_baseport;
27576        if test "x$withval" != "xno" ; then
27577           baseport=$withval
27578        fi
27579
27580
27581 fi
27582
27583
27584
27585 dir_port=`expr $baseport`
27586 fd_port=`expr $baseport + 1`
27587 sd_port=`expr $fd_port + 1`
27588
27589
27590
27591
27592
27593 dir_password=
27594
27595 # Check whether --with-dir-password was given.
27596 if test "${with_dir_password+set}" = set; then
27597   withval=$with_dir_password;
27598        if test "x$withval" != "xno" ; then
27599           dir_password=$withval
27600        fi
27601
27602
27603 fi
27604
27605
27606 if test "x$dir_password" = "x" ; then
27607    if test "x$OPENSSL" = "xnone" ; then
27608       key=`autoconf/randpass 33`
27609    else
27610       key=`openssl rand -base64 33`
27611    fi
27612    dir_password=$key
27613 fi
27614
27615 fd_password=
27616
27617 # Check whether --with-fd-password was given.
27618 if test "${with_fd_password+set}" = set; then
27619   withval=$with_fd_password;
27620        if test "x$withval" != "xno" ; then
27621           fd_password=$withval
27622        fi
27623
27624
27625 fi
27626
27627
27628 if test "x$fd_password" = "x" ; then
27629    if test "x$OPENSSL" = "xnone" ; then
27630       key=`autoconf/randpass 37`
27631    else
27632       key=`openssl rand -base64 33`
27633    fi
27634    fd_password=$key
27635 fi
27636
27637 sd_password=
27638
27639 # Check whether --with-sd-password was given.
27640 if test "${with_sd_password+set}" = set; then
27641   withval=$with_sd_password;
27642        if test "x$withval" != "xno" ; then
27643           sd_password=$withval
27644        fi
27645
27646
27647 fi
27648
27649
27650 if test "x$sd_password" = "x" ; then
27651    if test "x$OPENSSL" = "xnone" ; then
27652       key=`autoconf/randpass 41`
27653    else
27654       key=`openssl rand -base64 33`
27655    fi
27656    sd_password=$key
27657 fi
27658
27659 mon_dir_password=
27660
27661 # Check whether --with-mon-dir-password was given.
27662 if test "${with_mon_dir_password+set}" = set; then
27663   withval=$with_mon_dir_password;
27664        if test "x$withval" != "xno" ; then
27665           mon_dir_password=$withval
27666        fi
27667
27668
27669 fi
27670
27671
27672 if test "x$mon_dir_password" = "x" ; then
27673    if test "x$OPENSSL" = "xnone" ; then
27674       key=`autoconf/randpass 33`
27675    else
27676       key=`openssl rand -base64 33`
27677    fi
27678    mon_dir_password=$key
27679 fi
27680
27681 mon_fd_password=
27682
27683 # Check whether --with-mon-fd-password was given.
27684 if test "${with_mon_fd_password+set}" = set; then
27685   withval=$with_mon_fd_password;
27686        if test "x$withval" != "xno" ; then
27687           mon_fd_password=$withval
27688        fi
27689
27690
27691 fi
27692
27693
27694 if test "x$mon_fd_password" = "x" ; then
27695    if test "x$OPENSSL" = "xnone" ; then
27696       key=`autoconf/randpass 37`
27697    else
27698       key=`openssl rand -base64 33`
27699    fi
27700    mon_fd_password=$key
27701 fi
27702
27703 mon_sd_password=
27704
27705 # Check whether --with-mon-sd-password was given.
27706 if test "${with_mon_sd_password+set}" = set; then
27707   withval=$with_mon_sd_password;
27708        if test "x$withval" != "xno" ; then
27709           mon_sd_password=$withval
27710        fi
27711
27712
27713 fi
27714
27715
27716 if test "x$mon_sd_password" = "x" ; then
27717    if test "x$OPENSSL" = "xnone" ; then
27718       key=`autoconf/randpass 41`
27719    else
27720       key=`openssl rand -base64 33`
27721    fi
27722    mon_sd_password=$key
27723 fi
27724
27725
27726
27727
27728
27729
27730
27731
27732 db_name=bacula
27733
27734 # Check whether --with-db_name was given.
27735 if test "${with_db_name+set}" = set; then
27736   withval=$with_db_name;
27737        if test "x$withval" != "x" ; then
27738           db_name=$withval
27739        fi
27740
27741
27742 fi
27743
27744
27745
27746 db_user=bacula
27747
27748 # Check whether --with-db_user was given.
27749 if test "${with_db_user+set}" = set; then
27750   withval=$with_db_user;
27751        if test "x$withval" != "x" ; then
27752           db_user=$withval
27753        fi
27754
27755
27756 fi
27757
27758
27759
27760 db_password=
27761
27762 # Check whether --with-db_password was given.
27763 if test "${with_db_password+set}" = set; then
27764   withval=$with_db_password;
27765        if test "x$withval" != "x" ; then
27766           db_password=$withval
27767        fi
27768
27769
27770 fi
27771
27772
27773
27774 db_port=" "
27775
27776 # Check whether --with-db_port was given.
27777 if test "${with_db_port+set}" = set; then
27778   withval=$with_db_port;
27779        if test "x$withval" != "x" ; then
27780           db_port=$withval
27781        fi
27782
27783
27784 fi
27785
27786
27787
27788 #
27789 # Handle users and groups for each daemon
27790 #
27791 dir_user=
27792
27793 # Check whether --with-dir_user was given.
27794 if test "${with_dir_user+set}" = set; then
27795   withval=$with_dir_user;
27796        if test "x$withval" != "x" ; then
27797            dir_user=$withval
27798        fi
27799
27800
27801 fi
27802
27803
27804 dir_group=
27805
27806 # Check whether --with-dir_group was given.
27807 if test "${with_dir_group+set}" = set; then
27808   withval=$with_dir_group;
27809        if test "x$withval" != "x" ; then
27810           dir_group=$withval
27811        fi
27812
27813
27814 fi
27815
27816
27817 sd_user=
27818
27819 # Check whether --with-sd_user was given.
27820 if test "${with_sd_user+set}" = set; then
27821   withval=$with_sd_user;
27822        if test "x$withval" != "x" ; then
27823           sd_user=$withval
27824        fi
27825
27826
27827 fi
27828
27829
27830 sd_group=
27831
27832 # Check whether --with-sd_group was given.
27833 if test "${with_sd_group+set}" = set; then
27834   withval=$with_sd_group;
27835        if test "x$withval" != "x" ; then
27836           sd_group=$withval
27837        fi
27838
27839
27840 fi
27841
27842
27843 fd_user=
27844
27845 # Check whether --with-fd_user was given.
27846 if test "${with_fd_user+set}" = set; then
27847   withval=$with_fd_user;
27848        if test "x$withval" != "x" ; then
27849           fd_user=$withval
27850        fi
27851
27852
27853 fi
27854
27855
27856 fd_group=
27857
27858 # Check whether --with-fd_group was given.
27859 if test "${with_fd_group+set}" = set; then
27860   withval=$with_fd_group;
27861        if test "x$withval" != "x" ; then
27862           fd_group=$withval
27863        fi
27864
27865
27866 fi
27867
27868
27869
27870
27871
27872
27873
27874
27875
27876 SBINPERM=0754
27877
27878 # Check whether --with-sbin-perm was given.
27879 if test "${with_sbin_perm+set}" = set; then
27880   withval=$with_sbin_perm;
27881        if test "x$withval" != "x" ; then
27882           SBINPERM=$withval
27883        fi
27884
27885
27886 fi
27887
27888
27889
27890
27891 SQL_LIB=
27892
27893 db_found=no
27894 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27895 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27896
27897 # Check whether --with-postgresql was given.
27898 if test "${with_postgresql+set}" = set; then
27899   withval=$with_postgresql;
27900   if test "$withval" != "no"; then
27901       if test "$db_found" = "yes"; then
27902           { echo "$as_me:$LINENO: result: error" >&5
27903 echo "${ECHO_T}error" >&6; }
27904           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27905 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27906    { (exit 1); exit 1; }; };
27907       fi
27908       if test "$withval" = "yes"; then
27909           PG_CONFIG=`which pg_config`
27910           if test -n "$PG_CONFIG";then
27911               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27912               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27913               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27914           elif test -f /usr/local/include/libpq-fe.h; then
27915               POSTGRESQL_INCDIR=/usr/local/include
27916               if test -d /usr/local/lib64; then
27917                  POSTGRESQL_LIBDIR=/usr/local/lib64
27918               else
27919                  POSTGRESQL_LIBDIR=/usr/local/lib
27920               fi
27921               POSTGRESQL_BINDIR=/usr/local/bin
27922           elif test -f /usr/include/libpq-fe.h; then
27923               POSTGRESQL_INCDIR=/usr/include
27924               if test -d /usr/lib64; then
27925                  POSTGRESQL_LIBDIR=/usr/lib64
27926               else
27927                  POSTGRESQL_LIBDIR=/usr/lib
27928               fi
27929               POSTGRESQL_BINDIR=/usr/bin
27930           elif test -f /usr/include/pgsql/libpq-fe.h; then
27931               POSTGRESQL_INCDIR=/usr/include/pgsql
27932               if test -d /usr/lib64/pgsql; then
27933                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27934               else
27935                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27936               fi
27937               POSTGRESQL_BINDIR=/usr/bin
27938           elif test -f /usr/include/postgresql/libpq-fe.h; then
27939               POSTGRESQL_INCDIR=/usr/include/postgresql
27940               if test -d /usr/lib64/postgresql; then
27941                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27942               else
27943                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27944               fi
27945               POSTGRESQL_BINDIR=/usr/bin
27946           else
27947               { echo "$as_me:$LINENO: result: no" >&5
27948 echo "${ECHO_T}no" >&6; }
27949               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27950 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27951    { (exit 1); exit 1; }; }
27952           fi
27953       elif test -f $withval/include/libpq-fe.h; then
27954           POSTGRESQL_INCDIR=$withval/include
27955           POSTGRESQL_LIBDIR=$withval/lib
27956           POSTGRESQL_BINDIR=$withval/bin
27957       elif test -f $withval/include/postgresql/libpq-fe.h; then
27958           POSTGRESQL_INCDIR=$withval/include/postgresql
27959      if test -d $withval/lib64; then
27960          POSTGRESQL_LIBDIR=$withval/lib64
27961      else
27962          POSTGRESQL_LIBDIR=$withval/lib
27963      fi
27964           POSTGRESQL_BINDIR=$withval/bin
27965       else
27966           { echo "$as_me:$LINENO: result: no" >&5
27967 echo "${ECHO_T}no" >&6; }
27968           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27969 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27970    { (exit 1); exit 1; }; }
27971       fi
27972       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27973       { echo "$as_me:$LINENO: checking for crypt" >&5
27974 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27975 if test "${ac_cv_func_crypt+set}" = set; then
27976   echo $ECHO_N "(cached) $ECHO_C" >&6
27977 else
27978   cat >conftest.$ac_ext <<_ACEOF
27979 /* confdefs.h.  */
27980 _ACEOF
27981 cat confdefs.h >>conftest.$ac_ext
27982 cat >>conftest.$ac_ext <<_ACEOF
27983 /* end confdefs.h.  */
27984 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27986 #define crypt innocuous_crypt
27987
27988 /* System header to define __stub macros and hopefully few prototypes,
27989     which can conflict with char crypt (); below.
27990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27991     <limits.h> exists even on freestanding compilers.  */
27992
27993 #ifdef __STDC__
27994 # include <limits.h>
27995 #else
27996 # include <assert.h>
27997 #endif
27998
27999 #undef crypt
28000
28001 /* Override any GCC internal prototype to avoid an error.
28002    Use char because int might match the return type of a GCC
28003    builtin and then its argument prototype would still apply.  */
28004 #ifdef __cplusplus
28005 extern "C"
28006 #endif
28007 char crypt ();
28008 /* The GNU C library defines this for functions which it implements
28009     to always fail with ENOSYS.  Some functions are actually named
28010     something starting with __ and the normal name is an alias.  */
28011 #if defined __stub_crypt || defined __stub___crypt
28012 choke me
28013 #endif
28014
28015 int
28016 main ()
28017 {
28018 return crypt ();
28019   ;
28020   return 0;
28021 }
28022 _ACEOF
28023 rm -f conftest.$ac_objext conftest$ac_exeext
28024 if { (ac_try="$ac_link"
28025 case "(($ac_try" in
28026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28027   *) ac_try_echo=$ac_try;;
28028 esac
28029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28030   (eval "$ac_link") 2>conftest.er1
28031   ac_status=$?
28032   grep -v '^ *+' conftest.er1 >conftest.err
28033   rm -f conftest.er1
28034   cat conftest.err >&5
28035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036   (exit $ac_status); } && {
28037          test -z "$ac_c_werror_flag" ||
28038          test ! -s conftest.err
28039        } && test -s conftest$ac_exeext &&
28040        $as_test_x conftest$ac_exeext; then
28041   ac_cv_func_crypt=yes
28042 else
28043   echo "$as_me: failed program was:" >&5
28044 sed 's/^/| /' conftest.$ac_ext >&5
28045
28046         ac_cv_func_crypt=no
28047 fi
28048
28049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28050       conftest$ac_exeext conftest.$ac_ext
28051 fi
28052 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28053 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28054 if test $ac_cv_func_crypt = yes; then
28055   :
28056 else
28057   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28058 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28059 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28060   echo $ECHO_N "(cached) $ECHO_C" >&6
28061 else
28062   ac_check_lib_save_LIBS=$LIBS
28063 LIBS="-lcrypt  $LIBS"
28064 cat >conftest.$ac_ext <<_ACEOF
28065 /* confdefs.h.  */
28066 _ACEOF
28067 cat confdefs.h >>conftest.$ac_ext
28068 cat >>conftest.$ac_ext <<_ACEOF
28069 /* end confdefs.h.  */
28070
28071 /* Override any GCC internal prototype to avoid an error.
28072    Use char because int might match the return type of a GCC
28073    builtin and then its argument prototype would still apply.  */
28074 #ifdef __cplusplus
28075 extern "C"
28076 #endif
28077 char crypt ();
28078 int
28079 main ()
28080 {
28081 return crypt ();
28082   ;
28083   return 0;
28084 }
28085 _ACEOF
28086 rm -f conftest.$ac_objext conftest$ac_exeext
28087 if { (ac_try="$ac_link"
28088 case "(($ac_try" in
28089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28090   *) ac_try_echo=$ac_try;;
28091 esac
28092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28093   (eval "$ac_link") 2>conftest.er1
28094   ac_status=$?
28095   grep -v '^ *+' conftest.er1 >conftest.err
28096   rm -f conftest.er1
28097   cat conftest.err >&5
28098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28099   (exit $ac_status); } && {
28100          test -z "$ac_c_werror_flag" ||
28101          test ! -s conftest.err
28102        } && test -s conftest$ac_exeext &&
28103        $as_test_x conftest$ac_exeext; then
28104   ac_cv_lib_crypt_crypt=yes
28105 else
28106   echo "$as_me: failed program was:" >&5
28107 sed 's/^/| /' conftest.$ac_ext >&5
28108
28109         ac_cv_lib_crypt_crypt=no
28110 fi
28111
28112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28113       conftest$ac_exeext conftest.$ac_ext
28114 LIBS=$ac_check_lib_save_LIBS
28115 fi
28116 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28117 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28118 if test $ac_cv_lib_crypt_crypt = yes; then
28119   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28120 fi
28121
28122 fi
28123
28124       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28125       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28126       SQL_BINDIR=$POSTGRESQL_BINDIR
28127       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28128
28129       cat >>confdefs.h <<\_ACEOF
28130 #define HAVE_POSTGRESQL 1
28131 _ACEOF
28132
28133       { echo "$as_me:$LINENO: result: yes" >&5
28134 echo "${ECHO_T}yes" >&6; }
28135       db_found=yes
28136       support_postgresql=yes
28137       db_type=PostgreSQL
28138       DB_TYPE=postgresql
28139   else
28140       { echo "$as_me:$LINENO: result: no" >&5
28141 echo "${ECHO_T}no" >&6; }
28142   fi
28143
28144 else
28145
28146   { echo "$as_me:$LINENO: result: no" >&5
28147 echo "${ECHO_T}no" >&6; }
28148
28149 fi
28150
28151
28152
28153
28154
28155
28156
28157
28158 db_found=no
28159 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28160 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28161
28162 # Check whether --with-mysql was given.
28163 if test "${with_mysql+set}" = set; then
28164   withval=$with_mysql;
28165   if test "$withval" != "no"; then
28166         if test "$withval" = "yes"; then
28167            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28168                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28169                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28170                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28171                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28172                    else
28173                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28174                    fi
28175                    MYSQL_BINDIR=/usr/local/mysql/bin
28176            elif test -f /usr/include/mysql/mysql.h; then
28177                    MYSQL_INCDIR=/usr/include/mysql
28178                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28179                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28180                            MYSQL_LIBDIR=/usr/lib64/mysql
28181                    elif test -f /usr/lib64/libmysqlclient_r.a \
28182                         -o -f /usr/lib64/libmysqlclient_r.so; then
28183                            MYSQL_LIBDIR=/usr/lib64
28184                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28185                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28186                            MYSQL_LIBDIR=/usr/lib/mysql
28187                    else
28188                            MYSQL_LIBDIR=/usr/lib
28189                    fi
28190                    MYSQL_BINDIR=/usr/bin
28191            elif test -f /usr/include/mysql.h; then
28192                    MYSQL_INCDIR=/usr/include
28193                    if test -f /usr/lib64/libmysqlclient_r.a \
28194                         -o -f /usr/lib64/libmysqlclient_r.so; then
28195                            MYSQL_LIBDIR=/usr/lib64
28196                    else
28197                            MYSQL_LIBDIR=/usr/lib
28198                    fi
28199                    MYSQL_BINDIR=/usr/bin
28200            elif test -f /usr/local/include/mysql/mysql.h; then
28201                    MYSQL_INCDIR=/usr/local/include/mysql
28202                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28203                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28204                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28205                    else
28206                            MYSQL_LIBDIR=/usr/local/lib/mysql
28207                    fi
28208                    MYSQL_BINDIR=/usr/local/bin
28209            elif test -f /usr/local/include/mysql.h; then
28210                    MYSQL_INCDIR=/usr/local/include
28211                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28212                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28213                            MYSQL_LIBDIR=/usr/local/lib64
28214                    else
28215                            MYSQL_LIBDIR=/usr/local/lib
28216                    fi
28217                    MYSQL_BINDIR=/usr/local/bin
28218            else
28219               { echo "$as_me:$LINENO: result: no" >&5
28220 echo "${ECHO_T}no" >&6; }
28221               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28222 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28223    { (exit 1); exit 1; }; }
28224            fi
28225         else
28226            if test -f $withval/include/mysql/mysql.h; then
28227               MYSQL_INCDIR=$withval/include/mysql
28228               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28229                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28230                  MYSQL_LIBDIR=$withval/lib64/mysql
28231               elif test -f $withval/lib64/libmysqlclient_r.a \
28232                    -o -f $withval/lib64/libmysqlclient_r.so; then
28233                  MYSQL_LIBDIR=$withval/lib64
28234               elif test -f $withval/lib/libmysqlclient_r.a \
28235                    -o -f $withval/lib/libmysqlclient_r.so; then
28236                  MYSQL_LIBDIR=$withval/lib
28237               else
28238                  MYSQL_LIBDIR=$withval/lib/mysql
28239               fi
28240               MYSQL_BINDIR=$withval/bin
28241            elif test -f $withval/include/mysql.h; then
28242               MYSQL_INCDIR=$withval/include
28243               if test -f $withval/lib64/libmysqlclient_r.a \
28244                    -o -f $withval/lib64/libmysqlclient_r.so; then
28245                  MYSQL_LIBDIR=$withval/lib64
28246               else
28247                  MYSQL_LIBDIR=$withval/lib
28248               fi
28249               MYSQL_BINDIR=$withval/bin
28250            else
28251               { echo "$as_me:$LINENO: result: no" >&5
28252 echo "${ECHO_T}no" >&6; }
28253               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28254 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28255    { (exit 1); exit 1; }; }
28256            fi
28257         fi
28258     SQL_INCLUDE=-I$MYSQL_INCDIR
28259     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28260          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28261        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28262        cat >>confdefs.h <<\_ACEOF
28263 #define HAVE_THREAD_SAFE_MYSQL 1
28264 _ACEOF
28265
28266     fi
28267     SQL_BINDIR=$MYSQL_BINDIR
28268     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28269
28270     cat >>confdefs.h <<\_ACEOF
28271 #define HAVE_MYSQL 1
28272 _ACEOF
28273
28274     { echo "$as_me:$LINENO: result: yes" >&5
28275 echo "${ECHO_T}yes" >&6; }
28276     db_found=yes
28277     support_mysql=yes
28278     db_type=MySQL
28279     DB_TYPE=mysql
28280
28281   else
28282         { echo "$as_me:$LINENO: result: no" >&5
28283 echo "${ECHO_T}no" >&6; }
28284   fi
28285
28286
28287 fi
28288
28289
28290
28291 # Check whether --with-embedded-mysql was given.
28292 if test "${with_embedded_mysql+set}" = set; then
28293   withval=$with_embedded_mysql;
28294   if test "$withval" != "no"; then
28295         if test "$withval" = "yes"; then
28296                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28297                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28298                         if test -d /usr/local/mysql/lib64/mysql; then
28299                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28300                         else
28301                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28302                         fi
28303                         MYSQL_BINDIR=/usr/local/mysql/bin
28304                 elif test -f /usr/include/mysql/mysql.h; then
28305                         MYSQL_INCDIR=/usr/include/mysql
28306                         if test -d /usr/lib64/mysql; then
28307                                 MYSQL_LIBDIR=/usr/lib64/mysql
28308                         else
28309                                 MYSQL_LIBDIR=/usr/lib/mysql
28310                         fi
28311                         MYSQL_BINDIR=/usr/bin
28312                 elif test -f /usr/include/mysql.h; then
28313                         MYSQL_INCDIR=/usr/include
28314                         if test -d /usr/lib64; then
28315                                 MYSQL_LIBDIR=/usr/lib64
28316                         else
28317                                 MYSQL_LIBDIR=/usr/lib
28318                         fi
28319                         MYSQL_BINDIR=/usr/bin
28320                 elif test -f /usr/local/include/mysql/mysql.h; then
28321                         MYSQL_INCDIR=/usr/local/include/mysql
28322                         if test -d /usr/local/lib64/mysql; then
28323                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28324                         else
28325                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28326                         fi
28327                         MYSQL_BINDIR=/usr/local/bin
28328                 elif test -f /usr/local/include/mysql.h; then
28329                         MYSQL_INCDIR=/usr/local/include
28330                         if test -d /usr/local/lib64; then
28331                                 MYSQL_LIBDIR=/usr/local/lib64
28332                         else
28333                                 MYSQL_LIBDIR=/usr/local/lib
28334                         fi
28335                         MYSQL_BINDIR=/usr/local/bin
28336                 else
28337                    { echo "$as_me:$LINENO: result: no" >&5
28338 echo "${ECHO_T}no" >&6; }
28339                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28340 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28341    { (exit 1); exit 1; }; }
28342                 fi
28343         else
28344                 if test -f $withval/include/mysql/mysql.h; then
28345                         MYSQL_INCDIR=$withval/include/mysql
28346                         if test -d $withval/lib64/mysql; then
28347                                 MYSQL_LIBDIR=$withval/lib64/mysql
28348                         else
28349                                 MYSQL_LIBDIR=$withval/lib/mysql
28350                         fi
28351                         MYSQL_BINDIR=$withval/bin
28352                 elif test -f $withval/include/mysql.h; then
28353                         MYSQL_INCDIR=$withval/include
28354                         if test -d $withval/lib64; then
28355                                 MYSQL_LIBDIR=$withval/lib64
28356                         else
28357                                 MYSQL_LIBDIR=$withval/lib
28358                         fi
28359                         MYSQL_BINDIR=$withval/bin
28360                 else
28361                    { echo "$as_me:$LINENO: result: no" >&5
28362 echo "${ECHO_T}no" >&6; }
28363                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28364 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28365    { (exit 1); exit 1; }; }
28366                 fi
28367         fi
28368     SQL_INCLUDE=-I$MYSQL_INCDIR
28369     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28370     SQL_BINDIR=$MYSQL_BINDIR
28371     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28372
28373     cat >>confdefs.h <<\_ACEOF
28374 #define HAVE_MYSQL 1
28375 _ACEOF
28376
28377     cat >>confdefs.h <<\_ACEOF
28378 #define HAVE_EMBEDDED_MYSQL 1
28379 _ACEOF
28380
28381     { echo "$as_me:$LINENO: result: yes" >&5
28382 echo "${ECHO_T}yes" >&6; }
28383     db_found=yes
28384     support_mysql=yes
28385     db_type=MySQL
28386     DB_TYPE=mysql
28387
28388   else
28389         { echo "$as_me:$LINENO: result: no" >&5
28390 echo "${ECHO_T}no" >&6; }
28391   fi
28392
28393
28394 fi
28395
28396
28397
28398
28399
28400
28401
28402
28403
28404
28405 db_found=no
28406 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28407 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28408
28409 # Check whether --with-sqlite3 was given.
28410 if test "${with_sqlite3+set}" = set; then
28411   withval=$with_sqlite3;
28412   if test "$withval" != "no"; then
28413      if test "$withval" = "yes"; then
28414         if test -f /usr/local/include/sqlite3.h; then
28415            SQLITE_INCDIR=/usr/local/include
28416            if test -d /usr/local/lib64; then
28417               SQLITE_LIBDIR=/usr/local/lib64
28418            else
28419               SQLITE_LIBDIR=/usr/local/lib
28420            fi
28421            SQLITE_BINDIR=/usr/local/bin
28422         elif test -f /usr/include/sqlite3.h; then
28423            SQLITE_INCDIR=/usr/include
28424            if test -d /usr/lib64; then
28425               SQLITE_LIBDIR=/usr/lib64
28426            else
28427               SQLITE_LIBDIR=/usr/lib
28428            fi
28429            SQLITE_BINDIR=/usr/bin
28430         elif test -f $prefix/include/sqlite3.h; then
28431            SQLITE_INCDIR=$prefix/include
28432            if test -d $prefix/lib64; then
28433               SQLITE_LIBDIR=$prefix/lib64
28434            else
28435               SQLITE_LIBDIR=$prefix/lib
28436            fi
28437            SQLITE_BINDIR=$prefix/bin
28438         else
28439            { echo "$as_me:$LINENO: result: no" >&5
28440 echo "${ECHO_T}no" >&6; }
28441            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28442 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28443    { (exit 1); exit 1; }; }
28444         fi
28445      else
28446         if test -f $withval/sqlite3.h; then
28447            SQLITE_INCDIR=$withval
28448            SQLITE_LIBDIR=$withval
28449            SQLITE_BINDIR=$withval
28450         elif test -f $withval/include/sqlite3.h; then
28451            SQLITE_INCDIR=$withval/include
28452            if test -d $withval/lib64; then
28453               SQLITE_LIBDIR=$withval/lib64
28454            else
28455               SQLITE_LIBDIR=$withval/lib
28456            fi
28457            SQLITE_BINDIR=$withval/bin
28458         else
28459            { echo "$as_me:$LINENO: result: no" >&5
28460 echo "${ECHO_T}no" >&6; }
28461            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28462 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28463    { (exit 1); exit 1; }; }
28464         fi
28465      fi
28466      SQL_INCLUDE=-I$SQLITE_INCDIR
28467      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28468      SQL_BINDIR=$SQLITE_BINDIR
28469      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28470
28471      cat >>confdefs.h <<\_ACEOF
28472 #define HAVE_SQLITE3 1
28473 _ACEOF
28474
28475      { echo "$as_me:$LINENO: result: yes" >&5
28476 echo "${ECHO_T}yes" >&6; }
28477      db_found=yes
28478      support_sqlite3=yes
28479      db_type=SQLite3
28480      DB_TYPE=sqlite3
28481
28482   else
28483      { echo "$as_me:$LINENO: result: no" >&5
28484 echo "${ECHO_T}no" >&6; }
28485   fi
28486
28487 else
28488
28489   { echo "$as_me:$LINENO: result: no" >&5
28490 echo "${ECHO_T}no" >&6; }
28491
28492 fi
28493
28494
28495
28496
28497
28498
28499
28500 # BA_CHECK_SQLITE_DB
28501
28502
28503 db_found=no
28504 { echo "$as_me:$LINENO: checking for DBI support" >&5
28505 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28506
28507 # Check whether --with-dbi was given.
28508 if test "${with_dbi+set}" = set; then
28509   withval=$with_dbi;
28510   if test "$withval" != "no"; then
28511      if test "$withval" = "yes"; then
28512         if test -f /usr/local/include/dbi/dbi.h; then
28513            DBI_INCDIR=/usr/local/dbi/include
28514            if test -d /usr/local/lib64; then
28515               DBI_LIBDIR=/usr/local/lib64
28516            else
28517               DBI_LIBDIR=/usr/local/lib
28518            fi
28519            DBI_BINDIR=/usr/local/bin
28520         elif test -f /usr/include/dbi/dbi.h; then
28521            DBI_INCDIR=/usr/include
28522            if test -d /usr/lib64; then
28523               DBI_LIBDIR=/usr/lib64
28524            else
28525               DBI_LIBDIR=/usr/lib
28526            fi
28527            DBI_BINDIR=/usr/bin
28528         elif test -f $prefix/include/dbi/dbi.h; then
28529            DBI_INCDIR=$prefix/include
28530            if test -d $prefix/lib64; then
28531               DBI_LIBDIR=$prefix/lib64
28532            else
28533               DBI_LIBDIR=$prefix/lib
28534            fi
28535            DBI_BINDIR=$prefix/bin
28536         else
28537            { echo "$as_me:$LINENO: result: no" >&5
28538 echo "${ECHO_T}no" >&6; }
28539            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28540 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28541    { (exit 1); exit 1; }; }
28542         fi
28543         if test -d /usr/local/lib/dbd; then
28544            DRIVERDIR=/usr/local/lib/dbd
28545            if test -d /usr/local/lib64/dbd; then
28546               DRIVERDIR=/usr/local/lib64/dbd
28547            else
28548               DRIVERDIR=/usr/local/lib/dbd
28549            fi
28550         elif test -d /usr/lib/dbd; then
28551            DRIVERDIR=/usr/lib/dbd
28552            if test -d /usr/lib64/dbd; then
28553               DRIVERDIR=/usr/lib64/dbd
28554            else
28555               DRIVERDIR=/usr/lib/dbd
28556            fi
28557         elif test -d $prefix/lib/dbd; then
28558            if test -d $prefix/lib64/dbd; then
28559               DRIVERDIR=$prefix/lib64/dbd
28560            else
28561               DRIVERDIR=$prefix/lib/dbd
28562            fi
28563         elif test -d /usr/local/lib64/dbd; then
28564            DRIVERDIR=/usr/local/lib64/dbd
28565         elif test -d /usr/lib64/dbd; then
28566            DRIVERDIR=/usr/lib64/dbd
28567         elif test -d $prefix/lib64/dbd; then
28568            DRIVERDIR=$prefix/lib64/dbd
28569         else
28570            { echo "$as_me:$LINENO: result: no" >&5
28571 echo "${ECHO_T}no" >&6; }
28572            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28573 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28574    { (exit 1); exit 1; }; }
28575         fi
28576      else
28577         if test -f $withval/dbi.h; then
28578            DBI_INCDIR=$withval
28579            DBI_LIBDIR=$withval
28580            DBI_BINDIR=$withval
28581         elif test -f $withval/include/dbi/dbi.h; then
28582            DBI_INCDIR=$withval/include
28583            if test -d $withval/lib64; then
28584               DBI_LIBDIR=$withval/lib64
28585            else
28586               DBI_LIBDIR=$withval/lib
28587            fi
28588            DBI_BINDIR=$withval/bin
28589         else
28590            { echo "$as_me:$LINENO: result: no" >&5
28591 echo "${ECHO_T}no" >&6; }
28592            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28593 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28594    { (exit 1); exit 1; }; }
28595         fi
28596         if test -d $withval/dbd; then
28597            DRIVERDIR=$withval/dbd
28598         elif test -d $withval/lib/; then
28599            if test -d $withval/lib64/dbd; then
28600               DRIVERDIR=$withval/lib64/dbd
28601            else
28602               DRIVERDIR=$withval/lib/dbd
28603            fi
28604         elif test -d $withval/lib64/dbd; then
28605            DRIVERDIR=$withval/lib64/dbd
28606         else
28607            { echo "$as_me:$LINENO: result: no" >&5
28608 echo "${ECHO_T}no" >&6; }
28609            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28610 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28611    { (exit 1); exit 1; }; }
28612         fi
28613      fi
28614      SQL_INCLUDE=-I$DBI_INCDIR
28615      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28616      SQL_BINDIR=$DBI_BINDIR
28617      SQL_LIB=$DBI_LIBDIR/libdbi.a
28618      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28619
28620
28621 cat >>confdefs.h <<\_ACEOF
28622 #define HAVE_DBI 1
28623 _ACEOF
28624
28625      { echo "$as_me:$LINENO: result: yes" >&5
28626 echo "${ECHO_T}yes" >&6; }
28627      db_found=yes
28628      support_dbi=yes
28629      db_type=DBI
28630      DB_TYPE=dbi
28631      uncomment_dbi=" "
28632
28633   else
28634      { echo "$as_me:$LINENO: result: no" >&5
28635 echo "${ECHO_T}no" >&6; }
28636   fi
28637
28638 else
28639
28640   { echo "$as_me:$LINENO: result: no" >&5
28641 echo "${ECHO_T}no" >&6; }
28642
28643 fi
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653
28654 db_found=no
28655 db_prog=no
28656 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28657 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28658
28659 # Check whether --with-dbi-driver was given.
28660 if test "${with_dbi_driver+set}" = set; then
28661   withval=$with_dbi_driver;
28662   if test "$withval" != "no"; then
28663      case $withval in
28664         "mysql")
28665            db_prog="mysql"
28666            if test -f /usr/local/mysql/bin/mysql; then
28667               SQL_BINDIR=/usr/local/mysql/bin
28668               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28669                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28670                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28671               else
28672                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28673               fi
28674            elif test -f /usr/bin/mysql; then
28675               SQL_BINDIR=/usr/bin
28676               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28677                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28678                   SQL_LIBDIR=/usr/lib64/mysql
28679               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28680                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28681                   SQL_LIBDIR=/usr/lib/mysql
28682               else
28683                   SQL_LIBDIR=/usr/lib
28684               fi
28685            elif test -f /usr/local/bin/mysql; then
28686               SQL_BINDIR=/usr/local/bin
28687               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28688                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28689                   SQL_LIBDIR=/usr/local/lib64/mysql
28690               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28691                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28692                   SQL_LIBDIR=/usr/local/lib/mysql
28693               else
28694                   SQL_LIBDIR=/usr/local/lib
28695               fi
28696            elif test -f $withval/bin/mysql; then
28697               SQL_BINDIR=$withval/bin
28698               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28699                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28700                   SQL_LIBDIR=$withval/lib64/mysql
28701               elif test -f $withval/lib64/libmysqlclient_r.a \
28702                   -o -f $withval/lib64/libmysqlclient_r.so; then
28703                   SQL_LIBDIR=$withval/lib64
28704               elif test -f $withval/lib/libmysqlclient_r.a \
28705                   -o -f $withval/lib/libmysqlclient_r.so; then
28706                   SQL_LIBDIR=$withval/lib/
28707               else
28708                   SQL_LIBDIR=$withval/lib/mysql
28709               fi
28710            else
28711               { echo "$as_me:$LINENO: result: no" >&5
28712 echo "${ECHO_T}no" >&6; }
28713               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28714 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28715    { (exit 1); exit 1; }; }
28716            fi
28717            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28718               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28719            else
28720               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28721            fi
28722         ;;
28723         "postgresql")
28724            db_prog="postgresql"
28725            PG_CONFIG=`which pg_config`
28726            if test -n "$PG_CONFIG"; then
28727               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28728               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28729            elif test -f /usr/local/bin/psql; then
28730               SQL_BINDIR=/usr/local/bin
28731               if test -d /usr/local/lib64; then
28732                  SQL_LIBDIR=/usr/local/lib64
28733               else
28734                  SQL_LIBDIR=/usr/local/lib
28735               fi
28736            elif test -f /usr/bin/psql; then
28737               SQL_BINDIR=/usr/local/bin
28738               if test -d /usr/lib64/postgresql; then
28739                  SQL_LIBDIR=/usr/lib64/postgresql
28740               elif test -d /usr/lib/postgresql; then
28741                  SQL_LIBDIR=/usr/lib/postgresql
28742               elif test -d /usr/lib64; then
28743                  SQL_LIBDIR=/usr/lib64
28744               else
28745                  SQL_LIBDIR=/usr/lib
28746               fi
28747            elif test -f $withval/bin/psql; then
28748               SQL_BINDIR=$withval/bin
28749               if test -d $withval/lib64; then
28750                  SQL_LIBDIR=$withval/lib64
28751               else
28752                  SQL_LIBDIR=$withval/lib
28753               fi
28754            else
28755               { echo "$as_me:$LINENO: result: no" >&5
28756 echo "${ECHO_T}no" >&6; }
28757               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28758 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28759    { (exit 1); exit 1; }; }
28760            fi
28761            if test -f $SQL_LIBDIR/libpq.so; then
28762               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28763            else
28764               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28765            fi
28766         ;;
28767         "sqlite")
28768            db_prog="sqlite"
28769            if test -f /usr/local/bin/sqlite; then
28770               SQL_BINDIR=/usr/local/bin
28771               if test -d /usr/local/lib64; then
28772                  SQL_LIBDIR=/usr/local/lib64
28773               else
28774                  SQL_LIBDIR=/usr/local/lib
28775               fi
28776            elif test -f /usr/bin/sqlite; then
28777               SQL_BINDIR=/usr/bin
28778               if test -d /usr/lib64; then
28779                  SQL_LIBDIR=/usr/lib64
28780               else
28781                  SQL_LIBDIR=/usr/lib
28782               fi
28783            elif test -f $withval/bin/sqlite; then
28784               SQL_BINDIR=$withval/bin
28785               if test -d $withval/lib64; then
28786                  SQL_LIBDIR=$withval/lib64
28787               else
28788                  SQL_LIBDIR=$withval/lib
28789               fi
28790            else
28791               { echo "$as_me:$LINENO: result: no" >&5
28792 echo "${ECHO_T}no" >&6; }
28793               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28794 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28795    { (exit 1); exit 1; }; }
28796            fi
28797            if test -f $SQL_LIBDIR/libsqlite.so; then
28798               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28799            else
28800               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28801            fi
28802         ;;
28803         "sqlite3")
28804            db_prog="sqlite3"
28805            if test -f /usr/local/bin/sqlite3; then
28806               SQL_BINDIR=/usr/local/bin
28807               if test -d /usr/local/lib64; then
28808                  SQL_LIBDIR=/usr/local/lib64
28809               else
28810                  SQL_LIBDIR=/usr/local/lib
28811               fi
28812            elif test -f /usr/bin/sqlite3; then
28813               SQL_BINDIR=/usr/bin
28814               if test -d /usr/lib64; then
28815                  SQL_LIBDIR=/usr/lib64
28816               else
28817                  SQL_LIBDIR=/usr/lib
28818               fi
28819            elif test -f $withval/bin/sqlite3; then
28820               SQL_BINDIR=$withval/bin
28821               if test -d $withval/lib64; then
28822                  SQL_LIBDIR=$withval/lib64
28823               else
28824                  SQL_LIBDIR=$withval/lib
28825               fi
28826            else
28827               { echo "$as_me:$LINENO: result: no" >&5
28828 echo "${ECHO_T}no" >&6; }
28829               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28830 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28831    { (exit 1); exit 1; }; }
28832            fi
28833            if test -f $SQL_LIBDIR/libsqlite3.so; then
28834               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28835            else
28836               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28837            fi
28838         ;;
28839         *)
28840            { echo "$as_me:$LINENO: result: no" >&5
28841 echo "${ECHO_T}no" >&6; }
28842            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28843 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28844    { (exit 1); exit 1; }; }
28845         ;;
28846      esac
28847
28848      { echo "$as_me:$LINENO: result: yes" >&5
28849 echo "${ECHO_T}yes" >&6; }
28850      DB_PROG=$db_prog
28851   else
28852      { echo "$as_me:$LINENO: result: no" >&5
28853 echo "${ECHO_T}no" >&6; }
28854   fi
28855
28856 else
28857
28858   { echo "$as_me:$LINENO: result: no" >&5
28859 echo "${ECHO_T}no" >&6; }
28860
28861 fi
28862
28863
28864
28865
28866
28867
28868
28869
28870
28871
28872 support_batch_insert=no
28873 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28874 pkg=$?
28875 if test $pkg = 0; then
28876    support_batch_insert=yes
28877    # Check whether --enable-batch-insert was given.
28878 if test "${enable_batch_insert+set}" = set; then
28879   enableval=$enable_batch_insert;
28880           if test x$enableval = xno; then
28881              support_batch_insert=no
28882           else
28883              support_batch_insert=yes
28884           fi
28885
28886
28887 fi
28888
28889 fi
28890
28891 if test x$DB_TYPE = xpostgresql; then
28892    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28893    pkg=$?
28894    if test $pkg != 0; then
28895       support_batch_insert=no
28896    fi
28897 fi
28898
28899 if test x$DB_TYPE = xdbi; then
28900    DB_TYPE=$DB_PROG
28901    db_type=$DB_PROG
28902    pkg=1
28903       if test $DB_PROG = postgresql; then
28904       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28905       pkg=$?
28906    fi
28907
28908    if test $DB_PROG = mysql; then
28909       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28910       pkg=$?
28911    fi
28912
28913    if test $DB_PROG = sqlite3; then
28914       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28915       pkg=$?
28916    fi
28917
28918    if test $pkg = 0; then
28919       # Check whether --enable-batch-insert was given.
28920 if test "${enable_batch_insert+set}" = set; then
28921   enableval=$enable_batch_insert;
28922              if test x$enableval = xno; then
28923                 support_batch_insert=no
28924              else
28925                 support_batch_insert=yes
28926              fi
28927
28928
28929 fi
28930
28931    fi
28932 else
28933       uncomment_dbi="#"
28934 fi
28935
28936
28937
28938 if test $support_batch_insert = yes ; then
28939
28940 cat >>confdefs.h <<\_ACEOF
28941 #define HAVE_BATCH_FILE_INSERT 1
28942 _ACEOF
28943
28944 fi
28945
28946 cat >>confdefs.h <<\_ACEOF
28947 #define PROTOTYPES 1
28948 _ACEOF
28949
28950
28951 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28952    if test -z "$CCOPTS"; then
28953       CCOPTS='-g -O2 -Wall'
28954    fi
28955    CFLAGS="$CCOPTS"
28956 fi
28957
28958
28959
28960 largefile_support="no"
28961
28962    # Check whether --enable-largefile was given.
28963 if test "${enable_largefile+set}" = set; then
28964   enableval=$enable_largefile;
28965 fi
28966
28967    if test "$enable_largefile" != no; then
28968      if test -n "$ac_tool_prefix"; then
28969   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28970 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28973 if test "${ac_cv_prog_GETCONF+set}" = set; then
28974   echo $ECHO_N "(cached) $ECHO_C" >&6
28975 else
28976   if test -n "$GETCONF"; then
28977   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28978 else
28979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28980 for as_dir in $PATH
28981 do
28982   IFS=$as_save_IFS
28983   test -z "$as_dir" && as_dir=.
28984   for ac_exec_ext in '' $ac_executable_extensions; do
28985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28986     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28988     break 2
28989   fi
28990 done
28991 done
28992 IFS=$as_save_IFS
28993
28994 fi
28995 fi
28996 GETCONF=$ac_cv_prog_GETCONF
28997 if test -n "$GETCONF"; then
28998   { echo "$as_me:$LINENO: result: $GETCONF" >&5
28999 echo "${ECHO_T}$GETCONF" >&6; }
29000 else
29001   { echo "$as_me:$LINENO: result: no" >&5
29002 echo "${ECHO_T}no" >&6; }
29003 fi
29004
29005
29006 fi
29007 if test -z "$ac_cv_prog_GETCONF"; then
29008   ac_ct_GETCONF=$GETCONF
29009   # Extract the first word of "getconf", so it can be a program name with args.
29010 set dummy getconf; ac_word=$2
29011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29013 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29014   echo $ECHO_N "(cached) $ECHO_C" >&6
29015 else
29016   if test -n "$ac_ct_GETCONF"; then
29017   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29018 else
29019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29020 for as_dir in $PATH
29021 do
29022   IFS=$as_save_IFS
29023   test -z "$as_dir" && as_dir=.
29024   for ac_exec_ext in '' $ac_executable_extensions; do
29025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29026     ac_cv_prog_ac_ct_GETCONF="getconf"
29027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29028     break 2
29029   fi
29030 done
29031 done
29032 IFS=$as_save_IFS
29033
29034 fi
29035 fi
29036 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29037 if test -n "$ac_ct_GETCONF"; then
29038   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29039 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29040 else
29041   { echo "$as_me:$LINENO: result: no" >&5
29042 echo "${ECHO_T}no" >&6; }
29043 fi
29044
29045   if test "x$ac_ct_GETCONF" = x; then
29046     GETCONF=""
29047   else
29048     case $cross_compiling:$ac_tool_warned in
29049 yes:)
29050 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29051 whose name does not start with the host triplet.  If you think this
29052 configuration is useful to you, please write to autoconf@gnu.org." >&5
29053 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29054 whose name does not start with the host triplet.  If you think this
29055 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29056 ac_tool_warned=yes ;;
29057 esac
29058     GETCONF=$ac_ct_GETCONF
29059   fi
29060 else
29061   GETCONF="$ac_cv_prog_GETCONF"
29062 fi
29063
29064      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29065 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29066 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29067   echo $ECHO_N "(cached) $ECHO_C" >&6
29068 else
29069   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29070         ac_cv_sys_largefile_CFLAGS=no
29071         case "$host_os" in
29072            # IRIX 6.2 and later require cc -n32.
29073            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29074              if test "$GCC" != yes; then
29075                ac_cv_sys_largefile_CFLAGS=-n32
29076              fi
29077              ac_save_CC="$CC"
29078              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29079              cat >conftest.$ac_ext <<_ACEOF
29080 /* confdefs.h.  */
29081 _ACEOF
29082 cat confdefs.h >>conftest.$ac_ext
29083 cat >>conftest.$ac_ext <<_ACEOF
29084 /* end confdefs.h.  */
29085
29086 int
29087 main ()
29088 {
29089
29090   ;
29091   return 0;
29092 }
29093 _ACEOF
29094 rm -f conftest.$ac_objext conftest$ac_exeext
29095 if { (ac_try="$ac_link"
29096 case "(($ac_try" in
29097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29098   *) ac_try_echo=$ac_try;;
29099 esac
29100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29101   (eval "$ac_link") 2>conftest.er1
29102   ac_status=$?
29103   grep -v '^ *+' conftest.er1 >conftest.err
29104   rm -f conftest.er1
29105   cat conftest.err >&5
29106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107   (exit $ac_status); } && {
29108          test -z "$ac_c_werror_flag" ||
29109          test ! -s conftest.err
29110        } && test -s conftest$ac_exeext &&
29111        $as_test_x conftest$ac_exeext; then
29112   :
29113 else
29114   echo "$as_me: failed program was:" >&5
29115 sed 's/^/| /' conftest.$ac_ext >&5
29116
29117         ac_cv_sys_largefile_CFLAGS=no
29118 fi
29119
29120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29121       conftest$ac_exeext conftest.$ac_ext
29122              CC="$ac_save_CC"
29123            esac
29124       }
29125 fi
29126 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29127 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29128      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29129 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29130 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29131   echo $ECHO_N "(cached) $ECHO_C" >&6
29132 else
29133   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29134         ac_cv_sys_largefile_LDFLAGS=no
29135
29136       }
29137 fi
29138 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29139 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29140      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29141 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29142 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29143   echo $ECHO_N "(cached) $ECHO_C" >&6
29144 else
29145   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29146         ac_cv_sys_largefile_LIBS=no
29147
29148       }
29149 fi
29150 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29151 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29152
29153      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29154        case "$ac_flag" in
29155        no) ;;
29156        -D_FILE_OFFSET_BITS=*) ;;
29157        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29158        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29159        -D?* | -I?*)
29160          case "$ac_flag" in
29161    no) ;;
29162    ?*)
29163      case "$CPPFLAGS" in
29164      '') CPPFLAGS="$ac_flag" ;;
29165      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29166      esac ;;
29167    esac ;;
29168        *)
29169          case "$ac_flag" in
29170    no) ;;
29171    ?*)
29172      case "$CFLAGS" in
29173      '') CFLAGS="$ac_flag" ;;
29174      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29175      esac ;;
29176    esac ;;
29177        esac
29178      done
29179      case "$ac_cv_sys_largefile_LDFLAGS" in
29180    no) ;;
29181    ?*)
29182      case "$LDFLAGS" in
29183      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29184      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29185      esac ;;
29186    esac
29187      case "$ac_cv_sys_largefile_LIBS" in
29188    no) ;;
29189    ?*)
29190      case "$LIBS" in
29191      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29192      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29193      esac ;;
29194    esac
29195      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29196 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29197 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29198   echo $ECHO_N "(cached) $ECHO_C" >&6
29199 else
29200   ac_cv_sys_file_offset_bits=no
29201       ac_cv_sys_file_offset_bits=64
29202       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29203         case "$ac_flag" in
29204         -D_FILE_OFFSET_BITS)
29205           ac_cv_sys_file_offset_bits=1 ;;
29206         -D_FILE_OFFSET_BITS=*)
29207           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29208         esac
29209       done
29210
29211 fi
29212 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29213 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29214    if test "$ac_cv_sys_file_offset_bits" != no; then
29215
29216 cat >>confdefs.h <<_ACEOF
29217 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29218 _ACEOF
29219
29220    fi
29221      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29222 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29223 if test "${ac_cv_sys_largefile_source+set}" = set; then
29224   echo $ECHO_N "(cached) $ECHO_C" >&6
29225 else
29226   ac_cv_sys_largefile_source=no
29227       ac_cv_sys_largefile_source=1
29228       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29229         case "$ac_flag" in
29230         -D_LARGEFILE_SOURCE)
29231           ac_cv_sys_largefile_source=1 ;;
29232         -D_LARGEFILE_SOURCE=*)
29233           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29234         esac
29235       done
29236
29237 fi
29238 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29239 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29240    if test "$ac_cv_sys_largefile_source" != no; then
29241
29242 cat >>confdefs.h <<_ACEOF
29243 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29244 _ACEOF
29245
29246    fi
29247      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29248 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29249 if test "${ac_cv_sys_large_files+set}" = set; then
29250   echo $ECHO_N "(cached) $ECHO_C" >&6
29251 else
29252   ac_cv_sys_large_files=no
29253       ac_cv_sys_large_files=1
29254       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29255         case "$ac_flag" in
29256         -D_LARGE_FILES)
29257           ac_cv_sys_large_files=1 ;;
29258         -D_LARGE_FILES=*)
29259           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29260         esac
29261       done
29262
29263 fi
29264 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29265 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29266    if test "$ac_cv_sys_large_files" != no; then
29267
29268 cat >>confdefs.h <<_ACEOF
29269 #define _LARGE_FILES $ac_cv_sys_large_files
29270 _ACEOF
29271
29272    fi
29273    fi
29274
29275
29276 { echo "$as_me:$LINENO: checking for X" >&5
29277 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29278
29279
29280 # Check whether --with-x was given.
29281 if test "${with_x+set}" = set; then
29282   withval=$with_x;
29283 fi
29284
29285 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29286 if test "x$with_x" = xno; then
29287   # The user explicitly disabled X.
29288   have_x=disabled
29289 else
29290   case $x_includes,$x_libraries in #(
29291     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29292 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29293    { (exit 1); exit 1; }; };; #(
29294     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29295   echo $ECHO_N "(cached) $ECHO_C" >&6
29296 else
29297   # One or both of the vars are not set, and there is no cached value.
29298 ac_x_includes=no ac_x_libraries=no
29299 rm -f -r conftest.dir
29300 if mkdir conftest.dir; then
29301   cd conftest.dir
29302   cat >Imakefile <<'_ACEOF'
29303 incroot:
29304         @echo incroot='${INCROOT}'
29305 usrlibdir:
29306         @echo usrlibdir='${USRLIBDIR}'
29307 libdir:
29308         @echo libdir='${LIBDIR}'
29309 _ACEOF
29310   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29311     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29312     for ac_var in incroot usrlibdir libdir; do
29313       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29314     done
29315     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29316     for ac_extension in a so sl; do
29317       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29318          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29319         ac_im_usrlibdir=$ac_im_libdir; break
29320       fi
29321     done
29322     # Screen out bogus values from the imake configuration.  They are
29323     # bogus both because they are the default anyway, and because
29324     # using them would break gcc on systems where it needs fixed includes.
29325     case $ac_im_incroot in
29326         /usr/include) ac_x_includes= ;;
29327         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29328     esac
29329     case $ac_im_usrlibdir in
29330         /usr/lib | /lib) ;;
29331         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29332     esac
29333   fi
29334   cd ..
29335   rm -f -r conftest.dir
29336 fi
29337
29338 # Standard set of common directories for X headers.
29339 # Check X11 before X11Rn because it is often a symlink to the current release.
29340 ac_x_header_dirs='
29341 /usr/X11/include
29342 /usr/X11R6/include
29343 /usr/X11R5/include
29344 /usr/X11R4/include
29345
29346 /usr/include/X11
29347 /usr/include/X11R6
29348 /usr/include/X11R5
29349 /usr/include/X11R4
29350
29351 /usr/local/X11/include
29352 /usr/local/X11R6/include
29353 /usr/local/X11R5/include
29354 /usr/local/X11R4/include
29355
29356 /usr/local/include/X11
29357 /usr/local/include/X11R6
29358 /usr/local/include/X11R5
29359 /usr/local/include/X11R4
29360
29361 /usr/X386/include
29362 /usr/x386/include
29363 /usr/XFree86/include/X11
29364
29365 /usr/include
29366 /usr/local/include
29367 /usr/unsupported/include
29368 /usr/athena/include
29369 /usr/local/x11r5/include
29370 /usr/lpp/Xamples/include
29371
29372 /usr/openwin/include
29373 /usr/openwin/share/include'
29374
29375 if test "$ac_x_includes" = no; then
29376   # Guess where to find include files, by looking for Xlib.h.
29377   # First, try using that file with no special directory specified.
29378   cat >conftest.$ac_ext <<_ACEOF
29379 /* confdefs.h.  */
29380 _ACEOF
29381 cat confdefs.h >>conftest.$ac_ext
29382 cat >>conftest.$ac_ext <<_ACEOF
29383 /* end confdefs.h.  */
29384 #include <X11/Xlib.h>
29385 _ACEOF
29386 if { (ac_try="$ac_cpp conftest.$ac_ext"
29387 case "(($ac_try" in
29388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29389   *) ac_try_echo=$ac_try;;
29390 esac
29391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29392   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29393   ac_status=$?
29394   grep -v '^ *+' conftest.er1 >conftest.err
29395   rm -f conftest.er1
29396   cat conftest.err >&5
29397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398   (exit $ac_status); } >/dev/null && {
29399          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29400          test ! -s conftest.err
29401        }; then
29402   # We can compile using X headers with no special include directory.
29403 ac_x_includes=
29404 else
29405   echo "$as_me: failed program was:" >&5
29406 sed 's/^/| /' conftest.$ac_ext >&5
29407
29408   for ac_dir in $ac_x_header_dirs; do
29409   if test -r "$ac_dir/X11/Xlib.h"; then
29410     ac_x_includes=$ac_dir
29411     break
29412   fi
29413 done
29414 fi
29415
29416 rm -f conftest.err conftest.$ac_ext
29417 fi # $ac_x_includes = no
29418
29419 if test "$ac_x_libraries" = no; then
29420   # Check for the libraries.
29421   # See if we find them without any special options.
29422   # Don't add to $LIBS permanently.
29423   ac_save_LIBS=$LIBS
29424   LIBS="-lX11 $LIBS"
29425   cat >conftest.$ac_ext <<_ACEOF
29426 /* confdefs.h.  */
29427 _ACEOF
29428 cat confdefs.h >>conftest.$ac_ext
29429 cat >>conftest.$ac_ext <<_ACEOF
29430 /* end confdefs.h.  */
29431 #include <X11/Xlib.h>
29432 int
29433 main ()
29434 {
29435 XrmInitialize ()
29436   ;
29437   return 0;
29438 }
29439 _ACEOF
29440 rm -f conftest.$ac_objext conftest$ac_exeext
29441 if { (ac_try="$ac_link"
29442 case "(($ac_try" in
29443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444   *) ac_try_echo=$ac_try;;
29445 esac
29446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447   (eval "$ac_link") 2>conftest.er1
29448   ac_status=$?
29449   grep -v '^ *+' conftest.er1 >conftest.err
29450   rm -f conftest.er1
29451   cat conftest.err >&5
29452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453   (exit $ac_status); } && {
29454          test -z "$ac_c_werror_flag" ||
29455          test ! -s conftest.err
29456        } && test -s conftest$ac_exeext &&
29457        $as_test_x conftest$ac_exeext; then
29458   LIBS=$ac_save_LIBS
29459 # We can link X programs with no special library path.
29460 ac_x_libraries=
29461 else
29462   echo "$as_me: failed program was:" >&5
29463 sed 's/^/| /' conftest.$ac_ext >&5
29464
29465         LIBS=$ac_save_LIBS
29466 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29467 do
29468   # Don't even attempt the hair of trying to link an X program!
29469   for ac_extension in a so sl; do
29470     if test -r "$ac_dir/libX11.$ac_extension"; then
29471       ac_x_libraries=$ac_dir
29472       break 2
29473     fi
29474   done
29475 done
29476 fi
29477
29478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29479       conftest$ac_exeext conftest.$ac_ext
29480 fi # $ac_x_libraries = no
29481
29482 case $ac_x_includes,$ac_x_libraries in #(
29483   no,* | *,no | *\'*)
29484     # Didn't find X, or a directory has "'" in its name.
29485     ac_cv_have_x="have_x=no";; #(
29486   *)
29487     # Record where we found X for the cache.
29488     ac_cv_have_x="have_x=yes\
29489         ac_x_includes='$ac_x_includes'\
29490         ac_x_libraries='$ac_x_libraries'"
29491 esac
29492 fi
29493 ;; #(
29494     *) have_x=yes;;
29495   esac
29496   eval "$ac_cv_have_x"
29497 fi # $with_x != no
29498
29499 if test "$have_x" != yes; then
29500   { echo "$as_me:$LINENO: result: $have_x" >&5
29501 echo "${ECHO_T}$have_x" >&6; }
29502   no_x=yes
29503 else
29504   # If each of the values was on the command line, it overrides each guess.
29505   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29506   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29507   # Update the cache value to reflect the command line values.
29508   ac_cv_have_x="have_x=yes\
29509         ac_x_includes='$x_includes'\
29510         ac_x_libraries='$x_libraries'"
29511   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29512 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29513 fi
29514
29515 if test "$no_x" = yes; then
29516   # Not all programs may use this symbol, but it does not hurt to define it.
29517
29518 cat >>confdefs.h <<\_ACEOF
29519 #define X_DISPLAY_MISSING 1
29520 _ACEOF
29521
29522   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29523 else
29524   if test -n "$x_includes"; then
29525     X_CFLAGS="$X_CFLAGS -I$x_includes"
29526   fi
29527
29528   # It would also be nice to do this for all -L options, not just this one.
29529   if test -n "$x_libraries"; then
29530     X_LIBS="$X_LIBS -L$x_libraries"
29531     # For Solaris; some versions of Sun CC require a space after -R and
29532     # others require no space.  Words are not sufficient . . . .
29533     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29534 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29535     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29536     ac_xsave_c_werror_flag=$ac_c_werror_flag
29537     ac_c_werror_flag=yes
29538     cat >conftest.$ac_ext <<_ACEOF
29539 /* confdefs.h.  */
29540 _ACEOF
29541 cat confdefs.h >>conftest.$ac_ext
29542 cat >>conftest.$ac_ext <<_ACEOF
29543 /* end confdefs.h.  */
29544
29545 int
29546 main ()
29547 {
29548
29549   ;
29550   return 0;
29551 }
29552 _ACEOF
29553 rm -f conftest.$ac_objext conftest$ac_exeext
29554 if { (ac_try="$ac_link"
29555 case "(($ac_try" in
29556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557   *) ac_try_echo=$ac_try;;
29558 esac
29559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560   (eval "$ac_link") 2>conftest.er1
29561   ac_status=$?
29562   grep -v '^ *+' conftest.er1 >conftest.err
29563   rm -f conftest.er1
29564   cat conftest.err >&5
29565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566   (exit $ac_status); } && {
29567          test -z "$ac_c_werror_flag" ||
29568          test ! -s conftest.err
29569        } && test -s conftest$ac_exeext &&
29570        $as_test_x conftest$ac_exeext; then
29571   { echo "$as_me:$LINENO: result: no" >&5
29572 echo "${ECHO_T}no" >&6; }
29573        X_LIBS="$X_LIBS -R$x_libraries"
29574 else
29575   echo "$as_me: failed program was:" >&5
29576 sed 's/^/| /' conftest.$ac_ext >&5
29577
29578         LIBS="$ac_xsave_LIBS -R $x_libraries"
29579        cat >conftest.$ac_ext <<_ACEOF
29580 /* confdefs.h.  */
29581 _ACEOF
29582 cat confdefs.h >>conftest.$ac_ext
29583 cat >>conftest.$ac_ext <<_ACEOF
29584 /* end confdefs.h.  */
29585
29586 int
29587 main ()
29588 {
29589
29590   ;
29591   return 0;
29592 }
29593 _ACEOF
29594 rm -f conftest.$ac_objext conftest$ac_exeext
29595 if { (ac_try="$ac_link"
29596 case "(($ac_try" in
29597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29598   *) ac_try_echo=$ac_try;;
29599 esac
29600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29601   (eval "$ac_link") 2>conftest.er1
29602   ac_status=$?
29603   grep -v '^ *+' conftest.er1 >conftest.err
29604   rm -f conftest.er1
29605   cat conftest.err >&5
29606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607   (exit $ac_status); } && {
29608          test -z "$ac_c_werror_flag" ||
29609          test ! -s conftest.err
29610        } && test -s conftest$ac_exeext &&
29611        $as_test_x conftest$ac_exeext; then
29612   { echo "$as_me:$LINENO: result: yes" >&5
29613 echo "${ECHO_T}yes" >&6; }
29614           X_LIBS="$X_LIBS -R $x_libraries"
29615 else
29616   echo "$as_me: failed program was:" >&5
29617 sed 's/^/| /' conftest.$ac_ext >&5
29618
29619         { echo "$as_me:$LINENO: result: neither works" >&5
29620 echo "${ECHO_T}neither works" >&6; }
29621 fi
29622
29623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29624       conftest$ac_exeext conftest.$ac_ext
29625 fi
29626
29627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29628       conftest$ac_exeext conftest.$ac_ext
29629     ac_c_werror_flag=$ac_xsave_c_werror_flag
29630     LIBS=$ac_xsave_LIBS
29631   fi
29632
29633   # Check for system-dependent libraries X programs must link with.
29634   # Do this before checking for the system-independent R6 libraries
29635   # (-lICE), since we may need -lsocket or whatever for X linking.
29636
29637   if test "$ISC" = yes; then
29638     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29639   else
29640     # Martyn Johnson says this is needed for Ultrix, if the X
29641     # libraries were built with DECnet support.  And Karl Berry says
29642     # the Alpha needs dnet_stub (dnet does not exist).
29643     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29644     cat >conftest.$ac_ext <<_ACEOF
29645 /* confdefs.h.  */
29646 _ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h.  */
29650
29651 /* Override any GCC internal prototype to avoid an error.
29652    Use char because int might match the return type of a GCC
29653    builtin and then its argument prototype would still apply.  */
29654 #ifdef __cplusplus
29655 extern "C"
29656 #endif
29657 char XOpenDisplay ();
29658 int
29659 main ()
29660 {
29661 return XOpenDisplay ();
29662   ;
29663   return 0;
29664 }
29665 _ACEOF
29666 rm -f conftest.$ac_objext conftest$ac_exeext
29667 if { (ac_try="$ac_link"
29668 case "(($ac_try" in
29669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29670   *) ac_try_echo=$ac_try;;
29671 esac
29672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29673   (eval "$ac_link") 2>conftest.er1
29674   ac_status=$?
29675   grep -v '^ *+' conftest.er1 >conftest.err
29676   rm -f conftest.er1
29677   cat conftest.err >&5
29678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679   (exit $ac_status); } && {
29680          test -z "$ac_c_werror_flag" ||
29681          test ! -s conftest.err
29682        } && test -s conftest$ac_exeext &&
29683        $as_test_x conftest$ac_exeext; then
29684   :
29685 else
29686   echo "$as_me: failed program was:" >&5
29687 sed 's/^/| /' conftest.$ac_ext >&5
29688
29689         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29690 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29691 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29692   echo $ECHO_N "(cached) $ECHO_C" >&6
29693 else
29694   ac_check_lib_save_LIBS=$LIBS
29695 LIBS="-ldnet  $LIBS"
29696 cat >conftest.$ac_ext <<_ACEOF
29697 /* confdefs.h.  */
29698 _ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h.  */
29702
29703 /* Override any GCC internal prototype to avoid an error.
29704    Use char because int might match the return type of a GCC
29705    builtin and then its argument prototype would still apply.  */
29706 #ifdef __cplusplus
29707 extern "C"
29708 #endif
29709 char dnet_ntoa ();
29710 int
29711 main ()
29712 {
29713 return dnet_ntoa ();
29714   ;
29715   return 0;
29716 }
29717 _ACEOF
29718 rm -f conftest.$ac_objext conftest$ac_exeext
29719 if { (ac_try="$ac_link"
29720 case "(($ac_try" in
29721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29722   *) ac_try_echo=$ac_try;;
29723 esac
29724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29725   (eval "$ac_link") 2>conftest.er1
29726   ac_status=$?
29727   grep -v '^ *+' conftest.er1 >conftest.err
29728   rm -f conftest.er1
29729   cat conftest.err >&5
29730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731   (exit $ac_status); } && {
29732          test -z "$ac_c_werror_flag" ||
29733          test ! -s conftest.err
29734        } && test -s conftest$ac_exeext &&
29735        $as_test_x conftest$ac_exeext; then
29736   ac_cv_lib_dnet_dnet_ntoa=yes
29737 else
29738   echo "$as_me: failed program was:" >&5
29739 sed 's/^/| /' conftest.$ac_ext >&5
29740
29741         ac_cv_lib_dnet_dnet_ntoa=no
29742 fi
29743
29744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29745       conftest$ac_exeext conftest.$ac_ext
29746 LIBS=$ac_check_lib_save_LIBS
29747 fi
29748 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29749 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29750 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29751   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29752 fi
29753
29754     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29755       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29756 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29757 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29758   echo $ECHO_N "(cached) $ECHO_C" >&6
29759 else
29760   ac_check_lib_save_LIBS=$LIBS
29761 LIBS="-ldnet_stub  $LIBS"
29762 cat >conftest.$ac_ext <<_ACEOF
29763 /* confdefs.h.  */
29764 _ACEOF
29765 cat confdefs.h >>conftest.$ac_ext
29766 cat >>conftest.$ac_ext <<_ACEOF
29767 /* end confdefs.h.  */
29768
29769 /* Override any GCC internal prototype to avoid an error.
29770    Use char because int might match the return type of a GCC
29771    builtin and then its argument prototype would still apply.  */
29772 #ifdef __cplusplus
29773 extern "C"
29774 #endif
29775 char dnet_ntoa ();
29776 int
29777 main ()
29778 {
29779 return dnet_ntoa ();
29780   ;
29781   return 0;
29782 }
29783 _ACEOF
29784 rm -f conftest.$ac_objext conftest$ac_exeext
29785 if { (ac_try="$ac_link"
29786 case "(($ac_try" in
29787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29788   *) ac_try_echo=$ac_try;;
29789 esac
29790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29791   (eval "$ac_link") 2>conftest.er1
29792   ac_status=$?
29793   grep -v '^ *+' conftest.er1 >conftest.err
29794   rm -f conftest.er1
29795   cat conftest.err >&5
29796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797   (exit $ac_status); } && {
29798          test -z "$ac_c_werror_flag" ||
29799          test ! -s conftest.err
29800        } && test -s conftest$ac_exeext &&
29801        $as_test_x conftest$ac_exeext; then
29802   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29803 else
29804   echo "$as_me: failed program was:" >&5
29805 sed 's/^/| /' conftest.$ac_ext >&5
29806
29807         ac_cv_lib_dnet_stub_dnet_ntoa=no
29808 fi
29809
29810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29811       conftest$ac_exeext conftest.$ac_ext
29812 LIBS=$ac_check_lib_save_LIBS
29813 fi
29814 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29815 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29816 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29817   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29818 fi
29819
29820     fi
29821 fi
29822
29823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29824       conftest$ac_exeext conftest.$ac_ext
29825     LIBS="$ac_xsave_LIBS"
29826
29827     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29828     # to get the SysV transport functions.
29829     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29830     # needs -lnsl.
29831     # The nsl library prevents programs from opening the X display
29832     # on Irix 5.2, according to T.E. Dickey.
29833     # The functions gethostbyname, getservbyname, and inet_addr are
29834     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29835     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29836 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29837 if test "${ac_cv_func_gethostbyname+set}" = set; then
29838   echo $ECHO_N "(cached) $ECHO_C" >&6
29839 else
29840   cat >conftest.$ac_ext <<_ACEOF
29841 /* confdefs.h.  */
29842 _ACEOF
29843 cat confdefs.h >>conftest.$ac_ext
29844 cat >>conftest.$ac_ext <<_ACEOF
29845 /* end confdefs.h.  */
29846 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29848 #define gethostbyname innocuous_gethostbyname
29849
29850 /* System header to define __stub macros and hopefully few prototypes,
29851     which can conflict with char gethostbyname (); below.
29852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29853     <limits.h> exists even on freestanding compilers.  */
29854
29855 #ifdef __STDC__
29856 # include <limits.h>
29857 #else
29858 # include <assert.h>
29859 #endif
29860
29861 #undef gethostbyname
29862
29863 /* Override any GCC internal prototype to avoid an error.
29864    Use char because int might match the return type of a GCC
29865    builtin and then its argument prototype would still apply.  */
29866 #ifdef __cplusplus
29867 extern "C"
29868 #endif
29869 char gethostbyname ();
29870 /* The GNU C library defines this for functions which it implements
29871     to always fail with ENOSYS.  Some functions are actually named
29872     something starting with __ and the normal name is an alias.  */
29873 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29874 choke me
29875 #endif
29876
29877 int
29878 main ()
29879 {
29880 return gethostbyname ();
29881   ;
29882   return 0;
29883 }
29884 _ACEOF
29885 rm -f conftest.$ac_objext conftest$ac_exeext
29886 if { (ac_try="$ac_link"
29887 case "(($ac_try" in
29888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889   *) ac_try_echo=$ac_try;;
29890 esac
29891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29892   (eval "$ac_link") 2>conftest.er1
29893   ac_status=$?
29894   grep -v '^ *+' conftest.er1 >conftest.err
29895   rm -f conftest.er1
29896   cat conftest.err >&5
29897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29898   (exit $ac_status); } && {
29899          test -z "$ac_c_werror_flag" ||
29900          test ! -s conftest.err
29901        } && test -s conftest$ac_exeext &&
29902        $as_test_x conftest$ac_exeext; then
29903   ac_cv_func_gethostbyname=yes
29904 else
29905   echo "$as_me: failed program was:" >&5
29906 sed 's/^/| /' conftest.$ac_ext >&5
29907
29908         ac_cv_func_gethostbyname=no
29909 fi
29910
29911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29912       conftest$ac_exeext conftest.$ac_ext
29913 fi
29914 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29915 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29916
29917     if test $ac_cv_func_gethostbyname = no; then
29918       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29919 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29920 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29921   echo $ECHO_N "(cached) $ECHO_C" >&6
29922 else
29923   ac_check_lib_save_LIBS=$LIBS
29924 LIBS="-lnsl  $LIBS"
29925 cat >conftest.$ac_ext <<_ACEOF
29926 /* confdefs.h.  */
29927 _ACEOF
29928 cat confdefs.h >>conftest.$ac_ext
29929 cat >>conftest.$ac_ext <<_ACEOF
29930 /* end confdefs.h.  */
29931
29932 /* Override any GCC internal prototype to avoid an error.
29933    Use char because int might match the return type of a GCC
29934    builtin and then its argument prototype would still apply.  */
29935 #ifdef __cplusplus
29936 extern "C"
29937 #endif
29938 char gethostbyname ();
29939 int
29940 main ()
29941 {
29942 return gethostbyname ();
29943   ;
29944   return 0;
29945 }
29946 _ACEOF
29947 rm -f conftest.$ac_objext conftest$ac_exeext
29948 if { (ac_try="$ac_link"
29949 case "(($ac_try" in
29950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951   *) ac_try_echo=$ac_try;;
29952 esac
29953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954   (eval "$ac_link") 2>conftest.er1
29955   ac_status=$?
29956   grep -v '^ *+' conftest.er1 >conftest.err
29957   rm -f conftest.er1
29958   cat conftest.err >&5
29959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960   (exit $ac_status); } && {
29961          test -z "$ac_c_werror_flag" ||
29962          test ! -s conftest.err
29963        } && test -s conftest$ac_exeext &&
29964        $as_test_x conftest$ac_exeext; then
29965   ac_cv_lib_nsl_gethostbyname=yes
29966 else
29967   echo "$as_me: failed program was:" >&5
29968 sed 's/^/| /' conftest.$ac_ext >&5
29969
29970         ac_cv_lib_nsl_gethostbyname=no
29971 fi
29972
29973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29974       conftest$ac_exeext conftest.$ac_ext
29975 LIBS=$ac_check_lib_save_LIBS
29976 fi
29977 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29978 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29979 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29980   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29981 fi
29982
29983       if test $ac_cv_lib_nsl_gethostbyname = no; then
29984         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29985 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29986 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29987   echo $ECHO_N "(cached) $ECHO_C" >&6
29988 else
29989   ac_check_lib_save_LIBS=$LIBS
29990 LIBS="-lbsd  $LIBS"
29991 cat >conftest.$ac_ext <<_ACEOF
29992 /* confdefs.h.  */
29993 _ACEOF
29994 cat confdefs.h >>conftest.$ac_ext
29995 cat >>conftest.$ac_ext <<_ACEOF
29996 /* end confdefs.h.  */
29997
29998 /* Override any GCC internal prototype to avoid an error.
29999    Use char because int might match the return type of a GCC
30000    builtin and then its argument prototype would still apply.  */
30001 #ifdef __cplusplus
30002 extern "C"
30003 #endif
30004 char gethostbyname ();
30005 int
30006 main ()
30007 {
30008 return gethostbyname ();
30009   ;
30010   return 0;
30011 }
30012 _ACEOF
30013 rm -f conftest.$ac_objext conftest$ac_exeext
30014 if { (ac_try="$ac_link"
30015 case "(($ac_try" in
30016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017   *) ac_try_echo=$ac_try;;
30018 esac
30019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020   (eval "$ac_link") 2>conftest.er1
30021   ac_status=$?
30022   grep -v '^ *+' conftest.er1 >conftest.err
30023   rm -f conftest.er1
30024   cat conftest.err >&5
30025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026   (exit $ac_status); } && {
30027          test -z "$ac_c_werror_flag" ||
30028          test ! -s conftest.err
30029        } && test -s conftest$ac_exeext &&
30030        $as_test_x conftest$ac_exeext; then
30031   ac_cv_lib_bsd_gethostbyname=yes
30032 else
30033   echo "$as_me: failed program was:" >&5
30034 sed 's/^/| /' conftest.$ac_ext >&5
30035
30036         ac_cv_lib_bsd_gethostbyname=no
30037 fi
30038
30039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30040       conftest$ac_exeext conftest.$ac_ext
30041 LIBS=$ac_check_lib_save_LIBS
30042 fi
30043 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30044 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30045 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30046   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30047 fi
30048
30049       fi
30050     fi
30051
30052     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30053     # socket/setsockopt and other routines are undefined under SCO ODT
30054     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30055     # on later versions), says Simon Leinen: it contains gethostby*
30056     # variants that don't use the name server (or something).  -lsocket
30057     # must be given before -lnsl if both are needed.  We assume that
30058     # if connect needs -lnsl, so does gethostbyname.
30059     { echo "$as_me:$LINENO: checking for connect" >&5
30060 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30061 if test "${ac_cv_func_connect+set}" = set; then
30062   echo $ECHO_N "(cached) $ECHO_C" >&6
30063 else
30064   cat >conftest.$ac_ext <<_ACEOF
30065 /* confdefs.h.  */
30066 _ACEOF
30067 cat confdefs.h >>conftest.$ac_ext
30068 cat >>conftest.$ac_ext <<_ACEOF
30069 /* end confdefs.h.  */
30070 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30072 #define connect innocuous_connect
30073
30074 /* System header to define __stub macros and hopefully few prototypes,
30075     which can conflict with char connect (); below.
30076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30077     <limits.h> exists even on freestanding compilers.  */
30078
30079 #ifdef __STDC__
30080 # include <limits.h>
30081 #else
30082 # include <assert.h>
30083 #endif
30084
30085 #undef connect
30086
30087 /* Override any GCC internal prototype to avoid an error.
30088    Use char because int might match the return type of a GCC
30089    builtin and then its argument prototype would still apply.  */
30090 #ifdef __cplusplus
30091 extern "C"
30092 #endif
30093 char connect ();
30094 /* The GNU C library defines this for functions which it implements
30095     to always fail with ENOSYS.  Some functions are actually named
30096     something starting with __ and the normal name is an alias.  */
30097 #if defined __stub_connect || defined __stub___connect
30098 choke me
30099 #endif
30100
30101 int
30102 main ()
30103 {
30104 return connect ();
30105   ;
30106   return 0;
30107 }
30108 _ACEOF
30109 rm -f conftest.$ac_objext conftest$ac_exeext
30110 if { (ac_try="$ac_link"
30111 case "(($ac_try" in
30112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113   *) ac_try_echo=$ac_try;;
30114 esac
30115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116   (eval "$ac_link") 2>conftest.er1
30117   ac_status=$?
30118   grep -v '^ *+' conftest.er1 >conftest.err
30119   rm -f conftest.er1
30120   cat conftest.err >&5
30121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122   (exit $ac_status); } && {
30123          test -z "$ac_c_werror_flag" ||
30124          test ! -s conftest.err
30125        } && test -s conftest$ac_exeext &&
30126        $as_test_x conftest$ac_exeext; then
30127   ac_cv_func_connect=yes
30128 else
30129   echo "$as_me: failed program was:" >&5
30130 sed 's/^/| /' conftest.$ac_ext >&5
30131
30132         ac_cv_func_connect=no
30133 fi
30134
30135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30136       conftest$ac_exeext conftest.$ac_ext
30137 fi
30138 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30139 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30140
30141     if test $ac_cv_func_connect = no; then
30142       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30143 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30144 if test "${ac_cv_lib_socket_connect+set}" = set; then
30145   echo $ECHO_N "(cached) $ECHO_C" >&6
30146 else
30147   ac_check_lib_save_LIBS=$LIBS
30148 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30149 cat >conftest.$ac_ext <<_ACEOF
30150 /* confdefs.h.  */
30151 _ACEOF
30152 cat confdefs.h >>conftest.$ac_ext
30153 cat >>conftest.$ac_ext <<_ACEOF
30154 /* end confdefs.h.  */
30155
30156 /* Override any GCC internal prototype to avoid an error.
30157    Use char because int might match the return type of a GCC
30158    builtin and then its argument prototype would still apply.  */
30159 #ifdef __cplusplus
30160 extern "C"
30161 #endif
30162 char connect ();
30163 int
30164 main ()
30165 {
30166 return connect ();
30167   ;
30168   return 0;
30169 }
30170 _ACEOF
30171 rm -f conftest.$ac_objext conftest$ac_exeext
30172 if { (ac_try="$ac_link"
30173 case "(($ac_try" in
30174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30175   *) ac_try_echo=$ac_try;;
30176 esac
30177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30178   (eval "$ac_link") 2>conftest.er1
30179   ac_status=$?
30180   grep -v '^ *+' conftest.er1 >conftest.err
30181   rm -f conftest.er1
30182   cat conftest.err >&5
30183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184   (exit $ac_status); } && {
30185          test -z "$ac_c_werror_flag" ||
30186          test ! -s conftest.err
30187        } && test -s conftest$ac_exeext &&
30188        $as_test_x conftest$ac_exeext; then
30189   ac_cv_lib_socket_connect=yes
30190 else
30191   echo "$as_me: failed program was:" >&5
30192 sed 's/^/| /' conftest.$ac_ext >&5
30193
30194         ac_cv_lib_socket_connect=no
30195 fi
30196
30197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30198       conftest$ac_exeext conftest.$ac_ext
30199 LIBS=$ac_check_lib_save_LIBS
30200 fi
30201 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30202 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30203 if test $ac_cv_lib_socket_connect = yes; then
30204   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30205 fi
30206
30207     fi
30208
30209     # Guillermo Gomez says -lposix is necessary on A/UX.
30210     { echo "$as_me:$LINENO: checking for remove" >&5
30211 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30212 if test "${ac_cv_func_remove+set}" = set; then
30213   echo $ECHO_N "(cached) $ECHO_C" >&6
30214 else
30215   cat >conftest.$ac_ext <<_ACEOF
30216 /* confdefs.h.  */
30217 _ACEOF
30218 cat confdefs.h >>conftest.$ac_ext
30219 cat >>conftest.$ac_ext <<_ACEOF
30220 /* end confdefs.h.  */
30221 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30223 #define remove innocuous_remove
30224
30225 /* System header to define __stub macros and hopefully few prototypes,
30226     which can conflict with char remove (); below.
30227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30228     <limits.h> exists even on freestanding compilers.  */
30229
30230 #ifdef __STDC__
30231 # include <limits.h>
30232 #else
30233 # include <assert.h>
30234 #endif
30235
30236 #undef remove
30237
30238 /* Override any GCC internal prototype to avoid an error.
30239    Use char because int might match the return type of a GCC
30240    builtin and then its argument prototype would still apply.  */
30241 #ifdef __cplusplus
30242 extern "C"
30243 #endif
30244 char remove ();
30245 /* The GNU C library defines this for functions which it implements
30246     to always fail with ENOSYS.  Some functions are actually named
30247     something starting with __ and the normal name is an alias.  */
30248 #if defined __stub_remove || defined __stub___remove
30249 choke me
30250 #endif
30251
30252 int
30253 main ()
30254 {
30255 return remove ();
30256   ;
30257   return 0;
30258 }
30259 _ACEOF
30260 rm -f conftest.$ac_objext conftest$ac_exeext
30261 if { (ac_try="$ac_link"
30262 case "(($ac_try" in
30263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30264   *) ac_try_echo=$ac_try;;
30265 esac
30266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30267   (eval "$ac_link") 2>conftest.er1
30268   ac_status=$?
30269   grep -v '^ *+' conftest.er1 >conftest.err
30270   rm -f conftest.er1
30271   cat conftest.err >&5
30272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273   (exit $ac_status); } && {
30274          test -z "$ac_c_werror_flag" ||
30275          test ! -s conftest.err
30276        } && test -s conftest$ac_exeext &&
30277        $as_test_x conftest$ac_exeext; then
30278   ac_cv_func_remove=yes
30279 else
30280   echo "$as_me: failed program was:" >&5
30281 sed 's/^/| /' conftest.$ac_ext >&5
30282
30283         ac_cv_func_remove=no
30284 fi
30285
30286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30287       conftest$ac_exeext conftest.$ac_ext
30288 fi
30289 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30290 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30291
30292     if test $ac_cv_func_remove = no; then
30293       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30294 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30295 if test "${ac_cv_lib_posix_remove+set}" = set; then
30296   echo $ECHO_N "(cached) $ECHO_C" >&6
30297 else
30298   ac_check_lib_save_LIBS=$LIBS
30299 LIBS="-lposix  $LIBS"
30300 cat >conftest.$ac_ext <<_ACEOF
30301 /* confdefs.h.  */
30302 _ACEOF
30303 cat confdefs.h >>conftest.$ac_ext
30304 cat >>conftest.$ac_ext <<_ACEOF
30305 /* end confdefs.h.  */
30306
30307 /* Override any GCC internal prototype to avoid an error.
30308    Use char because int might match the return type of a GCC
30309    builtin and then its argument prototype would still apply.  */
30310 #ifdef __cplusplus
30311 extern "C"
30312 #endif
30313 char remove ();
30314 int
30315 main ()
30316 {
30317 return remove ();
30318   ;
30319   return 0;
30320 }
30321 _ACEOF
30322 rm -f conftest.$ac_objext conftest$ac_exeext
30323 if { (ac_try="$ac_link"
30324 case "(($ac_try" in
30325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30326   *) ac_try_echo=$ac_try;;
30327 esac
30328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30329   (eval "$ac_link") 2>conftest.er1
30330   ac_status=$?
30331   grep -v '^ *+' conftest.er1 >conftest.err
30332   rm -f conftest.er1
30333   cat conftest.err >&5
30334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335   (exit $ac_status); } && {
30336          test -z "$ac_c_werror_flag" ||
30337          test ! -s conftest.err
30338        } && test -s conftest$ac_exeext &&
30339        $as_test_x conftest$ac_exeext; then
30340   ac_cv_lib_posix_remove=yes
30341 else
30342   echo "$as_me: failed program was:" >&5
30343 sed 's/^/| /' conftest.$ac_ext >&5
30344
30345         ac_cv_lib_posix_remove=no
30346 fi
30347
30348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30349       conftest$ac_exeext conftest.$ac_ext
30350 LIBS=$ac_check_lib_save_LIBS
30351 fi
30352 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30353 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30354 if test $ac_cv_lib_posix_remove = yes; then
30355   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30356 fi
30357
30358     fi
30359
30360     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30361     { echo "$as_me:$LINENO: checking for shmat" >&5
30362 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30363 if test "${ac_cv_func_shmat+set}" = set; then
30364   echo $ECHO_N "(cached) $ECHO_C" >&6
30365 else
30366   cat >conftest.$ac_ext <<_ACEOF
30367 /* confdefs.h.  */
30368 _ACEOF
30369 cat confdefs.h >>conftest.$ac_ext
30370 cat >>conftest.$ac_ext <<_ACEOF
30371 /* end confdefs.h.  */
30372 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30374 #define shmat innocuous_shmat
30375
30376 /* System header to define __stub macros and hopefully few prototypes,
30377     which can conflict with char shmat (); below.
30378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30379     <limits.h> exists even on freestanding compilers.  */
30380
30381 #ifdef __STDC__
30382 # include <limits.h>
30383 #else
30384 # include <assert.h>
30385 #endif
30386
30387 #undef shmat
30388
30389 /* Override any GCC internal prototype to avoid an error.
30390    Use char because int might match the return type of a GCC
30391    builtin and then its argument prototype would still apply.  */
30392 #ifdef __cplusplus
30393 extern "C"
30394 #endif
30395 char shmat ();
30396 /* The GNU C library defines this for functions which it implements
30397     to always fail with ENOSYS.  Some functions are actually named
30398     something starting with __ and the normal name is an alias.  */
30399 #if defined __stub_shmat || defined __stub___shmat
30400 choke me
30401 #endif
30402
30403 int
30404 main ()
30405 {
30406 return shmat ();
30407   ;
30408   return 0;
30409 }
30410 _ACEOF
30411 rm -f conftest.$ac_objext conftest$ac_exeext
30412 if { (ac_try="$ac_link"
30413 case "(($ac_try" in
30414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30415   *) ac_try_echo=$ac_try;;
30416 esac
30417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30418   (eval "$ac_link") 2>conftest.er1
30419   ac_status=$?
30420   grep -v '^ *+' conftest.er1 >conftest.err
30421   rm -f conftest.er1
30422   cat conftest.err >&5
30423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424   (exit $ac_status); } && {
30425          test -z "$ac_c_werror_flag" ||
30426          test ! -s conftest.err
30427        } && test -s conftest$ac_exeext &&
30428        $as_test_x conftest$ac_exeext; then
30429   ac_cv_func_shmat=yes
30430 else
30431   echo "$as_me: failed program was:" >&5
30432 sed 's/^/| /' conftest.$ac_ext >&5
30433
30434         ac_cv_func_shmat=no
30435 fi
30436
30437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30438       conftest$ac_exeext conftest.$ac_ext
30439 fi
30440 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30441 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30442
30443     if test $ac_cv_func_shmat = no; then
30444       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30445 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30446 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30447   echo $ECHO_N "(cached) $ECHO_C" >&6
30448 else
30449   ac_check_lib_save_LIBS=$LIBS
30450 LIBS="-lipc  $LIBS"
30451 cat >conftest.$ac_ext <<_ACEOF
30452 /* confdefs.h.  */
30453 _ACEOF
30454 cat confdefs.h >>conftest.$ac_ext
30455 cat >>conftest.$ac_ext <<_ACEOF
30456 /* end confdefs.h.  */
30457
30458 /* Override any GCC internal prototype to avoid an error.
30459    Use char because int might match the return type of a GCC
30460    builtin and then its argument prototype would still apply.  */
30461 #ifdef __cplusplus
30462 extern "C"
30463 #endif
30464 char shmat ();
30465 int
30466 main ()
30467 {
30468 return shmat ();
30469   ;
30470   return 0;
30471 }
30472 _ACEOF
30473 rm -f conftest.$ac_objext conftest$ac_exeext
30474 if { (ac_try="$ac_link"
30475 case "(($ac_try" in
30476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30477   *) ac_try_echo=$ac_try;;
30478 esac
30479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30480   (eval "$ac_link") 2>conftest.er1
30481   ac_status=$?
30482   grep -v '^ *+' conftest.er1 >conftest.err
30483   rm -f conftest.er1
30484   cat conftest.err >&5
30485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30486   (exit $ac_status); } && {
30487          test -z "$ac_c_werror_flag" ||
30488          test ! -s conftest.err
30489        } && test -s conftest$ac_exeext &&
30490        $as_test_x conftest$ac_exeext; then
30491   ac_cv_lib_ipc_shmat=yes
30492 else
30493   echo "$as_me: failed program was:" >&5
30494 sed 's/^/| /' conftest.$ac_ext >&5
30495
30496         ac_cv_lib_ipc_shmat=no
30497 fi
30498
30499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30500       conftest$ac_exeext conftest.$ac_ext
30501 LIBS=$ac_check_lib_save_LIBS
30502 fi
30503 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30504 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30505 if test $ac_cv_lib_ipc_shmat = yes; then
30506   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30507 fi
30508
30509     fi
30510   fi
30511
30512   # Check for libraries that X11R6 Xt/Xaw programs need.
30513   ac_save_LDFLAGS=$LDFLAGS
30514   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30515   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30516   # check for ICE first), but we must link in the order -lSM -lICE or
30517   # we get undefined symbols.  So assume we have SM if we have ICE.
30518   # These have to be linked with before -lX11, unlike the other
30519   # libraries we check for below, so use a different variable.
30520   # John Interrante, Karl Berry
30521   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30522 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30523 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30524   echo $ECHO_N "(cached) $ECHO_C" >&6
30525 else
30526   ac_check_lib_save_LIBS=$LIBS
30527 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30528 cat >conftest.$ac_ext <<_ACEOF
30529 /* confdefs.h.  */
30530 _ACEOF
30531 cat confdefs.h >>conftest.$ac_ext
30532 cat >>conftest.$ac_ext <<_ACEOF
30533 /* end confdefs.h.  */
30534
30535 /* Override any GCC internal prototype to avoid an error.
30536    Use char because int might match the return type of a GCC
30537    builtin and then its argument prototype would still apply.  */
30538 #ifdef __cplusplus
30539 extern "C"
30540 #endif
30541 char IceConnectionNumber ();
30542 int
30543 main ()
30544 {
30545 return IceConnectionNumber ();
30546   ;
30547   return 0;
30548 }
30549 _ACEOF
30550 rm -f conftest.$ac_objext conftest$ac_exeext
30551 if { (ac_try="$ac_link"
30552 case "(($ac_try" in
30553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30554   *) ac_try_echo=$ac_try;;
30555 esac
30556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30557   (eval "$ac_link") 2>conftest.er1
30558   ac_status=$?
30559   grep -v '^ *+' conftest.er1 >conftest.err
30560   rm -f conftest.er1
30561   cat conftest.err >&5
30562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30563   (exit $ac_status); } && {
30564          test -z "$ac_c_werror_flag" ||
30565          test ! -s conftest.err
30566        } && test -s conftest$ac_exeext &&
30567        $as_test_x conftest$ac_exeext; then
30568   ac_cv_lib_ICE_IceConnectionNumber=yes
30569 else
30570   echo "$as_me: failed program was:" >&5
30571 sed 's/^/| /' conftest.$ac_ext >&5
30572
30573         ac_cv_lib_ICE_IceConnectionNumber=no
30574 fi
30575
30576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30577       conftest$ac_exeext conftest.$ac_ext
30578 LIBS=$ac_check_lib_save_LIBS
30579 fi
30580 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30581 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30582 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30583   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30584 fi
30585
30586   LDFLAGS=$ac_save_LDFLAGS
30587
30588 fi
30589
30590
30591
30592
30593
30594
30595
30596
30597
30598
30599
30600
30601
30602
30603
30604
30605
30606
30607
30608
30609
30610
30611
30612
30613
30614
30615
30616
30617
30618
30619
30620 for ac_header in \
30621    assert.h \
30622    fcntl.h \
30623    grp.h \
30624    pwd.h \
30625    libc.h \
30626    limits.h \
30627    stdarg.h \
30628    stdlib.h \
30629    stdint.h \
30630    string.h \
30631    strings.h \
30632    termios.h \
30633    termcap.h \
30634    term.h \
30635    unistd.h \
30636    sys/bitypes.h \
30637    sys/byteorder.h \
30638    sys/ioctl.h \
30639    sys/select.h \
30640    sys/socket.h \
30641    sys/sockio.h \
30642    sys/stat.h \
30643    sys/time.h \
30644    sys/types.h \
30645    arpa/nameser.h \
30646    mtio.h \
30647    sys/mtio.h \
30648    sys/tape.h \
30649    regex.h \
30650
30651 do
30652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30654   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30657   echo $ECHO_N "(cached) $ECHO_C" >&6
30658 fi
30659 ac_res=`eval echo '${'$as_ac_Header'}'`
30660                { echo "$as_me:$LINENO: result: $ac_res" >&5
30661 echo "${ECHO_T}$ac_res" >&6; }
30662 else
30663   # Is the header compilable?
30664 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30666 cat >conftest.$ac_ext <<_ACEOF
30667 /* confdefs.h.  */
30668 _ACEOF
30669 cat confdefs.h >>conftest.$ac_ext
30670 cat >>conftest.$ac_ext <<_ACEOF
30671 /* end confdefs.h.  */
30672 $ac_includes_default
30673 #include <$ac_header>
30674 _ACEOF
30675 rm -f conftest.$ac_objext
30676 if { (ac_try="$ac_compile"
30677 case "(($ac_try" in
30678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679   *) ac_try_echo=$ac_try;;
30680 esac
30681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30682   (eval "$ac_compile") 2>conftest.er1
30683   ac_status=$?
30684   grep -v '^ *+' conftest.er1 >conftest.err
30685   rm -f conftest.er1
30686   cat conftest.err >&5
30687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688   (exit $ac_status); } && {
30689          test -z "$ac_c_werror_flag" ||
30690          test ! -s conftest.err
30691        } && test -s conftest.$ac_objext; then
30692   ac_header_compiler=yes
30693 else
30694   echo "$as_me: failed program was:" >&5
30695 sed 's/^/| /' conftest.$ac_ext >&5
30696
30697         ac_header_compiler=no
30698 fi
30699
30700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30702 echo "${ECHO_T}$ac_header_compiler" >&6; }
30703
30704 # Is the header present?
30705 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
30714 _ACEOF
30715 if { (ac_try="$ac_cpp conftest.$ac_ext"
30716 case "(($ac_try" in
30717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30718   *) ac_try_echo=$ac_try;;
30719 esac
30720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30721   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30722   ac_status=$?
30723   grep -v '^ *+' conftest.er1 >conftest.err
30724   rm -f conftest.er1
30725   cat conftest.err >&5
30726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727   (exit $ac_status); } >/dev/null && {
30728          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30729          test ! -s conftest.err
30730        }; then
30731   ac_header_preproc=yes
30732 else
30733   echo "$as_me: failed program was:" >&5
30734 sed 's/^/| /' conftest.$ac_ext >&5
30735
30736   ac_header_preproc=no
30737 fi
30738
30739 rm -f conftest.err conftest.$ac_ext
30740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30741 echo "${ECHO_T}$ac_header_preproc" >&6; }
30742
30743 # So?  What about this header?
30744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30745   yes:no: )
30746     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30750     ac_header_preproc=yes
30751     ;;
30752   no:yes:* )
30753     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30755     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30756 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30757     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30759     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30760 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30763     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30765
30766     ;;
30767 esac
30768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30771   echo $ECHO_N "(cached) $ECHO_C" >&6
30772 else
30773   eval "$as_ac_Header=\$ac_header_preproc"
30774 fi
30775 ac_res=`eval echo '${'$as_ac_Header'}'`
30776                { echo "$as_me:$LINENO: result: $ac_res" >&5
30777 echo "${ECHO_T}$ac_res" >&6; }
30778
30779 fi
30780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30781   cat >>confdefs.h <<_ACEOF
30782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30783 _ACEOF
30784
30785 fi
30786
30787 done
30788
30789 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30790 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30791 if test "${ac_cv_header_stdc+set}" = set; then
30792   echo $ECHO_N "(cached) $ECHO_C" >&6
30793 else
30794   cat >conftest.$ac_ext <<_ACEOF
30795 /* confdefs.h.  */
30796 _ACEOF
30797 cat confdefs.h >>conftest.$ac_ext
30798 cat >>conftest.$ac_ext <<_ACEOF
30799 /* end confdefs.h.  */
30800 #include <stdlib.h>
30801 #include <stdarg.h>
30802 #include <string.h>
30803 #include <float.h>
30804
30805 int
30806 main ()
30807 {
30808
30809   ;
30810   return 0;
30811 }
30812 _ACEOF
30813 rm -f conftest.$ac_objext
30814 if { (ac_try="$ac_compile"
30815 case "(($ac_try" in
30816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30817   *) ac_try_echo=$ac_try;;
30818 esac
30819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30820   (eval "$ac_compile") 2>conftest.er1
30821   ac_status=$?
30822   grep -v '^ *+' conftest.er1 >conftest.err
30823   rm -f conftest.er1
30824   cat conftest.err >&5
30825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826   (exit $ac_status); } && {
30827          test -z "$ac_c_werror_flag" ||
30828          test ! -s conftest.err
30829        } && test -s conftest.$ac_objext; then
30830   ac_cv_header_stdc=yes
30831 else
30832   echo "$as_me: failed program was:" >&5
30833 sed 's/^/| /' conftest.$ac_ext >&5
30834
30835         ac_cv_header_stdc=no
30836 fi
30837
30838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30839
30840 if test $ac_cv_header_stdc = yes; then
30841   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30842   cat >conftest.$ac_ext <<_ACEOF
30843 /* confdefs.h.  */
30844 _ACEOF
30845 cat confdefs.h >>conftest.$ac_ext
30846 cat >>conftest.$ac_ext <<_ACEOF
30847 /* end confdefs.h.  */
30848 #include <string.h>
30849
30850 _ACEOF
30851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30852   $EGREP "memchr" >/dev/null 2>&1; then
30853   :
30854 else
30855   ac_cv_header_stdc=no
30856 fi
30857 rm -f conftest*
30858
30859 fi
30860
30861 if test $ac_cv_header_stdc = yes; then
30862   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30863   cat >conftest.$ac_ext <<_ACEOF
30864 /* confdefs.h.  */
30865 _ACEOF
30866 cat confdefs.h >>conftest.$ac_ext
30867 cat >>conftest.$ac_ext <<_ACEOF
30868 /* end confdefs.h.  */
30869 #include <stdlib.h>
30870
30871 _ACEOF
30872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30873   $EGREP "free" >/dev/null 2>&1; then
30874   :
30875 else
30876   ac_cv_header_stdc=no
30877 fi
30878 rm -f conftest*
30879
30880 fi
30881
30882 if test $ac_cv_header_stdc = yes; then
30883   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30884   if test "$cross_compiling" = yes; then
30885   :
30886 else
30887   cat >conftest.$ac_ext <<_ACEOF
30888 /* confdefs.h.  */
30889 _ACEOF
30890 cat confdefs.h >>conftest.$ac_ext
30891 cat >>conftest.$ac_ext <<_ACEOF
30892 /* end confdefs.h.  */
30893 #include <ctype.h>
30894 #include <stdlib.h>
30895 #if ((' ' & 0x0FF) == 0x020)
30896 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30897 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30898 #else
30899 # define ISLOWER(c) \
30900                    (('a' <= (c) && (c) <= 'i') \
30901                      || ('j' <= (c) && (c) <= 'r') \
30902                      || ('s' <= (c) && (c) <= 'z'))
30903 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30904 #endif
30905
30906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30907 int
30908 main ()
30909 {
30910   int i;
30911   for (i = 0; i < 256; i++)
30912     if (XOR (islower (i), ISLOWER (i))
30913         || toupper (i) != TOUPPER (i))
30914       return 2;
30915   return 0;
30916 }
30917 _ACEOF
30918 rm -f conftest$ac_exeext
30919 if { (ac_try="$ac_link"
30920 case "(($ac_try" in
30921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30922   *) ac_try_echo=$ac_try;;
30923 esac
30924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30925   (eval "$ac_link") 2>&5
30926   ac_status=$?
30927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30929   { (case "(($ac_try" in
30930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30931   *) ac_try_echo=$ac_try;;
30932 esac
30933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30934   (eval "$ac_try") 2>&5
30935   ac_status=$?
30936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937   (exit $ac_status); }; }; then
30938   :
30939 else
30940   echo "$as_me: program exited with status $ac_status" >&5
30941 echo "$as_me: failed program was:" >&5
30942 sed 's/^/| /' conftest.$ac_ext >&5
30943
30944 ( exit $ac_status )
30945 ac_cv_header_stdc=no
30946 fi
30947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30948 fi
30949
30950
30951 fi
30952 fi
30953 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30954 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30955 if test $ac_cv_header_stdc = yes; then
30956
30957 cat >>confdefs.h <<\_ACEOF
30958 #define STDC_HEADERS 1
30959 _ACEOF
30960
30961 fi
30962
30963 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30964 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30965 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30966   echo $ECHO_N "(cached) $ECHO_C" >&6
30967 else
30968   cat >conftest.$ac_ext <<_ACEOF
30969 /* confdefs.h.  */
30970 _ACEOF
30971 cat confdefs.h >>conftest.$ac_ext
30972 cat >>conftest.$ac_ext <<_ACEOF
30973 /* end confdefs.h.  */
30974 #include <sys/types.h>
30975 int
30976 main ()
30977 {
30978 return makedev(0, 0);
30979   ;
30980   return 0;
30981 }
30982 _ACEOF
30983 rm -f conftest.$ac_objext conftest$ac_exeext
30984 if { (ac_try="$ac_link"
30985 case "(($ac_try" in
30986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30987   *) ac_try_echo=$ac_try;;
30988 esac
30989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30990   (eval "$ac_link") 2>conftest.er1
30991   ac_status=$?
30992   grep -v '^ *+' conftest.er1 >conftest.err
30993   rm -f conftest.er1
30994   cat conftest.err >&5
30995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996   (exit $ac_status); } && {
30997          test -z "$ac_c_werror_flag" ||
30998          test ! -s conftest.err
30999        } && test -s conftest$ac_exeext &&
31000        $as_test_x conftest$ac_exeext; then
31001   ac_cv_header_sys_types_h_makedev=yes
31002 else
31003   echo "$as_me: failed program was:" >&5
31004 sed 's/^/| /' conftest.$ac_ext >&5
31005
31006         ac_cv_header_sys_types_h_makedev=no
31007 fi
31008
31009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31010       conftest$ac_exeext conftest.$ac_ext
31011
31012 fi
31013 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31014 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31015
31016 if test $ac_cv_header_sys_types_h_makedev = no; then
31017 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31018   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31019 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31020 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31021   echo $ECHO_N "(cached) $ECHO_C" >&6
31022 fi
31023 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31024 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31025 else
31026   # Is the header compilable?
31027 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31028 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31029 cat >conftest.$ac_ext <<_ACEOF
31030 /* confdefs.h.  */
31031 _ACEOF
31032 cat confdefs.h >>conftest.$ac_ext
31033 cat >>conftest.$ac_ext <<_ACEOF
31034 /* end confdefs.h.  */
31035 $ac_includes_default
31036 #include <sys/mkdev.h>
31037 _ACEOF
31038 rm -f conftest.$ac_objext
31039 if { (ac_try="$ac_compile"
31040 case "(($ac_try" in
31041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31042   *) ac_try_echo=$ac_try;;
31043 esac
31044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31045   (eval "$ac_compile") 2>conftest.er1
31046   ac_status=$?
31047   grep -v '^ *+' conftest.er1 >conftest.err
31048   rm -f conftest.er1
31049   cat conftest.err >&5
31050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051   (exit $ac_status); } && {
31052          test -z "$ac_c_werror_flag" ||
31053          test ! -s conftest.err
31054        } && test -s conftest.$ac_objext; then
31055   ac_header_compiler=yes
31056 else
31057   echo "$as_me: failed program was:" >&5
31058 sed 's/^/| /' conftest.$ac_ext >&5
31059
31060         ac_header_compiler=no
31061 fi
31062
31063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31065 echo "${ECHO_T}$ac_header_compiler" >&6; }
31066
31067 # Is the header present?
31068 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31069 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31070 cat >conftest.$ac_ext <<_ACEOF
31071 /* confdefs.h.  */
31072 _ACEOF
31073 cat confdefs.h >>conftest.$ac_ext
31074 cat >>conftest.$ac_ext <<_ACEOF
31075 /* end confdefs.h.  */
31076 #include <sys/mkdev.h>
31077 _ACEOF
31078 if { (ac_try="$ac_cpp conftest.$ac_ext"
31079 case "(($ac_try" in
31080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31081   *) ac_try_echo=$ac_try;;
31082 esac
31083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31084   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31085   ac_status=$?
31086   grep -v '^ *+' conftest.er1 >conftest.err
31087   rm -f conftest.er1
31088   cat conftest.err >&5
31089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31090   (exit $ac_status); } >/dev/null && {
31091          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31092          test ! -s conftest.err
31093        }; then
31094   ac_header_preproc=yes
31095 else
31096   echo "$as_me: failed program was:" >&5
31097 sed 's/^/| /' conftest.$ac_ext >&5
31098
31099   ac_header_preproc=no
31100 fi
31101
31102 rm -f conftest.err conftest.$ac_ext
31103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31104 echo "${ECHO_T}$ac_header_preproc" >&6; }
31105
31106 # So?  What about this header?
31107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31108   yes:no: )
31109     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31110 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31111     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31112 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31113     ac_header_preproc=yes
31114     ;;
31115   no:yes:* )
31116     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31117 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31118     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31119 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31120     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31121 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31122     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31123 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31124     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31125 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31126     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31127 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31128
31129     ;;
31130 esac
31131 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31132 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31133 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31134   echo $ECHO_N "(cached) $ECHO_C" >&6
31135 else
31136   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31137 fi
31138 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31139 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31140
31141 fi
31142 if test $ac_cv_header_sys_mkdev_h = yes; then
31143
31144 cat >>confdefs.h <<\_ACEOF
31145 #define MAJOR_IN_MKDEV 1
31146 _ACEOF
31147
31148 fi
31149
31150
31151
31152   if test $ac_cv_header_sys_mkdev_h = no; then
31153     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31154   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31155 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31156 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31157   echo $ECHO_N "(cached) $ECHO_C" >&6
31158 fi
31159 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31160 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31161 else
31162   # Is the header compilable?
31163 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31164 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31165 cat >conftest.$ac_ext <<_ACEOF
31166 /* confdefs.h.  */
31167 _ACEOF
31168 cat confdefs.h >>conftest.$ac_ext
31169 cat >>conftest.$ac_ext <<_ACEOF
31170 /* end confdefs.h.  */
31171 $ac_includes_default
31172 #include <sys/sysmacros.h>
31173 _ACEOF
31174 rm -f conftest.$ac_objext
31175 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
31182   ac_status=$?
31183   grep -v '^ *+' conftest.er1 >conftest.err
31184   rm -f conftest.er1
31185   cat conftest.err >&5
31186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187   (exit $ac_status); } && {
31188          test -z "$ac_c_werror_flag" ||
31189          test ! -s conftest.err
31190        } && test -s conftest.$ac_objext; then
31191   ac_header_compiler=yes
31192 else
31193   echo "$as_me: failed program was:" >&5
31194 sed 's/^/| /' conftest.$ac_ext >&5
31195
31196         ac_header_compiler=no
31197 fi
31198
31199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31201 echo "${ECHO_T}$ac_header_compiler" >&6; }
31202
31203 # Is the header present?
31204 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31205 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31206 cat >conftest.$ac_ext <<_ACEOF
31207 /* confdefs.h.  */
31208 _ACEOF
31209 cat confdefs.h >>conftest.$ac_ext
31210 cat >>conftest.$ac_ext <<_ACEOF
31211 /* end confdefs.h.  */
31212 #include <sys/sysmacros.h>
31213 _ACEOF
31214 if { (ac_try="$ac_cpp conftest.$ac_ext"
31215 case "(($ac_try" in
31216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31217   *) ac_try_echo=$ac_try;;
31218 esac
31219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31220   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31221   ac_status=$?
31222   grep -v '^ *+' conftest.er1 >conftest.err
31223   rm -f conftest.er1
31224   cat conftest.err >&5
31225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226   (exit $ac_status); } >/dev/null && {
31227          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31228          test ! -s conftest.err
31229        }; then
31230   ac_header_preproc=yes
31231 else
31232   echo "$as_me: failed program was:" >&5
31233 sed 's/^/| /' conftest.$ac_ext >&5
31234
31235   ac_header_preproc=no
31236 fi
31237
31238 rm -f conftest.err conftest.$ac_ext
31239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31240 echo "${ECHO_T}$ac_header_preproc" >&6; }
31241
31242 # So?  What about this header?
31243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31244   yes:no: )
31245     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31246 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31247     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31248 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31249     ac_header_preproc=yes
31250     ;;
31251   no:yes:* )
31252     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31253 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31254     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31255 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31256     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31257 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31258     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31259 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31260     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31261 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31262     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31263 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31264
31265     ;;
31266 esac
31267 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31268 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31269 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31270   echo $ECHO_N "(cached) $ECHO_C" >&6
31271 else
31272   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31273 fi
31274 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31275 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31276
31277 fi
31278 if test $ac_cv_header_sys_sysmacros_h = yes; then
31279
31280 cat >>confdefs.h <<\_ACEOF
31281 #define MAJOR_IN_SYSMACROS 1
31282 _ACEOF
31283
31284 fi
31285
31286
31287   fi
31288 fi
31289
31290
31291
31292
31293
31294
31295 ac_header_dirent=no
31296 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31297   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31298 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31299 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31301   echo $ECHO_N "(cached) $ECHO_C" >&6
31302 else
31303   cat >conftest.$ac_ext <<_ACEOF
31304 /* confdefs.h.  */
31305 _ACEOF
31306 cat confdefs.h >>conftest.$ac_ext
31307 cat >>conftest.$ac_ext <<_ACEOF
31308 /* end confdefs.h.  */
31309 #include <sys/types.h>
31310 #include <$ac_hdr>
31311
31312 int
31313 main ()
31314 {
31315 if ((DIR *) 0)
31316 return 0;
31317   ;
31318   return 0;
31319 }
31320 _ACEOF
31321 rm -f conftest.$ac_objext
31322 if { (ac_try="$ac_compile"
31323 case "(($ac_try" in
31324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31325   *) ac_try_echo=$ac_try;;
31326 esac
31327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31328   (eval "$ac_compile") 2>conftest.er1
31329   ac_status=$?
31330   grep -v '^ *+' conftest.er1 >conftest.err
31331   rm -f conftest.er1
31332   cat conftest.err >&5
31333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334   (exit $ac_status); } && {
31335          test -z "$ac_c_werror_flag" ||
31336          test ! -s conftest.err
31337        } && test -s conftest.$ac_objext; then
31338   eval "$as_ac_Header=yes"
31339 else
31340   echo "$as_me: failed program was:" >&5
31341 sed 's/^/| /' conftest.$ac_ext >&5
31342
31343         eval "$as_ac_Header=no"
31344 fi
31345
31346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31347 fi
31348 ac_res=`eval echo '${'$as_ac_Header'}'`
31349                { echo "$as_me:$LINENO: result: $ac_res" >&5
31350 echo "${ECHO_T}$ac_res" >&6; }
31351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31352   cat >>confdefs.h <<_ACEOF
31353 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31354 _ACEOF
31355
31356 ac_header_dirent=$ac_hdr; break
31357 fi
31358
31359 done
31360 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31361 if test $ac_header_dirent = dirent.h; then
31362   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31363 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31364 if test "${ac_cv_search_opendir+set}" = set; then
31365   echo $ECHO_N "(cached) $ECHO_C" >&6
31366 else
31367   ac_func_search_save_LIBS=$LIBS
31368 cat >conftest.$ac_ext <<_ACEOF
31369 /* confdefs.h.  */
31370 _ACEOF
31371 cat confdefs.h >>conftest.$ac_ext
31372 cat >>conftest.$ac_ext <<_ACEOF
31373 /* end confdefs.h.  */
31374
31375 /* Override any GCC internal prototype to avoid an error.
31376    Use char because int might match the return type of a GCC
31377    builtin and then its argument prototype would still apply.  */
31378 #ifdef __cplusplus
31379 extern "C"
31380 #endif
31381 char opendir ();
31382 int
31383 main ()
31384 {
31385 return opendir ();
31386   ;
31387   return 0;
31388 }
31389 _ACEOF
31390 for ac_lib in '' dir; do
31391   if test -z "$ac_lib"; then
31392     ac_res="none required"
31393   else
31394     ac_res=-l$ac_lib
31395     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31396   fi
31397   rm -f conftest.$ac_objext conftest$ac_exeext
31398 if { (ac_try="$ac_link"
31399 case "(($ac_try" in
31400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31401   *) ac_try_echo=$ac_try;;
31402 esac
31403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31404   (eval "$ac_link") 2>conftest.er1
31405   ac_status=$?
31406   grep -v '^ *+' conftest.er1 >conftest.err
31407   rm -f conftest.er1
31408   cat conftest.err >&5
31409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31410   (exit $ac_status); } && {
31411          test -z "$ac_c_werror_flag" ||
31412          test ! -s conftest.err
31413        } && test -s conftest$ac_exeext &&
31414        $as_test_x conftest$ac_exeext; then
31415   ac_cv_search_opendir=$ac_res
31416 else
31417   echo "$as_me: failed program was:" >&5
31418 sed 's/^/| /' conftest.$ac_ext >&5
31419
31420
31421 fi
31422
31423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31424       conftest$ac_exeext
31425   if test "${ac_cv_search_opendir+set}" = set; then
31426   break
31427 fi
31428 done
31429 if test "${ac_cv_search_opendir+set}" = set; then
31430   :
31431 else
31432   ac_cv_search_opendir=no
31433 fi
31434 rm conftest.$ac_ext
31435 LIBS=$ac_func_search_save_LIBS
31436 fi
31437 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31438 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31439 ac_res=$ac_cv_search_opendir
31440 if test "$ac_res" != no; then
31441   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31442
31443 fi
31444
31445 else
31446   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31447 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31448 if test "${ac_cv_search_opendir+set}" = set; then
31449   echo $ECHO_N "(cached) $ECHO_C" >&6
31450 else
31451   ac_func_search_save_LIBS=$LIBS
31452 cat >conftest.$ac_ext <<_ACEOF
31453 /* confdefs.h.  */
31454 _ACEOF
31455 cat confdefs.h >>conftest.$ac_ext
31456 cat >>conftest.$ac_ext <<_ACEOF
31457 /* end confdefs.h.  */
31458
31459 /* Override any GCC internal prototype to avoid an error.
31460    Use char because int might match the return type of a GCC
31461    builtin and then its argument prototype would still apply.  */
31462 #ifdef __cplusplus
31463 extern "C"
31464 #endif
31465 char opendir ();
31466 int
31467 main ()
31468 {
31469 return opendir ();
31470   ;
31471   return 0;
31472 }
31473 _ACEOF
31474 for ac_lib in '' x; do
31475   if test -z "$ac_lib"; then
31476     ac_res="none required"
31477   else
31478     ac_res=-l$ac_lib
31479     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31480   fi
31481   rm -f conftest.$ac_objext conftest$ac_exeext
31482 if { (ac_try="$ac_link"
31483 case "(($ac_try" in
31484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31485   *) ac_try_echo=$ac_try;;
31486 esac
31487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31488   (eval "$ac_link") 2>conftest.er1
31489   ac_status=$?
31490   grep -v '^ *+' conftest.er1 >conftest.err
31491   rm -f conftest.er1
31492   cat conftest.err >&5
31493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494   (exit $ac_status); } && {
31495          test -z "$ac_c_werror_flag" ||
31496          test ! -s conftest.err
31497        } && test -s conftest$ac_exeext &&
31498        $as_test_x conftest$ac_exeext; then
31499   ac_cv_search_opendir=$ac_res
31500 else
31501   echo "$as_me: failed program was:" >&5
31502 sed 's/^/| /' conftest.$ac_ext >&5
31503
31504
31505 fi
31506
31507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31508       conftest$ac_exeext
31509   if test "${ac_cv_search_opendir+set}" = set; then
31510   break
31511 fi
31512 done
31513 if test "${ac_cv_search_opendir+set}" = set; then
31514   :
31515 else
31516   ac_cv_search_opendir=no
31517 fi
31518 rm conftest.$ac_ext
31519 LIBS=$ac_func_search_save_LIBS
31520 fi
31521 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31522 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31523 ac_res=$ac_cv_search_opendir
31524 if test "$ac_res" != no; then
31525   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31526
31527 fi
31528
31529 fi
31530
31531 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31532 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31533 if test "${ac_cv_header_stat_broken+set}" = set; then
31534   echo $ECHO_N "(cached) $ECHO_C" >&6
31535 else
31536   cat >conftest.$ac_ext <<_ACEOF
31537 /* confdefs.h.  */
31538 _ACEOF
31539 cat confdefs.h >>conftest.$ac_ext
31540 cat >>conftest.$ac_ext <<_ACEOF
31541 /* end confdefs.h.  */
31542 #include <sys/types.h>
31543 #include <sys/stat.h>
31544
31545 #if defined S_ISBLK && defined S_IFDIR
31546 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31547 #endif
31548
31549 #if defined S_ISBLK && defined S_IFCHR
31550 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31551 #endif
31552
31553 #if defined S_ISLNK && defined S_IFREG
31554 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31555 #endif
31556
31557 #if defined S_ISSOCK && defined S_IFREG
31558 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31559 #endif
31560
31561 _ACEOF
31562 rm -f conftest.$ac_objext
31563 if { (ac_try="$ac_compile"
31564 case "(($ac_try" in
31565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31566   *) ac_try_echo=$ac_try;;
31567 esac
31568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31569   (eval "$ac_compile") 2>conftest.er1
31570   ac_status=$?
31571   grep -v '^ *+' conftest.er1 >conftest.err
31572   rm -f conftest.er1
31573   cat conftest.err >&5
31574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575   (exit $ac_status); } && {
31576          test -z "$ac_c_werror_flag" ||
31577          test ! -s conftest.err
31578        } && test -s conftest.$ac_objext; then
31579   ac_cv_header_stat_broken=no
31580 else
31581   echo "$as_me: failed program was:" >&5
31582 sed 's/^/| /' conftest.$ac_ext >&5
31583
31584         ac_cv_header_stat_broken=yes
31585 fi
31586
31587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31588 fi
31589 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31590 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31591 if test $ac_cv_header_stat_broken = yes; then
31592
31593 cat >>confdefs.h <<\_ACEOF
31594 #define STAT_MACROS_BROKEN 1
31595 _ACEOF
31596
31597 fi
31598
31599 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31600 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31601 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31602   echo $ECHO_N "(cached) $ECHO_C" >&6
31603 else
31604   cat >conftest.$ac_ext <<_ACEOF
31605 /* confdefs.h.  */
31606 _ACEOF
31607 cat confdefs.h >>conftest.$ac_ext
31608 cat >>conftest.$ac_ext <<_ACEOF
31609 /* end confdefs.h.  */
31610 #include <sys/types.h>
31611 #include <sys/wait.h>
31612 #ifndef WEXITSTATUS
31613 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31614 #endif
31615 #ifndef WIFEXITED
31616 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31617 #endif
31618
31619 int
31620 main ()
31621 {
31622   int s;
31623   wait (&s);
31624   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31625   ;
31626   return 0;
31627 }
31628 _ACEOF
31629 rm -f conftest.$ac_objext
31630 if { (ac_try="$ac_compile"
31631 case "(($ac_try" in
31632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31633   *) ac_try_echo=$ac_try;;
31634 esac
31635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31636   (eval "$ac_compile") 2>conftest.er1
31637   ac_status=$?
31638   grep -v '^ *+' conftest.er1 >conftest.err
31639   rm -f conftest.er1
31640   cat conftest.err >&5
31641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642   (exit $ac_status); } && {
31643          test -z "$ac_c_werror_flag" ||
31644          test ! -s conftest.err
31645        } && test -s conftest.$ac_objext; then
31646   ac_cv_header_sys_wait_h=yes
31647 else
31648   echo "$as_me: failed program was:" >&5
31649 sed 's/^/| /' conftest.$ac_ext >&5
31650
31651         ac_cv_header_sys_wait_h=no
31652 fi
31653
31654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31655 fi
31656 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31657 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31658 if test $ac_cv_header_sys_wait_h = yes; then
31659
31660 cat >>confdefs.h <<\_ACEOF
31661 #define HAVE_SYS_WAIT_H 1
31662 _ACEOF
31663
31664 fi
31665
31666 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31667 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31668 if test "${ac_cv_header_time+set}" = set; then
31669   echo $ECHO_N "(cached) $ECHO_C" >&6
31670 else
31671   cat >conftest.$ac_ext <<_ACEOF
31672 /* confdefs.h.  */
31673 _ACEOF
31674 cat confdefs.h >>conftest.$ac_ext
31675 cat >>conftest.$ac_ext <<_ACEOF
31676 /* end confdefs.h.  */
31677 #include <sys/types.h>
31678 #include <sys/time.h>
31679 #include <time.h>
31680
31681 int
31682 main ()
31683 {
31684 if ((struct tm *) 0)
31685 return 0;
31686   ;
31687   return 0;
31688 }
31689 _ACEOF
31690 rm -f conftest.$ac_objext
31691 if { (ac_try="$ac_compile"
31692 case "(($ac_try" in
31693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31694   *) ac_try_echo=$ac_try;;
31695 esac
31696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31697   (eval "$ac_compile") 2>conftest.er1
31698   ac_status=$?
31699   grep -v '^ *+' conftest.er1 >conftest.err
31700   rm -f conftest.er1
31701   cat conftest.err >&5
31702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703   (exit $ac_status); } && {
31704          test -z "$ac_c_werror_flag" ||
31705          test ! -s conftest.err
31706        } && test -s conftest.$ac_objext; then
31707   ac_cv_header_time=yes
31708 else
31709   echo "$as_me: failed program was:" >&5
31710 sed 's/^/| /' conftest.$ac_ext >&5
31711
31712         ac_cv_header_time=no
31713 fi
31714
31715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31716 fi
31717 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31718 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31719 if test $ac_cv_header_time = yes; then
31720
31721 cat >>confdefs.h <<\_ACEOF
31722 #define TIME_WITH_SYS_TIME 1
31723 _ACEOF
31724
31725 fi
31726
31727 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31728 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31729 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31730   echo $ECHO_N "(cached) $ECHO_C" >&6
31731 else
31732   cat >conftest.$ac_ext <<_ACEOF
31733 /* confdefs.h.  */
31734 _ACEOF
31735 cat confdefs.h >>conftest.$ac_ext
31736 cat >>conftest.$ac_ext <<_ACEOF
31737 /* end confdefs.h.  */
31738 $ac_includes_default
31739 int
31740 main ()
31741 {
31742 static struct stat ac_aggr;
31743 if (ac_aggr.st_blksize)
31744 return 0;
31745   ;
31746   return 0;
31747 }
31748 _ACEOF
31749 rm -f conftest.$ac_objext
31750 if { (ac_try="$ac_compile"
31751 case "(($ac_try" in
31752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31753   *) ac_try_echo=$ac_try;;
31754 esac
31755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31756   (eval "$ac_compile") 2>conftest.er1
31757   ac_status=$?
31758   grep -v '^ *+' conftest.er1 >conftest.err
31759   rm -f conftest.er1
31760   cat conftest.err >&5
31761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762   (exit $ac_status); } && {
31763          test -z "$ac_c_werror_flag" ||
31764          test ! -s conftest.err
31765        } && test -s conftest.$ac_objext; then
31766   ac_cv_member_struct_stat_st_blksize=yes
31767 else
31768   echo "$as_me: failed program was:" >&5
31769 sed 's/^/| /' conftest.$ac_ext >&5
31770
31771         cat >conftest.$ac_ext <<_ACEOF
31772 /* confdefs.h.  */
31773 _ACEOF
31774 cat confdefs.h >>conftest.$ac_ext
31775 cat >>conftest.$ac_ext <<_ACEOF
31776 /* end confdefs.h.  */
31777 $ac_includes_default
31778 int
31779 main ()
31780 {
31781 static struct stat ac_aggr;
31782 if (sizeof ac_aggr.st_blksize)
31783 return 0;
31784   ;
31785   return 0;
31786 }
31787 _ACEOF
31788 rm -f conftest.$ac_objext
31789 if { (ac_try="$ac_compile"
31790 case "(($ac_try" in
31791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31792   *) ac_try_echo=$ac_try;;
31793 esac
31794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31795   (eval "$ac_compile") 2>conftest.er1
31796   ac_status=$?
31797   grep -v '^ *+' conftest.er1 >conftest.err
31798   rm -f conftest.er1
31799   cat conftest.err >&5
31800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801   (exit $ac_status); } && {
31802          test -z "$ac_c_werror_flag" ||
31803          test ! -s conftest.err
31804        } && test -s conftest.$ac_objext; then
31805   ac_cv_member_struct_stat_st_blksize=yes
31806 else
31807   echo "$as_me: failed program was:" >&5
31808 sed 's/^/| /' conftest.$ac_ext >&5
31809
31810         ac_cv_member_struct_stat_st_blksize=no
31811 fi
31812
31813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31814 fi
31815
31816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31817 fi
31818 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31819 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31820 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31821
31822 cat >>confdefs.h <<_ACEOF
31823 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31824 _ACEOF
31825
31826
31827 cat >>confdefs.h <<\_ACEOF
31828 #define HAVE_ST_BLKSIZE 1
31829 _ACEOF
31830
31831 fi
31832
31833
31834 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31835 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31836 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31837   echo $ECHO_N "(cached) $ECHO_C" >&6
31838 else
31839   cat >conftest.$ac_ext <<_ACEOF
31840 /* confdefs.h.  */
31841 _ACEOF
31842 cat confdefs.h >>conftest.$ac_ext
31843 cat >>conftest.$ac_ext <<_ACEOF
31844 /* end confdefs.h.  */
31845 $ac_includes_default
31846 int
31847 main ()
31848 {
31849 static struct stat ac_aggr;
31850 if (ac_aggr.st_blocks)
31851 return 0;
31852   ;
31853   return 0;
31854 }
31855 _ACEOF
31856 rm -f conftest.$ac_objext
31857 if { (ac_try="$ac_compile"
31858 case "(($ac_try" in
31859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31860   *) ac_try_echo=$ac_try;;
31861 esac
31862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31863   (eval "$ac_compile") 2>conftest.er1
31864   ac_status=$?
31865   grep -v '^ *+' conftest.er1 >conftest.err
31866   rm -f conftest.er1
31867   cat conftest.err >&5
31868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869   (exit $ac_status); } && {
31870          test -z "$ac_c_werror_flag" ||
31871          test ! -s conftest.err
31872        } && test -s conftest.$ac_objext; then
31873   ac_cv_member_struct_stat_st_blocks=yes
31874 else
31875   echo "$as_me: failed program was:" >&5
31876 sed 's/^/| /' conftest.$ac_ext >&5
31877
31878         cat >conftest.$ac_ext <<_ACEOF
31879 /* confdefs.h.  */
31880 _ACEOF
31881 cat confdefs.h >>conftest.$ac_ext
31882 cat >>conftest.$ac_ext <<_ACEOF
31883 /* end confdefs.h.  */
31884 $ac_includes_default
31885 int
31886 main ()
31887 {
31888 static struct stat ac_aggr;
31889 if (sizeof ac_aggr.st_blocks)
31890 return 0;
31891   ;
31892   return 0;
31893 }
31894 _ACEOF
31895 rm -f conftest.$ac_objext
31896 if { (ac_try="$ac_compile"
31897 case "(($ac_try" in
31898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31899   *) ac_try_echo=$ac_try;;
31900 esac
31901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31902   (eval "$ac_compile") 2>conftest.er1
31903   ac_status=$?
31904   grep -v '^ *+' conftest.er1 >conftest.err
31905   rm -f conftest.er1
31906   cat conftest.err >&5
31907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908   (exit $ac_status); } && {
31909          test -z "$ac_c_werror_flag" ||
31910          test ! -s conftest.err
31911        } && test -s conftest.$ac_objext; then
31912   ac_cv_member_struct_stat_st_blocks=yes
31913 else
31914   echo "$as_me: failed program was:" >&5
31915 sed 's/^/| /' conftest.$ac_ext >&5
31916
31917         ac_cv_member_struct_stat_st_blocks=no
31918 fi
31919
31920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31921 fi
31922
31923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31924 fi
31925 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31926 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31927 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31928
31929 cat >>confdefs.h <<_ACEOF
31930 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31931 _ACEOF
31932
31933
31934 cat >>confdefs.h <<\_ACEOF
31935 #define HAVE_ST_BLOCKS 1
31936 _ACEOF
31937
31938 else
31939   case " $LIBOBJS " in
31940   *" fileblocks.$ac_objext "* ) ;;
31941   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31942  ;;
31943 esac
31944
31945 fi
31946
31947
31948 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31949 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31950 if test "${ac_cv_struct_tm+set}" = set; then
31951   echo $ECHO_N "(cached) $ECHO_C" >&6
31952 else
31953   cat >conftest.$ac_ext <<_ACEOF
31954 /* confdefs.h.  */
31955 _ACEOF
31956 cat confdefs.h >>conftest.$ac_ext
31957 cat >>conftest.$ac_ext <<_ACEOF
31958 /* end confdefs.h.  */
31959 #include <sys/types.h>
31960 #include <time.h>
31961
31962 int
31963 main ()
31964 {
31965 struct tm tm;
31966                                      int *p = &tm.tm_sec;
31967                                      return !p;
31968   ;
31969   return 0;
31970 }
31971 _ACEOF
31972 rm -f conftest.$ac_objext
31973 if { (ac_try="$ac_compile"
31974 case "(($ac_try" in
31975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31976   *) ac_try_echo=$ac_try;;
31977 esac
31978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31979   (eval "$ac_compile") 2>conftest.er1
31980   ac_status=$?
31981   grep -v '^ *+' conftest.er1 >conftest.err
31982   rm -f conftest.er1
31983   cat conftest.err >&5
31984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985   (exit $ac_status); } && {
31986          test -z "$ac_c_werror_flag" ||
31987          test ! -s conftest.err
31988        } && test -s conftest.$ac_objext; then
31989   ac_cv_struct_tm=time.h
31990 else
31991   echo "$as_me: failed program was:" >&5
31992 sed 's/^/| /' conftest.$ac_ext >&5
31993
31994         ac_cv_struct_tm=sys/time.h
31995 fi
31996
31997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31998 fi
31999 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32000 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32001 if test $ac_cv_struct_tm = sys/time.h; then
32002
32003 cat >>confdefs.h <<\_ACEOF
32004 #define TM_IN_SYS_TIME 1
32005 _ACEOF
32006
32007 fi
32008
32009 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32010 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32011 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32012   echo $ECHO_N "(cached) $ECHO_C" >&6
32013 else
32014   cat >conftest.$ac_ext <<_ACEOF
32015 /* confdefs.h.  */
32016 _ACEOF
32017 cat confdefs.h >>conftest.$ac_ext
32018 cat >>conftest.$ac_ext <<_ACEOF
32019 /* end confdefs.h.  */
32020 #include <sys/types.h>
32021 #include <$ac_cv_struct_tm>
32022
32023
32024 int
32025 main ()
32026 {
32027 static struct tm ac_aggr;
32028 if (ac_aggr.tm_zone)
32029 return 0;
32030   ;
32031   return 0;
32032 }
32033 _ACEOF
32034 rm -f conftest.$ac_objext
32035 if { (ac_try="$ac_compile"
32036 case "(($ac_try" in
32037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32038   *) ac_try_echo=$ac_try;;
32039 esac
32040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32041   (eval "$ac_compile") 2>conftest.er1
32042   ac_status=$?
32043   grep -v '^ *+' conftest.er1 >conftest.err
32044   rm -f conftest.er1
32045   cat conftest.err >&5
32046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047   (exit $ac_status); } && {
32048          test -z "$ac_c_werror_flag" ||
32049          test ! -s conftest.err
32050        } && test -s conftest.$ac_objext; then
32051   ac_cv_member_struct_tm_tm_zone=yes
32052 else
32053   echo "$as_me: failed program was:" >&5
32054 sed 's/^/| /' conftest.$ac_ext >&5
32055
32056         cat >conftest.$ac_ext <<_ACEOF
32057 /* confdefs.h.  */
32058 _ACEOF
32059 cat confdefs.h >>conftest.$ac_ext
32060 cat >>conftest.$ac_ext <<_ACEOF
32061 /* end confdefs.h.  */
32062 #include <sys/types.h>
32063 #include <$ac_cv_struct_tm>
32064
32065
32066 int
32067 main ()
32068 {
32069 static struct tm ac_aggr;
32070 if (sizeof ac_aggr.tm_zone)
32071 return 0;
32072   ;
32073   return 0;
32074 }
32075 _ACEOF
32076 rm -f conftest.$ac_objext
32077 if { (ac_try="$ac_compile"
32078 case "(($ac_try" in
32079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32080   *) ac_try_echo=$ac_try;;
32081 esac
32082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32083   (eval "$ac_compile") 2>conftest.er1
32084   ac_status=$?
32085   grep -v '^ *+' conftest.er1 >conftest.err
32086   rm -f conftest.er1
32087   cat conftest.err >&5
32088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089   (exit $ac_status); } && {
32090          test -z "$ac_c_werror_flag" ||
32091          test ! -s conftest.err
32092        } && test -s conftest.$ac_objext; then
32093   ac_cv_member_struct_tm_tm_zone=yes
32094 else
32095   echo "$as_me: failed program was:" >&5
32096 sed 's/^/| /' conftest.$ac_ext >&5
32097
32098         ac_cv_member_struct_tm_tm_zone=no
32099 fi
32100
32101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32102 fi
32103
32104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32105 fi
32106 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32107 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32108 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32109
32110 cat >>confdefs.h <<_ACEOF
32111 #define HAVE_STRUCT_TM_TM_ZONE 1
32112 _ACEOF
32113
32114
32115 fi
32116
32117 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32118
32119 cat >>confdefs.h <<\_ACEOF
32120 #define HAVE_TM_ZONE 1
32121 _ACEOF
32122
32123 else
32124   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32125 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32126 if test "${ac_cv_have_decl_tzname+set}" = set; then
32127   echo $ECHO_N "(cached) $ECHO_C" >&6
32128 else
32129   cat >conftest.$ac_ext <<_ACEOF
32130 /* confdefs.h.  */
32131 _ACEOF
32132 cat confdefs.h >>conftest.$ac_ext
32133 cat >>conftest.$ac_ext <<_ACEOF
32134 /* end confdefs.h.  */
32135 #include <time.h>
32136
32137 int
32138 main ()
32139 {
32140 #ifndef tzname
32141   (void) tzname;
32142 #endif
32143
32144   ;
32145   return 0;
32146 }
32147 _ACEOF
32148 rm -f conftest.$ac_objext
32149 if { (ac_try="$ac_compile"
32150 case "(($ac_try" in
32151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32152   *) ac_try_echo=$ac_try;;
32153 esac
32154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32155   (eval "$ac_compile") 2>conftest.er1
32156   ac_status=$?
32157   grep -v '^ *+' conftest.er1 >conftest.err
32158   rm -f conftest.er1
32159   cat conftest.err >&5
32160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32161   (exit $ac_status); } && {
32162          test -z "$ac_c_werror_flag" ||
32163          test ! -s conftest.err
32164        } && test -s conftest.$ac_objext; then
32165   ac_cv_have_decl_tzname=yes
32166 else
32167   echo "$as_me: failed program was:" >&5
32168 sed 's/^/| /' conftest.$ac_ext >&5
32169
32170         ac_cv_have_decl_tzname=no
32171 fi
32172
32173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32174 fi
32175 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32176 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32177 if test $ac_cv_have_decl_tzname = yes; then
32178
32179 cat >>confdefs.h <<_ACEOF
32180 #define HAVE_DECL_TZNAME 1
32181 _ACEOF
32182
32183
32184 else
32185   cat >>confdefs.h <<_ACEOF
32186 #define HAVE_DECL_TZNAME 0
32187 _ACEOF
32188
32189
32190 fi
32191
32192
32193   { echo "$as_me:$LINENO: checking for tzname" >&5
32194 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32195 if test "${ac_cv_var_tzname+set}" = set; then
32196   echo $ECHO_N "(cached) $ECHO_C" >&6
32197 else
32198   cat >conftest.$ac_ext <<_ACEOF
32199 /* confdefs.h.  */
32200 _ACEOF
32201 cat confdefs.h >>conftest.$ac_ext
32202 cat >>conftest.$ac_ext <<_ACEOF
32203 /* end confdefs.h.  */
32204 #include <time.h>
32205 #if !HAVE_DECL_TZNAME
32206 extern char *tzname[];
32207 #endif
32208
32209 int
32210 main ()
32211 {
32212 return tzname[0][0];
32213   ;
32214   return 0;
32215 }
32216 _ACEOF
32217 rm -f conftest.$ac_objext conftest$ac_exeext
32218 if { (ac_try="$ac_link"
32219 case "(($ac_try" in
32220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32221   *) ac_try_echo=$ac_try;;
32222 esac
32223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32224   (eval "$ac_link") 2>conftest.er1
32225   ac_status=$?
32226   grep -v '^ *+' conftest.er1 >conftest.err
32227   rm -f conftest.er1
32228   cat conftest.err >&5
32229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230   (exit $ac_status); } && {
32231          test -z "$ac_c_werror_flag" ||
32232          test ! -s conftest.err
32233        } && test -s conftest$ac_exeext &&
32234        $as_test_x conftest$ac_exeext; then
32235   ac_cv_var_tzname=yes
32236 else
32237   echo "$as_me: failed program was:" >&5
32238 sed 's/^/| /' conftest.$ac_ext >&5
32239
32240         ac_cv_var_tzname=no
32241 fi
32242
32243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32244       conftest$ac_exeext conftest.$ac_ext
32245 fi
32246 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32247 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32248   if test $ac_cv_var_tzname = yes; then
32249
32250 cat >>confdefs.h <<\_ACEOF
32251 #define HAVE_TZNAME 1
32252 _ACEOF
32253
32254   fi
32255 fi
32256
32257
32258 { echo "$as_me:$LINENO: checking for utime.h" >&5
32259 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32260 if test "${ba_cv_header_utime_h+set}" = set; then
32261   echo $ECHO_N "(cached) $ECHO_C" >&6
32262 else
32263
32264        cat >conftest.$ac_ext <<_ACEOF
32265 /* confdefs.h.  */
32266 _ACEOF
32267 cat confdefs.h >>conftest.$ac_ext
32268 cat >>conftest.$ac_ext <<_ACEOF
32269 /* end confdefs.h.  */
32270
32271               #include <sys/types.h>
32272               #include <utime.h>
32273
32274 int
32275 main ()
32276 {
32277
32278               struct utimbuf foo
32279
32280   ;
32281   return 0;
32282 }
32283 _ACEOF
32284 rm -f conftest.$ac_objext
32285 if { (ac_try="$ac_compile"
32286 case "(($ac_try" in
32287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288   *) ac_try_echo=$ac_try;;
32289 esac
32290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32291   (eval "$ac_compile") 2>conftest.er1
32292   ac_status=$?
32293   grep -v '^ *+' conftest.er1 >conftest.err
32294   rm -f conftest.er1
32295   cat conftest.err >&5
32296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297   (exit $ac_status); } && {
32298          test -z "$ac_c_werror_flag" ||
32299          test ! -s conftest.err
32300        } && test -s conftest.$ac_objext; then
32301
32302               ba_cv_header_utime_h=yes
32303
32304 else
32305   echo "$as_me: failed program was:" >&5
32306 sed 's/^/| /' conftest.$ac_ext >&5
32307
32308
32309               ba_cv_header_utime_h=no
32310
32311
32312 fi
32313
32314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32315
32316
32317 fi
32318 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32319 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32320 test $ba_cv_header_utime_h = yes &&
32321 cat >>confdefs.h <<\_ACEOF
32322 #define HAVE_UTIME_H 1
32323 _ACEOF
32324
32325
32326 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32327 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32328 if test "${ba_cv_header_socklen_t+set}" = set; then
32329   echo $ECHO_N "(cached) $ECHO_C" >&6
32330 else
32331
32332        cat >conftest.$ac_ext <<_ACEOF
32333 /* confdefs.h.  */
32334 _ACEOF
32335 cat confdefs.h >>conftest.$ac_ext
32336 cat >>conftest.$ac_ext <<_ACEOF
32337 /* end confdefs.h.  */
32338
32339               #include <sys/types.h>
32340               #include <sys/socket.h>
32341
32342 int
32343 main ()
32344 {
32345
32346               socklen_t x
32347
32348   ;
32349   return 0;
32350 }
32351 _ACEOF
32352 rm -f conftest.$ac_objext
32353 if { (ac_try="$ac_compile"
32354 case "(($ac_try" in
32355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32356   *) ac_try_echo=$ac_try;;
32357 esac
32358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32359   (eval "$ac_compile") 2>conftest.er1
32360   ac_status=$?
32361   grep -v '^ *+' conftest.er1 >conftest.err
32362   rm -f conftest.er1
32363   cat conftest.err >&5
32364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365   (exit $ac_status); } && {
32366          test -z "$ac_c_werror_flag" ||
32367          test ! -s conftest.err
32368        } && test -s conftest.$ac_objext; then
32369
32370              ba_cv_header_socklen_t=yes
32371
32372 else
32373   echo "$as_me: failed program was:" >&5
32374 sed 's/^/| /' conftest.$ac_ext >&5
32375
32376
32377              ba_cv_header_socklen_t=no
32378
32379
32380 fi
32381
32382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32383
32384
32385 fi
32386 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32387 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32388 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32389 #define HAVE_SOCKLEN_T 1
32390 _ACEOF
32391
32392
32393 ac_ext=cpp
32394 ac_cpp='$CXXCPP $CPPFLAGS'
32395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32398
32399 { echo "$as_me:$LINENO: checking for typeof" >&5
32400 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32401 if test "${ba_cv_have_typeof+set}" = set; then
32402   echo $ECHO_N "(cached) $ECHO_C" >&6
32403 else
32404
32405        if test "$cross_compiling" = yes; then
32406
32407               ba_cv_have_typeof=no
32408
32409
32410 else
32411   cat >conftest.$ac_ext <<_ACEOF
32412 /* confdefs.h.  */
32413 _ACEOF
32414 cat confdefs.h >>conftest.$ac_ext
32415 cat >>conftest.$ac_ext <<_ACEOF
32416 /* end confdefs.h.  */
32417
32418               main(){char *a = 0; a = (typeof a)a;}
32419
32420 _ACEOF
32421 rm -f conftest$ac_exeext
32422 if { (ac_try="$ac_link"
32423 case "(($ac_try" in
32424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32425   *) ac_try_echo=$ac_try;;
32426 esac
32427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32428   (eval "$ac_link") 2>&5
32429   ac_status=$?
32430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32432   { (case "(($ac_try" in
32433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32434   *) ac_try_echo=$ac_try;;
32435 esac
32436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437   (eval "$ac_try") 2>&5
32438   ac_status=$?
32439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32440   (exit $ac_status); }; }; then
32441
32442               ba_cv_have_typeof=yes
32443
32444 else
32445   echo "$as_me: program exited with status $ac_status" >&5
32446 echo "$as_me: failed program was:" >&5
32447 sed 's/^/| /' conftest.$ac_ext >&5
32448
32449 ( exit $ac_status )
32450
32451               ba_cv_have_typeof=no
32452
32453 fi
32454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32455 fi
32456
32457
32458
32459
32460 fi
32461 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32462 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32463 test $ba_cv_have_typeof = yes &&
32464 cat >>confdefs.h <<\_ACEOF
32465 #define HAVE_TYPEOF 1
32466 _ACEOF
32467
32468 ac_ext=c
32469 ac_cpp='$CPP $CPPFLAGS'
32470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32473
32474
32475 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32476 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32477 if test "${ac_cv_c_const+set}" = set; then
32478   echo $ECHO_N "(cached) $ECHO_C" >&6
32479 else
32480   cat >conftest.$ac_ext <<_ACEOF
32481 /* confdefs.h.  */
32482 _ACEOF
32483 cat confdefs.h >>conftest.$ac_ext
32484 cat >>conftest.$ac_ext <<_ACEOF
32485 /* end confdefs.h.  */
32486
32487 int
32488 main ()
32489 {
32490 /* FIXME: Include the comments suggested by Paul. */
32491 #ifndef __cplusplus
32492   /* Ultrix mips cc rejects this.  */
32493   typedef int charset[2];
32494   const charset cs;
32495   /* SunOS 4.1.1 cc rejects this.  */
32496   char const *const *pcpcc;
32497   char **ppc;
32498   /* NEC SVR4.0.2 mips cc rejects this.  */
32499   struct point {int x, y;};
32500   static struct point const zero = {0,0};
32501   /* AIX XL C 1.02.0.0 rejects this.
32502      It does not let you subtract one const X* pointer from another in
32503      an arm of an if-expression whose if-part is not a constant
32504      expression */
32505   const char *g = "string";
32506   pcpcc = &g + (g ? g-g : 0);
32507   /* HPUX 7.0 cc rejects these. */
32508   ++pcpcc;
32509   ppc = (char**) pcpcc;
32510   pcpcc = (char const *const *) ppc;
32511   { /* SCO 3.2v4 cc rejects this.  */
32512     char *t;
32513     char const *s = 0 ? (char *) 0 : (char const *) 0;
32514
32515     *t++ = 0;
32516     if (s) return 0;
32517   }
32518   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32519     int x[] = {25, 17};
32520     const int *foo = &x[0];
32521     ++foo;
32522   }
32523   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32524     typedef const int *iptr;
32525     iptr p = 0;
32526     ++p;
32527   }
32528   { /* AIX XL C 1.02.0.0 rejects this saying
32529        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32530     struct s { int j; const int *ap[3]; };
32531     struct s *b; b->j = 5;
32532   }
32533   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32534     const int foo = 10;
32535     if (!foo) return 0;
32536   }
32537   return !cs[0] && !zero.x;
32538 #endif
32539
32540   ;
32541   return 0;
32542 }
32543 _ACEOF
32544 rm -f conftest.$ac_objext
32545 if { (ac_try="$ac_compile"
32546 case "(($ac_try" in
32547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32548   *) ac_try_echo=$ac_try;;
32549 esac
32550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32551   (eval "$ac_compile") 2>conftest.er1
32552   ac_status=$?
32553   grep -v '^ *+' conftest.er1 >conftest.err
32554   rm -f conftest.er1
32555   cat conftest.err >&5
32556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557   (exit $ac_status); } && {
32558          test -z "$ac_c_werror_flag" ||
32559          test ! -s conftest.err
32560        } && test -s conftest.$ac_objext; then
32561   ac_cv_c_const=yes
32562 else
32563   echo "$as_me: failed program was:" >&5
32564 sed 's/^/| /' conftest.$ac_ext >&5
32565
32566         ac_cv_c_const=no
32567 fi
32568
32569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32570 fi
32571 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32572 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32573 if test $ac_cv_c_const = no; then
32574
32575 cat >>confdefs.h <<\_ACEOF
32576 #define const
32577 _ACEOF
32578
32579 fi
32580
32581
32582 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32583 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32584 fstype=no
32585 # The order of these tests is important.
32586 cat >conftest.$ac_ext <<_ACEOF
32587 /* confdefs.h.  */
32588 _ACEOF
32589 cat confdefs.h >>conftest.$ac_ext
32590 cat >>conftest.$ac_ext <<_ACEOF
32591 /* end confdefs.h.  */
32592
32593        #include <sys/statvfs.h>
32594        #include <sys/fstyp.h>
32595
32596 _ACEOF
32597 if { (ac_try="$ac_cpp conftest.$ac_ext"
32598 case "(($ac_try" in
32599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32600   *) ac_try_echo=$ac_try;;
32601 esac
32602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32604   ac_status=$?
32605   grep -v '^ *+' conftest.er1 >conftest.err
32606   rm -f conftest.er1
32607   cat conftest.err >&5
32608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609   (exit $ac_status); } >/dev/null && {
32610          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32611          test ! -s conftest.err
32612        }; then
32613   cat >>confdefs.h <<\_ACEOF
32614 #define FSTYPE_STATVFS 1
32615 _ACEOF
32616  fstype=SVR4
32617
32618 else
32619   echo "$as_me: failed program was:" >&5
32620 sed 's/^/| /' conftest.$ac_ext >&5
32621
32622
32623 fi
32624
32625 rm -f conftest.err conftest.$ac_ext
32626 if test $fstype = no; then
32627    cat >conftest.$ac_ext <<_ACEOF
32628 /* confdefs.h.  */
32629 _ACEOF
32630 cat confdefs.h >>conftest.$ac_ext
32631 cat >>conftest.$ac_ext <<_ACEOF
32632 /* end confdefs.h.  */
32633
32634           #include <sys/statfs.h>
32635           #include <sys/fstyp.h>
32636
32637 _ACEOF
32638 if { (ac_try="$ac_cpp conftest.$ac_ext"
32639 case "(($ac_try" in
32640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32641   *) ac_try_echo=$ac_try;;
32642 esac
32643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32645   ac_status=$?
32646   grep -v '^ *+' conftest.er1 >conftest.err
32647   rm -f conftest.er1
32648   cat conftest.err >&5
32649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650   (exit $ac_status); } >/dev/null && {
32651          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32652          test ! -s conftest.err
32653        }; then
32654   cat >>confdefs.h <<\_ACEOF
32655 #define FSTYPE_USG_STATFS 1
32656 _ACEOF
32657  fstype=SVR3
32658
32659 else
32660   echo "$as_me: failed program was:" >&5
32661 sed 's/^/| /' conftest.$ac_ext >&5
32662
32663
32664 fi
32665
32666 rm -f conftest.err conftest.$ac_ext
32667 fi
32668 if test $fstype = no; then
32669    cat >conftest.$ac_ext <<_ACEOF
32670 /* confdefs.h.  */
32671 _ACEOF
32672 cat confdefs.h >>conftest.$ac_ext
32673 cat >>conftest.$ac_ext <<_ACEOF
32674 /* end confdefs.h.  */
32675
32676           #include <sys/statfs.h>
32677           #include <sys/vmount.h>
32678
32679 _ACEOF
32680 if { (ac_try="$ac_cpp conftest.$ac_ext"
32681 case "(($ac_try" in
32682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32683   *) ac_try_echo=$ac_try;;
32684 esac
32685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32687   ac_status=$?
32688   grep -v '^ *+' conftest.er1 >conftest.err
32689   rm -f conftest.er1
32690   cat conftest.err >&5
32691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692   (exit $ac_status); } >/dev/null && {
32693          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32694          test ! -s conftest.err
32695        }; then
32696   cat >>confdefs.h <<\_ACEOF
32697 #define FSTYPE_AIX_STATFS 1
32698 _ACEOF
32699  fstype=AIX
32700
32701 else
32702   echo "$as_me: failed program was:" >&5
32703 sed 's/^/| /' conftest.$ac_ext >&5
32704
32705
32706 fi
32707
32708 rm -f conftest.err conftest.$ac_ext
32709 fi
32710 if test $fstype = no; then
32711    cat >conftest.$ac_ext <<_ACEOF
32712 /* confdefs.h.  */
32713 _ACEOF
32714 cat confdefs.h >>conftest.$ac_ext
32715 cat >>conftest.$ac_ext <<_ACEOF
32716 /* end confdefs.h.  */
32717
32718           #include <mntent.h>
32719
32720 _ACEOF
32721 if { (ac_try="$ac_cpp conftest.$ac_ext"
32722 case "(($ac_try" in
32723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32724   *) ac_try_echo=$ac_try;;
32725 esac
32726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32728   ac_status=$?
32729   grep -v '^ *+' conftest.er1 >conftest.err
32730   rm -f conftest.er1
32731   cat conftest.err >&5
32732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733   (exit $ac_status); } >/dev/null && {
32734          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32735          test ! -s conftest.err
32736        }; then
32737   cat >>confdefs.h <<\_ACEOF
32738 #define FSTYPE_MNTENT 1
32739 _ACEOF
32740  fstype=4.3BSD
32741
32742 else
32743   echo "$as_me: failed program was:" >&5
32744 sed 's/^/| /' conftest.$ac_ext >&5
32745
32746
32747 fi
32748
32749 rm -f conftest.err conftest.$ac_ext
32750 fi
32751 if test $fstype = no; then
32752    cat >conftest.$ac_ext <<_ACEOF
32753 /* confdefs.h.  */
32754 _ACEOF
32755 cat confdefs.h >>conftest.$ac_ext
32756 cat >>conftest.$ac_ext <<_ACEOF
32757 /* end confdefs.h.  */
32758 #include <sys/mount.h>
32759
32760 _ACEOF
32761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32762   $EGREP "f_type;" >/dev/null 2>&1; then
32763   cat >>confdefs.h <<\_ACEOF
32764 #define FSTYPE_STATFS 1
32765 _ACEOF
32766  fstype=4.4BSD/OSF1
32767 fi
32768 rm -f conftest*
32769
32770 fi
32771 if test $fstype = no; then
32772    cat >conftest.$ac_ext <<_ACEOF
32773 /* confdefs.h.  */
32774 _ACEOF
32775 cat confdefs.h >>conftest.$ac_ext
32776 cat >>conftest.$ac_ext <<_ACEOF
32777 /* end confdefs.h.  */
32778
32779           #include <sys/mount.h>
32780           #include <sys/fs_types.h>
32781
32782 _ACEOF
32783 if { (ac_try="$ac_cpp conftest.$ac_ext"
32784 case "(($ac_try" in
32785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32786   *) ac_try_echo=$ac_try;;
32787 esac
32788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32789   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32790   ac_status=$?
32791   grep -v '^ *+' conftest.er1 >conftest.err
32792   rm -f conftest.er1
32793   cat conftest.err >&5
32794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795   (exit $ac_status); } >/dev/null && {
32796          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32797          test ! -s conftest.err
32798        }; then
32799   cat >>confdefs.h <<\_ACEOF
32800 #define FSTYPE_GETMNT 1
32801 _ACEOF
32802  fstype=Ultrix
32803
32804 else
32805   echo "$as_me: failed program was:" >&5
32806 sed 's/^/| /' conftest.$ac_ext >&5
32807
32808
32809 fi
32810
32811 rm -f conftest.err conftest.$ac_ext
32812 fi
32813 { echo "$as_me:$LINENO: result: $fstype" >&5
32814 echo "${ECHO_T}$fstype" >&6; }
32815
32816 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32817   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32818 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32819 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32820   echo $ECHO_N "(cached) $ECHO_C" >&6
32821 fi
32822 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32823 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32824 else
32825   # Is the header compilable?
32826 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32827 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32828 cat >conftest.$ac_ext <<_ACEOF
32829 /* confdefs.h.  */
32830 _ACEOF
32831 cat confdefs.h >>conftest.$ac_ext
32832 cat >>conftest.$ac_ext <<_ACEOF
32833 /* end confdefs.h.  */
32834 $ac_includes_default
32835 #include <sys/statvfs.h>
32836 _ACEOF
32837 rm -f conftest.$ac_objext
32838 if { (ac_try="$ac_compile"
32839 case "(($ac_try" in
32840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32841   *) ac_try_echo=$ac_try;;
32842 esac
32843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32844   (eval "$ac_compile") 2>conftest.er1
32845   ac_status=$?
32846   grep -v '^ *+' conftest.er1 >conftest.err
32847   rm -f conftest.er1
32848   cat conftest.err >&5
32849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850   (exit $ac_status); } && {
32851          test -z "$ac_c_werror_flag" ||
32852          test ! -s conftest.err
32853        } && test -s conftest.$ac_objext; then
32854   ac_header_compiler=yes
32855 else
32856   echo "$as_me: failed program was:" >&5
32857 sed 's/^/| /' conftest.$ac_ext >&5
32858
32859         ac_header_compiler=no
32860 fi
32861
32862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32864 echo "${ECHO_T}$ac_header_compiler" >&6; }
32865
32866 # Is the header present?
32867 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32868 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32869 cat >conftest.$ac_ext <<_ACEOF
32870 /* confdefs.h.  */
32871 _ACEOF
32872 cat confdefs.h >>conftest.$ac_ext
32873 cat >>conftest.$ac_ext <<_ACEOF
32874 /* end confdefs.h.  */
32875 #include <sys/statvfs.h>
32876 _ACEOF
32877 if { (ac_try="$ac_cpp conftest.$ac_ext"
32878 case "(($ac_try" in
32879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32880   *) ac_try_echo=$ac_try;;
32881 esac
32882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32883   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32884   ac_status=$?
32885   grep -v '^ *+' conftest.er1 >conftest.err
32886   rm -f conftest.er1
32887   cat conftest.err >&5
32888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889   (exit $ac_status); } >/dev/null && {
32890          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32891          test ! -s conftest.err
32892        }; then
32893   ac_header_preproc=yes
32894 else
32895   echo "$as_me: failed program was:" >&5
32896 sed 's/^/| /' conftest.$ac_ext >&5
32897
32898   ac_header_preproc=no
32899 fi
32900
32901 rm -f conftest.err conftest.$ac_ext
32902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32903 echo "${ECHO_T}$ac_header_preproc" >&6; }
32904
32905 # So?  What about this header?
32906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32907   yes:no: )
32908     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32909 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32910     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32911 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32912     ac_header_preproc=yes
32913     ;;
32914   no:yes:* )
32915     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32916 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32917     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32918 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32919     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32920 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32921     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32922 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32923     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32924 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32925     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32926 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32927
32928     ;;
32929 esac
32930 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32931 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32932 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32933   echo $ECHO_N "(cached) $ECHO_C" >&6
32934 else
32935   ac_cv_header_sys_statvfs_h=$ac_header_preproc
32936 fi
32937 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32938 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32939
32940 fi
32941 if test $ac_cv_header_sys_statvfs_h = yes; then
32942
32943 cat >>confdefs.h <<\_ACEOF
32944 #define HAVE_SYS_STATVFS_H 1
32945 _ACEOF
32946
32947 fi
32948
32949
32950
32951 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32952 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32953 if test "${ac_cv_type_signal+set}" = set; then
32954   echo $ECHO_N "(cached) $ECHO_C" >&6
32955 else
32956   cat >conftest.$ac_ext <<_ACEOF
32957 /* confdefs.h.  */
32958 _ACEOF
32959 cat confdefs.h >>conftest.$ac_ext
32960 cat >>conftest.$ac_ext <<_ACEOF
32961 /* end confdefs.h.  */
32962 #include <sys/types.h>
32963 #include <signal.h>
32964
32965 int
32966 main ()
32967 {
32968 return *(signal (0, 0)) (0) == 1;
32969   ;
32970   return 0;
32971 }
32972 _ACEOF
32973 rm -f conftest.$ac_objext
32974 if { (ac_try="$ac_compile"
32975 case "(($ac_try" in
32976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32977   *) ac_try_echo=$ac_try;;
32978 esac
32979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32980   (eval "$ac_compile") 2>conftest.er1
32981   ac_status=$?
32982   grep -v '^ *+' conftest.er1 >conftest.err
32983   rm -f conftest.er1
32984   cat conftest.err >&5
32985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986   (exit $ac_status); } && {
32987          test -z "$ac_c_werror_flag" ||
32988          test ! -s conftest.err
32989        } && test -s conftest.$ac_objext; then
32990   ac_cv_type_signal=int
32991 else
32992   echo "$as_me: failed program was:" >&5
32993 sed 's/^/| /' conftest.$ac_ext >&5
32994
32995         ac_cv_type_signal=void
32996 fi
32997
32998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32999 fi
33000 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33001 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33002
33003 cat >>confdefs.h <<_ACEOF
33004 #define RETSIGTYPE $ac_cv_type_signal
33005 _ACEOF
33006
33007
33008
33009   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33010 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33011   if test "${bash_cv_signal_vintage+set}" = set; then
33012   echo $ECHO_N "(cached) $ECHO_C" >&6
33013 else
33014
33015     cat >conftest.$ac_ext <<_ACEOF
33016 /* confdefs.h.  */
33017 _ACEOF
33018 cat confdefs.h >>conftest.$ac_ext
33019 cat >>conftest.$ac_ext <<_ACEOF
33020 /* end confdefs.h.  */
33021 #include <signal.h>
33022 int
33023 main ()
33024 {
33025
33026       sigset_t ss;
33027       struct sigaction sa;
33028       sigemptyset(&ss); sigsuspend(&ss);
33029       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33030       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33031
33032   ;
33033   return 0;
33034 }
33035 _ACEOF
33036 rm -f conftest.$ac_objext conftest$ac_exeext
33037 if { (ac_try="$ac_link"
33038 case "(($ac_try" in
33039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33040   *) ac_try_echo=$ac_try;;
33041 esac
33042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33043   (eval "$ac_link") 2>conftest.er1
33044   ac_status=$?
33045   grep -v '^ *+' conftest.er1 >conftest.err
33046   rm -f conftest.er1
33047   cat conftest.err >&5
33048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049   (exit $ac_status); } && {
33050          test -z "$ac_c_werror_flag" ||
33051          test ! -s conftest.err
33052        } && test -s conftest$ac_exeext &&
33053        $as_test_x conftest$ac_exeext; then
33054   bash_cv_signal_vintage="posix"
33055 else
33056   echo "$as_me: failed program was:" >&5
33057 sed 's/^/| /' conftest.$ac_ext >&5
33058
33059
33060       cat >conftest.$ac_ext <<_ACEOF
33061 /* confdefs.h.  */
33062 _ACEOF
33063 cat confdefs.h >>conftest.$ac_ext
33064 cat >>conftest.$ac_ext <<_ACEOF
33065 /* end confdefs.h.  */
33066 #include <signal.h>
33067 int
33068 main ()
33069 {
33070
33071           int mask = sigmask(SIGINT);
33072           sigsetmask(mask); sigblock(mask); sigpause(mask);
33073
33074   ;
33075   return 0;
33076 }
33077 _ACEOF
33078 rm -f conftest.$ac_objext conftest$ac_exeext
33079 if { (ac_try="$ac_link"
33080 case "(($ac_try" in
33081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33082   *) ac_try_echo=$ac_try;;
33083 esac
33084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33085   (eval "$ac_link") 2>conftest.er1
33086   ac_status=$?
33087   grep -v '^ *+' conftest.er1 >conftest.err
33088   rm -f conftest.er1
33089   cat conftest.err >&5
33090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091   (exit $ac_status); } && {
33092          test -z "$ac_c_werror_flag" ||
33093          test ! -s conftest.err
33094        } && test -s conftest$ac_exeext &&
33095        $as_test_x conftest$ac_exeext; then
33096   bash_cv_signal_vintage="4.2bsd"
33097 else
33098   echo "$as_me: failed program was:" >&5
33099 sed 's/^/| /' conftest.$ac_ext >&5
33100
33101
33102         cat >conftest.$ac_ext <<_ACEOF
33103 /* confdefs.h.  */
33104 _ACEOF
33105 cat confdefs.h >>conftest.$ac_ext
33106 cat >>conftest.$ac_ext <<_ACEOF
33107 /* end confdefs.h.  */
33108
33109           #include <signal.h>
33110           RETSIGTYPE foo() { }
33111 int
33112 main ()
33113 {
33114
33115                   int mask = sigmask(SIGINT);
33116                   sigset(SIGINT, foo); sigrelse(SIGINT);
33117                   sighold(SIGINT); sigpause(SIGINT);
33118
33119   ;
33120   return 0;
33121 }
33122 _ACEOF
33123 rm -f conftest.$ac_objext conftest$ac_exeext
33124 if { (ac_try="$ac_link"
33125 case "(($ac_try" in
33126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33127   *) ac_try_echo=$ac_try;;
33128 esac
33129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33130   (eval "$ac_link") 2>conftest.er1
33131   ac_status=$?
33132   grep -v '^ *+' conftest.er1 >conftest.err
33133   rm -f conftest.er1
33134   cat conftest.err >&5
33135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33136   (exit $ac_status); } && {
33137          test -z "$ac_c_werror_flag" ||
33138          test ! -s conftest.err
33139        } && test -s conftest$ac_exeext &&
33140        $as_test_x conftest$ac_exeext; then
33141   bash_cv_signal_vintage="svr3"
33142 else
33143   echo "$as_me: failed program was:" >&5
33144 sed 's/^/| /' conftest.$ac_ext >&5
33145
33146         bash_cv_signal_vintage="v7"
33147
33148 fi
33149
33150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33151       conftest$ac_exeext conftest.$ac_ext
33152
33153 fi
33154
33155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33156       conftest$ac_exeext conftest.$ac_ext
33157
33158 fi
33159
33160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33161       conftest$ac_exeext conftest.$ac_ext
33162
33163 fi
33164
33165   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33166 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33167   if test "$bash_cv_signal_vintage" = "posix"; then
33168     cat >>confdefs.h <<\_ACEOF
33169 #define HAVE_POSIX_SIGNALS 1
33170 _ACEOF
33171
33172   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33173     cat >>confdefs.h <<\_ACEOF
33174 #define HAVE_BSD_SIGNALS 1
33175 _ACEOF
33176
33177   elif test "$bash_cv_signal_vintage" = "svr3"; then
33178     cat >>confdefs.h <<\_ACEOF
33179 #define HAVE_USG_SIGHOLD 1
33180 _ACEOF
33181
33182   fi
33183
33184 { echo "$as_me:$LINENO: checking for mode_t" >&5
33185 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33186 if test "${ac_cv_type_mode_t+set}" = set; then
33187   echo $ECHO_N "(cached) $ECHO_C" >&6
33188 else
33189   cat >conftest.$ac_ext <<_ACEOF
33190 /* confdefs.h.  */
33191 _ACEOF
33192 cat confdefs.h >>conftest.$ac_ext
33193 cat >>conftest.$ac_ext <<_ACEOF
33194 /* end confdefs.h.  */
33195 $ac_includes_default
33196 typedef mode_t ac__type_new_;
33197 int
33198 main ()
33199 {
33200 if ((ac__type_new_ *) 0)
33201   return 0;
33202 if (sizeof (ac__type_new_))
33203   return 0;
33204   ;
33205   return 0;
33206 }
33207 _ACEOF
33208 rm -f conftest.$ac_objext
33209 if { (ac_try="$ac_compile"
33210 case "(($ac_try" in
33211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33212   *) ac_try_echo=$ac_try;;
33213 esac
33214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33215   (eval "$ac_compile") 2>conftest.er1
33216   ac_status=$?
33217   grep -v '^ *+' conftest.er1 >conftest.err
33218   rm -f conftest.er1
33219   cat conftest.err >&5
33220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221   (exit $ac_status); } && {
33222          test -z "$ac_c_werror_flag" ||
33223          test ! -s conftest.err
33224        } && test -s conftest.$ac_objext; then
33225   ac_cv_type_mode_t=yes
33226 else
33227   echo "$as_me: failed program was:" >&5
33228 sed 's/^/| /' conftest.$ac_ext >&5
33229
33230         ac_cv_type_mode_t=no
33231 fi
33232
33233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33234 fi
33235 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33236 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33237 if test $ac_cv_type_mode_t = yes; then
33238   :
33239 else
33240
33241 cat >>confdefs.h <<_ACEOF
33242 #define mode_t int
33243 _ACEOF
33244
33245 fi
33246
33247 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33248 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33249 if test "${ac_cv_type_uid_t+set}" = set; then
33250   echo $ECHO_N "(cached) $ECHO_C" >&6
33251 else
33252   cat >conftest.$ac_ext <<_ACEOF
33253 /* confdefs.h.  */
33254 _ACEOF
33255 cat confdefs.h >>conftest.$ac_ext
33256 cat >>conftest.$ac_ext <<_ACEOF
33257 /* end confdefs.h.  */
33258 #include <sys/types.h>
33259
33260 _ACEOF
33261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33262   $EGREP "uid_t" >/dev/null 2>&1; then
33263   ac_cv_type_uid_t=yes
33264 else
33265   ac_cv_type_uid_t=no
33266 fi
33267 rm -f conftest*
33268
33269 fi
33270 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33271 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33272 if test $ac_cv_type_uid_t = no; then
33273
33274 cat >>confdefs.h <<\_ACEOF
33275 #define uid_t int
33276 _ACEOF
33277
33278
33279 cat >>confdefs.h <<\_ACEOF
33280 #define gid_t int
33281 _ACEOF
33282
33283 fi
33284
33285 { echo "$as_me:$LINENO: checking for size_t" >&5
33286 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33287 if test "${ac_cv_type_size_t+set}" = set; then
33288   echo $ECHO_N "(cached) $ECHO_C" >&6
33289 else
33290   cat >conftest.$ac_ext <<_ACEOF
33291 /* confdefs.h.  */
33292 _ACEOF
33293 cat confdefs.h >>conftest.$ac_ext
33294 cat >>conftest.$ac_ext <<_ACEOF
33295 /* end confdefs.h.  */
33296 $ac_includes_default
33297 typedef size_t ac__type_new_;
33298 int
33299 main ()
33300 {
33301 if ((ac__type_new_ *) 0)
33302   return 0;
33303 if (sizeof (ac__type_new_))
33304   return 0;
33305   ;
33306   return 0;
33307 }
33308 _ACEOF
33309 rm -f conftest.$ac_objext
33310 if { (ac_try="$ac_compile"
33311 case "(($ac_try" in
33312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33313   *) ac_try_echo=$ac_try;;
33314 esac
33315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33316   (eval "$ac_compile") 2>conftest.er1
33317   ac_status=$?
33318   grep -v '^ *+' conftest.er1 >conftest.err
33319   rm -f conftest.er1
33320   cat conftest.err >&5
33321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322   (exit $ac_status); } && {
33323          test -z "$ac_c_werror_flag" ||
33324          test ! -s conftest.err
33325        } && test -s conftest.$ac_objext; then
33326   ac_cv_type_size_t=yes
33327 else
33328   echo "$as_me: failed program was:" >&5
33329 sed 's/^/| /' conftest.$ac_ext >&5
33330
33331         ac_cv_type_size_t=no
33332 fi
33333
33334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33335 fi
33336 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33337 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33338 if test $ac_cv_type_size_t = yes; then
33339   :
33340 else
33341
33342 cat >>confdefs.h <<_ACEOF
33343 #define size_t unsigned int
33344 _ACEOF
33345
33346 fi
33347
33348 { echo "$as_me:$LINENO: checking for pid_t" >&5
33349 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33350 if test "${ac_cv_type_pid_t+set}" = set; then
33351   echo $ECHO_N "(cached) $ECHO_C" >&6
33352 else
33353   cat >conftest.$ac_ext <<_ACEOF
33354 /* confdefs.h.  */
33355 _ACEOF
33356 cat confdefs.h >>conftest.$ac_ext
33357 cat >>conftest.$ac_ext <<_ACEOF
33358 /* end confdefs.h.  */
33359 $ac_includes_default
33360 typedef pid_t ac__type_new_;
33361 int
33362 main ()
33363 {
33364 if ((ac__type_new_ *) 0)
33365   return 0;
33366 if (sizeof (ac__type_new_))
33367   return 0;
33368   ;
33369   return 0;
33370 }
33371 _ACEOF
33372 rm -f conftest.$ac_objext
33373 if { (ac_try="$ac_compile"
33374 case "(($ac_try" in
33375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33376   *) ac_try_echo=$ac_try;;
33377 esac
33378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33379   (eval "$ac_compile") 2>conftest.er1
33380   ac_status=$?
33381   grep -v '^ *+' conftest.er1 >conftest.err
33382   rm -f conftest.er1
33383   cat conftest.err >&5
33384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385   (exit $ac_status); } && {
33386          test -z "$ac_c_werror_flag" ||
33387          test ! -s conftest.err
33388        } && test -s conftest.$ac_objext; then
33389   ac_cv_type_pid_t=yes
33390 else
33391   echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.$ac_ext >&5
33393
33394         ac_cv_type_pid_t=no
33395 fi
33396
33397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33398 fi
33399 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33400 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33401 if test $ac_cv_type_pid_t = yes; then
33402   :
33403 else
33404
33405 cat >>confdefs.h <<_ACEOF
33406 #define pid_t int
33407 _ACEOF
33408
33409 fi
33410
33411 { echo "$as_me:$LINENO: checking for off_t" >&5
33412 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33413 if test "${ac_cv_type_off_t+set}" = set; then
33414   echo $ECHO_N "(cached) $ECHO_C" >&6
33415 else
33416   cat >conftest.$ac_ext <<_ACEOF
33417 /* confdefs.h.  */
33418 _ACEOF
33419 cat confdefs.h >>conftest.$ac_ext
33420 cat >>conftest.$ac_ext <<_ACEOF
33421 /* end confdefs.h.  */
33422 $ac_includes_default
33423 typedef off_t ac__type_new_;
33424 int
33425 main ()
33426 {
33427 if ((ac__type_new_ *) 0)
33428   return 0;
33429 if (sizeof (ac__type_new_))
33430   return 0;
33431   ;
33432   return 0;
33433 }
33434 _ACEOF
33435 rm -f conftest.$ac_objext
33436 if { (ac_try="$ac_compile"
33437 case "(($ac_try" in
33438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33439   *) ac_try_echo=$ac_try;;
33440 esac
33441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33442   (eval "$ac_compile") 2>conftest.er1
33443   ac_status=$?
33444   grep -v '^ *+' conftest.er1 >conftest.err
33445   rm -f conftest.er1
33446   cat conftest.err >&5
33447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33448   (exit $ac_status); } && {
33449          test -z "$ac_c_werror_flag" ||
33450          test ! -s conftest.err
33451        } && test -s conftest.$ac_objext; then
33452   ac_cv_type_off_t=yes
33453 else
33454   echo "$as_me: failed program was:" >&5
33455 sed 's/^/| /' conftest.$ac_ext >&5
33456
33457         ac_cv_type_off_t=no
33458 fi
33459
33460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33461 fi
33462 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33463 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33464 if test $ac_cv_type_off_t = yes; then
33465   :
33466 else
33467
33468 cat >>confdefs.h <<_ACEOF
33469 #define off_t long int
33470 _ACEOF
33471
33472 fi
33473
33474
33475   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33476 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33477 if test "${ac_cv_type_intptr_t+set}" = set; then
33478   echo $ECHO_N "(cached) $ECHO_C" >&6
33479 else
33480   cat >conftest.$ac_ext <<_ACEOF
33481 /* confdefs.h.  */
33482 _ACEOF
33483 cat confdefs.h >>conftest.$ac_ext
33484 cat >>conftest.$ac_ext <<_ACEOF
33485 /* end confdefs.h.  */
33486 $ac_includes_default
33487 typedef intptr_t ac__type_new_;
33488 int
33489 main ()
33490 {
33491 if ((ac__type_new_ *) 0)
33492   return 0;
33493 if (sizeof (ac__type_new_))
33494   return 0;
33495   ;
33496   return 0;
33497 }
33498 _ACEOF
33499 rm -f conftest.$ac_objext
33500 if { (ac_try="$ac_compile"
33501 case "(($ac_try" in
33502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33503   *) ac_try_echo=$ac_try;;
33504 esac
33505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33506   (eval "$ac_compile") 2>conftest.er1
33507   ac_status=$?
33508   grep -v '^ *+' conftest.er1 >conftest.err
33509   rm -f conftest.er1
33510   cat conftest.err >&5
33511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33512   (exit $ac_status); } && {
33513          test -z "$ac_c_werror_flag" ||
33514          test ! -s conftest.err
33515        } && test -s conftest.$ac_objext; then
33516   ac_cv_type_intptr_t=yes
33517 else
33518   echo "$as_me: failed program was:" >&5
33519 sed 's/^/| /' conftest.$ac_ext >&5
33520
33521         ac_cv_type_intptr_t=no
33522 fi
33523
33524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33525 fi
33526 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33527 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33528 if test $ac_cv_type_intptr_t = yes; then
33529
33530 cat >>confdefs.h <<\_ACEOF
33531 #define HAVE_INTPTR_T 1
33532 _ACEOF
33533
33534 else
33535   for ac_type in 'int' 'long int' 'long long int'; do
33536        cat >conftest.$ac_ext <<_ACEOF
33537 /* confdefs.h.  */
33538 _ACEOF
33539 cat confdefs.h >>conftest.$ac_ext
33540 cat >>conftest.$ac_ext <<_ACEOF
33541 /* end confdefs.h.  */
33542 $ac_includes_default
33543 int
33544 main ()
33545 {
33546 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33547 test_array [0] = 0
33548
33549   ;
33550   return 0;
33551 }
33552 _ACEOF
33553 rm -f conftest.$ac_objext
33554 if { (ac_try="$ac_compile"
33555 case "(($ac_try" in
33556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33557   *) ac_try_echo=$ac_try;;
33558 esac
33559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33560   (eval "$ac_compile") 2>conftest.er1
33561   ac_status=$?
33562   grep -v '^ *+' conftest.er1 >conftest.err
33563   rm -f conftest.er1
33564   cat conftest.err >&5
33565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566   (exit $ac_status); } && {
33567          test -z "$ac_c_werror_flag" ||
33568          test ! -s conftest.err
33569        } && test -s conftest.$ac_objext; then
33570
33571 cat >>confdefs.h <<_ACEOF
33572 #define intptr_t $ac_type
33573 _ACEOF
33574
33575           ac_type=
33576 else
33577   echo "$as_me: failed program was:" >&5
33578 sed 's/^/| /' conftest.$ac_ext >&5
33579
33580
33581 fi
33582
33583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33584        test -z "$ac_type" && break
33585      done
33586 fi
33587
33588
33589
33590   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33591 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33592 if test "${ac_cv_type_uintptr_t+set}" = set; then
33593   echo $ECHO_N "(cached) $ECHO_C" >&6
33594 else
33595   cat >conftest.$ac_ext <<_ACEOF
33596 /* confdefs.h.  */
33597 _ACEOF
33598 cat confdefs.h >>conftest.$ac_ext
33599 cat >>conftest.$ac_ext <<_ACEOF
33600 /* end confdefs.h.  */
33601 $ac_includes_default
33602 typedef uintptr_t ac__type_new_;
33603 int
33604 main ()
33605 {
33606 if ((ac__type_new_ *) 0)
33607   return 0;
33608 if (sizeof (ac__type_new_))
33609   return 0;
33610   ;
33611   return 0;
33612 }
33613 _ACEOF
33614 rm -f conftest.$ac_objext
33615 if { (ac_try="$ac_compile"
33616 case "(($ac_try" in
33617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33618   *) ac_try_echo=$ac_try;;
33619 esac
33620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33621   (eval "$ac_compile") 2>conftest.er1
33622   ac_status=$?
33623   grep -v '^ *+' conftest.er1 >conftest.err
33624   rm -f conftest.er1
33625   cat conftest.err >&5
33626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627   (exit $ac_status); } && {
33628          test -z "$ac_c_werror_flag" ||
33629          test ! -s conftest.err
33630        } && test -s conftest.$ac_objext; then
33631   ac_cv_type_uintptr_t=yes
33632 else
33633   echo "$as_me: failed program was:" >&5
33634 sed 's/^/| /' conftest.$ac_ext >&5
33635
33636         ac_cv_type_uintptr_t=no
33637 fi
33638
33639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33640 fi
33641 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33642 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33643 if test $ac_cv_type_uintptr_t = yes; then
33644
33645 cat >>confdefs.h <<\_ACEOF
33646 #define HAVE_UINTPTR_T 1
33647 _ACEOF
33648
33649 else
33650   for ac_type in 'unsigned int' 'unsigned long int' \
33651         'unsigned long long int'; do
33652        cat >conftest.$ac_ext <<_ACEOF
33653 /* confdefs.h.  */
33654 _ACEOF
33655 cat confdefs.h >>conftest.$ac_ext
33656 cat >>conftest.$ac_ext <<_ACEOF
33657 /* end confdefs.h.  */
33658 $ac_includes_default
33659 int
33660 main ()
33661 {
33662 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33663 test_array [0] = 0
33664
33665   ;
33666   return 0;
33667 }
33668 _ACEOF
33669 rm -f conftest.$ac_objext
33670 if { (ac_try="$ac_compile"
33671 case "(($ac_try" in
33672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33673   *) ac_try_echo=$ac_try;;
33674 esac
33675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33676   (eval "$ac_compile") 2>conftest.er1
33677   ac_status=$?
33678   grep -v '^ *+' conftest.er1 >conftest.err
33679   rm -f conftest.er1
33680   cat conftest.err >&5
33681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682   (exit $ac_status); } && {
33683          test -z "$ac_c_werror_flag" ||
33684          test ! -s conftest.err
33685        } && test -s conftest.$ac_objext; then
33686
33687 cat >>confdefs.h <<_ACEOF
33688 #define uintptr_t $ac_type
33689 _ACEOF
33690
33691           ac_type=
33692 else
33693   echo "$as_me: failed program was:" >&5
33694 sed 's/^/| /' conftest.$ac_ext >&5
33695
33696
33697 fi
33698
33699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33700        test -z "$ac_type" && break
33701      done
33702 fi
33703
33704
33705 { echo "$as_me:$LINENO: checking for ino_t" >&5
33706 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33707 if test "${ac_cv_type_ino_t+set}" = set; then
33708   echo $ECHO_N "(cached) $ECHO_C" >&6
33709 else
33710   cat >conftest.$ac_ext <<_ACEOF
33711 /* confdefs.h.  */
33712 _ACEOF
33713 cat confdefs.h >>conftest.$ac_ext
33714 cat >>conftest.$ac_ext <<_ACEOF
33715 /* end confdefs.h.  */
33716 $ac_includes_default
33717 typedef ino_t ac__type_new_;
33718 int
33719 main ()
33720 {
33721 if ((ac__type_new_ *) 0)
33722   return 0;
33723 if (sizeof (ac__type_new_))
33724   return 0;
33725   ;
33726   return 0;
33727 }
33728 _ACEOF
33729 rm -f conftest.$ac_objext
33730 if { (ac_try="$ac_compile"
33731 case "(($ac_try" in
33732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33733   *) ac_try_echo=$ac_try;;
33734 esac
33735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33736   (eval "$ac_compile") 2>conftest.er1
33737   ac_status=$?
33738   grep -v '^ *+' conftest.er1 >conftest.err
33739   rm -f conftest.er1
33740   cat conftest.err >&5
33741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742   (exit $ac_status); } && {
33743          test -z "$ac_c_werror_flag" ||
33744          test ! -s conftest.err
33745        } && test -s conftest.$ac_objext; then
33746   ac_cv_type_ino_t=yes
33747 else
33748   echo "$as_me: failed program was:" >&5
33749 sed 's/^/| /' conftest.$ac_ext >&5
33750
33751         ac_cv_type_ino_t=no
33752 fi
33753
33754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33755 fi
33756 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33757 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33758 if test $ac_cv_type_ino_t = yes; then
33759   :
33760 else
33761
33762 cat >>confdefs.h <<_ACEOF
33763 #define ino_t unsigned long
33764 _ACEOF
33765
33766 fi
33767
33768 { echo "$as_me:$LINENO: checking for dev_t" >&5
33769 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33770 if test "${ac_cv_type_dev_t+set}" = set; then
33771   echo $ECHO_N "(cached) $ECHO_C" >&6
33772 else
33773   cat >conftest.$ac_ext <<_ACEOF
33774 /* confdefs.h.  */
33775 _ACEOF
33776 cat confdefs.h >>conftest.$ac_ext
33777 cat >>conftest.$ac_ext <<_ACEOF
33778 /* end confdefs.h.  */
33779 $ac_includes_default
33780 typedef dev_t ac__type_new_;
33781 int
33782 main ()
33783 {
33784 if ((ac__type_new_ *) 0)
33785   return 0;
33786 if (sizeof (ac__type_new_))
33787   return 0;
33788   ;
33789   return 0;
33790 }
33791 _ACEOF
33792 rm -f conftest.$ac_objext
33793 if { (ac_try="$ac_compile"
33794 case "(($ac_try" in
33795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33796   *) ac_try_echo=$ac_try;;
33797 esac
33798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33799   (eval "$ac_compile") 2>conftest.er1
33800   ac_status=$?
33801   grep -v '^ *+' conftest.er1 >conftest.err
33802   rm -f conftest.er1
33803   cat conftest.err >&5
33804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805   (exit $ac_status); } && {
33806          test -z "$ac_c_werror_flag" ||
33807          test ! -s conftest.err
33808        } && test -s conftest.$ac_objext; then
33809   ac_cv_type_dev_t=yes
33810 else
33811   echo "$as_me: failed program was:" >&5
33812 sed 's/^/| /' conftest.$ac_ext >&5
33813
33814         ac_cv_type_dev_t=no
33815 fi
33816
33817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33818 fi
33819 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33820 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33821 if test $ac_cv_type_dev_t = yes; then
33822   :
33823 else
33824
33825 cat >>confdefs.h <<_ACEOF
33826 #define dev_t unsigned long
33827 _ACEOF
33828
33829 fi
33830
33831 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33832 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33833 if test "${ac_cv_type_daddr_t+set}" = set; then
33834   echo $ECHO_N "(cached) $ECHO_C" >&6
33835 else
33836   cat >conftest.$ac_ext <<_ACEOF
33837 /* confdefs.h.  */
33838 _ACEOF
33839 cat confdefs.h >>conftest.$ac_ext
33840 cat >>conftest.$ac_ext <<_ACEOF
33841 /* end confdefs.h.  */
33842 $ac_includes_default
33843 typedef daddr_t ac__type_new_;
33844 int
33845 main ()
33846 {
33847 if ((ac__type_new_ *) 0)
33848   return 0;
33849 if (sizeof (ac__type_new_))
33850   return 0;
33851   ;
33852   return 0;
33853 }
33854 _ACEOF
33855 rm -f conftest.$ac_objext
33856 if { (ac_try="$ac_compile"
33857 case "(($ac_try" in
33858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33859   *) ac_try_echo=$ac_try;;
33860 esac
33861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33862   (eval "$ac_compile") 2>conftest.er1
33863   ac_status=$?
33864   grep -v '^ *+' conftest.er1 >conftest.err
33865   rm -f conftest.er1
33866   cat conftest.err >&5
33867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868   (exit $ac_status); } && {
33869          test -z "$ac_c_werror_flag" ||
33870          test ! -s conftest.err
33871        } && test -s conftest.$ac_objext; then
33872   ac_cv_type_daddr_t=yes
33873 else
33874   echo "$as_me: failed program was:" >&5
33875 sed 's/^/| /' conftest.$ac_ext >&5
33876
33877         ac_cv_type_daddr_t=no
33878 fi
33879
33880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33881 fi
33882 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33883 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33884 if test $ac_cv_type_daddr_t = yes; then
33885   :
33886 else
33887
33888 cat >>confdefs.h <<_ACEOF
33889 #define daddr_t long
33890 _ACEOF
33891
33892 fi
33893
33894 { echo "$as_me:$LINENO: checking for major_t" >&5
33895 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33896 if test "${ac_cv_type_major_t+set}" = set; then
33897   echo $ECHO_N "(cached) $ECHO_C" >&6
33898 else
33899   cat >conftest.$ac_ext <<_ACEOF
33900 /* confdefs.h.  */
33901 _ACEOF
33902 cat confdefs.h >>conftest.$ac_ext
33903 cat >>conftest.$ac_ext <<_ACEOF
33904 /* end confdefs.h.  */
33905 $ac_includes_default
33906 typedef major_t ac__type_new_;
33907 int
33908 main ()
33909 {
33910 if ((ac__type_new_ *) 0)
33911   return 0;
33912 if (sizeof (ac__type_new_))
33913   return 0;
33914   ;
33915   return 0;
33916 }
33917 _ACEOF
33918 rm -f conftest.$ac_objext
33919 if { (ac_try="$ac_compile"
33920 case "(($ac_try" in
33921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33922   *) ac_try_echo=$ac_try;;
33923 esac
33924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33925   (eval "$ac_compile") 2>conftest.er1
33926   ac_status=$?
33927   grep -v '^ *+' conftest.er1 >conftest.err
33928   rm -f conftest.er1
33929   cat conftest.err >&5
33930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931   (exit $ac_status); } && {
33932          test -z "$ac_c_werror_flag" ||
33933          test ! -s conftest.err
33934        } && test -s conftest.$ac_objext; then
33935   ac_cv_type_major_t=yes
33936 else
33937   echo "$as_me: failed program was:" >&5
33938 sed 's/^/| /' conftest.$ac_ext >&5
33939
33940         ac_cv_type_major_t=no
33941 fi
33942
33943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33944 fi
33945 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33946 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33947 if test $ac_cv_type_major_t = yes; then
33948   :
33949 else
33950
33951 cat >>confdefs.h <<_ACEOF
33952 #define major_t int
33953 _ACEOF
33954
33955 fi
33956
33957 { echo "$as_me:$LINENO: checking for minor_t" >&5
33958 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33959 if test "${ac_cv_type_minor_t+set}" = set; then
33960   echo $ECHO_N "(cached) $ECHO_C" >&6
33961 else
33962   cat >conftest.$ac_ext <<_ACEOF
33963 /* confdefs.h.  */
33964 _ACEOF
33965 cat confdefs.h >>conftest.$ac_ext
33966 cat >>conftest.$ac_ext <<_ACEOF
33967 /* end confdefs.h.  */
33968 $ac_includes_default
33969 typedef minor_t ac__type_new_;
33970 int
33971 main ()
33972 {
33973 if ((ac__type_new_ *) 0)
33974   return 0;
33975 if (sizeof (ac__type_new_))
33976   return 0;
33977   ;
33978   return 0;
33979 }
33980 _ACEOF
33981 rm -f conftest.$ac_objext
33982 if { (ac_try="$ac_compile"
33983 case "(($ac_try" in
33984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33985   *) ac_try_echo=$ac_try;;
33986 esac
33987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33988   (eval "$ac_compile") 2>conftest.er1
33989   ac_status=$?
33990   grep -v '^ *+' conftest.er1 >conftest.err
33991   rm -f conftest.er1
33992   cat conftest.err >&5
33993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33994   (exit $ac_status); } && {
33995          test -z "$ac_c_werror_flag" ||
33996          test ! -s conftest.err
33997        } && test -s conftest.$ac_objext; then
33998   ac_cv_type_minor_t=yes
33999 else
34000   echo "$as_me: failed program was:" >&5
34001 sed 's/^/| /' conftest.$ac_ext >&5
34002
34003         ac_cv_type_minor_t=no
34004 fi
34005
34006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34007 fi
34008 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34009 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34010 if test $ac_cv_type_minor_t = yes; then
34011   :
34012 else
34013
34014 cat >>confdefs.h <<_ACEOF
34015 #define minor_t int
34016 _ACEOF
34017
34018 fi
34019
34020 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34021 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34022 if test "${ac_cv_type_ssize_t+set}" = set; then
34023   echo $ECHO_N "(cached) $ECHO_C" >&6
34024 else
34025   cat >conftest.$ac_ext <<_ACEOF
34026 /* confdefs.h.  */
34027 _ACEOF
34028 cat confdefs.h >>conftest.$ac_ext
34029 cat >>conftest.$ac_ext <<_ACEOF
34030 /* end confdefs.h.  */
34031 $ac_includes_default
34032 typedef ssize_t ac__type_new_;
34033 int
34034 main ()
34035 {
34036 if ((ac__type_new_ *) 0)
34037   return 0;
34038 if (sizeof (ac__type_new_))
34039   return 0;
34040   ;
34041   return 0;
34042 }
34043 _ACEOF
34044 rm -f conftest.$ac_objext
34045 if { (ac_try="$ac_compile"
34046 case "(($ac_try" in
34047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34048   *) ac_try_echo=$ac_try;;
34049 esac
34050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34051   (eval "$ac_compile") 2>conftest.er1
34052   ac_status=$?
34053   grep -v '^ *+' conftest.er1 >conftest.err
34054   rm -f conftest.er1
34055   cat conftest.err >&5
34056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057   (exit $ac_status); } && {
34058          test -z "$ac_c_werror_flag" ||
34059          test ! -s conftest.err
34060        } && test -s conftest.$ac_objext; then
34061   ac_cv_type_ssize_t=yes
34062 else
34063   echo "$as_me: failed program was:" >&5
34064 sed 's/^/| /' conftest.$ac_ext >&5
34065
34066         ac_cv_type_ssize_t=no
34067 fi
34068
34069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34070 fi
34071 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34072 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34073 if test $ac_cv_type_ssize_t = yes; then
34074   :
34075 else
34076
34077 cat >>confdefs.h <<_ACEOF
34078 #define ssize_t int
34079 _ACEOF
34080
34081 fi
34082
34083 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34084 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34085 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34086   echo $ECHO_N "(cached) $ECHO_C" >&6
34087 else
34088   cat >conftest.$ac_ext <<_ACEOF
34089 /* confdefs.h.  */
34090 _ACEOF
34091 cat confdefs.h >>conftest.$ac_ext
34092 cat >>conftest.$ac_ext <<_ACEOF
34093 /* end confdefs.h.  */
34094 $ac_includes_default
34095 int
34096 main ()
34097 {
34098 static struct stat ac_aggr;
34099 if (ac_aggr.st_blocks)
34100 return 0;
34101   ;
34102   return 0;
34103 }
34104 _ACEOF
34105 rm -f conftest.$ac_objext
34106 if { (ac_try="$ac_compile"
34107 case "(($ac_try" in
34108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34109   *) ac_try_echo=$ac_try;;
34110 esac
34111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34112   (eval "$ac_compile") 2>conftest.er1
34113   ac_status=$?
34114   grep -v '^ *+' conftest.er1 >conftest.err
34115   rm -f conftest.er1
34116   cat conftest.err >&5
34117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118   (exit $ac_status); } && {
34119          test -z "$ac_c_werror_flag" ||
34120          test ! -s conftest.err
34121        } && test -s conftest.$ac_objext; then
34122   ac_cv_member_struct_stat_st_blocks=yes
34123 else
34124   echo "$as_me: failed program was:" >&5
34125 sed 's/^/| /' conftest.$ac_ext >&5
34126
34127         cat >conftest.$ac_ext <<_ACEOF
34128 /* confdefs.h.  */
34129 _ACEOF
34130 cat confdefs.h >>conftest.$ac_ext
34131 cat >>conftest.$ac_ext <<_ACEOF
34132 /* end confdefs.h.  */
34133 $ac_includes_default
34134 int
34135 main ()
34136 {
34137 static struct stat ac_aggr;
34138 if (sizeof ac_aggr.st_blocks)
34139 return 0;
34140   ;
34141   return 0;
34142 }
34143 _ACEOF
34144 rm -f conftest.$ac_objext
34145 if { (ac_try="$ac_compile"
34146 case "(($ac_try" in
34147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34148   *) ac_try_echo=$ac_try;;
34149 esac
34150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34151   (eval "$ac_compile") 2>conftest.er1
34152   ac_status=$?
34153   grep -v '^ *+' conftest.er1 >conftest.err
34154   rm -f conftest.er1
34155   cat conftest.err >&5
34156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157   (exit $ac_status); } && {
34158          test -z "$ac_c_werror_flag" ||
34159          test ! -s conftest.err
34160        } && test -s conftest.$ac_objext; then
34161   ac_cv_member_struct_stat_st_blocks=yes
34162 else
34163   echo "$as_me: failed program was:" >&5
34164 sed 's/^/| /' conftest.$ac_ext >&5
34165
34166         ac_cv_member_struct_stat_st_blocks=no
34167 fi
34168
34169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34170 fi
34171
34172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34173 fi
34174 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34175 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34176 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34177
34178 cat >>confdefs.h <<_ACEOF
34179 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34180 _ACEOF
34181
34182
34183 cat >>confdefs.h <<\_ACEOF
34184 #define HAVE_ST_BLOCKS 1
34185 _ACEOF
34186
34187 else
34188   case " $LIBOBJS " in
34189   *" fileblocks.$ac_objext "* ) ;;
34190   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34191  ;;
34192 esac
34193
34194 fi
34195
34196
34197 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34198 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34199 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34200   echo $ECHO_N "(cached) $ECHO_C" >&6
34201 else
34202   cat >conftest.$ac_ext <<_ACEOF
34203 /* confdefs.h.  */
34204 _ACEOF
34205 cat confdefs.h >>conftest.$ac_ext
34206 cat >>conftest.$ac_ext <<_ACEOF
34207 /* end confdefs.h.  */
34208 $ac_includes_default
34209 int
34210 main ()
34211 {
34212 static struct stat ac_aggr;
34213 if (ac_aggr.st_rdev)
34214 return 0;
34215   ;
34216   return 0;
34217 }
34218 _ACEOF
34219 rm -f conftest.$ac_objext
34220 if { (ac_try="$ac_compile"
34221 case "(($ac_try" in
34222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34223   *) ac_try_echo=$ac_try;;
34224 esac
34225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34226   (eval "$ac_compile") 2>conftest.er1
34227   ac_status=$?
34228   grep -v '^ *+' conftest.er1 >conftest.err
34229   rm -f conftest.er1
34230   cat conftest.err >&5
34231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34232   (exit $ac_status); } && {
34233          test -z "$ac_c_werror_flag" ||
34234          test ! -s conftest.err
34235        } && test -s conftest.$ac_objext; then
34236   ac_cv_member_struct_stat_st_rdev=yes
34237 else
34238   echo "$as_me: failed program was:" >&5
34239 sed 's/^/| /' conftest.$ac_ext >&5
34240
34241         cat >conftest.$ac_ext <<_ACEOF
34242 /* confdefs.h.  */
34243 _ACEOF
34244 cat confdefs.h >>conftest.$ac_ext
34245 cat >>conftest.$ac_ext <<_ACEOF
34246 /* end confdefs.h.  */
34247 $ac_includes_default
34248 int
34249 main ()
34250 {
34251 static struct stat ac_aggr;
34252 if (sizeof ac_aggr.st_rdev)
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_member_struct_stat_st_rdev=yes
34276 else
34277   echo "$as_me: failed program was:" >&5
34278 sed 's/^/| /' conftest.$ac_ext >&5
34279
34280         ac_cv_member_struct_stat_st_rdev=no
34281 fi
34282
34283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34284 fi
34285
34286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34287 fi
34288 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34289 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34290 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34291
34292 cat >>confdefs.h <<_ACEOF
34293 #define HAVE_STRUCT_STAT_ST_RDEV 1
34294 _ACEOF
34295
34296
34297 cat >>confdefs.h <<\_ACEOF
34298 #define HAVE_ST_RDEV 1
34299 _ACEOF
34300
34301 fi
34302
34303
34304 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34305 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34306 if test "${ac_cv_struct_tm+set}" = set; then
34307   echo $ECHO_N "(cached) $ECHO_C" >&6
34308 else
34309   cat >conftest.$ac_ext <<_ACEOF
34310 /* confdefs.h.  */
34311 _ACEOF
34312 cat confdefs.h >>conftest.$ac_ext
34313 cat >>conftest.$ac_ext <<_ACEOF
34314 /* end confdefs.h.  */
34315 #include <sys/types.h>
34316 #include <time.h>
34317
34318 int
34319 main ()
34320 {
34321 struct tm tm;
34322                                      int *p = &tm.tm_sec;
34323                                      return !p;
34324   ;
34325   return 0;
34326 }
34327 _ACEOF
34328 rm -f conftest.$ac_objext
34329 if { (ac_try="$ac_compile"
34330 case "(($ac_try" in
34331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34332   *) ac_try_echo=$ac_try;;
34333 esac
34334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34335   (eval "$ac_compile") 2>conftest.er1
34336   ac_status=$?
34337   grep -v '^ *+' conftest.er1 >conftest.err
34338   rm -f conftest.er1
34339   cat conftest.err >&5
34340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341   (exit $ac_status); } && {
34342          test -z "$ac_c_werror_flag" ||
34343          test ! -s conftest.err
34344        } && test -s conftest.$ac_objext; then
34345   ac_cv_struct_tm=time.h
34346 else
34347   echo "$as_me: failed program was:" >&5
34348 sed 's/^/| /' conftest.$ac_ext >&5
34349
34350         ac_cv_struct_tm=sys/time.h
34351 fi
34352
34353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34354 fi
34355 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34356 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34357 if test $ac_cv_struct_tm = sys/time.h; then
34358
34359 cat >>confdefs.h <<\_ACEOF
34360 #define TM_IN_SYS_TIME 1
34361 _ACEOF
34362
34363 fi
34364
34365 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34366 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34367 if test "${ac_cv_c_const+set}" = set; then
34368   echo $ECHO_N "(cached) $ECHO_C" >&6
34369 else
34370   cat >conftest.$ac_ext <<_ACEOF
34371 /* confdefs.h.  */
34372 _ACEOF
34373 cat confdefs.h >>conftest.$ac_ext
34374 cat >>conftest.$ac_ext <<_ACEOF
34375 /* end confdefs.h.  */
34376
34377 int
34378 main ()
34379 {
34380 /* FIXME: Include the comments suggested by Paul. */
34381 #ifndef __cplusplus
34382   /* Ultrix mips cc rejects this.  */
34383   typedef int charset[2];
34384   const charset cs;
34385   /* SunOS 4.1.1 cc rejects this.  */
34386   char const *const *pcpcc;
34387   char **ppc;
34388   /* NEC SVR4.0.2 mips cc rejects this.  */
34389   struct point {int x, y;};
34390   static struct point const zero = {0,0};
34391   /* AIX XL C 1.02.0.0 rejects this.
34392      It does not let you subtract one const X* pointer from another in
34393      an arm of an if-expression whose if-part is not a constant
34394      expression */
34395   const char *g = "string";
34396   pcpcc = &g + (g ? g-g : 0);
34397   /* HPUX 7.0 cc rejects these. */
34398   ++pcpcc;
34399   ppc = (char**) pcpcc;
34400   pcpcc = (char const *const *) ppc;
34401   { /* SCO 3.2v4 cc rejects this.  */
34402     char *t;
34403     char const *s = 0 ? (char *) 0 : (char const *) 0;
34404
34405     *t++ = 0;
34406     if (s) return 0;
34407   }
34408   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34409     int x[] = {25, 17};
34410     const int *foo = &x[0];
34411     ++foo;
34412   }
34413   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34414     typedef const int *iptr;
34415     iptr p = 0;
34416     ++p;
34417   }
34418   { /* AIX XL C 1.02.0.0 rejects this saying
34419        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34420     struct s { int j; const int *ap[3]; };
34421     struct s *b; b->j = 5;
34422   }
34423   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34424     const int foo = 10;
34425     if (!foo) return 0;
34426   }
34427   return !cs[0] && !zero.x;
34428 #endif
34429
34430   ;
34431   return 0;
34432 }
34433 _ACEOF
34434 rm -f conftest.$ac_objext
34435 if { (ac_try="$ac_compile"
34436 case "(($ac_try" in
34437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34438   *) ac_try_echo=$ac_try;;
34439 esac
34440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34441   (eval "$ac_compile") 2>conftest.er1
34442   ac_status=$?
34443   grep -v '^ *+' conftest.er1 >conftest.err
34444   rm -f conftest.er1
34445   cat conftest.err >&5
34446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34447   (exit $ac_status); } && {
34448          test -z "$ac_c_werror_flag" ||
34449          test ! -s conftest.err
34450        } && test -s conftest.$ac_objext; then
34451   ac_cv_c_const=yes
34452 else
34453   echo "$as_me: failed program was:" >&5
34454 sed 's/^/| /' conftest.$ac_ext >&5
34455
34456         ac_cv_c_const=no
34457 fi
34458
34459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34460 fi
34461 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34462 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34463 if test $ac_cv_c_const = no; then
34464
34465 cat >>confdefs.h <<\_ACEOF
34466 #define const
34467 _ACEOF
34468
34469 fi
34470
34471
34472 { echo "$as_me:$LINENO: checking for char" >&5
34473 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34474 if test "${ac_cv_type_char+set}" = set; then
34475   echo $ECHO_N "(cached) $ECHO_C" >&6
34476 else
34477   cat >conftest.$ac_ext <<_ACEOF
34478 /* confdefs.h.  */
34479 _ACEOF
34480 cat confdefs.h >>conftest.$ac_ext
34481 cat >>conftest.$ac_ext <<_ACEOF
34482 /* end confdefs.h.  */
34483 $ac_includes_default
34484 typedef char ac__type_new_;
34485 int
34486 main ()
34487 {
34488 if ((ac__type_new_ *) 0)
34489   return 0;
34490 if (sizeof (ac__type_new_))
34491   return 0;
34492   ;
34493   return 0;
34494 }
34495 _ACEOF
34496 rm -f conftest.$ac_objext
34497 if { (ac_try="$ac_compile"
34498 case "(($ac_try" in
34499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34500   *) ac_try_echo=$ac_try;;
34501 esac
34502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34503   (eval "$ac_compile") 2>conftest.er1
34504   ac_status=$?
34505   grep -v '^ *+' conftest.er1 >conftest.err
34506   rm -f conftest.er1
34507   cat conftest.err >&5
34508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34509   (exit $ac_status); } && {
34510          test -z "$ac_c_werror_flag" ||
34511          test ! -s conftest.err
34512        } && test -s conftest.$ac_objext; then
34513   ac_cv_type_char=yes
34514 else
34515   echo "$as_me: failed program was:" >&5
34516 sed 's/^/| /' conftest.$ac_ext >&5
34517
34518         ac_cv_type_char=no
34519 fi
34520
34521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34522 fi
34523 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34524 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34525
34526 # The cast to long int works around a bug in the HP C Compiler
34527 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34528 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34529 # This bug is HP SR number 8606223364.
34530 { echo "$as_me:$LINENO: checking size of char" >&5
34531 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34532 if test "${ac_cv_sizeof_char+set}" = set; then
34533   echo $ECHO_N "(cached) $ECHO_C" >&6
34534 else
34535   if test "$cross_compiling" = yes; then
34536   # Depending upon the size, compute the lo and hi bounds.
34537 cat >conftest.$ac_ext <<_ACEOF
34538 /* confdefs.h.  */
34539 _ACEOF
34540 cat confdefs.h >>conftest.$ac_ext
34541 cat >>conftest.$ac_ext <<_ACEOF
34542 /* end confdefs.h.  */
34543 $ac_includes_default
34544    typedef char ac__type_sizeof_;
34545 int
34546 main ()
34547 {
34548 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34549 test_array [0] = 0
34550
34551   ;
34552   return 0;
34553 }
34554 _ACEOF
34555 rm -f conftest.$ac_objext
34556 if { (ac_try="$ac_compile"
34557 case "(($ac_try" in
34558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34559   *) ac_try_echo=$ac_try;;
34560 esac
34561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34562   (eval "$ac_compile") 2>conftest.er1
34563   ac_status=$?
34564   grep -v '^ *+' conftest.er1 >conftest.err
34565   rm -f conftest.er1
34566   cat conftest.err >&5
34567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568   (exit $ac_status); } && {
34569          test -z "$ac_c_werror_flag" ||
34570          test ! -s conftest.err
34571        } && test -s conftest.$ac_objext; then
34572   ac_lo=0 ac_mid=0
34573   while :; do
34574     cat >conftest.$ac_ext <<_ACEOF
34575 /* confdefs.h.  */
34576 _ACEOF
34577 cat confdefs.h >>conftest.$ac_ext
34578 cat >>conftest.$ac_ext <<_ACEOF
34579 /* end confdefs.h.  */
34580 $ac_includes_default
34581    typedef char ac__type_sizeof_;
34582 int
34583 main ()
34584 {
34585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34586 test_array [0] = 0
34587
34588   ;
34589   return 0;
34590 }
34591 _ACEOF
34592 rm -f conftest.$ac_objext
34593 if { (ac_try="$ac_compile"
34594 case "(($ac_try" in
34595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34596   *) ac_try_echo=$ac_try;;
34597 esac
34598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34599   (eval "$ac_compile") 2>conftest.er1
34600   ac_status=$?
34601   grep -v '^ *+' conftest.er1 >conftest.err
34602   rm -f conftest.er1
34603   cat conftest.err >&5
34604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605   (exit $ac_status); } && {
34606          test -z "$ac_c_werror_flag" ||
34607          test ! -s conftest.err
34608        } && test -s conftest.$ac_objext; then
34609   ac_hi=$ac_mid; break
34610 else
34611   echo "$as_me: failed program was:" >&5
34612 sed 's/^/| /' conftest.$ac_ext >&5
34613
34614         ac_lo=`expr $ac_mid + 1`
34615                         if test $ac_lo -le $ac_mid; then
34616                           ac_lo= ac_hi=
34617                           break
34618                         fi
34619                         ac_mid=`expr 2 '*' $ac_mid + 1`
34620 fi
34621
34622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34623   done
34624 else
34625   echo "$as_me: failed program was:" >&5
34626 sed 's/^/| /' conftest.$ac_ext >&5
34627
34628         cat >conftest.$ac_ext <<_ACEOF
34629 /* confdefs.h.  */
34630 _ACEOF
34631 cat confdefs.h >>conftest.$ac_ext
34632 cat >>conftest.$ac_ext <<_ACEOF
34633 /* end confdefs.h.  */
34634 $ac_includes_default
34635    typedef char ac__type_sizeof_;
34636 int
34637 main ()
34638 {
34639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34640 test_array [0] = 0
34641
34642   ;
34643   return 0;
34644 }
34645 _ACEOF
34646 rm -f conftest.$ac_objext
34647 if { (ac_try="$ac_compile"
34648 case "(($ac_try" in
34649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34650   *) ac_try_echo=$ac_try;;
34651 esac
34652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34653   (eval "$ac_compile") 2>conftest.er1
34654   ac_status=$?
34655   grep -v '^ *+' conftest.er1 >conftest.err
34656   rm -f conftest.er1
34657   cat conftest.err >&5
34658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659   (exit $ac_status); } && {
34660          test -z "$ac_c_werror_flag" ||
34661          test ! -s conftest.err
34662        } && test -s conftest.$ac_objext; then
34663   ac_hi=-1 ac_mid=-1
34664   while :; do
34665     cat >conftest.$ac_ext <<_ACEOF
34666 /* confdefs.h.  */
34667 _ACEOF
34668 cat confdefs.h >>conftest.$ac_ext
34669 cat >>conftest.$ac_ext <<_ACEOF
34670 /* end confdefs.h.  */
34671 $ac_includes_default
34672    typedef char ac__type_sizeof_;
34673 int
34674 main ()
34675 {
34676 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34677 test_array [0] = 0
34678
34679   ;
34680   return 0;
34681 }
34682 _ACEOF
34683 rm -f conftest.$ac_objext
34684 if { (ac_try="$ac_compile"
34685 case "(($ac_try" in
34686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34687   *) ac_try_echo=$ac_try;;
34688 esac
34689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34690   (eval "$ac_compile") 2>conftest.er1
34691   ac_status=$?
34692   grep -v '^ *+' conftest.er1 >conftest.err
34693   rm -f conftest.er1
34694   cat conftest.err >&5
34695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34696   (exit $ac_status); } && {
34697          test -z "$ac_c_werror_flag" ||
34698          test ! -s conftest.err
34699        } && test -s conftest.$ac_objext; then
34700   ac_lo=$ac_mid; break
34701 else
34702   echo "$as_me: failed program was:" >&5
34703 sed 's/^/| /' conftest.$ac_ext >&5
34704
34705         ac_hi=`expr '(' $ac_mid ')' - 1`
34706                         if test $ac_mid -le $ac_hi; then
34707                           ac_lo= ac_hi=
34708                           break
34709                         fi
34710                         ac_mid=`expr 2 '*' $ac_mid`
34711 fi
34712
34713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34714   done
34715 else
34716   echo "$as_me: failed program was:" >&5
34717 sed 's/^/| /' conftest.$ac_ext >&5
34718
34719         ac_lo= ac_hi=
34720 fi
34721
34722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34723 fi
34724
34725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34726 # Binary search between lo and hi bounds.
34727 while test "x$ac_lo" != "x$ac_hi"; do
34728   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34729   cat >conftest.$ac_ext <<_ACEOF
34730 /* confdefs.h.  */
34731 _ACEOF
34732 cat confdefs.h >>conftest.$ac_ext
34733 cat >>conftest.$ac_ext <<_ACEOF
34734 /* end confdefs.h.  */
34735 $ac_includes_default
34736    typedef char ac__type_sizeof_;
34737 int
34738 main ()
34739 {
34740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34741 test_array [0] = 0
34742
34743   ;
34744   return 0;
34745 }
34746 _ACEOF
34747 rm -f conftest.$ac_objext
34748 if { (ac_try="$ac_compile"
34749 case "(($ac_try" in
34750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34751   *) ac_try_echo=$ac_try;;
34752 esac
34753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34754   (eval "$ac_compile") 2>conftest.er1
34755   ac_status=$?
34756   grep -v '^ *+' conftest.er1 >conftest.err
34757   rm -f conftest.er1
34758   cat conftest.err >&5
34759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760   (exit $ac_status); } && {
34761          test -z "$ac_c_werror_flag" ||
34762          test ! -s conftest.err
34763        } && test -s conftest.$ac_objext; then
34764   ac_hi=$ac_mid
34765 else
34766   echo "$as_me: failed program was:" >&5
34767 sed 's/^/| /' conftest.$ac_ext >&5
34768
34769         ac_lo=`expr '(' $ac_mid ')' + 1`
34770 fi
34771
34772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34773 done
34774 case $ac_lo in
34775 ?*) ac_cv_sizeof_char=$ac_lo;;
34776 '') if test "$ac_cv_type_char" = yes; then
34777      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34778 See \`config.log' for more details." >&5
34779 echo "$as_me: error: cannot compute sizeof (char)
34780 See \`config.log' for more details." >&2;}
34781    { (exit 77); exit 77; }; }
34782    else
34783      ac_cv_sizeof_char=0
34784    fi ;;
34785 esac
34786 else
34787   cat >conftest.$ac_ext <<_ACEOF
34788 /* confdefs.h.  */
34789 _ACEOF
34790 cat confdefs.h >>conftest.$ac_ext
34791 cat >>conftest.$ac_ext <<_ACEOF
34792 /* end confdefs.h.  */
34793 $ac_includes_default
34794    typedef char ac__type_sizeof_;
34795 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34796 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34797 #include <stdio.h>
34798 #include <stdlib.h>
34799 int
34800 main ()
34801 {
34802
34803   FILE *f = fopen ("conftest.val", "w");
34804   if (! f)
34805     return 1;
34806   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34807     {
34808       long int i = longval ();
34809       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34810         return 1;
34811       fprintf (f, "%ld\n", i);
34812     }
34813   else
34814     {
34815       unsigned long int i = ulongval ();
34816       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34817         return 1;
34818       fprintf (f, "%lu\n", i);
34819     }
34820   return ferror (f) || fclose (f) != 0;
34821
34822   ;
34823   return 0;
34824 }
34825 _ACEOF
34826 rm -f conftest$ac_exeext
34827 if { (ac_try="$ac_link"
34828 case "(($ac_try" in
34829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34830   *) ac_try_echo=$ac_try;;
34831 esac
34832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34833   (eval "$ac_link") 2>&5
34834   ac_status=$?
34835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34837   { (case "(($ac_try" in
34838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34839   *) ac_try_echo=$ac_try;;
34840 esac
34841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34842   (eval "$ac_try") 2>&5
34843   ac_status=$?
34844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845   (exit $ac_status); }; }; then
34846   ac_cv_sizeof_char=`cat conftest.val`
34847 else
34848   echo "$as_me: program exited with status $ac_status" >&5
34849 echo "$as_me: failed program was:" >&5
34850 sed 's/^/| /' conftest.$ac_ext >&5
34851
34852 ( exit $ac_status )
34853 if test "$ac_cv_type_char" = yes; then
34854      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34855 See \`config.log' for more details." >&5
34856 echo "$as_me: error: cannot compute sizeof (char)
34857 See \`config.log' for more details." >&2;}
34858    { (exit 77); exit 77; }; }
34859    else
34860      ac_cv_sizeof_char=0
34861    fi
34862 fi
34863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34864 fi
34865 rm -f conftest.val
34866 fi
34867 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34868 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34869
34870
34871
34872 cat >>confdefs.h <<_ACEOF
34873 #define SIZEOF_CHAR $ac_cv_sizeof_char
34874 _ACEOF
34875
34876
34877 { echo "$as_me:$LINENO: checking for short int" >&5
34878 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34879 if test "${ac_cv_type_short_int+set}" = set; then
34880   echo $ECHO_N "(cached) $ECHO_C" >&6
34881 else
34882   cat >conftest.$ac_ext <<_ACEOF
34883 /* confdefs.h.  */
34884 _ACEOF
34885 cat confdefs.h >>conftest.$ac_ext
34886 cat >>conftest.$ac_ext <<_ACEOF
34887 /* end confdefs.h.  */
34888 $ac_includes_default
34889 typedef short int ac__type_new_;
34890 int
34891 main ()
34892 {
34893 if ((ac__type_new_ *) 0)
34894   return 0;
34895 if (sizeof (ac__type_new_))
34896   return 0;
34897   ;
34898   return 0;
34899 }
34900 _ACEOF
34901 rm -f conftest.$ac_objext
34902 if { (ac_try="$ac_compile"
34903 case "(($ac_try" in
34904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34905   *) ac_try_echo=$ac_try;;
34906 esac
34907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34908   (eval "$ac_compile") 2>conftest.er1
34909   ac_status=$?
34910   grep -v '^ *+' conftest.er1 >conftest.err
34911   rm -f conftest.er1
34912   cat conftest.err >&5
34913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914   (exit $ac_status); } && {
34915          test -z "$ac_c_werror_flag" ||
34916          test ! -s conftest.err
34917        } && test -s conftest.$ac_objext; then
34918   ac_cv_type_short_int=yes
34919 else
34920   echo "$as_me: failed program was:" >&5
34921 sed 's/^/| /' conftest.$ac_ext >&5
34922
34923         ac_cv_type_short_int=no
34924 fi
34925
34926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34927 fi
34928 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34929 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34930
34931 # The cast to long int works around a bug in the HP C Compiler
34932 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34933 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34934 # This bug is HP SR number 8606223364.
34935 { echo "$as_me:$LINENO: checking size of short int" >&5
34936 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34937 if test "${ac_cv_sizeof_short_int+set}" = set; then
34938   echo $ECHO_N "(cached) $ECHO_C" >&6
34939 else
34940   if test "$cross_compiling" = yes; then
34941   # Depending upon the size, compute the lo and hi bounds.
34942 cat >conftest.$ac_ext <<_ACEOF
34943 /* confdefs.h.  */
34944 _ACEOF
34945 cat confdefs.h >>conftest.$ac_ext
34946 cat >>conftest.$ac_ext <<_ACEOF
34947 /* end confdefs.h.  */
34948 $ac_includes_default
34949    typedef short int ac__type_sizeof_;
34950 int
34951 main ()
34952 {
34953 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34954 test_array [0] = 0
34955
34956   ;
34957   return 0;
34958 }
34959 _ACEOF
34960 rm -f conftest.$ac_objext
34961 if { (ac_try="$ac_compile"
34962 case "(($ac_try" in
34963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34964   *) ac_try_echo=$ac_try;;
34965 esac
34966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34967   (eval "$ac_compile") 2>conftest.er1
34968   ac_status=$?
34969   grep -v '^ *+' conftest.er1 >conftest.err
34970   rm -f conftest.er1
34971   cat conftest.err >&5
34972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973   (exit $ac_status); } && {
34974          test -z "$ac_c_werror_flag" ||
34975          test ! -s conftest.err
34976        } && test -s conftest.$ac_objext; then
34977   ac_lo=0 ac_mid=0
34978   while :; do
34979     cat >conftest.$ac_ext <<_ACEOF
34980 /* confdefs.h.  */
34981 _ACEOF
34982 cat confdefs.h >>conftest.$ac_ext
34983 cat >>conftest.$ac_ext <<_ACEOF
34984 /* end confdefs.h.  */
34985 $ac_includes_default
34986    typedef short int ac__type_sizeof_;
34987 int
34988 main ()
34989 {
34990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34991 test_array [0] = 0
34992
34993   ;
34994   return 0;
34995 }
34996 _ACEOF
34997 rm -f conftest.$ac_objext
34998 if { (ac_try="$ac_compile"
34999 case "(($ac_try" in
35000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35001   *) ac_try_echo=$ac_try;;
35002 esac
35003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35004   (eval "$ac_compile") 2>conftest.er1
35005   ac_status=$?
35006   grep -v '^ *+' conftest.er1 >conftest.err
35007   rm -f conftest.er1
35008   cat conftest.err >&5
35009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35010   (exit $ac_status); } && {
35011          test -z "$ac_c_werror_flag" ||
35012          test ! -s conftest.err
35013        } && test -s conftest.$ac_objext; then
35014   ac_hi=$ac_mid; break
35015 else
35016   echo "$as_me: failed program was:" >&5
35017 sed 's/^/| /' conftest.$ac_ext >&5
35018
35019         ac_lo=`expr $ac_mid + 1`
35020                         if test $ac_lo -le $ac_mid; then
35021                           ac_lo= ac_hi=
35022                           break
35023                         fi
35024                         ac_mid=`expr 2 '*' $ac_mid + 1`
35025 fi
35026
35027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35028   done
35029 else
35030   echo "$as_me: failed program was:" >&5
35031 sed 's/^/| /' conftest.$ac_ext >&5
35032
35033         cat >conftest.$ac_ext <<_ACEOF
35034 /* confdefs.h.  */
35035 _ACEOF
35036 cat confdefs.h >>conftest.$ac_ext
35037 cat >>conftest.$ac_ext <<_ACEOF
35038 /* end confdefs.h.  */
35039 $ac_includes_default
35040    typedef short int ac__type_sizeof_;
35041 int
35042 main ()
35043 {
35044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35045 test_array [0] = 0
35046
35047   ;
35048   return 0;
35049 }
35050 _ACEOF
35051 rm -f conftest.$ac_objext
35052 if { (ac_try="$ac_compile"
35053 case "(($ac_try" in
35054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35055   *) ac_try_echo=$ac_try;;
35056 esac
35057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35058   (eval "$ac_compile") 2>conftest.er1
35059   ac_status=$?
35060   grep -v '^ *+' conftest.er1 >conftest.err
35061   rm -f conftest.er1
35062   cat conftest.err >&5
35063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35064   (exit $ac_status); } && {
35065          test -z "$ac_c_werror_flag" ||
35066          test ! -s conftest.err
35067        } && test -s conftest.$ac_objext; then
35068   ac_hi=-1 ac_mid=-1
35069   while :; do
35070     cat >conftest.$ac_ext <<_ACEOF
35071 /* confdefs.h.  */
35072 _ACEOF
35073 cat confdefs.h >>conftest.$ac_ext
35074 cat >>conftest.$ac_ext <<_ACEOF
35075 /* end confdefs.h.  */
35076 $ac_includes_default
35077    typedef short int ac__type_sizeof_;
35078 int
35079 main ()
35080 {
35081 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35082 test_array [0] = 0
35083
35084   ;
35085   return 0;
35086 }
35087 _ACEOF
35088 rm -f conftest.$ac_objext
35089 if { (ac_try="$ac_compile"
35090 case "(($ac_try" in
35091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35092   *) ac_try_echo=$ac_try;;
35093 esac
35094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35095   (eval "$ac_compile") 2>conftest.er1
35096   ac_status=$?
35097   grep -v '^ *+' conftest.er1 >conftest.err
35098   rm -f conftest.er1
35099   cat conftest.err >&5
35100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101   (exit $ac_status); } && {
35102          test -z "$ac_c_werror_flag" ||
35103          test ! -s conftest.err
35104        } && test -s conftest.$ac_objext; then
35105   ac_lo=$ac_mid; break
35106 else
35107   echo "$as_me: failed program was:" >&5
35108 sed 's/^/| /' conftest.$ac_ext >&5
35109
35110         ac_hi=`expr '(' $ac_mid ')' - 1`
35111                         if test $ac_mid -le $ac_hi; then
35112                           ac_lo= ac_hi=
35113                           break
35114                         fi
35115                         ac_mid=`expr 2 '*' $ac_mid`
35116 fi
35117
35118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35119   done
35120 else
35121   echo "$as_me: failed program was:" >&5
35122 sed 's/^/| /' conftest.$ac_ext >&5
35123
35124         ac_lo= ac_hi=
35125 fi
35126
35127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35128 fi
35129
35130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35131 # Binary search between lo and hi bounds.
35132 while test "x$ac_lo" != "x$ac_hi"; do
35133   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35134   cat >conftest.$ac_ext <<_ACEOF
35135 /* confdefs.h.  */
35136 _ACEOF
35137 cat confdefs.h >>conftest.$ac_ext
35138 cat >>conftest.$ac_ext <<_ACEOF
35139 /* end confdefs.h.  */
35140 $ac_includes_default
35141    typedef short int ac__type_sizeof_;
35142 int
35143 main ()
35144 {
35145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35146 test_array [0] = 0
35147
35148   ;
35149   return 0;
35150 }
35151 _ACEOF
35152 rm -f conftest.$ac_objext
35153 if { (ac_try="$ac_compile"
35154 case "(($ac_try" in
35155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35156   *) ac_try_echo=$ac_try;;
35157 esac
35158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35159   (eval "$ac_compile") 2>conftest.er1
35160   ac_status=$?
35161   grep -v '^ *+' conftest.er1 >conftest.err
35162   rm -f conftest.er1
35163   cat conftest.err >&5
35164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165   (exit $ac_status); } && {
35166          test -z "$ac_c_werror_flag" ||
35167          test ! -s conftest.err
35168        } && test -s conftest.$ac_objext; then
35169   ac_hi=$ac_mid
35170 else
35171   echo "$as_me: failed program was:" >&5
35172 sed 's/^/| /' conftest.$ac_ext >&5
35173
35174         ac_lo=`expr '(' $ac_mid ')' + 1`
35175 fi
35176
35177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35178 done
35179 case $ac_lo in
35180 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35181 '') if test "$ac_cv_type_short_int" = yes; then
35182      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35183 See \`config.log' for more details." >&5
35184 echo "$as_me: error: cannot compute sizeof (short int)
35185 See \`config.log' for more details." >&2;}
35186    { (exit 77); exit 77; }; }
35187    else
35188      ac_cv_sizeof_short_int=0
35189    fi ;;
35190 esac
35191 else
35192   cat >conftest.$ac_ext <<_ACEOF
35193 /* confdefs.h.  */
35194 _ACEOF
35195 cat confdefs.h >>conftest.$ac_ext
35196 cat >>conftest.$ac_ext <<_ACEOF
35197 /* end confdefs.h.  */
35198 $ac_includes_default
35199    typedef short int ac__type_sizeof_;
35200 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35201 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35202 #include <stdio.h>
35203 #include <stdlib.h>
35204 int
35205 main ()
35206 {
35207
35208   FILE *f = fopen ("conftest.val", "w");
35209   if (! f)
35210     return 1;
35211   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35212     {
35213       long int i = longval ();
35214       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35215         return 1;
35216       fprintf (f, "%ld\n", i);
35217     }
35218   else
35219     {
35220       unsigned long int i = ulongval ();
35221       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35222         return 1;
35223       fprintf (f, "%lu\n", i);
35224     }
35225   return ferror (f) || fclose (f) != 0;
35226
35227   ;
35228   return 0;
35229 }
35230 _ACEOF
35231 rm -f conftest$ac_exeext
35232 if { (ac_try="$ac_link"
35233 case "(($ac_try" in
35234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35235   *) ac_try_echo=$ac_try;;
35236 esac
35237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35238   (eval "$ac_link") 2>&5
35239   ac_status=$?
35240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35241   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35242   { (case "(($ac_try" in
35243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35244   *) ac_try_echo=$ac_try;;
35245 esac
35246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35247   (eval "$ac_try") 2>&5
35248   ac_status=$?
35249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250   (exit $ac_status); }; }; then
35251   ac_cv_sizeof_short_int=`cat conftest.val`
35252 else
35253   echo "$as_me: program exited with status $ac_status" >&5
35254 echo "$as_me: failed program was:" >&5
35255 sed 's/^/| /' conftest.$ac_ext >&5
35256
35257 ( exit $ac_status )
35258 if test "$ac_cv_type_short_int" = yes; then
35259      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35260 See \`config.log' for more details." >&5
35261 echo "$as_me: error: cannot compute sizeof (short int)
35262 See \`config.log' for more details." >&2;}
35263    { (exit 77); exit 77; }; }
35264    else
35265      ac_cv_sizeof_short_int=0
35266    fi
35267 fi
35268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35269 fi
35270 rm -f conftest.val
35271 fi
35272 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35273 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35274
35275
35276
35277 cat >>confdefs.h <<_ACEOF
35278 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35279 _ACEOF
35280
35281
35282 { echo "$as_me:$LINENO: checking for int" >&5
35283 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35284 if test "${ac_cv_type_int+set}" = set; then
35285   echo $ECHO_N "(cached) $ECHO_C" >&6
35286 else
35287   cat >conftest.$ac_ext <<_ACEOF
35288 /* confdefs.h.  */
35289 _ACEOF
35290 cat confdefs.h >>conftest.$ac_ext
35291 cat >>conftest.$ac_ext <<_ACEOF
35292 /* end confdefs.h.  */
35293 $ac_includes_default
35294 typedef int ac__type_new_;
35295 int
35296 main ()
35297 {
35298 if ((ac__type_new_ *) 0)
35299   return 0;
35300 if (sizeof (ac__type_new_))
35301   return 0;
35302   ;
35303   return 0;
35304 }
35305 _ACEOF
35306 rm -f conftest.$ac_objext
35307 if { (ac_try="$ac_compile"
35308 case "(($ac_try" in
35309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35310   *) ac_try_echo=$ac_try;;
35311 esac
35312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35313   (eval "$ac_compile") 2>conftest.er1
35314   ac_status=$?
35315   grep -v '^ *+' conftest.er1 >conftest.err
35316   rm -f conftest.er1
35317   cat conftest.err >&5
35318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319   (exit $ac_status); } && {
35320          test -z "$ac_c_werror_flag" ||
35321          test ! -s conftest.err
35322        } && test -s conftest.$ac_objext; then
35323   ac_cv_type_int=yes
35324 else
35325   echo "$as_me: failed program was:" >&5
35326 sed 's/^/| /' conftest.$ac_ext >&5
35327
35328         ac_cv_type_int=no
35329 fi
35330
35331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35332 fi
35333 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35334 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35335
35336 # The cast to long int works around a bug in the HP C Compiler
35337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35339 # This bug is HP SR number 8606223364.
35340 { echo "$as_me:$LINENO: checking size of int" >&5
35341 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35342 if test "${ac_cv_sizeof_int+set}" = set; then
35343   echo $ECHO_N "(cached) $ECHO_C" >&6
35344 else
35345   if test "$cross_compiling" = yes; then
35346   # Depending upon the size, compute the lo and hi bounds.
35347 cat >conftest.$ac_ext <<_ACEOF
35348 /* confdefs.h.  */
35349 _ACEOF
35350 cat confdefs.h >>conftest.$ac_ext
35351 cat >>conftest.$ac_ext <<_ACEOF
35352 /* end confdefs.h.  */
35353 $ac_includes_default
35354    typedef int ac__type_sizeof_;
35355 int
35356 main ()
35357 {
35358 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35359 test_array [0] = 0
35360
35361   ;
35362   return 0;
35363 }
35364 _ACEOF
35365 rm -f conftest.$ac_objext
35366 if { (ac_try="$ac_compile"
35367 case "(($ac_try" in
35368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35369   *) ac_try_echo=$ac_try;;
35370 esac
35371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35372   (eval "$ac_compile") 2>conftest.er1
35373   ac_status=$?
35374   grep -v '^ *+' conftest.er1 >conftest.err
35375   rm -f conftest.er1
35376   cat conftest.err >&5
35377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378   (exit $ac_status); } && {
35379          test -z "$ac_c_werror_flag" ||
35380          test ! -s conftest.err
35381        } && test -s conftest.$ac_objext; then
35382   ac_lo=0 ac_mid=0
35383   while :; do
35384     cat >conftest.$ac_ext <<_ACEOF
35385 /* confdefs.h.  */
35386 _ACEOF
35387 cat confdefs.h >>conftest.$ac_ext
35388 cat >>conftest.$ac_ext <<_ACEOF
35389 /* end confdefs.h.  */
35390 $ac_includes_default
35391    typedef int ac__type_sizeof_;
35392 int
35393 main ()
35394 {
35395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35396 test_array [0] = 0
35397
35398   ;
35399   return 0;
35400 }
35401 _ACEOF
35402 rm -f conftest.$ac_objext
35403 if { (ac_try="$ac_compile"
35404 case "(($ac_try" in
35405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35406   *) ac_try_echo=$ac_try;;
35407 esac
35408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35409   (eval "$ac_compile") 2>conftest.er1
35410   ac_status=$?
35411   grep -v '^ *+' conftest.er1 >conftest.err
35412   rm -f conftest.er1
35413   cat conftest.err >&5
35414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35415   (exit $ac_status); } && {
35416          test -z "$ac_c_werror_flag" ||
35417          test ! -s conftest.err
35418        } && test -s conftest.$ac_objext; then
35419   ac_hi=$ac_mid; break
35420 else
35421   echo "$as_me: failed program was:" >&5
35422 sed 's/^/| /' conftest.$ac_ext >&5
35423
35424         ac_lo=`expr $ac_mid + 1`
35425                         if test $ac_lo -le $ac_mid; then
35426                           ac_lo= ac_hi=
35427                           break
35428                         fi
35429                         ac_mid=`expr 2 '*' $ac_mid + 1`
35430 fi
35431
35432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35433   done
35434 else
35435   echo "$as_me: failed program was:" >&5
35436 sed 's/^/| /' conftest.$ac_ext >&5
35437
35438         cat >conftest.$ac_ext <<_ACEOF
35439 /* confdefs.h.  */
35440 _ACEOF
35441 cat confdefs.h >>conftest.$ac_ext
35442 cat >>conftest.$ac_ext <<_ACEOF
35443 /* end confdefs.h.  */
35444 $ac_includes_default
35445    typedef int ac__type_sizeof_;
35446 int
35447 main ()
35448 {
35449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35450 test_array [0] = 0
35451
35452   ;
35453   return 0;
35454 }
35455 _ACEOF
35456 rm -f conftest.$ac_objext
35457 if { (ac_try="$ac_compile"
35458 case "(($ac_try" in
35459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35460   *) ac_try_echo=$ac_try;;
35461 esac
35462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35463   (eval "$ac_compile") 2>conftest.er1
35464   ac_status=$?
35465   grep -v '^ *+' conftest.er1 >conftest.err
35466   rm -f conftest.er1
35467   cat conftest.err >&5
35468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35469   (exit $ac_status); } && {
35470          test -z "$ac_c_werror_flag" ||
35471          test ! -s conftest.err
35472        } && test -s conftest.$ac_objext; then
35473   ac_hi=-1 ac_mid=-1
35474   while :; do
35475     cat >conftest.$ac_ext <<_ACEOF
35476 /* confdefs.h.  */
35477 _ACEOF
35478 cat confdefs.h >>conftest.$ac_ext
35479 cat >>conftest.$ac_ext <<_ACEOF
35480 /* end confdefs.h.  */
35481 $ac_includes_default
35482    typedef int ac__type_sizeof_;
35483 int
35484 main ()
35485 {
35486 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35487 test_array [0] = 0
35488
35489   ;
35490   return 0;
35491 }
35492 _ACEOF
35493 rm -f conftest.$ac_objext
35494 if { (ac_try="$ac_compile"
35495 case "(($ac_try" in
35496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35497   *) ac_try_echo=$ac_try;;
35498 esac
35499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35500   (eval "$ac_compile") 2>conftest.er1
35501   ac_status=$?
35502   grep -v '^ *+' conftest.er1 >conftest.err
35503   rm -f conftest.er1
35504   cat conftest.err >&5
35505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35506   (exit $ac_status); } && {
35507          test -z "$ac_c_werror_flag" ||
35508          test ! -s conftest.err
35509        } && test -s conftest.$ac_objext; then
35510   ac_lo=$ac_mid; break
35511 else
35512   echo "$as_me: failed program was:" >&5
35513 sed 's/^/| /' conftest.$ac_ext >&5
35514
35515         ac_hi=`expr '(' $ac_mid ')' - 1`
35516                         if test $ac_mid -le $ac_hi; then
35517                           ac_lo= ac_hi=
35518                           break
35519                         fi
35520                         ac_mid=`expr 2 '*' $ac_mid`
35521 fi
35522
35523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35524   done
35525 else
35526   echo "$as_me: failed program was:" >&5
35527 sed 's/^/| /' conftest.$ac_ext >&5
35528
35529         ac_lo= ac_hi=
35530 fi
35531
35532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35533 fi
35534
35535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35536 # Binary search between lo and hi bounds.
35537 while test "x$ac_lo" != "x$ac_hi"; do
35538   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35539   cat >conftest.$ac_ext <<_ACEOF
35540 /* confdefs.h.  */
35541 _ACEOF
35542 cat confdefs.h >>conftest.$ac_ext
35543 cat >>conftest.$ac_ext <<_ACEOF
35544 /* end confdefs.h.  */
35545 $ac_includes_default
35546    typedef int ac__type_sizeof_;
35547 int
35548 main ()
35549 {
35550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35551 test_array [0] = 0
35552
35553   ;
35554   return 0;
35555 }
35556 _ACEOF
35557 rm -f conftest.$ac_objext
35558 if { (ac_try="$ac_compile"
35559 case "(($ac_try" in
35560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35561   *) ac_try_echo=$ac_try;;
35562 esac
35563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35564   (eval "$ac_compile") 2>conftest.er1
35565   ac_status=$?
35566   grep -v '^ *+' conftest.er1 >conftest.err
35567   rm -f conftest.er1
35568   cat conftest.err >&5
35569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570   (exit $ac_status); } && {
35571          test -z "$ac_c_werror_flag" ||
35572          test ! -s conftest.err
35573        } && test -s conftest.$ac_objext; then
35574   ac_hi=$ac_mid
35575 else
35576   echo "$as_me: failed program was:" >&5
35577 sed 's/^/| /' conftest.$ac_ext >&5
35578
35579         ac_lo=`expr '(' $ac_mid ')' + 1`
35580 fi
35581
35582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35583 done
35584 case $ac_lo in
35585 ?*) ac_cv_sizeof_int=$ac_lo;;
35586 '') if test "$ac_cv_type_int" = yes; then
35587      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35588 See \`config.log' for more details." >&5
35589 echo "$as_me: error: cannot compute sizeof (int)
35590 See \`config.log' for more details." >&2;}
35591    { (exit 77); exit 77; }; }
35592    else
35593      ac_cv_sizeof_int=0
35594    fi ;;
35595 esac
35596 else
35597   cat >conftest.$ac_ext <<_ACEOF
35598 /* confdefs.h.  */
35599 _ACEOF
35600 cat confdefs.h >>conftest.$ac_ext
35601 cat >>conftest.$ac_ext <<_ACEOF
35602 /* end confdefs.h.  */
35603 $ac_includes_default
35604    typedef int ac__type_sizeof_;
35605 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35606 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35607 #include <stdio.h>
35608 #include <stdlib.h>
35609 int
35610 main ()
35611 {
35612
35613   FILE *f = fopen ("conftest.val", "w");
35614   if (! f)
35615     return 1;
35616   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35617     {
35618       long int i = longval ();
35619       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35620         return 1;
35621       fprintf (f, "%ld\n", i);
35622     }
35623   else
35624     {
35625       unsigned long int i = ulongval ();
35626       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35627         return 1;
35628       fprintf (f, "%lu\n", i);
35629     }
35630   return ferror (f) || fclose (f) != 0;
35631
35632   ;
35633   return 0;
35634 }
35635 _ACEOF
35636 rm -f conftest$ac_exeext
35637 if { (ac_try="$ac_link"
35638 case "(($ac_try" in
35639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35640   *) ac_try_echo=$ac_try;;
35641 esac
35642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35643   (eval "$ac_link") 2>&5
35644   ac_status=$?
35645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35646   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35647   { (case "(($ac_try" in
35648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35649   *) ac_try_echo=$ac_try;;
35650 esac
35651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35652   (eval "$ac_try") 2>&5
35653   ac_status=$?
35654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35655   (exit $ac_status); }; }; then
35656   ac_cv_sizeof_int=`cat conftest.val`
35657 else
35658   echo "$as_me: program exited with status $ac_status" >&5
35659 echo "$as_me: failed program was:" >&5
35660 sed 's/^/| /' conftest.$ac_ext >&5
35661
35662 ( exit $ac_status )
35663 if test "$ac_cv_type_int" = yes; then
35664      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35665 See \`config.log' for more details." >&5
35666 echo "$as_me: error: cannot compute sizeof (int)
35667 See \`config.log' for more details." >&2;}
35668    { (exit 77); exit 77; }; }
35669    else
35670      ac_cv_sizeof_int=0
35671    fi
35672 fi
35673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35674 fi
35675 rm -f conftest.val
35676 fi
35677 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35678 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35679
35680
35681
35682 cat >>confdefs.h <<_ACEOF
35683 #define SIZEOF_INT $ac_cv_sizeof_int
35684 _ACEOF
35685
35686
35687 { echo "$as_me:$LINENO: checking for long int" >&5
35688 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35689 if test "${ac_cv_type_long_int+set}" = set; then
35690   echo $ECHO_N "(cached) $ECHO_C" >&6
35691 else
35692   cat >conftest.$ac_ext <<_ACEOF
35693 /* confdefs.h.  */
35694 _ACEOF
35695 cat confdefs.h >>conftest.$ac_ext
35696 cat >>conftest.$ac_ext <<_ACEOF
35697 /* end confdefs.h.  */
35698 $ac_includes_default
35699 typedef long int ac__type_new_;
35700 int
35701 main ()
35702 {
35703 if ((ac__type_new_ *) 0)
35704   return 0;
35705 if (sizeof (ac__type_new_))
35706   return 0;
35707   ;
35708   return 0;
35709 }
35710 _ACEOF
35711 rm -f conftest.$ac_objext
35712 if { (ac_try="$ac_compile"
35713 case "(($ac_try" in
35714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35715   *) ac_try_echo=$ac_try;;
35716 esac
35717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35718   (eval "$ac_compile") 2>conftest.er1
35719   ac_status=$?
35720   grep -v '^ *+' conftest.er1 >conftest.err
35721   rm -f conftest.er1
35722   cat conftest.err >&5
35723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35724   (exit $ac_status); } && {
35725          test -z "$ac_c_werror_flag" ||
35726          test ! -s conftest.err
35727        } && test -s conftest.$ac_objext; then
35728   ac_cv_type_long_int=yes
35729 else
35730   echo "$as_me: failed program was:" >&5
35731 sed 's/^/| /' conftest.$ac_ext >&5
35732
35733         ac_cv_type_long_int=no
35734 fi
35735
35736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35737 fi
35738 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35739 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35740
35741 # The cast to long int works around a bug in the HP C Compiler
35742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35744 # This bug is HP SR number 8606223364.
35745 { echo "$as_me:$LINENO: checking size of long int" >&5
35746 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35747 if test "${ac_cv_sizeof_long_int+set}" = set; then
35748   echo $ECHO_N "(cached) $ECHO_C" >&6
35749 else
35750   if test "$cross_compiling" = yes; then
35751   # Depending upon the size, compute the lo and hi bounds.
35752 cat >conftest.$ac_ext <<_ACEOF
35753 /* confdefs.h.  */
35754 _ACEOF
35755 cat confdefs.h >>conftest.$ac_ext
35756 cat >>conftest.$ac_ext <<_ACEOF
35757 /* end confdefs.h.  */
35758 $ac_includes_default
35759    typedef long int ac__type_sizeof_;
35760 int
35761 main ()
35762 {
35763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35764 test_array [0] = 0
35765
35766   ;
35767   return 0;
35768 }
35769 _ACEOF
35770 rm -f conftest.$ac_objext
35771 if { (ac_try="$ac_compile"
35772 case "(($ac_try" in
35773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35774   *) ac_try_echo=$ac_try;;
35775 esac
35776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35777   (eval "$ac_compile") 2>conftest.er1
35778   ac_status=$?
35779   grep -v '^ *+' conftest.er1 >conftest.err
35780   rm -f conftest.er1
35781   cat conftest.err >&5
35782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35783   (exit $ac_status); } && {
35784          test -z "$ac_c_werror_flag" ||
35785          test ! -s conftest.err
35786        } && test -s conftest.$ac_objext; then
35787   ac_lo=0 ac_mid=0
35788   while :; do
35789     cat >conftest.$ac_ext <<_ACEOF
35790 /* confdefs.h.  */
35791 _ACEOF
35792 cat confdefs.h >>conftest.$ac_ext
35793 cat >>conftest.$ac_ext <<_ACEOF
35794 /* end confdefs.h.  */
35795 $ac_includes_default
35796    typedef long int ac__type_sizeof_;
35797 int
35798 main ()
35799 {
35800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35801 test_array [0] = 0
35802
35803   ;
35804   return 0;
35805 }
35806 _ACEOF
35807 rm -f conftest.$ac_objext
35808 if { (ac_try="$ac_compile"
35809 case "(($ac_try" in
35810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35811   *) ac_try_echo=$ac_try;;
35812 esac
35813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35814   (eval "$ac_compile") 2>conftest.er1
35815   ac_status=$?
35816   grep -v '^ *+' conftest.er1 >conftest.err
35817   rm -f conftest.er1
35818   cat conftest.err >&5
35819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35820   (exit $ac_status); } && {
35821          test -z "$ac_c_werror_flag" ||
35822          test ! -s conftest.err
35823        } && test -s conftest.$ac_objext; then
35824   ac_hi=$ac_mid; break
35825 else
35826   echo "$as_me: failed program was:" >&5
35827 sed 's/^/| /' conftest.$ac_ext >&5
35828
35829         ac_lo=`expr $ac_mid + 1`
35830                         if test $ac_lo -le $ac_mid; then
35831                           ac_lo= ac_hi=
35832                           break
35833                         fi
35834                         ac_mid=`expr 2 '*' $ac_mid + 1`
35835 fi
35836
35837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35838   done
35839 else
35840   echo "$as_me: failed program was:" >&5
35841 sed 's/^/| /' conftest.$ac_ext >&5
35842
35843         cat >conftest.$ac_ext <<_ACEOF
35844 /* confdefs.h.  */
35845 _ACEOF
35846 cat confdefs.h >>conftest.$ac_ext
35847 cat >>conftest.$ac_ext <<_ACEOF
35848 /* end confdefs.h.  */
35849 $ac_includes_default
35850    typedef long int ac__type_sizeof_;
35851 int
35852 main ()
35853 {
35854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35855 test_array [0] = 0
35856
35857   ;
35858   return 0;
35859 }
35860 _ACEOF
35861 rm -f conftest.$ac_objext
35862 if { (ac_try="$ac_compile"
35863 case "(($ac_try" in
35864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35865   *) ac_try_echo=$ac_try;;
35866 esac
35867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35868   (eval "$ac_compile") 2>conftest.er1
35869   ac_status=$?
35870   grep -v '^ *+' conftest.er1 >conftest.err
35871   rm -f conftest.er1
35872   cat conftest.err >&5
35873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35874   (exit $ac_status); } && {
35875          test -z "$ac_c_werror_flag" ||
35876          test ! -s conftest.err
35877        } && test -s conftest.$ac_objext; then
35878   ac_hi=-1 ac_mid=-1
35879   while :; do
35880     cat >conftest.$ac_ext <<_ACEOF
35881 /* confdefs.h.  */
35882 _ACEOF
35883 cat confdefs.h >>conftest.$ac_ext
35884 cat >>conftest.$ac_ext <<_ACEOF
35885 /* end confdefs.h.  */
35886 $ac_includes_default
35887    typedef long int ac__type_sizeof_;
35888 int
35889 main ()
35890 {
35891 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35892 test_array [0] = 0
35893
35894   ;
35895   return 0;
35896 }
35897 _ACEOF
35898 rm -f conftest.$ac_objext
35899 if { (ac_try="$ac_compile"
35900 case "(($ac_try" in
35901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35902   *) ac_try_echo=$ac_try;;
35903 esac
35904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35905   (eval "$ac_compile") 2>conftest.er1
35906   ac_status=$?
35907   grep -v '^ *+' conftest.er1 >conftest.err
35908   rm -f conftest.er1
35909   cat conftest.err >&5
35910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35911   (exit $ac_status); } && {
35912          test -z "$ac_c_werror_flag" ||
35913          test ! -s conftest.err
35914        } && test -s conftest.$ac_objext; then
35915   ac_lo=$ac_mid; break
35916 else
35917   echo "$as_me: failed program was:" >&5
35918 sed 's/^/| /' conftest.$ac_ext >&5
35919
35920         ac_hi=`expr '(' $ac_mid ')' - 1`
35921                         if test $ac_mid -le $ac_hi; then
35922                           ac_lo= ac_hi=
35923                           break
35924                         fi
35925                         ac_mid=`expr 2 '*' $ac_mid`
35926 fi
35927
35928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35929   done
35930 else
35931   echo "$as_me: failed program was:" >&5
35932 sed 's/^/| /' conftest.$ac_ext >&5
35933
35934         ac_lo= ac_hi=
35935 fi
35936
35937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35938 fi
35939
35940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35941 # Binary search between lo and hi bounds.
35942 while test "x$ac_lo" != "x$ac_hi"; do
35943   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35944   cat >conftest.$ac_ext <<_ACEOF
35945 /* confdefs.h.  */
35946 _ACEOF
35947 cat confdefs.h >>conftest.$ac_ext
35948 cat >>conftest.$ac_ext <<_ACEOF
35949 /* end confdefs.h.  */
35950 $ac_includes_default
35951    typedef long int ac__type_sizeof_;
35952 int
35953 main ()
35954 {
35955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35956 test_array [0] = 0
35957
35958   ;
35959   return 0;
35960 }
35961 _ACEOF
35962 rm -f conftest.$ac_objext
35963 if { (ac_try="$ac_compile"
35964 case "(($ac_try" in
35965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35966   *) ac_try_echo=$ac_try;;
35967 esac
35968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35969   (eval "$ac_compile") 2>conftest.er1
35970   ac_status=$?
35971   grep -v '^ *+' conftest.er1 >conftest.err
35972   rm -f conftest.er1
35973   cat conftest.err >&5
35974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975   (exit $ac_status); } && {
35976          test -z "$ac_c_werror_flag" ||
35977          test ! -s conftest.err
35978        } && test -s conftest.$ac_objext; then
35979   ac_hi=$ac_mid
35980 else
35981   echo "$as_me: failed program was:" >&5
35982 sed 's/^/| /' conftest.$ac_ext >&5
35983
35984         ac_lo=`expr '(' $ac_mid ')' + 1`
35985 fi
35986
35987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35988 done
35989 case $ac_lo in
35990 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35991 '') if test "$ac_cv_type_long_int" = yes; then
35992      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35993 See \`config.log' for more details." >&5
35994 echo "$as_me: error: cannot compute sizeof (long int)
35995 See \`config.log' for more details." >&2;}
35996    { (exit 77); exit 77; }; }
35997    else
35998      ac_cv_sizeof_long_int=0
35999    fi ;;
36000 esac
36001 else
36002   cat >conftest.$ac_ext <<_ACEOF
36003 /* confdefs.h.  */
36004 _ACEOF
36005 cat confdefs.h >>conftest.$ac_ext
36006 cat >>conftest.$ac_ext <<_ACEOF
36007 /* end confdefs.h.  */
36008 $ac_includes_default
36009    typedef long int ac__type_sizeof_;
36010 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36011 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36012 #include <stdio.h>
36013 #include <stdlib.h>
36014 int
36015 main ()
36016 {
36017
36018   FILE *f = fopen ("conftest.val", "w");
36019   if (! f)
36020     return 1;
36021   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36022     {
36023       long int i = longval ();
36024       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36025         return 1;
36026       fprintf (f, "%ld\n", i);
36027     }
36028   else
36029     {
36030       unsigned long int i = ulongval ();
36031       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36032         return 1;
36033       fprintf (f, "%lu\n", i);
36034     }
36035   return ferror (f) || fclose (f) != 0;
36036
36037   ;
36038   return 0;
36039 }
36040 _ACEOF
36041 rm -f conftest$ac_exeext
36042 if { (ac_try="$ac_link"
36043 case "(($ac_try" in
36044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36045   *) ac_try_echo=$ac_try;;
36046 esac
36047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36048   (eval "$ac_link") 2>&5
36049   ac_status=$?
36050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36052   { (case "(($ac_try" in
36053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36054   *) ac_try_echo=$ac_try;;
36055 esac
36056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36057   (eval "$ac_try") 2>&5
36058   ac_status=$?
36059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060   (exit $ac_status); }; }; then
36061   ac_cv_sizeof_long_int=`cat conftest.val`
36062 else
36063   echo "$as_me: program exited with status $ac_status" >&5
36064 echo "$as_me: failed program was:" >&5
36065 sed 's/^/| /' conftest.$ac_ext >&5
36066
36067 ( exit $ac_status )
36068 if test "$ac_cv_type_long_int" = yes; then
36069      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36070 See \`config.log' for more details." >&5
36071 echo "$as_me: error: cannot compute sizeof (long int)
36072 See \`config.log' for more details." >&2;}
36073    { (exit 77); exit 77; }; }
36074    else
36075      ac_cv_sizeof_long_int=0
36076    fi
36077 fi
36078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36079 fi
36080 rm -f conftest.val
36081 fi
36082 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36083 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36084
36085
36086
36087 cat >>confdefs.h <<_ACEOF
36088 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36089 _ACEOF
36090
36091
36092 { echo "$as_me:$LINENO: checking for long long int" >&5
36093 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36094 if test "${ac_cv_type_long_long_int+set}" = set; then
36095   echo $ECHO_N "(cached) $ECHO_C" >&6
36096 else
36097   cat >conftest.$ac_ext <<_ACEOF
36098 /* confdefs.h.  */
36099 _ACEOF
36100 cat confdefs.h >>conftest.$ac_ext
36101 cat >>conftest.$ac_ext <<_ACEOF
36102 /* end confdefs.h.  */
36103 $ac_includes_default
36104 typedef long long int ac__type_new_;
36105 int
36106 main ()
36107 {
36108 if ((ac__type_new_ *) 0)
36109   return 0;
36110 if (sizeof (ac__type_new_))
36111   return 0;
36112   ;
36113   return 0;
36114 }
36115 _ACEOF
36116 rm -f conftest.$ac_objext
36117 if { (ac_try="$ac_compile"
36118 case "(($ac_try" in
36119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36120   *) ac_try_echo=$ac_try;;
36121 esac
36122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36123   (eval "$ac_compile") 2>conftest.er1
36124   ac_status=$?
36125   grep -v '^ *+' conftest.er1 >conftest.err
36126   rm -f conftest.er1
36127   cat conftest.err >&5
36128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129   (exit $ac_status); } && {
36130          test -z "$ac_c_werror_flag" ||
36131          test ! -s conftest.err
36132        } && test -s conftest.$ac_objext; then
36133   ac_cv_type_long_long_int=yes
36134 else
36135   echo "$as_me: failed program was:" >&5
36136 sed 's/^/| /' conftest.$ac_ext >&5
36137
36138         ac_cv_type_long_long_int=no
36139 fi
36140
36141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36142 fi
36143 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36144 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36145
36146 # The cast to long int works around a bug in the HP C Compiler
36147 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36148 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36149 # This bug is HP SR number 8606223364.
36150 { echo "$as_me:$LINENO: checking size of long long int" >&5
36151 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36152 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36153   echo $ECHO_N "(cached) $ECHO_C" >&6
36154 else
36155   if test "$cross_compiling" = yes; then
36156   # Depending upon the size, compute the lo and hi bounds.
36157 cat >conftest.$ac_ext <<_ACEOF
36158 /* confdefs.h.  */
36159 _ACEOF
36160 cat confdefs.h >>conftest.$ac_ext
36161 cat >>conftest.$ac_ext <<_ACEOF
36162 /* end confdefs.h.  */
36163 $ac_includes_default
36164    typedef long long int ac__type_sizeof_;
36165 int
36166 main ()
36167 {
36168 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36169 test_array [0] = 0
36170
36171   ;
36172   return 0;
36173 }
36174 _ACEOF
36175 rm -f conftest.$ac_objext
36176 if { (ac_try="$ac_compile"
36177 case "(($ac_try" in
36178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36179   *) ac_try_echo=$ac_try;;
36180 esac
36181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36182   (eval "$ac_compile") 2>conftest.er1
36183   ac_status=$?
36184   grep -v '^ *+' conftest.er1 >conftest.err
36185   rm -f conftest.er1
36186   cat conftest.err >&5
36187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188   (exit $ac_status); } && {
36189          test -z "$ac_c_werror_flag" ||
36190          test ! -s conftest.err
36191        } && test -s conftest.$ac_objext; then
36192   ac_lo=0 ac_mid=0
36193   while :; do
36194     cat >conftest.$ac_ext <<_ACEOF
36195 /* confdefs.h.  */
36196 _ACEOF
36197 cat confdefs.h >>conftest.$ac_ext
36198 cat >>conftest.$ac_ext <<_ACEOF
36199 /* end confdefs.h.  */
36200 $ac_includes_default
36201    typedef long long int ac__type_sizeof_;
36202 int
36203 main ()
36204 {
36205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36206 test_array [0] = 0
36207
36208   ;
36209   return 0;
36210 }
36211 _ACEOF
36212 rm -f conftest.$ac_objext
36213 if { (ac_try="$ac_compile"
36214 case "(($ac_try" in
36215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36216   *) ac_try_echo=$ac_try;;
36217 esac
36218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36219   (eval "$ac_compile") 2>conftest.er1
36220   ac_status=$?
36221   grep -v '^ *+' conftest.er1 >conftest.err
36222   rm -f conftest.er1
36223   cat conftest.err >&5
36224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36225   (exit $ac_status); } && {
36226          test -z "$ac_c_werror_flag" ||
36227          test ! -s conftest.err
36228        } && test -s conftest.$ac_objext; then
36229   ac_hi=$ac_mid; break
36230 else
36231   echo "$as_me: failed program was:" >&5
36232 sed 's/^/| /' conftest.$ac_ext >&5
36233
36234         ac_lo=`expr $ac_mid + 1`
36235                         if test $ac_lo -le $ac_mid; then
36236                           ac_lo= ac_hi=
36237                           break
36238                         fi
36239                         ac_mid=`expr 2 '*' $ac_mid + 1`
36240 fi
36241
36242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36243   done
36244 else
36245   echo "$as_me: failed program was:" >&5
36246 sed 's/^/| /' conftest.$ac_ext >&5
36247
36248         cat >conftest.$ac_ext <<_ACEOF
36249 /* confdefs.h.  */
36250 _ACEOF
36251 cat confdefs.h >>conftest.$ac_ext
36252 cat >>conftest.$ac_ext <<_ACEOF
36253 /* end confdefs.h.  */
36254 $ac_includes_default
36255    typedef long long int ac__type_sizeof_;
36256 int
36257 main ()
36258 {
36259 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36260 test_array [0] = 0
36261
36262   ;
36263   return 0;
36264 }
36265 _ACEOF
36266 rm -f conftest.$ac_objext
36267 if { (ac_try="$ac_compile"
36268 case "(($ac_try" in
36269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36270   *) ac_try_echo=$ac_try;;
36271 esac
36272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36273   (eval "$ac_compile") 2>conftest.er1
36274   ac_status=$?
36275   grep -v '^ *+' conftest.er1 >conftest.err
36276   rm -f conftest.er1
36277   cat conftest.err >&5
36278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36279   (exit $ac_status); } && {
36280          test -z "$ac_c_werror_flag" ||
36281          test ! -s conftest.err
36282        } && test -s conftest.$ac_objext; then
36283   ac_hi=-1 ac_mid=-1
36284   while :; do
36285     cat >conftest.$ac_ext <<_ACEOF
36286 /* confdefs.h.  */
36287 _ACEOF
36288 cat confdefs.h >>conftest.$ac_ext
36289 cat >>conftest.$ac_ext <<_ACEOF
36290 /* end confdefs.h.  */
36291 $ac_includes_default
36292    typedef long long int ac__type_sizeof_;
36293 int
36294 main ()
36295 {
36296 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36297 test_array [0] = 0
36298
36299   ;
36300   return 0;
36301 }
36302 _ACEOF
36303 rm -f conftest.$ac_objext
36304 if { (ac_try="$ac_compile"
36305 case "(($ac_try" in
36306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36307   *) ac_try_echo=$ac_try;;
36308 esac
36309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36310   (eval "$ac_compile") 2>conftest.er1
36311   ac_status=$?
36312   grep -v '^ *+' conftest.er1 >conftest.err
36313   rm -f conftest.er1
36314   cat conftest.err >&5
36315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36316   (exit $ac_status); } && {
36317          test -z "$ac_c_werror_flag" ||
36318          test ! -s conftest.err
36319        } && test -s conftest.$ac_objext; then
36320   ac_lo=$ac_mid; break
36321 else
36322   echo "$as_me: failed program was:" >&5
36323 sed 's/^/| /' conftest.$ac_ext >&5
36324
36325         ac_hi=`expr '(' $ac_mid ')' - 1`
36326                         if test $ac_mid -le $ac_hi; then
36327                           ac_lo= ac_hi=
36328                           break
36329                         fi
36330                         ac_mid=`expr 2 '*' $ac_mid`
36331 fi
36332
36333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36334   done
36335 else
36336   echo "$as_me: failed program was:" >&5
36337 sed 's/^/| /' conftest.$ac_ext >&5
36338
36339         ac_lo= ac_hi=
36340 fi
36341
36342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36343 fi
36344
36345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36346 # Binary search between lo and hi bounds.
36347 while test "x$ac_lo" != "x$ac_hi"; do
36348   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36349   cat >conftest.$ac_ext <<_ACEOF
36350 /* confdefs.h.  */
36351 _ACEOF
36352 cat confdefs.h >>conftest.$ac_ext
36353 cat >>conftest.$ac_ext <<_ACEOF
36354 /* end confdefs.h.  */
36355 $ac_includes_default
36356    typedef long long int ac__type_sizeof_;
36357 int
36358 main ()
36359 {
36360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36361 test_array [0] = 0
36362
36363   ;
36364   return 0;
36365 }
36366 _ACEOF
36367 rm -f conftest.$ac_objext
36368 if { (ac_try="$ac_compile"
36369 case "(($ac_try" in
36370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36371   *) ac_try_echo=$ac_try;;
36372 esac
36373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36374   (eval "$ac_compile") 2>conftest.er1
36375   ac_status=$?
36376   grep -v '^ *+' conftest.er1 >conftest.err
36377   rm -f conftest.er1
36378   cat conftest.err >&5
36379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380   (exit $ac_status); } && {
36381          test -z "$ac_c_werror_flag" ||
36382          test ! -s conftest.err
36383        } && test -s conftest.$ac_objext; then
36384   ac_hi=$ac_mid
36385 else
36386   echo "$as_me: failed program was:" >&5
36387 sed 's/^/| /' conftest.$ac_ext >&5
36388
36389         ac_lo=`expr '(' $ac_mid ')' + 1`
36390 fi
36391
36392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36393 done
36394 case $ac_lo in
36395 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36396 '') if test "$ac_cv_type_long_long_int" = yes; then
36397      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36398 See \`config.log' for more details." >&5
36399 echo "$as_me: error: cannot compute sizeof (long long int)
36400 See \`config.log' for more details." >&2;}
36401    { (exit 77); exit 77; }; }
36402    else
36403      ac_cv_sizeof_long_long_int=0
36404    fi ;;
36405 esac
36406 else
36407   cat >conftest.$ac_ext <<_ACEOF
36408 /* confdefs.h.  */
36409 _ACEOF
36410 cat confdefs.h >>conftest.$ac_ext
36411 cat >>conftest.$ac_ext <<_ACEOF
36412 /* end confdefs.h.  */
36413 $ac_includes_default
36414    typedef long long int ac__type_sizeof_;
36415 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36416 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36417 #include <stdio.h>
36418 #include <stdlib.h>
36419 int
36420 main ()
36421 {
36422
36423   FILE *f = fopen ("conftest.val", "w");
36424   if (! f)
36425     return 1;
36426   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36427     {
36428       long int i = longval ();
36429       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36430         return 1;
36431       fprintf (f, "%ld\n", i);
36432     }
36433   else
36434     {
36435       unsigned long int i = ulongval ();
36436       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36437         return 1;
36438       fprintf (f, "%lu\n", i);
36439     }
36440   return ferror (f) || fclose (f) != 0;
36441
36442   ;
36443   return 0;
36444 }
36445 _ACEOF
36446 rm -f conftest$ac_exeext
36447 if { (ac_try="$ac_link"
36448 case "(($ac_try" in
36449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36450   *) ac_try_echo=$ac_try;;
36451 esac
36452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36453   (eval "$ac_link") 2>&5
36454   ac_status=$?
36455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36457   { (case "(($ac_try" in
36458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36459   *) ac_try_echo=$ac_try;;
36460 esac
36461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36462   (eval "$ac_try") 2>&5
36463   ac_status=$?
36464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36465   (exit $ac_status); }; }; then
36466   ac_cv_sizeof_long_long_int=`cat conftest.val`
36467 else
36468   echo "$as_me: program exited with status $ac_status" >&5
36469 echo "$as_me: failed program was:" >&5
36470 sed 's/^/| /' conftest.$ac_ext >&5
36471
36472 ( exit $ac_status )
36473 if test "$ac_cv_type_long_long_int" = yes; then
36474      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36475 See \`config.log' for more details." >&5
36476 echo "$as_me: error: cannot compute sizeof (long long int)
36477 See \`config.log' for more details." >&2;}
36478    { (exit 77); exit 77; }; }
36479    else
36480      ac_cv_sizeof_long_long_int=0
36481    fi
36482 fi
36483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36484 fi
36485 rm -f conftest.val
36486 fi
36487 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36488 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36489
36490
36491
36492 cat >>confdefs.h <<_ACEOF
36493 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36494 _ACEOF
36495
36496
36497 { echo "$as_me:$LINENO: checking for int *" >&5
36498 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36499 if test "${ac_cv_type_int_p+set}" = set; then
36500   echo $ECHO_N "(cached) $ECHO_C" >&6
36501 else
36502   cat >conftest.$ac_ext <<_ACEOF
36503 /* confdefs.h.  */
36504 _ACEOF
36505 cat confdefs.h >>conftest.$ac_ext
36506 cat >>conftest.$ac_ext <<_ACEOF
36507 /* end confdefs.h.  */
36508 $ac_includes_default
36509 typedef int * ac__type_new_;
36510 int
36511 main ()
36512 {
36513 if ((ac__type_new_ *) 0)
36514   return 0;
36515 if (sizeof (ac__type_new_))
36516   return 0;
36517   ;
36518   return 0;
36519 }
36520 _ACEOF
36521 rm -f conftest.$ac_objext
36522 if { (ac_try="$ac_compile"
36523 case "(($ac_try" in
36524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36525   *) ac_try_echo=$ac_try;;
36526 esac
36527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36528   (eval "$ac_compile") 2>conftest.er1
36529   ac_status=$?
36530   grep -v '^ *+' conftest.er1 >conftest.err
36531   rm -f conftest.er1
36532   cat conftest.err >&5
36533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36534   (exit $ac_status); } && {
36535          test -z "$ac_c_werror_flag" ||
36536          test ! -s conftest.err
36537        } && test -s conftest.$ac_objext; then
36538   ac_cv_type_int_p=yes
36539 else
36540   echo "$as_me: failed program was:" >&5
36541 sed 's/^/| /' conftest.$ac_ext >&5
36542
36543         ac_cv_type_int_p=no
36544 fi
36545
36546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36547 fi
36548 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36549 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36550
36551 # The cast to long int works around a bug in the HP C Compiler
36552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36554 # This bug is HP SR number 8606223364.
36555 { echo "$as_me:$LINENO: checking size of int *" >&5
36556 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36557 if test "${ac_cv_sizeof_int_p+set}" = set; then
36558   echo $ECHO_N "(cached) $ECHO_C" >&6
36559 else
36560   if test "$cross_compiling" = yes; then
36561   # Depending upon the size, compute the lo and hi bounds.
36562 cat >conftest.$ac_ext <<_ACEOF
36563 /* confdefs.h.  */
36564 _ACEOF
36565 cat confdefs.h >>conftest.$ac_ext
36566 cat >>conftest.$ac_ext <<_ACEOF
36567 /* end confdefs.h.  */
36568 $ac_includes_default
36569    typedef int * ac__type_sizeof_;
36570 int
36571 main ()
36572 {
36573 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36574 test_array [0] = 0
36575
36576   ;
36577   return 0;
36578 }
36579 _ACEOF
36580 rm -f conftest.$ac_objext
36581 if { (ac_try="$ac_compile"
36582 case "(($ac_try" in
36583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36584   *) ac_try_echo=$ac_try;;
36585 esac
36586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36587   (eval "$ac_compile") 2>conftest.er1
36588   ac_status=$?
36589   grep -v '^ *+' conftest.er1 >conftest.err
36590   rm -f conftest.er1
36591   cat conftest.err >&5
36592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36593   (exit $ac_status); } && {
36594          test -z "$ac_c_werror_flag" ||
36595          test ! -s conftest.err
36596        } && test -s conftest.$ac_objext; then
36597   ac_lo=0 ac_mid=0
36598   while :; do
36599     cat >conftest.$ac_ext <<_ACEOF
36600 /* confdefs.h.  */
36601 _ACEOF
36602 cat confdefs.h >>conftest.$ac_ext
36603 cat >>conftest.$ac_ext <<_ACEOF
36604 /* end confdefs.h.  */
36605 $ac_includes_default
36606    typedef int * ac__type_sizeof_;
36607 int
36608 main ()
36609 {
36610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36611 test_array [0] = 0
36612
36613   ;
36614   return 0;
36615 }
36616 _ACEOF
36617 rm -f conftest.$ac_objext
36618 if { (ac_try="$ac_compile"
36619 case "(($ac_try" in
36620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36621   *) ac_try_echo=$ac_try;;
36622 esac
36623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36624   (eval "$ac_compile") 2>conftest.er1
36625   ac_status=$?
36626   grep -v '^ *+' conftest.er1 >conftest.err
36627   rm -f conftest.er1
36628   cat conftest.err >&5
36629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36630   (exit $ac_status); } && {
36631          test -z "$ac_c_werror_flag" ||
36632          test ! -s conftest.err
36633        } && test -s conftest.$ac_objext; then
36634   ac_hi=$ac_mid; break
36635 else
36636   echo "$as_me: failed program was:" >&5
36637 sed 's/^/| /' conftest.$ac_ext >&5
36638
36639         ac_lo=`expr $ac_mid + 1`
36640                         if test $ac_lo -le $ac_mid; then
36641                           ac_lo= ac_hi=
36642                           break
36643                         fi
36644                         ac_mid=`expr 2 '*' $ac_mid + 1`
36645 fi
36646
36647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36648   done
36649 else
36650   echo "$as_me: failed program was:" >&5
36651 sed 's/^/| /' conftest.$ac_ext >&5
36652
36653         cat >conftest.$ac_ext <<_ACEOF
36654 /* confdefs.h.  */
36655 _ACEOF
36656 cat confdefs.h >>conftest.$ac_ext
36657 cat >>conftest.$ac_ext <<_ACEOF
36658 /* end confdefs.h.  */
36659 $ac_includes_default
36660    typedef int * ac__type_sizeof_;
36661 int
36662 main ()
36663 {
36664 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36665 test_array [0] = 0
36666
36667   ;
36668   return 0;
36669 }
36670 _ACEOF
36671 rm -f conftest.$ac_objext
36672 if { (ac_try="$ac_compile"
36673 case "(($ac_try" in
36674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36675   *) ac_try_echo=$ac_try;;
36676 esac
36677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36678   (eval "$ac_compile") 2>conftest.er1
36679   ac_status=$?
36680   grep -v '^ *+' conftest.er1 >conftest.err
36681   rm -f conftest.er1
36682   cat conftest.err >&5
36683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36684   (exit $ac_status); } && {
36685          test -z "$ac_c_werror_flag" ||
36686          test ! -s conftest.err
36687        } && test -s conftest.$ac_objext; then
36688   ac_hi=-1 ac_mid=-1
36689   while :; do
36690     cat >conftest.$ac_ext <<_ACEOF
36691 /* confdefs.h.  */
36692 _ACEOF
36693 cat confdefs.h >>conftest.$ac_ext
36694 cat >>conftest.$ac_ext <<_ACEOF
36695 /* end confdefs.h.  */
36696 $ac_includes_default
36697    typedef int * ac__type_sizeof_;
36698 int
36699 main ()
36700 {
36701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36702 test_array [0] = 0
36703
36704   ;
36705   return 0;
36706 }
36707 _ACEOF
36708 rm -f conftest.$ac_objext
36709 if { (ac_try="$ac_compile"
36710 case "(($ac_try" in
36711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36712   *) ac_try_echo=$ac_try;;
36713 esac
36714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36715   (eval "$ac_compile") 2>conftest.er1
36716   ac_status=$?
36717   grep -v '^ *+' conftest.er1 >conftest.err
36718   rm -f conftest.er1
36719   cat conftest.err >&5
36720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36721   (exit $ac_status); } && {
36722          test -z "$ac_c_werror_flag" ||
36723          test ! -s conftest.err
36724        } && test -s conftest.$ac_objext; then
36725   ac_lo=$ac_mid; break
36726 else
36727   echo "$as_me: failed program was:" >&5
36728 sed 's/^/| /' conftest.$ac_ext >&5
36729
36730         ac_hi=`expr '(' $ac_mid ')' - 1`
36731                         if test $ac_mid -le $ac_hi; then
36732                           ac_lo= ac_hi=
36733                           break
36734                         fi
36735                         ac_mid=`expr 2 '*' $ac_mid`
36736 fi
36737
36738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36739   done
36740 else
36741   echo "$as_me: failed program was:" >&5
36742 sed 's/^/| /' conftest.$ac_ext >&5
36743
36744         ac_lo= ac_hi=
36745 fi
36746
36747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36748 fi
36749
36750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36751 # Binary search between lo and hi bounds.
36752 while test "x$ac_lo" != "x$ac_hi"; do
36753   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36754   cat >conftest.$ac_ext <<_ACEOF
36755 /* confdefs.h.  */
36756 _ACEOF
36757 cat confdefs.h >>conftest.$ac_ext
36758 cat >>conftest.$ac_ext <<_ACEOF
36759 /* end confdefs.h.  */
36760 $ac_includes_default
36761    typedef int * ac__type_sizeof_;
36762 int
36763 main ()
36764 {
36765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36766 test_array [0] = 0
36767
36768   ;
36769   return 0;
36770 }
36771 _ACEOF
36772 rm -f conftest.$ac_objext
36773 if { (ac_try="$ac_compile"
36774 case "(($ac_try" in
36775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36776   *) ac_try_echo=$ac_try;;
36777 esac
36778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36779   (eval "$ac_compile") 2>conftest.er1
36780   ac_status=$?
36781   grep -v '^ *+' conftest.er1 >conftest.err
36782   rm -f conftest.er1
36783   cat conftest.err >&5
36784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36785   (exit $ac_status); } && {
36786          test -z "$ac_c_werror_flag" ||
36787          test ! -s conftest.err
36788        } && test -s conftest.$ac_objext; then
36789   ac_hi=$ac_mid
36790 else
36791   echo "$as_me: failed program was:" >&5
36792 sed 's/^/| /' conftest.$ac_ext >&5
36793
36794         ac_lo=`expr '(' $ac_mid ')' + 1`
36795 fi
36796
36797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36798 done
36799 case $ac_lo in
36800 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36801 '') if test "$ac_cv_type_int_p" = yes; then
36802      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36803 See \`config.log' for more details." >&5
36804 echo "$as_me: error: cannot compute sizeof (int *)
36805 See \`config.log' for more details." >&2;}
36806    { (exit 77); exit 77; }; }
36807    else
36808      ac_cv_sizeof_int_p=0
36809    fi ;;
36810 esac
36811 else
36812   cat >conftest.$ac_ext <<_ACEOF
36813 /* confdefs.h.  */
36814 _ACEOF
36815 cat confdefs.h >>conftest.$ac_ext
36816 cat >>conftest.$ac_ext <<_ACEOF
36817 /* end confdefs.h.  */
36818 $ac_includes_default
36819    typedef int * ac__type_sizeof_;
36820 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36821 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36822 #include <stdio.h>
36823 #include <stdlib.h>
36824 int
36825 main ()
36826 {
36827
36828   FILE *f = fopen ("conftest.val", "w");
36829   if (! f)
36830     return 1;
36831   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36832     {
36833       long int i = longval ();
36834       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36835         return 1;
36836       fprintf (f, "%ld\n", i);
36837     }
36838   else
36839     {
36840       unsigned long int i = ulongval ();
36841       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36842         return 1;
36843       fprintf (f, "%lu\n", i);
36844     }
36845   return ferror (f) || fclose (f) != 0;
36846
36847   ;
36848   return 0;
36849 }
36850 _ACEOF
36851 rm -f conftest$ac_exeext
36852 if { (ac_try="$ac_link"
36853 case "(($ac_try" in
36854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36855   *) ac_try_echo=$ac_try;;
36856 esac
36857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36858   (eval "$ac_link") 2>&5
36859   ac_status=$?
36860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36861   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36862   { (case "(($ac_try" in
36863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36864   *) ac_try_echo=$ac_try;;
36865 esac
36866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36867   (eval "$ac_try") 2>&5
36868   ac_status=$?
36869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870   (exit $ac_status); }; }; then
36871   ac_cv_sizeof_int_p=`cat conftest.val`
36872 else
36873   echo "$as_me: program exited with status $ac_status" >&5
36874 echo "$as_me: failed program was:" >&5
36875 sed 's/^/| /' conftest.$ac_ext >&5
36876
36877 ( exit $ac_status )
36878 if test "$ac_cv_type_int_p" = yes; then
36879      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36880 See \`config.log' for more details." >&5
36881 echo "$as_me: error: cannot compute sizeof (int *)
36882 See \`config.log' for more details." >&2;}
36883    { (exit 77); exit 77; }; }
36884    else
36885      ac_cv_sizeof_int_p=0
36886    fi
36887 fi
36888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36889 fi
36890 rm -f conftest.val
36891 fi
36892 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36893 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36894
36895
36896
36897 cat >>confdefs.h <<_ACEOF
36898 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36899 _ACEOF
36900
36901
36902
36903 { echo "$as_me:$LINENO: checking for u_int type" >&5
36904 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36905 if test "${ac_cv_have_u_int+set}" = set; then
36906   echo $ECHO_N "(cached) $ECHO_C" >&6
36907 else
36908
36909        cat >conftest.$ac_ext <<_ACEOF
36910 /* confdefs.h.  */
36911 _ACEOF
36912 cat confdefs.h >>conftest.$ac_ext
36913 cat >>conftest.$ac_ext <<_ACEOF
36914 /* end confdefs.h.  */
36915
36916               #include <sys/types.h>
36917
36918 int
36919 main ()
36920 {
36921
36922               u_int a; a = 1;
36923
36924   ;
36925   return 0;
36926 }
36927 _ACEOF
36928 rm -f conftest.$ac_objext
36929 if { (ac_try="$ac_compile"
36930 case "(($ac_try" in
36931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36932   *) ac_try_echo=$ac_try;;
36933 esac
36934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36935   (eval "$ac_compile") 2>conftest.er1
36936   ac_status=$?
36937   grep -v '^ *+' conftest.er1 >conftest.err
36938   rm -f conftest.er1
36939   cat conftest.err >&5
36940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36941   (exit $ac_status); } && {
36942          test -z "$ac_c_werror_flag" ||
36943          test ! -s conftest.err
36944        } && test -s conftest.$ac_objext; then
36945
36946               ac_cv_have_u_int="yes"
36947
36948 else
36949   echo "$as_me: failed program was:" >&5
36950 sed 's/^/| /' conftest.$ac_ext >&5
36951
36952
36953               ac_cv_have_u_int="no"
36954
36955
36956 fi
36957
36958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36959
36960
36961 fi
36962 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36963 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36964 if test "x$ac_cv_have_u_int" = "xyes" ; then
36965    cat >>confdefs.h <<\_ACEOF
36966 #define HAVE_U_INT 1
36967 _ACEOF
36968
36969    have_u_int=1
36970 fi
36971
36972 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36973 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36974 if test "${ac_cv_have_intmax_t+set}" = set; then
36975   echo $ECHO_N "(cached) $ECHO_C" >&6
36976 else
36977
36978        cat >conftest.$ac_ext <<_ACEOF
36979 /* confdefs.h.  */
36980 _ACEOF
36981 cat confdefs.h >>conftest.$ac_ext
36982 cat >>conftest.$ac_ext <<_ACEOF
36983 /* end confdefs.h.  */
36984
36985               #include <sys/types.h>
36986
36987 int
36988 main ()
36989 {
36990
36991               intmax_t a; a = 1;
36992
36993   ;
36994   return 0;
36995 }
36996 _ACEOF
36997 rm -f conftest.$ac_objext
36998 if { (ac_try="$ac_compile"
36999 case "(($ac_try" in
37000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37001   *) ac_try_echo=$ac_try;;
37002 esac
37003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37004   (eval "$ac_compile") 2>conftest.er1
37005   ac_status=$?
37006   grep -v '^ *+' conftest.er1 >conftest.err
37007   rm -f conftest.er1
37008   cat conftest.err >&5
37009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010   (exit $ac_status); } && {
37011          test -z "$ac_c_werror_flag" ||
37012          test ! -s conftest.err
37013        } && test -s conftest.$ac_objext; then
37014
37015               ac_cv_have_intmax_t="yes"
37016
37017 else
37018   echo "$as_me: failed program was:" >&5
37019 sed 's/^/| /' conftest.$ac_ext >&5
37020
37021
37022               cat >conftest.$ac_ext <<_ACEOF
37023 /* confdefs.h.  */
37024 _ACEOF
37025 cat confdefs.h >>conftest.$ac_ext
37026 cat >>conftest.$ac_ext <<_ACEOF
37027 /* end confdefs.h.  */
37028
37029                      #include <stdint.h>
37030
37031 int
37032 main ()
37033 {
37034
37035                      intmax_t a; a = 1;
37036
37037   ;
37038   return 0;
37039 }
37040 _ACEOF
37041 rm -f conftest.$ac_objext
37042 if { (ac_try="$ac_compile"
37043 case "(($ac_try" in
37044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37045   *) ac_try_echo=$ac_try;;
37046 esac
37047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37048   (eval "$ac_compile") 2>conftest.er1
37049   ac_status=$?
37050   grep -v '^ *+' conftest.er1 >conftest.err
37051   rm -f conftest.er1
37052   cat conftest.err >&5
37053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054   (exit $ac_status); } && {
37055          test -z "$ac_c_werror_flag" ||
37056          test ! -s conftest.err
37057        } && test -s conftest.$ac_objext; then
37058
37059                      ac_cv_have_intmax_t="yes"
37060
37061 else
37062   echo "$as_me: failed program was:" >&5
37063 sed 's/^/| /' conftest.$ac_ext >&5
37064
37065
37066                      ac_cv_have_intmax_t="no"
37067
37068
37069 fi
37070
37071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37072
37073
37074 fi
37075
37076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37077
37078
37079 fi
37080 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37081 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37082 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37083    cat >>confdefs.h <<\_ACEOF
37084 #define HAVE_INTMAX_T 1
37085 _ACEOF
37086
37087    have_intmax_t=1
37088 fi
37089
37090 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37091 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37092 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37093   echo $ECHO_N "(cached) $ECHO_C" >&6
37094 else
37095
37096        cat >conftest.$ac_ext <<_ACEOF
37097 /* confdefs.h.  */
37098 _ACEOF
37099 cat confdefs.h >>conftest.$ac_ext
37100 cat >>conftest.$ac_ext <<_ACEOF
37101 /* end confdefs.h.  */
37102
37103               #include <sys/types.h>
37104
37105 int
37106 main ()
37107 {
37108
37109               u_intmax_t a; a = 1;
37110
37111   ;
37112   return 0;
37113 }
37114 _ACEOF
37115 rm -f conftest.$ac_objext
37116 if { (ac_try="$ac_compile"
37117 case "(($ac_try" in
37118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37119   *) ac_try_echo=$ac_try;;
37120 esac
37121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37122   (eval "$ac_compile") 2>conftest.er1
37123   ac_status=$?
37124   grep -v '^ *+' conftest.er1 >conftest.err
37125   rm -f conftest.er1
37126   cat conftest.err >&5
37127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128   (exit $ac_status); } && {
37129          test -z "$ac_c_werror_flag" ||
37130          test ! -s conftest.err
37131        } && test -s conftest.$ac_objext; then
37132
37133               ac_cv_have_u_intmax_t="yes"
37134
37135 else
37136   echo "$as_me: failed program was:" >&5
37137 sed 's/^/| /' conftest.$ac_ext >&5
37138
37139
37140               cat >conftest.$ac_ext <<_ACEOF
37141 /* confdefs.h.  */
37142 _ACEOF
37143 cat confdefs.h >>conftest.$ac_ext
37144 cat >>conftest.$ac_ext <<_ACEOF
37145 /* end confdefs.h.  */
37146
37147                      #include <stdint.h>
37148
37149 int
37150 main ()
37151 {
37152
37153                     u_intmax_t a; a = 1;
37154
37155   ;
37156   return 0;
37157 }
37158 _ACEOF
37159 rm -f conftest.$ac_objext
37160 if { (ac_try="$ac_compile"
37161 case "(($ac_try" in
37162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37163   *) ac_try_echo=$ac_try;;
37164 esac
37165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37166   (eval "$ac_compile") 2>conftest.er1
37167   ac_status=$?
37168   grep -v '^ *+' conftest.er1 >conftest.err
37169   rm -f conftest.er1
37170   cat conftest.err >&5
37171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37172   (exit $ac_status); } && {
37173          test -z "$ac_c_werror_flag" ||
37174          test ! -s conftest.err
37175        } && test -s conftest.$ac_objext; then
37176
37177                     ac_cv_have_u_intmax_t="yes"
37178
37179 else
37180   echo "$as_me: failed program was:" >&5
37181 sed 's/^/| /' conftest.$ac_ext >&5
37182
37183
37184                     ac_cv_have_u_intmax_t="no"
37185
37186
37187 fi
37188
37189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37190
37191
37192 fi
37193
37194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37195
37196
37197 fi
37198 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37199 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37200 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37201    cat >>confdefs.h <<\_ACEOF
37202 #define HAVE_U_INTMAX_T 1
37203 _ACEOF
37204
37205    have_u_intmax_t=1
37206 fi
37207
37208 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37209 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37210 if test "${ac_cv_have_intxx_t+set}" = set; then
37211   echo $ECHO_N "(cached) $ECHO_C" >&6
37212 else
37213
37214        cat >conftest.$ac_ext <<_ACEOF
37215 /* confdefs.h.  */
37216 _ACEOF
37217 cat confdefs.h >>conftest.$ac_ext
37218 cat >>conftest.$ac_ext <<_ACEOF
37219 /* end confdefs.h.  */
37220
37221               #include <sys/types.h>
37222
37223 int
37224 main ()
37225 {
37226
37227               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37228
37229   ;
37230   return 0;
37231 }
37232 _ACEOF
37233 rm -f conftest.$ac_objext
37234 if { (ac_try="$ac_compile"
37235 case "(($ac_try" in
37236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37237   *) ac_try_echo=$ac_try;;
37238 esac
37239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37240   (eval "$ac_compile") 2>conftest.er1
37241   ac_status=$?
37242   grep -v '^ *+' conftest.er1 >conftest.err
37243   rm -f conftest.er1
37244   cat conftest.err >&5
37245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37246   (exit $ac_status); } && {
37247          test -z "$ac_c_werror_flag" ||
37248          test ! -s conftest.err
37249        } && test -s conftest.$ac_objext; then
37250
37251               ac_cv_have_intxx_t="yes"
37252
37253 else
37254   echo "$as_me: failed program was:" >&5
37255 sed 's/^/| /' conftest.$ac_ext >&5
37256
37257
37258               ac_cv_have_intxx_t="no"
37259
37260
37261 fi
37262
37263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37264
37265
37266 fi
37267 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37268 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37269 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37270    cat >>confdefs.h <<\_ACEOF
37271 #define HAVE_INTXX_T 1
37272 _ACEOF
37273
37274    have_intxx_t=1
37275 fi
37276
37277 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37278 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37279 if test "${ac_cv_have_int64_t+set}" = set; then
37280   echo $ECHO_N "(cached) $ECHO_C" >&6
37281 else
37282
37283        cat >conftest.$ac_ext <<_ACEOF
37284 /* confdefs.h.  */
37285 _ACEOF
37286 cat confdefs.h >>conftest.$ac_ext
37287 cat >>conftest.$ac_ext <<_ACEOF
37288 /* end confdefs.h.  */
37289
37290               #include <sys/types.h>
37291
37292 int
37293 main ()
37294 {
37295
37296               int64_t a; a = 1;
37297
37298   ;
37299   return 0;
37300 }
37301 _ACEOF
37302 rm -f conftest.$ac_objext
37303 if { (ac_try="$ac_compile"
37304 case "(($ac_try" in
37305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37306   *) ac_try_echo=$ac_try;;
37307 esac
37308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37309   (eval "$ac_compile") 2>conftest.er1
37310   ac_status=$?
37311   grep -v '^ *+' conftest.er1 >conftest.err
37312   rm -f conftest.er1
37313   cat conftest.err >&5
37314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37315   (exit $ac_status); } && {
37316          test -z "$ac_c_werror_flag" ||
37317          test ! -s conftest.err
37318        } && test -s conftest.$ac_objext; then
37319
37320               ac_cv_have_int64_t="yes"
37321
37322 else
37323   echo "$as_me: failed program was:" >&5
37324 sed 's/^/| /' conftest.$ac_ext >&5
37325
37326
37327               ac_cv_have_int64_t="no"
37328
37329
37330 fi
37331
37332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37333
37334
37335 fi
37336 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37337 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37338 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37339    cat >>confdefs.h <<\_ACEOF
37340 #define HAVE_INT64_T 1
37341 _ACEOF
37342
37343    have_int64_t=1
37344 fi
37345
37346 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37347 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37348 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37349   echo $ECHO_N "(cached) $ECHO_C" >&6
37350 else
37351
37352        cat >conftest.$ac_ext <<_ACEOF
37353 /* confdefs.h.  */
37354 _ACEOF
37355 cat confdefs.h >>conftest.$ac_ext
37356 cat >>conftest.$ac_ext <<_ACEOF
37357 /* end confdefs.h.  */
37358
37359               #include <sys/types.h>
37360
37361 int
37362 main ()
37363 {
37364
37365               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37366
37367   ;
37368   return 0;
37369 }
37370 _ACEOF
37371 rm -f conftest.$ac_objext
37372 if { (ac_try="$ac_compile"
37373 case "(($ac_try" in
37374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37375   *) ac_try_echo=$ac_try;;
37376 esac
37377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37378   (eval "$ac_compile") 2>conftest.er1
37379   ac_status=$?
37380   grep -v '^ *+' conftest.er1 >conftest.err
37381   rm -f conftest.er1
37382   cat conftest.err >&5
37383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37384   (exit $ac_status); } && {
37385          test -z "$ac_c_werror_flag" ||
37386          test ! -s conftest.err
37387        } && test -s conftest.$ac_objext; then
37388
37389              ac_cv_have_u_intxx_t="yes"
37390
37391 else
37392   echo "$as_me: failed program was:" >&5
37393 sed 's/^/| /' conftest.$ac_ext >&5
37394
37395
37396              ac_cv_have_u_intxx_t="no"
37397
37398
37399 fi
37400
37401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37402
37403
37404 fi
37405 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37406 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37407 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37408    cat >>confdefs.h <<\_ACEOF
37409 #define HAVE_U_INTXX_T 1
37410 _ACEOF
37411
37412    have_u_intxx_t=1
37413 fi
37414
37415 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37416 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37417 if test "${ac_cv_have_u_int64_t+set}" = set; then
37418   echo $ECHO_N "(cached) $ECHO_C" >&6
37419 else
37420
37421        cat >conftest.$ac_ext <<_ACEOF
37422 /* confdefs.h.  */
37423 _ACEOF
37424 cat confdefs.h >>conftest.$ac_ext
37425 cat >>conftest.$ac_ext <<_ACEOF
37426 /* end confdefs.h.  */
37427
37428               #include <sys/types.h>
37429
37430 int
37431 main ()
37432 {
37433
37434               u_int64_t a; a = 1;
37435
37436   ;
37437   return 0;
37438 }
37439 _ACEOF
37440 rm -f conftest.$ac_objext
37441 if { (ac_try="$ac_compile"
37442 case "(($ac_try" in
37443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37444   *) ac_try_echo=$ac_try;;
37445 esac
37446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37447   (eval "$ac_compile") 2>conftest.er1
37448   ac_status=$?
37449   grep -v '^ *+' conftest.er1 >conftest.err
37450   rm -f conftest.er1
37451   cat conftest.err >&5
37452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453   (exit $ac_status); } && {
37454          test -z "$ac_c_werror_flag" ||
37455          test ! -s conftest.err
37456        } && test -s conftest.$ac_objext; then
37457
37458              ac_cv_have_u_int64_t="yes"
37459
37460 else
37461   echo "$as_me: failed program was:" >&5
37462 sed 's/^/| /' conftest.$ac_ext >&5
37463
37464
37465              ac_cv_have_u_int64_t="no"
37466
37467
37468 fi
37469
37470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37471
37472
37473 fi
37474 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37475 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37476 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37477    cat >>confdefs.h <<\_ACEOF
37478 #define HAVE_U_INT64_T 1
37479 _ACEOF
37480
37481    have_u_int64_t=1
37482 fi
37483
37484 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37485     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37486 then
37487    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37488 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37489    cat >conftest.$ac_ext <<_ACEOF
37490 /* confdefs.h.  */
37491 _ACEOF
37492 cat confdefs.h >>conftest.$ac_ext
37493 cat >>conftest.$ac_ext <<_ACEOF
37494 /* end confdefs.h.  */
37495
37496           #include <sys/bitypes.h>
37497
37498 int
37499 main ()
37500 {
37501
37502           int8_t a; int16_t b; int32_t c;
37503           u_int8_t e; u_int16_t f; u_int32_t g;
37504           a = b = c = e = f = g = 1;
37505
37506   ;
37507   return 0;
37508 }
37509 _ACEOF
37510 rm -f conftest.$ac_objext
37511 if { (ac_try="$ac_compile"
37512 case "(($ac_try" in
37513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37514   *) ac_try_echo=$ac_try;;
37515 esac
37516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37517   (eval "$ac_compile") 2>conftest.er1
37518   ac_status=$?
37519   grep -v '^ *+' conftest.er1 >conftest.err
37520   rm -f conftest.er1
37521   cat conftest.err >&5
37522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37523   (exit $ac_status); } && {
37524          test -z "$ac_c_werror_flag" ||
37525          test ! -s conftest.err
37526        } && test -s conftest.$ac_objext; then
37527
37528           cat >>confdefs.h <<\_ACEOF
37529 #define HAVE_U_INTXX_T 1
37530 _ACEOF
37531
37532           cat >>confdefs.h <<\_ACEOF
37533 #define HAVE_INTXX_T 1
37534 _ACEOF
37535
37536           cat >>confdefs.h <<\_ACEOF
37537 #define HAVE_SYS_BITYPES_H 1
37538 _ACEOF
37539
37540           { echo "$as_me:$LINENO: result: yes" >&5
37541 echo "${ECHO_T}yes" >&6; }
37542
37543 else
37544   echo "$as_me: failed program was:" >&5
37545 sed 's/^/| /' conftest.$ac_ext >&5
37546
37547
37548           { echo "$as_me:$LINENO: result: no" >&5
37549 echo "${ECHO_T}no" >&6; }
37550
37551
37552 fi
37553
37554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37555 fi
37556
37557 if test -z "$have_u_intxx_t" ; then
37558    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37559 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37560 if test "${ac_cv_have_uintxx_t+set}" = set; then
37561   echo $ECHO_N "(cached) $ECHO_C" >&6
37562 else
37563
37564           cat >conftest.$ac_ext <<_ACEOF
37565 /* confdefs.h.  */
37566 _ACEOF
37567 cat confdefs.h >>conftest.$ac_ext
37568 cat >>conftest.$ac_ext <<_ACEOF
37569 /* end confdefs.h.  */
37570
37571                  #include <sys/types.h>
37572
37573 int
37574 main ()
37575 {
37576
37577                  uint8_t a; uint16_t b;
37578                  uint32_t c; a = b = c = 1;
37579
37580   ;
37581   return 0;
37582 }
37583 _ACEOF
37584 rm -f conftest.$ac_objext
37585 if { (ac_try="$ac_compile"
37586 case "(($ac_try" in
37587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37588   *) ac_try_echo=$ac_try;;
37589 esac
37590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37591   (eval "$ac_compile") 2>conftest.er1
37592   ac_status=$?
37593   grep -v '^ *+' conftest.er1 >conftest.err
37594   rm -f conftest.er1
37595   cat conftest.err >&5
37596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597   (exit $ac_status); } && {
37598          test -z "$ac_c_werror_flag" ||
37599          test ! -s conftest.err
37600        } && test -s conftest.$ac_objext; then
37601
37602                 ac_cv_have_uintxx_t="yes"
37603
37604 else
37605   echo "$as_me: failed program was:" >&5
37606 sed 's/^/| /' conftest.$ac_ext >&5
37607
37608
37609                 ac_cv_have_uintxx_t="no"
37610
37611
37612 fi
37613
37614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37615
37616
37617 fi
37618 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37619 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37620    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37621       cat >>confdefs.h <<\_ACEOF
37622 #define HAVE_UINTXX_T 1
37623 _ACEOF
37624
37625    fi
37626 fi
37627
37628 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37629     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37630 then
37631    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37632 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37633    cat >conftest.$ac_ext <<_ACEOF
37634 /* confdefs.h.  */
37635 _ACEOF
37636 cat confdefs.h >>conftest.$ac_ext
37637 cat >>conftest.$ac_ext <<_ACEOF
37638 /* end confdefs.h.  */
37639
37640           #include <sys/bitypes.h>
37641
37642 int
37643 main ()
37644 {
37645
37646           int64_t a; u_int64_t b;
37647           a = b = 1;
37648
37649   ;
37650   return 0;
37651 }
37652 _ACEOF
37653 rm -f conftest.$ac_objext
37654 if { (ac_try="$ac_compile"
37655 case "(($ac_try" in
37656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37657   *) ac_try_echo=$ac_try;;
37658 esac
37659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37660   (eval "$ac_compile") 2>conftest.er1
37661   ac_status=$?
37662   grep -v '^ *+' conftest.er1 >conftest.err
37663   rm -f conftest.er1
37664   cat conftest.err >&5
37665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666   (exit $ac_status); } && {
37667          test -z "$ac_c_werror_flag" ||
37668          test ! -s conftest.err
37669        } && test -s conftest.$ac_objext; then
37670
37671           cat >>confdefs.h <<\_ACEOF
37672 #define HAVE_U_INT64_T 1
37673 _ACEOF
37674
37675           cat >>confdefs.h <<\_ACEOF
37676 #define HAVE_INT64_T 1
37677 _ACEOF
37678
37679           { echo "$as_me:$LINENO: result: yes" >&5
37680 echo "${ECHO_T}yes" >&6; }
37681
37682 else
37683   echo "$as_me: failed program was:" >&5
37684 sed 's/^/| /' conftest.$ac_ext >&5
37685
37686
37687           { echo "$as_me:$LINENO: result: no" >&5
37688 echo "${ECHO_T}no" >&6; }
37689
37690
37691 fi
37692
37693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37694 fi
37695
37696 if (test -z "$have_uintxx_t" && \
37697     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37698 then
37699    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37700 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37701    cat >conftest.$ac_ext <<_ACEOF
37702 /* confdefs.h.  */
37703 _ACEOF
37704 cat confdefs.h >>conftest.$ac_ext
37705 cat >>conftest.$ac_ext <<_ACEOF
37706 /* end confdefs.h.  */
37707
37708           #include <sys/bitypes.h>
37709
37710 int
37711 main ()
37712 {
37713
37714           uint8_t a; uint16_t b;
37715           uint32_t c; a = b = c = 1;
37716
37717   ;
37718   return 0;
37719 }
37720 _ACEOF
37721 rm -f conftest.$ac_objext
37722 if { (ac_try="$ac_compile"
37723 case "(($ac_try" in
37724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37725   *) ac_try_echo=$ac_try;;
37726 esac
37727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37728   (eval "$ac_compile") 2>conftest.er1
37729   ac_status=$?
37730   grep -v '^ *+' conftest.er1 >conftest.err
37731   rm -f conftest.er1
37732   cat conftest.err >&5
37733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37734   (exit $ac_status); } && {
37735          test -z "$ac_c_werror_flag" ||
37736          test ! -s conftest.err
37737        } && test -s conftest.$ac_objext; then
37738
37739           cat >>confdefs.h <<\_ACEOF
37740 #define HAVE_UINTXX_T 1
37741 _ACEOF
37742
37743           { echo "$as_me:$LINENO: result: yes" >&5
37744 echo "${ECHO_T}yes" >&6; }
37745
37746 else
37747   echo "$as_me: failed program was:" >&5
37748 sed 's/^/| /' conftest.$ac_ext >&5
37749
37750
37751           { echo "$as_me:$LINENO: result: no" >&5
37752 echo "${ECHO_T}no" >&6; }
37753
37754
37755 fi
37756
37757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37758 fi
37759
37760
37761
37762
37763
37764
37765
37766
37767
37768
37769
37770
37771
37772
37773 for ac_func in \
37774    fork \
37775    getcwd \
37776    gethostname \
37777    getpid \
37778    gettimeofday \
37779    setpgid \
37780    setpgrp \
37781    setsid \
37782    signal \
37783    strerror \
37784    strncmp \
37785    strncpy \
37786    vfprintf \
37787
37788 do
37789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37790 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37793   echo $ECHO_N "(cached) $ECHO_C" >&6
37794 else
37795   cat >conftest.$ac_ext <<_ACEOF
37796 /* confdefs.h.  */
37797 _ACEOF
37798 cat confdefs.h >>conftest.$ac_ext
37799 cat >>conftest.$ac_ext <<_ACEOF
37800 /* end confdefs.h.  */
37801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37803 #define $ac_func innocuous_$ac_func
37804
37805 /* System header to define __stub macros and hopefully few prototypes,
37806     which can conflict with char $ac_func (); below.
37807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37808     <limits.h> exists even on freestanding compilers.  */
37809
37810 #ifdef __STDC__
37811 # include <limits.h>
37812 #else
37813 # include <assert.h>
37814 #endif
37815
37816 #undef $ac_func
37817
37818 /* Override any GCC internal prototype to avoid an error.
37819    Use char because int might match the return type of a GCC
37820    builtin and then its argument prototype would still apply.  */
37821 #ifdef __cplusplus
37822 extern "C"
37823 #endif
37824 char $ac_func ();
37825 /* The GNU C library defines this for functions which it implements
37826     to always fail with ENOSYS.  Some functions are actually named
37827     something starting with __ and the normal name is an alias.  */
37828 #if defined __stub_$ac_func || defined __stub___$ac_func
37829 choke me
37830 #endif
37831
37832 int
37833 main ()
37834 {
37835 return $ac_func ();
37836   ;
37837   return 0;
37838 }
37839 _ACEOF
37840 rm -f conftest.$ac_objext conftest$ac_exeext
37841 if { (ac_try="$ac_link"
37842 case "(($ac_try" in
37843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37844   *) ac_try_echo=$ac_try;;
37845 esac
37846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37847   (eval "$ac_link") 2>conftest.er1
37848   ac_status=$?
37849   grep -v '^ *+' conftest.er1 >conftest.err
37850   rm -f conftest.er1
37851   cat conftest.err >&5
37852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37853   (exit $ac_status); } && {
37854          test -z "$ac_c_werror_flag" ||
37855          test ! -s conftest.err
37856        } && test -s conftest$ac_exeext &&
37857        $as_test_x conftest$ac_exeext; then
37858   eval "$as_ac_var=yes"
37859 else
37860   echo "$as_me: failed program was:" >&5
37861 sed 's/^/| /' conftest.$ac_ext >&5
37862
37863         eval "$as_ac_var=no"
37864 fi
37865
37866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37867       conftest$ac_exeext conftest.$ac_ext
37868 fi
37869 ac_res=`eval echo '${'$as_ac_var'}'`
37870                { echo "$as_me:$LINENO: result: $ac_res" >&5
37871 echo "${ECHO_T}$ac_res" >&6; }
37872 if test `eval echo '${'$as_ac_var'}'` = yes; then
37873   cat >>confdefs.h <<_ACEOF
37874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37875 _ACEOF
37876
37877 else
37878   echo 'configure: cannot find needed function.'; exit 1
37879
37880 fi
37881 done
37882
37883
37884
37885 for ac_func in fchdir
37886 do
37887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37891   echo $ECHO_N "(cached) $ECHO_C" >&6
37892 else
37893   cat >conftest.$ac_ext <<_ACEOF
37894 /* confdefs.h.  */
37895 _ACEOF
37896 cat confdefs.h >>conftest.$ac_ext
37897 cat >>conftest.$ac_ext <<_ACEOF
37898 /* end confdefs.h.  */
37899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37901 #define $ac_func innocuous_$ac_func
37902
37903 /* System header to define __stub macros and hopefully few prototypes,
37904     which can conflict with char $ac_func (); below.
37905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37906     <limits.h> exists even on freestanding compilers.  */
37907
37908 #ifdef __STDC__
37909 # include <limits.h>
37910 #else
37911 # include <assert.h>
37912 #endif
37913
37914 #undef $ac_func
37915
37916 /* Override any GCC internal prototype to avoid an error.
37917    Use char because int might match the return type of a GCC
37918    builtin and then its argument prototype would still apply.  */
37919 #ifdef __cplusplus
37920 extern "C"
37921 #endif
37922 char $ac_func ();
37923 /* The GNU C library defines this for functions which it implements
37924     to always fail with ENOSYS.  Some functions are actually named
37925     something starting with __ and the normal name is an alias.  */
37926 #if defined __stub_$ac_func || defined __stub___$ac_func
37927 choke me
37928 #endif
37929
37930 int
37931 main ()
37932 {
37933 return $ac_func ();
37934   ;
37935   return 0;
37936 }
37937 _ACEOF
37938 rm -f conftest.$ac_objext conftest$ac_exeext
37939 if { (ac_try="$ac_link"
37940 case "(($ac_try" in
37941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37942   *) ac_try_echo=$ac_try;;
37943 esac
37944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37945   (eval "$ac_link") 2>conftest.er1
37946   ac_status=$?
37947   grep -v '^ *+' conftest.er1 >conftest.err
37948   rm -f conftest.er1
37949   cat conftest.err >&5
37950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37951   (exit $ac_status); } && {
37952          test -z "$ac_c_werror_flag" ||
37953          test ! -s conftest.err
37954        } && test -s conftest$ac_exeext &&
37955        $as_test_x conftest$ac_exeext; then
37956   eval "$as_ac_var=yes"
37957 else
37958   echo "$as_me: failed program was:" >&5
37959 sed 's/^/| /' conftest.$ac_ext >&5
37960
37961         eval "$as_ac_var=no"
37962 fi
37963
37964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37965       conftest$ac_exeext conftest.$ac_ext
37966 fi
37967 ac_res=`eval echo '${'$as_ac_var'}'`
37968                { echo "$as_me:$LINENO: result: $ac_res" >&5
37969 echo "${ECHO_T}$ac_res" >&6; }
37970 if test `eval echo '${'$as_ac_var'}'` = yes; then
37971   cat >>confdefs.h <<_ACEOF
37972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37973 _ACEOF
37974  cat >>confdefs.h <<\_ACEOF
37975 #define HAVE_FCHDIR 1
37976 _ACEOF
37977
37978 fi
37979 done
37980
37981
37982 for ac_func in strtoll
37983 do
37984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37988   echo $ECHO_N "(cached) $ECHO_C" >&6
37989 else
37990   cat >conftest.$ac_ext <<_ACEOF
37991 /* confdefs.h.  */
37992 _ACEOF
37993 cat confdefs.h >>conftest.$ac_ext
37994 cat >>conftest.$ac_ext <<_ACEOF
37995 /* end confdefs.h.  */
37996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37998 #define $ac_func innocuous_$ac_func
37999
38000 /* System header to define __stub macros and hopefully few prototypes,
38001     which can conflict with char $ac_func (); below.
38002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38003     <limits.h> exists even on freestanding compilers.  */
38004
38005 #ifdef __STDC__
38006 # include <limits.h>
38007 #else
38008 # include <assert.h>
38009 #endif
38010
38011 #undef $ac_func
38012
38013 /* Override any GCC internal prototype to avoid an error.
38014    Use char because int might match the return type of a GCC
38015    builtin and then its argument prototype would still apply.  */
38016 #ifdef __cplusplus
38017 extern "C"
38018 #endif
38019 char $ac_func ();
38020 /* The GNU C library defines this for functions which it implements
38021     to always fail with ENOSYS.  Some functions are actually named
38022     something starting with __ and the normal name is an alias.  */
38023 #if defined __stub_$ac_func || defined __stub___$ac_func
38024 choke me
38025 #endif
38026
38027 int
38028 main ()
38029 {
38030 return $ac_func ();
38031   ;
38032   return 0;
38033 }
38034 _ACEOF
38035 rm -f conftest.$ac_objext conftest$ac_exeext
38036 if { (ac_try="$ac_link"
38037 case "(($ac_try" in
38038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38039   *) ac_try_echo=$ac_try;;
38040 esac
38041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38042   (eval "$ac_link") 2>conftest.er1
38043   ac_status=$?
38044   grep -v '^ *+' conftest.er1 >conftest.err
38045   rm -f conftest.er1
38046   cat conftest.err >&5
38047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048   (exit $ac_status); } && {
38049          test -z "$ac_c_werror_flag" ||
38050          test ! -s conftest.err
38051        } && test -s conftest$ac_exeext &&
38052        $as_test_x conftest$ac_exeext; then
38053   eval "$as_ac_var=yes"
38054 else
38055   echo "$as_me: failed program was:" >&5
38056 sed 's/^/| /' conftest.$ac_ext >&5
38057
38058         eval "$as_ac_var=no"
38059 fi
38060
38061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38062       conftest$ac_exeext conftest.$ac_ext
38063 fi
38064 ac_res=`eval echo '${'$as_ac_var'}'`
38065                { echo "$as_me:$LINENO: result: $ac_res" >&5
38066 echo "${ECHO_T}$ac_res" >&6; }
38067 if test `eval echo '${'$as_ac_var'}'` = yes; then
38068   cat >>confdefs.h <<_ACEOF
38069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38070 _ACEOF
38071  cat >>confdefs.h <<\_ACEOF
38072 #define HAVE_STRTOLL 1
38073 _ACEOF
38074
38075 fi
38076 done
38077
38078
38079 for ac_func in posix_fadvise
38080 do
38081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38085   echo $ECHO_N "(cached) $ECHO_C" >&6
38086 else
38087   cat >conftest.$ac_ext <<_ACEOF
38088 /* confdefs.h.  */
38089 _ACEOF
38090 cat confdefs.h >>conftest.$ac_ext
38091 cat >>conftest.$ac_ext <<_ACEOF
38092 /* end confdefs.h.  */
38093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38095 #define $ac_func innocuous_$ac_func
38096
38097 /* System header to define __stub macros and hopefully few prototypes,
38098     which can conflict with char $ac_func (); below.
38099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38100     <limits.h> exists even on freestanding compilers.  */
38101
38102 #ifdef __STDC__
38103 # include <limits.h>
38104 #else
38105 # include <assert.h>
38106 #endif
38107
38108 #undef $ac_func
38109
38110 /* Override any GCC internal prototype to avoid an error.
38111    Use char because int might match the return type of a GCC
38112    builtin and then its argument prototype would still apply.  */
38113 #ifdef __cplusplus
38114 extern "C"
38115 #endif
38116 char $ac_func ();
38117 /* The GNU C library defines this for functions which it implements
38118     to always fail with ENOSYS.  Some functions are actually named
38119     something starting with __ and the normal name is an alias.  */
38120 #if defined __stub_$ac_func || defined __stub___$ac_func
38121 choke me
38122 #endif
38123
38124 int
38125 main ()
38126 {
38127 return $ac_func ();
38128   ;
38129   return 0;
38130 }
38131 _ACEOF
38132 rm -f conftest.$ac_objext conftest$ac_exeext
38133 if { (ac_try="$ac_link"
38134 case "(($ac_try" in
38135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38136   *) ac_try_echo=$ac_try;;
38137 esac
38138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38139   (eval "$ac_link") 2>conftest.er1
38140   ac_status=$?
38141   grep -v '^ *+' conftest.er1 >conftest.err
38142   rm -f conftest.er1
38143   cat conftest.err >&5
38144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38145   (exit $ac_status); } && {
38146          test -z "$ac_c_werror_flag" ||
38147          test ! -s conftest.err
38148        } && test -s conftest$ac_exeext &&
38149        $as_test_x conftest$ac_exeext; then
38150   eval "$as_ac_var=yes"
38151 else
38152   echo "$as_me: failed program was:" >&5
38153 sed 's/^/| /' conftest.$ac_ext >&5
38154
38155         eval "$as_ac_var=no"
38156 fi
38157
38158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38159       conftest$ac_exeext conftest.$ac_ext
38160 fi
38161 ac_res=`eval echo '${'$as_ac_var'}'`
38162                { echo "$as_me:$LINENO: result: $ac_res" >&5
38163 echo "${ECHO_T}$ac_res" >&6; }
38164 if test `eval echo '${'$as_ac_var'}'` = yes; then
38165   cat >>confdefs.h <<_ACEOF
38166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38167 _ACEOF
38168
38169 fi
38170 done
38171
38172
38173 for ac_func in fdatasync
38174 do
38175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38179   echo $ECHO_N "(cached) $ECHO_C" >&6
38180 else
38181   cat >conftest.$ac_ext <<_ACEOF
38182 /* confdefs.h.  */
38183 _ACEOF
38184 cat confdefs.h >>conftest.$ac_ext
38185 cat >>conftest.$ac_ext <<_ACEOF
38186 /* end confdefs.h.  */
38187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38189 #define $ac_func innocuous_$ac_func
38190
38191 /* System header to define __stub macros and hopefully few prototypes,
38192     which can conflict with char $ac_func (); below.
38193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38194     <limits.h> exists even on freestanding compilers.  */
38195
38196 #ifdef __STDC__
38197 # include <limits.h>
38198 #else
38199 # include <assert.h>
38200 #endif
38201
38202 #undef $ac_func
38203
38204 /* Override any GCC internal prototype to avoid an error.
38205    Use char because int might match the return type of a GCC
38206    builtin and then its argument prototype would still apply.  */
38207 #ifdef __cplusplus
38208 extern "C"
38209 #endif
38210 char $ac_func ();
38211 /* The GNU C library defines this for functions which it implements
38212     to always fail with ENOSYS.  Some functions are actually named
38213     something starting with __ and the normal name is an alias.  */
38214 #if defined __stub_$ac_func || defined __stub___$ac_func
38215 choke me
38216 #endif
38217
38218 int
38219 main ()
38220 {
38221 return $ac_func ();
38222   ;
38223   return 0;
38224 }
38225 _ACEOF
38226 rm -f conftest.$ac_objext conftest$ac_exeext
38227 if { (ac_try="$ac_link"
38228 case "(($ac_try" in
38229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38230   *) ac_try_echo=$ac_try;;
38231 esac
38232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38233   (eval "$ac_link") 2>conftest.er1
38234   ac_status=$?
38235   grep -v '^ *+' conftest.er1 >conftest.err
38236   rm -f conftest.er1
38237   cat conftest.err >&5
38238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38239   (exit $ac_status); } && {
38240          test -z "$ac_c_werror_flag" ||
38241          test ! -s conftest.err
38242        } && test -s conftest$ac_exeext &&
38243        $as_test_x conftest$ac_exeext; then
38244   eval "$as_ac_var=yes"
38245 else
38246   echo "$as_me: failed program was:" >&5
38247 sed 's/^/| /' conftest.$ac_ext >&5
38248
38249         eval "$as_ac_var=no"
38250 fi
38251
38252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38253       conftest$ac_exeext conftest.$ac_ext
38254 fi
38255 ac_res=`eval echo '${'$as_ac_var'}'`
38256                { echo "$as_me:$LINENO: result: $ac_res" >&5
38257 echo "${ECHO_T}$ac_res" >&6; }
38258 if test `eval echo '${'$as_ac_var'}'` = yes; then
38259   cat >>confdefs.h <<_ACEOF
38260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38261 _ACEOF
38262
38263 fi
38264 done
38265
38266
38267
38268 for ac_func in chflags
38269 do
38270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38274   echo $ECHO_N "(cached) $ECHO_C" >&6
38275 else
38276   cat >conftest.$ac_ext <<_ACEOF
38277 /* confdefs.h.  */
38278 _ACEOF
38279 cat confdefs.h >>conftest.$ac_ext
38280 cat >>conftest.$ac_ext <<_ACEOF
38281 /* end confdefs.h.  */
38282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38284 #define $ac_func innocuous_$ac_func
38285
38286 /* System header to define __stub macros and hopefully few prototypes,
38287     which can conflict with char $ac_func (); below.
38288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38289     <limits.h> exists even on freestanding compilers.  */
38290
38291 #ifdef __STDC__
38292 # include <limits.h>
38293 #else
38294 # include <assert.h>
38295 #endif
38296
38297 #undef $ac_func
38298
38299 /* Override any GCC internal prototype to avoid an error.
38300    Use char because int might match the return type of a GCC
38301    builtin and then its argument prototype would still apply.  */
38302 #ifdef __cplusplus
38303 extern "C"
38304 #endif
38305 char $ac_func ();
38306 /* The GNU C library defines this for functions which it implements
38307     to always fail with ENOSYS.  Some functions are actually named
38308     something starting with __ and the normal name is an alias.  */
38309 #if defined __stub_$ac_func || defined __stub___$ac_func
38310 choke me
38311 #endif
38312
38313 int
38314 main ()
38315 {
38316 return $ac_func ();
38317   ;
38318   return 0;
38319 }
38320 _ACEOF
38321 rm -f conftest.$ac_objext conftest$ac_exeext
38322 if { (ac_try="$ac_link"
38323 case "(($ac_try" in
38324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38325   *) ac_try_echo=$ac_try;;
38326 esac
38327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38328   (eval "$ac_link") 2>conftest.er1
38329   ac_status=$?
38330   grep -v '^ *+' conftest.er1 >conftest.err
38331   rm -f conftest.er1
38332   cat conftest.err >&5
38333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38334   (exit $ac_status); } && {
38335          test -z "$ac_c_werror_flag" ||
38336          test ! -s conftest.err
38337        } && test -s conftest$ac_exeext &&
38338        $as_test_x conftest$ac_exeext; then
38339   eval "$as_ac_var=yes"
38340 else
38341   echo "$as_me: failed program was:" >&5
38342 sed 's/^/| /' conftest.$ac_ext >&5
38343
38344         eval "$as_ac_var=no"
38345 fi
38346
38347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38348       conftest$ac_exeext conftest.$ac_ext
38349 fi
38350 ac_res=`eval echo '${'$as_ac_var'}'`
38351                { echo "$as_me:$LINENO: result: $ac_res" >&5
38352 echo "${ECHO_T}$ac_res" >&6; }
38353 if test `eval echo '${'$as_ac_var'}'` = yes; then
38354   cat >>confdefs.h <<_ACEOF
38355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38356 _ACEOF
38357
38358 fi
38359 done
38360
38361
38362
38363
38364
38365
38366 for ac_func in snprintf vsnprintf gethostid fseeko
38367 do
38368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38372   echo $ECHO_N "(cached) $ECHO_C" >&6
38373 else
38374   cat >conftest.$ac_ext <<_ACEOF
38375 /* confdefs.h.  */
38376 _ACEOF
38377 cat confdefs.h >>conftest.$ac_ext
38378 cat >>conftest.$ac_ext <<_ACEOF
38379 /* end confdefs.h.  */
38380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38382 #define $ac_func innocuous_$ac_func
38383
38384 /* System header to define __stub macros and hopefully few prototypes,
38385     which can conflict with char $ac_func (); below.
38386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38387     <limits.h> exists even on freestanding compilers.  */
38388
38389 #ifdef __STDC__
38390 # include <limits.h>
38391 #else
38392 # include <assert.h>
38393 #endif
38394
38395 #undef $ac_func
38396
38397 /* Override any GCC internal prototype to avoid an error.
38398    Use char because int might match the return type of a GCC
38399    builtin and then its argument prototype would still apply.  */
38400 #ifdef __cplusplus
38401 extern "C"
38402 #endif
38403 char $ac_func ();
38404 /* The GNU C library defines this for functions which it implements
38405     to always fail with ENOSYS.  Some functions are actually named
38406     something starting with __ and the normal name is an alias.  */
38407 #if defined __stub_$ac_func || defined __stub___$ac_func
38408 choke me
38409 #endif
38410
38411 int
38412 main ()
38413 {
38414 return $ac_func ();
38415   ;
38416   return 0;
38417 }
38418 _ACEOF
38419 rm -f conftest.$ac_objext conftest$ac_exeext
38420 if { (ac_try="$ac_link"
38421 case "(($ac_try" in
38422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38423   *) ac_try_echo=$ac_try;;
38424 esac
38425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38426   (eval "$ac_link") 2>conftest.er1
38427   ac_status=$?
38428   grep -v '^ *+' conftest.er1 >conftest.err
38429   rm -f conftest.er1
38430   cat conftest.err >&5
38431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38432   (exit $ac_status); } && {
38433          test -z "$ac_c_werror_flag" ||
38434          test ! -s conftest.err
38435        } && test -s conftest$ac_exeext &&
38436        $as_test_x conftest$ac_exeext; then
38437   eval "$as_ac_var=yes"
38438 else
38439   echo "$as_me: failed program was:" >&5
38440 sed 's/^/| /' conftest.$ac_ext >&5
38441
38442         eval "$as_ac_var=no"
38443 fi
38444
38445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38446       conftest$ac_exeext conftest.$ac_ext
38447 fi
38448 ac_res=`eval echo '${'$as_ac_var'}'`
38449                { echo "$as_me:$LINENO: result: $ac_res" >&5
38450 echo "${ECHO_T}$ac_res" >&6; }
38451 if test `eval echo '${'$as_ac_var'}'` = yes; then
38452   cat >>confdefs.h <<_ACEOF
38453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38454 _ACEOF
38455
38456 fi
38457 done
38458
38459
38460 { echo "$as_me:$LINENO: checking for va_copy" >&5
38461 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38462 if test "${ba_cv_va_copy+set}" = set; then
38463   echo $ECHO_N "(cached) $ECHO_C" >&6
38464 else
38465
38466        cat >conftest.$ac_ext <<_ACEOF
38467 /* confdefs.h.  */
38468 _ACEOF
38469 cat confdefs.h >>conftest.$ac_ext
38470 cat >>conftest.$ac_ext <<_ACEOF
38471 /* end confdefs.h.  */
38472
38473               #include <stdarg.h>
38474               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38475               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38476
38477 int
38478 main ()
38479 {
38480
38481               call_use_va_copy(1,2,3)
38482
38483   ;
38484   return 0;
38485 }
38486 _ACEOF
38487 rm -f conftest.$ac_objext conftest$ac_exeext
38488 if { (ac_try="$ac_link"
38489 case "(($ac_try" in
38490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38491   *) ac_try_echo=$ac_try;;
38492 esac
38493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38494   (eval "$ac_link") 2>conftest.er1
38495   ac_status=$?
38496   grep -v '^ *+' conftest.er1 >conftest.err
38497   rm -f conftest.er1
38498   cat conftest.err >&5
38499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38500   (exit $ac_status); } && {
38501          test -z "$ac_c_werror_flag" ||
38502          test ! -s conftest.err
38503        } && test -s conftest$ac_exeext &&
38504        $as_test_x conftest$ac_exeext; then
38505
38506               ba_cv_va_copy=yes,
38507
38508 else
38509   echo "$as_me: failed program was:" >&5
38510 sed 's/^/| /' conftest.$ac_ext >&5
38511
38512
38513               ba_cv_va_copy=no
38514
38515
38516 fi
38517
38518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38519       conftest$ac_exeext conftest.$ac_ext
38520
38521
38522 fi
38523 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38524 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38525 test $ba_cv_va_copy = yes &&
38526 cat >>confdefs.h <<\_ACEOF
38527 #define HAVE_VA_COPY 1
38528 _ACEOF
38529
38530
38531
38532
38533
38534
38535 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38536 do
38537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38538 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38541   echo $ECHO_N "(cached) $ECHO_C" >&6
38542 else
38543   cat >conftest.$ac_ext <<_ACEOF
38544 /* confdefs.h.  */
38545 _ACEOF
38546 cat confdefs.h >>conftest.$ac_ext
38547 cat >>conftest.$ac_ext <<_ACEOF
38548 /* end confdefs.h.  */
38549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38551 #define $ac_func innocuous_$ac_func
38552
38553 /* System header to define __stub macros and hopefully few prototypes,
38554     which can conflict with char $ac_func (); below.
38555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38556     <limits.h> exists even on freestanding compilers.  */
38557
38558 #ifdef __STDC__
38559 # include <limits.h>
38560 #else
38561 # include <assert.h>
38562 #endif
38563
38564 #undef $ac_func
38565
38566 /* Override any GCC internal prototype to avoid an error.
38567    Use char because int might match the return type of a GCC
38568    builtin and then its argument prototype would still apply.  */
38569 #ifdef __cplusplus
38570 extern "C"
38571 #endif
38572 char $ac_func ();
38573 /* The GNU C library defines this for functions which it implements
38574     to always fail with ENOSYS.  Some functions are actually named
38575     something starting with __ and the normal name is an alias.  */
38576 #if defined __stub_$ac_func || defined __stub___$ac_func
38577 choke me
38578 #endif
38579
38580 int
38581 main ()
38582 {
38583 return $ac_func ();
38584   ;
38585   return 0;
38586 }
38587 _ACEOF
38588 rm -f conftest.$ac_objext conftest$ac_exeext
38589 if { (ac_try="$ac_link"
38590 case "(($ac_try" in
38591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38592   *) ac_try_echo=$ac_try;;
38593 esac
38594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38595   (eval "$ac_link") 2>conftest.er1
38596   ac_status=$?
38597   grep -v '^ *+' conftest.er1 >conftest.err
38598   rm -f conftest.er1
38599   cat conftest.err >&5
38600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601   (exit $ac_status); } && {
38602          test -z "$ac_c_werror_flag" ||
38603          test ! -s conftest.err
38604        } && test -s conftest$ac_exeext &&
38605        $as_test_x conftest$ac_exeext; then
38606   eval "$as_ac_var=yes"
38607 else
38608   echo "$as_me: failed program was:" >&5
38609 sed 's/^/| /' conftest.$ac_ext >&5
38610
38611         eval "$as_ac_var=no"
38612 fi
38613
38614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38615       conftest$ac_exeext conftest.$ac_ext
38616 fi
38617 ac_res=`eval echo '${'$as_ac_var'}'`
38618                { echo "$as_me:$LINENO: result: $ac_res" >&5
38619 echo "${ECHO_T}$ac_res" >&6; }
38620 if test `eval echo '${'$as_ac_var'}'` = yes; then
38621   cat >>confdefs.h <<_ACEOF
38622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38623 _ACEOF
38624
38625 fi
38626 done
38627
38628
38629 # If resolver functions are not in libc check for -lnsl or -lresolv.
38630 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38631 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38632 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38633   echo $ECHO_N "(cached) $ECHO_C" >&6
38634 else
38635   cat >conftest.$ac_ext <<_ACEOF
38636 /* confdefs.h.  */
38637 _ACEOF
38638 cat confdefs.h >>conftest.$ac_ext
38639 cat >>conftest.$ac_ext <<_ACEOF
38640 /* end confdefs.h.  */
38641 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38643 #define gethostbyname_r innocuous_gethostbyname_r
38644
38645 /* System header to define __stub macros and hopefully few prototypes,
38646     which can conflict with char gethostbyname_r (); below.
38647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38648     <limits.h> exists even on freestanding compilers.  */
38649
38650 #ifdef __STDC__
38651 # include <limits.h>
38652 #else
38653 # include <assert.h>
38654 #endif
38655
38656 #undef gethostbyname_r
38657
38658 /* Override any GCC internal prototype to avoid an error.
38659    Use char because int might match the return type of a GCC
38660    builtin and then its argument prototype would still apply.  */
38661 #ifdef __cplusplus
38662 extern "C"
38663 #endif
38664 char gethostbyname_r ();
38665 /* The GNU C library defines this for functions which it implements
38666     to always fail with ENOSYS.  Some functions are actually named
38667     something starting with __ and the normal name is an alias.  */
38668 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38669 choke me
38670 #endif
38671
38672 int
38673 main ()
38674 {
38675 return gethostbyname_r ();
38676   ;
38677   return 0;
38678 }
38679 _ACEOF
38680 rm -f conftest.$ac_objext conftest$ac_exeext
38681 if { (ac_try="$ac_link"
38682 case "(($ac_try" in
38683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38684   *) ac_try_echo=$ac_try;;
38685 esac
38686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38687   (eval "$ac_link") 2>conftest.er1
38688   ac_status=$?
38689   grep -v '^ *+' conftest.er1 >conftest.err
38690   rm -f conftest.er1
38691   cat conftest.err >&5
38692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38693   (exit $ac_status); } && {
38694          test -z "$ac_c_werror_flag" ||
38695          test ! -s conftest.err
38696        } && test -s conftest$ac_exeext &&
38697        $as_test_x conftest$ac_exeext; then
38698   ac_cv_func_gethostbyname_r=yes
38699 else
38700   echo "$as_me: failed program was:" >&5
38701 sed 's/^/| /' conftest.$ac_ext >&5
38702
38703         ac_cv_func_gethostbyname_r=no
38704 fi
38705
38706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38707       conftest$ac_exeext conftest.$ac_ext
38708 fi
38709 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38710 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38711 if test $ac_cv_func_gethostbyname_r = yes; then
38712   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38713 echo "${ECHO_T}using libc's resolver" >&6; }
38714 else
38715
38716 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38717 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38718 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38719   echo $ECHO_N "(cached) $ECHO_C" >&6
38720 else
38721   ac_check_lib_save_LIBS=$LIBS
38722 LIBS="-lnsl  $LIBS"
38723 cat >conftest.$ac_ext <<_ACEOF
38724 /* confdefs.h.  */
38725 _ACEOF
38726 cat confdefs.h >>conftest.$ac_ext
38727 cat >>conftest.$ac_ext <<_ACEOF
38728 /* end confdefs.h.  */
38729
38730 /* Override any GCC internal prototype to avoid an error.
38731    Use char because int might match the return type of a GCC
38732    builtin and then its argument prototype would still apply.  */
38733 #ifdef __cplusplus
38734 extern "C"
38735 #endif
38736 char gethostbyname_r ();
38737 int
38738 main ()
38739 {
38740 return gethostbyname_r ();
38741   ;
38742   return 0;
38743 }
38744 _ACEOF
38745 rm -f conftest.$ac_objext conftest$ac_exeext
38746 if { (ac_try="$ac_link"
38747 case "(($ac_try" in
38748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38749   *) ac_try_echo=$ac_try;;
38750 esac
38751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38752   (eval "$ac_link") 2>conftest.er1
38753   ac_status=$?
38754   grep -v '^ *+' conftest.er1 >conftest.err
38755   rm -f conftest.er1
38756   cat conftest.err >&5
38757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38758   (exit $ac_status); } && {
38759          test -z "$ac_c_werror_flag" ||
38760          test ! -s conftest.err
38761        } && test -s conftest$ac_exeext &&
38762        $as_test_x conftest$ac_exeext; then
38763   ac_cv_lib_nsl_gethostbyname_r=yes
38764 else
38765   echo "$as_me: failed program was:" >&5
38766 sed 's/^/| /' conftest.$ac_ext >&5
38767
38768         ac_cv_lib_nsl_gethostbyname_r=no
38769 fi
38770
38771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38772       conftest$ac_exeext conftest.$ac_ext
38773 LIBS=$ac_check_lib_save_LIBS
38774 fi
38775 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38776 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38777 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38778   cat >>confdefs.h <<_ACEOF
38779 #define HAVE_LIBNSL 1
38780 _ACEOF
38781
38782   LIBS="-lnsl $LIBS"
38783
38784 fi
38785
38786
38787 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38788 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38789 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38790   echo $ECHO_N "(cached) $ECHO_C" >&6
38791 else
38792   ac_check_lib_save_LIBS=$LIBS
38793 LIBS="-lresolv  $LIBS"
38794 cat >conftest.$ac_ext <<_ACEOF
38795 /* confdefs.h.  */
38796 _ACEOF
38797 cat confdefs.h >>conftest.$ac_ext
38798 cat >>conftest.$ac_ext <<_ACEOF
38799 /* end confdefs.h.  */
38800
38801 /* Override any GCC internal prototype to avoid an error.
38802    Use char because int might match the return type of a GCC
38803    builtin and then its argument prototype would still apply.  */
38804 #ifdef __cplusplus
38805 extern "C"
38806 #endif
38807 char gethostbyname_r ();
38808 int
38809 main ()
38810 {
38811 return gethostbyname_r ();
38812   ;
38813   return 0;
38814 }
38815 _ACEOF
38816 rm -f conftest.$ac_objext conftest$ac_exeext
38817 if { (ac_try="$ac_link"
38818 case "(($ac_try" in
38819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38820   *) ac_try_echo=$ac_try;;
38821 esac
38822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38823   (eval "$ac_link") 2>conftest.er1
38824   ac_status=$?
38825   grep -v '^ *+' conftest.er1 >conftest.err
38826   rm -f conftest.er1
38827   cat conftest.err >&5
38828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829   (exit $ac_status); } && {
38830          test -z "$ac_c_werror_flag" ||
38831          test ! -s conftest.err
38832        } && test -s conftest$ac_exeext &&
38833        $as_test_x conftest$ac_exeext; then
38834   ac_cv_lib_resolv_gethostbyname_r=yes
38835 else
38836   echo "$as_me: failed program was:" >&5
38837 sed 's/^/| /' conftest.$ac_ext >&5
38838
38839         ac_cv_lib_resolv_gethostbyname_r=no
38840 fi
38841
38842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38843       conftest$ac_exeext conftest.$ac_ext
38844 LIBS=$ac_check_lib_save_LIBS
38845 fi
38846 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38847 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38848 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38849   cat >>confdefs.h <<_ACEOF
38850 #define HAVE_LIBRESOLV 1
38851 _ACEOF
38852
38853   LIBS="-lresolv $LIBS"
38854
38855 fi
38856
38857 fi
38858
38859
38860
38861 for ac_func in inet_pton
38862 do
38863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38867   echo $ECHO_N "(cached) $ECHO_C" >&6
38868 else
38869   cat >conftest.$ac_ext <<_ACEOF
38870 /* confdefs.h.  */
38871 _ACEOF
38872 cat confdefs.h >>conftest.$ac_ext
38873 cat >>conftest.$ac_ext <<_ACEOF
38874 /* end confdefs.h.  */
38875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38877 #define $ac_func innocuous_$ac_func
38878
38879 /* System header to define __stub macros and hopefully few prototypes,
38880     which can conflict with char $ac_func (); below.
38881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38882     <limits.h> exists even on freestanding compilers.  */
38883
38884 #ifdef __STDC__
38885 # include <limits.h>
38886 #else
38887 # include <assert.h>
38888 #endif
38889
38890 #undef $ac_func
38891
38892 /* Override any GCC internal prototype to avoid an error.
38893    Use char because int might match the return type of a GCC
38894    builtin and then its argument prototype would still apply.  */
38895 #ifdef __cplusplus
38896 extern "C"
38897 #endif
38898 char $ac_func ();
38899 /* The GNU C library defines this for functions which it implements
38900     to always fail with ENOSYS.  Some functions are actually named
38901     something starting with __ and the normal name is an alias.  */
38902 #if defined __stub_$ac_func || defined __stub___$ac_func
38903 choke me
38904 #endif
38905
38906 int
38907 main ()
38908 {
38909 return $ac_func ();
38910   ;
38911   return 0;
38912 }
38913 _ACEOF
38914 rm -f conftest.$ac_objext conftest$ac_exeext
38915 if { (ac_try="$ac_link"
38916 case "(($ac_try" in
38917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38918   *) ac_try_echo=$ac_try;;
38919 esac
38920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38921   (eval "$ac_link") 2>conftest.er1
38922   ac_status=$?
38923   grep -v '^ *+' conftest.er1 >conftest.err
38924   rm -f conftest.er1
38925   cat conftest.err >&5
38926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38927   (exit $ac_status); } && {
38928          test -z "$ac_c_werror_flag" ||
38929          test ! -s conftest.err
38930        } && test -s conftest$ac_exeext &&
38931        $as_test_x conftest$ac_exeext; then
38932   eval "$as_ac_var=yes"
38933 else
38934   echo "$as_me: failed program was:" >&5
38935 sed 's/^/| /' conftest.$ac_ext >&5
38936
38937         eval "$as_ac_var=no"
38938 fi
38939
38940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38941       conftest$ac_exeext conftest.$ac_ext
38942 fi
38943 ac_res=`eval echo '${'$as_ac_var'}'`
38944                { echo "$as_me:$LINENO: result: $ac_res" >&5
38945 echo "${ECHO_T}$ac_res" >&6; }
38946 if test `eval echo '${'$as_ac_var'}'` = yes; then
38947   cat >>confdefs.h <<_ACEOF
38948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38949 _ACEOF
38950  cat >>confdefs.h <<\_ACEOF
38951 #define HAVE_INET_PTON 1
38952 _ACEOF
38953
38954 fi
38955 done
38956
38957
38958 for ac_func in inet_ntop
38959 do
38960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38964   echo $ECHO_N "(cached) $ECHO_C" >&6
38965 else
38966   cat >conftest.$ac_ext <<_ACEOF
38967 /* confdefs.h.  */
38968 _ACEOF
38969 cat confdefs.h >>conftest.$ac_ext
38970 cat >>conftest.$ac_ext <<_ACEOF
38971 /* end confdefs.h.  */
38972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38974 #define $ac_func innocuous_$ac_func
38975
38976 /* System header to define __stub macros and hopefully few prototypes,
38977     which can conflict with char $ac_func (); below.
38978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38979     <limits.h> exists even on freestanding compilers.  */
38980
38981 #ifdef __STDC__
38982 # include <limits.h>
38983 #else
38984 # include <assert.h>
38985 #endif
38986
38987 #undef $ac_func
38988
38989 /* Override any GCC internal prototype to avoid an error.
38990    Use char because int might match the return type of a GCC
38991    builtin and then its argument prototype would still apply.  */
38992 #ifdef __cplusplus
38993 extern "C"
38994 #endif
38995 char $ac_func ();
38996 /* The GNU C library defines this for functions which it implements
38997     to always fail with ENOSYS.  Some functions are actually named
38998     something starting with __ and the normal name is an alias.  */
38999 #if defined __stub_$ac_func || defined __stub___$ac_func
39000 choke me
39001 #endif
39002
39003 int
39004 main ()
39005 {
39006 return $ac_func ();
39007   ;
39008   return 0;
39009 }
39010 _ACEOF
39011 rm -f conftest.$ac_objext conftest$ac_exeext
39012 if { (ac_try="$ac_link"
39013 case "(($ac_try" in
39014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39015   *) ac_try_echo=$ac_try;;
39016 esac
39017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39018   (eval "$ac_link") 2>conftest.er1
39019   ac_status=$?
39020   grep -v '^ *+' conftest.er1 >conftest.err
39021   rm -f conftest.er1
39022   cat conftest.err >&5
39023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39024   (exit $ac_status); } && {
39025          test -z "$ac_c_werror_flag" ||
39026          test ! -s conftest.err
39027        } && test -s conftest$ac_exeext &&
39028        $as_test_x conftest$ac_exeext; then
39029   eval "$as_ac_var=yes"
39030 else
39031   echo "$as_me: failed program was:" >&5
39032 sed 's/^/| /' conftest.$ac_ext >&5
39033
39034         eval "$as_ac_var=no"
39035 fi
39036
39037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39038       conftest$ac_exeext conftest.$ac_ext
39039 fi
39040 ac_res=`eval echo '${'$as_ac_var'}'`
39041                { echo "$as_me:$LINENO: result: $ac_res" >&5
39042 echo "${ECHO_T}$ac_res" >&6; }
39043 if test `eval echo '${'$as_ac_var'}'` = yes; then
39044   cat >>confdefs.h <<_ACEOF
39045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39046 _ACEOF
39047  cat >>confdefs.h <<\_ACEOF
39048 #define HAVE_INET_NTOP 1
39049 _ACEOF
39050
39051 fi
39052 done
39053
39054
39055 for ac_func in gethostbyname2
39056 do
39057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39058 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39061   echo $ECHO_N "(cached) $ECHO_C" >&6
39062 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39071 #define $ac_func innocuous_$ac_func
39072
39073 /* System header to define __stub macros and hopefully few prototypes,
39074     which can conflict with char $ac_func (); below.
39075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39076     <limits.h> exists even on freestanding compilers.  */
39077
39078 #ifdef __STDC__
39079 # include <limits.h>
39080 #else
39081 # include <assert.h>
39082 #endif
39083
39084 #undef $ac_func
39085
39086 /* Override any GCC internal prototype to avoid an error.
39087    Use char because int might match the return type of a GCC
39088    builtin and then its argument prototype would still apply.  */
39089 #ifdef __cplusplus
39090 extern "C"
39091 #endif
39092 char $ac_func ();
39093 /* The GNU C library defines this for functions which it implements
39094     to always fail with ENOSYS.  Some functions are actually named
39095     something starting with __ and the normal name is an alias.  */
39096 #if defined __stub_$ac_func || defined __stub___$ac_func
39097 choke me
39098 #endif
39099
39100 int
39101 main ()
39102 {
39103 return $ac_func ();
39104   ;
39105   return 0;
39106 }
39107 _ACEOF
39108 rm -f conftest.$ac_objext conftest$ac_exeext
39109 if { (ac_try="$ac_link"
39110 case "(($ac_try" in
39111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39112   *) ac_try_echo=$ac_try;;
39113 esac
39114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39115   (eval "$ac_link") 2>conftest.er1
39116   ac_status=$?
39117   grep -v '^ *+' conftest.er1 >conftest.err
39118   rm -f conftest.er1
39119   cat conftest.err >&5
39120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39121   (exit $ac_status); } && {
39122          test -z "$ac_c_werror_flag" ||
39123          test ! -s conftest.err
39124        } && test -s conftest$ac_exeext &&
39125        $as_test_x conftest$ac_exeext; then
39126   eval "$as_ac_var=yes"
39127 else
39128   echo "$as_me: failed program was:" >&5
39129 sed 's/^/| /' conftest.$ac_ext >&5
39130
39131         eval "$as_ac_var=no"
39132 fi
39133
39134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39135       conftest$ac_exeext conftest.$ac_ext
39136 fi
39137 ac_res=`eval echo '${'$as_ac_var'}'`
39138                { echo "$as_me:$LINENO: result: $ac_res" >&5
39139 echo "${ECHO_T}$ac_res" >&6; }
39140 if test `eval echo '${'$as_ac_var'}'` = yes; then
39141   cat >>confdefs.h <<_ACEOF
39142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39143 _ACEOF
39144  cat >>confdefs.h <<\_ACEOF
39145 #define HAVE_GETHOSTBYNAME2 1
39146 _ACEOF
39147
39148 fi
39149 done
39150
39151
39152 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39153 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39154 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39155   echo $ECHO_N "(cached) $ECHO_C" >&6
39156 else
39157
39158        cat >conftest.$ac_ext <<_ACEOF
39159 /* confdefs.h.  */
39160 _ACEOF
39161 cat confdefs.h >>conftest.$ac_ext
39162 cat >>conftest.$ac_ext <<_ACEOF
39163 /* end confdefs.h.  */
39164
39165               #include <sys/socket.h>
39166
39167 int
39168 main ()
39169 {
39170
39171               struct sockaddr s; s.sa_len;
39172
39173   ;
39174   return 0;
39175 }
39176 _ACEOF
39177 rm -f conftest.$ac_objext
39178 if { (ac_try="$ac_compile"
39179 case "(($ac_try" in
39180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39181   *) ac_try_echo=$ac_try;;
39182 esac
39183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39184   (eval "$ac_compile") 2>conftest.er1
39185   ac_status=$?
39186   grep -v '^ *+' conftest.er1 >conftest.err
39187   rm -f conftest.er1
39188   cat conftest.err >&5
39189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39190   (exit $ac_status); } && {
39191          test -z "$ac_c_werror_flag" ||
39192          test ! -s conftest.err
39193        } && test -s conftest.$ac_objext; then
39194
39195              ac_cv_struct_sockaddr_sa_len=yes
39196
39197 else
39198   echo "$as_me: failed program was:" >&5
39199 sed 's/^/| /' conftest.$ac_ext >&5
39200
39201         ac_cv_struct_sockaddr_sa_len=no
39202
39203
39204 fi
39205
39206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39207
39208
39209 fi
39210 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39211 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39212
39213 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39214
39215 cat >>confdefs.h <<\_ACEOF
39216 #define HAVE_SA_LEN 1
39217 _ACEOF
39218
39219 fi
39220
39221
39222 for ac_func in strftime
39223 do
39224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39228   echo $ECHO_N "(cached) $ECHO_C" >&6
39229 else
39230   cat >conftest.$ac_ext <<_ACEOF
39231 /* confdefs.h.  */
39232 _ACEOF
39233 cat confdefs.h >>conftest.$ac_ext
39234 cat >>conftest.$ac_ext <<_ACEOF
39235 /* end confdefs.h.  */
39236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39238 #define $ac_func innocuous_$ac_func
39239
39240 /* System header to define __stub macros and hopefully few prototypes,
39241     which can conflict with char $ac_func (); below.
39242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39243     <limits.h> exists even on freestanding compilers.  */
39244
39245 #ifdef __STDC__
39246 # include <limits.h>
39247 #else
39248 # include <assert.h>
39249 #endif
39250
39251 #undef $ac_func
39252
39253 /* Override any GCC internal prototype to avoid an error.
39254    Use char because int might match the return type of a GCC
39255    builtin and then its argument prototype would still apply.  */
39256 #ifdef __cplusplus
39257 extern "C"
39258 #endif
39259 char $ac_func ();
39260 /* The GNU C library defines this for functions which it implements
39261     to always fail with ENOSYS.  Some functions are actually named
39262     something starting with __ and the normal name is an alias.  */
39263 #if defined __stub_$ac_func || defined __stub___$ac_func
39264 choke me
39265 #endif
39266
39267 int
39268 main ()
39269 {
39270 return $ac_func ();
39271   ;
39272   return 0;
39273 }
39274 _ACEOF
39275 rm -f conftest.$ac_objext conftest$ac_exeext
39276 if { (ac_try="$ac_link"
39277 case "(($ac_try" in
39278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39279   *) ac_try_echo=$ac_try;;
39280 esac
39281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39282   (eval "$ac_link") 2>conftest.er1
39283   ac_status=$?
39284   grep -v '^ *+' conftest.er1 >conftest.err
39285   rm -f conftest.er1
39286   cat conftest.err >&5
39287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39288   (exit $ac_status); } && {
39289          test -z "$ac_c_werror_flag" ||
39290          test ! -s conftest.err
39291        } && test -s conftest$ac_exeext &&
39292        $as_test_x conftest$ac_exeext; then
39293   eval "$as_ac_var=yes"
39294 else
39295   echo "$as_me: failed program was:" >&5
39296 sed 's/^/| /' conftest.$ac_ext >&5
39297
39298         eval "$as_ac_var=no"
39299 fi
39300
39301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39302       conftest$ac_exeext conftest.$ac_ext
39303 fi
39304 ac_res=`eval echo '${'$as_ac_var'}'`
39305                { echo "$as_me:$LINENO: result: $ac_res" >&5
39306 echo "${ECHO_T}$ac_res" >&6; }
39307 if test `eval echo '${'$as_ac_var'}'` = yes; then
39308   cat >>confdefs.h <<_ACEOF
39309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39310 _ACEOF
39311
39312 else
39313   # strftime is in -lintl on SCO UNIX.
39314 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39315 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39316 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39317   echo $ECHO_N "(cached) $ECHO_C" >&6
39318 else
39319   ac_check_lib_save_LIBS=$LIBS
39320 LIBS="-lintl  $LIBS"
39321 cat >conftest.$ac_ext <<_ACEOF
39322 /* confdefs.h.  */
39323 _ACEOF
39324 cat confdefs.h >>conftest.$ac_ext
39325 cat >>conftest.$ac_ext <<_ACEOF
39326 /* end confdefs.h.  */
39327
39328 /* Override any GCC internal prototype to avoid an error.
39329    Use char because int might match the return type of a GCC
39330    builtin and then its argument prototype would still apply.  */
39331 #ifdef __cplusplus
39332 extern "C"
39333 #endif
39334 char strftime ();
39335 int
39336 main ()
39337 {
39338 return strftime ();
39339   ;
39340   return 0;
39341 }
39342 _ACEOF
39343 rm -f conftest.$ac_objext conftest$ac_exeext
39344 if { (ac_try="$ac_link"
39345 case "(($ac_try" in
39346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39347   *) ac_try_echo=$ac_try;;
39348 esac
39349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39350   (eval "$ac_link") 2>conftest.er1
39351   ac_status=$?
39352   grep -v '^ *+' conftest.er1 >conftest.err
39353   rm -f conftest.er1
39354   cat conftest.err >&5
39355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39356   (exit $ac_status); } && {
39357          test -z "$ac_c_werror_flag" ||
39358          test ! -s conftest.err
39359        } && test -s conftest$ac_exeext &&
39360        $as_test_x conftest$ac_exeext; then
39361   ac_cv_lib_intl_strftime=yes
39362 else
39363   echo "$as_me: failed program was:" >&5
39364 sed 's/^/| /' conftest.$ac_ext >&5
39365
39366         ac_cv_lib_intl_strftime=no
39367 fi
39368
39369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39370       conftest$ac_exeext conftest.$ac_ext
39371 LIBS=$ac_check_lib_save_LIBS
39372 fi
39373 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39374 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39375 if test $ac_cv_lib_intl_strftime = yes; then
39376   cat >>confdefs.h <<\_ACEOF
39377 #define HAVE_STRFTIME 1
39378 _ACEOF
39379
39380 LIBS="-lintl $LIBS"
39381 fi
39382
39383 fi
39384 done
39385
39386
39387 for ac_func in vprintf
39388 do
39389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39393   echo $ECHO_N "(cached) $ECHO_C" >&6
39394 else
39395   cat >conftest.$ac_ext <<_ACEOF
39396 /* confdefs.h.  */
39397 _ACEOF
39398 cat confdefs.h >>conftest.$ac_ext
39399 cat >>conftest.$ac_ext <<_ACEOF
39400 /* end confdefs.h.  */
39401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39403 #define $ac_func innocuous_$ac_func
39404
39405 /* System header to define __stub macros and hopefully few prototypes,
39406     which can conflict with char $ac_func (); below.
39407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39408     <limits.h> exists even on freestanding compilers.  */
39409
39410 #ifdef __STDC__
39411 # include <limits.h>
39412 #else
39413 # include <assert.h>
39414 #endif
39415
39416 #undef $ac_func
39417
39418 /* Override any GCC internal prototype to avoid an error.
39419    Use char because int might match the return type of a GCC
39420    builtin and then its argument prototype would still apply.  */
39421 #ifdef __cplusplus
39422 extern "C"
39423 #endif
39424 char $ac_func ();
39425 /* The GNU C library defines this for functions which it implements
39426     to always fail with ENOSYS.  Some functions are actually named
39427     something starting with __ and the normal name is an alias.  */
39428 #if defined __stub_$ac_func || defined __stub___$ac_func
39429 choke me
39430 #endif
39431
39432 int
39433 main ()
39434 {
39435 return $ac_func ();
39436   ;
39437   return 0;
39438 }
39439 _ACEOF
39440 rm -f conftest.$ac_objext conftest$ac_exeext
39441 if { (ac_try="$ac_link"
39442 case "(($ac_try" in
39443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39444   *) ac_try_echo=$ac_try;;
39445 esac
39446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39447   (eval "$ac_link") 2>conftest.er1
39448   ac_status=$?
39449   grep -v '^ *+' conftest.er1 >conftest.err
39450   rm -f conftest.er1
39451   cat conftest.err >&5
39452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39453   (exit $ac_status); } && {
39454          test -z "$ac_c_werror_flag" ||
39455          test ! -s conftest.err
39456        } && test -s conftest$ac_exeext &&
39457        $as_test_x conftest$ac_exeext; then
39458   eval "$as_ac_var=yes"
39459 else
39460   echo "$as_me: failed program was:" >&5
39461 sed 's/^/| /' conftest.$ac_ext >&5
39462
39463         eval "$as_ac_var=no"
39464 fi
39465
39466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39467       conftest$ac_exeext conftest.$ac_ext
39468 fi
39469 ac_res=`eval echo '${'$as_ac_var'}'`
39470                { echo "$as_me:$LINENO: result: $ac_res" >&5
39471 echo "${ECHO_T}$ac_res" >&6; }
39472 if test `eval echo '${'$as_ac_var'}'` = yes; then
39473   cat >>confdefs.h <<_ACEOF
39474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39475 _ACEOF
39476
39477 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39478 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39479 if test "${ac_cv_func__doprnt+set}" = set; then
39480   echo $ECHO_N "(cached) $ECHO_C" >&6
39481 else
39482   cat >conftest.$ac_ext <<_ACEOF
39483 /* confdefs.h.  */
39484 _ACEOF
39485 cat confdefs.h >>conftest.$ac_ext
39486 cat >>conftest.$ac_ext <<_ACEOF
39487 /* end confdefs.h.  */
39488 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39490 #define _doprnt innocuous__doprnt
39491
39492 /* System header to define __stub macros and hopefully few prototypes,
39493     which can conflict with char _doprnt (); below.
39494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39495     <limits.h> exists even on freestanding compilers.  */
39496
39497 #ifdef __STDC__
39498 # include <limits.h>
39499 #else
39500 # include <assert.h>
39501 #endif
39502
39503 #undef _doprnt
39504
39505 /* Override any GCC internal prototype to avoid an error.
39506    Use char because int might match the return type of a GCC
39507    builtin and then its argument prototype would still apply.  */
39508 #ifdef __cplusplus
39509 extern "C"
39510 #endif
39511 char _doprnt ();
39512 /* The GNU C library defines this for functions which it implements
39513     to always fail with ENOSYS.  Some functions are actually named
39514     something starting with __ and the normal name is an alias.  */
39515 #if defined __stub__doprnt || defined __stub____doprnt
39516 choke me
39517 #endif
39518
39519 int
39520 main ()
39521 {
39522 return _doprnt ();
39523   ;
39524   return 0;
39525 }
39526 _ACEOF
39527 rm -f conftest.$ac_objext conftest$ac_exeext
39528 if { (ac_try="$ac_link"
39529 case "(($ac_try" in
39530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39531   *) ac_try_echo=$ac_try;;
39532 esac
39533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39534   (eval "$ac_link") 2>conftest.er1
39535   ac_status=$?
39536   grep -v '^ *+' conftest.er1 >conftest.err
39537   rm -f conftest.er1
39538   cat conftest.err >&5
39539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39540   (exit $ac_status); } && {
39541          test -z "$ac_c_werror_flag" ||
39542          test ! -s conftest.err
39543        } && test -s conftest$ac_exeext &&
39544        $as_test_x conftest$ac_exeext; then
39545   ac_cv_func__doprnt=yes
39546 else
39547   echo "$as_me: failed program was:" >&5
39548 sed 's/^/| /' conftest.$ac_ext >&5
39549
39550         ac_cv_func__doprnt=no
39551 fi
39552
39553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39554       conftest$ac_exeext conftest.$ac_ext
39555 fi
39556 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39557 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39558 if test $ac_cv_func__doprnt = yes; then
39559
39560 cat >>confdefs.h <<\_ACEOF
39561 #define HAVE_DOPRNT 1
39562 _ACEOF
39563
39564 fi
39565
39566 fi
39567 done
39568
39569
39570 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39571 # for constant arguments.  Useless!
39572 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39573 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39574 if test "${ac_cv_working_alloca_h+set}" = set; then
39575   echo $ECHO_N "(cached) $ECHO_C" >&6
39576 else
39577   cat >conftest.$ac_ext <<_ACEOF
39578 /* confdefs.h.  */
39579 _ACEOF
39580 cat confdefs.h >>conftest.$ac_ext
39581 cat >>conftest.$ac_ext <<_ACEOF
39582 /* end confdefs.h.  */
39583 #include <alloca.h>
39584 int
39585 main ()
39586 {
39587 char *p = (char *) alloca (2 * sizeof (int));
39588                           if (p) return 0;
39589   ;
39590   return 0;
39591 }
39592 _ACEOF
39593 rm -f conftest.$ac_objext conftest$ac_exeext
39594 if { (ac_try="$ac_link"
39595 case "(($ac_try" in
39596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39597   *) ac_try_echo=$ac_try;;
39598 esac
39599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39600   (eval "$ac_link") 2>conftest.er1
39601   ac_status=$?
39602   grep -v '^ *+' conftest.er1 >conftest.err
39603   rm -f conftest.er1
39604   cat conftest.err >&5
39605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39606   (exit $ac_status); } && {
39607          test -z "$ac_c_werror_flag" ||
39608          test ! -s conftest.err
39609        } && test -s conftest$ac_exeext &&
39610        $as_test_x conftest$ac_exeext; then
39611   ac_cv_working_alloca_h=yes
39612 else
39613   echo "$as_me: failed program was:" >&5
39614 sed 's/^/| /' conftest.$ac_ext >&5
39615
39616         ac_cv_working_alloca_h=no
39617 fi
39618
39619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39620       conftest$ac_exeext conftest.$ac_ext
39621 fi
39622 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39623 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39624 if test $ac_cv_working_alloca_h = yes; then
39625
39626 cat >>confdefs.h <<\_ACEOF
39627 #define HAVE_ALLOCA_H 1
39628 _ACEOF
39629
39630 fi
39631
39632 { echo "$as_me:$LINENO: checking for alloca" >&5
39633 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39634 if test "${ac_cv_func_alloca_works+set}" = set; then
39635   echo $ECHO_N "(cached) $ECHO_C" >&6
39636 else
39637   cat >conftest.$ac_ext <<_ACEOF
39638 /* confdefs.h.  */
39639 _ACEOF
39640 cat confdefs.h >>conftest.$ac_ext
39641 cat >>conftest.$ac_ext <<_ACEOF
39642 /* end confdefs.h.  */
39643 #ifdef __GNUC__
39644 # define alloca __builtin_alloca
39645 #else
39646 # ifdef _MSC_VER
39647 #  include <malloc.h>
39648 #  define alloca _alloca
39649 # else
39650 #  ifdef HAVE_ALLOCA_H
39651 #   include <alloca.h>
39652 #  else
39653 #   ifdef _AIX
39654  #pragma alloca
39655 #   else
39656 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39657 char *alloca ();
39658 #    endif
39659 #   endif
39660 #  endif
39661 # endif
39662 #endif
39663
39664 int
39665 main ()
39666 {
39667 char *p = (char *) alloca (1);
39668                                     if (p) return 0;
39669   ;
39670   return 0;
39671 }
39672 _ACEOF
39673 rm -f conftest.$ac_objext conftest$ac_exeext
39674 if { (ac_try="$ac_link"
39675 case "(($ac_try" in
39676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39677   *) ac_try_echo=$ac_try;;
39678 esac
39679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39680   (eval "$ac_link") 2>conftest.er1
39681   ac_status=$?
39682   grep -v '^ *+' conftest.er1 >conftest.err
39683   rm -f conftest.er1
39684   cat conftest.err >&5
39685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39686   (exit $ac_status); } && {
39687          test -z "$ac_c_werror_flag" ||
39688          test ! -s conftest.err
39689        } && test -s conftest$ac_exeext &&
39690        $as_test_x conftest$ac_exeext; then
39691   ac_cv_func_alloca_works=yes
39692 else
39693   echo "$as_me: failed program was:" >&5
39694 sed 's/^/| /' conftest.$ac_ext >&5
39695
39696         ac_cv_func_alloca_works=no
39697 fi
39698
39699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39700       conftest$ac_exeext conftest.$ac_ext
39701 fi
39702 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39703 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39704
39705 if test $ac_cv_func_alloca_works = yes; then
39706
39707 cat >>confdefs.h <<\_ACEOF
39708 #define HAVE_ALLOCA 1
39709 _ACEOF
39710
39711 else
39712   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39713 # that cause trouble.  Some versions do not even contain alloca or
39714 # contain a buggy version.  If you still want to use their alloca,
39715 # use ar to extract alloca.o from them instead of compiling alloca.c.
39716
39717 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39718
39719 cat >>confdefs.h <<\_ACEOF
39720 #define C_ALLOCA 1
39721 _ACEOF
39722
39723
39724 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39725 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39726 if test "${ac_cv_os_cray+set}" = set; then
39727   echo $ECHO_N "(cached) $ECHO_C" >&6
39728 else
39729   cat >conftest.$ac_ext <<_ACEOF
39730 /* confdefs.h.  */
39731 _ACEOF
39732 cat confdefs.h >>conftest.$ac_ext
39733 cat >>conftest.$ac_ext <<_ACEOF
39734 /* end confdefs.h.  */
39735 #if defined CRAY && ! defined CRAY2
39736 webecray
39737 #else
39738 wenotbecray
39739 #endif
39740
39741 _ACEOF
39742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39743   $EGREP "webecray" >/dev/null 2>&1; then
39744   ac_cv_os_cray=yes
39745 else
39746   ac_cv_os_cray=no
39747 fi
39748 rm -f conftest*
39749
39750 fi
39751 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39752 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39753 if test $ac_cv_os_cray = yes; then
39754   for ac_func in _getb67 GETB67 getb67; do
39755     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39759   echo $ECHO_N "(cached) $ECHO_C" >&6
39760 else
39761   cat >conftest.$ac_ext <<_ACEOF
39762 /* confdefs.h.  */
39763 _ACEOF
39764 cat confdefs.h >>conftest.$ac_ext
39765 cat >>conftest.$ac_ext <<_ACEOF
39766 /* end confdefs.h.  */
39767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39769 #define $ac_func innocuous_$ac_func
39770
39771 /* System header to define __stub macros and hopefully few prototypes,
39772     which can conflict with char $ac_func (); below.
39773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39774     <limits.h> exists even on freestanding compilers.  */
39775
39776 #ifdef __STDC__
39777 # include <limits.h>
39778 #else
39779 # include <assert.h>
39780 #endif
39781
39782 #undef $ac_func
39783
39784 /* Override any GCC internal prototype to avoid an error.
39785    Use char because int might match the return type of a GCC
39786    builtin and then its argument prototype would still apply.  */
39787 #ifdef __cplusplus
39788 extern "C"
39789 #endif
39790 char $ac_func ();
39791 /* The GNU C library defines this for functions which it implements
39792     to always fail with ENOSYS.  Some functions are actually named
39793     something starting with __ and the normal name is an alias.  */
39794 #if defined __stub_$ac_func || defined __stub___$ac_func
39795 choke me
39796 #endif
39797
39798 int
39799 main ()
39800 {
39801 return $ac_func ();
39802   ;
39803   return 0;
39804 }
39805 _ACEOF
39806 rm -f conftest.$ac_objext conftest$ac_exeext
39807 if { (ac_try="$ac_link"
39808 case "(($ac_try" in
39809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39810   *) ac_try_echo=$ac_try;;
39811 esac
39812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39813   (eval "$ac_link") 2>conftest.er1
39814   ac_status=$?
39815   grep -v '^ *+' conftest.er1 >conftest.err
39816   rm -f conftest.er1
39817   cat conftest.err >&5
39818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39819   (exit $ac_status); } && {
39820          test -z "$ac_c_werror_flag" ||
39821          test ! -s conftest.err
39822        } && test -s conftest$ac_exeext &&
39823        $as_test_x conftest$ac_exeext; then
39824   eval "$as_ac_var=yes"
39825 else
39826   echo "$as_me: failed program was:" >&5
39827 sed 's/^/| /' conftest.$ac_ext >&5
39828
39829         eval "$as_ac_var=no"
39830 fi
39831
39832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39833       conftest$ac_exeext conftest.$ac_ext
39834 fi
39835 ac_res=`eval echo '${'$as_ac_var'}'`
39836                { echo "$as_me:$LINENO: result: $ac_res" >&5
39837 echo "${ECHO_T}$ac_res" >&6; }
39838 if test `eval echo '${'$as_ac_var'}'` = yes; then
39839
39840 cat >>confdefs.h <<_ACEOF
39841 #define CRAY_STACKSEG_END $ac_func
39842 _ACEOF
39843
39844     break
39845 fi
39846
39847   done
39848 fi
39849
39850 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39851 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39852 if test "${ac_cv_c_stack_direction+set}" = set; then
39853   echo $ECHO_N "(cached) $ECHO_C" >&6
39854 else
39855   if test "$cross_compiling" = yes; then
39856   ac_cv_c_stack_direction=0
39857 else
39858   cat >conftest.$ac_ext <<_ACEOF
39859 /* confdefs.h.  */
39860 _ACEOF
39861 cat confdefs.h >>conftest.$ac_ext
39862 cat >>conftest.$ac_ext <<_ACEOF
39863 /* end confdefs.h.  */
39864 $ac_includes_default
39865 int
39866 find_stack_direction ()
39867 {
39868   static char *addr = 0;
39869   auto char dummy;
39870   if (addr == 0)
39871     {
39872       addr = &dummy;
39873       return find_stack_direction ();
39874     }
39875   else
39876     return (&dummy > addr) ? 1 : -1;
39877 }
39878
39879 int
39880 main ()
39881 {
39882   return find_stack_direction () < 0;
39883 }
39884 _ACEOF
39885 rm -f conftest$ac_exeext
39886 if { (ac_try="$ac_link"
39887 case "(($ac_try" in
39888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39889   *) ac_try_echo=$ac_try;;
39890 esac
39891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39892   (eval "$ac_link") 2>&5
39893   ac_status=$?
39894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39895   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39896   { (case "(($ac_try" in
39897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39898   *) ac_try_echo=$ac_try;;
39899 esac
39900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39901   (eval "$ac_try") 2>&5
39902   ac_status=$?
39903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39904   (exit $ac_status); }; }; then
39905   ac_cv_c_stack_direction=1
39906 else
39907   echo "$as_me: program exited with status $ac_status" >&5
39908 echo "$as_me: failed program was:" >&5
39909 sed 's/^/| /' conftest.$ac_ext >&5
39910
39911 ( exit $ac_status )
39912 ac_cv_c_stack_direction=-1
39913 fi
39914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39915 fi
39916
39917
39918 fi
39919 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39920 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39921
39922 cat >>confdefs.h <<_ACEOF
39923 #define STACK_DIRECTION $ac_cv_c_stack_direction
39924 _ACEOF
39925
39926
39927 fi
39928
39929 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39930 # -lseq on Dynix/PTX, -lgen on Unixware.
39931 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39932 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39933 if test "${ac_cv_search_getmntent+set}" = set; then
39934   echo $ECHO_N "(cached) $ECHO_C" >&6
39935 else
39936   ac_func_search_save_LIBS=$LIBS
39937 cat >conftest.$ac_ext <<_ACEOF
39938 /* confdefs.h.  */
39939 _ACEOF
39940 cat confdefs.h >>conftest.$ac_ext
39941 cat >>conftest.$ac_ext <<_ACEOF
39942 /* end confdefs.h.  */
39943
39944 /* Override any GCC internal prototype to avoid an error.
39945    Use char because int might match the return type of a GCC
39946    builtin and then its argument prototype would still apply.  */
39947 #ifdef __cplusplus
39948 extern "C"
39949 #endif
39950 char getmntent ();
39951 int
39952 main ()
39953 {
39954 return getmntent ();
39955   ;
39956   return 0;
39957 }
39958 _ACEOF
39959 for ac_lib in '' sun seq gen; do
39960   if test -z "$ac_lib"; then
39961     ac_res="none required"
39962   else
39963     ac_res=-l$ac_lib
39964     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39965   fi
39966   rm -f conftest.$ac_objext conftest$ac_exeext
39967 if { (ac_try="$ac_link"
39968 case "(($ac_try" in
39969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39970   *) ac_try_echo=$ac_try;;
39971 esac
39972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39973   (eval "$ac_link") 2>conftest.er1
39974   ac_status=$?
39975   grep -v '^ *+' conftest.er1 >conftest.err
39976   rm -f conftest.er1
39977   cat conftest.err >&5
39978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39979   (exit $ac_status); } && {
39980          test -z "$ac_c_werror_flag" ||
39981          test ! -s conftest.err
39982        } && test -s conftest$ac_exeext &&
39983        $as_test_x conftest$ac_exeext; then
39984   ac_cv_search_getmntent=$ac_res
39985 else
39986   echo "$as_me: failed program was:" >&5
39987 sed 's/^/| /' conftest.$ac_ext >&5
39988
39989
39990 fi
39991
39992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39993       conftest$ac_exeext
39994   if test "${ac_cv_search_getmntent+set}" = set; then
39995   break
39996 fi
39997 done
39998 if test "${ac_cv_search_getmntent+set}" = set; then
39999   :
40000 else
40001   ac_cv_search_getmntent=no
40002 fi
40003 rm conftest.$ac_ext
40004 LIBS=$ac_func_search_save_LIBS
40005 fi
40006 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40007 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40008 ac_res=$ac_cv_search_getmntent
40009 if test "$ac_res" != no; then
40010   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40011   ac_cv_func_getmntent=yes
40012
40013 cat >>confdefs.h <<\_ACEOF
40014 #define HAVE_GETMNTENT 1
40015 _ACEOF
40016
40017 else
40018   ac_cv_func_getmntent=no
40019 fi
40020
40021
40022 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40023 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40024 if test "${ac_cv_func_closedir_void+set}" = set; then
40025   echo $ECHO_N "(cached) $ECHO_C" >&6
40026 else
40027   if test "$cross_compiling" = yes; then
40028   ac_cv_func_closedir_void=yes
40029 else
40030   cat >conftest.$ac_ext <<_ACEOF
40031 /* confdefs.h.  */
40032 _ACEOF
40033 cat confdefs.h >>conftest.$ac_ext
40034 cat >>conftest.$ac_ext <<_ACEOF
40035 /* end confdefs.h.  */
40036 $ac_includes_default
40037 #include <$ac_header_dirent>
40038 #ifndef __cplusplus
40039 int closedir ();
40040 #endif
40041
40042 int
40043 main ()
40044 {
40045 return closedir (opendir (".")) != 0;
40046   ;
40047   return 0;
40048 }
40049 _ACEOF
40050 rm -f conftest$ac_exeext
40051 if { (ac_try="$ac_link"
40052 case "(($ac_try" in
40053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40054   *) ac_try_echo=$ac_try;;
40055 esac
40056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40057   (eval "$ac_link") 2>&5
40058   ac_status=$?
40059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40061   { (case "(($ac_try" in
40062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40063   *) ac_try_echo=$ac_try;;
40064 esac
40065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40066   (eval "$ac_try") 2>&5
40067   ac_status=$?
40068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40069   (exit $ac_status); }; }; then
40070   ac_cv_func_closedir_void=no
40071 else
40072   echo "$as_me: program exited with status $ac_status" >&5
40073 echo "$as_me: failed program was:" >&5
40074 sed 's/^/| /' conftest.$ac_ext >&5
40075
40076 ( exit $ac_status )
40077 ac_cv_func_closedir_void=yes
40078 fi
40079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40080 fi
40081
40082
40083 fi
40084 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40085 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40086 if test $ac_cv_func_closedir_void = yes; then
40087
40088 cat >>confdefs.h <<\_ACEOF
40089 #define CLOSEDIR_VOID 1
40090 _ACEOF
40091
40092 fi
40093
40094 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40095 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40096 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40097   echo $ECHO_N "(cached) $ECHO_C" >&6
40098 else
40099   if test "$cross_compiling" = yes; then
40100   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40101 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40102    { (exit 1); exit 1; }; }
40103 else
40104   cat >conftest.$ac_ext <<_ACEOF
40105 /* confdefs.h.  */
40106 _ACEOF
40107 cat confdefs.h >>conftest.$ac_ext
40108 cat >>conftest.$ac_ext <<_ACEOF
40109 /* end confdefs.h.  */
40110 $ac_includes_default
40111 int
40112 main ()
40113 {
40114 /* If this system has a BSD-style setpgrp which takes arguments,
40115   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40116   exit successfully. */
40117   return setpgrp (1,1) != -1;
40118   ;
40119   return 0;
40120 }
40121 _ACEOF
40122 rm -f conftest$ac_exeext
40123 if { (ac_try="$ac_link"
40124 case "(($ac_try" in
40125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40126   *) ac_try_echo=$ac_try;;
40127 esac
40128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40129   (eval "$ac_link") 2>&5
40130   ac_status=$?
40131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40133   { (case "(($ac_try" in
40134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40135   *) ac_try_echo=$ac_try;;
40136 esac
40137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40138   (eval "$ac_try") 2>&5
40139   ac_status=$?
40140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40141   (exit $ac_status); }; }; then
40142   ac_cv_func_setpgrp_void=no
40143 else
40144   echo "$as_me: program exited with status $ac_status" >&5
40145 echo "$as_me: failed program was:" >&5
40146 sed 's/^/| /' conftest.$ac_ext >&5
40147
40148 ( exit $ac_status )
40149 ac_cv_func_setpgrp_void=yes
40150 fi
40151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40152 fi
40153
40154
40155 fi
40156 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40157 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40158 if test $ac_cv_func_setpgrp_void = yes; then
40159
40160 cat >>confdefs.h <<\_ACEOF
40161 #define SETPGRP_VOID 1
40162 _ACEOF
40163
40164 fi
40165             # AC_FUNC_FNMATCH    dnl use local version
40166
40167 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40168 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40169 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40170   echo $ECHO_N "(cached) $ECHO_C" >&6
40171 else
40172   ac_check_lib_save_LIBS=$LIBS
40173 LIBS="-lintl  $LIBS"
40174 cat >conftest.$ac_ext <<_ACEOF
40175 /* confdefs.h.  */
40176 _ACEOF
40177 cat confdefs.h >>conftest.$ac_ext
40178 cat >>conftest.$ac_ext <<_ACEOF
40179 /* end confdefs.h.  */
40180
40181 /* Override any GCC internal prototype to avoid an error.
40182    Use char because int might match the return type of a GCC
40183    builtin and then its argument prototype would still apply.  */
40184 #ifdef __cplusplus
40185 extern "C"
40186 #endif
40187 char gettext ();
40188 int
40189 main ()
40190 {
40191 return gettext ();
40192   ;
40193   return 0;
40194 }
40195 _ACEOF
40196 rm -f conftest.$ac_objext conftest$ac_exeext
40197 if { (ac_try="$ac_link"
40198 case "(($ac_try" in
40199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40200   *) ac_try_echo=$ac_try;;
40201 esac
40202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40203   (eval "$ac_link") 2>conftest.er1
40204   ac_status=$?
40205   grep -v '^ *+' conftest.er1 >conftest.err
40206   rm -f conftest.er1
40207   cat conftest.err >&5
40208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40209   (exit $ac_status); } && {
40210          test -z "$ac_c_werror_flag" ||
40211          test ! -s conftest.err
40212        } && test -s conftest$ac_exeext &&
40213        $as_test_x conftest$ac_exeext; then
40214   ac_cv_lib_intl_gettext=yes
40215 else
40216   echo "$as_me: failed program was:" >&5
40217 sed 's/^/| /' conftest.$ac_ext >&5
40218
40219         ac_cv_lib_intl_gettext=no
40220 fi
40221
40222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40223       conftest$ac_exeext conftest.$ac_ext
40224 LIBS=$ac_check_lib_save_LIBS
40225 fi
40226 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40227 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40228 if test $ac_cv_lib_intl_gettext = yes; then
40229   LIBS="$LIBS -lintl"
40230 fi
40231
40232
40233
40234 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40235 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40236 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40237   echo $ECHO_N "(cached) $ECHO_C" >&6
40238 else
40239   ac_check_lib_save_LIBS=$LIBS
40240 LIBS="-lsun  $LIBS"
40241 cat >conftest.$ac_ext <<_ACEOF
40242 /* confdefs.h.  */
40243 _ACEOF
40244 cat confdefs.h >>conftest.$ac_ext
40245 cat >>conftest.$ac_ext <<_ACEOF
40246 /* end confdefs.h.  */
40247
40248 /* Override any GCC internal prototype to avoid an error.
40249    Use char because int might match the return type of a GCC
40250    builtin and then its argument prototype would still apply.  */
40251 #ifdef __cplusplus
40252 extern "C"
40253 #endif
40254 char getpwnam ();
40255 int
40256 main ()
40257 {
40258 return getpwnam ();
40259   ;
40260   return 0;
40261 }
40262 _ACEOF
40263 rm -f conftest.$ac_objext conftest$ac_exeext
40264 if { (ac_try="$ac_link"
40265 case "(($ac_try" in
40266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40267   *) ac_try_echo=$ac_try;;
40268 esac
40269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40270   (eval "$ac_link") 2>conftest.er1
40271   ac_status=$?
40272   grep -v '^ *+' conftest.er1 >conftest.err
40273   rm -f conftest.er1
40274   cat conftest.err >&5
40275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40276   (exit $ac_status); } && {
40277          test -z "$ac_c_werror_flag" ||
40278          test ! -s conftest.err
40279        } && test -s conftest$ac_exeext &&
40280        $as_test_x conftest$ac_exeext; then
40281   ac_cv_lib_sun_getpwnam=yes
40282 else
40283   echo "$as_me: failed program was:" >&5
40284 sed 's/^/| /' conftest.$ac_ext >&5
40285
40286         ac_cv_lib_sun_getpwnam=no
40287 fi
40288
40289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40290       conftest$ac_exeext conftest.$ac_ext
40291 LIBS=$ac_check_lib_save_LIBS
40292 fi
40293 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40294 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40295 if test $ac_cv_lib_sun_getpwnam = yes; then
40296   cat >>confdefs.h <<_ACEOF
40297 #define HAVE_LIBSUN 1
40298 _ACEOF
40299
40300   LIBS="-lsun $LIBS"
40301
40302 fi
40303
40304
40305
40306 for ac_header in zlib.h
40307 do
40308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40310   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40313   echo $ECHO_N "(cached) $ECHO_C" >&6
40314 fi
40315 ac_res=`eval echo '${'$as_ac_Header'}'`
40316                { echo "$as_me:$LINENO: result: $ac_res" >&5
40317 echo "${ECHO_T}$ac_res" >&6; }
40318 else
40319   # Is the header compilable?
40320 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40322 cat >conftest.$ac_ext <<_ACEOF
40323 /* confdefs.h.  */
40324 _ACEOF
40325 cat confdefs.h >>conftest.$ac_ext
40326 cat >>conftest.$ac_ext <<_ACEOF
40327 /* end confdefs.h.  */
40328 $ac_includes_default
40329 #include <$ac_header>
40330 _ACEOF
40331 rm -f conftest.$ac_objext
40332 if { (ac_try="$ac_compile"
40333 case "(($ac_try" in
40334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40335   *) ac_try_echo=$ac_try;;
40336 esac
40337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40338   (eval "$ac_compile") 2>conftest.er1
40339   ac_status=$?
40340   grep -v '^ *+' conftest.er1 >conftest.err
40341   rm -f conftest.er1
40342   cat conftest.err >&5
40343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40344   (exit $ac_status); } && {
40345          test -z "$ac_c_werror_flag" ||
40346          test ! -s conftest.err
40347        } && test -s conftest.$ac_objext; then
40348   ac_header_compiler=yes
40349 else
40350   echo "$as_me: failed program was:" >&5
40351 sed 's/^/| /' conftest.$ac_ext >&5
40352
40353         ac_header_compiler=no
40354 fi
40355
40356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40358 echo "${ECHO_T}$ac_header_compiler" >&6; }
40359
40360 # Is the header present?
40361 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40363 cat >conftest.$ac_ext <<_ACEOF
40364 /* confdefs.h.  */
40365 _ACEOF
40366 cat confdefs.h >>conftest.$ac_ext
40367 cat >>conftest.$ac_ext <<_ACEOF
40368 /* end confdefs.h.  */
40369 #include <$ac_header>
40370 _ACEOF
40371 if { (ac_try="$ac_cpp conftest.$ac_ext"
40372 case "(($ac_try" in
40373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40374   *) ac_try_echo=$ac_try;;
40375 esac
40376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40377   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40378   ac_status=$?
40379   grep -v '^ *+' conftest.er1 >conftest.err
40380   rm -f conftest.er1
40381   cat conftest.err >&5
40382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40383   (exit $ac_status); } >/dev/null && {
40384          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40385          test ! -s conftest.err
40386        }; then
40387   ac_header_preproc=yes
40388 else
40389   echo "$as_me: failed program was:" >&5
40390 sed 's/^/| /' conftest.$ac_ext >&5
40391
40392   ac_header_preproc=no
40393 fi
40394
40395 rm -f conftest.err conftest.$ac_ext
40396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40397 echo "${ECHO_T}$ac_header_preproc" >&6; }
40398
40399 # So?  What about this header?
40400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40401   yes:no: )
40402     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40406     ac_header_preproc=yes
40407     ;;
40408   no:yes:* )
40409     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40411     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40412 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40413     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40415     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40416 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40419     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40421
40422     ;;
40423 esac
40424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40427   echo $ECHO_N "(cached) $ECHO_C" >&6
40428 else
40429   eval "$as_ac_Header=\$ac_header_preproc"
40430 fi
40431 ac_res=`eval echo '${'$as_ac_Header'}'`
40432                { echo "$as_me:$LINENO: result: $ac_res" >&5
40433 echo "${ECHO_T}$ac_res" >&6; }
40434
40435 fi
40436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40437   cat >>confdefs.h <<_ACEOF
40438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40439 _ACEOF
40440
40441 fi
40442
40443 done
40444
40445 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40446 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40447 if test "${ac_cv_lib_z_deflate+set}" = set; then
40448   echo $ECHO_N "(cached) $ECHO_C" >&6
40449 else
40450   ac_check_lib_save_LIBS=$LIBS
40451 LIBS="-lz  $LIBS"
40452 cat >conftest.$ac_ext <<_ACEOF
40453 /* confdefs.h.  */
40454 _ACEOF
40455 cat confdefs.h >>conftest.$ac_ext
40456 cat >>conftest.$ac_ext <<_ACEOF
40457 /* end confdefs.h.  */
40458
40459 /* Override any GCC internal prototype to avoid an error.
40460    Use char because int might match the return type of a GCC
40461    builtin and then its argument prototype would still apply.  */
40462 #ifdef __cplusplus
40463 extern "C"
40464 #endif
40465 char deflate ();
40466 int
40467 main ()
40468 {
40469 return deflate ();
40470   ;
40471   return 0;
40472 }
40473 _ACEOF
40474 rm -f conftest.$ac_objext conftest$ac_exeext
40475 if { (ac_try="$ac_link"
40476 case "(($ac_try" in
40477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40478   *) ac_try_echo=$ac_try;;
40479 esac
40480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40481   (eval "$ac_link") 2>conftest.er1
40482   ac_status=$?
40483   grep -v '^ *+' conftest.er1 >conftest.err
40484   rm -f conftest.er1
40485   cat conftest.err >&5
40486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40487   (exit $ac_status); } && {
40488          test -z "$ac_c_werror_flag" ||
40489          test ! -s conftest.err
40490        } && test -s conftest$ac_exeext &&
40491        $as_test_x conftest$ac_exeext; then
40492   ac_cv_lib_z_deflate=yes
40493 else
40494   echo "$as_me: failed program was:" >&5
40495 sed 's/^/| /' conftest.$ac_ext >&5
40496
40497         ac_cv_lib_z_deflate=no
40498 fi
40499
40500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40501       conftest$ac_exeext conftest.$ac_ext
40502 LIBS=$ac_check_lib_save_LIBS
40503 fi
40504 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40505 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40506 if test $ac_cv_lib_z_deflate = yes; then
40507   FDLIBS="-lz"
40508 fi
40509
40510 have_zlib=no
40511 if test x$FDLIBS = x-lz; then
40512    cat >>confdefs.h <<\_ACEOF
40513 #define HAVE_LIBZ 1
40514 _ACEOF
40515
40516    have_zlib=yes
40517 fi
40518
40519 support_acl=auto
40520 # Check whether --enable-acl was given.
40521 if test "${enable_acl+set}" = set; then
40522   enableval=$enable_acl;
40523        if test x$enableval = xyes; then
40524           support_acl=yes
40525        elif test x$enableval = xno; then
40526           support_acl=no
40527        fi
40528
40529
40530 fi
40531
40532
40533 have_acl=no
40534 have_extended_acl=no
40535 if test x$support_acl = xyes -o x$support_acl = xauto; then
40536    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40537   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40538 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40539 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40540   echo $ECHO_N "(cached) $ECHO_C" >&6
40541 fi
40542 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40543 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40544 else
40545   # Is the header compilable?
40546 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40547 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40548 cat >conftest.$ac_ext <<_ACEOF
40549 /* confdefs.h.  */
40550 _ACEOF
40551 cat confdefs.h >>conftest.$ac_ext
40552 cat >>conftest.$ac_ext <<_ACEOF
40553 /* end confdefs.h.  */
40554 $ac_includes_default
40555 #include <sys/acl.h>
40556 _ACEOF
40557 rm -f conftest.$ac_objext
40558 if { (ac_try="$ac_compile"
40559 case "(($ac_try" in
40560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40561   *) ac_try_echo=$ac_try;;
40562 esac
40563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40564   (eval "$ac_compile") 2>conftest.er1
40565   ac_status=$?
40566   grep -v '^ *+' conftest.er1 >conftest.err
40567   rm -f conftest.er1
40568   cat conftest.err >&5
40569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40570   (exit $ac_status); } && {
40571          test -z "$ac_c_werror_flag" ||
40572          test ! -s conftest.err
40573        } && test -s conftest.$ac_objext; then
40574   ac_header_compiler=yes
40575 else
40576   echo "$as_me: failed program was:" >&5
40577 sed 's/^/| /' conftest.$ac_ext >&5
40578
40579         ac_header_compiler=no
40580 fi
40581
40582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40584 echo "${ECHO_T}$ac_header_compiler" >&6; }
40585
40586 # Is the header present?
40587 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40588 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40589 cat >conftest.$ac_ext <<_ACEOF
40590 /* confdefs.h.  */
40591 _ACEOF
40592 cat confdefs.h >>conftest.$ac_ext
40593 cat >>conftest.$ac_ext <<_ACEOF
40594 /* end confdefs.h.  */
40595 #include <sys/acl.h>
40596 _ACEOF
40597 if { (ac_try="$ac_cpp conftest.$ac_ext"
40598 case "(($ac_try" in
40599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40600   *) ac_try_echo=$ac_try;;
40601 esac
40602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40604   ac_status=$?
40605   grep -v '^ *+' conftest.er1 >conftest.err
40606   rm -f conftest.er1
40607   cat conftest.err >&5
40608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40609   (exit $ac_status); } >/dev/null && {
40610          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40611          test ! -s conftest.err
40612        }; then
40613   ac_header_preproc=yes
40614 else
40615   echo "$as_me: failed program was:" >&5
40616 sed 's/^/| /' conftest.$ac_ext >&5
40617
40618   ac_header_preproc=no
40619 fi
40620
40621 rm -f conftest.err conftest.$ac_ext
40622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40623 echo "${ECHO_T}$ac_header_preproc" >&6; }
40624
40625 # So?  What about this header?
40626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40627   yes:no: )
40628     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40629 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40630     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40631 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40632     ac_header_preproc=yes
40633     ;;
40634   no:yes:* )
40635     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40636 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40637     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40638 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40639     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40640 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40641     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40642 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40643     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40644 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40645     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40646 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40647
40648     ;;
40649 esac
40650 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40651 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40652 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40653   echo $ECHO_N "(cached) $ECHO_C" >&6
40654 else
40655   ac_cv_header_sys_acl_h=$ac_header_preproc
40656 fi
40657 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40658 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40659
40660 fi
40661 if test $ac_cv_header_sys_acl_h = yes; then
40662
40663 cat >>confdefs.h <<\_ACEOF
40664 #define HAVE_SYS_ACL_H 1
40665 _ACEOF
40666
40667 fi
40668
40669
40670    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40671 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40672 if test "${ac_cv_func_acl_get_file+set}" = set; then
40673   echo $ECHO_N "(cached) $ECHO_C" >&6
40674 else
40675   cat >conftest.$ac_ext <<_ACEOF
40676 /* confdefs.h.  */
40677 _ACEOF
40678 cat confdefs.h >>conftest.$ac_ext
40679 cat >>conftest.$ac_ext <<_ACEOF
40680 /* end confdefs.h.  */
40681 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40683 #define acl_get_file innocuous_acl_get_file
40684
40685 /* System header to define __stub macros and hopefully few prototypes,
40686     which can conflict with char acl_get_file (); below.
40687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40688     <limits.h> exists even on freestanding compilers.  */
40689
40690 #ifdef __STDC__
40691 # include <limits.h>
40692 #else
40693 # include <assert.h>
40694 #endif
40695
40696 #undef acl_get_file
40697
40698 /* Override any GCC internal prototype to avoid an error.
40699    Use char because int might match the return type of a GCC
40700    builtin and then its argument prototype would still apply.  */
40701 #ifdef __cplusplus
40702 extern "C"
40703 #endif
40704 char acl_get_file ();
40705 /* The GNU C library defines this for functions which it implements
40706     to always fail with ENOSYS.  Some functions are actually named
40707     something starting with __ and the normal name is an alias.  */
40708 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40709 choke me
40710 #endif
40711
40712 int
40713 main ()
40714 {
40715 return acl_get_file ();
40716   ;
40717   return 0;
40718 }
40719 _ACEOF
40720 rm -f conftest.$ac_objext conftest$ac_exeext
40721 if { (ac_try="$ac_link"
40722 case "(($ac_try" in
40723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40724   *) ac_try_echo=$ac_try;;
40725 esac
40726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40727   (eval "$ac_link") 2>conftest.er1
40728   ac_status=$?
40729   grep -v '^ *+' conftest.er1 >conftest.err
40730   rm -f conftest.er1
40731   cat conftest.err >&5
40732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40733   (exit $ac_status); } && {
40734          test -z "$ac_c_werror_flag" ||
40735          test ! -s conftest.err
40736        } && test -s conftest$ac_exeext &&
40737        $as_test_x conftest$ac_exeext; then
40738   ac_cv_func_acl_get_file=yes
40739 else
40740   echo "$as_me: failed program was:" >&5
40741 sed 's/^/| /' conftest.$ac_ext >&5
40742
40743         ac_cv_func_acl_get_file=no
40744 fi
40745
40746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40747       conftest$ac_exeext conftest.$ac_ext
40748 fi
40749 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40750 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40751 if test $ac_cv_func_acl_get_file = yes; then
40752
40753           have_acl=yes
40754
40755 else
40756
40757           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40758 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40759 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40760   echo $ECHO_N "(cached) $ECHO_C" >&6
40761 else
40762   ac_check_lib_save_LIBS=$LIBS
40763 LIBS="-lacl  $LIBS"
40764 cat >conftest.$ac_ext <<_ACEOF
40765 /* confdefs.h.  */
40766 _ACEOF
40767 cat confdefs.h >>conftest.$ac_ext
40768 cat >>conftest.$ac_ext <<_ACEOF
40769 /* end confdefs.h.  */
40770
40771 /* Override any GCC internal prototype to avoid an error.
40772    Use char because int might match the return type of a GCC
40773    builtin and then its argument prototype would still apply.  */
40774 #ifdef __cplusplus
40775 extern "C"
40776 #endif
40777 char acl_get_file ();
40778 int
40779 main ()
40780 {
40781 return acl_get_file ();
40782   ;
40783   return 0;
40784 }
40785 _ACEOF
40786 rm -f conftest.$ac_objext conftest$ac_exeext
40787 if { (ac_try="$ac_link"
40788 case "(($ac_try" in
40789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40790   *) ac_try_echo=$ac_try;;
40791 esac
40792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40793   (eval "$ac_link") 2>conftest.er1
40794   ac_status=$?
40795   grep -v '^ *+' conftest.er1 >conftest.err
40796   rm -f conftest.er1
40797   cat conftest.err >&5
40798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40799   (exit $ac_status); } && {
40800          test -z "$ac_c_werror_flag" ||
40801          test ! -s conftest.err
40802        } && test -s conftest$ac_exeext &&
40803        $as_test_x conftest$ac_exeext; then
40804   ac_cv_lib_acl_acl_get_file=yes
40805 else
40806   echo "$as_me: failed program was:" >&5
40807 sed 's/^/| /' conftest.$ac_ext >&5
40808
40809         ac_cv_lib_acl_acl_get_file=no
40810 fi
40811
40812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40813       conftest$ac_exeext conftest.$ac_ext
40814 LIBS=$ac_check_lib_save_LIBS
40815 fi
40816 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40817 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40818 if test $ac_cv_lib_acl_acl_get_file = yes; then
40819
40820                  have_acl=yes;
40821                  FDLIBS="-lacl $FDLIBS"
40822
40823 else
40824
40825                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40826 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40827 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40828   echo $ECHO_N "(cached) $ECHO_C" >&6
40829 else
40830   ac_check_lib_save_LIBS=$LIBS
40831 LIBS="-lpacl  $LIBS"
40832 cat >conftest.$ac_ext <<_ACEOF
40833 /* confdefs.h.  */
40834 _ACEOF
40835 cat confdefs.h >>conftest.$ac_ext
40836 cat >>conftest.$ac_ext <<_ACEOF
40837 /* end confdefs.h.  */
40838
40839 /* Override any GCC internal prototype to avoid an error.
40840    Use char because int might match the return type of a GCC
40841    builtin and then its argument prototype would still apply.  */
40842 #ifdef __cplusplus
40843 extern "C"
40844 #endif
40845 char acl_get_file ();
40846 int
40847 main ()
40848 {
40849 return acl_get_file ();
40850   ;
40851   return 0;
40852 }
40853 _ACEOF
40854 rm -f conftest.$ac_objext conftest$ac_exeext
40855 if { (ac_try="$ac_link"
40856 case "(($ac_try" in
40857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40858   *) ac_try_echo=$ac_try;;
40859 esac
40860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40861   (eval "$ac_link") 2>conftest.er1
40862   ac_status=$?
40863   grep -v '^ *+' conftest.er1 >conftest.err
40864   rm -f conftest.er1
40865   cat conftest.err >&5
40866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40867   (exit $ac_status); } && {
40868          test -z "$ac_c_werror_flag" ||
40869          test ! -s conftest.err
40870        } && test -s conftest$ac_exeext &&
40871        $as_test_x conftest$ac_exeext; then
40872   ac_cv_lib_pacl_acl_get_file=yes
40873 else
40874   echo "$as_me: failed program was:" >&5
40875 sed 's/^/| /' conftest.$ac_ext >&5
40876
40877         ac_cv_lib_pacl_acl_get_file=no
40878 fi
40879
40880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40881       conftest$ac_exeext conftest.$ac_ext
40882 LIBS=$ac_check_lib_save_LIBS
40883 fi
40884 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40885 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40886 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40887
40888                         have_acl=yes;
40889                         FDLIBS="-lpacl $FDLIBS"
40890
40891 else
40892
40893                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40894 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40895 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40896   echo $ECHO_N "(cached) $ECHO_C" >&6
40897 else
40898   ac_check_lib_save_LIBS=$LIBS
40899 LIBS="-lsec  $LIBS"
40900 cat >conftest.$ac_ext <<_ACEOF
40901 /* confdefs.h.  */
40902 _ACEOF
40903 cat confdefs.h >>conftest.$ac_ext
40904 cat >>conftest.$ac_ext <<_ACEOF
40905 /* end confdefs.h.  */
40906
40907 /* Override any GCC internal prototype to avoid an error.
40908    Use char because int might match the return type of a GCC
40909    builtin and then its argument prototype would still apply.  */
40910 #ifdef __cplusplus
40911 extern "C"
40912 #endif
40913 char acltotext ();
40914 int
40915 main ()
40916 {
40917 return acltotext ();
40918   ;
40919   return 0;
40920 }
40921 _ACEOF
40922 rm -f conftest.$ac_objext conftest$ac_exeext
40923 if { (ac_try="$ac_link"
40924 case "(($ac_try" in
40925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40926   *) ac_try_echo=$ac_try;;
40927 esac
40928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40929   (eval "$ac_link") 2>conftest.er1
40930   ac_status=$?
40931   grep -v '^ *+' conftest.er1 >conftest.err
40932   rm -f conftest.er1
40933   cat conftest.err >&5
40934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40935   (exit $ac_status); } && {
40936          test -z "$ac_c_werror_flag" ||
40937          test ! -s conftest.err
40938        } && test -s conftest$ac_exeext &&
40939        $as_test_x conftest$ac_exeext; then
40940   ac_cv_lib_sec_acltotext=yes
40941 else
40942   echo "$as_me: failed program was:" >&5
40943 sed 's/^/| /' conftest.$ac_ext >&5
40944
40945         ac_cv_lib_sec_acltotext=no
40946 fi
40947
40948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40949       conftest$ac_exeext conftest.$ac_ext
40950 LIBS=$ac_check_lib_save_LIBS
40951 fi
40952 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40953 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40954 if test $ac_cv_lib_sec_acltotext = yes; then
40955
40956                                have_acl=yes;
40957                                FDLIBS="-lsec $FDLIBS"
40958
40959                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
40960 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
40961 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
40962   echo $ECHO_N "(cached) $ECHO_C" >&6
40963 else
40964   ac_check_lib_save_LIBS=$LIBS
40965 LIBS="-lsec  $LIBS"
40966 cat >conftest.$ac_ext <<_ACEOF
40967 /* confdefs.h.  */
40968 _ACEOF
40969 cat confdefs.h >>conftest.$ac_ext
40970 cat >>conftest.$ac_ext <<_ACEOF
40971 /* end confdefs.h.  */
40972
40973 /* Override any GCC internal prototype to avoid an error.
40974    Use char because int might match the return type of a GCC
40975    builtin and then its argument prototype would still apply.  */
40976 #ifdef __cplusplus
40977 extern "C"
40978 #endif
40979 char acl_totext ();
40980 int
40981 main ()
40982 {
40983 return acl_totext ();
40984   ;
40985   return 0;
40986 }
40987 _ACEOF
40988 rm -f conftest.$ac_objext conftest$ac_exeext
40989 if { (ac_try="$ac_link"
40990 case "(($ac_try" in
40991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40992   *) ac_try_echo=$ac_try;;
40993 esac
40994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40995   (eval "$ac_link") 2>conftest.er1
40996   ac_status=$?
40997   grep -v '^ *+' conftest.er1 >conftest.err
40998   rm -f conftest.er1
40999   cat conftest.err >&5
41000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41001   (exit $ac_status); } && {
41002          test -z "$ac_c_werror_flag" ||
41003          test ! -s conftest.err
41004        } && test -s conftest$ac_exeext &&
41005        $as_test_x conftest$ac_exeext; then
41006   ac_cv_lib_sec_acl_totext=yes
41007 else
41008   echo "$as_me: failed program was:" >&5
41009 sed 's/^/| /' conftest.$ac_ext >&5
41010
41011         ac_cv_lib_sec_acl_totext=no
41012 fi
41013
41014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41015       conftest$ac_exeext conftest.$ac_ext
41016 LIBS=$ac_check_lib_save_LIBS
41017 fi
41018 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41019 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41020 if test $ac_cv_lib_sec_acl_totext = yes; then
41021
41022                                       have_extended_acl=yes
41023
41024
41025 fi
41026
41027
41028
41029 fi
41030
41031
41032
41033 fi
41034
41035
41036
41037 fi
41038
41039
41040
41041 fi
41042
41043
41044    if test x$support_acl = xyes -a $have_acl != yes; then
41045       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41046   please either load the acl libraries or rerun configure without --enable-acl" >&5
41047 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41048   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41049    { (exit 1); exit 1; }; }
41050    else
41051       if test $have_acl = yes; then
41052
41053 cat >>confdefs.h <<\_ACEOF
41054 #define HAVE_ACL 1
41055 _ACEOF
41056
41057       fi
41058
41059       if test $have_extended_acl = yes; then
41060
41061 cat >>confdefs.h <<\_ACEOF
41062 #define HAVE_EXTENDED_ACL 1
41063 _ACEOF
41064
41065       fi
41066    fi
41067 fi
41068
41069 support_xattr=auto
41070 # Check whether --enable-xattr was given.
41071 if test "${enable_xattr+set}" = set; then
41072   enableval=$enable_xattr;
41073        if test x$enableval = xyes; then
41074           support_xattr=yes
41075        elif test x$enableval = xno; then
41076           support_xattr=no
41077        fi
41078
41079
41080 fi
41081
41082
41083 have_xattr=no
41084 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41085             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41086   { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41087 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41088 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41089   echo $ECHO_N "(cached) $ECHO_C" >&6
41090 fi
41091 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41092 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41093 else
41094   # Is the header compilable?
41095 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41096 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41097 cat >conftest.$ac_ext <<_ACEOF
41098 /* confdefs.h.  */
41099 _ACEOF
41100 cat confdefs.h >>conftest.$ac_ext
41101 cat >>conftest.$ac_ext <<_ACEOF
41102 /* end confdefs.h.  */
41103 $ac_includes_default
41104 #include <sys/extattr.h>
41105 _ACEOF
41106 rm -f conftest.$ac_objext
41107 if { (ac_try="$ac_compile"
41108 case "(($ac_try" in
41109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41110   *) ac_try_echo=$ac_try;;
41111 esac
41112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41113   (eval "$ac_compile") 2>conftest.er1
41114   ac_status=$?
41115   grep -v '^ *+' conftest.er1 >conftest.err
41116   rm -f conftest.er1
41117   cat conftest.err >&5
41118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41119   (exit $ac_status); } && {
41120          test -z "$ac_c_werror_flag" ||
41121          test ! -s conftest.err
41122        } && test -s conftest.$ac_objext; then
41123   ac_header_compiler=yes
41124 else
41125   echo "$as_me: failed program was:" >&5
41126 sed 's/^/| /' conftest.$ac_ext >&5
41127
41128         ac_header_compiler=no
41129 fi
41130
41131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41133 echo "${ECHO_T}$ac_header_compiler" >&6; }
41134
41135 # Is the header present?
41136 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41137 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41138 cat >conftest.$ac_ext <<_ACEOF
41139 /* confdefs.h.  */
41140 _ACEOF
41141 cat confdefs.h >>conftest.$ac_ext
41142 cat >>conftest.$ac_ext <<_ACEOF
41143 /* end confdefs.h.  */
41144 #include <sys/extattr.h>
41145 _ACEOF
41146 if { (ac_try="$ac_cpp conftest.$ac_ext"
41147 case "(($ac_try" in
41148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41149   *) ac_try_echo=$ac_try;;
41150 esac
41151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41153   ac_status=$?
41154   grep -v '^ *+' conftest.er1 >conftest.err
41155   rm -f conftest.er1
41156   cat conftest.err >&5
41157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41158   (exit $ac_status); } >/dev/null && {
41159          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41160          test ! -s conftest.err
41161        }; then
41162   ac_header_preproc=yes
41163 else
41164   echo "$as_me: failed program was:" >&5
41165 sed 's/^/| /' conftest.$ac_ext >&5
41166
41167   ac_header_preproc=no
41168 fi
41169
41170 rm -f conftest.err conftest.$ac_ext
41171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41172 echo "${ECHO_T}$ac_header_preproc" >&6; }
41173
41174 # So?  What about this header?
41175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41176   yes:no: )
41177     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41178 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41179     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41180 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41181     ac_header_preproc=yes
41182     ;;
41183   no:yes:* )
41184     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41185 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41186     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
41187 echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
41188     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41189 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41190     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41191 echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41192     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41193 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41194     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41195 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41196
41197     ;;
41198 esac
41199 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41200 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41201 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41202   echo $ECHO_N "(cached) $ECHO_C" >&6
41203 else
41204   ac_cv_header_sys_extattr_h=$ac_header_preproc
41205 fi
41206 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41207 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41208
41209 fi
41210 if test $ac_cv_header_sys_extattr_h = yes; then
41211
41212 cat >>confdefs.h <<\_ACEOF
41213 #define HAVE_SYS_EXTATTR_H 1
41214 _ACEOF
41215
41216 fi
41217
41218
41219    if test "${ac_cv_header_libutil_h+set}" = set; then
41220   { echo "$as_me:$LINENO: checking for libutil.h" >&5
41221 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41222 if test "${ac_cv_header_libutil_h+set}" = set; then
41223   echo $ECHO_N "(cached) $ECHO_C" >&6
41224 fi
41225 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41226 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41227 else
41228   # Is the header compilable?
41229 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41230 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41231 cat >conftest.$ac_ext <<_ACEOF
41232 /* confdefs.h.  */
41233 _ACEOF
41234 cat confdefs.h >>conftest.$ac_ext
41235 cat >>conftest.$ac_ext <<_ACEOF
41236 /* end confdefs.h.  */
41237 $ac_includes_default
41238 #include <libutil.h>
41239 _ACEOF
41240 rm -f conftest.$ac_objext
41241 if { (ac_try="$ac_compile"
41242 case "(($ac_try" in
41243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41244   *) ac_try_echo=$ac_try;;
41245 esac
41246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41247   (eval "$ac_compile") 2>conftest.er1
41248   ac_status=$?
41249   grep -v '^ *+' conftest.er1 >conftest.err
41250   rm -f conftest.er1
41251   cat conftest.err >&5
41252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41253   (exit $ac_status); } && {
41254          test -z "$ac_c_werror_flag" ||
41255          test ! -s conftest.err
41256        } && test -s conftest.$ac_objext; then
41257   ac_header_compiler=yes
41258 else
41259   echo "$as_me: failed program was:" >&5
41260 sed 's/^/| /' conftest.$ac_ext >&5
41261
41262         ac_header_compiler=no
41263 fi
41264
41265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41267 echo "${ECHO_T}$ac_header_compiler" >&6; }
41268
41269 # Is the header present?
41270 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41271 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41272 cat >conftest.$ac_ext <<_ACEOF
41273 /* confdefs.h.  */
41274 _ACEOF
41275 cat confdefs.h >>conftest.$ac_ext
41276 cat >>conftest.$ac_ext <<_ACEOF
41277 /* end confdefs.h.  */
41278 #include <libutil.h>
41279 _ACEOF
41280 if { (ac_try="$ac_cpp conftest.$ac_ext"
41281 case "(($ac_try" in
41282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41283   *) ac_try_echo=$ac_try;;
41284 esac
41285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41286   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41287   ac_status=$?
41288   grep -v '^ *+' conftest.er1 >conftest.err
41289   rm -f conftest.er1
41290   cat conftest.err >&5
41291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41292   (exit $ac_status); } >/dev/null && {
41293          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41294          test ! -s conftest.err
41295        }; then
41296   ac_header_preproc=yes
41297 else
41298   echo "$as_me: failed program was:" >&5
41299 sed 's/^/| /' conftest.$ac_ext >&5
41300
41301   ac_header_preproc=no
41302 fi
41303
41304 rm -f conftest.err conftest.$ac_ext
41305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41306 echo "${ECHO_T}$ac_header_preproc" >&6; }
41307
41308 # So?  What about this header?
41309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41310   yes:no: )
41311     { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41312 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41313     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41314 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41315     ac_header_preproc=yes
41316     ;;
41317   no:yes:* )
41318     { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41319 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41320     { echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
41321 echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
41322     { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41323 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41324     { echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
41325 echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41326     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41327 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41328     { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41329 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41330
41331     ;;
41332 esac
41333 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41334 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41335 if test "${ac_cv_header_libutil_h+set}" = set; then
41336   echo $ECHO_N "(cached) $ECHO_C" >&6
41337 else
41338   ac_cv_header_libutil_h=$ac_header_preproc
41339 fi
41340 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41341 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41342
41343 fi
41344 if test $ac_cv_header_libutil_h = yes; then
41345
41346 cat >>confdefs.h <<\_ACEOF
41347 #define HAVE_LIBUTIL_H 1
41348 _ACEOF
41349
41350 fi
41351
41352
41353
41354
41355
41356 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41357 do
41358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41362   echo $ECHO_N "(cached) $ECHO_C" >&6
41363 else
41364   cat >conftest.$ac_ext <<_ACEOF
41365 /* confdefs.h.  */
41366 _ACEOF
41367 cat confdefs.h >>conftest.$ac_ext
41368 cat >>conftest.$ac_ext <<_ACEOF
41369 /* end confdefs.h.  */
41370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41372 #define $ac_func innocuous_$ac_func
41373
41374 /* System header to define __stub macros and hopefully few prototypes,
41375     which can conflict with char $ac_func (); below.
41376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41377     <limits.h> exists even on freestanding compilers.  */
41378
41379 #ifdef __STDC__
41380 # include <limits.h>
41381 #else
41382 # include <assert.h>
41383 #endif
41384
41385 #undef $ac_func
41386
41387 /* Override any GCC internal prototype to avoid an error.
41388    Use char because int might match the return type of a GCC
41389    builtin and then its argument prototype would still apply.  */
41390 #ifdef __cplusplus
41391 extern "C"
41392 #endif
41393 char $ac_func ();
41394 /* The GNU C library defines this for functions which it implements
41395     to always fail with ENOSYS.  Some functions are actually named
41396     something starting with __ and the normal name is an alias.  */
41397 #if defined __stub_$ac_func || defined __stub___$ac_func
41398 choke me
41399 #endif
41400
41401 int
41402 main ()
41403 {
41404 return $ac_func ();
41405   ;
41406   return 0;
41407 }
41408 _ACEOF
41409 rm -f conftest.$ac_objext conftest$ac_exeext
41410 if { (ac_try="$ac_link"
41411 case "(($ac_try" in
41412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41413   *) ac_try_echo=$ac_try;;
41414 esac
41415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41416   (eval "$ac_link") 2>conftest.er1
41417   ac_status=$?
41418   grep -v '^ *+' conftest.er1 >conftest.err
41419   rm -f conftest.er1
41420   cat conftest.err >&5
41421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41422   (exit $ac_status); } && {
41423          test -z "$ac_c_werror_flag" ||
41424          test ! -s conftest.err
41425        } && test -s conftest$ac_exeext &&
41426        $as_test_x conftest$ac_exeext; then
41427   eval "$as_ac_var=yes"
41428 else
41429   echo "$as_me: failed program was:" >&5
41430 sed 's/^/| /' conftest.$ac_ext >&5
41431
41432         eval "$as_ac_var=no"
41433 fi
41434
41435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41436       conftest$ac_exeext conftest.$ac_ext
41437 fi
41438 ac_res=`eval echo '${'$as_ac_var'}'`
41439                { echo "$as_me:$LINENO: result: $ac_res" >&5
41440 echo "${ECHO_T}$ac_res" >&6; }
41441 if test `eval echo '${'$as_ac_var'}'` = yes; then
41442   cat >>confdefs.h <<_ACEOF
41443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41444 _ACEOF
41445
41446           have_xattr=yes
41447
41448 cat >>confdefs.h <<\_ACEOF
41449 #define HAVE_EXTATTR_GET_LINK 1
41450 _ACEOF
41451
41452
41453 cat >>confdefs.h <<\_ACEOF
41454 #define HAVE_EXTATTR_SET_LINK 1
41455 _ACEOF
41456
41457
41458 cat >>confdefs.h <<\_ACEOF
41459 #define HAVE_EXTATTR_LIST_LINK 1
41460 _ACEOF
41461
41462
41463
41464 fi
41465 done
41466
41467
41468    if test $have_xattr = no; then
41469
41470
41471
41472 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41473 do
41474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41478   echo $ECHO_N "(cached) $ECHO_C" >&6
41479 else
41480   cat >conftest.$ac_ext <<_ACEOF
41481 /* confdefs.h.  */
41482 _ACEOF
41483 cat confdefs.h >>conftest.$ac_ext
41484 cat >>conftest.$ac_ext <<_ACEOF
41485 /* end confdefs.h.  */
41486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41488 #define $ac_func innocuous_$ac_func
41489
41490 /* System header to define __stub macros and hopefully few prototypes,
41491     which can conflict with char $ac_func (); below.
41492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41493     <limits.h> exists even on freestanding compilers.  */
41494
41495 #ifdef __STDC__
41496 # include <limits.h>
41497 #else
41498 # include <assert.h>
41499 #endif
41500
41501 #undef $ac_func
41502
41503 /* Override any GCC internal prototype to avoid an error.
41504    Use char because int might match the return type of a GCC
41505    builtin and then its argument prototype would still apply.  */
41506 #ifdef __cplusplus
41507 extern "C"
41508 #endif
41509 char $ac_func ();
41510 /* The GNU C library defines this for functions which it implements
41511     to always fail with ENOSYS.  Some functions are actually named
41512     something starting with __ and the normal name is an alias.  */
41513 #if defined __stub_$ac_func || defined __stub___$ac_func
41514 choke me
41515 #endif
41516
41517 int
41518 main ()
41519 {
41520 return $ac_func ();
41521   ;
41522   return 0;
41523 }
41524 _ACEOF
41525 rm -f conftest.$ac_objext conftest$ac_exeext
41526 if { (ac_try="$ac_link"
41527 case "(($ac_try" in
41528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41529   *) ac_try_echo=$ac_try;;
41530 esac
41531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41532   (eval "$ac_link") 2>conftest.er1
41533   ac_status=$?
41534   grep -v '^ *+' conftest.er1 >conftest.err
41535   rm -f conftest.er1
41536   cat conftest.err >&5
41537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41538   (exit $ac_status); } && {
41539          test -z "$ac_c_werror_flag" ||
41540          test ! -s conftest.err
41541        } && test -s conftest$ac_exeext &&
41542        $as_test_x conftest$ac_exeext; then
41543   eval "$as_ac_var=yes"
41544 else
41545   echo "$as_me: failed program was:" >&5
41546 sed 's/^/| /' conftest.$ac_ext >&5
41547
41548         eval "$as_ac_var=no"
41549 fi
41550
41551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41552       conftest$ac_exeext conftest.$ac_ext
41553 fi
41554 ac_res=`eval echo '${'$as_ac_var'}'`
41555                { echo "$as_me:$LINENO: result: $ac_res" >&5
41556 echo "${ECHO_T}$ac_res" >&6; }
41557 if test `eval echo '${'$as_ac_var'}'` = yes; then
41558   cat >>confdefs.h <<_ACEOF
41559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41560 _ACEOF
41561
41562              have_xattr=yes
41563
41564 cat >>confdefs.h <<\_ACEOF
41565 #define HAVE_EXTATTR_GET_FILE 1
41566 _ACEOF
41567
41568
41569 cat >>confdefs.h <<\_ACEOF
41570 #define HAVE_EXTATTR_SET_FILE 1
41571 _ACEOF
41572
41573
41574 cat >>confdefs.h <<\_ACEOF
41575 #define HAVE_EXTATTR_LIST_FILE 1
41576 _ACEOF
41577
41578
41579
41580 fi
41581 done
41582
41583    fi
41584
41585    if test $have_xattr = yes; then
41586       have_extattr_string_in_libc=no
41587
41588
41589 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41590 do
41591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41595   echo $ECHO_N "(cached) $ECHO_C" >&6
41596 else
41597   cat >conftest.$ac_ext <<_ACEOF
41598 /* confdefs.h.  */
41599 _ACEOF
41600 cat confdefs.h >>conftest.$ac_ext
41601 cat >>conftest.$ac_ext <<_ACEOF
41602 /* end confdefs.h.  */
41603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41605 #define $ac_func innocuous_$ac_func
41606
41607 /* System header to define __stub macros and hopefully few prototypes,
41608     which can conflict with char $ac_func (); below.
41609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41610     <limits.h> exists even on freestanding compilers.  */
41611
41612 #ifdef __STDC__
41613 # include <limits.h>
41614 #else
41615 # include <assert.h>
41616 #endif
41617
41618 #undef $ac_func
41619
41620 /* Override any GCC internal prototype to avoid an error.
41621    Use char because int might match the return type of a GCC
41622    builtin and then its argument prototype would still apply.  */
41623 #ifdef __cplusplus
41624 extern "C"
41625 #endif
41626 char $ac_func ();
41627 /* The GNU C library defines this for functions which it implements
41628     to always fail with ENOSYS.  Some functions are actually named
41629     something starting with __ and the normal name is an alias.  */
41630 #if defined __stub_$ac_func || defined __stub___$ac_func
41631 choke me
41632 #endif
41633
41634 int
41635 main ()
41636 {
41637 return $ac_func ();
41638   ;
41639   return 0;
41640 }
41641 _ACEOF
41642 rm -f conftest.$ac_objext conftest$ac_exeext
41643 if { (ac_try="$ac_link"
41644 case "(($ac_try" in
41645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41646   *) ac_try_echo=$ac_try;;
41647 esac
41648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41649   (eval "$ac_link") 2>conftest.er1
41650   ac_status=$?
41651   grep -v '^ *+' conftest.er1 >conftest.err
41652   rm -f conftest.er1
41653   cat conftest.err >&5
41654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41655   (exit $ac_status); } && {
41656          test -z "$ac_c_werror_flag" ||
41657          test ! -s conftest.err
41658        } && test -s conftest$ac_exeext &&
41659        $as_test_x conftest$ac_exeext; then
41660   eval "$as_ac_var=yes"
41661 else
41662   echo "$as_me: failed program was:" >&5
41663 sed 's/^/| /' conftest.$ac_ext >&5
41664
41665         eval "$as_ac_var=no"
41666 fi
41667
41668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41669       conftest$ac_exeext conftest.$ac_ext
41670 fi
41671 ac_res=`eval echo '${'$as_ac_var'}'`
41672                { echo "$as_me:$LINENO: result: $ac_res" >&5
41673 echo "${ECHO_T}$ac_res" >&6; }
41674 if test `eval echo '${'$as_ac_var'}'` = yes; then
41675   cat >>confdefs.h <<_ACEOF
41676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41677 _ACEOF
41678
41679              have_extattr_string_in_libc=yes
41680
41681 cat >>confdefs.h <<\_ACEOF
41682 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
41683 _ACEOF
41684
41685
41686 cat >>confdefs.h <<\_ACEOF
41687 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
41688 _ACEOF
41689
41690
41691
41692 fi
41693 done
41694
41695
41696                         if test $have_extattr_string_in_libc = no; then
41697          { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
41698 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
41699 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
41700   echo $ECHO_N "(cached) $ECHO_C" >&6
41701 else
41702   ac_check_lib_save_LIBS=$LIBS
41703 LIBS="-lutil  $LIBS"
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
41711 /* Override any GCC internal prototype to avoid an error.
41712    Use char because int might match the return type of a GCC
41713    builtin and then its argument prototype would still apply.  */
41714 #ifdef __cplusplus
41715 extern "C"
41716 #endif
41717 char extattr_namespace_to_string extattr_string_to_namespace ();
41718 int
41719 main ()
41720 {
41721 return extattr_namespace_to_string extattr_string_to_namespace ();
41722   ;
41723   return 0;
41724 }
41725 _ACEOF
41726 rm -f conftest.$ac_objext conftest$ac_exeext
41727 if { (ac_try="$ac_link"
41728 case "(($ac_try" in
41729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41730   *) ac_try_echo=$ac_try;;
41731 esac
41732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41733   (eval "$ac_link") 2>conftest.er1
41734   ac_status=$?
41735   grep -v '^ *+' conftest.er1 >conftest.err
41736   rm -f conftest.er1
41737   cat conftest.err >&5
41738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41739   (exit $ac_status); } && {
41740          test -z "$ac_c_werror_flag" ||
41741          test ! -s conftest.err
41742        } && test -s conftest$ac_exeext &&
41743        $as_test_x conftest$ac_exeext; then
41744   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
41745 else
41746   echo "$as_me: failed program was:" >&5
41747 sed 's/^/| /' conftest.$ac_ext >&5
41748
41749         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
41750 fi
41751
41752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41753       conftest$ac_exeext conftest.$ac_ext
41754 LIBS=$ac_check_lib_save_LIBS
41755 fi
41756 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
41757 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
41758 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
41759
41760
41761 cat >>confdefs.h <<\_ACEOF
41762 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
41763 _ACEOF
41764
41765
41766 cat >>confdefs.h <<\_ACEOF
41767 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
41768 _ACEOF
41769
41770                 FDLIBS="-lutil $FDLIBS"
41771
41772
41773 fi
41774
41775       fi
41776    fi
41777
41778             if test $have_xattr = no; then
41779       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41780   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41781 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41782 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41783   echo $ECHO_N "(cached) $ECHO_C" >&6
41784 fi
41785 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41786 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41787 else
41788   # Is the header compilable?
41789 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41790 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41791 cat >conftest.$ac_ext <<_ACEOF
41792 /* confdefs.h.  */
41793 _ACEOF
41794 cat confdefs.h >>conftest.$ac_ext
41795 cat >>conftest.$ac_ext <<_ACEOF
41796 /* end confdefs.h.  */
41797 $ac_includes_default
41798 #include <sys/xattr.h>
41799 _ACEOF
41800 rm -f conftest.$ac_objext
41801 if { (ac_try="$ac_compile"
41802 case "(($ac_try" in
41803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41804   *) ac_try_echo=$ac_try;;
41805 esac
41806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41807   (eval "$ac_compile") 2>conftest.er1
41808   ac_status=$?
41809   grep -v '^ *+' conftest.er1 >conftest.err
41810   rm -f conftest.er1
41811   cat conftest.err >&5
41812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41813   (exit $ac_status); } && {
41814          test -z "$ac_c_werror_flag" ||
41815          test ! -s conftest.err
41816        } && test -s conftest.$ac_objext; then
41817   ac_header_compiler=yes
41818 else
41819   echo "$as_me: failed program was:" >&5
41820 sed 's/^/| /' conftest.$ac_ext >&5
41821
41822         ac_header_compiler=no
41823 fi
41824
41825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41827 echo "${ECHO_T}$ac_header_compiler" >&6; }
41828
41829 # Is the header present?
41830 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41831 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41832 cat >conftest.$ac_ext <<_ACEOF
41833 /* confdefs.h.  */
41834 _ACEOF
41835 cat confdefs.h >>conftest.$ac_ext
41836 cat >>conftest.$ac_ext <<_ACEOF
41837 /* end confdefs.h.  */
41838 #include <sys/xattr.h>
41839 _ACEOF
41840 if { (ac_try="$ac_cpp conftest.$ac_ext"
41841 case "(($ac_try" in
41842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41843   *) ac_try_echo=$ac_try;;
41844 esac
41845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41847   ac_status=$?
41848   grep -v '^ *+' conftest.er1 >conftest.err
41849   rm -f conftest.er1
41850   cat conftest.err >&5
41851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41852   (exit $ac_status); } >/dev/null && {
41853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41854          test ! -s conftest.err
41855        }; then
41856   ac_header_preproc=yes
41857 else
41858   echo "$as_me: failed program was:" >&5
41859 sed 's/^/| /' conftest.$ac_ext >&5
41860
41861   ac_header_preproc=no
41862 fi
41863
41864 rm -f conftest.err conftest.$ac_ext
41865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41866 echo "${ECHO_T}$ac_header_preproc" >&6; }
41867
41868 # So?  What about this header?
41869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41870   yes:no: )
41871     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41872 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41873     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41874 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41875     ac_header_preproc=yes
41876     ;;
41877   no:yes:* )
41878     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41879 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41880     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
41881 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
41882     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41883 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41884     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41885 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41886     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41887 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41888     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41889 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41890
41891     ;;
41892 esac
41893 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41894 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41895 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41896   echo $ECHO_N "(cached) $ECHO_C" >&6
41897 else
41898   ac_cv_header_sys_xattr_h=$ac_header_preproc
41899 fi
41900 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41901 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41902
41903 fi
41904 if test $ac_cv_header_sys_xattr_h = yes; then
41905
41906 cat >>confdefs.h <<\_ACEOF
41907 #define HAVE_SYS_XATTR_H 1
41908 _ACEOF
41909
41910 fi
41911
41912
41913
41914
41915
41916 for ac_func in llistxattr lgetxattr lsetxattr
41917 do
41918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41922   echo $ECHO_N "(cached) $ECHO_C" >&6
41923 else
41924   cat >conftest.$ac_ext <<_ACEOF
41925 /* confdefs.h.  */
41926 _ACEOF
41927 cat confdefs.h >>conftest.$ac_ext
41928 cat >>conftest.$ac_ext <<_ACEOF
41929 /* end confdefs.h.  */
41930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41932 #define $ac_func innocuous_$ac_func
41933
41934 /* System header to define __stub macros and hopefully few prototypes,
41935     which can conflict with char $ac_func (); below.
41936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41937     <limits.h> exists even on freestanding compilers.  */
41938
41939 #ifdef __STDC__
41940 # include <limits.h>
41941 #else
41942 # include <assert.h>
41943 #endif
41944
41945 #undef $ac_func
41946
41947 /* Override any GCC internal prototype to avoid an error.
41948    Use char because int might match the return type of a GCC
41949    builtin and then its argument prototype would still apply.  */
41950 #ifdef __cplusplus
41951 extern "C"
41952 #endif
41953 char $ac_func ();
41954 /* The GNU C library defines this for functions which it implements
41955     to always fail with ENOSYS.  Some functions are actually named
41956     something starting with __ and the normal name is an alias.  */
41957 #if defined __stub_$ac_func || defined __stub___$ac_func
41958 choke me
41959 #endif
41960
41961 int
41962 main ()
41963 {
41964 return $ac_func ();
41965   ;
41966   return 0;
41967 }
41968 _ACEOF
41969 rm -f conftest.$ac_objext conftest$ac_exeext
41970 if { (ac_try="$ac_link"
41971 case "(($ac_try" in
41972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41973   *) ac_try_echo=$ac_try;;
41974 esac
41975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41976   (eval "$ac_link") 2>conftest.er1
41977   ac_status=$?
41978   grep -v '^ *+' conftest.er1 >conftest.err
41979   rm -f conftest.er1
41980   cat conftest.err >&5
41981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41982   (exit $ac_status); } && {
41983          test -z "$ac_c_werror_flag" ||
41984          test ! -s conftest.err
41985        } && test -s conftest$ac_exeext &&
41986        $as_test_x conftest$ac_exeext; then
41987   eval "$as_ac_var=yes"
41988 else
41989   echo "$as_me: failed program was:" >&5
41990 sed 's/^/| /' conftest.$ac_ext >&5
41991
41992         eval "$as_ac_var=no"
41993 fi
41994
41995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41996       conftest$ac_exeext conftest.$ac_ext
41997 fi
41998 ac_res=`eval echo '${'$as_ac_var'}'`
41999                { echo "$as_me:$LINENO: result: $ac_res" >&5
42000 echo "${ECHO_T}$ac_res" >&6; }
42001 if test `eval echo '${'$as_ac_var'}'` = yes; then
42002   cat >>confdefs.h <<_ACEOF
42003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42004 _ACEOF
42005
42006              have_xattr=yes
42007
42008 cat >>confdefs.h <<\_ACEOF
42009 #define HAVE_LLISTXATTR 1
42010 _ACEOF
42011
42012
42013 cat >>confdefs.h <<\_ACEOF
42014 #define HAVE_LGETXATTR 1
42015 _ACEOF
42016
42017
42018 cat >>confdefs.h <<\_ACEOF
42019 #define HAVE_LSETXATTR 1
42020 _ACEOF
42021
42022
42023
42024 fi
42025 done
42026
42027
42028       if test $have_xattr = no; then
42029
42030
42031
42032 for ac_func in listxattr getxattr setxattr
42033 do
42034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42038   echo $ECHO_N "(cached) $ECHO_C" >&6
42039 else
42040   cat >conftest.$ac_ext <<_ACEOF
42041 /* confdefs.h.  */
42042 _ACEOF
42043 cat confdefs.h >>conftest.$ac_ext
42044 cat >>conftest.$ac_ext <<_ACEOF
42045 /* end confdefs.h.  */
42046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42048 #define $ac_func innocuous_$ac_func
42049
42050 /* System header to define __stub macros and hopefully few prototypes,
42051     which can conflict with char $ac_func (); below.
42052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42053     <limits.h> exists even on freestanding compilers.  */
42054
42055 #ifdef __STDC__
42056 # include <limits.h>
42057 #else
42058 # include <assert.h>
42059 #endif
42060
42061 #undef $ac_func
42062
42063 /* Override any GCC internal prototype to avoid an error.
42064    Use char because int might match the return type of a GCC
42065    builtin and then its argument prototype would still apply.  */
42066 #ifdef __cplusplus
42067 extern "C"
42068 #endif
42069 char $ac_func ();
42070 /* The GNU C library defines this for functions which it implements
42071     to always fail with ENOSYS.  Some functions are actually named
42072     something starting with __ and the normal name is an alias.  */
42073 #if defined __stub_$ac_func || defined __stub___$ac_func
42074 choke me
42075 #endif
42076
42077 int
42078 main ()
42079 {
42080 return $ac_func ();
42081   ;
42082   return 0;
42083 }
42084 _ACEOF
42085 rm -f conftest.$ac_objext conftest$ac_exeext
42086 if { (ac_try="$ac_link"
42087 case "(($ac_try" in
42088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42089   *) ac_try_echo=$ac_try;;
42090 esac
42091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42092   (eval "$ac_link") 2>conftest.er1
42093   ac_status=$?
42094   grep -v '^ *+' conftest.er1 >conftest.err
42095   rm -f conftest.er1
42096   cat conftest.err >&5
42097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42098   (exit $ac_status); } && {
42099          test -z "$ac_c_werror_flag" ||
42100          test ! -s conftest.err
42101        } && test -s conftest$ac_exeext &&
42102        $as_test_x conftest$ac_exeext; then
42103   eval "$as_ac_var=yes"
42104 else
42105   echo "$as_me: failed program was:" >&5
42106 sed 's/^/| /' conftest.$ac_ext >&5
42107
42108         eval "$as_ac_var=no"
42109 fi
42110
42111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42112       conftest$ac_exeext conftest.$ac_ext
42113 fi
42114 ac_res=`eval echo '${'$as_ac_var'}'`
42115                { echo "$as_me:$LINENO: result: $ac_res" >&5
42116 echo "${ECHO_T}$ac_res" >&6; }
42117 if test `eval echo '${'$as_ac_var'}'` = yes; then
42118   cat >>confdefs.h <<_ACEOF
42119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42120 _ACEOF
42121
42122                 have_xattr=yes
42123
42124 cat >>confdefs.h <<\_ACEOF
42125 #define HAVE_LISTXATTR 1
42126 _ACEOF
42127
42128
42129 cat >>confdefs.h <<\_ACEOF
42130 #define HAVE_GETXATTR 1
42131 _ACEOF
42132
42133
42134 cat >>confdefs.h <<\_ACEOF
42135 #define HAVE_SETXATTR 1
42136 _ACEOF
42137
42138
42139
42140 fi
42141 done
42142
42143       fi
42144    fi
42145
42146             if test $have_xattr = no; then
42147       if test "${ac_cv_header_sys_attr_h+set}" = set; then
42148   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42149 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42150 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42151   echo $ECHO_N "(cached) $ECHO_C" >&6
42152 fi
42153 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42154 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42155 else
42156   # Is the header compilable?
42157 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42158 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42159 cat >conftest.$ac_ext <<_ACEOF
42160 /* confdefs.h.  */
42161 _ACEOF
42162 cat confdefs.h >>conftest.$ac_ext
42163 cat >>conftest.$ac_ext <<_ACEOF
42164 /* end confdefs.h.  */
42165 $ac_includes_default
42166 #include <sys/attr.h>
42167 _ACEOF
42168 rm -f conftest.$ac_objext
42169 if { (ac_try="$ac_compile"
42170 case "(($ac_try" in
42171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42172   *) ac_try_echo=$ac_try;;
42173 esac
42174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42175   (eval "$ac_compile") 2>conftest.er1
42176   ac_status=$?
42177   grep -v '^ *+' conftest.er1 >conftest.err
42178   rm -f conftest.er1
42179   cat conftest.err >&5
42180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42181   (exit $ac_status); } && {
42182          test -z "$ac_c_werror_flag" ||
42183          test ! -s conftest.err
42184        } && test -s conftest.$ac_objext; then
42185   ac_header_compiler=yes
42186 else
42187   echo "$as_me: failed program was:" >&5
42188 sed 's/^/| /' conftest.$ac_ext >&5
42189
42190         ac_header_compiler=no
42191 fi
42192
42193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42195 echo "${ECHO_T}$ac_header_compiler" >&6; }
42196
42197 # Is the header present?
42198 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42199 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42200 cat >conftest.$ac_ext <<_ACEOF
42201 /* confdefs.h.  */
42202 _ACEOF
42203 cat confdefs.h >>conftest.$ac_ext
42204 cat >>conftest.$ac_ext <<_ACEOF
42205 /* end confdefs.h.  */
42206 #include <sys/attr.h>
42207 _ACEOF
42208 if { (ac_try="$ac_cpp conftest.$ac_ext"
42209 case "(($ac_try" in
42210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42211   *) ac_try_echo=$ac_try;;
42212 esac
42213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42214   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42215   ac_status=$?
42216   grep -v '^ *+' conftest.er1 >conftest.err
42217   rm -f conftest.er1
42218   cat conftest.err >&5
42219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42220   (exit $ac_status); } >/dev/null && {
42221          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42222          test ! -s conftest.err
42223        }; then
42224   ac_header_preproc=yes
42225 else
42226   echo "$as_me: failed program was:" >&5
42227 sed 's/^/| /' conftest.$ac_ext >&5
42228
42229   ac_header_preproc=no
42230 fi
42231
42232 rm -f conftest.err conftest.$ac_ext
42233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42234 echo "${ECHO_T}$ac_header_preproc" >&6; }
42235
42236 # So?  What about this header?
42237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42238   yes:no: )
42239     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42240 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42241     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42242 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42243     ac_header_preproc=yes
42244     ;;
42245   no:yes:* )
42246     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42247 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42248     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
42249 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
42250     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42251 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42252     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42253 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42254     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42255 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42256     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42257 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42258
42259     ;;
42260 esac
42261 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42262 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42263 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42264   echo $ECHO_N "(cached) $ECHO_C" >&6
42265 else
42266   ac_cv_header_sys_attr_h=$ac_header_preproc
42267 fi
42268 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42269 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42270
42271 fi
42272 if test $ac_cv_header_sys_attr_h = yes; then
42273
42274 cat >>confdefs.h <<\_ACEOF
42275 #define HAVE_SYS_ATTR_H 1
42276 _ACEOF
42277
42278 fi
42279
42280
42281       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42282   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42283 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42284 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42285   echo $ECHO_N "(cached) $ECHO_C" >&6
42286 fi
42287 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42288 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42289 else
42290   # Is the header compilable?
42291 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42292 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42293 cat >conftest.$ac_ext <<_ACEOF
42294 /* confdefs.h.  */
42295 _ACEOF
42296 cat confdefs.h >>conftest.$ac_ext
42297 cat >>conftest.$ac_ext <<_ACEOF
42298 /* end confdefs.h.  */
42299 $ac_includes_default
42300 #include <sys/nvpair.h>
42301 _ACEOF
42302 rm -f conftest.$ac_objext
42303 if { (ac_try="$ac_compile"
42304 case "(($ac_try" in
42305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42306   *) ac_try_echo=$ac_try;;
42307 esac
42308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42309   (eval "$ac_compile") 2>conftest.er1
42310   ac_status=$?
42311   grep -v '^ *+' conftest.er1 >conftest.err
42312   rm -f conftest.er1
42313   cat conftest.err >&5
42314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42315   (exit $ac_status); } && {
42316          test -z "$ac_c_werror_flag" ||
42317          test ! -s conftest.err
42318        } && test -s conftest.$ac_objext; then
42319   ac_header_compiler=yes
42320 else
42321   echo "$as_me: failed program was:" >&5
42322 sed 's/^/| /' conftest.$ac_ext >&5
42323
42324         ac_header_compiler=no
42325 fi
42326
42327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42329 echo "${ECHO_T}$ac_header_compiler" >&6; }
42330
42331 # Is the header present?
42332 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42333 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42334 cat >conftest.$ac_ext <<_ACEOF
42335 /* confdefs.h.  */
42336 _ACEOF
42337 cat confdefs.h >>conftest.$ac_ext
42338 cat >>conftest.$ac_ext <<_ACEOF
42339 /* end confdefs.h.  */
42340 #include <sys/nvpair.h>
42341 _ACEOF
42342 if { (ac_try="$ac_cpp conftest.$ac_ext"
42343 case "(($ac_try" in
42344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42345   *) ac_try_echo=$ac_try;;
42346 esac
42347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42349   ac_status=$?
42350   grep -v '^ *+' conftest.er1 >conftest.err
42351   rm -f conftest.er1
42352   cat conftest.err >&5
42353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42354   (exit $ac_status); } >/dev/null && {
42355          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42356          test ! -s conftest.err
42357        }; then
42358   ac_header_preproc=yes
42359 else
42360   echo "$as_me: failed program was:" >&5
42361 sed 's/^/| /' conftest.$ac_ext >&5
42362
42363   ac_header_preproc=no
42364 fi
42365
42366 rm -f conftest.err conftest.$ac_ext
42367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42368 echo "${ECHO_T}$ac_header_preproc" >&6; }
42369
42370 # So?  What about this header?
42371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42372   yes:no: )
42373     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42374 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42375     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42376 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42377     ac_header_preproc=yes
42378     ;;
42379   no:yes:* )
42380     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42381 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42382     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
42383 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
42384     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42385 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42386     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
42387 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42388     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42389 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42390     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42391 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42392
42393     ;;
42394 esac
42395 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42396 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42397 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42398   echo $ECHO_N "(cached) $ECHO_C" >&6
42399 else
42400   ac_cv_header_sys_nvpair_h=$ac_header_preproc
42401 fi
42402 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42403 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42404
42405 fi
42406 if test $ac_cv_header_sys_nvpair_h = yes; then
42407
42408 cat >>confdefs.h <<\_ACEOF
42409 #define HAVE_SYS_NVPAIR_H 1
42410 _ACEOF
42411
42412 fi
42413
42414
42415       if test "${ac_cv_header_attr_h+set}" = set; then
42416   { echo "$as_me:$LINENO: checking for attr.h" >&5
42417 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42418 if test "${ac_cv_header_attr_h+set}" = set; then
42419   echo $ECHO_N "(cached) $ECHO_C" >&6
42420 fi
42421 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42422 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42423 else
42424   # Is the header compilable?
42425 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42426 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42427 cat >conftest.$ac_ext <<_ACEOF
42428 /* confdefs.h.  */
42429 _ACEOF
42430 cat confdefs.h >>conftest.$ac_ext
42431 cat >>conftest.$ac_ext <<_ACEOF
42432 /* end confdefs.h.  */
42433 $ac_includes_default
42434 #include <attr.h>
42435 _ACEOF
42436 rm -f conftest.$ac_objext
42437 if { (ac_try="$ac_compile"
42438 case "(($ac_try" in
42439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42440   *) ac_try_echo=$ac_try;;
42441 esac
42442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42443   (eval "$ac_compile") 2>conftest.er1
42444   ac_status=$?
42445   grep -v '^ *+' conftest.er1 >conftest.err
42446   rm -f conftest.er1
42447   cat conftest.err >&5
42448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42449   (exit $ac_status); } && {
42450          test -z "$ac_c_werror_flag" ||
42451          test ! -s conftest.err
42452        } && test -s conftest.$ac_objext; then
42453   ac_header_compiler=yes
42454 else
42455   echo "$as_me: failed program was:" >&5
42456 sed 's/^/| /' conftest.$ac_ext >&5
42457
42458         ac_header_compiler=no
42459 fi
42460
42461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42463 echo "${ECHO_T}$ac_header_compiler" >&6; }
42464
42465 # Is the header present?
42466 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42467 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42468 cat >conftest.$ac_ext <<_ACEOF
42469 /* confdefs.h.  */
42470 _ACEOF
42471 cat confdefs.h >>conftest.$ac_ext
42472 cat >>conftest.$ac_ext <<_ACEOF
42473 /* end confdefs.h.  */
42474 #include <attr.h>
42475 _ACEOF
42476 if { (ac_try="$ac_cpp conftest.$ac_ext"
42477 case "(($ac_try" in
42478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42479   *) ac_try_echo=$ac_try;;
42480 esac
42481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42483   ac_status=$?
42484   grep -v '^ *+' conftest.er1 >conftest.err
42485   rm -f conftest.er1
42486   cat conftest.err >&5
42487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42488   (exit $ac_status); } >/dev/null && {
42489          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42490          test ! -s conftest.err
42491        }; then
42492   ac_header_preproc=yes
42493 else
42494   echo "$as_me: failed program was:" >&5
42495 sed 's/^/| /' conftest.$ac_ext >&5
42496
42497   ac_header_preproc=no
42498 fi
42499
42500 rm -f conftest.err conftest.$ac_ext
42501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42502 echo "${ECHO_T}$ac_header_preproc" >&6; }
42503
42504 # So?  What about this header?
42505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42506   yes:no: )
42507     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42508 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42509     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42510 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42511     ac_header_preproc=yes
42512     ;;
42513   no:yes:* )
42514     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42515 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42516     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
42517 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
42518     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42519 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42520     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42521 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42522     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42523 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42524     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42525 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42526
42527     ;;
42528 esac
42529 { echo "$as_me:$LINENO: checking for attr.h" >&5
42530 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42531 if test "${ac_cv_header_attr_h+set}" = set; then
42532   echo $ECHO_N "(cached) $ECHO_C" >&6
42533 else
42534   ac_cv_header_attr_h=$ac_header_preproc
42535 fi
42536 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42537 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42538
42539 fi
42540 if test $ac_cv_header_attr_h = yes; then
42541
42542 cat >>confdefs.h <<\_ACEOF
42543 #define HAVE_ATTR_H 1
42544 _ACEOF
42545
42546 fi
42547
42548
42549
42550
42551
42552
42553
42554
42555 for ac_func in openat fstatat unlinkat fchownat futimesat
42556 do
42557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42561   echo $ECHO_N "(cached) $ECHO_C" >&6
42562 else
42563   cat >conftest.$ac_ext <<_ACEOF
42564 /* confdefs.h.  */
42565 _ACEOF
42566 cat confdefs.h >>conftest.$ac_ext
42567 cat >>conftest.$ac_ext <<_ACEOF
42568 /* end confdefs.h.  */
42569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42571 #define $ac_func innocuous_$ac_func
42572
42573 /* System header to define __stub macros and hopefully few prototypes,
42574     which can conflict with char $ac_func (); below.
42575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42576     <limits.h> exists even on freestanding compilers.  */
42577
42578 #ifdef __STDC__
42579 # include <limits.h>
42580 #else
42581 # include <assert.h>
42582 #endif
42583
42584 #undef $ac_func
42585
42586 /* Override any GCC internal prototype to avoid an error.
42587    Use char because int might match the return type of a GCC
42588    builtin and then its argument prototype would still apply.  */
42589 #ifdef __cplusplus
42590 extern "C"
42591 #endif
42592 char $ac_func ();
42593 /* The GNU C library defines this for functions which it implements
42594     to always fail with ENOSYS.  Some functions are actually named
42595     something starting with __ and the normal name is an alias.  */
42596 #if defined __stub_$ac_func || defined __stub___$ac_func
42597 choke me
42598 #endif
42599
42600 int
42601 main ()
42602 {
42603 return $ac_func ();
42604   ;
42605   return 0;
42606 }
42607 _ACEOF
42608 rm -f conftest.$ac_objext conftest$ac_exeext
42609 if { (ac_try="$ac_link"
42610 case "(($ac_try" in
42611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42612   *) ac_try_echo=$ac_try;;
42613 esac
42614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42615   (eval "$ac_link") 2>conftest.er1
42616   ac_status=$?
42617   grep -v '^ *+' conftest.er1 >conftest.err
42618   rm -f conftest.er1
42619   cat conftest.err >&5
42620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42621   (exit $ac_status); } && {
42622          test -z "$ac_c_werror_flag" ||
42623          test ! -s conftest.err
42624        } && test -s conftest$ac_exeext &&
42625        $as_test_x conftest$ac_exeext; then
42626   eval "$as_ac_var=yes"
42627 else
42628   echo "$as_me: failed program was:" >&5
42629 sed 's/^/| /' conftest.$ac_ext >&5
42630
42631         eval "$as_ac_var=no"
42632 fi
42633
42634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42635       conftest$ac_exeext conftest.$ac_ext
42636 fi
42637 ac_res=`eval echo '${'$as_ac_var'}'`
42638                { echo "$as_me:$LINENO: result: $ac_res" >&5
42639 echo "${ECHO_T}$ac_res" >&6; }
42640 if test `eval echo '${'$as_ac_var'}'` = yes; then
42641   cat >>confdefs.h <<_ACEOF
42642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42643 _ACEOF
42644
42645              have_xattr=yes
42646
42647 cat >>confdefs.h <<\_ACEOF
42648 #define HAVE_OPENAT 1
42649 _ACEOF
42650
42651
42652 cat >>confdefs.h <<\_ACEOF
42653 #define HAVE_FSTATAT 1
42654 _ACEOF
42655
42656
42657 cat >>confdefs.h <<\_ACEOF
42658 #define HAVE_UNLINKAT 1
42659 _ACEOF
42660
42661
42662 cat >>confdefs.h <<\_ACEOF
42663 #define HAVE_FCHOWNAT 1
42664 _ACEOF
42665
42666
42667 cat >>confdefs.h <<\_ACEOF
42668 #define HAVE_FUTIMESAT 1
42669 _ACEOF
42670
42671
42672
42673 fi
42674 done
42675
42676
42677       if test $have_xattr = yes; then
42678          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42679 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42680 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42681   echo $ECHO_N "(cached) $ECHO_C" >&6
42682 else
42683   ac_check_lib_save_LIBS=$LIBS
42684 LIBS="-lnvpair  $LIBS"
42685 cat >conftest.$ac_ext <<_ACEOF
42686 /* confdefs.h.  */
42687 _ACEOF
42688 cat confdefs.h >>conftest.$ac_ext
42689 cat >>conftest.$ac_ext <<_ACEOF
42690 /* end confdefs.h.  */
42691
42692 /* Override any GCC internal prototype to avoid an error.
42693    Use char because int might match the return type of a GCC
42694    builtin and then its argument prototype would still apply.  */
42695 #ifdef __cplusplus
42696 extern "C"
42697 #endif
42698 char nvlist_next_nvpair ();
42699 int
42700 main ()
42701 {
42702 return nvlist_next_nvpair ();
42703   ;
42704   return 0;
42705 }
42706 _ACEOF
42707 rm -f conftest.$ac_objext conftest$ac_exeext
42708 if { (ac_try="$ac_link"
42709 case "(($ac_try" in
42710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42711   *) ac_try_echo=$ac_try;;
42712 esac
42713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42714   (eval "$ac_link") 2>conftest.er1
42715   ac_status=$?
42716   grep -v '^ *+' conftest.er1 >conftest.err
42717   rm -f conftest.er1
42718   cat conftest.err >&5
42719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42720   (exit $ac_status); } && {
42721          test -z "$ac_c_werror_flag" ||
42722          test ! -s conftest.err
42723        } && test -s conftest$ac_exeext &&
42724        $as_test_x conftest$ac_exeext; then
42725   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42726 else
42727   echo "$as_me: failed program was:" >&5
42728 sed 's/^/| /' conftest.$ac_ext >&5
42729
42730         ac_cv_lib_nvpair_nvlist_next_nvpair=no
42731 fi
42732
42733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42734       conftest$ac_exeext conftest.$ac_ext
42735 LIBS=$ac_check_lib_save_LIBS
42736 fi
42737 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42738 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42739 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42740
42741
42742 cat >>confdefs.h <<\_ACEOF
42743 #define HAVE_NVLIST_NEXT_NVPAIR 1
42744 _ACEOF
42745
42746                 FDLIBS="-lnvpair $FDLIBS"
42747
42748
42749 fi
42750
42751       fi
42752    fi
42753
42754    if test x$support_xattr = xyes -a $have_xattr != yes; then
42755       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
42756   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
42757 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
42758   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
42759    { (exit 1); exit 1; }; }
42760    else
42761       if test $have_xattr = yes; then
42762
42763 cat >>confdefs.h <<\_ACEOF
42764 #define HAVE_XATTR 1
42765 _ACEOF
42766
42767       fi
42768    fi
42769 fi
42770
42771 PTHREAD_LIB=""
42772 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42773 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42774 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42775   echo $ECHO_N "(cached) $ECHO_C" >&6
42776 else
42777   ac_check_lib_save_LIBS=$LIBS
42778 LIBS="-lpthread  $LIBS"
42779 cat >conftest.$ac_ext <<_ACEOF
42780 /* confdefs.h.  */
42781 _ACEOF
42782 cat confdefs.h >>conftest.$ac_ext
42783 cat >>conftest.$ac_ext <<_ACEOF
42784 /* end confdefs.h.  */
42785
42786 /* Override any GCC internal prototype to avoid an error.
42787    Use char because int might match the return type of a GCC
42788    builtin and then its argument prototype would still apply.  */
42789 #ifdef __cplusplus
42790 extern "C"
42791 #endif
42792 char pthread_create ();
42793 int
42794 main ()
42795 {
42796 return pthread_create ();
42797   ;
42798   return 0;
42799 }
42800 _ACEOF
42801 rm -f conftest.$ac_objext conftest$ac_exeext
42802 if { (ac_try="$ac_link"
42803 case "(($ac_try" in
42804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42805   *) ac_try_echo=$ac_try;;
42806 esac
42807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42808   (eval "$ac_link") 2>conftest.er1
42809   ac_status=$?
42810   grep -v '^ *+' conftest.er1 >conftest.err
42811   rm -f conftest.er1
42812   cat conftest.err >&5
42813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42814   (exit $ac_status); } && {
42815          test -z "$ac_c_werror_flag" ||
42816          test ! -s conftest.err
42817        } && test -s conftest$ac_exeext &&
42818        $as_test_x conftest$ac_exeext; then
42819   ac_cv_lib_pthread_pthread_create=yes
42820 else
42821   echo "$as_me: failed program was:" >&5
42822 sed 's/^/| /' conftest.$ac_ext >&5
42823
42824         ac_cv_lib_pthread_pthread_create=no
42825 fi
42826
42827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42828       conftest$ac_exeext conftest.$ac_ext
42829 LIBS=$ac_check_lib_save_LIBS
42830 fi
42831 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42832 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42833 if test $ac_cv_lib_pthread_pthread_create = yes; then
42834   PTHREAD_LIB="-lpthread"
42835 else
42836
42837        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42838 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42839 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42840   echo $ECHO_N "(cached) $ECHO_C" >&6
42841 else
42842   ac_check_lib_save_LIBS=$LIBS
42843 LIBS="-lpthreads  $LIBS"
42844 cat >conftest.$ac_ext <<_ACEOF
42845 /* confdefs.h.  */
42846 _ACEOF
42847 cat confdefs.h >>conftest.$ac_ext
42848 cat >>conftest.$ac_ext <<_ACEOF
42849 /* end confdefs.h.  */
42850
42851 /* Override any GCC internal prototype to avoid an error.
42852    Use char because int might match the return type of a GCC
42853    builtin and then its argument prototype would still apply.  */
42854 #ifdef __cplusplus
42855 extern "C"
42856 #endif
42857 char pthread_create ();
42858 int
42859 main ()
42860 {
42861 return pthread_create ();
42862   ;
42863   return 0;
42864 }
42865 _ACEOF
42866 rm -f conftest.$ac_objext conftest$ac_exeext
42867 if { (ac_try="$ac_link"
42868 case "(($ac_try" in
42869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42870   *) ac_try_echo=$ac_try;;
42871 esac
42872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42873   (eval "$ac_link") 2>conftest.er1
42874   ac_status=$?
42875   grep -v '^ *+' conftest.er1 >conftest.err
42876   rm -f conftest.er1
42877   cat conftest.err >&5
42878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42879   (exit $ac_status); } && {
42880          test -z "$ac_c_werror_flag" ||
42881          test ! -s conftest.err
42882        } && test -s conftest$ac_exeext &&
42883        $as_test_x conftest$ac_exeext; then
42884   ac_cv_lib_pthreads_pthread_create=yes
42885 else
42886   echo "$as_me: failed program was:" >&5
42887 sed 's/^/| /' conftest.$ac_ext >&5
42888
42889         ac_cv_lib_pthreads_pthread_create=no
42890 fi
42891
42892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42893       conftest$ac_exeext conftest.$ac_ext
42894 LIBS=$ac_check_lib_save_LIBS
42895 fi
42896 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42897 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42898 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42899   PTHREAD_LIB="-lpthreads"
42900 else
42901
42902               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42903 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42904 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42905   echo $ECHO_N "(cached) $ECHO_C" >&6
42906 else
42907   ac_check_lib_save_LIBS=$LIBS
42908 LIBS="-lc_r  $LIBS"
42909 cat >conftest.$ac_ext <<_ACEOF
42910 /* confdefs.h.  */
42911 _ACEOF
42912 cat confdefs.h >>conftest.$ac_ext
42913 cat >>conftest.$ac_ext <<_ACEOF
42914 /* end confdefs.h.  */
42915
42916 /* Override any GCC internal prototype to avoid an error.
42917    Use char because int might match the return type of a GCC
42918    builtin and then its argument prototype would still apply.  */
42919 #ifdef __cplusplus
42920 extern "C"
42921 #endif
42922 char pthread_create ();
42923 int
42924 main ()
42925 {
42926 return pthread_create ();
42927   ;
42928   return 0;
42929 }
42930 _ACEOF
42931 rm -f conftest.$ac_objext conftest$ac_exeext
42932 if { (ac_try="$ac_link"
42933 case "(($ac_try" in
42934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42935   *) ac_try_echo=$ac_try;;
42936 esac
42937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42938   (eval "$ac_link") 2>conftest.er1
42939   ac_status=$?
42940   grep -v '^ *+' conftest.er1 >conftest.err
42941   rm -f conftest.er1
42942   cat conftest.err >&5
42943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42944   (exit $ac_status); } && {
42945          test -z "$ac_c_werror_flag" ||
42946          test ! -s conftest.err
42947        } && test -s conftest$ac_exeext &&
42948        $as_test_x conftest$ac_exeext; then
42949   ac_cv_lib_c_r_pthread_create=yes
42950 else
42951   echo "$as_me: failed program was:" >&5
42952 sed 's/^/| /' conftest.$ac_ext >&5
42953
42954         ac_cv_lib_c_r_pthread_create=no
42955 fi
42956
42957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42958       conftest$ac_exeext conftest.$ac_ext
42959 LIBS=$ac_check_lib_save_LIBS
42960 fi
42961 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
42962 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
42963 if test $ac_cv_lib_c_r_pthread_create = yes; then
42964   PTHREAD_LIB="-lc_r"
42965 else
42966
42967                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
42968 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
42969 if test "${ac_cv_func_pthread_create+set}" = set; then
42970   echo $ECHO_N "(cached) $ECHO_C" >&6
42971 else
42972   cat >conftest.$ac_ext <<_ACEOF
42973 /* confdefs.h.  */
42974 _ACEOF
42975 cat confdefs.h >>conftest.$ac_ext
42976 cat >>conftest.$ac_ext <<_ACEOF
42977 /* end confdefs.h.  */
42978 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
42979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42980 #define pthread_create innocuous_pthread_create
42981
42982 /* System header to define __stub macros and hopefully few prototypes,
42983     which can conflict with char pthread_create (); below.
42984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42985     <limits.h> exists even on freestanding compilers.  */
42986
42987 #ifdef __STDC__
42988 # include <limits.h>
42989 #else
42990 # include <assert.h>
42991 #endif
42992
42993 #undef pthread_create
42994
42995 /* Override any GCC internal prototype to avoid an error.
42996    Use char because int might match the return type of a GCC
42997    builtin and then its argument prototype would still apply.  */
42998 #ifdef __cplusplus
42999 extern "C"
43000 #endif
43001 char pthread_create ();
43002 /* The GNU C library defines this for functions which it implements
43003     to always fail with ENOSYS.  Some functions are actually named
43004     something starting with __ and the normal name is an alias.  */
43005 #if defined __stub_pthread_create || defined __stub___pthread_create
43006 choke me
43007 #endif
43008
43009 int
43010 main ()
43011 {
43012 return pthread_create ();
43013   ;
43014   return 0;
43015 }
43016 _ACEOF
43017 rm -f conftest.$ac_objext conftest$ac_exeext
43018 if { (ac_try="$ac_link"
43019 case "(($ac_try" in
43020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43021   *) ac_try_echo=$ac_try;;
43022 esac
43023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43024   (eval "$ac_link") 2>conftest.er1
43025   ac_status=$?
43026   grep -v '^ *+' conftest.er1 >conftest.err
43027   rm -f conftest.er1
43028   cat conftest.err >&5
43029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43030   (exit $ac_status); } && {
43031          test -z "$ac_c_werror_flag" ||
43032          test ! -s conftest.err
43033        } && test -s conftest$ac_exeext &&
43034        $as_test_x conftest$ac_exeext; then
43035   ac_cv_func_pthread_create=yes
43036 else
43037   echo "$as_me: failed program was:" >&5
43038 sed 's/^/| /' conftest.$ac_ext >&5
43039
43040         ac_cv_func_pthread_create=no
43041 fi
43042
43043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43044       conftest$ac_exeext conftest.$ac_ext
43045 fi
43046 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43047 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43048
43049
43050
43051 fi
43052
43053
43054
43055 fi
43056
43057
43058
43059 fi
43060
43061
43062
43063
43064 for ac_header in sys/prctl.h sys/capability.h
43065 do
43066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43068   { echo "$as_me:$LINENO: checking for $ac_header" >&5
43069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43071   echo $ECHO_N "(cached) $ECHO_C" >&6
43072 fi
43073 ac_res=`eval echo '${'$as_ac_Header'}'`
43074                { echo "$as_me:$LINENO: result: $ac_res" >&5
43075 echo "${ECHO_T}$ac_res" >&6; }
43076 else
43077   # Is the header compilable?
43078 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43080 cat >conftest.$ac_ext <<_ACEOF
43081 /* confdefs.h.  */
43082 _ACEOF
43083 cat confdefs.h >>conftest.$ac_ext
43084 cat >>conftest.$ac_ext <<_ACEOF
43085 /* end confdefs.h.  */
43086 $ac_includes_default
43087 #include <$ac_header>
43088 _ACEOF
43089 rm -f conftest.$ac_objext
43090 if { (ac_try="$ac_compile"
43091 case "(($ac_try" in
43092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43093   *) ac_try_echo=$ac_try;;
43094 esac
43095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43096   (eval "$ac_compile") 2>conftest.er1
43097   ac_status=$?
43098   grep -v '^ *+' conftest.er1 >conftest.err
43099   rm -f conftest.er1
43100   cat conftest.err >&5
43101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43102   (exit $ac_status); } && {
43103          test -z "$ac_c_werror_flag" ||
43104          test ! -s conftest.err
43105        } && test -s conftest.$ac_objext; then
43106   ac_header_compiler=yes
43107 else
43108   echo "$as_me: failed program was:" >&5
43109 sed 's/^/| /' conftest.$ac_ext >&5
43110
43111         ac_header_compiler=no
43112 fi
43113
43114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43115 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43116 echo "${ECHO_T}$ac_header_compiler" >&6; }
43117
43118 # Is the header present?
43119 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43121 cat >conftest.$ac_ext <<_ACEOF
43122 /* confdefs.h.  */
43123 _ACEOF
43124 cat confdefs.h >>conftest.$ac_ext
43125 cat >>conftest.$ac_ext <<_ACEOF
43126 /* end confdefs.h.  */
43127 #include <$ac_header>
43128 _ACEOF
43129 if { (ac_try="$ac_cpp conftest.$ac_ext"
43130 case "(($ac_try" in
43131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43132   *) ac_try_echo=$ac_try;;
43133 esac
43134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43135   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43136   ac_status=$?
43137   grep -v '^ *+' conftest.er1 >conftest.err
43138   rm -f conftest.er1
43139   cat conftest.err >&5
43140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43141   (exit $ac_status); } >/dev/null && {
43142          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43143          test ! -s conftest.err
43144        }; then
43145   ac_header_preproc=yes
43146 else
43147   echo "$as_me: failed program was:" >&5
43148 sed 's/^/| /' conftest.$ac_ext >&5
43149
43150   ac_header_preproc=no
43151 fi
43152
43153 rm -f conftest.err conftest.$ac_ext
43154 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43155 echo "${ECHO_T}$ac_header_preproc" >&6; }
43156
43157 # So?  What about this header?
43158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43159   yes:no: )
43160     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43163 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43164     ac_header_preproc=yes
43165     ;;
43166   no:yes:* )
43167     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43169     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43170 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43171     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43172 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43173     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43174 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43175     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43177     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43178 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43179
43180     ;;
43181 esac
43182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43185   echo $ECHO_N "(cached) $ECHO_C" >&6
43186 else
43187   eval "$as_ac_Header=\$ac_header_preproc"
43188 fi
43189 ac_res=`eval echo '${'$as_ac_Header'}'`
43190                { echo "$as_me:$LINENO: result: $ac_res" >&5
43191 echo "${ECHO_T}$ac_res" >&6; }
43192
43193 fi
43194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43195   cat >>confdefs.h <<_ACEOF
43196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43197 _ACEOF
43198
43199 fi
43200
43201 done
43202
43203
43204
43205 for ac_func in prctl setreuid
43206 do
43207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43211   echo $ECHO_N "(cached) $ECHO_C" >&6
43212 else
43213   cat >conftest.$ac_ext <<_ACEOF
43214 /* confdefs.h.  */
43215 _ACEOF
43216 cat confdefs.h >>conftest.$ac_ext
43217 cat >>conftest.$ac_ext <<_ACEOF
43218 /* end confdefs.h.  */
43219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43221 #define $ac_func innocuous_$ac_func
43222
43223 /* System header to define __stub macros and hopefully few prototypes,
43224     which can conflict with char $ac_func (); below.
43225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43226     <limits.h> exists even on freestanding compilers.  */
43227
43228 #ifdef __STDC__
43229 # include <limits.h>
43230 #else
43231 # include <assert.h>
43232 #endif
43233
43234 #undef $ac_func
43235
43236 /* Override any GCC internal prototype to avoid an error.
43237    Use char because int might match the return type of a GCC
43238    builtin and then its argument prototype would still apply.  */
43239 #ifdef __cplusplus
43240 extern "C"
43241 #endif
43242 char $ac_func ();
43243 /* The GNU C library defines this for functions which it implements
43244     to always fail with ENOSYS.  Some functions are actually named
43245     something starting with __ and the normal name is an alias.  */
43246 #if defined __stub_$ac_func || defined __stub___$ac_func
43247 choke me
43248 #endif
43249
43250 int
43251 main ()
43252 {
43253 return $ac_func ();
43254   ;
43255   return 0;
43256 }
43257 _ACEOF
43258 rm -f conftest.$ac_objext conftest$ac_exeext
43259 if { (ac_try="$ac_link"
43260 case "(($ac_try" in
43261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43262   *) ac_try_echo=$ac_try;;
43263 esac
43264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43265   (eval "$ac_link") 2>conftest.er1
43266   ac_status=$?
43267   grep -v '^ *+' conftest.er1 >conftest.err
43268   rm -f conftest.er1
43269   cat conftest.err >&5
43270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43271   (exit $ac_status); } && {
43272          test -z "$ac_c_werror_flag" ||
43273          test ! -s conftest.err
43274        } && test -s conftest$ac_exeext &&
43275        $as_test_x conftest$ac_exeext; then
43276   eval "$as_ac_var=yes"
43277 else
43278   echo "$as_me: failed program was:" >&5
43279 sed 's/^/| /' conftest.$ac_ext >&5
43280
43281         eval "$as_ac_var=no"
43282 fi
43283
43284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43285       conftest$ac_exeext conftest.$ac_ext
43286 fi
43287 ac_res=`eval echo '${'$as_ac_var'}'`
43288                { echo "$as_me:$LINENO: result: $ac_res" >&5
43289 echo "${ECHO_T}$ac_res" >&6; }
43290 if test `eval echo '${'$as_ac_var'}'` = yes; then
43291   cat >>confdefs.h <<_ACEOF
43292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43293 _ACEOF
43294
43295 fi
43296 done
43297
43298 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43299 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43300 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43301   echo $ECHO_N "(cached) $ECHO_C" >&6
43302 else
43303   ac_check_lib_save_LIBS=$LIBS
43304 LIBS="-lcap  $LIBS"
43305 cat >conftest.$ac_ext <<_ACEOF
43306 /* confdefs.h.  */
43307 _ACEOF
43308 cat confdefs.h >>conftest.$ac_ext
43309 cat >>conftest.$ac_ext <<_ACEOF
43310 /* end confdefs.h.  */
43311
43312 /* Override any GCC internal prototype to avoid an error.
43313    Use char because int might match the return type of a GCC
43314    builtin and then its argument prototype would still apply.  */
43315 #ifdef __cplusplus
43316 extern "C"
43317 #endif
43318 char cap_set_proc ();
43319 int
43320 main ()
43321 {
43322 return cap_set_proc ();
43323   ;
43324   return 0;
43325 }
43326 _ACEOF
43327 rm -f conftest.$ac_objext conftest$ac_exeext
43328 if { (ac_try="$ac_link"
43329 case "(($ac_try" in
43330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43331   *) ac_try_echo=$ac_try;;
43332 esac
43333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43334   (eval "$ac_link") 2>conftest.er1
43335   ac_status=$?
43336   grep -v '^ *+' conftest.er1 >conftest.err
43337   rm -f conftest.er1
43338   cat conftest.err >&5
43339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43340   (exit $ac_status); } && {
43341          test -z "$ac_c_werror_flag" ||
43342          test ! -s conftest.err
43343        } && test -s conftest$ac_exeext &&
43344        $as_test_x conftest$ac_exeext; then
43345   ac_cv_lib_cap_cap_set_proc=yes
43346 else
43347   echo "$as_me: failed program was:" >&5
43348 sed 's/^/| /' conftest.$ac_ext >&5
43349
43350         ac_cv_lib_cap_cap_set_proc=no
43351 fi
43352
43353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43354       conftest$ac_exeext conftest.$ac_ext
43355 LIBS=$ac_check_lib_save_LIBS
43356 fi
43357 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43358 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43359 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43360   CAP_LIBS="-lcap"
43361 else
43362   CAP_LIBS=
43363 fi
43364
43365 if test x$CAP_LIBS = x-lcap; then
43366
43367 cat >>confdefs.h <<\_ACEOF
43368 #define HAVE_LIBCAP 1
43369 _ACEOF
43370
43371 fi
43372
43373
43374
43375 cat >>confdefs.h <<\_ACEOF
43376 #define FDLIBS 1
43377 _ACEOF
43378
43379
43380 CFLAGS=${CFLAGS--O}
43381
43382 if test x$have_gcc = xyes ; then
43383    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43384    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43385 fi
43386 LDFLAGS=${LDFLAGS--O}
43387 DB_LIBS="${SQL_LFLAGS}"
43388 CPPFLAGS="$CPPFLAGS"
43389 CFLAGS="$CFLAGS"
43390
43391
43392
43393
43394
43395
43396
43397
43398
43399
43400
43401
43402
43403
43404
43405
43406 OBJLIST=
43407
43408
43409 lld="lld"
43410 llu="llu"
43411
43412 WCFLAGS=
43413 WLDFLAGS=
43414
43415 PFILES="platforms/Makefile"
43416 PSCMD="ps -e"
43417 WIN32=
43418 MACOSX=
43419
43420 hostname=`uname -n | cut -d '.' -f 1`
43421 if test x${hostname} = x ; then
43422    hostname="localhost"
43423 fi
43424 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43425 if test ! $? = 0; then
43426   hostname="localhost"
43427 fi
43428
43429 case "$DISTNAME" in
43430 aix)
43431    DISTVER=`uname -r`
43432    PSCMD="ps -e -o pid,comm"
43433    PFILES="${PFILES} \
43434       platforms/aix/Makefile"
43435    TAPEDRIVE="/dev/rmt0.1"
43436   ;;
43437 alpha)
43438    DISTVER=`uname -r`
43439    PTHREAD_LIB="-lpthread -lexc"
43440    if test "${CC}" = "gcc" ; then
43441       lld="lld"
43442       llu="llu"
43443    else
43444       lld="ld"
43445       llu="lu"
43446    fi
43447    TAPEDRIVE="/dev/nrmt0"
43448   ;;
43449 bsdi)
43450    DISTVER=`uname -a |awk '{print $3}'`
43451    TAPEDRIVE="/dev/nrmt0"
43452    PTHREAD_LIB="-pthread"
43453    CFLAGS="${CFLAGS} -pthread"
43454    PSCMD="ps -ax -o pid,command"
43455    lld="qd"
43456    llu="qu"
43457    PFILES="${PFILES} \
43458        platforms/bsdi/Makefile \
43459        platforms/bsdi/bacula-fd \
43460        platforms/bsdi/bacula-sd \
43461        platforms/bsdi/bacula-dir"
43462    largefile_support="yes"
43463   ;;
43464 cygwin)
43465    DISTVER=`uname -a |awk '{print $3}'`
43466    TAPEDRIVE="/dev/nrst0"
43467    WIN32=win32
43468    WCFLAGS="-mwindows"
43469    WLDFLAGS="-mwindows"
43470   ;;
43471 darwin)
43472    DISTVER=`uname -r`
43473    TAPEDRIVE="/dev/nst0"
43474    PSCMD="ps -e -o pid,command"
43475    MACOSX=macosx
43476    PFILES="${PFILES} \
43477       platforms/darwin/Makefile"
43478   ;;
43479 osx)
43480    DISTVER=`uname -r`
43481    TAPEDRIVE="/dev/nst0"
43482    PSCMD="ps -e -o pid,command"
43483    MACOSX=macosx
43484    PFILES="${PFILES} \
43485       platforms/osx/Makefile"
43486   ;;
43487 debian)
43488    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43489       DISTNAME="ubuntu"
43490    fi
43491    DISTVER=`cat /etc/debian_version`
43492    if test -f /etc/lsb-release ; then
43493       . /etc/lsb-release
43494       if test "x$DISTRIB_ID" != "x" ; then
43495          DISTNAME=$DISTRIB_ID
43496       fi
43497       if test "x$DISTRIB_RELEASE" != "x" ; then
43498          DISTVER=$DISTRIB_RELEASE
43499       fi
43500    fi
43501    if test "$DISTNAME" = "Ubuntu" ; then
43502       DISTNAME="ubuntu"
43503    fi
43504    TAPEDRIVE="/dev/nst0"
43505    PSCMD="ps -e -o pid,command"
43506    if test "$DISTNAME" = "ubuntu" ; then
43507       PFILES="${PFILES} \
43508          platforms/ubuntu/Makefile \
43509          platforms/ubuntu/bacula-fd \
43510          platforms/ubuntu/bacula-sd \
43511          platforms/ubuntu/bacula-dir"
43512    else
43513       PFILES="${PFILES} \
43514          platforms/debian/Makefile \
43515          platforms/debian/bacula-fd \
43516          platforms/debian/bacula-sd \
43517          platforms/debian/bacula-dir"
43518    fi
43519   ;;
43520 freebsd)
43521    DISTVER=`uname -a |awk '{print $3}'`
43522    VER=`echo $DISTVER | cut -c 1`
43523    if test x$VER = x4 ; then
43524       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43525       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43526    fi
43527    lld="qd"
43528    llu="qu"
43529    TAPEDRIVE="/dev/nrsa0"
43530    PSCMD="ps -ax -o pid,command"
43531    PFILES="${PFILES} \
43532        platforms/freebsd/Makefile \
43533        platforms/freebsd/bacula-fd \
43534        platforms/freebsd/bacula-sd \
43535        platforms/freebsd/bacula-dir"
43536    largefile_support="yes"
43537   ;;
43538 hpux)
43539    PSCMD="UNIX95=1; ps -e -o pid,comm"
43540    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43541    DISTVER=`uname -r`
43542    TAPEDRIVE="/dev/rmt/0hnb"
43543    PTHREAD_LIB="-lpthread"
43544    cat >>confdefs.h <<\_ACEOF
43545 #define _INCLUDE_LONGLONG 1
43546 _ACEOF
43547
43548   ;;
43549 irix)
43550    DISTVER=`uname -r`
43551    TAPEDRIVE="/dev/rmt/0cbn"
43552    PSCMD="ps -e -o pid,comm"
43553    PFILES="${PFILES} \
43554        platforms/irix/Makefile \
43555        platforms/irix/bacula-fd \
43556        platforms/irix/bacula-sd \
43557        platforms/irix/bacula-dir"
43558   ;;
43559 netbsd)
43560    DISTVER=`uname -a |awk '{print $3}'`
43561    lld="qd"
43562    llu="qu"
43563    TAPEDRIVE="/dev/nrst0"
43564    PSCMD="ps -ax -o pid,command"
43565    PTHREAD_LIB="-pthread"
43566    CFLAGS="${CFLAGS} -pthread"
43567   ;;
43568 openbsd)
43569    DISTVER=`uname -a |awk '{print $3}'`
43570    lld="qd"
43571    llu="qu"
43572    TAPEDRIVE="/dev/nrst0"
43573    PSCMD="ps -ax -o pid,command"
43574    PTHREAD_LIB="-pthread"
43575    CFLAGS="${CFLAGS} -pthread"
43576    PFILES="${PFILES} \
43577        platforms/openbsd/Makefile \
43578        platforms/openbsd/bacula-fd \
43579        platforms/openbsd/bacula-sd \
43580        platforms/openbsd/bacula-dir"
43581   ;;
43582 redhat)
43583    if test -f /etc/whitebox-release ; then
43584       f=/etc/whitebox-release
43585    else
43586       f=/etc/redhat-release
43587    fi
43588    if test `cat $f | grep release |\
43589          cut -f 3 -d ' '`x = "Enterprise"x ; then
43590       DISTVER="Enterprise "`cat $f | grep release |\
43591           cut -f 6 -d ' '`
43592    else
43593        DISTVER=`cat /etc/redhat-release | grep release |\
43594            cut -f 5 -d ' '`
43595    fi
43596    TAPEDRIVE="/dev/nst0"
43597    PSCMD="ps -e -o pid,command"
43598    PFILES="${PFILES} \
43599        platforms/redhat/Makefile \
43600        platforms/redhat/bacula-fd \
43601        platforms/redhat/bacula-sd \
43602        platforms/redhat/bacula-dir
43603        "
43604   ;;
43605 mandrake)
43606    DISTVER=`cat /etc/mandrake-release | grep release |\
43607       cut -f 5 -d ' '`
43608    TAPEDRIVE="/dev/nst0"
43609    PSCMD="ps -e -o pid,command"
43610    PFILES="${PFILES} \
43611        platforms/mandrake/Makefile \
43612        platforms/mandrake/bacula-fd \
43613        platforms/mandrake/bacula-sd \
43614        platforms/mandrake/bacula-dir \
43615        platforms/mandrake/bacula.spec \
43616        "
43617   ;;
43618 gentoo)
43619    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
43620    TAPEDRIVE="/dev/nst0"
43621    PSCMD="ps -e -o pid,command"
43622    PFILES="${PFILES} \
43623        platforms/gentoo/Makefile \
43624     platforms/gentoo/bacula-init \
43625        platforms/gentoo/bacula-fd \
43626        platforms/gentoo/bacula-sd \
43627        platforms/gentoo/bacula-dir"
43628   ;;
43629 slackware)
43630    DISTVER=`cat /etc/slackware-version`
43631    TAPEDRIVE="/dev/nst0"
43632    PSCMD="ps -e -o pid,command"
43633    PFILES="${PFILES} \
43634        platforms/slackware/Makefile \
43635        platforms/slackware/rc.bacula-fd \
43636        platforms/slackware/rc.bacula-sd \
43637        platforms/slackware/rc.bacula-dir\
43638        platforms/slackware/functions.bacula"
43639   ;;
43640 solaris)
43641    DISTVER=`uname -r`
43642    TAPEDRIVE="/dev/rmt/0cbn"
43643    PSCMD="ps -e -o pid,comm"
43644    PFILES="${PFILES} \
43645        platforms/solaris/Makefile \
43646        platforms/solaris/bacula-fd \
43647        platforms/solaris/bacula-sd \
43648        platforms/solaris/bacula-dir"
43649    if test x$DISTVER = x5.6 ; then
43650        cat >>confdefs.h <<\_ACEOF
43651 #define HAVE_OLD_SOCKOPT 1
43652 _ACEOF
43653
43654    fi
43655    LIBS="$LIBS -lresolv"
43656   ;;
43657 suse)
43658    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
43659        cut -f 3 -d ' '`
43660    TAPEDRIVE="/dev/nst0"
43661    PSCMD="ps -e -o pid,command"
43662    PFILES="${PFILES} \
43663        platforms/suse/Makefile \
43664        platforms/suse/bacula-fd \
43665        platforms/suse/bacula-sd \
43666        platforms/suse/bacula-dir \
43667        platforms/suse/bacula \
43668        platforms/suse/bacula.spec"
43669   ;;
43670 suse5)
43671    DISTNAME=suse
43672    DISTVER=5.x
43673    TAPEDRIVE="/dev/nst0"
43674    PSCMD="ps -e -o pid,command"
43675    PFILES="${PFILES} \
43676        platforms/suse/Makefile \
43677        platforms/suse/bacula-fd \
43678        platforms/suse/bacula-sd \
43679        platforms/suse/bacula-dir"
43680   ;;
43681 unknown)
43682    DISTVER=unknown
43683    TAPEDRIVE="/dev/nst0"
43684   ;;
43685 *)
43686   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
43687   ;;
43688 esac
43689
43690
43691
43692 LIBS="$PTHREAD_LIB $LIBS"
43693
43694 cat >>confdefs.h <<_ACEOF
43695 #define lld "$lld"
43696 _ACEOF
43697
43698 cat >>confdefs.h <<_ACEOF
43699 #define llu "$llu"
43700 _ACEOF
43701
43702
43703
43704
43705
43706
43707
43708
43709 MCOMMON=./autoconf/Make.common
43710
43711
43712 if test "x${subsysdir}" = "x${sbindir}" ; then
43713    echo " "
43714    echo " "
43715    echo "You have set both --sbindir and --with-subsys-dir"
43716    echo "  equal to: ${subsysdir} "
43717    echo "This is not permitted. Please reconfigure."
43718    echo " "
43719    echo "Aborting configuration ..."
43720    echo " "
43721    echo " "
43722    exit 1
43723 fi
43724
43725 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
43726
43727 ac_config_commands="$ac_config_commands default"
43728
43729 cat >confcache <<\_ACEOF
43730 # This file is a shell script that caches the results of configure
43731 # tests run on this system so they can be shared between configure
43732 # scripts and configure runs, see configure's option --config-cache.
43733 # It is not useful on other systems.  If it contains results you don't
43734 # want to keep, you may remove or edit it.
43735 #
43736 # config.status only pays attention to the cache file if you give it
43737 # the --recheck option to rerun configure.
43738 #
43739 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43740 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43741 # following values.
43742
43743 _ACEOF
43744
43745 # The following way of writing the cache mishandles newlines in values,
43746 # but we know of no workaround that is simple, portable, and efficient.
43747 # So, we kill variables containing newlines.
43748 # Ultrix sh set writes to stderr and can't be redirected directly,
43749 # and sets the high bit in the cache file unless we assign to the vars.
43750 (
43751   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
43752     eval ac_val=\$$ac_var
43753     case $ac_val in #(
43754     *${as_nl}*)
43755       case $ac_var in #(
43756       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
43757 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
43758       esac
43759       case $ac_var in #(
43760       _ | IFS | as_nl) ;; #(
43761       *) $as_unset $ac_var ;;
43762       esac ;;
43763     esac
43764   done
43765
43766   (set) 2>&1 |
43767     case $as_nl`(ac_space=' '; set) 2>&1` in #(
43768     *${as_nl}ac_space=\ *)
43769       # `set' does not quote correctly, so add quotes (double-quote
43770       # substitution turns \\\\ into \\, and sed turns \\ into \).
43771       sed -n \
43772         "s/'/'\\\\''/g;
43773           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43774       ;; #(
43775     *)
43776       # `set' quotes correctly as required by POSIX, so do not add quotes.
43777       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
43778       ;;
43779     esac |
43780     sort
43781 ) |
43782   sed '
43783      /^ac_cv_env_/b end
43784      t clear
43785      :clear
43786      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43787      t end
43788      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43789      :end' >>confcache
43790 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
43791   if test -w "$cache_file"; then
43792     test "x$cache_file" != "x/dev/null" &&
43793       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
43794 echo "$as_me: updating cache $cache_file" >&6;}
43795     cat confcache >$cache_file
43796   else
43797     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
43798 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43799   fi
43800 fi
43801 rm -f confcache
43802
43803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43804 # Let make expand exec_prefix.
43805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43806
43807 DEFS=-DHAVE_CONFIG_H
43808
43809 ac_libobjs=
43810 ac_ltlibobjs=
43811 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43812   # 1. Remove the extension, and $U if already installed.
43813   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
43814   ac_i=`echo "$ac_i" | sed "$ac_script"`
43815   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
43816   #    will be set to the directory where LIBOBJS objects are built.
43817   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
43818   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
43819 done
43820 LIBOBJS=$ac_libobjs
43821
43822 LTLIBOBJS=$ac_ltlibobjs
43823
43824
43825
43826 : ${CONFIG_STATUS=./config.status}
43827 ac_clean_files_save=$ac_clean_files
43828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43829 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43830 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43831 cat >$CONFIG_STATUS <<_ACEOF
43832 #! $SHELL
43833 # Generated by $as_me.
43834 # Run this file to recreate the current configuration.
43835 # Compiler output produced by configure, useful for debugging
43836 # configure, is in config.log if it exists.
43837
43838 debug=false
43839 ac_cs_recheck=false
43840 ac_cs_silent=false
43841 SHELL=\${CONFIG_SHELL-$SHELL}
43842 _ACEOF
43843
43844 cat >>$CONFIG_STATUS <<\_ACEOF
43845 ## --------------------- ##
43846 ## M4sh Initialization.  ##
43847 ## --------------------- ##
43848
43849 # Be more Bourne compatible
43850 DUALCASE=1; export DUALCASE # for MKS sh
43851 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43852   emulate sh
43853   NULLCMD=:
43854   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43855   # is contrary to our usage.  Disable this feature.
43856   alias -g '${1+"$@"}'='"$@"'
43857   setopt NO_GLOB_SUBST
43858 else
43859   case `(set -o) 2>/dev/null` in
43860   *posix*) set -o posix ;;
43861 esac
43862
43863 fi
43864
43865
43866
43867
43868 # PATH needs CR
43869 # Avoid depending upon Character Ranges.
43870 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43871 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43872 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43873 as_cr_digits='0123456789'
43874 as_cr_alnum=$as_cr_Letters$as_cr_digits
43875
43876 # The user is always right.
43877 if test "${PATH_SEPARATOR+set}" != set; then
43878   echo "#! /bin/sh" >conf$$.sh
43879   echo  "exit 0"   >>conf$$.sh
43880   chmod +x conf$$.sh
43881   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43882     PATH_SEPARATOR=';'
43883   else
43884     PATH_SEPARATOR=:
43885   fi
43886   rm -f conf$$.sh
43887 fi
43888
43889 # Support unset when possible.
43890 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43891   as_unset=unset
43892 else
43893   as_unset=false
43894 fi
43895
43896
43897 # IFS
43898 # We need space, tab and new line, in precisely that order.  Quoting is
43899 # there to prevent editors from complaining about space-tab.
43900 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43901 # splitting by setting IFS to empty value.)
43902 as_nl='
43903 '
43904 IFS=" ""        $as_nl"
43905
43906 # Find who we are.  Look in the path if we contain no directory separator.
43907 case $0 in
43908   *[\\/]* ) as_myself=$0 ;;
43909   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43910 for as_dir in $PATH
43911 do
43912   IFS=$as_save_IFS
43913   test -z "$as_dir" && as_dir=.
43914   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43915 done
43916 IFS=$as_save_IFS
43917
43918      ;;
43919 esac
43920 # We did not find ourselves, most probably we were run as `sh COMMAND'
43921 # in which case we are not to be found in the path.
43922 if test "x$as_myself" = x; then
43923   as_myself=$0
43924 fi
43925 if test ! -f "$as_myself"; then
43926   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43927   { (exit 1); exit 1; }
43928 fi
43929
43930 # Work around bugs in pre-3.0 UWIN ksh.
43931 for as_var in ENV MAIL MAILPATH
43932 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43933 done
43934 PS1='$ '
43935 PS2='> '
43936 PS4='+ '
43937
43938 # NLS nuisances.
43939 for as_var in \
43940   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43941   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43942   LC_TELEPHONE LC_TIME
43943 do
43944   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43945     eval $as_var=C; export $as_var
43946   else
43947     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43948   fi
43949 done
43950
43951 # Required to use basename.
43952 if expr a : '\(a\)' >/dev/null 2>&1 &&
43953    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43954   as_expr=expr
43955 else
43956   as_expr=false
43957 fi
43958
43959 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43960   as_basename=basename
43961 else
43962   as_basename=false
43963 fi
43964
43965
43966 # Name of the executable.
43967 as_me=`$as_basename -- "$0" ||
43968 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43969          X"$0" : 'X\(//\)$' \| \
43970          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43971 echo X/"$0" |
43972     sed '/^.*\/\([^/][^/]*\)\/*$/{
43973             s//\1/
43974             q
43975           }
43976           /^X\/\(\/\/\)$/{
43977             s//\1/
43978             q
43979           }
43980           /^X\/\(\/\).*/{
43981             s//\1/
43982             q
43983           }
43984           s/.*/./; q'`
43985
43986 # CDPATH.
43987 $as_unset CDPATH
43988
43989
43990
43991   as_lineno_1=$LINENO
43992   as_lineno_2=$LINENO
43993   test "x$as_lineno_1" != "x$as_lineno_2" &&
43994   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43995
43996   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43997   # uniformly replaced by the line number.  The first 'sed' inserts a
43998   # line-number line after each line using $LINENO; the second 'sed'
43999   # does the real work.  The second script uses 'N' to pair each
44000   # line-number line with the line containing $LINENO, and appends
44001   # trailing '-' during substitution so that $LINENO is not a special
44002   # case at line end.
44003   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44004   # scripts with optimization help from Paolo Bonzini.  Blame Lee
44005   # E. McMahon (1931-1989) for sed's syntax.  :-)
44006   sed -n '
44007     p
44008     /[$]LINENO/=
44009   ' <$as_myself |
44010     sed '
44011       s/[$]LINENO.*/&-/
44012       t lineno
44013       b
44014       :lineno
44015       N
44016       :loop
44017       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44018       t loop
44019       s/-\n.*//
44020     ' >$as_me.lineno &&
44021   chmod +x "$as_me.lineno" ||
44022     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44023    { (exit 1); exit 1; }; }
44024
44025   # Don't try to exec as it changes $[0], causing all sort of problems
44026   # (the dirname of $[0] is not the place where we might find the
44027   # original and so on.  Autoconf is especially sensitive to this).
44028   . "./$as_me.lineno"
44029   # Exit status is that of the last command.
44030   exit
44031 }
44032
44033
44034 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44035   as_dirname=dirname
44036 else
44037   as_dirname=false
44038 fi
44039
44040 ECHO_C= ECHO_N= ECHO_T=
44041 case `echo -n x` in
44042 -n*)
44043   case `echo 'x\c'` in
44044   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
44045   *)   ECHO_C='\c';;
44046   esac;;
44047 *)
44048   ECHO_N='-n';;
44049 esac
44050
44051 if expr a : '\(a\)' >/dev/null 2>&1 &&
44052    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44053   as_expr=expr
44054 else
44055   as_expr=false
44056 fi
44057
44058 rm -f conf$$ conf$$.exe conf$$.file
44059 if test -d conf$$.dir; then
44060   rm -f conf$$.dir/conf$$.file
44061 else
44062   rm -f conf$$.dir
44063   mkdir conf$$.dir
44064 fi
44065 echo >conf$$.file
44066 if ln -s conf$$.file conf$$ 2>/dev/null; then
44067   as_ln_s='ln -s'
44068   # ... but there are two gotchas:
44069   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44070   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44071   # In both cases, we have to default to `cp -p'.
44072   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44073     as_ln_s='cp -p'
44074 elif ln conf$$.file conf$$ 2>/dev/null; then
44075   as_ln_s=ln
44076 else
44077   as_ln_s='cp -p'
44078 fi
44079 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44080 rmdir conf$$.dir 2>/dev/null
44081
44082 if mkdir -p . 2>/dev/null; then
44083   as_mkdir_p=:
44084 else
44085   test -d ./-p && rmdir ./-p
44086   as_mkdir_p=false
44087 fi
44088
44089 if test -x / >/dev/null 2>&1; then
44090   as_test_x='test -x'
44091 else
44092   if ls -dL / >/dev/null 2>&1; then
44093     as_ls_L_option=L
44094   else
44095     as_ls_L_option=
44096   fi
44097   as_test_x='
44098     eval sh -c '\''
44099       if test -d "$1"; then
44100         test -d "$1/.";
44101       else
44102         case $1 in
44103         -*)set "./$1";;
44104         esac;
44105         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44106         ???[sx]*):;;*)false;;esac;fi
44107     '\'' sh
44108   '
44109 fi
44110 as_executable_p=$as_test_x
44111
44112 # Sed expression to map a string onto a valid CPP name.
44113 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44114
44115 # Sed expression to map a string onto a valid variable name.
44116 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44117
44118
44119 exec 6>&1
44120
44121 # Save the log message, to keep $[0] and so on meaningful, and to
44122 # report actual input values of CONFIG_FILES etc. instead of their
44123 # values after options handling.
44124 ac_log="
44125 This file was extended by $as_me, which was
44126 generated by GNU Autoconf 2.61.  Invocation command line was
44127
44128   CONFIG_FILES    = $CONFIG_FILES
44129   CONFIG_HEADERS  = $CONFIG_HEADERS
44130   CONFIG_LINKS    = $CONFIG_LINKS
44131   CONFIG_COMMANDS = $CONFIG_COMMANDS
44132   $ $0 $@
44133
44134 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44135 "
44136
44137 _ACEOF
44138
44139 cat >>$CONFIG_STATUS <<_ACEOF
44140 # Files that config.status was made for.
44141 config_files="$ac_config_files"
44142 config_headers="$ac_config_headers"
44143 config_commands="$ac_config_commands"
44144
44145 _ACEOF
44146
44147 cat >>$CONFIG_STATUS <<\_ACEOF
44148 ac_cs_usage="\
44149 \`$as_me' instantiates files from templates according to the
44150 current configuration.
44151
44152 Usage: $0 [OPTIONS] [FILE]...
44153
44154   -h, --help       print this help, then exit
44155   -V, --version    print version number and configuration settings, then exit
44156   -q, --quiet      do not print progress messages
44157   -d, --debug      don't remove temporary files
44158       --recheck    update $as_me by reconfiguring in the same conditions
44159   --file=FILE[:TEMPLATE]
44160                    instantiate the configuration file FILE
44161   --header=FILE[:TEMPLATE]
44162                    instantiate the configuration header FILE
44163
44164 Configuration files:
44165 $config_files
44166
44167 Configuration headers:
44168 $config_headers
44169
44170 Configuration commands:
44171 $config_commands
44172
44173 Report bugs to <bug-autoconf@gnu.org>."
44174
44175 _ACEOF
44176 cat >>$CONFIG_STATUS <<_ACEOF
44177 ac_cs_version="\\
44178 config.status
44179 configured by $0, generated by GNU Autoconf 2.61,
44180   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44181
44182 Copyright (C) 2006 Free Software Foundation, Inc.
44183 This config.status script is free software; the Free Software Foundation
44184 gives unlimited permission to copy, distribute and modify it."
44185
44186 ac_pwd='$ac_pwd'
44187 srcdir='$srcdir'
44188 INSTALL='$INSTALL'
44189 _ACEOF
44190
44191 cat >>$CONFIG_STATUS <<\_ACEOF
44192 # If no file are specified by the user, then we need to provide default
44193 # value.  By we need to know if files were specified by the user.
44194 ac_need_defaults=:
44195 while test $# != 0
44196 do
44197   case $1 in
44198   --*=*)
44199     ac_option=`expr "X$1" : 'X\([^=]*\)='`
44200     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44201     ac_shift=:
44202     ;;
44203   *)
44204     ac_option=$1
44205     ac_optarg=$2
44206     ac_shift=shift
44207     ;;
44208   esac
44209
44210   case $ac_option in
44211   # Handling of the options.
44212   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44213     ac_cs_recheck=: ;;
44214   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44215     echo "$ac_cs_version"; exit ;;
44216   --debug | --debu | --deb | --de | --d | -d )
44217     debug=: ;;
44218   --file | --fil | --fi | --f )
44219     $ac_shift
44220     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44221     ac_need_defaults=false;;
44222   --header | --heade | --head | --hea )
44223     $ac_shift
44224     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44225     ac_need_defaults=false;;
44226   --he | --h)
44227     # Conflict between --help and --header
44228     { echo "$as_me: error: ambiguous option: $1
44229 Try \`$0 --help' for more information." >&2
44230    { (exit 1); exit 1; }; };;
44231   --help | --hel | -h )
44232     echo "$ac_cs_usage"; exit ;;
44233   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44234   | -silent | --silent | --silen | --sile | --sil | --si | --s)
44235     ac_cs_silent=: ;;
44236
44237   # This is an error.
44238   -*) { echo "$as_me: error: unrecognized option: $1
44239 Try \`$0 --help' for more information." >&2
44240    { (exit 1); exit 1; }; } ;;
44241
44242   *) ac_config_targets="$ac_config_targets $1"
44243      ac_need_defaults=false ;;
44244
44245   esac
44246   shift
44247 done
44248
44249 ac_configure_extra_args=
44250
44251 if $ac_cs_silent; then
44252   exec 6>/dev/null
44253   ac_configure_extra_args="$ac_configure_extra_args --silent"
44254 fi
44255
44256 _ACEOF
44257 cat >>$CONFIG_STATUS <<_ACEOF
44258 if \$ac_cs_recheck; then
44259   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44260   CONFIG_SHELL=$SHELL
44261   export CONFIG_SHELL
44262   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44263 fi
44264
44265 _ACEOF
44266 cat >>$CONFIG_STATUS <<\_ACEOF
44267 exec 5>>config.log
44268 {
44269   echo
44270   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44271 ## Running $as_me. ##
44272 _ASBOX
44273   echo "$ac_log"
44274 } >&5
44275
44276 _ACEOF
44277 cat >>$CONFIG_STATUS <<_ACEOF
44278 #
44279 # INIT-COMMANDS
44280 #
44281
44282
44283 # The HP-UX ksh and POSIX shell print the target directory to stdout
44284 # if CDPATH is set.
44285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44286
44287 sed_quote_subst='$sed_quote_subst'
44288 double_quote_subst='$double_quote_subst'
44289 delay_variable_subst='$delay_variable_subst'
44290 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44291 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44292 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44293 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44294 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44295 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44296 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44297 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44298 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44299 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44300 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44301 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44302 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44303 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44304 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44305 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44306 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44307 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44308 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44309 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44310 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44311 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44312 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44313 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44314 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44315 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44316 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44317 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44318 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44319 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44320 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44321 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44322 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44323 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44324 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44325 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44326 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44327 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44328 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44329 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44330 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44331 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44332 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44333 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44334 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"`'
44335 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"`'
44336 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44337 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44338 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44339 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44340 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44341 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44342 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44343 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44344 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44345 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44346 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44347 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44348 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44349 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44350 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44351 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44352 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44353 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44354 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44355 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44356 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44357 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44358 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44359 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44360 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44361 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44362 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44363 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44364 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44365 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44366 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44367 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44368 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44369 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44370 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44371 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44372 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44373 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44374 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44375 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44376 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44377 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44378 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44379 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44380 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44381 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44382 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44383 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44384 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44385 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44386 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44387 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44388 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44389 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44390 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44391 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44392 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44393 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44394 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44395 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44396 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44397 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44398 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44399 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44400 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44401 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44402 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44403 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44404 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44405 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44406 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44407 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44408 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44409 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44410 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44411 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44412 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44413 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44414 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44415 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44416 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44417 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44418 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44419 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44420 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44421 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44422 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44423 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44424 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44425 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44426 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44427 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44428 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44429 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44430 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44431 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44432 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44433 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44434 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44435 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44436 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44437 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44438 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44439 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44440 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44441 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44442 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44443 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44444 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44445 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44446 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44447 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44448 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44449 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44450 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44451 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44452 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44453 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44454 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44455 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44456 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44457 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44458 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44459 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44460 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44461
44462 LTCC='$LTCC'
44463 LTCFLAGS='$LTCFLAGS'
44464 compiler='$compiler_DEFAULT'
44465
44466 # Quote evaled strings.
44467 for var in SED \
44468 GREP \
44469 EGREP \
44470 FGREP \
44471 LD \
44472 NM \
44473 LN_S \
44474 lt_SP2NL \
44475 lt_NL2SP \
44476 reload_flag \
44477 OBJDUMP \
44478 deplibs_check_method \
44479 file_magic_cmd \
44480 AR \
44481 AR_FLAGS \
44482 STRIP \
44483 RANLIB \
44484 CC \
44485 CFLAGS \
44486 compiler \
44487 lt_cv_sys_global_symbol_pipe \
44488 lt_cv_sys_global_symbol_to_cdecl \
44489 lt_cv_sys_global_symbol_to_c_name_address \
44490 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44491 SHELL \
44492 ECHO \
44493 lt_prog_compiler_no_builtin_flag \
44494 lt_prog_compiler_wl \
44495 lt_prog_compiler_pic \
44496 lt_prog_compiler_static \
44497 lt_cv_prog_compiler_c_o \
44498 need_locks \
44499 DSYMUTIL \
44500 NMEDIT \
44501 LIPO \
44502 OTOOL \
44503 OTOOL64 \
44504 shrext_cmds \
44505 export_dynamic_flag_spec \
44506 whole_archive_flag_spec \
44507 compiler_needs_object \
44508 with_gnu_ld \
44509 allow_undefined_flag \
44510 no_undefined_flag \
44511 hardcode_libdir_flag_spec \
44512 hardcode_libdir_flag_spec_ld \
44513 hardcode_libdir_separator \
44514 fix_srcfile_path \
44515 exclude_expsyms \
44516 include_expsyms \
44517 file_list_spec \
44518 variables_saved_for_relink \
44519 libname_spec \
44520 library_names_spec \
44521 soname_spec \
44522 finish_eval \
44523 old_striplib \
44524 striplib \
44525 compiler_lib_search_dirs \
44526 predep_objects \
44527 postdep_objects \
44528 predeps \
44529 postdeps \
44530 compiler_lib_search_path \
44531 LD_CXX \
44532 compiler_CXX \
44533 lt_prog_compiler_no_builtin_flag_CXX \
44534 lt_prog_compiler_wl_CXX \
44535 lt_prog_compiler_pic_CXX \
44536 lt_prog_compiler_static_CXX \
44537 lt_cv_prog_compiler_c_o_CXX \
44538 export_dynamic_flag_spec_CXX \
44539 whole_archive_flag_spec_CXX \
44540 compiler_needs_object_CXX \
44541 with_gnu_ld_CXX \
44542 allow_undefined_flag_CXX \
44543 no_undefined_flag_CXX \
44544 hardcode_libdir_flag_spec_CXX \
44545 hardcode_libdir_flag_spec_ld_CXX \
44546 hardcode_libdir_separator_CXX \
44547 fix_srcfile_path_CXX \
44548 exclude_expsyms_CXX \
44549 include_expsyms_CXX \
44550 file_list_spec_CXX \
44551 compiler_lib_search_dirs_CXX \
44552 predep_objects_CXX \
44553 postdep_objects_CXX \
44554 predeps_CXX \
44555 postdeps_CXX \
44556 compiler_lib_search_path_CXX; do
44557     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44558     *[\\\\\\\`\\"\\\$]*)
44559       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44560       ;;
44561     *)
44562       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44563       ;;
44564     esac
44565 done
44566
44567 # Double-quote double-evaled strings.
44568 for var in reload_cmds \
44569 old_postinstall_cmds \
44570 old_postuninstall_cmds \
44571 old_archive_cmds \
44572 extract_expsyms_cmds \
44573 old_archive_from_new_cmds \
44574 old_archive_from_expsyms_cmds \
44575 archive_cmds \
44576 archive_expsym_cmds \
44577 module_cmds \
44578 module_expsym_cmds \
44579 export_symbols_cmds \
44580 prelink_cmds \
44581 postinstall_cmds \
44582 postuninstall_cmds \
44583 finish_cmds \
44584 sys_lib_search_path_spec \
44585 sys_lib_dlsearch_path_spec \
44586 old_archive_cmds_CXX \
44587 old_archive_from_new_cmds_CXX \
44588 old_archive_from_expsyms_cmds_CXX \
44589 archive_cmds_CXX \
44590 archive_expsym_cmds_CXX \
44591 module_cmds_CXX \
44592 module_expsym_cmds_CXX \
44593 export_symbols_cmds_CXX \
44594 prelink_cmds_CXX; do
44595     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44596     *[\\\\\\\`\\"\\\$]*)
44597       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44598       ;;
44599     *)
44600       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44601       ;;
44602     esac
44603 done
44604
44605 # Fix-up fallback echo if it was mangled by the above quoting rules.
44606 case \$lt_ECHO in
44607 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44608   ;;
44609 esac
44610
44611 ac_aux_dir='$ac_aux_dir'
44612 xsi_shell='$xsi_shell'
44613 lt_shell_append='$lt_shell_append'
44614
44615 # See if we are running on zsh, and set the options which allow our
44616 # commands through without removal of \ escapes INIT.
44617 if test -n "\${ZSH_VERSION+set}" ; then
44618    setopt NO_GLOB_SUBST
44619 fi
44620
44621
44622     PACKAGE='$PACKAGE'
44623     VERSION='$VERSION'
44624     TIMESTAMP='$TIMESTAMP'
44625     RM='$RM'
44626     ofile='$ofile'
44627
44628
44629
44630
44631
44632 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
44633     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
44634     # from automake.
44635     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
44636     # Capture the value of LINGUAS because we need it to compute CATALOGS.
44637     LINGUAS="${LINGUAS-%UNSET%}"
44638
44639
44640 _ACEOF
44641
44642 cat >>$CONFIG_STATUS <<\_ACEOF
44643
44644 # Handling of arguments.
44645 for ac_config_target in $ac_config_targets
44646 do
44647   case $ac_config_target in
44648     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
44649     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
44650     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
44651     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
44652     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44653     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
44654     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
44655     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
44656     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
44657     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
44658     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
44659     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
44660     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
44661     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
44662     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
44663     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
44664     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
44665     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
44666     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
44667     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
44668     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
44669     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
44670     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
44671     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
44672     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
44673     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
44674     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
44675     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
44676     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
44677     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
44678     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
44679     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
44680     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
44681     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
44682     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
44683     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
44684     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
44685     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
44686     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
44687     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
44688     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
44689     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
44690     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
44691     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
44692     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
44693     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
44694     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
44695     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
44696     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
44697     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
44698     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
44699     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
44700     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
44701     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
44702     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
44703     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
44704     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
44705     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
44706     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
44707     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
44708     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
44709     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
44710     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
44711     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
44712     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
44713     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
44714     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
44715     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
44716     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
44717     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
44718     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
44719     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
44720     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
44721     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
44722     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
44723     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
44724     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
44725     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
44726     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
44727     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
44728     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
44729     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
44730     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
44731     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
44732     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
44733     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
44734     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
44735     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
44736     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
44737     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
44738     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
44739     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
44740     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
44741     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
44742     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
44743     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
44744     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
44745     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
44746     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
44747     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
44748     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
44749     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
44750     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
44751     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
44752     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
44753     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
44754     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
44755     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
44756     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
44757     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
44758     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
44759
44760   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44761 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44762    { (exit 1); exit 1; }; };;
44763   esac
44764 done
44765
44766
44767 # If the user did not use the arguments to specify the items to instantiate,
44768 # then the envvar interface is used.  Set only those that are not.
44769 # We use the long form for the default assignment because of an extremely
44770 # bizarre bug on SunOS 4.1.3.
44771 if $ac_need_defaults; then
44772   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44773   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44774   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44775 fi
44776
44777 # Have a temporary directory for convenience.  Make it in the build tree
44778 # simply because there is no reason against having it here, and in addition,
44779 # creating and moving files from /tmp can sometimes cause problems.
44780 # Hook for its removal unless debugging.
44781 # Note that there is a small window in which the directory will not be cleaned:
44782 # after its creation but before its name has been assigned to `$tmp'.
44783 $debug ||
44784 {
44785   tmp=
44786   trap 'exit_status=$?
44787   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
44788 ' 0
44789   trap '{ (exit 1); exit 1; }' 1 2 13 15
44790 }
44791 # Create a (secure) tmp directory for tmp files.
44792
44793 {
44794   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
44795   test -n "$tmp" && test -d "$tmp"
44796 }  ||
44797 {
44798   tmp=./conf$$-$RANDOM
44799   (umask 077 && mkdir "$tmp")
44800 } ||
44801 {
44802    echo "$me: cannot create a temporary directory in ." >&2
44803    { (exit 1); exit 1; }
44804 }
44805
44806 #
44807 # Set up the sed scripts for CONFIG_FILES section.
44808 #
44809
44810 # No need to generate the scripts if there are no CONFIG_FILES.
44811 # This happens for instance when ./config.status config.h
44812 if test -n "$CONFIG_FILES"; then
44813
44814 _ACEOF
44815
44816 # Create sed commands to just substitute file output variables.
44817
44818 # Remaining file output variables are in a fragment that also has non-file
44819 # output varibles.
44820
44821
44822
44823 ac_delim='%!_!# '
44824 for ac_last_try in false false false false false :; do
44825   cat >conf$$subs.sed <<_ACEOF
44826 SHELL!$SHELL$ac_delim
44827 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
44828 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
44829 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
44830 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
44831 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
44832 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
44833 exec_prefix!$exec_prefix$ac_delim
44834 prefix!$prefix$ac_delim
44835 program_transform_name!$program_transform_name$ac_delim
44836 bindir!$bindir$ac_delim
44837 sbindir!$sbindir$ac_delim
44838 libexecdir!$libexecdir$ac_delim
44839 datarootdir!$datarootdir$ac_delim
44840 datadir!$datadir$ac_delim
44841 sysconfdir!$sysconfdir$ac_delim
44842 sharedstatedir!$sharedstatedir$ac_delim
44843 localstatedir!$localstatedir$ac_delim
44844 includedir!$includedir$ac_delim
44845 oldincludedir!$oldincludedir$ac_delim
44846 docdir!$docdir$ac_delim
44847 infodir!$infodir$ac_delim
44848 htmldir!$htmldir$ac_delim
44849 dvidir!$dvidir$ac_delim
44850 pdfdir!$pdfdir$ac_delim
44851 psdir!$psdir$ac_delim
44852 libdir!$libdir$ac_delim
44853 localedir!$localedir$ac_delim
44854 mandir!$mandir$ac_delim
44855 DEFS!$DEFS$ac_delim
44856 ECHO_C!$ECHO_C$ac_delim
44857 ECHO_N!$ECHO_N$ac_delim
44858 ECHO_T!$ECHO_T$ac_delim
44859 LIBS!$LIBS$ac_delim
44860 build_alias!$build_alias$ac_delim
44861 host_alias!$host_alias$ac_delim
44862 target_alias!$target_alias$ac_delim
44863 BUILD_DIR!$BUILD_DIR$ac_delim
44864 TOP_DIR!$TOP_DIR$ac_delim
44865 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
44866 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
44867 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
44868 TRUEPRG!$TRUEPRG$ac_delim
44869 FALSEPRG!$FALSEPRG$ac_delim
44870 VERSION!$VERSION$ac_delim
44871 DATE!$DATE$ac_delim
44872 LSMDATE!$LSMDATE$ac_delim
44873 BACULA!$BACULA$ac_delim
44874 post_host!$post_host$ac_delim
44875 CC!$CC$ac_delim
44876 CFLAGS!$CFLAGS$ac_delim
44877 LDFLAGS!$LDFLAGS$ac_delim
44878 CPPFLAGS!$CPPFLAGS$ac_delim
44879 ac_ct_CC!$ac_ct_CC$ac_delim
44880 EXEEXT!$EXEEXT$ac_delim
44881 OBJEXT!$OBJEXT$ac_delim
44882 CXX!$CXX$ac_delim
44883 CXXFLAGS!$CXXFLAGS$ac_delim
44884 ac_ct_CXX!$ac_ct_CXX$ac_delim
44885 CPP!$CPP$ac_delim
44886 GREP!$GREP$ac_delim
44887 EGREP!$EGREP$ac_delim
44888 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
44889 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
44890 INSTALL_DATA!$INSTALL_DATA$ac_delim
44891 MV!$MV$ac_delim
44892 REMOVE!$REMOVE$ac_delim
44893 CP!$CP$ac_delim
44894 SED!$SED$ac_delim
44895 ECHO!$ECHO$ac_delim
44896 CMP!$CMP$ac_delim
44897 TBL!$TBL$ac_delim
44898 AR!$AR$ac_delim
44899 OPENSSL!$OPENSSL$ac_delim
44900 MTX!$MTX$ac_delim
44901 DD!$DD$ac_delim
44902 MKISOFS!$MKISOFS$ac_delim
44903 PYTHON!$PYTHON$ac_delim
44904 GROWISOFS!$GROWISOFS$ac_delim
44905 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
44906 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
44907 PKGCONFIG!$PKGCONFIG$ac_delim
44908 QMAKE!$QMAKE$ac_delim
44909 QMAKEQT4!$QMAKEQT4$ac_delim
44910 GMAKE!$GMAKE$ac_delim
44911 WXCONFIG!$WXCONFIG$ac_delim
44912 WXFLAGS!$WXFLAGS$ac_delim
44913 CDRECORD!$CDRECORD$ac_delim
44914 PIDOF!$PIDOF$ac_delim
44915 AWK!$AWK$ac_delim
44916 ARFLAGS!$ARFLAGS$ac_delim
44917 MAKE_SHELL!$MAKE_SHELL$ac_delim
44918 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
44919 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
44920 _ACEOF
44921
44922   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
44923     break
44924   elif $ac_last_try; then
44925     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44926 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44927    { (exit 1); exit 1; }; }
44928   else
44929     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44930   fi
44931 done
44932
44933 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44934 if test -n "$ac_eof"; then
44935   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44936   ac_eof=`expr $ac_eof + 1`
44937 fi
44938
44939 cat >>$CONFIG_STATUS <<_ACEOF
44940 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
44941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44942 /^[      ]*@MCOMMON@[    ]*$/{
44943 r $MCOMMON
44944 d
44945 }
44946 _ACEOF
44947 sed '
44948 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44949 s/^/s,@/; s/!/@,|#_!!_#|/
44950 :n
44951 t n
44952 s/'"$ac_delim"'$/,g/; t
44953 s/$/\\/; p
44954 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44955 ' >>$CONFIG_STATUS <conf$$subs.sed
44956 rm -f conf$$subs.sed
44957 cat >>$CONFIG_STATUS <<_ACEOF
44958 CEOF$ac_eof
44959 _ACEOF
44960
44961
44962 ac_delim='%!_!# '
44963 for ac_last_try in false false false false false :; do
44964   cat >conf$$subs.sed <<_ACEOF
44965 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
44966 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
44967 LIBTOOL!$LIBTOOL$ac_delim
44968 build!$build$ac_delim
44969 build_cpu!$build_cpu$ac_delim
44970 build_vendor!$build_vendor$ac_delim
44971 build_os!$build_os$ac_delim
44972 host!$host$ac_delim
44973 host_cpu!$host_cpu$ac_delim
44974 host_vendor!$host_vendor$ac_delim
44975 host_os!$host_os$ac_delim
44976 FGREP!$FGREP$ac_delim
44977 LD!$LD$ac_delim
44978 DUMPBIN!$DUMPBIN$ac_delim
44979 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
44980 NM!$NM$ac_delim
44981 LN_S!$LN_S$ac_delim
44982 OBJDUMP!$OBJDUMP$ac_delim
44983 STRIP!$STRIP$ac_delim
44984 RANLIB!$RANLIB$ac_delim
44985 lt_ECHO!$lt_ECHO$ac_delim
44986 DSYMUTIL!$DSYMUTIL$ac_delim
44987 NMEDIT!$NMEDIT$ac_delim
44988 LIPO!$LIPO$ac_delim
44989 OTOOL!$OTOOL$ac_delim
44990 OTOOL64!$OTOOL64$ac_delim
44991 CXXCPP!$CXXCPP$ac_delim
44992 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
44993 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
44994 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
44995 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
44996 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
44997 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
44998 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
44999 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45000 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45001 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45002 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45003 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45004 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45005 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45006 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45007 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45008 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45009 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45010 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45011 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45012 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45013 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45014 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45015 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45016 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45017 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45018 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45019 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45020 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45021 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45022 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45023 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45024 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45025 SET_MAKE!$SET_MAKE$ac_delim
45026 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45027 USE_NLS!$USE_NLS$ac_delim
45028 MSGFMT!$MSGFMT$ac_delim
45029 GMSGFMT!$GMSGFMT$ac_delim
45030 XGETTEXT!$XGETTEXT$ac_delim
45031 MSGMERGE!$MSGMERGE$ac_delim
45032 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45033 LIBICONV!$LIBICONV$ac_delim
45034 LTLIBICONV!$LTLIBICONV$ac_delim
45035 INTLLIBS!$INTLLIBS$ac_delim
45036 LIBINTL!$LIBINTL$ac_delim
45037 LTLIBINTL!$LTLIBINTL$ac_delim
45038 POSUB!$POSUB$ac_delim
45039 GLIBC2!$GLIBC2$ac_delim
45040 ALLOCA!$ALLOCA$ac_delim
45041 GLIBC21!$GLIBC21$ac_delim
45042 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45043 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45044 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45045 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45046 INTLBISON!$INTLBISON$ac_delim
45047 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45048 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45049 CATOBJEXT!$CATOBJEXT$ac_delim
45050 DATADIRNAME!$DATADIRNAME$ac_delim
45051 INSTOBJEXT!$INSTOBJEXT$ac_delim
45052 GENCAT!$GENCAT$ac_delim
45053 INTLOBJS!$INTLOBJS$ac_delim
45054 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45055 BAT_DIR!$BAT_DIR$ac_delim
45056 QWT_INC!$QWT_INC$ac_delim
45057 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45058 QWT_LIB!$QWT_LIB$ac_delim
45059 QWT!$QWT$ac_delim
45060 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45061 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45062 _ACEOF
45063
45064   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45065     break
45066   elif $ac_last_try; then
45067     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45068 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45069    { (exit 1); exit 1; }; }
45070   else
45071     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45072   fi
45073 done
45074
45075 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45076 if test -n "$ac_eof"; then
45077   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45078   ac_eof=`expr $ac_eof + 1`
45079 fi
45080
45081 cat >>$CONFIG_STATUS <<_ACEOF
45082 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45083 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45084 _ACEOF
45085 sed '
45086 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45087 s/^/s,@/; s/!/@,|#_!!_#|/
45088 :n
45089 t n
45090 s/'"$ac_delim"'$/,g/; t
45091 s/$/\\/; p
45092 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45093 ' >>$CONFIG_STATUS <conf$$subs.sed
45094 rm -f conf$$subs.sed
45095 cat >>$CONFIG_STATUS <<_ACEOF
45096 CEOF$ac_eof
45097 _ACEOF
45098
45099
45100 ac_delim='%!_!# '
45101 for ac_last_try in false false false false false :; do
45102   cat >conf$$subs.sed <<_ACEOF
45103 WX_DIR!$WX_DIR$ac_delim
45104 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45105 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45106 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45107 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45108 STATIC_FD!$STATIC_FD$ac_delim
45109 STATIC_SD!$STATIC_SD$ac_delim
45110 STATIC_DIR!$STATIC_DIR$ac_delim
45111 STATIC_CONS!$STATIC_CONS$ac_delim
45112 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45113 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45114 ALL_DIRS!$ALL_DIRS$ac_delim
45115 DIRD_DIR!$DIRD_DIR$ac_delim
45116 DIR_TOOLS!$DIR_TOOLS$ac_delim
45117 STORED_DIR!$STORED_DIR$ac_delim
45118 CONS_INC!$CONS_INC$ac_delim
45119 CONS_OBJ!$CONS_OBJ$ac_delim
45120 CONS_SRC!$CONS_SRC$ac_delim
45121 CONS_LIBS!$CONS_LIBS$ac_delim
45122 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45123 READLINE_SRC!$READLINE_SRC$ac_delim
45124 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45125 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45126 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45127 OPENSSL_INC!$OPENSSL_INC$ac_delim
45128 working_dir!$working_dir$ac_delim
45129 archivedir!$archivedir$ac_delim
45130 basename!$basename$ac_delim
45131 hostname!$hostname$ac_delim
45132 scriptdir!$scriptdir$ac_delim
45133 bsrdir!$bsrdir$ac_delim
45134 logdir!$logdir$ac_delim
45135 plugindir!$plugindir$ac_delim
45136 dump_email!$dump_email$ac_delim
45137 job_email!$job_email$ac_delim
45138 smtp_host!$smtp_host$ac_delim
45139 piddir!$piddir$ac_delim
45140 subsysdir!$subsysdir$ac_delim
45141 baseport!$baseport$ac_delim
45142 dir_port!$dir_port$ac_delim
45143 fd_port!$fd_port$ac_delim
45144 sd_port!$sd_port$ac_delim
45145 dir_password!$dir_password$ac_delim
45146 fd_password!$fd_password$ac_delim
45147 sd_password!$sd_password$ac_delim
45148 mon_dir_password!$mon_dir_password$ac_delim
45149 mon_fd_password!$mon_fd_password$ac_delim
45150 mon_sd_password!$mon_sd_password$ac_delim
45151 db_name!$db_name$ac_delim
45152 db_user!$db_user$ac_delim
45153 db_password!$db_password$ac_delim
45154 db_port!$db_port$ac_delim
45155 dir_user!$dir_user$ac_delim
45156 dir_group!$dir_group$ac_delim
45157 sd_user!$sd_user$ac_delim
45158 sd_group!$sd_group$ac_delim
45159 fd_user!$fd_user$ac_delim
45160 fd_group!$fd_group$ac_delim
45161 SBINPERM!$SBINPERM$ac_delim
45162 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45163 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45164 SQL_BINDIR!$SQL_BINDIR$ac_delim
45165 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45166 uncomment_dbi!$uncomment_dbi$ac_delim
45167 DB_PROG!$DB_PROG$ac_delim
45168 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45169 cats!$cats$ac_delim
45170 DB_TYPE!$DB_TYPE$ac_delim
45171 GETCONF!$GETCONF$ac_delim
45172 XMKMF!$XMKMF$ac_delim
45173 X_CFLAGS!$X_CFLAGS$ac_delim
45174 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45175 X_LIBS!$X_LIBS$ac_delim
45176 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45177 LIBOBJS!$LIBOBJS$ac_delim
45178 CAP_LIBS!$CAP_LIBS$ac_delim
45179 FDLIBS!$FDLIBS$ac_delim
45180 DEBUG!$DEBUG$ac_delim
45181 DINCLUDE!$DINCLUDE$ac_delim
45182 DLIB!$DLIB$ac_delim
45183 DB_LIBS!$DB_LIBS$ac_delim
45184 WCFLAGS!$WCFLAGS$ac_delim
45185 WLDFLAGS!$WLDFLAGS$ac_delim
45186 WRAPLIBS!$WRAPLIBS$ac_delim
45187 OBJLIST!$OBJLIST$ac_delim
45188 TAPEDRIVE!$TAPEDRIVE$ac_delim
45189 PSCMD!$PSCMD$ac_delim
45190 WIN32!$WIN32$ac_delim
45191 MACOSX!$MACOSX$ac_delim
45192 DISTNAME!$DISTNAME$ac_delim
45193 DISTVER!$DISTVER$ac_delim
45194 LTLIBOBJS!$LTLIBOBJS$ac_delim
45195 _ACEOF
45196
45197   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
45198     break
45199   elif $ac_last_try; then
45200     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45201 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45202    { (exit 1); exit 1; }; }
45203   else
45204     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45205   fi
45206 done
45207
45208 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45209 if test -n "$ac_eof"; then
45210   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45211   ac_eof=`expr $ac_eof + 1`
45212 fi
45213
45214 cat >>$CONFIG_STATUS <<_ACEOF
45215 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45217 _ACEOF
45218 sed '
45219 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45220 s/^/s,@/; s/!/@,|#_!!_#|/
45221 :n
45222 t n
45223 s/'"$ac_delim"'$/,g/; t
45224 s/$/\\/; p
45225 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45226 ' >>$CONFIG_STATUS <conf$$subs.sed
45227 rm -f conf$$subs.sed
45228 cat >>$CONFIG_STATUS <<_ACEOF
45229 :end
45230 s/|#_!!_#|//g
45231 CEOF$ac_eof
45232 _ACEOF
45233
45234
45235 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45236 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45237 # trailing colons and then remove the whole line if VPATH becomes empty
45238 # (actually we leave an empty line to preserve line numbers).
45239 if test "x$srcdir" = x.; then
45240   ac_vpsub='/^[  ]*VPATH[        ]*=/{
45241 s/:*\$(srcdir):*/:/
45242 s/:*\${srcdir}:*/:/
45243 s/:*@srcdir@:*/:/
45244 s/^\([^=]*=[     ]*\):*/\1/
45245 s/:*$//
45246 s/^[^=]*=[       ]*$//
45247 }'
45248 fi
45249
45250 cat >>$CONFIG_STATUS <<\_ACEOF
45251 fi # test -n "$CONFIG_FILES"
45252
45253
45254 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
45255 do
45256   case $ac_tag in
45257   :[FHLC]) ac_mode=$ac_tag; continue;;
45258   esac
45259   case $ac_mode$ac_tag in
45260   :[FHL]*:*);;
45261   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45262 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45263    { (exit 1); exit 1; }; };;
45264   :[FH]-) ac_tag=-:-;;
45265   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45266   esac
45267   ac_save_IFS=$IFS
45268   IFS=:
45269   set x $ac_tag
45270   IFS=$ac_save_IFS
45271   shift
45272   ac_file=$1
45273   shift
45274
45275   case $ac_mode in
45276   :L) ac_source=$1;;
45277   :[FH])
45278     ac_file_inputs=
45279     for ac_f
45280     do
45281       case $ac_f in
45282       -) ac_f="$tmp/stdin";;
45283       *) # Look for the file first in the build tree, then in the source tree
45284          # (if the path is not absolute).  The absolute path cannot be DOS-style,
45285          # because $ac_f cannot contain `:'.
45286          test -f "$ac_f" ||
45287            case $ac_f in
45288            [\\/$]*) false;;
45289            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45290            esac ||
45291            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45292 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45293    { (exit 1); exit 1; }; };;
45294       esac
45295       ac_file_inputs="$ac_file_inputs $ac_f"
45296     done
45297
45298     # Let's still pretend it is `configure' which instantiates (i.e., don't
45299     # use $as_me), people would be surprised to read:
45300     #    /* config.h.  Generated by config.status.  */
45301     configure_input="Generated from "`IFS=:
45302           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45303     if test x"$ac_file" != x-; then
45304       configure_input="$ac_file.  $configure_input"
45305       { echo "$as_me:$LINENO: creating $ac_file" >&5
45306 echo "$as_me: creating $ac_file" >&6;}
45307     fi
45308
45309     case $ac_tag in
45310     *:-:* | *:-) cat >"$tmp/stdin";;
45311     esac
45312     ;;
45313   esac
45314
45315   ac_dir=`$as_dirname -- "$ac_file" ||
45316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45317          X"$ac_file" : 'X\(//\)[^/]' \| \
45318          X"$ac_file" : 'X\(//\)$' \| \
45319          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45320 echo X"$ac_file" |
45321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45322             s//\1/
45323             q
45324           }
45325           /^X\(\/\/\)[^/].*/{
45326             s//\1/
45327             q
45328           }
45329           /^X\(\/\/\)$/{
45330             s//\1/
45331             q
45332           }
45333           /^X\(\/\).*/{
45334             s//\1/
45335             q
45336           }
45337           s/.*/./; q'`
45338   { as_dir="$ac_dir"
45339   case $as_dir in #(
45340   -*) as_dir=./$as_dir;;
45341   esac
45342   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45343     as_dirs=
45344     while :; do
45345       case $as_dir in #(
45346       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45347       *) as_qdir=$as_dir;;
45348       esac
45349       as_dirs="'$as_qdir' $as_dirs"
45350       as_dir=`$as_dirname -- "$as_dir" ||
45351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45352          X"$as_dir" : 'X\(//\)[^/]' \| \
45353          X"$as_dir" : 'X\(//\)$' \| \
45354          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45355 echo X"$as_dir" |
45356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45357             s//\1/
45358             q
45359           }
45360           /^X\(\/\/\)[^/].*/{
45361             s//\1/
45362             q
45363           }
45364           /^X\(\/\/\)$/{
45365             s//\1/
45366             q
45367           }
45368           /^X\(\/\).*/{
45369             s//\1/
45370             q
45371           }
45372           s/.*/./; q'`
45373       test -d "$as_dir" && break
45374     done
45375     test -z "$as_dirs" || eval "mkdir $as_dirs"
45376   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45377 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45378    { (exit 1); exit 1; }; }; }
45379   ac_builddir=.
45380
45381 case "$ac_dir" in
45382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45383 *)
45384   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45385   # A ".." for each directory in $ac_dir_suffix.
45386   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45387   case $ac_top_builddir_sub in
45388   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45389   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45390   esac ;;
45391 esac
45392 ac_abs_top_builddir=$ac_pwd
45393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45394 # for backward compatibility:
45395 ac_top_builddir=$ac_top_build_prefix
45396
45397 case $srcdir in
45398   .)  # We are building in place.
45399     ac_srcdir=.
45400     ac_top_srcdir=$ac_top_builddir_sub
45401     ac_abs_top_srcdir=$ac_pwd ;;
45402   [\\/]* | ?:[\\/]* )  # Absolute name.
45403     ac_srcdir=$srcdir$ac_dir_suffix;
45404     ac_top_srcdir=$srcdir
45405     ac_abs_top_srcdir=$srcdir ;;
45406   *) # Relative name.
45407     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45408     ac_top_srcdir=$ac_top_build_prefix$srcdir
45409     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45410 esac
45411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45412
45413
45414   case $ac_mode in
45415   :F)
45416   #
45417   # CONFIG_FILE
45418   #
45419
45420   case $INSTALL in
45421   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45422   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45423   esac
45424 _ACEOF
45425
45426 cat >>$CONFIG_STATUS <<\_ACEOF
45427 # If the template does not know about datarootdir, expand it.
45428 # FIXME: This hack should be removed a few years after 2.60.
45429 ac_datarootdir_hack=; ac_datarootdir_seen=
45430
45431 case `sed -n '/datarootdir/ {
45432   p
45433   q
45434 }
45435 /@datadir@/p
45436 /@docdir@/p
45437 /@infodir@/p
45438 /@localedir@/p
45439 /@mandir@/p
45440 ' $ac_file_inputs` in
45441 *datarootdir*) ac_datarootdir_seen=yes;;
45442 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45443   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45444 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45445 _ACEOF
45446 cat >>$CONFIG_STATUS <<_ACEOF
45447   ac_datarootdir_hack='
45448   s&@datadir@&$datadir&g
45449   s&@docdir@&$docdir&g
45450   s&@infodir@&$infodir&g
45451   s&@localedir@&$localedir&g
45452   s&@mandir@&$mandir&g
45453     s&\\\${datarootdir}&$datarootdir&g' ;;
45454 esac
45455 _ACEOF
45456
45457 # Neutralize VPATH when `$srcdir' = `.'.
45458 # Shell code in configure.ac might set extrasub.
45459 # FIXME: do we really want to maintain this feature?
45460 cat >>$CONFIG_STATUS <<_ACEOF
45461   sed "$ac_vpsub
45462 $extrasub
45463 _ACEOF
45464 cat >>$CONFIG_STATUS <<\_ACEOF
45465 :t
45466 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45467 s&@configure_input@&$configure_input&;t t
45468 s&@top_builddir@&$ac_top_builddir_sub&;t t
45469 s&@srcdir@&$ac_srcdir&;t t
45470 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45471 s&@top_srcdir@&$ac_top_srcdir&;t t
45472 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45473 s&@builddir@&$ac_builddir&;t t
45474 s&@abs_builddir@&$ac_abs_builddir&;t t
45475 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45476 s&@INSTALL@&$ac_INSTALL&;t t
45477 $ac_datarootdir_hack
45478 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
45479
45480 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45481   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45482   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45483   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45484 which seems to be undefined.  Please make sure it is defined." >&5
45485 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45486 which seems to be undefined.  Please make sure it is defined." >&2;}
45487
45488   rm -f "$tmp/stdin"
45489   case $ac_file in
45490   -) cat "$tmp/out"; rm -f "$tmp/out";;
45491   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45492   esac
45493  ;;
45494   :H)
45495   #
45496   # CONFIG_HEADER
45497   #
45498 _ACEOF
45499
45500 # Transform confdefs.h into a sed script `conftest.defines', that
45501 # substitutes the proper values into config.h.in to produce config.h.
45502 rm -f conftest.defines conftest.tail
45503 # First, append a space to every undef/define line, to ease matching.
45504 echo 's/$/ /' >conftest.defines
45505 # Then, protect against being on the right side of a sed subst, or in
45506 # an unquoted here document, in config.status.  If some macros were
45507 # called several times there might be several #defines for the same
45508 # symbol, which is useless.  But do not sort them, since the last
45509 # AC_DEFINE must be honored.
45510 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45511 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45512 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45513 # PARAMS is the parameter list in the macro definition--in most cases, it's
45514 # just an empty string.
45515 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
45516 ac_dB='\\)[      (].*,\\1define\\2'
45517 ac_dC=' '
45518 ac_dD=' ,'
45519
45520 uniq confdefs.h |
45521   sed -n '
45522         t rset
45523         :rset
45524         s/^[     ]*#[    ]*define[       ][      ]*//
45525         t ok
45526         d
45527         :ok
45528         s/[\\&,]/\\&/g
45529         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45530         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45531   ' >>conftest.defines
45532
45533 # Remove the space that was appended to ease matching.
45534 # Then replace #undef with comments.  This is necessary, for
45535 # example, in the case of _POSIX_SOURCE, which is predefined and required
45536 # on some systems where configure will not decide to define it.
45537 # (The regexp can be short, since the line contains either #define or #undef.)
45538 echo 's/ $//
45539 s,^[     #]*u.*,/* & */,' >>conftest.defines
45540
45541 # Break up conftest.defines:
45542 ac_max_sed_lines=50
45543
45544 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45545 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45546 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45547 # et cetera.
45548 ac_in='$ac_file_inputs'
45549 ac_out='"$tmp/out1"'
45550 ac_nxt='"$tmp/out2"'
45551
45552 while :
45553 do
45554   # Write a here document:
45555     cat >>$CONFIG_STATUS <<_ACEOF
45556     # First, check the format of the line:
45557     cat >"\$tmp/defines.sed" <<\\CEOF
45558 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
45559 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
45560 b
45561 :def
45562 _ACEOF
45563   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
45564   echo 'CEOF
45565     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
45566   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
45567   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
45568   grep . conftest.tail >/dev/null || break
45569   rm -f conftest.defines
45570   mv conftest.tail conftest.defines
45571 done
45572 rm -f conftest.defines conftest.tail
45573
45574 echo "ac_result=$ac_in" >>$CONFIG_STATUS
45575 cat >>$CONFIG_STATUS <<\_ACEOF
45576   if test x"$ac_file" != x-; then
45577     echo "/* $configure_input  */" >"$tmp/config.h"
45578     cat "$ac_result" >>"$tmp/config.h"
45579     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
45580       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45581 echo "$as_me: $ac_file is unchanged" >&6;}
45582     else
45583       rm -f $ac_file
45584       mv "$tmp/config.h" $ac_file
45585     fi
45586   else
45587     echo "/* $configure_input  */"
45588     cat "$ac_result"
45589   fi
45590   rm -f "$tmp/out12"
45591  ;;
45592
45593   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45594 echo "$as_me: executing $ac_file commands" >&6;}
45595  ;;
45596   esac
45597
45598
45599   case $ac_file$ac_mode in
45600     "libtool":C)
45601
45602     # See if we are running on zsh, and set the options which allow our
45603     # commands through without removal of \ escapes.
45604     if test -n "${ZSH_VERSION+set}" ; then
45605       setopt NO_GLOB_SUBST
45606     fi
45607
45608     cfgfile="${ofile}T"
45609     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
45610     $RM "$cfgfile"
45611
45612     cat <<_LT_EOF >> "$cfgfile"
45613 #! $SHELL
45614
45615 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
45616 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
45617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
45618 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
45619 #
45620 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
45621 #                 2006, 2007, 2008 Free Software Foundation, Inc.
45622 #   Written by Gordon Matzigkeit, 1996
45623 #
45624 #   This file is part of GNU Libtool.
45625 #
45626 # GNU Libtool is free software; you can redistribute it and/or
45627 # modify it under the terms of the GNU General Public License as
45628 # published by the Free Software Foundation; either version 2 of
45629 # the License, or (at your option) any later version.
45630 #
45631 # As a special exception to the GNU General Public License,
45632 # if you distribute this file as part of a program or library that
45633 # is built using GNU Libtool, you may include this file under the
45634 # same distribution terms that you use for the rest of that program.
45635 #
45636 # GNU Libtool is distributed in the hope that it will be useful,
45637 # but WITHOUT ANY WARRANTY; without even the implied warranty of
45638 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
45639 # GNU General Public License for more details.
45640 #
45641 # You should have received a copy of the GNU General Public License
45642 # along with GNU Libtool; see the file COPYING.  If not, a copy
45643 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
45644 # obtained by writing to the Free Software Foundation, Inc.,
45645 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
45646
45647
45648 # The names of the tagged configurations supported by this script.
45649 available_tags="CXX "
45650
45651 # ### BEGIN LIBTOOL CONFIG
45652
45653 # Which release of libtool.m4 was used?
45654 macro_version=$macro_version
45655 macro_revision=$macro_revision
45656
45657 # Whether or not to build shared libraries.
45658 build_libtool_libs=$enable_shared
45659
45660 # Whether or not to build static libraries.
45661 build_old_libs=$enable_static
45662
45663 # What type of objects to build.
45664 pic_mode=$pic_mode
45665
45666 # Whether or not to optimize for fast installation.
45667 fast_install=$enable_fast_install
45668
45669 # The host system.
45670 host_alias=$host_alias
45671 host=$host
45672 host_os=$host_os
45673
45674 # The build system.
45675 build_alias=$build_alias
45676 build=$build
45677 build_os=$build_os
45678
45679 # A sed program that does not truncate output.
45680 SED=$lt_SED
45681
45682 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
45683 Xsed="\$SED -e 1s/^X//"
45684
45685 # A grep program that handles long lines.
45686 GREP=$lt_GREP
45687
45688 # An ERE matcher.
45689 EGREP=$lt_EGREP
45690
45691 # A literal string matcher.
45692 FGREP=$lt_FGREP
45693
45694 # A BSD- or MS-compatible name lister.
45695 NM=$lt_NM
45696
45697 # Whether we need soft or hard links.
45698 LN_S=$lt_LN_S
45699
45700 # What is the maximum length of a command?
45701 max_cmd_len=$max_cmd_len
45702
45703 # Object file suffix (normally "o").
45704 objext=$ac_objext
45705
45706 # Executable file suffix (normally "").
45707 exeext=$exeext
45708
45709 # whether the shell understands "unset".
45710 lt_unset=$lt_unset
45711
45712 # turn spaces into newlines.
45713 SP2NL=$lt_lt_SP2NL
45714
45715 # turn newlines into spaces.
45716 NL2SP=$lt_lt_NL2SP
45717
45718 # How to create reloadable object files.
45719 reload_flag=$lt_reload_flag
45720 reload_cmds=$lt_reload_cmds
45721
45722 # An object symbol dumper.
45723 OBJDUMP=$lt_OBJDUMP
45724
45725 # Method to check whether dependent libraries are shared objects.
45726 deplibs_check_method=$lt_deplibs_check_method
45727
45728 # Command to use when deplibs_check_method == "file_magic".
45729 file_magic_cmd=$lt_file_magic_cmd
45730
45731 # The archiver.
45732 AR=$lt_AR
45733 AR_FLAGS=$lt_AR_FLAGS
45734
45735 # A symbol stripping program.
45736 STRIP=$lt_STRIP
45737
45738 # Commands used to install an old-style archive.
45739 RANLIB=$lt_RANLIB
45740 old_postinstall_cmds=$lt_old_postinstall_cmds
45741 old_postuninstall_cmds=$lt_old_postuninstall_cmds
45742
45743 # A C compiler.
45744 LTCC=$lt_CC
45745
45746 # LTCC compiler flags.
45747 LTCFLAGS=$lt_CFLAGS
45748
45749 # Take the output of nm and produce a listing of raw symbols and C names.
45750 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
45751
45752 # Transform the output of nm in a proper C declaration.
45753 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
45754
45755 # Transform the output of nm in a C name address pair.
45756 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
45757
45758 # Transform the output of nm in a C name address pair when lib prefix is needed.
45759 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
45760
45761 # The name of the directory that contains temporary libtool files.
45762 objdir=$objdir
45763
45764 # Shell to use when invoking shell scripts.
45765 SHELL=$lt_SHELL
45766
45767 # An echo program that does not interpret backslashes.
45768 ECHO=$lt_ECHO
45769
45770 # Used to examine libraries when file_magic_cmd begins with "file".
45771 MAGIC_CMD=$MAGIC_CMD
45772
45773 # Must we lock files when doing compilation?
45774 need_locks=$lt_need_locks
45775
45776 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
45777 DSYMUTIL=$lt_DSYMUTIL
45778
45779 # Tool to change global to local symbols on Mac OS X.
45780 NMEDIT=$lt_NMEDIT
45781
45782 # Tool to manipulate fat objects and archives on Mac OS X.
45783 LIPO=$lt_LIPO
45784
45785 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
45786 OTOOL=$lt_OTOOL
45787
45788 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
45789 OTOOL64=$lt_OTOOL64
45790
45791 # Old archive suffix (normally "a").
45792 libext=$libext
45793
45794 # Shared library suffix (normally ".so").
45795 shrext_cmds=$lt_shrext_cmds
45796
45797 # The commands to extract the exported symbol list from a shared archive.
45798 extract_expsyms_cmds=$lt_extract_expsyms_cmds
45799
45800 # Variables whose values should be saved in libtool wrapper scripts and
45801 # restored at link time.
45802 variables_saved_for_relink=$lt_variables_saved_for_relink
45803
45804 # Do we need the "lib" prefix for modules?
45805 need_lib_prefix=$need_lib_prefix
45806
45807 # Do we need a version for libraries?
45808 need_version=$need_version
45809
45810 # Library versioning type.
45811 version_type=$version_type
45812
45813 # Shared library runtime path variable.
45814 runpath_var=$runpath_var
45815
45816 # Shared library path variable.
45817 shlibpath_var=$shlibpath_var
45818
45819 # Is shlibpath searched before the hard-coded library search path?
45820 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
45821
45822 # Format of library name prefix.
45823 libname_spec=$lt_libname_spec
45824
45825 # List of archive names.  First name is the real one, the rest are links.
45826 # The last name is the one that the linker finds with -lNAME
45827 library_names_spec=$lt_library_names_spec
45828
45829 # The coded name of the library, if different from the real name.
45830 soname_spec=$lt_soname_spec
45831
45832 # Command to use after installation of a shared archive.
45833 postinstall_cmds=$lt_postinstall_cmds
45834
45835 # Command to use after uninstallation of a shared archive.
45836 postuninstall_cmds=$lt_postuninstall_cmds
45837
45838 # Commands used to finish a libtool library installation in a directory.
45839 finish_cmds=$lt_finish_cmds
45840
45841 # As "finish_cmds", except a single script fragment to be evaled but
45842 # not shown.
45843 finish_eval=$lt_finish_eval
45844
45845 # Whether we should hardcode library paths into libraries.
45846 hardcode_into_libs=$hardcode_into_libs
45847
45848 # Compile-time system search path for libraries.
45849 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
45850
45851 # Run-time system search path for libraries.
45852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
45853
45854 # Whether dlopen is supported.
45855 dlopen_support=$enable_dlopen
45856
45857 # Whether dlopen of programs is supported.
45858 dlopen_self=$enable_dlopen_self
45859
45860 # Whether dlopen of statically linked programs is supported.
45861 dlopen_self_static=$enable_dlopen_self_static
45862
45863 # Commands to strip libraries.
45864 old_striplib=$lt_old_striplib
45865 striplib=$lt_striplib
45866
45867
45868 # The linker used to build libraries.
45869 LD=$lt_LD
45870
45871 # Commands used to build an old-style archive.
45872 old_archive_cmds=$lt_old_archive_cmds
45873
45874 # A language specific compiler.
45875 CC=$lt_compiler
45876
45877 # Is the compiler the GNU compiler?
45878 with_gcc=$GCC
45879
45880 # Compiler flag to turn off builtin functions.
45881 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
45882
45883 # How to pass a linker flag through the compiler.
45884 wl=$lt_lt_prog_compiler_wl
45885
45886 # Additional compiler flags for building library objects.
45887 pic_flag=$lt_lt_prog_compiler_pic
45888
45889 # Compiler flag to prevent dynamic linking.
45890 link_static_flag=$lt_lt_prog_compiler_static
45891
45892 # Does compiler simultaneously support -c and -o options?
45893 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45894
45895 # Whether or not to add -lc for building shared libraries.
45896 build_libtool_need_lc=$archive_cmds_need_lc
45897
45898 # Whether or not to disallow shared libs when runtime libs are static.
45899 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
45900
45901 # Compiler flag to allow reflexive dlopens.
45902 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
45903
45904 # Compiler flag to generate shared objects directly from archives.
45905 whole_archive_flag_spec=$lt_whole_archive_flag_spec
45906
45907 # Whether the compiler copes with passing no objects directly.
45908 compiler_needs_object=$lt_compiler_needs_object
45909
45910 # Create an old-style archive from a shared archive.
45911 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
45912
45913 # Create a temporary old-style archive to link instead of a shared archive.
45914 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
45915
45916 # Commands used to build a shared archive.
45917 archive_cmds=$lt_archive_cmds
45918 archive_expsym_cmds=$lt_archive_expsym_cmds
45919
45920 # Commands used to build a loadable module if different from building
45921 # a shared archive.
45922 module_cmds=$lt_module_cmds
45923 module_expsym_cmds=$lt_module_expsym_cmds
45924
45925 # Whether we are building with GNU ld or not.
45926 with_gnu_ld=$lt_with_gnu_ld
45927
45928 # Flag that allows shared libraries with undefined symbols to be built.
45929 allow_undefined_flag=$lt_allow_undefined_flag
45930
45931 # Flag that enforces no undefined symbols.
45932 no_undefined_flag=$lt_no_undefined_flag
45933
45934 # Flag to hardcode \$libdir into a binary during linking.
45935 # This must work even if \$libdir does not exist
45936 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
45937
45938 # If ld is used when linking, flag to hardcode \$libdir into a binary
45939 # during linking.  This must work even if \$libdir does not exist.
45940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
45941
45942 # Whether we need a single "-rpath" flag with a separated argument.
45943 hardcode_libdir_separator=$lt_hardcode_libdir_separator
45944
45945 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45946 # DIR into the resulting binary.
45947 hardcode_direct=$hardcode_direct
45948
45949 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45950 # DIR into the resulting binary and the resulting library dependency is
45951 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45952 # library is relocated.
45953 hardcode_direct_absolute=$hardcode_direct_absolute
45954
45955 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45956 # into the resulting binary.
45957 hardcode_minus_L=$hardcode_minus_L
45958
45959 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45960 # into the resulting binary.
45961 hardcode_shlibpath_var=$hardcode_shlibpath_var
45962
45963 # Set to "yes" if building a shared library automatically hardcodes DIR
45964 # into the library and all subsequent libraries and executables linked
45965 # against it.
45966 hardcode_automatic=$hardcode_automatic
45967
45968 # Set to yes if linker adds runtime paths of dependent libraries
45969 # to runtime path list.
45970 inherit_rpath=$inherit_rpath
45971
45972 # Whether libtool must link a program against all its dependency libraries.
45973 link_all_deplibs=$link_all_deplibs
45974
45975 # Fix the shell variable \$srcfile for the compiler.
45976 fix_srcfile_path=$lt_fix_srcfile_path
45977
45978 # Set to "yes" if exported symbols are required.
45979 always_export_symbols=$always_export_symbols
45980
45981 # The commands to list exported symbols.
45982 export_symbols_cmds=$lt_export_symbols_cmds
45983
45984 # Symbols that should not be listed in the preloaded symbols.
45985 exclude_expsyms=$lt_exclude_expsyms
45986
45987 # Symbols that must always be exported.
45988 include_expsyms=$lt_include_expsyms
45989
45990 # Commands necessary for linking programs (against libraries) with templates.
45991 prelink_cmds=$lt_prelink_cmds
45992
45993 # Specify filename containing input files.
45994 file_list_spec=$lt_file_list_spec
45995
45996 # How to hardcode a shared library path into an executable.
45997 hardcode_action=$hardcode_action
45998
45999 # The directories searched by this compiler when creating a shared library.
46000 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46001
46002 # Dependencies to place before and after the objects being linked to
46003 # create a shared library.
46004 predep_objects=$lt_predep_objects
46005 postdep_objects=$lt_postdep_objects
46006 predeps=$lt_predeps
46007 postdeps=$lt_postdeps
46008
46009 # The library search path used internally by the compiler when linking
46010 # a shared library.
46011 compiler_lib_search_path=$lt_compiler_lib_search_path
46012
46013 # ### END LIBTOOL CONFIG
46014
46015 _LT_EOF
46016
46017   case $host_os in
46018   aix3*)
46019     cat <<\_LT_EOF >> "$cfgfile"
46020 # AIX sometimes has problems with the GCC collect2 program.  For some
46021 # reason, if we set the COLLECT_NAMES environment variable, the problems
46022 # vanish in a puff of smoke.
46023 if test "X${COLLECT_NAMES+set}" != Xset; then
46024   COLLECT_NAMES=
46025   export COLLECT_NAMES
46026 fi
46027 _LT_EOF
46028     ;;
46029   esac
46030
46031
46032 ltmain="$ac_aux_dir/ltmain.sh"
46033
46034
46035   # We use sed instead of cat because bash on DJGPP gets confused if
46036   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
46037   # text mode, it properly converts lines to CR/LF.  This bash problem
46038   # is reportedly fixed, but why not run on old versions too?
46039   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46040     || (rm -f "$cfgfile"; exit 1)
46041
46042   case $xsi_shell in
46043   yes)
46044     cat << \_LT_EOF >> "$cfgfile"
46045
46046 # func_dirname file append nondir_replacement
46047 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46048 # otherwise set result to NONDIR_REPLACEMENT.
46049 func_dirname ()
46050 {
46051   case ${1} in
46052     */*) func_dirname_result="${1%/*}${2}" ;;
46053     *  ) func_dirname_result="${3}" ;;
46054   esac
46055 }
46056
46057 # func_basename file
46058 func_basename ()
46059 {
46060   func_basename_result="${1##*/}"
46061 }
46062
46063 # func_dirname_and_basename file append nondir_replacement
46064 # perform func_basename and func_dirname in a single function
46065 # call:
46066 #   dirname:  Compute the dirname of FILE.  If nonempty,
46067 #             add APPEND to the result, otherwise set result
46068 #             to NONDIR_REPLACEMENT.
46069 #             value returned in "$func_dirname_result"
46070 #   basename: Compute filename of FILE.
46071 #             value retuned in "$func_basename_result"
46072 # Implementation must be kept synchronized with func_dirname
46073 # and func_basename. For efficiency, we do not delegate to
46074 # those functions but instead duplicate the functionality here.
46075 func_dirname_and_basename ()
46076 {
46077   case ${1} in
46078     */*) func_dirname_result="${1%/*}${2}" ;;
46079     *  ) func_dirname_result="${3}" ;;
46080   esac
46081   func_basename_result="${1##*/}"
46082 }
46083
46084 # func_stripname prefix suffix name
46085 # strip PREFIX and SUFFIX off of NAME.
46086 # PREFIX and SUFFIX must not contain globbing or regex special
46087 # characters, hashes, percent signs, but SUFFIX may contain a leading
46088 # dot (in which case that matches only a dot).
46089 func_stripname ()
46090 {
46091   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46092   # positional parameters, so assign one to ordinary parameter first.
46093   func_stripname_result=${3}
46094   func_stripname_result=${func_stripname_result#"${1}"}
46095   func_stripname_result=${func_stripname_result%"${2}"}
46096 }
46097
46098 # func_opt_split
46099 func_opt_split ()
46100 {
46101   func_opt_split_opt=${1%%=*}
46102   func_opt_split_arg=${1#*=}
46103 }
46104
46105 # func_lo2o object
46106 func_lo2o ()
46107 {
46108   case ${1} in
46109     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46110     *)    func_lo2o_result=${1} ;;
46111   esac
46112 }
46113
46114 # func_xform libobj-or-source
46115 func_xform ()
46116 {
46117   func_xform_result=${1%.*}.lo
46118 }
46119
46120 # func_arith arithmetic-term...
46121 func_arith ()
46122 {
46123   func_arith_result=$(( $* ))
46124 }
46125
46126 # func_len string
46127 # STRING may not start with a hyphen.
46128 func_len ()
46129 {
46130   func_len_result=${#1}
46131 }
46132
46133 _LT_EOF
46134     ;;
46135   *) # Bourne compatible functions.
46136     cat << \_LT_EOF >> "$cfgfile"
46137
46138 # func_dirname file append nondir_replacement
46139 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46140 # otherwise set result to NONDIR_REPLACEMENT.
46141 func_dirname ()
46142 {
46143   # Extract subdirectory from the argument.
46144   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46145   if test "X$func_dirname_result" = "X${1}"; then
46146     func_dirname_result="${3}"
46147   else
46148     func_dirname_result="$func_dirname_result${2}"
46149   fi
46150 }
46151
46152 # func_basename file
46153 func_basename ()
46154 {
46155   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46156 }
46157
46158
46159 # func_stripname prefix suffix name
46160 # strip PREFIX and SUFFIX off of NAME.
46161 # PREFIX and SUFFIX must not contain globbing or regex special
46162 # characters, hashes, percent signs, but SUFFIX may contain a leading
46163 # dot (in which case that matches only a dot).
46164 # func_strip_suffix prefix name
46165 func_stripname ()
46166 {
46167   case ${2} in
46168     .*) func_stripname_result=`$ECHO "X${3}" \
46169            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46170     *)  func_stripname_result=`$ECHO "X${3}" \
46171            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46172   esac
46173 }
46174
46175 # sed scripts:
46176 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46177 my_sed_long_arg='1s/^-[^=]*=//'
46178
46179 # func_opt_split
46180 func_opt_split ()
46181 {
46182   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46183   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46184 }
46185
46186 # func_lo2o object
46187 func_lo2o ()
46188 {
46189   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46190 }
46191
46192 # func_xform libobj-or-source
46193 func_xform ()
46194 {
46195   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46196 }
46197
46198 # func_arith arithmetic-term...
46199 func_arith ()
46200 {
46201   func_arith_result=`expr "$@"`
46202 }
46203
46204 # func_len string
46205 # STRING may not start with a hyphen.
46206 func_len ()
46207 {
46208   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46209 }
46210
46211 _LT_EOF
46212 esac
46213
46214 case $lt_shell_append in
46215   yes)
46216     cat << \_LT_EOF >> "$cfgfile"
46217
46218 # func_append var value
46219 # Append VALUE to the end of shell variable VAR.
46220 func_append ()
46221 {
46222   eval "$1+=\$2"
46223 }
46224 _LT_EOF
46225     ;;
46226   *)
46227     cat << \_LT_EOF >> "$cfgfile"
46228
46229 # func_append var value
46230 # Append VALUE to the end of shell variable VAR.
46231 func_append ()
46232 {
46233   eval "$1=\$$1\$2"
46234 }
46235
46236 _LT_EOF
46237     ;;
46238   esac
46239
46240
46241   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46242     || (rm -f "$cfgfile"; exit 1)
46243
46244   mv -f "$cfgfile" "$ofile" ||
46245     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46246   chmod +x "$ofile"
46247
46248
46249     cat <<_LT_EOF >> "$ofile"
46250
46251 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46252
46253 # The linker used to build libraries.
46254 LD=$lt_LD_CXX
46255
46256 # Commands used to build an old-style archive.
46257 old_archive_cmds=$lt_old_archive_cmds_CXX
46258
46259 # A language specific compiler.
46260 CC=$lt_compiler_CXX
46261
46262 # Is the compiler the GNU compiler?
46263 with_gcc=$GCC_CXX
46264
46265 # Compiler flag to turn off builtin functions.
46266 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46267
46268 # How to pass a linker flag through the compiler.
46269 wl=$lt_lt_prog_compiler_wl_CXX
46270
46271 # Additional compiler flags for building library objects.
46272 pic_flag=$lt_lt_prog_compiler_pic_CXX
46273
46274 # Compiler flag to prevent dynamic linking.
46275 link_static_flag=$lt_lt_prog_compiler_static_CXX
46276
46277 # Does compiler simultaneously support -c and -o options?
46278 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46279
46280 # Whether or not to add -lc for building shared libraries.
46281 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46282
46283 # Whether or not to disallow shared libs when runtime libs are static.
46284 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46285
46286 # Compiler flag to allow reflexive dlopens.
46287 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46288
46289 # Compiler flag to generate shared objects directly from archives.
46290 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46291
46292 # Whether the compiler copes with passing no objects directly.
46293 compiler_needs_object=$lt_compiler_needs_object_CXX
46294
46295 # Create an old-style archive from a shared archive.
46296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46297
46298 # Create a temporary old-style archive to link instead of a shared archive.
46299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46300
46301 # Commands used to build a shared archive.
46302 archive_cmds=$lt_archive_cmds_CXX
46303 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46304
46305 # Commands used to build a loadable module if different from building
46306 # a shared archive.
46307 module_cmds=$lt_module_cmds_CXX
46308 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46309
46310 # Whether we are building with GNU ld or not.
46311 with_gnu_ld=$lt_with_gnu_ld_CXX
46312
46313 # Flag that allows shared libraries with undefined symbols to be built.
46314 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46315
46316 # Flag that enforces no undefined symbols.
46317 no_undefined_flag=$lt_no_undefined_flag_CXX
46318
46319 # Flag to hardcode \$libdir into a binary during linking.
46320 # This must work even if \$libdir does not exist
46321 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46322
46323 # If ld is used when linking, flag to hardcode \$libdir into a binary
46324 # during linking.  This must work even if \$libdir does not exist.
46325 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46326
46327 # Whether we need a single "-rpath" flag with a separated argument.
46328 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46329
46330 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46331 # DIR into the resulting binary.
46332 hardcode_direct=$hardcode_direct_CXX
46333
46334 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46335 # DIR into the resulting binary and the resulting library dependency is
46336 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46337 # library is relocated.
46338 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46339
46340 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46341 # into the resulting binary.
46342 hardcode_minus_L=$hardcode_minus_L_CXX
46343
46344 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46345 # into the resulting binary.
46346 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46347
46348 # Set to "yes" if building a shared library automatically hardcodes DIR
46349 # into the library and all subsequent libraries and executables linked
46350 # against it.
46351 hardcode_automatic=$hardcode_automatic_CXX
46352
46353 # Set to yes if linker adds runtime paths of dependent libraries
46354 # to runtime path list.
46355 inherit_rpath=$inherit_rpath_CXX
46356
46357 # Whether libtool must link a program against all its dependency libraries.
46358 link_all_deplibs=$link_all_deplibs_CXX
46359
46360 # Fix the shell variable \$srcfile for the compiler.
46361 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46362
46363 # Set to "yes" if exported symbols are required.
46364 always_export_symbols=$always_export_symbols_CXX
46365
46366 # The commands to list exported symbols.
46367 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46368
46369 # Symbols that should not be listed in the preloaded symbols.
46370 exclude_expsyms=$lt_exclude_expsyms_CXX
46371
46372 # Symbols that must always be exported.
46373 include_expsyms=$lt_include_expsyms_CXX
46374
46375 # Commands necessary for linking programs (against libraries) with templates.
46376 prelink_cmds=$lt_prelink_cmds_CXX
46377
46378 # Specify filename containing input files.
46379 file_list_spec=$lt_file_list_spec_CXX
46380
46381 # How to hardcode a shared library path into an executable.
46382 hardcode_action=$hardcode_action_CXX
46383
46384 # The directories searched by this compiler when creating a shared library.
46385 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46386
46387 # Dependencies to place before and after the objects being linked to
46388 # create a shared library.
46389 predep_objects=$lt_predep_objects_CXX
46390 postdep_objects=$lt_postdep_objects_CXX
46391 predeps=$lt_predeps_CXX
46392 postdeps=$lt_postdeps_CXX
46393
46394 # The library search path used internally by the compiler when linking
46395 # a shared library.
46396 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46397
46398 # ### END LIBTOOL TAG CONFIG: CXX
46399 _LT_EOF
46400
46401  ;;
46402     "default-1":C)
46403     for ac_file in $CONFIG_FILES; do
46404       # Support "outfile[:infile[:infile...]]"
46405       case "$ac_file" in
46406         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46407       esac
46408       # PO directories have a Makefile.in generated from Makefile.in.in.
46409       case "$ac_file" in */Makefile.in)
46410         # Adjust a relative srcdir.
46411         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46412         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46413         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46414         # In autoconf-2.13 it is called $ac_given_srcdir.
46415         # In autoconf-2.50 it is called $srcdir.
46416         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46417         case "$ac_given_srcdir" in
46418           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46419           /*) top_srcdir="$ac_given_srcdir" ;;
46420           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
46421         esac
46422         # Treat a directory as a PO directory if and only if it has a
46423         # POTFILES.in file. This allows packages to have multiple PO
46424         # directories under different names or in different locations.
46425         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46426           rm -f "$ac_dir/POTFILES"
46427           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46428           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46429           POMAKEFILEDEPS="POTFILES.in"
46430           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46431           # on $ac_dir but don't depend on user-specified configuration
46432           # parameters.
46433           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46434             # The LINGUAS file contains the set of available languages.
46435             if test -n "$OBSOLETE_ALL_LINGUAS"; then
46436               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46437             fi
46438             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46439             # Hide the ALL_LINGUAS assigment from automake.
46440             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46441             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46442           else
46443             # The set of available languages was given in configure.in.
46444             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46445           fi
46446           # Compute POFILES
46447           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46448           # Compute UPDATEPOFILES
46449           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46450           # Compute DUMMYPOFILES
46451           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46452           # Compute GMOFILES
46453           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46454           case "$ac_given_srcdir" in
46455             .) srcdirpre= ;;
46456             *) srcdirpre='$(srcdir)/' ;;
46457           esac
46458           POFILES=
46459           UPDATEPOFILES=
46460           DUMMYPOFILES=
46461           GMOFILES=
46462           for lang in $ALL_LINGUAS; do
46463             POFILES="$POFILES $srcdirpre$lang.po"
46464             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46465             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46466             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46467           done
46468           # CATALOGS depends on both $ac_dir and the user's LINGUAS
46469           # environment variable.
46470           INST_LINGUAS=
46471           if test -n "$ALL_LINGUAS"; then
46472             for presentlang in $ALL_LINGUAS; do
46473               useit=no
46474               if test "%UNSET%" != "$LINGUAS"; then
46475                 desiredlanguages="$LINGUAS"
46476               else
46477                 desiredlanguages="$ALL_LINGUAS"
46478               fi
46479               for desiredlang in $desiredlanguages; do
46480                 # Use the presentlang catalog if desiredlang is
46481                 #   a. equal to presentlang, or
46482                 #   b. a variant of presentlang (because in this case,
46483                 #      presentlang can be used as a fallback for messages
46484                 #      which are not translated in the desiredlang catalog).
46485                 case "$desiredlang" in
46486                   "$presentlang"*) useit=yes;;
46487                 esac
46488               done
46489               if test $useit = yes; then
46490                 INST_LINGUAS="$INST_LINGUAS $presentlang"
46491               fi
46492             done
46493           fi
46494           CATALOGS=
46495           if test -n "$INST_LINGUAS"; then
46496             for lang in $INST_LINGUAS; do
46497               CATALOGS="$CATALOGS $lang.gmo"
46498             done
46499           fi
46500           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46501           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"
46502           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46503             if test -f "$f"; then
46504               case "$f" in
46505                 *.orig | *.bak | *~) ;;
46506                 *) cat "$f" >> "$ac_dir/Makefile" ;;
46507               esac
46508             fi
46509           done
46510         fi
46511         ;;
46512       esac
46513     done ;;
46514     "default":C)
46515  ;;
46516
46517   esac
46518 done # for ac_tag
46519
46520
46521 { (exit 0); exit 0; }
46522 _ACEOF
46523 chmod +x $CONFIG_STATUS
46524 ac_clean_files=$ac_clean_files_save
46525
46526
46527 # configure is writing to config.log, and then calls config.status.
46528 # config.status does its own redirection, appending to config.log.
46529 # Unfortunately, on DOS this fails, as config.log is still kept open
46530 # by configure, so config.status won't be able to write to it; its
46531 # output is simply discarded.  So we exec the FD to /dev/null,
46532 # effectively closing config.log, so it can be properly (re)opened and
46533 # appended to by config.status.  When coming back to configure, we
46534 # need to make the FD available again.
46535 if test "$no_create" != yes; then
46536   ac_cs_success=:
46537   ac_config_status_args=
46538   test "$silent" = yes &&
46539     ac_config_status_args="$ac_config_status_args --quiet"
46540   exec 5>/dev/null
46541   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46542   exec 5>>config.log
46543   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46544   # would make configure fail if this is the last instruction.
46545   $ac_cs_success || { (exit 1); exit 1; }
46546 fi
46547
46548
46549 if test "${support_bat}" = "yes" ; then
46550    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
46551       { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
46552 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
46553    { (exit 1); exit 1; }; }
46554    fi
46555
46556    QMAKEBIN="qmake"
46557
46558    if test "x$QMAKEQT4" != "xnone"; then
46559        QMAKEBIN=qmake-qt4
46560    fi
46561
46562    cd src/qt-console
46563    echo "Creating bat Makefile"
46564    touch bat
46565    chmod 755 bat
46566    $QMAKEBIN
46567    ${MAKE:-make} clean
46568    cd ${BUILD_DIR}
46569 fi
46570
46571 if test X"$GCC" = "Xyes" ; then
46572   echo "Doing make of dependencies"
46573   ${MAKE:-make} depend
46574 fi
46575
46576 cd src/qt-console
46577 chmod 755 install_conf_file build-depkgs-qt-console
46578 cd ${BUILD_DIR}
46579
46580 cd scripts
46581 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
46582 chmod 755 dvd-handler dvd-simulator
46583 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
46584 cd ..
46585
46586 c=updatedb
46587 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
46588 chmod 755 $c/update_postgresql_tables_10_to_11
46589
46590 c=src/cats
46591
46592 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
46593 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
46594
46595 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
46596 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
46597
46598 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
46599 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
46600
46601 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
46602 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
46603
46604 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
46605 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
46606
46607 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
46608 chmod 755 $c/sqlite
46609 chmod 755 $c/mysql
46610
46611 chmod 755 src/win32/build-depkgs-mingw32
46612
46613 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
46614    largefile_support="yes"
46615 fi
46616
46617 if test X"$GCC" = "Xyes" ; then
46618                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46619    if test "x${CCVERSION}" = "x" ; then
46620       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46621    fi
46622    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46623    if test x"${CXXVERSION}" = x ; then
46624       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46625    fi
46626 fi
46627
46628 # clean up any old junk
46629 echo " "
46630 echo "Cleaning up"
46631 echo " "
46632 ${MAKE:-make} clean
46633
46634 if test "x${db_type}" = "xInternal" ; then
46635    echo " "
46636    echo " "
46637    echo "You have not specified either --enable-client-only or one of the"
46638    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
46639    echo "  This is not permitted. Please reconfigure."
46640    echo " "
46641    echo "Aborting the configuration ..."
46642    echo " "
46643    echo " "
46644    exit 1
46645 fi
46646
46647 echo "
46648 Configuration on `date`:
46649
46650    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
46651    Bacula version:          ${BACULA} ${VERSION} (${DATE})
46652    Source code location:    ${srcdir}
46653    Install binaries:        ${sbindir}
46654    Install libraries:       ${libdir}
46655    Install config files:    ${sysconfdir}
46656    Scripts directory:       ${scriptdir}
46657    Archive directory:       ${archivedir}
46658    Working directory:       ${working_dir}
46659    PID directory:           ${piddir}
46660    Subsys directory:        ${subsysdir}
46661    Man directory:           ${mandir}
46662    Data directory:          ${datarootdir}
46663    Plugin directory:        ${plugindir}
46664    C Compiler:              ${CC} ${CCVERSION}
46665    C++ Compiler:            ${CXX} ${CXXVERSION}
46666    Compiler flags:          ${WCFLAGS} ${CFLAGS}
46667    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
46668    Libraries:               ${LIBS}
46669    Statically Linked Tools: ${support_static_tools}
46670    Statically Linked FD:    ${support_static_fd}
46671    Statically Linked SD:    ${support_static_sd}
46672    Statically Linked DIR:   ${support_static_dir}
46673    Statically Linked CONS:  ${support_static_cons}
46674    Database type:           ${db_type}
46675    Database port:           ${db_port}
46676    Database lib:            ${DB_LIBS}
46677    Database name:           ${db_name}
46678    Database user:           ${db_user}
46679
46680    Job Output Email:        ${job_email}
46681    Traceback Email:         ${dump_email}
46682    SMTP Host Address:       ${smtp_host}
46683
46684    Director Port:           ${dir_port}
46685    File daemon Port:        ${fd_port}
46686    Storage daemon Port:     ${sd_port}
46687
46688    Director User:           ${dir_user}
46689    Director Group:          ${dir_group}
46690    Storage Daemon User:     ${sd_user}
46691    Storage DaemonGroup:     ${sd_group}
46692    File Daemon User:        ${fd_user}
46693    File Daemon Group:       ${fd_group}
46694
46695    SQL binaries Directory   ${SQL_BINDIR}
46696
46697    Large file support:      $largefile_support
46698    Bacula conio support:    ${got_conio} ${CONS_LIBS}
46699    readline support:        ${got_readline} ${PRTREADLINE_SRC}
46700    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
46701    TLS support:             ${support_tls}
46702    Encryption support:      ${support_crypto}
46703    ZLIB support:            ${have_zlib}
46704    enable-smartalloc:       ${support_smartalloc}
46705    enable-lockmgr:          ${support_lockmgr}
46706    bat support:             ${support_bat} ${QWT_LDFLAGS}
46707    enable-gnome:            ${support_gnome} ${gnome_version}
46708    enable-bwx-console:      ${support_wx_console} ${wx_version}
46709    enable-tray-monitor:     ${support_tray_monitor}
46710    client-only:             ${build_client_only}
46711    build-dird:              ${build_dird}
46712    build-stored:            ${build_stored}
46713    ACL support:             ${have_acl}
46714    XATTR support:           ${have_xattr}
46715    Python support:          ${support_python} ${PYTHON_LIBS}
46716    Batch insert enabled:    ${support_batch_insert}
46717
46718   " > config.out
46719
46720 cat config.out