]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
update date
[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 LIBBAC_LT_CURRENT
815 LIBBAC_LT_REVISION
816 LIBBAC_LT_AGE
817 LIBBACCFG_LT_CURRENT
818 LIBBACCFG_LT_REVISION
819 LIBBACCFG_LT_AGE
820 LIBBACPY_LT_CURRENT
821 LIBBACPY_LT_REVISION
822 LIBBACPY_LT_AGE
823 LIBBACSQL_LT_CURRENT
824 LIBBACSQL_LT_REVISION
825 LIBBACSQL_LT_AGE
826 LIBBACFIND_LT_CURRENT
827 LIBBACFIND_LT_REVISION
828 LIBBACFIND_LT_AGE
829 CC
830 CFLAGS
831 LDFLAGS
832 CPPFLAGS
833 ac_ct_CC
834 EXEEXT
835 OBJEXT
836 CXX
837 CXXFLAGS
838 ac_ct_CXX
839 CPP
840 GREP
841 EGREP
842 INSTALL_PROGRAM
843 INSTALL_SCRIPT
844 INSTALL_DATA
845 MV
846 REMOVE
847 CP
848 SED
849 ECHO
850 CMP
851 TBL
852 AR
853 OPENSSL
854 MTX
855 DD
856 MKISOFS
857 PYTHON
858 GROWISOFS
859 DVDRWMEDIAINFO
860 DVDRWFORMAT
861 PKGCONFIG
862 QMAKE
863 GMAKE
864 WXCONFIG
865 WXFLAGS
866 CDRECORD
867 PIDOF
868 AWK
869 ARFLAGS
870 MAKE_SHELL
871 LOCAL_LIBS
872 LOCAL_CFLAGS
873 LOCAL_LDFLAGS
874 LOCAL_DEFS
875 LIBTOOL
876 build
877 build_cpu
878 build_vendor
879 build_os
880 host
881 host_cpu
882 host_vendor
883 host_os
884 FGREP
885 LD
886 DUMPBIN
887 ac_ct_DUMPBIN
888 NM
889 LN_S
890 OBJDUMP
891 STRIP
892 RANLIB
893 lt_ECHO
894 DSYMUTIL
895 NMEDIT
896 LIPO
897 OTOOL
898 OTOOL64
899 CXXCPP
900 DEFAULT_OBJECT_TYPE
901 DEFAULT_ARCHIVE_TYPE
902 DEFAULT_SHARED_OBJECT_TYPE
903 LIBTOOL_INSTALL_TARGET
904 LIBTOOL_UNINSTALL_TARGET
905 LIBTOOL_CLEAN_TARGET
906 QMAKE_LIBTOOL
907 FD_PLUGIN_DIR
908 INCLUDE_INSTALL_TARGET
909 INCLUDE_UNINSTALL_TARGET
910 HAVE_SUN_OS_TRUE
911 HAVE_SUN_OS_FALSE
912 HAVE_OSF1_OS_TRUE
913 HAVE_OSF1_OS_FALSE
914 HAVE_AIX_OS_TRUE
915 HAVE_AIX_OS_FALSE
916 HAVE_HPUX_OS_TRUE
917 HAVE_HPUX_OS_FALSE
918 HAVE_LINUX_OS_TRUE
919 HAVE_LINUX_OS_FALSE
920 HAVE_FREEBSD_OS_TRUE
921 HAVE_FREEBSD_OS_FALSE
922 HAVE_NETBSD_OS_TRUE
923 HAVE_NETBSD_OS_FALSE
924 HAVE_OPENBSD_OS_TRUE
925 HAVE_OPENBSD_OS_FALSE
926 HAVE_BSDI_OS_TRUE
927 HAVE_BSDI_OS_FALSE
928 HAVE_SGI_OS_TRUE
929 HAVE_SGI_OS_FALSE
930 HAVE_IRIX_OS_TRUE
931 HAVE_IRIX_OS_FALSE
932 HAVE_DARWIN_OS_TRUE
933 HAVE_DARWIN_OS_FALSE
934 SET_MAKE
935 MKINSTALLDIRS
936 USE_NLS
937 MSGFMT
938 GMSGFMT
939 XGETTEXT
940 MSGMERGE
941 INTL_MACOSX_LIBS
942 LIBICONV
943 LTLIBICONV
944 INTLLIBS
945 LIBINTL
946 LTLIBINTL
947 POSUB
948 GLIBC2
949 ALLOCA
950 GLIBC21
951 HAVE_POSIX_PRINTF
952 HAVE_ASPRINTF
953 HAVE_SNPRINTF
954 HAVE_WPRINTF
955 INTLBISON
956 BUILD_INCLUDED_LIBINTL
957 USE_INCLUDED_LIBINTL
958 CATOBJEXT
959 DATADIRNAME
960 INSTOBJEXT
961 GENCAT
962 INTLOBJS
963 INTL_LIBTOOL_SUFFIX_PREFIX
964 BAT_DIR
965 QWT_INC
966 QWT_LDFLAGS
967 QWT_LIB
968 QWT
969 WXCONS_CPPFLAGS
970 WXCONS_LDFLAGS
971 WX_DIR
972 TRAY_MONITOR_CPPFLAGS
973 TRAY_MONITOR_LDFLAGS
974 TRAY_MONITOR_DIR
975 TTOOL_LDFLAGS
976 STATIC_FD
977 STATIC_SD
978 STATIC_DIR
979 STATIC_CONS
980 STATIC_GNOME_CONS
981 STATIC_WX_CONS
982 ALL_DIRS
983 DIRD_DIR
984 DIR_TOOLS
985 STORED_DIR
986 CONS_INC
987 CONS_OBJ
988 CONS_SRC
989 CONS_LIBS
990 CONS_LDFLAGS
991 READLINE_SRC
992 PYTHON_LIBS
993 PYTHON_INCDIR
994 OPENSSL_LIBS
995 OPENSSL_INC
996 working_dir
997 archivedir
998 basename
999 hostname
1000 scriptdir
1001 bsrdir
1002 logdir
1003 plugindir
1004 dump_email
1005 job_email
1006 smtp_host
1007 piddir
1008 subsysdir
1009 baseport
1010 dir_port
1011 fd_port
1012 sd_port
1013 dir_password
1014 fd_password
1015 sd_password
1016 mon_dir_password
1017 mon_fd_password
1018 mon_sd_password
1019 db_name
1020 db_user
1021 db_password
1022 db_port
1023 dir_user
1024 dir_group
1025 sd_user
1026 sd_group
1027 fd_user
1028 fd_group
1029 SBINPERM
1030 SQL_LFLAGS
1031 SQL_INCLUDE
1032 SQL_BINDIR
1033 DBI_DBD_DRIVERDIR
1034 uncomment_dbi
1035 DB_PROG
1036 DB_PROG_LIB
1037 cats
1038 DB_TYPE
1039 GETCONF
1040 XMKMF
1041 X_CFLAGS
1042 X_PRE_LIBS
1043 X_LIBS
1044 X_EXTRA_LIBS
1045 LIBOBJS
1046 CAP_LIBS
1047 FDLIBS
1048 DEBUG
1049 DINCLUDE
1050 DLIB
1051 DB_LIBS
1052 WCFLAGS
1053 WLDFLAGS
1054 WRAPLIBS
1055 OBJLIST
1056 TAPEDRIVE
1057 PSCMD
1058 WIN32
1059 MACOSX
1060 DISTNAME
1061 DISTVER
1062 LTLIBOBJS'
1063 ac_subst_files='MCOMMON'
1064       ac_precious_vars='build_alias
1065 host_alias
1066 target_alias
1067 CC
1068 CFLAGS
1069 LDFLAGS
1070 LIBS
1071 CPPFLAGS
1072 CXX
1073 CXXFLAGS
1074 CCC
1075 CPP
1076 WXCONFIG
1077 WXFLAGS
1078 CXXCPP
1079 XMKMF'
1080
1081
1082 # Initialize some variables set by options.
1083 ac_init_help=
1084 ac_init_version=false
1085 # The variables have the same names as the options, with
1086 # dashes changed to underlines.
1087 cache_file=/dev/null
1088 exec_prefix=NONE
1089 no_create=
1090 no_recursion=
1091 prefix=NONE
1092 program_prefix=NONE
1093 program_suffix=NONE
1094 program_transform_name=s,x,x,
1095 silent=
1096 site=
1097 srcdir=
1098 verbose=
1099 x_includes=NONE
1100 x_libraries=NONE
1101
1102 # Installation directory options.
1103 # These are left unexpanded so users can "make install exec_prefix=/foo"
1104 # and all the variables that are supposed to be based on exec_prefix
1105 # by default will actually change.
1106 # Use braces instead of parens because sh, perl, etc. also accept them.
1107 # (The list follows the same order as the GNU Coding Standards.)
1108 bindir='${exec_prefix}/bin'
1109 sbindir='${exec_prefix}/sbin'
1110 libexecdir='${exec_prefix}/libexec'
1111 datarootdir='${prefix}/share'
1112 datadir='${datarootdir}'
1113 sysconfdir='${prefix}/etc'
1114 sharedstatedir='${prefix}/com'
1115 localstatedir='${prefix}/var'
1116 includedir='${prefix}/include'
1117 oldincludedir='/usr/include'
1118 docdir='${datarootdir}/doc/${PACKAGE}'
1119 infodir='${datarootdir}/info'
1120 htmldir='${docdir}'
1121 dvidir='${docdir}'
1122 pdfdir='${docdir}'
1123 psdir='${docdir}'
1124 libdir='${exec_prefix}/lib'
1125 localedir='${datarootdir}/locale'
1126 mandir='${datarootdir}/man'
1127
1128 ac_prev=
1129 ac_dashdash=
1130 for ac_option
1131 do
1132   # If the previous option needs an argument, assign it.
1133   if test -n "$ac_prev"; then
1134     eval $ac_prev=\$ac_option
1135     ac_prev=
1136     continue
1137   fi
1138
1139   case $ac_option in
1140   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1141   *)    ac_optarg=yes ;;
1142   esac
1143
1144   # Accept the important Cygnus configure options, so we can diagnose typos.
1145
1146   case $ac_dashdash$ac_option in
1147   --)
1148     ac_dashdash=yes ;;
1149
1150   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1151     ac_prev=bindir ;;
1152   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1153     bindir=$ac_optarg ;;
1154
1155   -build | --build | --buil | --bui | --bu)
1156     ac_prev=build_alias ;;
1157   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1158     build_alias=$ac_optarg ;;
1159
1160   -cache-file | --cache-file | --cache-fil | --cache-fi \
1161   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1162     ac_prev=cache_file ;;
1163   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1164   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1165     cache_file=$ac_optarg ;;
1166
1167   --config-cache | -C)
1168     cache_file=config.cache ;;
1169
1170   -datadir | --datadir | --datadi | --datad)
1171     ac_prev=datadir ;;
1172   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1173     datadir=$ac_optarg ;;
1174
1175   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1176   | --dataroo | --dataro | --datar)
1177     ac_prev=datarootdir ;;
1178   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1179   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1180     datarootdir=$ac_optarg ;;
1181
1182   -disable-* | --disable-*)
1183     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1187    { (exit 1); exit 1; }; }
1188     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1189     eval enable_$ac_feature=no ;;
1190
1191   -docdir | --docdir | --docdi | --doc | --do)
1192     ac_prev=docdir ;;
1193   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1194     docdir=$ac_optarg ;;
1195
1196   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1197     ac_prev=dvidir ;;
1198   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1199     dvidir=$ac_optarg ;;
1200
1201   -enable-* | --enable-*)
1202     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1203     # Reject names that are not valid shell variable names.
1204     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1206    { (exit 1); exit 1; }; }
1207     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1208     eval enable_$ac_feature=\$ac_optarg ;;
1209
1210   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1211   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1212   | --exec | --exe | --ex)
1213     ac_prev=exec_prefix ;;
1214   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1215   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1216   | --exec=* | --exe=* | --ex=*)
1217     exec_prefix=$ac_optarg ;;
1218
1219   -gas | --gas | --ga | --g)
1220     # Obsolete; use --with-gas.
1221     with_gas=yes ;;
1222
1223   -help | --help | --hel | --he | -h)
1224     ac_init_help=long ;;
1225   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1226     ac_init_help=recursive ;;
1227   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1228     ac_init_help=short ;;
1229
1230   -host | --host | --hos | --ho)
1231     ac_prev=host_alias ;;
1232   -host=* | --host=* | --hos=* | --ho=*)
1233     host_alias=$ac_optarg ;;
1234
1235   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1236     ac_prev=htmldir ;;
1237   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1238   | --ht=*)
1239     htmldir=$ac_optarg ;;
1240
1241   -includedir | --includedir | --includedi | --included | --include \
1242   | --includ | --inclu | --incl | --inc)
1243     ac_prev=includedir ;;
1244   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1245   | --includ=* | --inclu=* | --incl=* | --inc=*)
1246     includedir=$ac_optarg ;;
1247
1248   -infodir | --infodir | --infodi | --infod | --info | --inf)
1249     ac_prev=infodir ;;
1250   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1251     infodir=$ac_optarg ;;
1252
1253   -libdir | --libdir | --libdi | --libd)
1254     ac_prev=libdir ;;
1255   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1256     libdir=$ac_optarg ;;
1257
1258   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1259   | --libexe | --libex | --libe)
1260     ac_prev=libexecdir ;;
1261   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1262   | --libexe=* | --libex=* | --libe=*)
1263     libexecdir=$ac_optarg ;;
1264
1265   -localedir | --localedir | --localedi | --localed | --locale)
1266     ac_prev=localedir ;;
1267   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1268     localedir=$ac_optarg ;;
1269
1270   -localstatedir | --localstatedir | --localstatedi | --localstated \
1271   | --localstate | --localstat | --localsta | --localst | --locals)
1272     ac_prev=localstatedir ;;
1273   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1274   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1275     localstatedir=$ac_optarg ;;
1276
1277   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1278     ac_prev=mandir ;;
1279   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1280     mandir=$ac_optarg ;;
1281
1282   -nfp | --nfp | --nf)
1283     # Obsolete; use --without-fp.
1284     with_fp=no ;;
1285
1286   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1287   | --no-cr | --no-c | -n)
1288     no_create=yes ;;
1289
1290   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1291   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1292     no_recursion=yes ;;
1293
1294   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1295   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1296   | --oldin | --oldi | --old | --ol | --o)
1297     ac_prev=oldincludedir ;;
1298   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1299   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1300   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1301     oldincludedir=$ac_optarg ;;
1302
1303   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1304     ac_prev=prefix ;;
1305   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1306     prefix=$ac_optarg ;;
1307
1308   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1309   | --program-pre | --program-pr | --program-p)
1310     ac_prev=program_prefix ;;
1311   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1312   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1313     program_prefix=$ac_optarg ;;
1314
1315   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1316   | --program-suf | --program-su | --program-s)
1317     ac_prev=program_suffix ;;
1318   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1319   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1320     program_suffix=$ac_optarg ;;
1321
1322   -program-transform-name | --program-transform-name \
1323   | --program-transform-nam | --program-transform-na \
1324   | --program-transform-n | --program-transform- \
1325   | --program-transform | --program-transfor \
1326   | --program-transfo | --program-transf \
1327   | --program-trans | --program-tran \
1328   | --progr-tra | --program-tr | --program-t)
1329     ac_prev=program_transform_name ;;
1330   -program-transform-name=* | --program-transform-name=* \
1331   | --program-transform-nam=* | --program-transform-na=* \
1332   | --program-transform-n=* | --program-transform-=* \
1333   | --program-transform=* | --program-transfor=* \
1334   | --program-transfo=* | --program-transf=* \
1335   | --program-trans=* | --program-tran=* \
1336   | --progr-tra=* | --program-tr=* | --program-t=*)
1337     program_transform_name=$ac_optarg ;;
1338
1339   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1340     ac_prev=pdfdir ;;
1341   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1342     pdfdir=$ac_optarg ;;
1343
1344   -psdir | --psdir | --psdi | --psd | --ps)
1345     ac_prev=psdir ;;
1346   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1347     psdir=$ac_optarg ;;
1348
1349   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1350   | -silent | --silent | --silen | --sile | --sil)
1351     silent=yes ;;
1352
1353   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1354     ac_prev=sbindir ;;
1355   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1356   | --sbi=* | --sb=*)
1357     sbindir=$ac_optarg ;;
1358
1359   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1360   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1361   | --sharedst | --shareds | --shared | --share | --shar \
1362   | --sha | --sh)
1363     ac_prev=sharedstatedir ;;
1364   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1365   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1366   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1367   | --sha=* | --sh=*)
1368     sharedstatedir=$ac_optarg ;;
1369
1370   -site | --site | --sit)
1371     ac_prev=site ;;
1372   -site=* | --site=* | --sit=*)
1373     site=$ac_optarg ;;
1374
1375   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1376     ac_prev=srcdir ;;
1377   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1378     srcdir=$ac_optarg ;;
1379
1380   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1381   | --syscon | --sysco | --sysc | --sys | --sy)
1382     ac_prev=sysconfdir ;;
1383   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1384   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1385     sysconfdir=$ac_optarg ;;
1386
1387   -target | --target | --targe | --targ | --tar | --ta | --t)
1388     ac_prev=target_alias ;;
1389   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1390     target_alias=$ac_optarg ;;
1391
1392   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1393     verbose=yes ;;
1394
1395   -version | --version | --versio | --versi | --vers | -V)
1396     ac_init_version=: ;;
1397
1398   -with-* | --with-*)
1399     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1400     # Reject names that are not valid shell variable names.
1401     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1402       { echo "$as_me: error: invalid package name: $ac_package" >&2
1403    { (exit 1); exit 1; }; }
1404     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1405     eval with_$ac_package=\$ac_optarg ;;
1406
1407   -without-* | --without-*)
1408     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1409     # Reject names that are not valid shell variable names.
1410     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1411       { echo "$as_me: error: invalid package name: $ac_package" >&2
1412    { (exit 1); exit 1; }; }
1413     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1414     eval with_$ac_package=no ;;
1415
1416   --x)
1417     # Obsolete; use --with-x.
1418     with_x=yes ;;
1419
1420   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1421   | --x-incl | --x-inc | --x-in | --x-i)
1422     ac_prev=x_includes ;;
1423   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1424   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1425     x_includes=$ac_optarg ;;
1426
1427   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1428   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1429     ac_prev=x_libraries ;;
1430   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1431   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1432     x_libraries=$ac_optarg ;;
1433
1434   -*) { echo "$as_me: error: unrecognized option: $ac_option
1435 Try \`$0 --help' for more information." >&2
1436    { (exit 1); exit 1; }; }
1437     ;;
1438
1439   *=*)
1440     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1441     # Reject names that are not valid shell variable names.
1442     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1443       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1444    { (exit 1); exit 1; }; }
1445     eval $ac_envvar=\$ac_optarg
1446     export $ac_envvar ;;
1447
1448   *)
1449     # FIXME: should be removed in autoconf 3.0.
1450     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1451     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1452       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1453     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1454     ;;
1455
1456   esac
1457 done
1458
1459 if test -n "$ac_prev"; then
1460   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1461   { echo "$as_me: error: missing argument to $ac_option" >&2
1462    { (exit 1); exit 1; }; }
1463 fi
1464
1465 # Be sure to have absolute directory names.
1466 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1467                 datadir sysconfdir sharedstatedir localstatedir includedir \
1468                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1469                 libdir localedir mandir
1470 do
1471   eval ac_val=\$$ac_var
1472   case $ac_val in
1473     [\\/$]* | ?:[\\/]* )  continue;;
1474     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1475   esac
1476   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1477    { (exit 1); exit 1; }; }
1478 done
1479
1480 # There might be people who depend on the old broken behavior: `$host'
1481 # used to hold the argument of --host etc.
1482 # FIXME: To remove some day.
1483 build=$build_alias
1484 host=$host_alias
1485 target=$target_alias
1486
1487 # FIXME: To remove some day.
1488 if test "x$host_alias" != x; then
1489   if test "x$build_alias" = x; then
1490     cross_compiling=maybe
1491     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1492     If a cross compiler is detected then cross compile mode will be used." >&2
1493   elif test "x$build_alias" != "x$host_alias"; then
1494     cross_compiling=yes
1495   fi
1496 fi
1497
1498 ac_tool_prefix=
1499 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1500
1501 test "$silent" = yes && exec 6>/dev/null
1502
1503
1504 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1505 ac_ls_di=`ls -di .` &&
1506 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1507   { echo "$as_me: error: Working directory cannot be determined" >&2
1508    { (exit 1); exit 1; }; }
1509 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1510   { echo "$as_me: error: pwd does not report name of working directory" >&2
1511    { (exit 1); exit 1; }; }
1512
1513
1514 # Find the source files, if location was not specified.
1515 if test -z "$srcdir"; then
1516   ac_srcdir_defaulted=yes
1517   # Try the directory containing this script, then the parent directory.
1518   ac_confdir=`$as_dirname -- "$0" ||
1519 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1520          X"$0" : 'X\(//\)[^/]' \| \
1521          X"$0" : 'X\(//\)$' \| \
1522          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1523 echo X"$0" |
1524     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1525             s//\1/
1526             q
1527           }
1528           /^X\(\/\/\)[^/].*/{
1529             s//\1/
1530             q
1531           }
1532           /^X\(\/\/\)$/{
1533             s//\1/
1534             q
1535           }
1536           /^X\(\/\).*/{
1537             s//\1/
1538             q
1539           }
1540           s/.*/./; q'`
1541   srcdir=$ac_confdir
1542   if test ! -r "$srcdir/$ac_unique_file"; then
1543     srcdir=..
1544   fi
1545 else
1546   ac_srcdir_defaulted=no
1547 fi
1548 if test ! -r "$srcdir/$ac_unique_file"; then
1549   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1550   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1551    { (exit 1); exit 1; }; }
1552 fi
1553 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1554 ac_abs_confdir=`(
1555         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1556    { (exit 1); exit 1; }; }
1557         pwd)`
1558 # When building in place, set srcdir=.
1559 if test "$ac_abs_confdir" = "$ac_pwd"; then
1560   srcdir=.
1561 fi
1562 # Remove unnecessary trailing slashes from srcdir.
1563 # Double slashes in file names in object file debugging info
1564 # mess up M-x gdb in Emacs.
1565 case $srcdir in
1566 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1567 esac
1568 for ac_var in $ac_precious_vars; do
1569   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1570   eval ac_env_${ac_var}_value=\$${ac_var}
1571   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1572   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1573 done
1574
1575 #
1576 # Report the --help message.
1577 #
1578 if test "$ac_init_help" = "long"; then
1579   # Omit some internal or obsolete options to make the list less imposing.
1580   # This message is too long to be a string in the A/UX 3.1 sh.
1581   cat <<_ACEOF
1582 \`configure' configures this package to adapt to many kinds of systems.
1583
1584 Usage: $0 [OPTION]... [VAR=VALUE]...
1585
1586 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1587 VAR=VALUE.  See below for descriptions of some of the useful variables.
1588
1589 Defaults for the options are specified in brackets.
1590
1591 Configuration:
1592   -h, --help              display this help and exit
1593       --help=short        display options specific to this package
1594       --help=recursive    display the short help of all the included packages
1595   -V, --version           display version information and exit
1596   -q, --quiet, --silent   do not print \`checking...' messages
1597       --cache-file=FILE   cache test results in FILE [disabled]
1598   -C, --config-cache      alias for \`--cache-file=config.cache'
1599   -n, --no-create         do not create output files
1600       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1601
1602 Installation directories:
1603   --prefix=PREFIX         install architecture-independent files in PREFIX
1604                           [$ac_default_prefix]
1605   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1606                           [PREFIX]
1607
1608 By default, \`make install' will install all the files in
1609 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1610 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1611 for instance \`--prefix=\$HOME'.
1612
1613 For better control, use the options below.
1614
1615 Fine tuning of the installation directories:
1616   --bindir=DIR           user executables [EPREFIX/bin]
1617   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1618   --libexecdir=DIR       program executables [EPREFIX/libexec]
1619   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1620   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1621   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1622   --libdir=DIR           object code libraries [EPREFIX/lib]
1623   --includedir=DIR       C header files [PREFIX/include]
1624   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1625   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1626   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1627   --infodir=DIR          info documentation [DATAROOTDIR/info]
1628   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1629   --mandir=DIR           man documentation [DATAROOTDIR/man]
1630   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1631   --htmldir=DIR          html documentation [DOCDIR]
1632   --dvidir=DIR           dvi documentation [DOCDIR]
1633   --pdfdir=DIR           pdf documentation [DOCDIR]
1634   --psdir=DIR            ps documentation [DOCDIR]
1635 _ACEOF
1636
1637   cat <<\_ACEOF
1638
1639 X features:
1640   --x-includes=DIR    X include files are in DIR
1641   --x-libraries=DIR   X library files are in DIR
1642
1643 System types:
1644   --build=BUILD     configure for building on BUILD [guessed]
1645   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1646 _ACEOF
1647 fi
1648
1649 if test -n "$ac_init_help"; then
1650
1651   cat <<\_ACEOF
1652
1653 Optional Features:
1654   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1655   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1656   --enable-libtool        enable building using GNU libtool [default=yes]
1657   --enable-shared[=PKGS]  build shared libraries [default=yes]
1658   --enable-static[=PKGS]  build static libraries [default=no]
1659   --enable-fast-install[=PKGS]
1660                           optimize for fast installation [default=yes]
1661   --disable-libtool-lock  avoid locking (might break parallel builds)
1662   --enable-includes       enable installing of include files [default=no]
1663   --disable-nls           do not use Native Language Support
1664   --disable-rpath         do not hardcode runtime library paths
1665   --enable-gnome          enable build of bgnome-console GUI [default=no]
1666   --enable-bat            enable build of bat Qt4 GUI [default=no]
1667   --enable-bwx-console    enable build of wxWidgets console [default=no]
1668   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1669                           KDE [default=no]
1670   --enable-smartalloc     enable smartalloc debugging support [default=no]
1671   --enable-lockmgr        enable lock manager support [default=no]
1672   --enable-static-tools   enable static tape tools [default=no]
1673   --enable-static-fd      enable static File daemon [default=no]
1674   --enable-static-sd      enable static Storage daemon [default=no]
1675   --enable-static-dir     enable static Director [default=no]
1676   --enable-static-cons    enable static Console [default=no]
1677   --enable-client-only    build client (File daemon) only [default=no]
1678   --enable-build-dird     enable building of dird (Director) [default=yes]
1679   --enable-build-stored   enable building of stored (Storage daemon)
1680                           [default=yes]
1681   --disable-conio         disable conio support [default=no]
1682   --enable-ipv6           enable ipv6 support [default=yes]
1683   --disable-readline      disable readline support [default=yes]
1684   --enable-batch-insert   enable the DB batch insert code [default=no]
1685   --disable-largefile     omit support for large files
1686   --disable-acl           disable acl support [default=auto]
1687   --disable-xattr         disable xattr support [default=auto]
1688
1689 Optional Packages:
1690   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1691   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1692   --with-pic              try to use only PIC/non-PIC objects [default=use
1693                           both]
1694   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1695   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1696   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1697   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1698   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1699   --without-libintl-prefix     don't search for libintl in includedir and libdir
1700   --with-included-gettext use the GNU gettext library included here
1701   --with-readline[=DIR]   specify readline library directory
1702   --with-python[=DIR]     Include Python support. DIR is the Python base
1703                           install directory, default is to search through a
1704                           number of common places for the Python files.
1705   --with-tcp-wrappers[=DIR]
1706                           enable tcpwrappers support
1707   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1708   --with-working-dir=PATH specify path of Bacula working directory
1709   --with-archivedir=PATH  specify path of SD archive directory
1710   --with-basename=RESNAME specify base resource name for daemons
1711   --with-hostname=RESNAME specify host name for daemons
1712   --with-scriptdir=PATH   specify path of Bacula scripts directory
1713   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1714   --with-logdir=PATH      specify path of Bacula logs directory
1715   --with-plugindir=PATH   specify path of Bacula plugins directory
1716   --with-dump-email=EMAIL dump email address
1717   --with-job-email=EMAIL  job output email address
1718   --with-smtp-host=HOST   SMTP mail host address
1719   --with-pid-dir=PATH     specify location of Bacula pid files
1720   --with-subsys-dir=PATH  specify location of Bacula subsys file
1721   --with-baseport=PORT    specify base port address for daemons
1722   --with-dir-password=PASSWORD
1723                           specify Director's password
1724   --with-fd-password=PASSWORD
1725                           specify Client's password
1726   --with-sd-password=PASSWORD
1727                           specify Storage daemon's password
1728   --with-mon-dir-password=PASSWORD
1729                           specify Director's password used by the monitor
1730   --with-mon-fd-password=PASSWORD
1731                           specify Client's password used by the monitor
1732   --with-mon-sd-password=PASSWORD
1733                           specify Storage daemon's password used by the
1734                           monitor
1735   --with-db-name=DBNAME   specify database name [default=bacula]
1736   --with-db-user=UNAME    specify database user [default=bacula]
1737   --with-db-password=PWD  specify database password [default=*none*]
1738   --with-db-port=DBPORT   specify a database port [default=null]
1739   --with-dir-user=USER    specify user for Director daemon
1740   --with-dir-group=GROUP  specify group for Director daemon
1741   --with-sd-user=USER     specify user for Storage daemon
1742   --with-sd-group=GROUP   specify group for Storage daemon
1743   --with-fd-user=USER     specify user for File daemon
1744   --with-fd-group=GROUP   specify group for File daemon
1745   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1746   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1747                           base install directory, [default=/usr/local/pgsql]
1748   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1749                           directory, default is to search through a number of
1750                           common places for the MySQL files.
1751   --with-embedded-mysql[=DIR]
1752                           Include MySQL support. DIR is the MySQL base install
1753                           directory, default is to search through a number of
1754                           common places for the MySQL files.
1755   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1756                           install directory, default is to search through a
1757                           number of common places for the Ingres files.
1758   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1759                           install directory, default is to search through a
1760                           number of common places for the SQLite3 files.
1761   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1762                           directory, default is to search through a number of
1763                           common places for the DBI files.
1764   --with-dbi-driver[=DRIVER]
1765                           Suport for DBI driver. DRIVER is the one DBI driver
1766                           like Mysql, Postgresql, others. Default is to not
1767                           configure any driver.
1768   --with-x                use the X Window System
1769
1770 Some influential environment variables:
1771   CC          C compiler command
1772   CFLAGS      C compiler flags
1773   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1774               nonstandard directory <lib dir>
1775   LIBS        libraries to pass to the linker, e.g. -l<library>
1776   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1777               you have headers in a nonstandard directory <include dir>
1778   CXX         C++ compiler command
1779   CXXFLAGS    C++ compiler flags
1780   CPP         C preprocessor
1781   WXCONFIG    wx-config command. On some systems, you must set it to
1782               wx-config-2.6 to use wxWidgets 2.6.
1783   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1784   CXXCPP      C++ preprocessor
1785   XMKMF       Path to xmkmf, Makefile generator for X Window System
1786
1787 Use these variables to override the choices made by `configure' or to help
1788 it to find libraries and programs with nonstandard names/locations.
1789
1790 _ACEOF
1791 ac_status=$?
1792 fi
1793
1794 if test "$ac_init_help" = "recursive"; then
1795   # If there are subdirs, report their specific --help.
1796   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1797     test -d "$ac_dir" || continue
1798     ac_builddir=.
1799
1800 case "$ac_dir" in
1801 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1802 *)
1803   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1804   # A ".." for each directory in $ac_dir_suffix.
1805   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1806   case $ac_top_builddir_sub in
1807   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1808   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1809   esac ;;
1810 esac
1811 ac_abs_top_builddir=$ac_pwd
1812 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1813 # for backward compatibility:
1814 ac_top_builddir=$ac_top_build_prefix
1815
1816 case $srcdir in
1817   .)  # We are building in place.
1818     ac_srcdir=.
1819     ac_top_srcdir=$ac_top_builddir_sub
1820     ac_abs_top_srcdir=$ac_pwd ;;
1821   [\\/]* | ?:[\\/]* )  # Absolute name.
1822     ac_srcdir=$srcdir$ac_dir_suffix;
1823     ac_top_srcdir=$srcdir
1824     ac_abs_top_srcdir=$srcdir ;;
1825   *) # Relative name.
1826     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1827     ac_top_srcdir=$ac_top_build_prefix$srcdir
1828     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1829 esac
1830 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1831
1832     cd "$ac_dir" || { ac_status=$?; continue; }
1833     # Check for guested configure.
1834     if test -f "$ac_srcdir/configure.gnu"; then
1835       echo &&
1836       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1837     elif test -f "$ac_srcdir/configure"; then
1838       echo &&
1839       $SHELL "$ac_srcdir/configure" --help=recursive
1840     else
1841       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1842     fi || ac_status=$?
1843     cd "$ac_pwd" || { ac_status=$?; break; }
1844   done
1845 fi
1846
1847 test -n "$ac_init_help" && exit $ac_status
1848 if $ac_init_version; then
1849   cat <<\_ACEOF
1850 configure
1851 generated by GNU Autoconf 2.61
1852
1853 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1854 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1855 This configure script is free software; the Free Software Foundation
1856 gives unlimited permission to copy, distribute and modify it.
1857 _ACEOF
1858   exit
1859 fi
1860 cat >config.log <<_ACEOF
1861 This file contains any messages produced by compilers while
1862 running configure, to aid debugging if configure makes a mistake.
1863
1864 It was created by $as_me, which was
1865 generated by GNU Autoconf 2.61.  Invocation command line was
1866
1867   $ $0 $@
1868
1869 _ACEOF
1870 exec 5>>config.log
1871 {
1872 cat <<_ASUNAME
1873 ## --------- ##
1874 ## Platform. ##
1875 ## --------- ##
1876
1877 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1878 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1879 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1880 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1881 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1882
1883 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1884 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1885
1886 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1887 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1888 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1889 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1890 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1891 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1892 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1893
1894 _ASUNAME
1895
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1898 do
1899   IFS=$as_save_IFS
1900   test -z "$as_dir" && as_dir=.
1901   echo "PATH: $as_dir"
1902 done
1903 IFS=$as_save_IFS
1904
1905 } >&5
1906
1907 cat >&5 <<_ACEOF
1908
1909
1910 ## ----------- ##
1911 ## Core tests. ##
1912 ## ----------- ##
1913
1914 _ACEOF
1915
1916
1917 # Keep a trace of the command line.
1918 # Strip out --no-create and --no-recursion so they do not pile up.
1919 # Strip out --silent because we don't want to record it for future runs.
1920 # Also quote any args containing shell meta-characters.
1921 # Make two passes to allow for proper duplicate-argument suppression.
1922 ac_configure_args=
1923 ac_configure_args0=
1924 ac_configure_args1=
1925 ac_must_keep_next=false
1926 for ac_pass in 1 2
1927 do
1928   for ac_arg
1929   do
1930     case $ac_arg in
1931     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1932     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1933     | -silent | --silent | --silen | --sile | --sil)
1934       continue ;;
1935     *\'*)
1936       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1937     esac
1938     case $ac_pass in
1939     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1940     2)
1941       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1942       if test $ac_must_keep_next = true; then
1943         ac_must_keep_next=false # Got value, back to normal.
1944       else
1945         case $ac_arg in
1946           *=* | --config-cache | -C | -disable-* | --disable-* \
1947           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1948           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1949           | -with-* | --with-* | -without-* | --without-* | --x)
1950             case "$ac_configure_args0 " in
1951               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1952             esac
1953             ;;
1954           -* ) ac_must_keep_next=true ;;
1955         esac
1956       fi
1957       ac_configure_args="$ac_configure_args '$ac_arg'"
1958       ;;
1959     esac
1960   done
1961 done
1962 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1963 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1964
1965 # When interrupted or exit'd, cleanup temporary files, and complete
1966 # config.log.  We remove comments because anyway the quotes in there
1967 # would cause problems or look ugly.
1968 # WARNING: Use '\'' to represent an apostrophe within the trap.
1969 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1970 trap 'exit_status=$?
1971   # Save into config.log some information that might help in debugging.
1972   {
1973     echo
1974
1975     cat <<\_ASBOX
1976 ## ---------------- ##
1977 ## Cache variables. ##
1978 ## ---------------- ##
1979 _ASBOX
1980     echo
1981     # The following way of writing the cache mishandles newlines in values,
1982 (
1983   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1984     eval ac_val=\$$ac_var
1985     case $ac_val in #(
1986     *${as_nl}*)
1987       case $ac_var in #(
1988       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1989 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1990       esac
1991       case $ac_var in #(
1992       _ | IFS | as_nl) ;; #(
1993       *) $as_unset $ac_var ;;
1994       esac ;;
1995     esac
1996   done
1997   (set) 2>&1 |
1998     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1999     *${as_nl}ac_space=\ *)
2000       sed -n \
2001         "s/'\''/'\''\\\\'\'''\''/g;
2002           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2003       ;; #(
2004     *)
2005       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2006       ;;
2007     esac |
2008     sort
2009 )
2010     echo
2011
2012     cat <<\_ASBOX
2013 ## ----------------- ##
2014 ## Output variables. ##
2015 ## ----------------- ##
2016 _ASBOX
2017     echo
2018     for ac_var in $ac_subst_vars
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
2028     if test -n "$ac_subst_files"; then
2029       cat <<\_ASBOX
2030 ## ------------------- ##
2031 ## File substitutions. ##
2032 ## ------------------- ##
2033 _ASBOX
2034       echo
2035       for ac_var in $ac_subst_files
2036       do
2037         eval ac_val=\$$ac_var
2038         case $ac_val in
2039         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040         esac
2041         echo "$ac_var='\''$ac_val'\''"
2042       done | sort
2043       echo
2044     fi
2045
2046     if test -s confdefs.h; then
2047       cat <<\_ASBOX
2048 ## ----------- ##
2049 ## confdefs.h. ##
2050 ## ----------- ##
2051 _ASBOX
2052       echo
2053       cat confdefs.h
2054       echo
2055     fi
2056     test "$ac_signal" != 0 &&
2057       echo "$as_me: caught signal $ac_signal"
2058     echo "$as_me: exit $exit_status"
2059   } >&5
2060   rm -f core *.core core.conftest.* &&
2061     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2062     exit $exit_status
2063 ' 0
2064 for ac_signal in 1 2 13 15; do
2065   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2066 done
2067 ac_signal=0
2068
2069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2070 rm -f -r conftest* confdefs.h
2071
2072 # Predefined preprocessor variables.
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_NAME "$PACKAGE_NAME"
2076 _ACEOF
2077
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2081 _ACEOF
2082
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2086 _ACEOF
2087
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_STRING "$PACKAGE_STRING"
2091 _ACEOF
2092
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2096 _ACEOF
2097
2098
2099 # Let the site file select an alternate cache file if it wants to.
2100 # Prefer explicitly selected file to automatically selected ones.
2101 if test -n "$CONFIG_SITE"; then
2102   set x "$CONFIG_SITE"
2103 elif test "x$prefix" != xNONE; then
2104   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2105 else
2106   set x "$ac_default_prefix/share/config.site" \
2107         "$ac_default_prefix/etc/config.site"
2108 fi
2109 shift
2110 for ac_site_file
2111 do
2112   if test -r "$ac_site_file"; then
2113     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2114 echo "$as_me: loading site script $ac_site_file" >&6;}
2115     sed 's/^/| /' "$ac_site_file" >&5
2116     . "$ac_site_file"
2117   fi
2118 done
2119
2120 if test -r "$cache_file"; then
2121   # Some versions of bash will fail to source /dev/null (special
2122   # files actually), so we avoid doing that.
2123   if test -f "$cache_file"; then
2124     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2125 echo "$as_me: loading cache $cache_file" >&6;}
2126     case $cache_file in
2127       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128       *)                      . "./$cache_file";;
2129     esac
2130   fi
2131 else
2132   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2133 echo "$as_me: creating cache $cache_file" >&6;}
2134   >$cache_file
2135 fi
2136
2137 # Check that the precious variables saved in the cache have kept the same
2138 # value.
2139 ac_cache_corrupted=false
2140 for ac_var in $ac_precious_vars; do
2141   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2142   eval ac_new_set=\$ac_env_${ac_var}_set
2143   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2144   eval ac_new_val=\$ac_env_${ac_var}_value
2145   case $ac_old_set,$ac_new_set in
2146     set,)
2147       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2148 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2149       ac_cache_corrupted=: ;;
2150     ,set)
2151       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2152 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2153       ac_cache_corrupted=: ;;
2154     ,);;
2155     *)
2156       if test "x$ac_old_val" != "x$ac_new_val"; then
2157         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2158 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2159         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2160 echo "$as_me:   former value:  $ac_old_val" >&2;}
2161         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2162 echo "$as_me:   current value: $ac_new_val" >&2;}
2163         ac_cache_corrupted=:
2164       fi;;
2165   esac
2166   # Pass precious variables to config.status.
2167   if test "$ac_new_set" = set; then
2168     case $ac_new_val in
2169     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2170     *) ac_arg=$ac_var=$ac_new_val ;;
2171     esac
2172     case " $ac_configure_args " in
2173       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2174       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2175     esac
2176   fi
2177 done
2178 if $ac_cache_corrupted; then
2179   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2180 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2181   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2182 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2183    { (exit 1); exit 1; }; }
2184 fi
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202 ac_ext=c
2203 ac_cpp='$CPP $CPPFLAGS'
2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2207
2208
2209 BUILD_DIR=`pwd`
2210 cd ..
2211 TOP_DIR=`pwd`
2212 cd ${BUILD_DIR}
2213
2214
2215 ac_aux_dir=
2216 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2217   if test -f "$ac_dir/install-sh"; then
2218     ac_aux_dir=$ac_dir
2219     ac_install_sh="$ac_aux_dir/install-sh -c"
2220     break
2221   elif test -f "$ac_dir/install.sh"; then
2222     ac_aux_dir=$ac_dir
2223     ac_install_sh="$ac_aux_dir/install.sh -c"
2224     break
2225   elif test -f "$ac_dir/shtool"; then
2226     ac_aux_dir=$ac_dir
2227     ac_install_sh="$ac_aux_dir/shtool install -c"
2228     break
2229   fi
2230 done
2231 if test -z "$ac_aux_dir"; then
2232   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2233 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2234    { (exit 1); exit 1; }; }
2235 fi
2236
2237 # These three variables are undocumented and unsupported,
2238 # and are intended to be withdrawn in a future Autoconf release.
2239 # They can cause serious problems if a builder's source tree is in a directory
2240 # whose full name contains unusual characters.
2241 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2242 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2243 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2244
2245
2246 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2247
2248
2249 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2250 WIN32MAINDIR=${BUILD_DIR}
2251 WIN32TOPDIR=${TOP_DIR}
2252
2253
2254
2255
2256 for ac_prog in true
2257 do
2258   # Extract the first word of "$ac_prog", so it can be a program name with args.
2259 set dummy $ac_prog; ac_word=$2
2260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2262 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   case $TRUEPRG in
2266   [\\/]* | ?:[\\/]*)
2267   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2268   ;;
2269   *)
2270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2272 do
2273   IFS=$as_save_IFS
2274   test -z "$as_dir" && as_dir=.
2275   for ac_exec_ext in '' $ac_executable_extensions; do
2276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2277     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279     break 2
2280   fi
2281 done
2282 done
2283 IFS=$as_save_IFS
2284
2285   ;;
2286 esac
2287 fi
2288 TRUEPRG=$ac_cv_path_TRUEPRG
2289 if test -n "$TRUEPRG"; then
2290   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2291 echo "${ECHO_T}$TRUEPRG" >&6; }
2292 else
2293   { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2295 fi
2296
2297
2298   test -n "$TRUEPRG" && break
2299 done
2300 test -n "$TRUEPRG" || TRUEPRG=":"
2301
2302 for ac_prog in false
2303 do
2304   # Extract the first word of "$ac_prog", so it can be a program name with args.
2305 set dummy $ac_prog; ac_word=$2
2306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2308 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   case $FALSEPRG in
2312   [\\/]* | ?:[\\/]*)
2313   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2314   ;;
2315   *)
2316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2318 do
2319   IFS=$as_save_IFS
2320   test -z "$as_dir" && as_dir=.
2321   for ac_exec_ext in '' $ac_executable_extensions; do
2322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325     break 2
2326   fi
2327 done
2328 done
2329 IFS=$as_save_IFS
2330
2331   ;;
2332 esac
2333 fi
2334 FALSEPRG=$ac_cv_path_FALSEPRG
2335 if test -n "$FALSEPRG"; then
2336   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2337 echo "${ECHO_T}$FALSEPRG" >&6; }
2338 else
2339   { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2341 fi
2342
2343
2344   test -n "$FALSEPRG" && break
2345 done
2346 test -n "$FALSEPRG" || FALSEPRG=":"
2347
2348
2349
2350 post_host=
2351 if test "x$BACULA" != x; then
2352    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2353 fi
2354 BACULA=${BACULA:-Bacula}
2355 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2356 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2357 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2358
2359 LIBBAC_LT_CURRENT=`sed -n -e 's/^.*LIBBAC_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2360 LIBBAC_LT_REVISION=`sed -n -e 's/^.*LIBBAC_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2361 LIBBAC_LT_AGE=`sed -n -e 's/^.*LIBBAC_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2362 LIBBACCFG_LT_CURRENT=`sed -n -e 's/^.*LIBBACCFG_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2363 LIBBACCFG_LT_REVISION=`sed -n -e 's/^.*LIBBACCFG_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2364 LIBBACCFG_LT_AGE=`sed -n -e 's/^.*LIBBACCFG_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2365 LIBBACPY_LT_CURRENT=`sed -n -e 's/^.*LIBBACPY_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2366 LIBBACPY_LT_REVISION=`sed -n -e 's/^.*LIBBACPY_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2367 LIBBACPY_LT_AGE=`sed -n -e 's/^.*LIBBACPY_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2368
2369
2370 LIBBACSQL_LT_CURRENT=`sed -n -e 's/^.*LIBBACSQL_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2371 LIBBACSQL_LT_REVISION=`sed -n -e 's/^.*LIBBACSQL_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2372 LIBBACSQL_LT_AGE=`sed -n -e 's/^.*LIBBACSQL_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2373
2374 LIBBACFIND_LT_CURRENT=`sed -n -e 's/^.*LIBBACFIND_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2375 LIBBACFIND_LT_REVISION=`sed -n -e 's/^.*LIBBACFIND_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2376 LIBBACFIND_LT_AGE=`sed -n -e 's/^.*LIBBACFIND_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2377
2378 echo "configuring for ${BACULA} $VERSION ($DATE)"
2379
2380
2381
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387 if test -n "$ac_tool_prefix"; then
2388   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2389 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392 if test "${ac_cv_prog_CC+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   if test -n "$CC"; then
2396   ac_cv_prog_CC="$CC" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401   IFS=$as_save_IFS
2402   test -z "$as_dir" && as_dir=.
2403   for ac_exec_ext in '' $ac_executable_extensions; do
2404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407     break 2
2408   fi
2409 done
2410 done
2411 IFS=$as_save_IFS
2412
2413 fi
2414 fi
2415 CC=$ac_cv_prog_CC
2416 if test -n "$CC"; then
2417   { echo "$as_me:$LINENO: result: $CC" >&5
2418 echo "${ECHO_T}$CC" >&6; }
2419 else
2420   { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2422 fi
2423
2424
2425 fi
2426 if test -z "$ac_cv_prog_CC"; then
2427   ac_ct_CC=$CC
2428   # Extract the first word of "gcc", so it can be a program name with args.
2429 set dummy gcc; ac_word=$2
2430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2433   echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435   if test -n "$ac_ct_CC"; then
2436   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2440 do
2441   IFS=$as_save_IFS
2442   test -z "$as_dir" && as_dir=.
2443   for ac_exec_ext in '' $ac_executable_extensions; do
2444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445     ac_cv_prog_ac_ct_CC="gcc"
2446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447     break 2
2448   fi
2449 done
2450 done
2451 IFS=$as_save_IFS
2452
2453 fi
2454 fi
2455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2456 if test -n "$ac_ct_CC"; then
2457   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2458 echo "${ECHO_T}$ac_ct_CC" >&6; }
2459 else
2460   { echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6; }
2462 fi
2463
2464   if test "x$ac_ct_CC" = x; then
2465     CC=""
2466   else
2467     case $cross_compiling:$ac_tool_warned in
2468 yes:)
2469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2470 whose name does not start with the host triplet.  If you think this
2471 configuration is useful to you, please write to autoconf@gnu.org." >&5
2472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2473 whose name does not start with the host triplet.  If you think this
2474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2475 ac_tool_warned=yes ;;
2476 esac
2477     CC=$ac_ct_CC
2478   fi
2479 else
2480   CC="$ac_cv_prog_CC"
2481 fi
2482
2483 if test -z "$CC"; then
2484           if test -n "$ac_tool_prefix"; then
2485     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2486 set dummy ${ac_tool_prefix}cc; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_CC+set}" = set; then
2490   echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492   if test -n "$CC"; then
2493   ac_cv_prog_CC="$CC" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498   IFS=$as_save_IFS
2499   test -z "$as_dir" && as_dir=.
2500   for ac_exec_ext in '' $ac_executable_extensions; do
2501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502     ac_cv_prog_CC="${ac_tool_prefix}cc"
2503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504     break 2
2505   fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 CC=$ac_cv_prog_CC
2513 if test -n "$CC"; then
2514   { echo "$as_me:$LINENO: result: $CC" >&5
2515 echo "${ECHO_T}$CC" >&6; }
2516 else
2517   { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2519 fi
2520
2521
2522   fi
2523 fi
2524 if test -z "$CC"; then
2525   # Extract the first word of "cc", so it can be a program name with args.
2526 set dummy cc; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   if test -n "$CC"; then
2533   ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535   ac_prog_rejected=no
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539   IFS=$as_save_IFS
2540   test -z "$as_dir" && as_dir=.
2541   for ac_exec_ext in '' $ac_executable_extensions; do
2542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2544        ac_prog_rejected=yes
2545        continue
2546      fi
2547     ac_cv_prog_CC="cc"
2548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549     break 2
2550   fi
2551 done
2552 done
2553 IFS=$as_save_IFS
2554
2555 if test $ac_prog_rejected = yes; then
2556   # We found a bogon in the path, so make sure we never use it.
2557   set dummy $ac_cv_prog_CC
2558   shift
2559   if test $# != 0; then
2560     # We chose a different compiler from the bogus one.
2561     # However, it has the same basename, so the bogon will be chosen
2562     # first if we set CC to just the basename; use the full file name.
2563     shift
2564     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2565   fi
2566 fi
2567 fi
2568 fi
2569 CC=$ac_cv_prog_CC
2570 if test -n "$CC"; then
2571   { echo "$as_me:$LINENO: result: $CC" >&5
2572 echo "${ECHO_T}$CC" >&6; }
2573 else
2574   { echo "$as_me:$LINENO: result: no" >&5
2575 echo "${ECHO_T}no" >&6; }
2576 fi
2577
2578
2579 fi
2580 if test -z "$CC"; then
2581   if test -n "$ac_tool_prefix"; then
2582   for ac_prog in cl.exe
2583   do
2584     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2585 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_CC+set}" = set; then
2589   echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591   if test -n "$CC"; then
2592   ac_cv_prog_CC="$CC" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599   for ac_exec_ext in '' $ac_executable_extensions; do
2600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603     break 2
2604   fi
2605 done
2606 done
2607 IFS=$as_save_IFS
2608
2609 fi
2610 fi
2611 CC=$ac_cv_prog_CC
2612 if test -n "$CC"; then
2613   { echo "$as_me:$LINENO: result: $CC" >&5
2614 echo "${ECHO_T}$CC" >&6; }
2615 else
2616   { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2618 fi
2619
2620
2621     test -n "$CC" && break
2622   done
2623 fi
2624 if test -z "$CC"; then
2625   ac_ct_CC=$CC
2626   for ac_prog in cl.exe
2627 do
2628   # Extract the first word of "$ac_prog", so it can be a program name with args.
2629 set dummy $ac_prog; ac_word=$2
2630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2632 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2633   echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635   if test -n "$ac_ct_CC"; then
2636   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641   IFS=$as_save_IFS
2642   test -z "$as_dir" && as_dir=.
2643   for ac_exec_ext in '' $ac_executable_extensions; do
2644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645     ac_cv_prog_ac_ct_CC="$ac_prog"
2646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647     break 2
2648   fi
2649 done
2650 done
2651 IFS=$as_save_IFS
2652
2653 fi
2654 fi
2655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2656 if test -n "$ac_ct_CC"; then
2657   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2658 echo "${ECHO_T}$ac_ct_CC" >&6; }
2659 else
2660   { echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6; }
2662 fi
2663
2664
2665   test -n "$ac_ct_CC" && break
2666 done
2667
2668   if test "x$ac_ct_CC" = x; then
2669     CC=""
2670   else
2671     case $cross_compiling:$ac_tool_warned in
2672 yes:)
2673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2674 whose name does not start with the host triplet.  If you think this
2675 configuration is useful to you, please write to autoconf@gnu.org." >&5
2676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet.  If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2679 ac_tool_warned=yes ;;
2680 esac
2681     CC=$ac_ct_CC
2682   fi
2683 fi
2684
2685 fi
2686
2687
2688 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2689 See \`config.log' for more details." >&5
2690 echo "$as_me: error: no acceptable C compiler found in \$PATH
2691 See \`config.log' for more details." >&2;}
2692    { (exit 1); exit 1; }; }
2693
2694 # Provide some information about the compiler.
2695 echo "$as_me:$LINENO: checking for C compiler version" >&5
2696 ac_compiler=`set X $ac_compile; echo $2`
2697 { (ac_try="$ac_compiler --version >&5"
2698 case "(($ac_try" in
2699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700   *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703   (eval "$ac_compiler --version >&5") 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }
2707 { (ac_try="$ac_compiler -v >&5"
2708 case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713   (eval "$ac_compiler -v >&5") 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }
2717 { (ac_try="$ac_compiler -V >&5"
2718 case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_compiler -V >&5") 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }
2727
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h.  */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h.  */
2734
2735 int
2736 main ()
2737 {
2738
2739   ;
2740   return 0;
2741 }
2742 _ACEOF
2743 ac_clean_files_save=$ac_clean_files
2744 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2745 # Try to create an executable without -o first, disregard a.out.
2746 # It will help us diagnose broken compilers, and finding out an intuition
2747 # of exeext.
2748 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2749 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2750 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2751 #
2752 # List of possible output files, starting from the most likely.
2753 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2754 # only as a last resort.  b.out is created by i960 compilers.
2755 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2756 #
2757 # The IRIX 6 linker writes into existing files which may not be
2758 # executable, retaining their permissions.  Remove them first so a
2759 # subsequent execution test works.
2760 ac_rmfiles=
2761 for ac_file in $ac_files
2762 do
2763   case $ac_file in
2764     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2765     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2766   esac
2767 done
2768 rm -f $ac_rmfiles
2769
2770 if { (ac_try="$ac_link_default"
2771 case "(($ac_try" in
2772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773   *) ac_try_echo=$ac_try;;
2774 esac
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776   (eval "$ac_link_default") 2>&5
2777   ac_status=$?
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); }; then
2780   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2781 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2782 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2783 # so that the user can short-circuit this test for compilers unknown to
2784 # Autoconf.
2785 for ac_file in $ac_files ''
2786 do
2787   test -f "$ac_file" || continue
2788   case $ac_file in
2789     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2790         ;;
2791     [ab].out )
2792         # We found the default executable, but exeext='' is most
2793         # certainly right.
2794         break;;
2795     *.* )
2796         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2797         then :; else
2798            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2799         fi
2800         # We set ac_cv_exeext here because the later test for it is not
2801         # safe: cross compilers may not add the suffix if given an `-o'
2802         # argument, so we may need to know it at that point already.
2803         # Even if this section looks crufty: it has the advantage of
2804         # actually working.
2805         break;;
2806     * )
2807         break;;
2808   esac
2809 done
2810 test "$ac_cv_exeext" = no && ac_cv_exeext=
2811
2812 else
2813   ac_file=''
2814 fi
2815
2816 { echo "$as_me:$LINENO: result: $ac_file" >&5
2817 echo "${ECHO_T}$ac_file" >&6; }
2818 if test -z "$ac_file"; then
2819   echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2821
2822 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: C compiler cannot create executables
2825 See \`config.log' for more details." >&2;}
2826    { (exit 77); exit 77; }; }
2827 fi
2828
2829 ac_exeext=$ac_cv_exeext
2830
2831 # Check that the compiler produces executables we can run.  If not, either
2832 # the compiler is broken, or we cross compile.
2833 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836 # If not cross compiling, check that we can run a simple program.
2837 if test "$cross_compiling" != yes; then
2838   if { ac_try='./$ac_file'
2839   { (case "(($ac_try" in
2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841   *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844   (eval "$ac_try") 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; }; then
2848     cross_compiling=no
2849   else
2850     if test "$cross_compiling" = maybe; then
2851         cross_compiling=yes
2852     else
2853         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&2;}
2859    { (exit 1); exit 1; }; }
2860     fi
2861   fi
2862 fi
2863 { echo "$as_me:$LINENO: result: yes" >&5
2864 echo "${ECHO_T}yes" >&6; }
2865
2866 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2867 ac_clean_files=$ac_clean_files_save
2868 # Check that the compiler produces executables we can run.  If not, either
2869 # the compiler is broken, or we cross compile.
2870 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873 echo "${ECHO_T}$cross_compiling" >&6; }
2874
2875 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877 if { (ac_try="$ac_link"
2878 case "(($ac_try" in
2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880   *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883   (eval "$ac_link") 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; then
2887   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2890 # `rm'.
2891 for ac_file in conftest.exe conftest conftest.*; do
2892   test -f "$ac_file" || continue
2893   case $ac_file in
2894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2895     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2896           break;;
2897     * ) break;;
2898   esac
2899 done
2900 else
2901   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details." >&2;}
2905    { (exit 1); exit 1; }; }
2906 fi
2907
2908 rm -f conftest$ac_cv_exeext
2909 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2911
2912 rm -f conftest.$ac_ext
2913 EXEEXT=$ac_cv_exeext
2914 ac_exeext=$EXEEXT
2915 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917 if test "${ac_cv_objext+set}" = set; then
2918   echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920   cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h.  */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h.  */
2926
2927 int
2928 main ()
2929 {
2930
2931   ;
2932   return 0;
2933 }
2934 _ACEOF
2935 rm -f conftest.o conftest.obj
2936 if { (ac_try="$ac_compile"
2937 case "(($ac_try" in
2938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939   *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942   (eval "$ac_compile") 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; then
2946   for ac_file in conftest.o conftest.obj conftest.*; do
2947   test -f "$ac_file" || continue;
2948   case $ac_file in
2949     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2950     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2951        break;;
2952   esac
2953 done
2954 else
2955   echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2957
2958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961 See \`config.log' for more details." >&2;}
2962    { (exit 1); exit 1; }; }
2963 fi
2964
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966 fi
2967 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968 echo "${ECHO_T}$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2970 ac_objext=$OBJEXT
2971 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974   echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976   cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h.  */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h.  */
2982
2983 int
2984 main ()
2985 {
2986 #ifndef __GNUC__
2987        choke me
2988 #endif
2989
2990   ;
2991   return 0;
2992 }
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (ac_try="$ac_compile"
2996 case "(($ac_try" in
2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998   *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001   (eval "$ac_compile") 2>conftest.er1
3002   ac_status=$?
3003   grep -v '^ *+' conftest.er1 >conftest.err
3004   rm -f conftest.er1
3005   cat conftest.err >&5
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); } && {
3008          test -z "$ac_c_werror_flag" ||
3009          test ! -s conftest.err
3010        } && test -s conftest.$ac_objext; then
3011   ac_compiler_gnu=yes
3012 else
3013   echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3015
3016         ac_compiler_gnu=no
3017 fi
3018
3019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3021
3022 fi
3023 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3024 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3025 GCC=`test $ac_compiler_gnu = yes && echo yes`
3026 ac_test_CFLAGS=${CFLAGS+set}
3027 ac_save_CFLAGS=$CFLAGS
3028 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3030 if test "${ac_cv_prog_cc_g+set}" = set; then
3031   echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033   ac_save_c_werror_flag=$ac_c_werror_flag
3034    ac_c_werror_flag=yes
3035    ac_cv_prog_cc_g=no
3036    CFLAGS="-g"
3037    cat >conftest.$ac_ext <<_ACEOF
3038 /* confdefs.h.  */
3039 _ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h.  */
3043
3044 int
3045 main ()
3046 {
3047
3048   ;
3049   return 0;
3050 }
3051 _ACEOF
3052 rm -f conftest.$ac_objext
3053 if { (ac_try="$ac_compile"
3054 case "(($ac_try" in
3055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056   *) ac_try_echo=$ac_try;;
3057 esac
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059   (eval "$ac_compile") 2>conftest.er1
3060   ac_status=$?
3061   grep -v '^ *+' conftest.er1 >conftest.err
3062   rm -f conftest.er1
3063   cat conftest.err >&5
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); } && {
3066          test -z "$ac_c_werror_flag" ||
3067          test ! -s conftest.err
3068        } && test -s conftest.$ac_objext; then
3069   ac_cv_prog_cc_g=yes
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074         CFLAGS=""
3075       cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081
3082 int
3083 main ()
3084 {
3085
3086   ;
3087   return 0;
3088 }
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3092 case "(($ac_try" in
3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094   *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097   (eval "$ac_compile") 2>conftest.er1
3098   ac_status=$?
3099   grep -v '^ *+' conftest.er1 >conftest.err
3100   rm -f conftest.er1
3101   cat conftest.err >&5
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); } && {
3104          test -z "$ac_c_werror_flag" ||
3105          test ! -s conftest.err
3106        } && test -s conftest.$ac_objext; then
3107   :
3108 else
3109   echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112         ac_c_werror_flag=$ac_save_c_werror_flag
3113          CFLAGS="-g"
3114          cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120
3121 int
3122 main ()
3123 {
3124
3125   ;
3126   return 0;
3127 }
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3131 case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_compile") 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } && {
3143          test -z "$ac_c_werror_flag" ||
3144          test ! -s conftest.err
3145        } && test -s conftest.$ac_objext; then
3146   ac_cv_prog_cc_g=yes
3147 else
3148   echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151
3152 fi
3153
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 fi
3156
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 fi
3159
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161    ac_c_werror_flag=$ac_save_c_werror_flag
3162 fi
3163 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3164 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3165 if test "$ac_test_CFLAGS" = set; then
3166   CFLAGS=$ac_save_CFLAGS
3167 elif test $ac_cv_prog_cc_g = yes; then
3168   if test "$GCC" = yes; then
3169     CFLAGS="-g -O2"
3170   else
3171     CFLAGS="-g"
3172   fi
3173 else
3174   if test "$GCC" = yes; then
3175     CFLAGS="-O2"
3176   else
3177     CFLAGS=
3178   fi
3179 fi
3180 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3181 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3182 if test "${ac_cv_prog_cc_c89+set}" = set; then
3183   echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185   ac_cv_prog_cc_c89=no
3186 ac_save_CC=$CC
3187 cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h.  */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h.  */
3193 #include <stdarg.h>
3194 #include <stdio.h>
3195 #include <sys/types.h>
3196 #include <sys/stat.h>
3197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3198 struct buf { int x; };
3199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3200 static char *e (p, i)
3201      char **p;
3202      int i;
3203 {
3204   return p[i];
3205 }
3206 static char *f (char * (*g) (char **, int), char **p, ...)
3207 {
3208   char *s;
3209   va_list v;
3210   va_start (v,p);
3211   s = g (p, va_arg (v,int));
3212   va_end (v);
3213   return s;
3214 }
3215
3216 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3217    function prototypes and stuff, but not '\xHH' hex character constants.
3218    These don't provoke an error unfortunately, instead are silently treated
3219    as 'x'.  The following induces an error, until -std is added to get
3220    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3221    array size at least.  It's necessary to write '\x00'==0 to get something
3222    that's true only with -std.  */
3223 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3224
3225 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3226    inside strings and character constants.  */
3227 #define FOO(x) 'x'
3228 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3229
3230 int test (int i, double x);
3231 struct s1 {int (*f) (int a);};
3232 struct s2 {int (*f) (double a);};
3233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3234 int argc;
3235 char **argv;
3236 int
3237 main ()
3238 {
3239 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3240   ;
3241   return 0;
3242 }
3243 _ACEOF
3244 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3245         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3246 do
3247   CC="$ac_save_CC $ac_arg"
3248   rm -f conftest.$ac_objext
3249 if { (ac_try="$ac_compile"
3250 case "(($ac_try" in
3251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252   *) ac_try_echo=$ac_try;;
3253 esac
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255   (eval "$ac_compile") 2>conftest.er1
3256   ac_status=$?
3257   grep -v '^ *+' conftest.er1 >conftest.err
3258   rm -f conftest.er1
3259   cat conftest.err >&5
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); } && {
3262          test -z "$ac_c_werror_flag" ||
3263          test ! -s conftest.err
3264        } && test -s conftest.$ac_objext; then
3265   ac_cv_prog_cc_c89=$ac_arg
3266 else
3267   echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270
3271 fi
3272
3273 rm -f core conftest.err conftest.$ac_objext
3274   test "x$ac_cv_prog_cc_c89" != "xno" && break
3275 done
3276 rm -f conftest.$ac_ext
3277 CC=$ac_save_CC
3278
3279 fi
3280 # AC_CACHE_VAL
3281 case "x$ac_cv_prog_cc_c89" in
3282   x)
3283     { echo "$as_me:$LINENO: result: none needed" >&5
3284 echo "${ECHO_T}none needed" >&6; } ;;
3285   xno)
3286     { echo "$as_me:$LINENO: result: unsupported" >&5
3287 echo "${ECHO_T}unsupported" >&6; } ;;
3288   *)
3289     CC="$CC $ac_cv_prog_cc_c89"
3290     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3291 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3292 esac
3293
3294
3295 ac_ext=c
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300
3301 ac_ext=cpp
3302 ac_cpp='$CXXCPP $CPPFLAGS'
3303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3306 if test -z "$CXX"; then
3307   if test -n "$CCC"; then
3308     CXX=$CCC
3309   else
3310     if test -n "$ac_tool_prefix"; then
3311   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3312   do
3313     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3317 if test "${ac_cv_prog_CXX+set}" = set; then
3318   echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320   if test -n "$CXX"; then
3321   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326   IFS=$as_save_IFS
3327   test -z "$as_dir" && as_dir=.
3328   for ac_exec_ext in '' $ac_executable_extensions; do
3329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332     break 2
3333   fi
3334 done
3335 done
3336 IFS=$as_save_IFS
3337
3338 fi
3339 fi
3340 CXX=$ac_cv_prog_CXX
3341 if test -n "$CXX"; then
3342   { echo "$as_me:$LINENO: result: $CXX" >&5
3343 echo "${ECHO_T}$CXX" >&6; }
3344 else
3345   { echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6; }
3347 fi
3348
3349
3350     test -n "$CXX" && break
3351   done
3352 fi
3353 if test -z "$CXX"; then
3354   ac_ct_CXX=$CXX
3355   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3356 do
3357   # Extract the first word of "$ac_prog", so it can be a program name with args.
3358 set dummy $ac_prog; ac_word=$2
3359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3361 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   if test -n "$ac_ct_CXX"; then
3365   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370   IFS=$as_save_IFS
3371   test -z "$as_dir" && as_dir=.
3372   for ac_exec_ext in '' $ac_executable_extensions; do
3373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3374     ac_cv_prog_ac_ct_CXX="$ac_prog"
3375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376     break 2
3377   fi
3378 done
3379 done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3385 if test -n "$ac_ct_CXX"; then
3386   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3387 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3388 else
3389   { echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6; }
3391 fi
3392
3393
3394   test -n "$ac_ct_CXX" && break
3395 done
3396
3397   if test "x$ac_ct_CXX" = x; then
3398     CXX="g++"
3399   else
3400     case $cross_compiling:$ac_tool_warned in
3401 yes:)
3402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3403 whose name does not start with the host triplet.  If you think this
3404 configuration is useful to you, please write to autoconf@gnu.org." >&5
3405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3406 whose name does not start with the host triplet.  If you think this
3407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3408 ac_tool_warned=yes ;;
3409 esac
3410     CXX=$ac_ct_CXX
3411   fi
3412 fi
3413
3414   fi
3415 fi
3416 # Provide some information about the compiler.
3417 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3418 ac_compiler=`set X $ac_compile; echo $2`
3419 { (ac_try="$ac_compiler --version >&5"
3420 case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425   (eval "$ac_compiler --version >&5") 2>&5
3426   ac_status=$?
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); }
3429 { (ac_try="$ac_compiler -v >&5"
3430 case "(($ac_try" in
3431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432   *) ac_try_echo=$ac_try;;
3433 esac
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435   (eval "$ac_compiler -v >&5") 2>&5
3436   ac_status=$?
3437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438   (exit $ac_status); }
3439 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
3446   ac_status=$?
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); }
3449
3450 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3451 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3452 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3453   echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455   cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h.  */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h.  */
3461
3462 int
3463 main ()
3464 {
3465 #ifndef __GNUC__
3466        choke me
3467 #endif
3468
3469   ;
3470   return 0;
3471 }
3472 _ACEOF
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3475 case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480   (eval "$ac_compile") 2>conftest.er1
3481   ac_status=$?
3482   grep -v '^ *+' conftest.er1 >conftest.err
3483   rm -f conftest.er1
3484   cat conftest.err >&5
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } && {
3487          test -z "$ac_cxx_werror_flag" ||
3488          test ! -s conftest.err
3489        } && test -s conftest.$ac_objext; then
3490   ac_compiler_gnu=yes
3491 else
3492   echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495         ac_compiler_gnu=no
3496 fi
3497
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3500
3501 fi
3502 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3503 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3504 GXX=`test $ac_compiler_gnu = yes && echo yes`
3505 ac_test_CXXFLAGS=${CXXFLAGS+set}
3506 ac_save_CXXFLAGS=$CXXFLAGS
3507 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3508 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3509 if test "${ac_cv_prog_cxx_g+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3513    ac_cxx_werror_flag=yes
3514    ac_cv_prog_cxx_g=no
3515    CXXFLAGS="-g"
3516    cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h.  */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h.  */
3522
3523 int
3524 main ()
3525 {
3526
3527   ;
3528   return 0;
3529 }
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (ac_try="$ac_compile"
3533 case "(($ac_try" in
3534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535   *) ac_try_echo=$ac_try;;
3536 esac
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538   (eval "$ac_compile") 2>conftest.er1
3539   ac_status=$?
3540   grep -v '^ *+' conftest.er1 >conftest.err
3541   rm -f conftest.er1
3542   cat conftest.err >&5
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); } && {
3545          test -z "$ac_cxx_werror_flag" ||
3546          test ! -s conftest.err
3547        } && test -s conftest.$ac_objext; then
3548   ac_cv_prog_cxx_g=yes
3549 else
3550   echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3552
3553         CXXFLAGS=""
3554       cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h.  */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h.  */
3560
3561 int
3562 main ()
3563 {
3564
3565   ;
3566   return 0;
3567 }
3568 _ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3571 case "(($ac_try" in
3572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573   *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576   (eval "$ac_compile") 2>conftest.er1
3577   ac_status=$?
3578   grep -v '^ *+' conftest.er1 >conftest.err
3579   rm -f conftest.er1
3580   cat conftest.err >&5
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); } && {
3583          test -z "$ac_cxx_werror_flag" ||
3584          test ! -s conftest.err
3585        } && test -s conftest.$ac_objext; then
3586   :
3587 else
3588   echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3592          CXXFLAGS="-g"
3593          cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h.  */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h.  */
3599
3600 int
3601 main ()
3602 {
3603
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (ac_try="$ac_compile"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615   (eval "$ac_compile") 2>conftest.er1
3616   ac_status=$?
3617   grep -v '^ *+' conftest.er1 >conftest.err
3618   rm -f conftest.er1
3619   cat conftest.err >&5
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } && {
3622          test -z "$ac_cxx_werror_flag" ||
3623          test ! -s conftest.err
3624        } && test -s conftest.$ac_objext; then
3625   ac_cv_prog_cxx_g=yes
3626 else
3627   echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3629
3630
3631 fi
3632
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 fi
3635
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 fi
3638
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3641 fi
3642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3643 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3644 if test "$ac_test_CXXFLAGS" = set; then
3645   CXXFLAGS=$ac_save_CXXFLAGS
3646 elif test $ac_cv_prog_cxx_g = yes; then
3647   if test "$GXX" = yes; then
3648     CXXFLAGS="-g -O2"
3649   else
3650     CXXFLAGS="-g"
3651   fi
3652 else
3653   if test "$GXX" = yes; then
3654     CXXFLAGS="-O2"
3655   else
3656     CXXFLAGS=
3657   fi
3658 fi
3659 ac_ext=c
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664
3665 if test "x$CC" != xcc; then
3666   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3667 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3668 else
3669   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3670 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3671 fi
3672 set dummy $CC; ac_cc=`echo $2 |
3673                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3674 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h.  */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h.  */
3683
3684 int
3685 main ()
3686 {
3687
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 # Make sure it works both with $CC and with simple cc.
3693 # We do the test twice because some compilers refuse to overwrite an
3694 # existing .o file with -o, though they will create one.
3695 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3696 rm -f conftest2.*
3697 if { (case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702   (eval "$ac_try") 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); } &&
3706    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708   *) ac_try_echo=$ac_try;;
3709 esac
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711   (eval "$ac_try") 2>&5
3712   ac_status=$?
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); };
3715 then
3716   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3717   if test "x$CC" != xcc; then
3718     # Test first that cc exists at all.
3719     if { ac_try='cc -c conftest.$ac_ext >&5'
3720   { (case "(($ac_try" in
3721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722   *) ac_try_echo=$ac_try;;
3723 esac
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725   (eval "$ac_try") 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); }; }; then
3729       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3730       rm -f conftest2.*
3731       if { (case "(($ac_try" in
3732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733   *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736   (eval "$ac_try") 2>&5
3737   ac_status=$?
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); } &&
3740          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742   *) ac_try_echo=$ac_try;;
3743 esac
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745   (eval "$ac_try") 2>&5
3746   ac_status=$?
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); };
3749       then
3750         # cc works too.
3751         :
3752       else
3753         # cc exists but doesn't like -o.
3754         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3755       fi
3756     fi
3757   fi
3758 else
3759   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3760 fi
3761 rm -f core conftest*
3762
3763 fi
3764 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3765   { echo "$as_me:$LINENO: result: yes" >&5
3766 echo "${ECHO_T}yes" >&6; }
3767 else
3768   { echo "$as_me:$LINENO: result: no" >&5
3769 echo "${ECHO_T}no" >&6; }
3770
3771 cat >>confdefs.h <<\_ACEOF
3772 #define NO_MINUS_C_MINUS_O 1
3773 _ACEOF
3774
3775 fi
3776
3777 ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3783 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3784 # On Suns, sometimes $CPP names a directory.
3785 if test -n "$CPP" && test -d "$CPP"; then
3786   CPP=
3787 fi
3788 if test -z "$CPP"; then
3789   if test "${ac_cv_prog_CPP+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792       # Double quotes because CPP needs to be expanded
3793     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3794     do
3795       ac_preproc_ok=false
3796 for ac_c_preproc_warn_flag in '' yes
3797 do
3798   # Use a header file that comes with gcc, so configuring glibc
3799   # with a fresh cross-compiler works.
3800   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801   # <limits.h> exists even on freestanding compilers.
3802   # On the NeXT, cc -E runs the code through the compiler's parser,
3803   # not just through cpp. "Syntax error" is here to catch this case.
3804   cat >conftest.$ac_ext <<_ACEOF
3805 /* confdefs.h.  */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h.  */
3810 #ifdef __STDC__
3811 # include <limits.h>
3812 #else
3813 # include <assert.h>
3814 #endif
3815                      Syntax error
3816 _ACEOF
3817 if { (ac_try="$ac_cpp conftest.$ac_ext"
3818 case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3824   ac_status=$?
3825   grep -v '^ *+' conftest.er1 >conftest.err
3826   rm -f conftest.er1
3827   cat conftest.err >&5
3828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829   (exit $ac_status); } >/dev/null && {
3830          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3831          test ! -s conftest.err
3832        }; then
3833   :
3834 else
3835   echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3837
3838   # Broken: fails on valid input.
3839 continue
3840 fi
3841
3842 rm -f conftest.err conftest.$ac_ext
3843
3844   # OK, works on sane cases.  Now check whether nonexistent headers
3845   # can be detected and how.
3846   cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h.  */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h.  */
3852 #include <ac_nonexistent.h>
3853 _ACEOF
3854 if { (ac_try="$ac_cpp conftest.$ac_ext"
3855 case "(($ac_try" in
3856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857   *) ac_try_echo=$ac_try;;
3858 esac
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3861   ac_status=$?
3862   grep -v '^ *+' conftest.er1 >conftest.err
3863   rm -f conftest.er1
3864   cat conftest.err >&5
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } >/dev/null && {
3867          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3868          test ! -s conftest.err
3869        }; then
3870   # Broken: success on invalid input.
3871 continue
3872 else
3873   echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3875
3876   # Passes both tests.
3877 ac_preproc_ok=:
3878 break
3879 fi
3880
3881 rm -f conftest.err conftest.$ac_ext
3882
3883 done
3884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3885 rm -f conftest.err conftest.$ac_ext
3886 if $ac_preproc_ok; then
3887   break
3888 fi
3889
3890     done
3891     ac_cv_prog_CPP=$CPP
3892
3893 fi
3894   CPP=$ac_cv_prog_CPP
3895 else
3896   ac_cv_prog_CPP=$CPP
3897 fi
3898 { echo "$as_me:$LINENO: result: $CPP" >&5
3899 echo "${ECHO_T}$CPP" >&6; }
3900 ac_preproc_ok=false
3901 for ac_c_preproc_warn_flag in '' yes
3902 do
3903   # Use a header file that comes with gcc, so configuring glibc
3904   # with a fresh cross-compiler works.
3905   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3906   # <limits.h> exists even on freestanding compilers.
3907   # On the NeXT, cc -E runs the code through the compiler's parser,
3908   # not just through cpp. "Syntax error" is here to catch this case.
3909   cat >conftest.$ac_ext <<_ACEOF
3910 /* confdefs.h.  */
3911 _ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h.  */
3915 #ifdef __STDC__
3916 # include <limits.h>
3917 #else
3918 # include <assert.h>
3919 #endif
3920                      Syntax error
3921 _ACEOF
3922 if { (ac_try="$ac_cpp conftest.$ac_ext"
3923 case "(($ac_try" in
3924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925   *) ac_try_echo=$ac_try;;
3926 esac
3927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3929   ac_status=$?
3930   grep -v '^ *+' conftest.er1 >conftest.err
3931   rm -f conftest.er1
3932   cat conftest.err >&5
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); } >/dev/null && {
3935          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3936          test ! -s conftest.err
3937        }; then
3938   :
3939 else
3940   echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3942
3943   # Broken: fails on valid input.
3944 continue
3945 fi
3946
3947 rm -f conftest.err conftest.$ac_ext
3948
3949   # OK, works on sane cases.  Now check whether nonexistent headers
3950   # can be detected and how.
3951   cat >conftest.$ac_ext <<_ACEOF
3952 /* confdefs.h.  */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h.  */
3957 #include <ac_nonexistent.h>
3958 _ACEOF
3959 if { (ac_try="$ac_cpp conftest.$ac_ext"
3960 case "(($ac_try" in
3961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962   *) ac_try_echo=$ac_try;;
3963 esac
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3966   ac_status=$?
3967   grep -v '^ *+' conftest.er1 >conftest.err
3968   rm -f conftest.er1
3969   cat conftest.err >&5
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } >/dev/null && {
3972          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3973          test ! -s conftest.err
3974        }; then
3975   # Broken: success on invalid input.
3976 continue
3977 else
3978   echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981   # Passes both tests.
3982 ac_preproc_ok=:
3983 break
3984 fi
3985
3986 rm -f conftest.err conftest.$ac_ext
3987
3988 done
3989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3990 rm -f conftest.err conftest.$ac_ext
3991 if $ac_preproc_ok; then
3992   :
3993 else
3994   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3995 See \`config.log' for more details." >&5
3996 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3997 See \`config.log' for more details." >&2;}
3998    { (exit 1); exit 1; }; }
3999 fi
4000
4001 ac_ext=c
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006
4007
4008 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4009 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4010 if test "${ac_cv_path_GREP+set}" = set; then
4011   echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013   # Extract the first word of "grep ggrep" to use in msg output
4014 if test -z "$GREP"; then
4015 set dummy grep ggrep; ac_prog_name=$2
4016 if test "${ac_cv_path_GREP+set}" = set; then
4017   echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019   ac_path_GREP_found=false
4020 # Loop through the user's path and test for each of PROGNAME-LIST
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4023 do
4024   IFS=$as_save_IFS
4025   test -z "$as_dir" && as_dir=.
4026   for ac_prog in grep ggrep; do
4027   for ac_exec_ext in '' $ac_executable_extensions; do
4028     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4029     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4030     # Check for GNU ac_path_GREP and select it if it is found.
4031   # Check for GNU $ac_path_GREP
4032 case `"$ac_path_GREP" --version 2>&1` in
4033 *GNU*)
4034   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4035 *)
4036   ac_count=0
4037   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4038   while :
4039   do
4040     cat "conftest.in" "conftest.in" >"conftest.tmp"
4041     mv "conftest.tmp" "conftest.in"
4042     cp "conftest.in" "conftest.nl"
4043     echo 'GREP' >> "conftest.nl"
4044     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4045     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4046     ac_count=`expr $ac_count + 1`
4047     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4048       # Best one so far, save it but keep looking for a better one
4049       ac_cv_path_GREP="$ac_path_GREP"
4050       ac_path_GREP_max=$ac_count
4051     fi
4052     # 10*(2^10) chars as input seems more than enough
4053     test $ac_count -gt 10 && break
4054   done
4055   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4056 esac
4057
4058
4059     $ac_path_GREP_found && break 3
4060   done
4061 done
4062
4063 done
4064 IFS=$as_save_IFS
4065
4066
4067 fi
4068
4069 GREP="$ac_cv_path_GREP"
4070 if test -z "$GREP"; then
4071   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4072 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4073    { (exit 1); exit 1; }; }
4074 fi
4075
4076 else
4077   ac_cv_path_GREP=$GREP
4078 fi
4079
4080
4081 fi
4082 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4083 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4084  GREP="$ac_cv_path_GREP"
4085
4086
4087 { echo "$as_me:$LINENO: checking for egrep" >&5
4088 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4089 if test "${ac_cv_path_EGREP+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4093    then ac_cv_path_EGREP="$GREP -E"
4094    else
4095      # Extract the first word of "egrep" to use in msg output
4096 if test -z "$EGREP"; then
4097 set dummy egrep; ac_prog_name=$2
4098 if test "${ac_cv_path_EGREP+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   ac_path_EGREP_found=false
4102 # Loop through the user's path and test for each of PROGNAME-LIST
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4105 do
4106   IFS=$as_save_IFS
4107   test -z "$as_dir" && as_dir=.
4108   for ac_prog in egrep; do
4109   for ac_exec_ext in '' $ac_executable_extensions; do
4110     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4111     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4112     # Check for GNU ac_path_EGREP and select it if it is found.
4113   # Check for GNU $ac_path_EGREP
4114 case `"$ac_path_EGREP" --version 2>&1` in
4115 *GNU*)
4116   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4117 *)
4118   ac_count=0
4119   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4120   while :
4121   do
4122     cat "conftest.in" "conftest.in" >"conftest.tmp"
4123     mv "conftest.tmp" "conftest.in"
4124     cp "conftest.in" "conftest.nl"
4125     echo 'EGREP' >> "conftest.nl"
4126     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4127     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4128     ac_count=`expr $ac_count + 1`
4129     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4130       # Best one so far, save it but keep looking for a better one
4131       ac_cv_path_EGREP="$ac_path_EGREP"
4132       ac_path_EGREP_max=$ac_count
4133     fi
4134     # 10*(2^10) chars as input seems more than enough
4135     test $ac_count -gt 10 && break
4136   done
4137   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138 esac
4139
4140
4141     $ac_path_EGREP_found && break 3
4142   done
4143 done
4144
4145 done
4146 IFS=$as_save_IFS
4147
4148
4149 fi
4150
4151 EGREP="$ac_cv_path_EGREP"
4152 if test -z "$EGREP"; then
4153   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4154 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4155    { (exit 1); exit 1; }; }
4156 fi
4157
4158 else
4159   ac_cv_path_EGREP=$EGREP
4160 fi
4161
4162
4163    fi
4164 fi
4165 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4166 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4167  EGREP="$ac_cv_path_EGREP"
4168
4169
4170 if test $ac_cv_c_compiler_gnu = yes; then
4171     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4172 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4173 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4174   echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176     ac_pattern="Autoconf.*'x'"
4177   cat >conftest.$ac_ext <<_ACEOF
4178 /* confdefs.h.  */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h.  */
4183 #include <sgtty.h>
4184 Autoconf TIOCGETP
4185 _ACEOF
4186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4187   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4188   ac_cv_prog_gcc_traditional=yes
4189 else
4190   ac_cv_prog_gcc_traditional=no
4191 fi
4192 rm -f conftest*
4193
4194
4195   if test $ac_cv_prog_gcc_traditional = no; then
4196     cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h.  */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h.  */
4202 #include <termio.h>
4203 Autoconf TCGETA
4204 _ACEOF
4205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4207   ac_cv_prog_gcc_traditional=yes
4208 fi
4209 rm -f conftest*
4210
4211   fi
4212 fi
4213 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4214 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4215   if test $ac_cv_prog_gcc_traditional = yes; then
4216     CC="$CC -traditional"
4217   fi
4218 fi
4219
4220 BASECC=`basename $CC`
4221 have_gcc=no
4222 if test "x$BASECC" = xgcc; then
4223    cat >>confdefs.h <<\_ACEOF
4224 #define HAVE_GCC 1
4225 _ACEOF
4226
4227    have_gcc=yes
4228 fi
4229 # Extract the first word of "$CXX", so it can be a program name with args.
4230 set dummy $CXX; ac_word=$2
4231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4233 if test "${ac_cv_path_CXX+set}" = set; then
4234   echo $ECHO_N "(cached) $ECHO_C" >&6
4235 else
4236   case $CXX in
4237   [\\/]* | ?:[\\/]*)
4238   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4239   ;;
4240   *)
4241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244   IFS=$as_save_IFS
4245   test -z "$as_dir" && as_dir=.
4246   for ac_exec_ext in '' $ac_executable_extensions; do
4247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250     break 2
4251   fi
4252 done
4253 done
4254 IFS=$as_save_IFS
4255
4256   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4257   ;;
4258 esac
4259 fi
4260 CXX=$ac_cv_path_CXX
4261 if test -n "$CXX"; then
4262   { echo "$as_me:$LINENO: result: $CXX" >&5
4263 echo "${ECHO_T}$CXX" >&6; }
4264 else
4265   { echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6; }
4267 fi
4268
4269
4270 if test ! -e $CXX; then
4271    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4272 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4273    { (exit 1); exit 1; }; }
4274 fi
4275
4276 # Find a good install program.  We prefer a C program (faster),
4277 # so one script is as good as another.  But avoid the broken or
4278 # incompatible versions:
4279 # SysV /etc/install, /usr/sbin/install
4280 # SunOS /usr/etc/install
4281 # IRIX /sbin/install
4282 # AIX /bin/install
4283 # AmigaOS /C/install, which installs bootblocks on floppy discs
4284 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4285 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4286 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4287 # OS/2's system install, which has a completely different semantic
4288 # ./install, which can be erroneously created by make from ./install.sh.
4289 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4290 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4291 if test -z "$INSTALL"; then
4292 if test "${ac_cv_path_install+set}" = set; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298   IFS=$as_save_IFS
4299   test -z "$as_dir" && as_dir=.
4300   # Account for people who put trailing slashes in PATH elements.
4301 case $as_dir/ in
4302   ./ | .// | /cC/* | \
4303   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4304   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4305   /usr/ucb/* ) ;;
4306   *)
4307     # OSF1 and SCO ODT 3.0 have their own names for install.
4308     # Don't use installbsd from OSF since it installs stuff as root
4309     # by default.
4310     for ac_prog in ginstall scoinst install; do
4311       for ac_exec_ext in '' $ac_executable_extensions; do
4312         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4313           if test $ac_prog = install &&
4314             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4315             # AIX install.  It has an incompatible calling convention.
4316             :
4317           elif test $ac_prog = install &&
4318             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4319             # program-specific install script used by HP pwplus--don't use.
4320             :
4321           else
4322             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4323             break 3
4324           fi
4325         fi
4326       done
4327     done
4328     ;;
4329 esac
4330 done
4331 IFS=$as_save_IFS
4332
4333
4334 fi
4335   if test "${ac_cv_path_install+set}" = set; then
4336     INSTALL=$ac_cv_path_install
4337   else
4338     # As a last resort, use the slow shell script.  Don't cache a
4339     # value for INSTALL within a source directory, because that will
4340     # break other packages using the cache if that directory is
4341     # removed, or if the value is a relative name.
4342     INSTALL=$ac_install_sh
4343   fi
4344 fi
4345 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4346 echo "${ECHO_T}$INSTALL" >&6; }
4347
4348 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4349 # It thinks the first close brace ends the variable substitution.
4350 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4351
4352 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4353
4354 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4355
4356 # Extract the first word of "mv", so it can be a program name with args.
4357 set dummy mv; ac_word=$2
4358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4360 if test "${ac_cv_path_MV+set}" = set; then
4361   echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363   case $MV in
4364   [\\/]* | ?:[\\/]*)
4365   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4366   ;;
4367   *)
4368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373   for ac_exec_ext in '' $ac_executable_extensions; do
4374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380 done
4381 IFS=$as_save_IFS
4382
4383   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4384   ;;
4385 esac
4386 fi
4387 MV=$ac_cv_path_MV
4388 if test -n "$MV"; then
4389   { echo "$as_me:$LINENO: result: $MV" >&5
4390 echo "${ECHO_T}$MV" >&6; }
4391 else
4392   { echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6; }
4394 fi
4395
4396
4397 # Extract the first word of "rm", so it can be a program name with args.
4398 set dummy rm; ac_word=$2
4399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4401 if test "${ac_cv_path_REMOVE+set}" = set; then
4402   echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404   case $REMOVE in
4405   [\\/]* | ?:[\\/]*)
4406   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4407   ;;
4408   *)
4409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 for as_dir in $PATH
4411 do
4412   IFS=$as_save_IFS
4413   test -z "$as_dir" && as_dir=.
4414   for ac_exec_ext in '' $ac_executable_extensions; do
4415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418     break 2
4419   fi
4420 done
4421 done
4422 IFS=$as_save_IFS
4423
4424   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4425   ;;
4426 esac
4427 fi
4428 REMOVE=$ac_cv_path_REMOVE
4429 if test -n "$REMOVE"; then
4430   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4431 echo "${ECHO_T}$REMOVE" >&6; }
4432 else
4433   { echo "$as_me:$LINENO: result: no" >&5
4434 echo "${ECHO_T}no" >&6; }
4435 fi
4436
4437
4438 # Extract the first word of "cp", so it can be a program name with args.
4439 set dummy cp; ac_word=$2
4440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4442 if test "${ac_cv_path_CP+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   case $CP in
4446   [\\/]* | ?:[\\/]*)
4447   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4448   ;;
4449   *)
4450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4452 do
4453   IFS=$as_save_IFS
4454   test -z "$as_dir" && as_dir=.
4455   for ac_exec_ext in '' $ac_executable_extensions; do
4456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459     break 2
4460   fi
4461 done
4462 done
4463 IFS=$as_save_IFS
4464
4465   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4466   ;;
4467 esac
4468 fi
4469 CP=$ac_cv_path_CP
4470 if test -n "$CP"; then
4471   { echo "$as_me:$LINENO: result: $CP" >&5
4472 echo "${ECHO_T}$CP" >&6; }
4473 else
4474   { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4476 fi
4477
4478
4479 # Extract the first word of "sed", so it can be a program name with args.
4480 set dummy sed; ac_word=$2
4481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4483 if test "${ac_cv_path_SED+set}" = set; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   case $SED in
4487   [\\/]* | ?:[\\/]*)
4488   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4489   ;;
4490   *)
4491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494   IFS=$as_save_IFS
4495   test -z "$as_dir" && as_dir=.
4496   for ac_exec_ext in '' $ac_executable_extensions; do
4497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4500     break 2
4501   fi
4502 done
4503 done
4504 IFS=$as_save_IFS
4505
4506   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4507   ;;
4508 esac
4509 fi
4510 SED=$ac_cv_path_SED
4511 if test -n "$SED"; then
4512   { echo "$as_me:$LINENO: result: $SED" >&5
4513 echo "${ECHO_T}$SED" >&6; }
4514 else
4515   { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4517 fi
4518
4519
4520 # Extract the first word of "echo", so it can be a program name with args.
4521 set dummy echo; ac_word=$2
4522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4524 if test "${ac_cv_path_ECHO+set}" = set; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   case $ECHO in
4528   [\\/]* | ?:[\\/]*)
4529   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4530   ;;
4531   *)
4532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4534 do
4535   IFS=$as_save_IFS
4536   test -z "$as_dir" && as_dir=.
4537   for ac_exec_ext in '' $ac_executable_extensions; do
4538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541     break 2
4542   fi
4543 done
4544 done
4545 IFS=$as_save_IFS
4546
4547   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4548   ;;
4549 esac
4550 fi
4551 ECHO=$ac_cv_path_ECHO
4552 if test -n "$ECHO"; then
4553   { echo "$as_me:$LINENO: result: $ECHO" >&5
4554 echo "${ECHO_T}$ECHO" >&6; }
4555 else
4556   { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4558 fi
4559
4560
4561 # Extract the first word of "cmp", so it can be a program name with args.
4562 set dummy cmp; ac_word=$2
4563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4565 if test "${ac_cv_path_CMP+set}" = set; then
4566   echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568   case $CMP in
4569   [\\/]* | ?:[\\/]*)
4570   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4571   ;;
4572   *)
4573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4575 do
4576   IFS=$as_save_IFS
4577   test -z "$as_dir" && as_dir=.
4578   for ac_exec_ext in '' $ac_executable_extensions; do
4579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582     break 2
4583   fi
4584 done
4585 done
4586 IFS=$as_save_IFS
4587
4588   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4589   ;;
4590 esac
4591 fi
4592 CMP=$ac_cv_path_CMP
4593 if test -n "$CMP"; then
4594   { echo "$as_me:$LINENO: result: $CMP" >&5
4595 echo "${ECHO_T}$CMP" >&6; }
4596 else
4597   { echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6; }
4599 fi
4600
4601
4602 # Extract the first word of "tbl", so it can be a program name with args.
4603 set dummy tbl; ac_word=$2
4604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4606 if test "${ac_cv_path_TBL+set}" = set; then
4607   echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609   case $TBL in
4610   [\\/]* | ?:[\\/]*)
4611   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4612   ;;
4613   *)
4614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619   for ac_exec_ext in '' $ac_executable_extensions; do
4620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623     break 2
4624   fi
4625 done
4626 done
4627 IFS=$as_save_IFS
4628
4629   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4630   ;;
4631 esac
4632 fi
4633 TBL=$ac_cv_path_TBL
4634 if test -n "$TBL"; then
4635   { echo "$as_me:$LINENO: result: $TBL" >&5
4636 echo "${ECHO_T}$TBL" >&6; }
4637 else
4638   { echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6; }
4640 fi
4641
4642
4643 # Extract the first word of "ar", so it can be a program name with args.
4644 set dummy ar; ac_word=$2
4645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4647 if test "${ac_cv_path_AR+set}" = set; then
4648   echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650   case $AR in
4651   [\\/]* | ?:[\\/]*)
4652   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4653   ;;
4654   *)
4655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658   IFS=$as_save_IFS
4659   test -z "$as_dir" && as_dir=.
4660   for ac_exec_ext in '' $ac_executable_extensions; do
4661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664     break 2
4665   fi
4666 done
4667 done
4668 IFS=$as_save_IFS
4669
4670   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4671   ;;
4672 esac
4673 fi
4674 AR=$ac_cv_path_AR
4675 if test -n "$AR"; then
4676   { echo "$as_me:$LINENO: result: $AR" >&5
4677 echo "${ECHO_T}$AR" >&6; }
4678 else
4679   { echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6; }
4681 fi
4682
4683
4684 # Extract the first word of "openssl", so it can be a program name with args.
4685 set dummy openssl; ac_word=$2
4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688 if test "${ac_cv_path_OPENSSL+set}" = set; then
4689   echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691   case $OPENSSL in
4692   [\\/]* | ?:[\\/]*)
4693   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4694   ;;
4695   *)
4696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699   IFS=$as_save_IFS
4700   test -z "$as_dir" && as_dir=.
4701   for ac_exec_ext in '' $ac_executable_extensions; do
4702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4703     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705     break 2
4706   fi
4707 done
4708 done
4709 IFS=$as_save_IFS
4710
4711   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4712   ;;
4713 esac
4714 fi
4715 OPENSSL=$ac_cv_path_OPENSSL
4716 if test -n "$OPENSSL"; then
4717   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4718 echo "${ECHO_T}$OPENSSL" >&6; }
4719 else
4720   { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4722 fi
4723
4724
4725 # Extract the first word of "mtx", so it can be a program name with args.
4726 set dummy mtx; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_path_MTX+set}" = set; then
4730   echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732   case $MTX in
4733   [\\/]* | ?:[\\/]*)
4734   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4735   ;;
4736   *)
4737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740   IFS=$as_save_IFS
4741   test -z "$as_dir" && as_dir=.
4742   for ac_exec_ext in '' $ac_executable_extensions; do
4743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746     break 2
4747   fi
4748 done
4749 done
4750 IFS=$as_save_IFS
4751
4752   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4753   ;;
4754 esac
4755 fi
4756 MTX=$ac_cv_path_MTX
4757 if test -n "$MTX"; then
4758   { echo "$as_me:$LINENO: result: $MTX" >&5
4759 echo "${ECHO_T}$MTX" >&6; }
4760 else
4761   { echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6; }
4763 fi
4764
4765
4766 # Extract the first word of "dd", so it can be a program name with args.
4767 set dummy dd; ac_word=$2
4768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770 if test "${ac_cv_path_DD+set}" = set; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   case $DD in
4774   [\\/]* | ?:[\\/]*)
4775   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4776   ;;
4777   *)
4778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4780 do
4781   IFS=$as_save_IFS
4782   test -z "$as_dir" && as_dir=.
4783   for ac_exec_ext in '' $ac_executable_extensions; do
4784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787     break 2
4788   fi
4789 done
4790 done
4791 IFS=$as_save_IFS
4792
4793   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4794   ;;
4795 esac
4796 fi
4797 DD=$ac_cv_path_DD
4798 if test -n "$DD"; then
4799   { echo "$as_me:$LINENO: result: $DD" >&5
4800 echo "${ECHO_T}$DD" >&6; }
4801 else
4802   { echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6; }
4804 fi
4805
4806
4807 # Extract the first word of "mkisofs", so it can be a program name with args.
4808 set dummy mkisofs; ac_word=$2
4809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811 if test "${ac_cv_path_MKISOFS+set}" = set; then
4812   echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814   case $MKISOFS in
4815   [\\/]* | ?:[\\/]*)
4816   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4817   ;;
4818   *)
4819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824   for ac_exec_ext in '' $ac_executable_extensions; do
4825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828     break 2
4829   fi
4830 done
4831 done
4832 IFS=$as_save_IFS
4833
4834   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4835   ;;
4836 esac
4837 fi
4838 MKISOFS=$ac_cv_path_MKISOFS
4839 if test -n "$MKISOFS"; then
4840   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4841 echo "${ECHO_T}$MKISOFS" >&6; }
4842 else
4843   { echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6; }
4845 fi
4846
4847
4848 # Extract the first word of "python", so it can be a program name with args.
4849 set dummy python; ac_word=$2
4850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4852 if test "${ac_cv_path_PYTHON+set}" = set; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   case $PYTHON in
4856   [\\/]* | ?:[\\/]*)
4857   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4858   ;;
4859   *)
4860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863   IFS=$as_save_IFS
4864   test -z "$as_dir" && as_dir=.
4865   for ac_exec_ext in '' $ac_executable_extensions; do
4866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869     break 2
4870   fi
4871 done
4872 done
4873 IFS=$as_save_IFS
4874
4875   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4876   ;;
4877 esac
4878 fi
4879 PYTHON=$ac_cv_path_PYTHON
4880 if test -n "$PYTHON"; then
4881   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4882 echo "${ECHO_T}$PYTHON" >&6; }
4883 else
4884   { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4886 fi
4887
4888
4889 # Extract the first word of "growisofs", so it can be a program name with args.
4890 set dummy growisofs; ac_word=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   case $GROWISOFS in
4897   [\\/]* | ?:[\\/]*)
4898   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4899   ;;
4900   *)
4901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906   for ac_exec_ext in '' $ac_executable_extensions; do
4907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913 done
4914 IFS=$as_save_IFS
4915
4916   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4917   ;;
4918 esac
4919 fi
4920 GROWISOFS=$ac_cv_path_GROWISOFS
4921 if test -n "$GROWISOFS"; then
4922   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4923 echo "${ECHO_T}$GROWISOFS" >&6; }
4924 else
4925   { echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6; }
4927 fi
4928
4929
4930 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4931 set dummy dvd+rw-mediainfo; ac_word=$2
4932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4934 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937   case $DVDRWMEDIAINFO in
4938   [\\/]* | ?:[\\/]*)
4939   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4940   ;;
4941   *)
4942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945   IFS=$as_save_IFS
4946   test -z "$as_dir" && as_dir=.
4947   for ac_exec_ext in '' $ac_executable_extensions; do
4948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951     break 2
4952   fi
4953 done
4954 done
4955 IFS=$as_save_IFS
4956
4957   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4958   ;;
4959 esac
4960 fi
4961 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4962 if test -n "$DVDRWMEDIAINFO"; then
4963   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4964 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4965 else
4966   { echo "$as_me:$LINENO: result: no" >&5
4967 echo "${ECHO_T}no" >&6; }
4968 fi
4969
4970
4971 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4972 set dummy dvd+rw-format; ac_word=$2
4973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4975 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4976   echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978   case $DVDRWFORMAT in
4979   [\\/]* | ?:[\\/]*)
4980   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4981   ;;
4982   *)
4983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4985 do
4986   IFS=$as_save_IFS
4987   test -z "$as_dir" && as_dir=.
4988   for ac_exec_ext in '' $ac_executable_extensions; do
4989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992     break 2
4993   fi
4994 done
4995 done
4996 IFS=$as_save_IFS
4997
4998   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4999   ;;
5000 esac
5001 fi
5002 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5003 if test -n "$DVDRWFORMAT"; then
5004   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5005 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
5006 else
5007   { echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6; }
5009 fi
5010
5011
5012 # Extract the first word of "pkg-config", so it can be a program name with args.
5013 set dummy pkg-config; ac_word=$2
5014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5017   echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019   case $PKGCONFIG in
5020   [\\/]* | ?:[\\/]*)
5021   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5022   ;;
5023   *)
5024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027   IFS=$as_save_IFS
5028   test -z "$as_dir" && as_dir=.
5029   for ac_exec_ext in '' $ac_executable_extensions; do
5030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033     break 2
5034   fi
5035 done
5036 done
5037 IFS=$as_save_IFS
5038
5039   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5040   ;;
5041 esac
5042 fi
5043 PKGCONFIG=$ac_cv_path_PKGCONFIG
5044 if test -n "$PKGCONFIG"; then
5045   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5046 echo "${ECHO_T}$PKGCONFIG" >&6; }
5047 else
5048   { echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6; }
5050 fi
5051
5052
5053 # Extract the first word of "qmake", so it can be a program name with args.
5054 set dummy qmake; ac_word=$2
5055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5057 if test "${ac_cv_path_QMAKE+set}" = set; then
5058   echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060   case $QMAKE in
5061   [\\/]* | ?:[\\/]*)
5062   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5063   ;;
5064   *)
5065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068   IFS=$as_save_IFS
5069   test -z "$as_dir" && as_dir=.
5070   for ac_exec_ext in '' $ac_executable_extensions; do
5071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5072     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074     break 2
5075   fi
5076 done
5077 done
5078 IFS=$as_save_IFS
5079
5080   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5081   ;;
5082 esac
5083 fi
5084 QMAKE=$ac_cv_path_QMAKE
5085 if test -n "$QMAKE"; then
5086   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5087 echo "${ECHO_T}$QMAKE" >&6; }
5088 else
5089   { echo "$as_me:$LINENO: result: no" >&5
5090 echo "${ECHO_T}no" >&6; }
5091 fi
5092
5093
5094 # Extract the first word of "gmake", so it can be a program name with args.
5095 set dummy gmake; ac_word=$2
5096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098 if test "${ac_cv_path_GMAKE+set}" = set; then
5099   echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101   case $GMAKE in
5102   [\\/]* | ?:[\\/]*)
5103   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5104   ;;
5105   *)
5106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109   IFS=$as_save_IFS
5110   test -z "$as_dir" && as_dir=.
5111   for ac_exec_ext in '' $ac_executable_extensions; do
5112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115     break 2
5116   fi
5117 done
5118 done
5119 IFS=$as_save_IFS
5120
5121   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5122   ;;
5123 esac
5124 fi
5125 GMAKE=$ac_cv_path_GMAKE
5126 if test -n "$GMAKE"; then
5127   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5128 echo "${ECHO_T}$GMAKE" >&6; }
5129 else
5130   { echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6; }
5132 fi
5133
5134
5135
5136 if test "x$WXCONFIG" = x; then
5137    WXCONFIG=wx-config
5138 fi
5139 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5140 set dummy ${WXCONFIG}; ac_word=$2
5141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5143 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5144   echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146   case $WXCONFIG in
5147   [\\/]* | ?:[\\/]*)
5148   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5149   ;;
5150   *)
5151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156   for ac_exec_ext in '' $ac_executable_extensions; do
5157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163 done
5164 IFS=$as_save_IFS
5165
5166   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5167   ;;
5168 esac
5169 fi
5170 WXCONFIG=$ac_cv_path_WXCONFIG
5171 if test -n "$WXCONFIG"; then
5172   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5173 echo "${ECHO_T}$WXCONFIG" >&6; }
5174 else
5175   { echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6; }
5177 fi
5178
5179
5180
5181 # Extract the first word of "cdrecord", so it can be a program name with args.
5182 set dummy cdrecord; ac_word=$2
5183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5185 if test "${ac_cv_path_CDRECORD+set}" = set; then
5186   echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188   case $CDRECORD in
5189   [\\/]* | ?:[\\/]*)
5190   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5191   ;;
5192   *)
5193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198   for ac_exec_ext in '' $ac_executable_extensions; do
5199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202     break 2
5203   fi
5204 done
5205 done
5206 IFS=$as_save_IFS
5207
5208   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5209   ;;
5210 esac
5211 fi
5212 CDRECORD=$ac_cv_path_CDRECORD
5213 if test -n "$CDRECORD"; then
5214   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5215 echo "${ECHO_T}$CDRECORD" >&6; }
5216 else
5217   { echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6; }
5219 fi
5220
5221
5222 # Extract the first word of "pidof", so it can be a program name with args.
5223 set dummy pidof; ac_word=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_path_PIDOF+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229   case $PIDOF in
5230   [\\/]* | ?:[\\/]*)
5231   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5232   ;;
5233   *)
5234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237   IFS=$as_save_IFS
5238   test -z "$as_dir" && as_dir=.
5239   for ac_exec_ext in '' $ac_executable_extensions; do
5240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244   fi
5245 done
5246 done
5247 IFS=$as_save_IFS
5248
5249   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5250   ;;
5251 esac
5252 fi
5253 PIDOF=$ac_cv_path_PIDOF
5254 if test -n "$PIDOF"; then
5255   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5256 echo "${ECHO_T}$PIDOF" >&6; }
5257 else
5258   { echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6; }
5260 fi
5261
5262
5263 for ac_prog in gawk mawk nawk awk
5264 do
5265   # Extract the first word of "$ac_prog", so it can be a program name with args.
5266 set dummy $ac_prog; ac_word=$2
5267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5269 if test "${ac_cv_prog_AWK+set}" = set; then
5270   echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272   if test -n "$AWK"; then
5273   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278   IFS=$as_save_IFS
5279   test -z "$as_dir" && as_dir=.
5280   for ac_exec_ext in '' $ac_executable_extensions; do
5281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282     ac_cv_prog_AWK="$ac_prog"
5283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284     break 2
5285   fi
5286 done
5287 done
5288 IFS=$as_save_IFS
5289
5290 fi
5291 fi
5292 AWK=$ac_cv_prog_AWK
5293 if test -n "$AWK"; then
5294   { echo "$as_me:$LINENO: result: $AWK" >&5
5295 echo "${ECHO_T}$AWK" >&6; }
5296 else
5297   { echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6; }
5299 fi
5300
5301
5302   test -n "$AWK" && break
5303 done
5304
5305 # Some AWK programs fail, so test it and warn the user
5306 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5307       { if ((prog == $2) || (("(" prog ")") == $2) ||
5308       (("" prog "") == $2) ||
5309       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5310 else
5311   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5312    The regex engine of $AWK is too broken to be used you
5313    might want to install GNU AWK.
5314    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5315 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5316    The regex engine of $AWK is too broken to be used you
5317    might want to install GNU AWK.
5318    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5319    { (exit 1); exit 1; }; }
5320 fi
5321 THE_AWK=$AWK
5322 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5323 set dummy $THE_AWK; ac_word=$2
5324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5326 if test "${ac_cv_path_AWK+set}" = set; then
5327   echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329   case $AWK in
5330   [\\/]* | ?:[\\/]*)
5331   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5332   ;;
5333   *)
5334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337   IFS=$as_save_IFS
5338   test -z "$as_dir" && as_dir=.
5339   for ac_exec_ext in '' $ac_executable_extensions; do
5340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343     break 2
5344   fi
5345 done
5346 done
5347 IFS=$as_save_IFS
5348
5349   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5350   ;;
5351 esac
5352 fi
5353 AWK=$ac_cv_path_AWK
5354 if test -n "$AWK"; then
5355   { echo "$as_me:$LINENO: result: $AWK" >&5
5356 echo "${ECHO_T}$AWK" >&6; }
5357 else
5358   { echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6; }
5360 fi
5361
5362
5363
5364
5365 test -n "$ARFLAG" || ARFLAGS="cr"
5366
5367
5368 MAKE_SHELL=/bin/sh
5369
5370
5371
5372
5373
5374
5375
5376 use_libtool=yes
5377 # Check whether --enable-libtool was given.
5378 if test "${enable_libtool+set}" = set; then
5379   enableval=$enable_libtool;
5380        if test x$enableval = xno; then
5381           use_libtool=no
5382        fi
5383
5384
5385 fi
5386
5387 case `pwd` in
5388   *\ * | *\     *)
5389     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5390 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5391 esac
5392
5393
5394
5395 macro_version='2.2.6'
5396 macro_revision='1.3012'
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410 ltmain="$ac_aux_dir/ltmain.sh"
5411
5412 # Make sure we can run config.sub.
5413 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5414   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5415 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5416    { (exit 1); exit 1; }; }
5417
5418 { echo "$as_me:$LINENO: checking build system type" >&5
5419 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5420 if test "${ac_cv_build+set}" = set; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423   ac_build_alias=$build_alias
5424 test "x$ac_build_alias" = x &&
5425   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5426 test "x$ac_build_alias" = x &&
5427   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5428 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5429    { (exit 1); exit 1; }; }
5430 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5431   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5432 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5433    { (exit 1); exit 1; }; }
5434
5435 fi
5436 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5437 echo "${ECHO_T}$ac_cv_build" >&6; }
5438 case $ac_cv_build in
5439 *-*-*) ;;
5440 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5441 echo "$as_me: error: invalid value of canonical build" >&2;}
5442    { (exit 1); exit 1; }; };;
5443 esac
5444 build=$ac_cv_build
5445 ac_save_IFS=$IFS; IFS='-'
5446 set x $ac_cv_build
5447 shift
5448 build_cpu=$1
5449 build_vendor=$2
5450 shift; shift
5451 # Remember, the first character of IFS is used to create $*,
5452 # except with old shells:
5453 build_os=$*
5454 IFS=$ac_save_IFS
5455 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5456
5457
5458 { echo "$as_me:$LINENO: checking host system type" >&5
5459 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5460 if test "${ac_cv_host+set}" = set; then
5461   echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463   if test "x$host_alias" = x; then
5464   ac_cv_host=$ac_cv_build
5465 else
5466   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5467     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5468 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5469    { (exit 1); exit 1; }; }
5470 fi
5471
5472 fi
5473 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5474 echo "${ECHO_T}$ac_cv_host" >&6; }
5475 case $ac_cv_host in
5476 *-*-*) ;;
5477 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5478 echo "$as_me: error: invalid value of canonical host" >&2;}
5479    { (exit 1); exit 1; }; };;
5480 esac
5481 host=$ac_cv_host
5482 ac_save_IFS=$IFS; IFS='-'
5483 set x $ac_cv_host
5484 shift
5485 host_cpu=$1
5486 host_vendor=$2
5487 shift; shift
5488 # Remember, the first character of IFS is used to create $*,
5489 # except with old shells:
5490 host_os=$*
5491 IFS=$ac_save_IFS
5492 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5493
5494
5495 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5496 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5497 if test "${ac_cv_path_SED+set}" = set; then
5498   echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5501      for ac_i in 1 2 3 4 5 6 7; do
5502        ac_script="$ac_script$as_nl$ac_script"
5503      done
5504      echo "$ac_script" | sed 99q >conftest.sed
5505      $as_unset ac_script || ac_script=
5506      # Extract the first word of "sed gsed" to use in msg output
5507 if test -z "$SED"; then
5508 set dummy sed gsed; ac_prog_name=$2
5509 if test "${ac_cv_path_SED+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512   ac_path_SED_found=false
5513 # Loop through the user's path and test for each of PROGNAME-LIST
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517   IFS=$as_save_IFS
5518   test -z "$as_dir" && as_dir=.
5519   for ac_prog in sed gsed; do
5520   for ac_exec_ext in '' $ac_executable_extensions; do
5521     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5522     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5523     # Check for GNU ac_path_SED and select it if it is found.
5524   # Check for GNU $ac_path_SED
5525 case `"$ac_path_SED" --version 2>&1` in
5526 *GNU*)
5527   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5528 *)
5529   ac_count=0
5530   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5531   while :
5532   do
5533     cat "conftest.in" "conftest.in" >"conftest.tmp"
5534     mv "conftest.tmp" "conftest.in"
5535     cp "conftest.in" "conftest.nl"
5536     echo '' >> "conftest.nl"
5537     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5538     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5539     ac_count=`expr $ac_count + 1`
5540     if test $ac_count -gt ${ac_path_SED_max-0}; then
5541       # Best one so far, save it but keep looking for a better one
5542       ac_cv_path_SED="$ac_path_SED"
5543       ac_path_SED_max=$ac_count
5544     fi
5545     # 10*(2^10) chars as input seems more than enough
5546     test $ac_count -gt 10 && break
5547   done
5548   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5549 esac
5550
5551
5552     $ac_path_SED_found && break 3
5553   done
5554 done
5555
5556 done
5557 IFS=$as_save_IFS
5558
5559
5560 fi
5561
5562 SED="$ac_cv_path_SED"
5563 if test -z "$SED"; then
5564   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5565 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5566    { (exit 1); exit 1; }; }
5567 fi
5568
5569 else
5570   ac_cv_path_SED=$SED
5571 fi
5572
5573 fi
5574 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5575 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5576  SED="$ac_cv_path_SED"
5577   rm -f conftest.sed
5578
5579 test -z "$SED" && SED=sed
5580 Xsed="$SED -e 1s/^X//"
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592 { echo "$as_me:$LINENO: checking for fgrep" >&5
5593 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5594 if test "${ac_cv_path_FGREP+set}" = set; then
5595   echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5598    then ac_cv_path_FGREP="$GREP -F"
5599    else
5600      # Extract the first word of "fgrep" to use in msg output
5601 if test -z "$FGREP"; then
5602 set dummy fgrep; ac_prog_name=$2
5603 if test "${ac_cv_path_FGREP+set}" = set; then
5604   echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606   ac_path_FGREP_found=false
5607 # Loop through the user's path and test for each of PROGNAME-LIST
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5610 do
5611   IFS=$as_save_IFS
5612   test -z "$as_dir" && as_dir=.
5613   for ac_prog in fgrep; do
5614   for ac_exec_ext in '' $ac_executable_extensions; do
5615     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5616     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5617     # Check for GNU ac_path_FGREP and select it if it is found.
5618   # Check for GNU $ac_path_FGREP
5619 case `"$ac_path_FGREP" --version 2>&1` in
5620 *GNU*)
5621   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5622 *)
5623   ac_count=0
5624   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5625   while :
5626   do
5627     cat "conftest.in" "conftest.in" >"conftest.tmp"
5628     mv "conftest.tmp" "conftest.in"
5629     cp "conftest.in" "conftest.nl"
5630     echo 'FGREP' >> "conftest.nl"
5631     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5632     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5633     ac_count=`expr $ac_count + 1`
5634     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5635       # Best one so far, save it but keep looking for a better one
5636       ac_cv_path_FGREP="$ac_path_FGREP"
5637       ac_path_FGREP_max=$ac_count
5638     fi
5639     # 10*(2^10) chars as input seems more than enough
5640     test $ac_count -gt 10 && break
5641   done
5642   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5643 esac
5644
5645
5646     $ac_path_FGREP_found && break 3
5647   done
5648 done
5649
5650 done
5651 IFS=$as_save_IFS
5652
5653
5654 fi
5655
5656 FGREP="$ac_cv_path_FGREP"
5657 if test -z "$FGREP"; then
5658   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5659 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5660    { (exit 1); exit 1; }; }
5661 fi
5662
5663 else
5664   ac_cv_path_FGREP=$FGREP
5665 fi
5666
5667
5668    fi
5669 fi
5670 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5671 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5672  FGREP="$ac_cv_path_FGREP"
5673
5674
5675 test -z "$GREP" && GREP=grep
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695 # Check whether --with-gnu-ld was given.
5696 if test "${with_gnu_ld+set}" = set; then
5697   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5698 else
5699   with_gnu_ld=no
5700 fi
5701
5702 ac_prog=ld
5703 if test "$GCC" = yes; then
5704   # Check if gcc -print-prog-name=ld gives a path.
5705   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5706 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5707   case $host in
5708   *-*-mingw*)
5709     # gcc leaves a trailing carriage return which upsets mingw
5710     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5711   *)
5712     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5713   esac
5714   case $ac_prog in
5715     # Accept absolute paths.
5716     [\\/]* | ?:[\\/]*)
5717       re_direlt='/[^/][^/]*/\.\./'
5718       # Canonicalize the pathname of ld
5719       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5720       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5721         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5722       done
5723       test -z "$LD" && LD="$ac_prog"
5724       ;;
5725   "")
5726     # If it fails, then pretend we aren't using GCC.
5727     ac_prog=ld
5728     ;;
5729   *)
5730     # If it is relative, then search for the first ld in PATH.
5731     with_gnu_ld=unknown
5732     ;;
5733   esac
5734 elif test "$with_gnu_ld" = yes; then
5735   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5736 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5737 else
5738   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5739 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5740 fi
5741 if test "${lt_cv_path_LD+set}" = set; then
5742   echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744   if test -z "$LD"; then
5745   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5746   for ac_dir in $PATH; do
5747     IFS="$lt_save_ifs"
5748     test -z "$ac_dir" && ac_dir=.
5749     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5750       lt_cv_path_LD="$ac_dir/$ac_prog"
5751       # Check to see if the program is GNU ld.  I'd rather use --version,
5752       # but apparently some variants of GNU ld only accept -v.
5753       # Break only if it was the GNU/non-GNU ld that we prefer.
5754       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5755       *GNU* | *'with BFD'*)
5756         test "$with_gnu_ld" != no && break
5757         ;;
5758       *)
5759         test "$with_gnu_ld" != yes && break
5760         ;;
5761       esac
5762     fi
5763   done
5764   IFS="$lt_save_ifs"
5765 else
5766   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5767 fi
5768 fi
5769
5770 LD="$lt_cv_path_LD"
5771 if test -n "$LD"; then
5772   { echo "$as_me:$LINENO: result: $LD" >&5
5773 echo "${ECHO_T}$LD" >&6; }
5774 else
5775   { echo "$as_me:$LINENO: result: no" >&5
5776 echo "${ECHO_T}no" >&6; }
5777 fi
5778 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5779 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5780    { (exit 1); exit 1; }; }
5781 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5782 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5783 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5787 case `$LD -v 2>&1 </dev/null` in
5788 *GNU* | *'with BFD'*)
5789   lt_cv_prog_gnu_ld=yes
5790   ;;
5791 *)
5792   lt_cv_prog_gnu_ld=no
5793   ;;
5794 esac
5795 fi
5796 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5797 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5798 with_gnu_ld=$lt_cv_prog_gnu_ld
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5809 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5810 if test "${lt_cv_path_NM+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   if test -n "$NM"; then
5814   # Let the user override the test.
5815   lt_cv_path_NM="$NM"
5816 else
5817   lt_nm_to_check="${ac_tool_prefix}nm"
5818   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5819     lt_nm_to_check="$lt_nm_to_check nm"
5820   fi
5821   for lt_tmp_nm in $lt_nm_to_check; do
5822     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5823     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5824       IFS="$lt_save_ifs"
5825       test -z "$ac_dir" && ac_dir=.
5826       tmp_nm="$ac_dir/$lt_tmp_nm"
5827       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5828         # Check to see if the nm accepts a BSD-compat flag.
5829         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5830         #   nm: unknown option "B" ignored
5831         # Tru64's nm complains that /dev/null is an invalid object file
5832         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5833         */dev/null* | *'Invalid file or object type'*)
5834           lt_cv_path_NM="$tmp_nm -B"
5835           break
5836           ;;
5837         *)
5838           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5839           */dev/null*)
5840             lt_cv_path_NM="$tmp_nm -p"
5841             break
5842             ;;
5843           *)
5844             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5845             continue # so that we can try to find one that supports BSD flags
5846             ;;
5847           esac
5848           ;;
5849         esac
5850       fi
5851     done
5852     IFS="$lt_save_ifs"
5853   done
5854   : ${lt_cv_path_NM=no}
5855 fi
5856 fi
5857 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5858 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5859 if test "$lt_cv_path_NM" != "no"; then
5860   NM="$lt_cv_path_NM"
5861 else
5862   # Didn't find any BSD compatible name lister, look for dumpbin.
5863   if test -n "$ac_tool_prefix"; then
5864   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5865   do
5866     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5870 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873   if test -n "$DUMPBIN"; then
5874   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881   for ac_exec_ext in '' $ac_executable_extensions; do
5882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888 done
5889 IFS=$as_save_IFS
5890
5891 fi
5892 fi
5893 DUMPBIN=$ac_cv_prog_DUMPBIN
5894 if test -n "$DUMPBIN"; then
5895   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5896 echo "${ECHO_T}$DUMPBIN" >&6; }
5897 else
5898   { echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6; }
5900 fi
5901
5902
5903     test -n "$DUMPBIN" && break
5904   done
5905 fi
5906 if test -z "$DUMPBIN"; then
5907   ac_ct_DUMPBIN=$DUMPBIN
5908   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5909 do
5910   # Extract the first word of "$ac_prog", so it can be a program name with args.
5911 set dummy $ac_prog; ac_word=$2
5912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   if test -n "$ac_ct_DUMPBIN"; then
5918   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925   for ac_exec_ext in '' $ac_executable_extensions; do
5926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932 done
5933 IFS=$as_save_IFS
5934
5935 fi
5936 fi
5937 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5938 if test -n "$ac_ct_DUMPBIN"; then
5939   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5940 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5941 else
5942   { echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6; }
5944 fi
5945
5946
5947   test -n "$ac_ct_DUMPBIN" && break
5948 done
5949
5950   if test "x$ac_ct_DUMPBIN" = x; then
5951     DUMPBIN=":"
5952   else
5953     case $cross_compiling:$ac_tool_warned in
5954 yes:)
5955 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5956 whose name does not start with the host triplet.  If you think this
5957 configuration is useful to you, please write to autoconf@gnu.org." >&5
5958 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5959 whose name does not start with the host triplet.  If you think this
5960 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5961 ac_tool_warned=yes ;;
5962 esac
5963     DUMPBIN=$ac_ct_DUMPBIN
5964   fi
5965 fi
5966
5967
5968   if test "$DUMPBIN" != ":"; then
5969     NM="$DUMPBIN"
5970   fi
5971 fi
5972 test -z "$NM" && NM=nm
5973
5974
5975
5976
5977
5978
5979 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5980 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5981 if test "${lt_cv_nm_interface+set}" = set; then
5982   echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984   lt_cv_nm_interface="BSD nm"
5985   echo "int some_variable = 0;" > conftest.$ac_ext
5986   (eval echo "\"\$as_me:5986: $ac_compile\"" >&5)
5987   (eval "$ac_compile" 2>conftest.err)
5988   cat conftest.err >&5
5989   (eval echo "\"\$as_me:5989: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5990   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5991   cat conftest.err >&5
5992   (eval echo "\"\$as_me:5992: output\"" >&5)
5993   cat conftest.out >&5
5994   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5995     lt_cv_nm_interface="MS dumpbin"
5996   fi
5997   rm -f conftest*
5998 fi
5999 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6000 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6001
6002 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6003 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6004 LN_S=$as_ln_s
6005 if test "$LN_S" = "ln -s"; then
6006   { echo "$as_me:$LINENO: result: yes" >&5
6007 echo "${ECHO_T}yes" >&6; }
6008 else
6009   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6010 echo "${ECHO_T}no, using $LN_S" >&6; }
6011 fi
6012
6013 # find the maximum length of command line arguments
6014 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6015 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6016 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6017   echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019     i=0
6020   teststring="ABCD"
6021
6022   case $build_os in
6023   msdosdjgpp*)
6024     # On DJGPP, this test can blow up pretty badly due to problems in libc
6025     # (any single argument exceeding 2000 bytes causes a buffer overrun
6026     # during glob expansion).  Even if it were fixed, the result of this
6027     # check would be larger than it should be.
6028     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6029     ;;
6030
6031   gnu*)
6032     # Under GNU Hurd, this test is not required because there is
6033     # no limit to the length of command line arguments.
6034     # Libtool will interpret -1 as no limit whatsoever
6035     lt_cv_sys_max_cmd_len=-1;
6036     ;;
6037
6038   cygwin* | mingw* | cegcc*)
6039     # On Win9x/ME, this test blows up -- it succeeds, but takes
6040     # about 5 minutes as the teststring grows exponentially.
6041     # Worse, since 9x/ME are not pre-emptively multitasking,
6042     # you end up with a "frozen" computer, even though with patience
6043     # the test eventually succeeds (with a max line length of 256k).
6044     # Instead, let's just punt: use the minimum linelength reported by
6045     # all of the supported platforms: 8192 (on NT/2K/XP).
6046     lt_cv_sys_max_cmd_len=8192;
6047     ;;
6048
6049   amigaos*)
6050     # On AmigaOS with pdksh, this test takes hours, literally.
6051     # So we just punt and use a minimum line length of 8192.
6052     lt_cv_sys_max_cmd_len=8192;
6053     ;;
6054
6055   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6056     # This has been around since 386BSD, at least.  Likely further.
6057     if test -x /sbin/sysctl; then
6058       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6059     elif test -x /usr/sbin/sysctl; then
6060       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6061     else
6062       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6063     fi
6064     # And add a safety zone
6065     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6066     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6067     ;;
6068
6069   interix*)
6070     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6071     lt_cv_sys_max_cmd_len=196608
6072     ;;
6073
6074   osf*)
6075     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6076     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6077     # nice to cause kernel panics so lets avoid the loop below.
6078     # First set a reasonable default.
6079     lt_cv_sys_max_cmd_len=16384
6080     #
6081     if test -x /sbin/sysconfig; then
6082       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6083         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6084       esac
6085     fi
6086     ;;
6087   sco3.2v5*)
6088     lt_cv_sys_max_cmd_len=102400
6089     ;;
6090   sysv5* | sco5v6* | sysv4.2uw2*)
6091     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6092     if test -n "$kargmax"; then
6093       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6094     else
6095       lt_cv_sys_max_cmd_len=32768
6096     fi
6097     ;;
6098   *)
6099     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6100     if test -n "$lt_cv_sys_max_cmd_len"; then
6101       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6102       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6103     else
6104       # Make teststring a little bigger before we do anything with it.
6105       # a 1K string should be a reasonable start.
6106       for i in 1 2 3 4 5 6 7 8 ; do
6107         teststring=$teststring$teststring
6108       done
6109       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6110       # If test is not a shell built-in, we'll probably end up computing a
6111       # maximum length that is only half of the actual maximum length, but
6112       # we can't tell.
6113       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6114                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6115               test $i != 17 # 1/2 MB should be enough
6116       do
6117         i=`expr $i + 1`
6118         teststring=$teststring$teststring
6119       done
6120       # Only check the string length outside the loop.
6121       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6122       teststring=
6123       # Add a significant safety factor because C++ compilers can tack on
6124       # massive amounts of additional arguments before passing them to the
6125       # linker.  It appears as though 1/2 is a usable value.
6126       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6127     fi
6128     ;;
6129   esac
6130
6131 fi
6132
6133 if test -n $lt_cv_sys_max_cmd_len ; then
6134   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6135 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6136 else
6137   { echo "$as_me:$LINENO: result: none" >&5
6138 echo "${ECHO_T}none" >&6; }
6139 fi
6140 max_cmd_len=$lt_cv_sys_max_cmd_len
6141
6142
6143
6144
6145
6146
6147 : ${CP="cp -f"}
6148 : ${MV="mv -f"}
6149 : ${RM="rm -f"}
6150
6151 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6152 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6153 # Try some XSI features
6154 xsi_shell=no
6155 ( _lt_dummy="a/b/c"
6156   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6157       = c,a/b,, \
6158     && eval 'test $(( 1 + 1 )) -eq 2 \
6159     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6160   && xsi_shell=yes
6161 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6162 echo "${ECHO_T}$xsi_shell" >&6; }
6163
6164
6165 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6166 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6167 lt_shell_append=no
6168 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6169     >/dev/null 2>&1 \
6170   && lt_shell_append=yes
6171 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6172 echo "${ECHO_T}$lt_shell_append" >&6; }
6173
6174
6175 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6176   lt_unset=unset
6177 else
6178   lt_unset=false
6179 fi
6180
6181
6182
6183
6184
6185 # test EBCDIC or ASCII
6186 case `echo X|tr X '\101'` in
6187  A) # ASCII based system
6188     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6189   lt_SP2NL='tr \040 \012'
6190   lt_NL2SP='tr \015\012 \040\040'
6191   ;;
6192  *) # EBCDIC based system
6193   lt_SP2NL='tr \100 \n'
6194   lt_NL2SP='tr \r\n \100\100'
6195   ;;
6196 esac
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6207 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6208 if test "${lt_cv_ld_reload_flag+set}" = set; then
6209   echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211   lt_cv_ld_reload_flag='-r'
6212 fi
6213 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6214 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6215 reload_flag=$lt_cv_ld_reload_flag
6216 case $reload_flag in
6217 "" | " "*) ;;
6218 *) reload_flag=" $reload_flag" ;;
6219 esac
6220 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6221 case $host_os in
6222   darwin*)
6223     if test "$GCC" = yes; then
6224       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6225     else
6226       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6227     fi
6228     ;;
6229 esac
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239 if test -n "$ac_tool_prefix"; then
6240   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6241 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247   if test -n "$OBJDUMP"; then
6248   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253   IFS=$as_save_IFS
6254   test -z "$as_dir" && as_dir=.
6255   for ac_exec_ext in '' $ac_executable_extensions; do
6256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259     break 2
6260   fi
6261 done
6262 done
6263 IFS=$as_save_IFS
6264
6265 fi
6266 fi
6267 OBJDUMP=$ac_cv_prog_OBJDUMP
6268 if test -n "$OBJDUMP"; then
6269   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6270 echo "${ECHO_T}$OBJDUMP" >&6; }
6271 else
6272   { echo "$as_me:$LINENO: result: no" >&5
6273 echo "${ECHO_T}no" >&6; }
6274 fi
6275
6276
6277 fi
6278 if test -z "$ac_cv_prog_OBJDUMP"; then
6279   ac_ct_OBJDUMP=$OBJDUMP
6280   # Extract the first word of "objdump", so it can be a program name with args.
6281 set dummy objdump; ac_word=$2
6282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6284 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   if test -n "$ac_ct_OBJDUMP"; then
6288   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293   IFS=$as_save_IFS
6294   test -z "$as_dir" && as_dir=.
6295   for ac_exec_ext in '' $ac_executable_extensions; do
6296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299     break 2
6300   fi
6301 done
6302 done
6303 IFS=$as_save_IFS
6304
6305 fi
6306 fi
6307 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6308 if test -n "$ac_ct_OBJDUMP"; then
6309   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6310 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6311 else
6312   { echo "$as_me:$LINENO: result: no" >&5
6313 echo "${ECHO_T}no" >&6; }
6314 fi
6315
6316   if test "x$ac_ct_OBJDUMP" = x; then
6317     OBJDUMP="false"
6318   else
6319     case $cross_compiling:$ac_tool_warned in
6320 yes:)
6321 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6322 whose name does not start with the host triplet.  If you think this
6323 configuration is useful to you, please write to autoconf@gnu.org." >&5
6324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6325 whose name does not start with the host triplet.  If you think this
6326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6327 ac_tool_warned=yes ;;
6328 esac
6329     OBJDUMP=$ac_ct_OBJDUMP
6330   fi
6331 else
6332   OBJDUMP="$ac_cv_prog_OBJDUMP"
6333 fi
6334
6335 test -z "$OBJDUMP" && OBJDUMP=objdump
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6346 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6347 if test "${lt_cv_deplibs_check_method+set}" = set; then
6348   echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350   lt_cv_file_magic_cmd='$MAGIC_CMD'
6351 lt_cv_file_magic_test_file=
6352 lt_cv_deplibs_check_method='unknown'
6353 # Need to set the preceding variable on all platforms that support
6354 # interlibrary dependencies.
6355 # 'none' -- dependencies not supported.
6356 # `unknown' -- same as none, but documents that we really don't know.
6357 # 'pass_all' -- all dependencies passed with no checks.
6358 # 'test_compile' -- check by making test program.
6359 # 'file_magic [[regex]]' -- check by looking for files in library path
6360 # which responds to the $file_magic_cmd with a given extended regex.
6361 # If you have `file' or equivalent on your system and you're not sure
6362 # whether `pass_all' will *always* work, you probably want this one.
6363
6364 case $host_os in
6365 aix[4-9]*)
6366   lt_cv_deplibs_check_method=pass_all
6367   ;;
6368
6369 beos*)
6370   lt_cv_deplibs_check_method=pass_all
6371   ;;
6372
6373 bsdi[45]*)
6374   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6375   lt_cv_file_magic_cmd='/usr/bin/file -L'
6376   lt_cv_file_magic_test_file=/shlib/libc.so
6377   ;;
6378
6379 cygwin*)
6380   # func_win32_libid is a shell function defined in ltmain.sh
6381   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6382   lt_cv_file_magic_cmd='func_win32_libid'
6383   ;;
6384
6385 mingw* | pw32*)
6386   # Base MSYS/MinGW do not provide the 'file' command needed by
6387   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6388   # unless we find 'file', for example because we are cross-compiling.
6389   if ( file / ) >/dev/null 2>&1; then
6390     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6391     lt_cv_file_magic_cmd='func_win32_libid'
6392   else
6393     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6394     lt_cv_file_magic_cmd='$OBJDUMP -f'
6395   fi
6396   ;;
6397
6398 cegcc)
6399   # use the weaker test based on 'objdump'. See mingw*.
6400   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6401   lt_cv_file_magic_cmd='$OBJDUMP -f'
6402   ;;
6403
6404 darwin* | rhapsody*)
6405   lt_cv_deplibs_check_method=pass_all
6406   ;;
6407
6408 freebsd* | dragonfly*)
6409   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6410     case $host_cpu in
6411     i*86 )
6412       # Not sure whether the presence of OpenBSD here was a mistake.
6413       # Let's accept both of them until this is cleared up.
6414       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6415       lt_cv_file_magic_cmd=/usr/bin/file
6416       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6417       ;;
6418     esac
6419   else
6420     lt_cv_deplibs_check_method=pass_all
6421   fi
6422   ;;
6423
6424 gnu*)
6425   lt_cv_deplibs_check_method=pass_all
6426   ;;
6427
6428 hpux10.20* | hpux11*)
6429   lt_cv_file_magic_cmd=/usr/bin/file
6430   case $host_cpu in
6431   ia64*)
6432     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6433     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6434     ;;
6435   hppa*64*)
6436     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]'
6437     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6438     ;;
6439   *)
6440     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6441     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6442     ;;
6443   esac
6444   ;;
6445
6446 interix[3-9]*)
6447   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6448   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6449   ;;
6450
6451 irix5* | irix6* | nonstopux*)
6452   case $LD in
6453   *-32|*"-32 ") libmagic=32-bit;;
6454   *-n32|*"-n32 ") libmagic=N32;;
6455   *-64|*"-64 ") libmagic=64-bit;;
6456   *) libmagic=never-match;;
6457   esac
6458   lt_cv_deplibs_check_method=pass_all
6459   ;;
6460
6461 # This must be Linux ELF.
6462 linux* | k*bsd*-gnu)
6463   lt_cv_deplibs_check_method=pass_all
6464   ;;
6465
6466 netbsd*)
6467   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6468     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6469   else
6470     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6471   fi
6472   ;;
6473
6474 newos6*)
6475   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6476   lt_cv_file_magic_cmd=/usr/bin/file
6477   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6478   ;;
6479
6480 *nto* | *qnx*)
6481   lt_cv_deplibs_check_method=pass_all
6482   ;;
6483
6484 openbsd*)
6485   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6486     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6487   else
6488     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6489   fi
6490   ;;
6491
6492 osf3* | osf4* | osf5*)
6493   lt_cv_deplibs_check_method=pass_all
6494   ;;
6495
6496 rdos*)
6497   lt_cv_deplibs_check_method=pass_all
6498   ;;
6499
6500 solaris*)
6501   lt_cv_deplibs_check_method=pass_all
6502   ;;
6503
6504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6505   lt_cv_deplibs_check_method=pass_all
6506   ;;
6507
6508 sysv4 | sysv4.3*)
6509   case $host_vendor in
6510   motorola)
6511     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]'
6512     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6513     ;;
6514   ncr)
6515     lt_cv_deplibs_check_method=pass_all
6516     ;;
6517   sequent)
6518     lt_cv_file_magic_cmd='/bin/file'
6519     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6520     ;;
6521   sni)
6522     lt_cv_file_magic_cmd='/bin/file'
6523     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6524     lt_cv_file_magic_test_file=/lib/libc.so
6525     ;;
6526   siemens)
6527     lt_cv_deplibs_check_method=pass_all
6528     ;;
6529   pc)
6530     lt_cv_deplibs_check_method=pass_all
6531     ;;
6532   esac
6533   ;;
6534
6535 tpf*)
6536   lt_cv_deplibs_check_method=pass_all
6537   ;;
6538 esac
6539
6540 fi
6541 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6542 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6543 file_magic_cmd=$lt_cv_file_magic_cmd
6544 deplibs_check_method=$lt_cv_deplibs_check_method
6545 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558 if test -n "$ac_tool_prefix"; then
6559   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6560 set dummy ${ac_tool_prefix}ar; ac_word=$2
6561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6563 if test "${ac_cv_prog_AR+set}" = set; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566   if test -n "$AR"; then
6567   ac_cv_prog_AR="$AR" # Let the user override the test.
6568 else
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6571 do
6572   IFS=$as_save_IFS
6573   test -z "$as_dir" && as_dir=.
6574   for ac_exec_ext in '' $ac_executable_extensions; do
6575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6576     ac_cv_prog_AR="${ac_tool_prefix}ar"
6577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578     break 2
6579   fi
6580 done
6581 done
6582 IFS=$as_save_IFS
6583
6584 fi
6585 fi
6586 AR=$ac_cv_prog_AR
6587 if test -n "$AR"; then
6588   { echo "$as_me:$LINENO: result: $AR" >&5
6589 echo "${ECHO_T}$AR" >&6; }
6590 else
6591   { echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6; }
6593 fi
6594
6595
6596 fi
6597 if test -z "$ac_cv_prog_AR"; then
6598   ac_ct_AR=$AR
6599   # Extract the first word of "ar", so it can be a program name with args.
6600 set dummy ar; ac_word=$2
6601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6603 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6604   echo $ECHO_N "(cached) $ECHO_C" >&6
6605 else
6606   if test -n "$ac_ct_AR"; then
6607   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612   IFS=$as_save_IFS
6613   test -z "$as_dir" && as_dir=.
6614   for ac_exec_ext in '' $ac_executable_extensions; do
6615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6616     ac_cv_prog_ac_ct_AR="ar"
6617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618     break 2
6619   fi
6620 done
6621 done
6622 IFS=$as_save_IFS
6623
6624 fi
6625 fi
6626 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6627 if test -n "$ac_ct_AR"; then
6628   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6629 echo "${ECHO_T}$ac_ct_AR" >&6; }
6630 else
6631   { echo "$as_me:$LINENO: result: no" >&5
6632 echo "${ECHO_T}no" >&6; }
6633 fi
6634
6635   if test "x$ac_ct_AR" = x; then
6636     AR="false"
6637   else
6638     case $cross_compiling:$ac_tool_warned in
6639 yes:)
6640 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6641 whose name does not start with the host triplet.  If you think this
6642 configuration is useful to you, please write to autoconf@gnu.org." >&5
6643 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6644 whose name does not start with the host triplet.  If you think this
6645 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6646 ac_tool_warned=yes ;;
6647 esac
6648     AR=$ac_ct_AR
6649   fi
6650 else
6651   AR="$ac_cv_prog_AR"
6652 fi
6653
6654 test -z "$AR" && AR=ar
6655 test -z "$AR_FLAGS" && AR_FLAGS=cru
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667 if test -n "$ac_tool_prefix"; then
6668   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}strip; ac_word=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_prog_STRIP+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675   if test -n "$STRIP"; then
6676   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683   for ac_exec_ext in '' $ac_executable_extensions; do
6684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687     break 2
6688   fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6692
6693 fi
6694 fi
6695 STRIP=$ac_cv_prog_STRIP
6696 if test -n "$STRIP"; then
6697   { echo "$as_me:$LINENO: result: $STRIP" >&5
6698 echo "${ECHO_T}$STRIP" >&6; }
6699 else
6700   { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6702 fi
6703
6704
6705 fi
6706 if test -z "$ac_cv_prog_STRIP"; then
6707   ac_ct_STRIP=$STRIP
6708   # Extract the first word of "strip", so it can be a program name with args.
6709 set dummy strip; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   if test -n "$ac_ct_STRIP"; then
6716   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723   for ac_exec_ext in '' $ac_executable_extensions; do
6724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725     ac_cv_prog_ac_ct_STRIP="strip"
6726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727     break 2
6728   fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6736 if test -n "$ac_ct_STRIP"; then
6737   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6738 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6739 else
6740   { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6742 fi
6743
6744   if test "x$ac_ct_STRIP" = x; then
6745     STRIP=":"
6746   else
6747     case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6750 whose name does not start with the host triplet.  If you think this
6751 configuration is useful to you, please write to autoconf@gnu.org." >&5
6752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6753 whose name does not start with the host triplet.  If you think this
6754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6755 ac_tool_warned=yes ;;
6756 esac
6757     STRIP=$ac_ct_STRIP
6758   fi
6759 else
6760   STRIP="$ac_cv_prog_STRIP"
6761 fi
6762
6763 test -z "$STRIP" && STRIP=:
6764
6765
6766
6767
6768
6769
6770 if test -n "$ac_tool_prefix"; then
6771   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6772 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_prog_RANLIB+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778   if test -n "$RANLIB"; then
6779   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784   IFS=$as_save_IFS
6785   test -z "$as_dir" && as_dir=.
6786   for ac_exec_ext in '' $ac_executable_extensions; do
6787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790     break 2
6791   fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 RANLIB=$ac_cv_prog_RANLIB
6799 if test -n "$RANLIB"; then
6800   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6801 echo "${ECHO_T}$RANLIB" >&6; }
6802 else
6803   { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6805 fi
6806
6807
6808 fi
6809 if test -z "$ac_cv_prog_RANLIB"; then
6810   ac_ct_RANLIB=$RANLIB
6811   # Extract the first word of "ranlib", so it can be a program name with args.
6812 set dummy ranlib; ac_word=$2
6813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6816   echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818   if test -n "$ac_ct_RANLIB"; then
6819   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824   IFS=$as_save_IFS
6825   test -z "$as_dir" && as_dir=.
6826   for ac_exec_ext in '' $ac_executable_extensions; do
6827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828     ac_cv_prog_ac_ct_RANLIB="ranlib"
6829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830     break 2
6831   fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6839 if test -n "$ac_ct_RANLIB"; then
6840   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6841 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6842 else
6843   { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6845 fi
6846
6847   if test "x$ac_ct_RANLIB" = x; then
6848     RANLIB=":"
6849   else
6850     case $cross_compiling:$ac_tool_warned in
6851 yes:)
6852 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6853 whose name does not start with the host triplet.  If you think this
6854 configuration is useful to you, please write to autoconf@gnu.org." >&5
6855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6856 whose name does not start with the host triplet.  If you think this
6857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6858 ac_tool_warned=yes ;;
6859 esac
6860     RANLIB=$ac_ct_RANLIB
6861   fi
6862 else
6863   RANLIB="$ac_cv_prog_RANLIB"
6864 fi
6865
6866 test -z "$RANLIB" && RANLIB=:
6867
6868
6869
6870
6871
6872
6873 # Determine commands to create old-style static archives.
6874 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6875 old_postinstall_cmds='chmod 644 $oldlib'
6876 old_postuninstall_cmds=
6877
6878 if test -n "$RANLIB"; then
6879   case $host_os in
6880   openbsd*)
6881     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6882     ;;
6883   *)
6884     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6885     ;;
6886   esac
6887   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6888 fi
6889
6890
6891
6892
6893
6894
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 # If no C compiler was specified, use CC.
6924 LTCC=${LTCC-"$CC"}
6925
6926 # If no C compiler flags were specified, use CFLAGS.
6927 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6928
6929 # Allow CC to be a program name with arguments.
6930 compiler=$CC
6931
6932
6933 # Check for command to grab the raw symbol name followed by C symbol from nm.
6934 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6935 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6936 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6937   echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939
6940 # These are sane defaults that work on at least a few old systems.
6941 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6942
6943 # Character class describing NM global symbol codes.
6944 symcode='[BCDEGRST]'
6945
6946 # Regexp to match symbols that can be accessed directly from C.
6947 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6948
6949 # Define system-specific variables.
6950 case $host_os in
6951 aix*)
6952   symcode='[BCDT]'
6953   ;;
6954 cygwin* | mingw* | pw32* | cegcc*)
6955   symcode='[ABCDGISTW]'
6956   ;;
6957 hpux*)
6958   if test "$host_cpu" = ia64; then
6959     symcode='[ABCDEGRST]'
6960   fi
6961   ;;
6962 irix* | nonstopux*)
6963   symcode='[BCDEGRST]'
6964   ;;
6965 osf*)
6966   symcode='[BCDEGQRST]'
6967   ;;
6968 solaris*)
6969   symcode='[BDRT]'
6970   ;;
6971 sco3.2v5*)
6972   symcode='[DT]'
6973   ;;
6974 sysv4.2uw2*)
6975   symcode='[DT]'
6976   ;;
6977 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6978   symcode='[ABDT]'
6979   ;;
6980 sysv4)
6981   symcode='[DFNSTU]'
6982   ;;
6983 esac
6984
6985 # If we're using GNU nm, then use its standard symbol codes.
6986 case `$NM -V 2>&1` in
6987 *GNU* | *'with BFD'*)
6988   symcode='[ABCDGIRSTW]' ;;
6989 esac
6990
6991 # Transform an extracted symbol line into a proper C declaration.
6992 # Some systems (esp. on ia64) link data and code symbols differently,
6993 # so use this general approach.
6994 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6995
6996 # Transform an extracted symbol line into symbol name and symbol address
6997 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6998 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'"
6999
7000 # Handle CRLF in mingw tool chain
7001 opt_cr=
7002 case $build_os in
7003 mingw*)
7004   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7005   ;;
7006 esac
7007
7008 # Try without a prefix underscore, then with it.
7009 for ac_symprfx in "" "_"; do
7010
7011   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7012   symxfrm="\\1 $ac_symprfx\\2 \\2"
7013
7014   # Write the raw and C identifiers.
7015   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7016     # Fake it for dumpbin and say T for any non-static function
7017     # and D for any global variable.
7018     # Also find C++ and __fastcall symbols from MSVC++,
7019     # which start with @ or ?.
7020     lt_cv_sys_global_symbol_pipe="$AWK '"\
7021 "     {last_section=section; section=\$ 3};"\
7022 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7023 "     \$ 0!~/External *\|/{next};"\
7024 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7025 "     {if(hide[section]) next};"\
7026 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7027 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7028 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7029 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7030 "     ' prfx=^$ac_symprfx"
7031   else
7032     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7033   fi
7034
7035   # Check to see that the pipe works correctly.
7036   pipe_works=no
7037
7038   rm -f conftest*
7039   cat > conftest.$ac_ext <<_LT_EOF
7040 #ifdef __cplusplus
7041 extern "C" {
7042 #endif
7043 char nm_test_var;
7044 void nm_test_func(void);
7045 void nm_test_func(void){}
7046 #ifdef __cplusplus
7047 }
7048 #endif
7049 int main(){nm_test_var='a';nm_test_func();return(0);}
7050 _LT_EOF
7051
7052   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7053   (eval $ac_compile) 2>&5
7054   ac_status=$?
7055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056   (exit $ac_status); }; then
7057     # Now try to grab the symbols.
7058     nlist=conftest.nm
7059     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7060   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7061   ac_status=$?
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); } && test -s "$nlist"; then
7064       # Try sorting and uniquifying the output.
7065       if sort "$nlist" | uniq > "$nlist"T; then
7066         mv -f "$nlist"T "$nlist"
7067       else
7068         rm -f "$nlist"T
7069       fi
7070
7071       # Make sure that we snagged all the symbols we need.
7072       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7073         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7074           cat <<_LT_EOF > conftest.$ac_ext
7075 #ifdef __cplusplus
7076 extern "C" {
7077 #endif
7078
7079 _LT_EOF
7080           # Now generate the symbol file.
7081           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7082
7083           cat <<_LT_EOF >> conftest.$ac_ext
7084
7085 /* The mapping between symbol names and symbols.  */
7086 const struct {
7087   const char *name;
7088   void       *address;
7089 }
7090 lt__PROGRAM__LTX_preloaded_symbols[] =
7091 {
7092   { "@PROGRAM@", (void *) 0 },
7093 _LT_EOF
7094           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7095           cat <<\_LT_EOF >> conftest.$ac_ext
7096   {0, (void *) 0}
7097 };
7098
7099 /* This works around a problem in FreeBSD linker */
7100 #ifdef FREEBSD_WORKAROUND
7101 static const void *lt_preloaded_setup() {
7102   return lt__PROGRAM__LTX_preloaded_symbols;
7103 }
7104 #endif
7105
7106 #ifdef __cplusplus
7107 }
7108 #endif
7109 _LT_EOF
7110           # Now try linking the two files.
7111           mv conftest.$ac_objext conftstm.$ac_objext
7112           lt_save_LIBS="$LIBS"
7113           lt_save_CFLAGS="$CFLAGS"
7114           LIBS="conftstm.$ac_objext"
7115           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7116           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7117   (eval $ac_link) 2>&5
7118   ac_status=$?
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7121             pipe_works=yes
7122           fi
7123           LIBS="$lt_save_LIBS"
7124           CFLAGS="$lt_save_CFLAGS"
7125         else
7126           echo "cannot find nm_test_func in $nlist" >&5
7127         fi
7128       else
7129         echo "cannot find nm_test_var in $nlist" >&5
7130       fi
7131     else
7132       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7133     fi
7134   else
7135     echo "$progname: failed program was:" >&5
7136     cat conftest.$ac_ext >&5
7137   fi
7138   rm -rf conftest* conftst*
7139
7140   # Do not use the global_symbol_pipe unless it works.
7141   if test "$pipe_works" = yes; then
7142     break
7143   else
7144     lt_cv_sys_global_symbol_pipe=
7145   fi
7146 done
7147
7148 fi
7149
7150 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7151   lt_cv_sys_global_symbol_to_cdecl=
7152 fi
7153 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7154   { echo "$as_me:$LINENO: result: failed" >&5
7155 echo "${ECHO_T}failed" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: ok" >&5
7158 echo "${ECHO_T}ok" >&6; }
7159 fi
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182 # Check whether --enable-libtool-lock was given.
7183 if test "${enable_libtool_lock+set}" = set; then
7184   enableval=$enable_libtool_lock;
7185 fi
7186
7187 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7188
7189 # Some flags need to be propagated to the compiler or linker for good
7190 # libtool support.
7191 case $host in
7192 ia64-*-hpux*)
7193   # Find out which ABI we are using.
7194   echo 'int i;' > conftest.$ac_ext
7195   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196   (eval $ac_compile) 2>&5
7197   ac_status=$?
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); }; then
7200     case `/usr/bin/file conftest.$ac_objext` in
7201       *ELF-32*)
7202         HPUX_IA64_MODE="32"
7203         ;;
7204       *ELF-64*)
7205         HPUX_IA64_MODE="64"
7206         ;;
7207     esac
7208   fi
7209   rm -rf conftest*
7210   ;;
7211 *-*-irix6*)
7212   # Find out which ABI we are using.
7213   echo '#line 7213 "configure"' > conftest.$ac_ext
7214   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215   (eval $ac_compile) 2>&5
7216   ac_status=$?
7217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218   (exit $ac_status); }; then
7219     if test "$lt_cv_prog_gnu_ld" = yes; then
7220       case `/usr/bin/file conftest.$ac_objext` in
7221         *32-bit*)
7222           LD="${LD-ld} -melf32bsmip"
7223           ;;
7224         *N32*)
7225           LD="${LD-ld} -melf32bmipn32"
7226           ;;
7227         *64-bit*)
7228           LD="${LD-ld} -melf64bmip"
7229         ;;
7230       esac
7231     else
7232       case `/usr/bin/file conftest.$ac_objext` in
7233         *32-bit*)
7234           LD="${LD-ld} -32"
7235           ;;
7236         *N32*)
7237           LD="${LD-ld} -n32"
7238           ;;
7239         *64-bit*)
7240           LD="${LD-ld} -64"
7241           ;;
7242       esac
7243     fi
7244   fi
7245   rm -rf conftest*
7246   ;;
7247
7248 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7249 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7250   # Find out which ABI we are using.
7251   echo 'int i;' > conftest.$ac_ext
7252   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7253   (eval $ac_compile) 2>&5
7254   ac_status=$?
7255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256   (exit $ac_status); }; then
7257     case `/usr/bin/file conftest.o` in
7258       *32-bit*)
7259         case $host in
7260           x86_64-*kfreebsd*-gnu)
7261             LD="${LD-ld} -m elf_i386_fbsd"
7262             ;;
7263           x86_64-*linux*)
7264             LD="${LD-ld} -m elf_i386"
7265             ;;
7266           ppc64-*linux*|powerpc64-*linux*)
7267             LD="${LD-ld} -m elf32ppclinux"
7268             ;;
7269           s390x-*linux*)
7270             LD="${LD-ld} -m elf_s390"
7271             ;;
7272           sparc64-*linux*)
7273             LD="${LD-ld} -m elf32_sparc"
7274             ;;
7275         esac
7276         ;;
7277       *64-bit*)
7278         case $host in
7279           x86_64-*kfreebsd*-gnu)
7280             LD="${LD-ld} -m elf_x86_64_fbsd"
7281             ;;
7282           x86_64-*linux*)
7283             LD="${LD-ld} -m elf_x86_64"
7284             ;;
7285           ppc*-*linux*|powerpc*-*linux*)
7286             LD="${LD-ld} -m elf64ppc"
7287             ;;
7288           s390*-*linux*|s390*-*tpf*)
7289             LD="${LD-ld} -m elf64_s390"
7290             ;;
7291           sparc*-*linux*)
7292             LD="${LD-ld} -m elf64_sparc"
7293             ;;
7294         esac
7295         ;;
7296     esac
7297   fi
7298   rm -rf conftest*
7299   ;;
7300
7301 *-*-sco3.2v5*)
7302   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7303   SAVE_CFLAGS="$CFLAGS"
7304   CFLAGS="$CFLAGS -belf"
7305   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7306 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7307 if test "${lt_cv_cc_needs_belf+set}" = set; then
7308   echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310   ac_ext=c
7311 ac_cpp='$CPP $CPPFLAGS'
7312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7315
7316      cat >conftest.$ac_ext <<_ACEOF
7317 /* confdefs.h.  */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h.  */
7322
7323 int
7324 main ()
7325 {
7326
7327   ;
7328   return 0;
7329 }
7330 _ACEOF
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (ac_try="$ac_link"
7333 case "(($ac_try" in
7334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335   *) ac_try_echo=$ac_try;;
7336 esac
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338   (eval "$ac_link") 2>conftest.er1
7339   ac_status=$?
7340   grep -v '^ *+' conftest.er1 >conftest.err
7341   rm -f conftest.er1
7342   cat conftest.err >&5
7343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344   (exit $ac_status); } && {
7345          test -z "$ac_c_werror_flag" ||
7346          test ! -s conftest.err
7347        } && test -s conftest$ac_exeext &&
7348        $as_test_x conftest$ac_exeext; then
7349   lt_cv_cc_needs_belf=yes
7350 else
7351   echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7353
7354         lt_cv_cc_needs_belf=no
7355 fi
7356
7357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7358       conftest$ac_exeext conftest.$ac_ext
7359      ac_ext=c
7360 ac_cpp='$CPP $CPPFLAGS'
7361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7364
7365 fi
7366 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7367 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7368   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7369     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7370     CFLAGS="$SAVE_CFLAGS"
7371   fi
7372   ;;
7373 sparc*-*solaris*)
7374   # Find out which ABI we are using.
7375   echo 'int i;' > conftest.$ac_ext
7376   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377   (eval $ac_compile) 2>&5
7378   ac_status=$?
7379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380   (exit $ac_status); }; then
7381     case `/usr/bin/file conftest.o` in
7382     *64-bit*)
7383       case $lt_cv_prog_gnu_ld in
7384       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7385       *)
7386         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7387           LD="${LD-ld} -64"
7388         fi
7389         ;;
7390       esac
7391       ;;
7392     esac
7393   fi
7394   rm -rf conftest*
7395   ;;
7396 esac
7397
7398 need_locks="$enable_libtool_lock"
7399
7400
7401   case $host_os in
7402     rhapsody* | darwin*)
7403     if test -n "$ac_tool_prefix"; then
7404   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7405 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411   if test -n "$DSYMUTIL"; then
7412   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417   IFS=$as_save_IFS
7418   test -z "$as_dir" && as_dir=.
7419   for ac_exec_ext in '' $ac_executable_extensions; do
7420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423     break 2
7424   fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429 fi
7430 fi
7431 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7432 if test -n "$DSYMUTIL"; then
7433   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7434 echo "${ECHO_T}$DSYMUTIL" >&6; }
7435 else
7436   { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7438 fi
7439
7440
7441 fi
7442 if test -z "$ac_cv_prog_DSYMUTIL"; then
7443   ac_ct_DSYMUTIL=$DSYMUTIL
7444   # Extract the first word of "dsymutil", so it can be a program name with args.
7445 set dummy dsymutil; ac_word=$2
7446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7448 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7449   echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451   if test -n "$ac_ct_DSYMUTIL"; then
7452   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457   IFS=$as_save_IFS
7458   test -z "$as_dir" && as_dir=.
7459   for ac_exec_ext in '' $ac_executable_extensions; do
7460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463     break 2
7464   fi
7465 done
7466 done
7467 IFS=$as_save_IFS
7468
7469 fi
7470 fi
7471 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7472 if test -n "$ac_ct_DSYMUTIL"; then
7473   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7474 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7475 else
7476   { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7478 fi
7479
7480   if test "x$ac_ct_DSYMUTIL" = x; then
7481     DSYMUTIL=":"
7482   else
7483     case $cross_compiling:$ac_tool_warned in
7484 yes:)
7485 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7486 whose name does not start with the host triplet.  If you think this
7487 configuration is useful to you, please write to autoconf@gnu.org." >&5
7488 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7489 whose name does not start with the host triplet.  If you think this
7490 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7491 ac_tool_warned=yes ;;
7492 esac
7493     DSYMUTIL=$ac_ct_DSYMUTIL
7494   fi
7495 else
7496   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7497 fi
7498
7499     if test -n "$ac_tool_prefix"; then
7500   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7501 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7505   echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507   if test -n "$NMEDIT"; then
7508   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513   IFS=$as_save_IFS
7514   test -z "$as_dir" && as_dir=.
7515   for ac_exec_ext in '' $ac_executable_extensions; do
7516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519     break 2
7520   fi
7521 done
7522 done
7523 IFS=$as_save_IFS
7524
7525 fi
7526 fi
7527 NMEDIT=$ac_cv_prog_NMEDIT
7528 if test -n "$NMEDIT"; then
7529   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7530 echo "${ECHO_T}$NMEDIT" >&6; }
7531 else
7532   { echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6; }
7534 fi
7535
7536
7537 fi
7538 if test -z "$ac_cv_prog_NMEDIT"; then
7539   ac_ct_NMEDIT=$NMEDIT
7540   # Extract the first word of "nmedit", so it can be a program name with args.
7541 set dummy nmedit; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7545   echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547   if test -n "$ac_ct_NMEDIT"; then
7548   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7549 else
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7552 do
7553   IFS=$as_save_IFS
7554   test -z "$as_dir" && as_dir=.
7555   for ac_exec_ext in '' $ac_executable_extensions; do
7556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7557     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559     break 2
7560   fi
7561 done
7562 done
7563 IFS=$as_save_IFS
7564
7565 fi
7566 fi
7567 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7568 if test -n "$ac_ct_NMEDIT"; then
7569   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7570 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7571 else
7572   { echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6; }
7574 fi
7575
7576   if test "x$ac_ct_NMEDIT" = x; then
7577     NMEDIT=":"
7578   else
7579     case $cross_compiling:$ac_tool_warned in
7580 yes:)
7581 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7582 whose name does not start with the host triplet.  If you think this
7583 configuration is useful to you, please write to autoconf@gnu.org." >&5
7584 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7585 whose name does not start with the host triplet.  If you think this
7586 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7587 ac_tool_warned=yes ;;
7588 esac
7589     NMEDIT=$ac_ct_NMEDIT
7590   fi
7591 else
7592   NMEDIT="$ac_cv_prog_NMEDIT"
7593 fi
7594
7595     if test -n "$ac_tool_prefix"; then
7596   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7597 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600 if test "${ac_cv_prog_LIPO+set}" = set; then
7601   echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603   if test -n "$LIPO"; then
7604   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7608 do
7609   IFS=$as_save_IFS
7610   test -z "$as_dir" && as_dir=.
7611   for ac_exec_ext in '' $ac_executable_extensions; do
7612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615     break 2
7616   fi
7617 done
7618 done
7619 IFS=$as_save_IFS
7620
7621 fi
7622 fi
7623 LIPO=$ac_cv_prog_LIPO
7624 if test -n "$LIPO"; then
7625   { echo "$as_me:$LINENO: result: $LIPO" >&5
7626 echo "${ECHO_T}$LIPO" >&6; }
7627 else
7628   { echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6; }
7630 fi
7631
7632
7633 fi
7634 if test -z "$ac_cv_prog_LIPO"; then
7635   ac_ct_LIPO=$LIPO
7636   # Extract the first word of "lipo", so it can be a program name with args.
7637 set dummy lipo; ac_word=$2
7638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7640 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7641   echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643   if test -n "$ac_ct_LIPO"; then
7644   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649   IFS=$as_save_IFS
7650   test -z "$as_dir" && as_dir=.
7651   for ac_exec_ext in '' $ac_executable_extensions; do
7652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653     ac_cv_prog_ac_ct_LIPO="lipo"
7654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655     break 2
7656   fi
7657 done
7658 done
7659 IFS=$as_save_IFS
7660
7661 fi
7662 fi
7663 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7664 if test -n "$ac_ct_LIPO"; then
7665   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7666 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7667 else
7668   { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7670 fi
7671
7672   if test "x$ac_ct_LIPO" = x; then
7673     LIPO=":"
7674   else
7675     case $cross_compiling:$ac_tool_warned in
7676 yes:)
7677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7678 whose name does not start with the host triplet.  If you think this
7679 configuration is useful to you, please write to autoconf@gnu.org." >&5
7680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7681 whose name does not start with the host triplet.  If you think this
7682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7683 ac_tool_warned=yes ;;
7684 esac
7685     LIPO=$ac_ct_LIPO
7686   fi
7687 else
7688   LIPO="$ac_cv_prog_LIPO"
7689 fi
7690
7691     if test -n "$ac_tool_prefix"; then
7692   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}otool; ac_word=$2
7694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7696 if test "${ac_cv_prog_OTOOL+set}" = set; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   if test -n "$OTOOL"; then
7700   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707   for ac_exec_ext in '' $ac_executable_extensions; do
7708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7709     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714 done
7715 IFS=$as_save_IFS
7716
7717 fi
7718 fi
7719 OTOOL=$ac_cv_prog_OTOOL
7720 if test -n "$OTOOL"; then
7721   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7722 echo "${ECHO_T}$OTOOL" >&6; }
7723 else
7724   { echo "$as_me:$LINENO: result: no" >&5
7725 echo "${ECHO_T}no" >&6; }
7726 fi
7727
7728
7729 fi
7730 if test -z "$ac_cv_prog_OTOOL"; then
7731   ac_ct_OTOOL=$OTOOL
7732   # Extract the first word of "otool", so it can be a program name with args.
7733 set dummy otool; ac_word=$2
7734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7736 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   if test -n "$ac_ct_OTOOL"; then
7740   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7741 else
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745   IFS=$as_save_IFS
7746   test -z "$as_dir" && as_dir=.
7747   for ac_exec_ext in '' $ac_executable_extensions; do
7748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7749     ac_cv_prog_ac_ct_OTOOL="otool"
7750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7751     break 2
7752   fi
7753 done
7754 done
7755 IFS=$as_save_IFS
7756
7757 fi
7758 fi
7759 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7760 if test -n "$ac_ct_OTOOL"; then
7761   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7762 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7763 else
7764   { echo "$as_me:$LINENO: result: no" >&5
7765 echo "${ECHO_T}no" >&6; }
7766 fi
7767
7768   if test "x$ac_ct_OTOOL" = x; then
7769     OTOOL=":"
7770   else
7771     case $cross_compiling:$ac_tool_warned in
7772 yes:)
7773 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7774 whose name does not start with the host triplet.  If you think this
7775 configuration is useful to you, please write to autoconf@gnu.org." >&5
7776 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7777 whose name does not start with the host triplet.  If you think this
7778 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7779 ac_tool_warned=yes ;;
7780 esac
7781     OTOOL=$ac_ct_OTOOL
7782   fi
7783 else
7784   OTOOL="$ac_cv_prog_OTOOL"
7785 fi
7786
7787     if test -n "$ac_tool_prefix"; then
7788   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7789 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7792 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7793   echo $ECHO_N "(cached) $ECHO_C" >&6
7794 else
7795   if test -n "$OTOOL64"; then
7796   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7800 do
7801   IFS=$as_save_IFS
7802   test -z "$as_dir" && as_dir=.
7803   for ac_exec_ext in '' $ac_executable_extensions; do
7804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7805     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807     break 2
7808   fi
7809 done
7810 done
7811 IFS=$as_save_IFS
7812
7813 fi
7814 fi
7815 OTOOL64=$ac_cv_prog_OTOOL64
7816 if test -n "$OTOOL64"; then
7817   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7818 echo "${ECHO_T}$OTOOL64" >&6; }
7819 else
7820   { echo "$as_me:$LINENO: result: no" >&5
7821 echo "${ECHO_T}no" >&6; }
7822 fi
7823
7824
7825 fi
7826 if test -z "$ac_cv_prog_OTOOL64"; then
7827   ac_ct_OTOOL64=$OTOOL64
7828   # Extract the first word of "otool64", so it can be a program name with args.
7829 set dummy otool64; ac_word=$2
7830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7832 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835   if test -n "$ac_ct_OTOOL64"; then
7836   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7837 else
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7840 do
7841   IFS=$as_save_IFS
7842   test -z "$as_dir" && as_dir=.
7843   for ac_exec_ext in '' $ac_executable_extensions; do
7844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7845     ac_cv_prog_ac_ct_OTOOL64="otool64"
7846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847     break 2
7848   fi
7849 done
7850 done
7851 IFS=$as_save_IFS
7852
7853 fi
7854 fi
7855 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7856 if test -n "$ac_ct_OTOOL64"; then
7857   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7858 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7859 else
7860   { echo "$as_me:$LINENO: result: no" >&5
7861 echo "${ECHO_T}no" >&6; }
7862 fi
7863
7864   if test "x$ac_ct_OTOOL64" = x; then
7865     OTOOL64=":"
7866   else
7867     case $cross_compiling:$ac_tool_warned in
7868 yes:)
7869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7870 whose name does not start with the host triplet.  If you think this
7871 configuration is useful to you, please write to autoconf@gnu.org." >&5
7872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7873 whose name does not start with the host triplet.  If you think this
7874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7875 ac_tool_warned=yes ;;
7876 esac
7877     OTOOL64=$ac_ct_OTOOL64
7878   fi
7879 else
7880   OTOOL64="$ac_cv_prog_OTOOL64"
7881 fi
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7910 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7911 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7912   echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914   lt_cv_apple_cc_single_mod=no
7915       if test -z "${LT_MULTI_MODULE}"; then
7916         # By default we will add the -single_module flag. You can override
7917         # by either setting the environment variable LT_MULTI_MODULE
7918         # non-empty at configure time, or by adding -multi_module to the
7919         # link flags.
7920         rm -rf libconftest.dylib*
7921         echo "int foo(void){return 1;}" > conftest.c
7922         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7923 -dynamiclib -Wl,-single_module conftest.c" >&5
7924         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7925           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7926         _lt_result=$?
7927         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7928           lt_cv_apple_cc_single_mod=yes
7929         else
7930           cat conftest.err >&5
7931         fi
7932         rm -rf libconftest.dylib*
7933         rm -f conftest.*
7934       fi
7935 fi
7936 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7937 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7938     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7939 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7940 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7941   echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943   lt_cv_ld_exported_symbols_list=no
7944       save_LDFLAGS=$LDFLAGS
7945       echo "_main" > conftest.sym
7946       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7947       cat >conftest.$ac_ext <<_ACEOF
7948 /* confdefs.h.  */
7949 _ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h.  */
7953
7954 int
7955 main ()
7956 {
7957
7958   ;
7959   return 0;
7960 }
7961 _ACEOF
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (ac_try="$ac_link"
7964 case "(($ac_try" in
7965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966   *) ac_try_echo=$ac_try;;
7967 esac
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969   (eval "$ac_link") 2>conftest.er1
7970   ac_status=$?
7971   grep -v '^ *+' conftest.er1 >conftest.err
7972   rm -f conftest.er1
7973   cat conftest.err >&5
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); } && {
7976          test -z "$ac_c_werror_flag" ||
7977          test ! -s conftest.err
7978        } && test -s conftest$ac_exeext &&
7979        $as_test_x conftest$ac_exeext; then
7980   lt_cv_ld_exported_symbols_list=yes
7981 else
7982   echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985         lt_cv_ld_exported_symbols_list=no
7986 fi
7987
7988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7989       conftest$ac_exeext conftest.$ac_ext
7990         LDFLAGS="$save_LDFLAGS"
7991
7992 fi
7993 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7994 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7995     case $host_os in
7996     rhapsody* | darwin1.[012])
7997       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7998     darwin1.*)
7999       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8000     darwin*) # darwin 5.x on
8001       # if running on 10.5 or later, the deployment target defaults
8002       # to the OS version, if on x86, and 10.4, the deployment
8003       # target defaults to 10.4. Don't you love it?
8004       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8005         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8006           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8007         10.[012]*)
8008           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8009         10.*)
8010           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8011       esac
8012     ;;
8013   esac
8014     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8015       _lt_dar_single_mod='$single_module'
8016     fi
8017     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8018       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8019     else
8020       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8021     fi
8022     if test "$DSYMUTIL" != ":"; then
8023       _lt_dsymutil='~$DSYMUTIL $lib || :'
8024     else
8025       _lt_dsymutil=
8026     fi
8027     ;;
8028   esac
8029
8030 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8031 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8032 if test "${ac_cv_header_stdc+set}" = set; then
8033   echo $ECHO_N "(cached) $ECHO_C" >&6
8034 else
8035   cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h.  */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h.  */
8041 #include <stdlib.h>
8042 #include <stdarg.h>
8043 #include <string.h>
8044 #include <float.h>
8045
8046 int
8047 main ()
8048 {
8049
8050   ;
8051   return 0;
8052 }
8053 _ACEOF
8054 rm -f conftest.$ac_objext
8055 if { (ac_try="$ac_compile"
8056 case "(($ac_try" in
8057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058   *) ac_try_echo=$ac_try;;
8059 esac
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061   (eval "$ac_compile") 2>conftest.er1
8062   ac_status=$?
8063   grep -v '^ *+' conftest.er1 >conftest.err
8064   rm -f conftest.er1
8065   cat conftest.err >&5
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); } && {
8068          test -z "$ac_c_werror_flag" ||
8069          test ! -s conftest.err
8070        } && test -s conftest.$ac_objext; then
8071   ac_cv_header_stdc=yes
8072 else
8073   echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8075
8076         ac_cv_header_stdc=no
8077 fi
8078
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080
8081 if test $ac_cv_header_stdc = yes; then
8082   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8083   cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h.  */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h.  */
8089 #include <string.h>
8090
8091 _ACEOF
8092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8093   $EGREP "memchr" >/dev/null 2>&1; then
8094   :
8095 else
8096   ac_cv_header_stdc=no
8097 fi
8098 rm -f conftest*
8099
8100 fi
8101
8102 if test $ac_cv_header_stdc = yes; then
8103   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8104   cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110 #include <stdlib.h>
8111
8112 _ACEOF
8113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8114   $EGREP "free" >/dev/null 2>&1; then
8115   :
8116 else
8117   ac_cv_header_stdc=no
8118 fi
8119 rm -f conftest*
8120
8121 fi
8122
8123 if test $ac_cv_header_stdc = yes; then
8124   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8125   if test "$cross_compiling" = yes; then
8126   :
8127 else
8128   cat >conftest.$ac_ext <<_ACEOF
8129 /* confdefs.h.  */
8130 _ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h.  */
8134 #include <ctype.h>
8135 #include <stdlib.h>
8136 #if ((' ' & 0x0FF) == 0x020)
8137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8139 #else
8140 # define ISLOWER(c) \
8141                    (('a' <= (c) && (c) <= 'i') \
8142                      || ('j' <= (c) && (c) <= 'r') \
8143                      || ('s' <= (c) && (c) <= 'z'))
8144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8145 #endif
8146
8147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8148 int
8149 main ()
8150 {
8151   int i;
8152   for (i = 0; i < 256; i++)
8153     if (XOR (islower (i), ISLOWER (i))
8154         || toupper (i) != TOUPPER (i))
8155       return 2;
8156   return 0;
8157 }
8158 _ACEOF
8159 rm -f conftest$ac_exeext
8160 if { (ac_try="$ac_link"
8161 case "(($ac_try" in
8162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163   *) ac_try_echo=$ac_try;;
8164 esac
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166   (eval "$ac_link") 2>&5
8167   ac_status=$?
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8170   { (case "(($ac_try" in
8171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172   *) ac_try_echo=$ac_try;;
8173 esac
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175   (eval "$ac_try") 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); }; }; then
8179   :
8180 else
8181   echo "$as_me: program exited with status $ac_status" >&5
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8184
8185 ( exit $ac_status )
8186 ac_cv_header_stdc=no
8187 fi
8188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8189 fi
8190
8191
8192 fi
8193 fi
8194 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8195 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8196 if test $ac_cv_header_stdc = yes; then
8197
8198 cat >>confdefs.h <<\_ACEOF
8199 #define STDC_HEADERS 1
8200 _ACEOF
8201
8202 fi
8203
8204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8215                   inttypes.h stdint.h unistd.h
8216 do
8217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8221   echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223   cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h.  */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h.  */
8229 $ac_includes_default
8230
8231 #include <$ac_header>
8232 _ACEOF
8233 rm -f conftest.$ac_objext
8234 if { (ac_try="$ac_compile"
8235 case "(($ac_try" in
8236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237   *) ac_try_echo=$ac_try;;
8238 esac
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240   (eval "$ac_compile") 2>conftest.er1
8241   ac_status=$?
8242   grep -v '^ *+' conftest.er1 >conftest.err
8243   rm -f conftest.er1
8244   cat conftest.err >&5
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); } && {
8247          test -z "$ac_c_werror_flag" ||
8248          test ! -s conftest.err
8249        } && test -s conftest.$ac_objext; then
8250   eval "$as_ac_Header=yes"
8251 else
8252   echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8254
8255         eval "$as_ac_Header=no"
8256 fi
8257
8258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259 fi
8260 ac_res=`eval echo '${'$as_ac_Header'}'`
8261                { echo "$as_me:$LINENO: result: $ac_res" >&5
8262 echo "${ECHO_T}$ac_res" >&6; }
8263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8264   cat >>confdefs.h <<_ACEOF
8265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8266 _ACEOF
8267
8268 fi
8269
8270 done
8271
8272
8273
8274 for ac_header in dlfcn.h
8275 do
8276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8280   echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282   cat >conftest.$ac_ext <<_ACEOF
8283 /* confdefs.h.  */
8284 _ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h.  */
8288 $ac_includes_default
8289
8290 #include <$ac_header>
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8294 case "(($ac_try" in
8295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296   *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299   (eval "$ac_compile") 2>conftest.er1
8300   ac_status=$?
8301   grep -v '^ *+' conftest.er1 >conftest.err
8302   rm -f conftest.er1
8303   cat conftest.err >&5
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); } && {
8306          test -z "$ac_c_werror_flag" ||
8307          test ! -s conftest.err
8308        } && test -s conftest.$ac_objext; then
8309   eval "$as_ac_Header=yes"
8310 else
8311   echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314         eval "$as_ac_Header=no"
8315 fi
8316
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 fi
8319 ac_res=`eval echo '${'$as_ac_Header'}'`
8320                { echo "$as_me:$LINENO: result: $ac_res" >&5
8321 echo "${ECHO_T}$ac_res" >&6; }
8322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8323   cat >>confdefs.h <<_ACEOF
8324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8325 _ACEOF
8326
8327 fi
8328
8329 done
8330
8331
8332
8333 ac_ext=cpp
8334 ac_cpp='$CXXCPP $CPPFLAGS'
8335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8338 if test -z "$CXX"; then
8339   if test -n "$CCC"; then
8340     CXX=$CCC
8341   else
8342     if test -n "$ac_tool_prefix"; then
8343   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8344   do
8345     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8349 if test "${ac_cv_prog_CXX+set}" = set; then
8350   echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352   if test -n "$CXX"; then
8353   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358   IFS=$as_save_IFS
8359   test -z "$as_dir" && as_dir=.
8360   for ac_exec_ext in '' $ac_executable_extensions; do
8361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8364     break 2
8365   fi
8366 done
8367 done
8368 IFS=$as_save_IFS
8369
8370 fi
8371 fi
8372 CXX=$ac_cv_prog_CXX
8373 if test -n "$CXX"; then
8374   { echo "$as_me:$LINENO: result: $CXX" >&5
8375 echo "${ECHO_T}$CXX" >&6; }
8376 else
8377   { echo "$as_me:$LINENO: result: no" >&5
8378 echo "${ECHO_T}no" >&6; }
8379 fi
8380
8381
8382     test -n "$CXX" && break
8383   done
8384 fi
8385 if test -z "$CXX"; then
8386   ac_ct_CXX=$CXX
8387   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8388 do
8389   # Extract the first word of "$ac_prog", so it can be a program name with args.
8390 set dummy $ac_prog; ac_word=$2
8391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8393 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8394   echo $ECHO_N "(cached) $ECHO_C" >&6
8395 else
8396   if test -n "$ac_ct_CXX"; then
8397   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8398 else
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8401 do
8402   IFS=$as_save_IFS
8403   test -z "$as_dir" && as_dir=.
8404   for ac_exec_ext in '' $ac_executable_extensions; do
8405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406     ac_cv_prog_ac_ct_CXX="$ac_prog"
8407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8408     break 2
8409   fi
8410 done
8411 done
8412 IFS=$as_save_IFS
8413
8414 fi
8415 fi
8416 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8417 if test -n "$ac_ct_CXX"; then
8418   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8419 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8420 else
8421   { echo "$as_me:$LINENO: result: no" >&5
8422 echo "${ECHO_T}no" >&6; }
8423 fi
8424
8425
8426   test -n "$ac_ct_CXX" && break
8427 done
8428
8429   if test "x$ac_ct_CXX" = x; then
8430     CXX="g++"
8431   else
8432     case $cross_compiling:$ac_tool_warned in
8433 yes:)
8434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8435 whose name does not start with the host triplet.  If you think this
8436 configuration is useful to you, please write to autoconf@gnu.org." >&5
8437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8438 whose name does not start with the host triplet.  If you think this
8439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8440 ac_tool_warned=yes ;;
8441 esac
8442     CXX=$ac_ct_CXX
8443   fi
8444 fi
8445
8446   fi
8447 fi
8448 # Provide some information about the compiler.
8449 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8450 ac_compiler=`set X $ac_compile; echo $2`
8451 { (ac_try="$ac_compiler --version >&5"
8452 case "(($ac_try" in
8453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454   *) ac_try_echo=$ac_try;;
8455 esac
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457   (eval "$ac_compiler --version >&5") 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }
8461 { (ac_try="$ac_compiler -v >&5"
8462 case "(($ac_try" in
8463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464   *) ac_try_echo=$ac_try;;
8465 esac
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467   (eval "$ac_compiler -v >&5") 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }
8471 { (ac_try="$ac_compiler -V >&5"
8472 case "(($ac_try" in
8473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474   *) ac_try_echo=$ac_try;;
8475 esac
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477   (eval "$ac_compiler -V >&5") 2>&5
8478   ac_status=$?
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); }
8481
8482 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8483 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8484 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8485   echo $ECHO_N "(cached) $ECHO_C" >&6
8486 else
8487   cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h.  */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h.  */
8493
8494 int
8495 main ()
8496 {
8497 #ifndef __GNUC__
8498        choke me
8499 #endif
8500
8501   ;
8502   return 0;
8503 }
8504 _ACEOF
8505 rm -f conftest.$ac_objext
8506 if { (ac_try="$ac_compile"
8507 case "(($ac_try" in
8508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509   *) ac_try_echo=$ac_try;;
8510 esac
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512   (eval "$ac_compile") 2>conftest.er1
8513   ac_status=$?
8514   grep -v '^ *+' conftest.er1 >conftest.err
8515   rm -f conftest.er1
8516   cat conftest.err >&5
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); } && {
8519          test -z "$ac_cxx_werror_flag" ||
8520          test ! -s conftest.err
8521        } && test -s conftest.$ac_objext; then
8522   ac_compiler_gnu=yes
8523 else
8524   echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527         ac_compiler_gnu=no
8528 fi
8529
8530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8532
8533 fi
8534 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8535 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8536 GXX=`test $ac_compiler_gnu = yes && echo yes`
8537 ac_test_CXXFLAGS=${CXXFLAGS+set}
8538 ac_save_CXXFLAGS=$CXXFLAGS
8539 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8540 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8541 if test "${ac_cv_prog_cxx_g+set}" = set; then
8542   echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8545    ac_cxx_werror_flag=yes
8546    ac_cv_prog_cxx_g=no
8547    CXXFLAGS="-g"
8548    cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h.  */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h.  */
8554
8555 int
8556 main ()
8557 {
8558
8559   ;
8560   return 0;
8561 }
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8565 case "(($ac_try" in
8566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567   *) ac_try_echo=$ac_try;;
8568 esac
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570   (eval "$ac_compile") 2>conftest.er1
8571   ac_status=$?
8572   grep -v '^ *+' conftest.er1 >conftest.err
8573   rm -f conftest.er1
8574   cat conftest.err >&5
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); } && {
8577          test -z "$ac_cxx_werror_flag" ||
8578          test ! -s conftest.err
8579        } && test -s conftest.$ac_objext; then
8580   ac_cv_prog_cxx_g=yes
8581 else
8582   echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585         CXXFLAGS=""
8586       cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h.  */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h.  */
8592
8593 int
8594 main ()
8595 {
8596
8597   ;
8598   return 0;
8599 }
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8603 case "(($ac_try" in
8604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605   *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608   (eval "$ac_compile") 2>conftest.er1
8609   ac_status=$?
8610   grep -v '^ *+' conftest.er1 >conftest.err
8611   rm -f conftest.er1
8612   cat conftest.err >&5
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } && {
8615          test -z "$ac_cxx_werror_flag" ||
8616          test ! -s conftest.err
8617        } && test -s conftest.$ac_objext; then
8618   :
8619 else
8620   echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8622
8623         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8624          CXXFLAGS="-g"
8625          cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h.  */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h.  */
8631
8632 int
8633 main ()
8634 {
8635
8636   ;
8637   return 0;
8638 }
8639 _ACEOF
8640 rm -f conftest.$ac_objext
8641 if { (ac_try="$ac_compile"
8642 case "(($ac_try" in
8643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644   *) ac_try_echo=$ac_try;;
8645 esac
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647   (eval "$ac_compile") 2>conftest.er1
8648   ac_status=$?
8649   grep -v '^ *+' conftest.er1 >conftest.err
8650   rm -f conftest.er1
8651   cat conftest.err >&5
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); } && {
8654          test -z "$ac_cxx_werror_flag" ||
8655          test ! -s conftest.err
8656        } && test -s conftest.$ac_objext; then
8657   ac_cv_prog_cxx_g=yes
8658 else
8659   echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8661
8662
8663 fi
8664
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 fi
8667
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669 fi
8670
8671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8673 fi
8674 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8675 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8676 if test "$ac_test_CXXFLAGS" = set; then
8677   CXXFLAGS=$ac_save_CXXFLAGS
8678 elif test $ac_cv_prog_cxx_g = yes; then
8679   if test "$GXX" = yes; then
8680     CXXFLAGS="-g -O2"
8681   else
8682     CXXFLAGS="-g"
8683   fi
8684 else
8685   if test "$GXX" = yes; then
8686     CXXFLAGS="-O2"
8687   else
8688     CXXFLAGS=
8689   fi
8690 fi
8691 ac_ext=c
8692 ac_cpp='$CPP $CPPFLAGS'
8693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8696
8697 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8698     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8699     (test "X$CXX" != "Xg++"))) ; then
8700   ac_ext=cpp
8701 ac_cpp='$CXXCPP $CPPFLAGS'
8702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8705 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8706 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8707 if test -z "$CXXCPP"; then
8708   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8709   echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711       # Double quotes because CXXCPP needs to be expanded
8712     for CXXCPP in "$CXX -E" "/lib/cpp"
8713     do
8714       ac_preproc_ok=false
8715 for ac_cxx_preproc_warn_flag in '' yes
8716 do
8717   # Use a header file that comes with gcc, so configuring glibc
8718   # with a fresh cross-compiler works.
8719   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720   # <limits.h> exists even on freestanding compilers.
8721   # On the NeXT, cc -E runs the code through the compiler's parser,
8722   # not just through cpp. "Syntax error" is here to catch this case.
8723   cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h.  */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h.  */
8729 #ifdef __STDC__
8730 # include <limits.h>
8731 #else
8732 # include <assert.h>
8733 #endif
8734                      Syntax error
8735 _ACEOF
8736 if { (ac_try="$ac_cpp conftest.$ac_ext"
8737 case "(($ac_try" in
8738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739   *) ac_try_echo=$ac_try;;
8740 esac
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8743   ac_status=$?
8744   grep -v '^ *+' conftest.er1 >conftest.err
8745   rm -f conftest.er1
8746   cat conftest.err >&5
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); } >/dev/null && {
8749          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8750          test ! -s conftest.err
8751        }; then
8752   :
8753 else
8754   echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8756
8757   # Broken: fails on valid input.
8758 continue
8759 fi
8760
8761 rm -f conftest.err conftest.$ac_ext
8762
8763   # OK, works on sane cases.  Now check whether nonexistent headers
8764   # can be detected and how.
8765   cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h.  */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h.  */
8771 #include <ac_nonexistent.h>
8772 _ACEOF
8773 if { (ac_try="$ac_cpp conftest.$ac_ext"
8774 case "(($ac_try" in
8775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776   *) ac_try_echo=$ac_try;;
8777 esac
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8780   ac_status=$?
8781   grep -v '^ *+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
8783   cat conftest.err >&5
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } >/dev/null && {
8786          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8787          test ! -s conftest.err
8788        }; then
8789   # Broken: success on invalid input.
8790 continue
8791 else
8792   echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8794
8795   # Passes both tests.
8796 ac_preproc_ok=:
8797 break
8798 fi
8799
8800 rm -f conftest.err conftest.$ac_ext
8801
8802 done
8803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8804 rm -f conftest.err conftest.$ac_ext
8805 if $ac_preproc_ok; then
8806   break
8807 fi
8808
8809     done
8810     ac_cv_prog_CXXCPP=$CXXCPP
8811
8812 fi
8813   CXXCPP=$ac_cv_prog_CXXCPP
8814 else
8815   ac_cv_prog_CXXCPP=$CXXCPP
8816 fi
8817 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8818 echo "${ECHO_T}$CXXCPP" >&6; }
8819 ac_preproc_ok=false
8820 for ac_cxx_preproc_warn_flag in '' yes
8821 do
8822   # Use a header file that comes with gcc, so configuring glibc
8823   # with a fresh cross-compiler works.
8824   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8825   # <limits.h> exists even on freestanding compilers.
8826   # On the NeXT, cc -E runs the code through the compiler's parser,
8827   # not just through cpp. "Syntax error" is here to catch this case.
8828   cat >conftest.$ac_ext <<_ACEOF
8829 /* confdefs.h.  */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h.  */
8834 #ifdef __STDC__
8835 # include <limits.h>
8836 #else
8837 # include <assert.h>
8838 #endif
8839                      Syntax error
8840 _ACEOF
8841 if { (ac_try="$ac_cpp conftest.$ac_ext"
8842 case "(($ac_try" in
8843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844   *) ac_try_echo=$ac_try;;
8845 esac
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8848   ac_status=$?
8849   grep -v '^ *+' conftest.er1 >conftest.err
8850   rm -f conftest.er1
8851   cat conftest.err >&5
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); } >/dev/null && {
8854          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8855          test ! -s conftest.err
8856        }; then
8857   :
8858 else
8859   echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8861
8862   # Broken: fails on valid input.
8863 continue
8864 fi
8865
8866 rm -f conftest.err conftest.$ac_ext
8867
8868   # OK, works on sane cases.  Now check whether nonexistent headers
8869   # can be detected and how.
8870   cat >conftest.$ac_ext <<_ACEOF
8871 /* confdefs.h.  */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h.  */
8876 #include <ac_nonexistent.h>
8877 _ACEOF
8878 if { (ac_try="$ac_cpp conftest.$ac_ext"
8879 case "(($ac_try" in
8880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881   *) ac_try_echo=$ac_try;;
8882 esac
8883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8885   ac_status=$?
8886   grep -v '^ *+' conftest.er1 >conftest.err
8887   rm -f conftest.er1
8888   cat conftest.err >&5
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); } >/dev/null && {
8891          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8892          test ! -s conftest.err
8893        }; then
8894   # Broken: success on invalid input.
8895 continue
8896 else
8897   echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900   # Passes both tests.
8901 ac_preproc_ok=:
8902 break
8903 fi
8904
8905 rm -f conftest.err conftest.$ac_ext
8906
8907 done
8908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8909 rm -f conftest.err conftest.$ac_ext
8910 if $ac_preproc_ok; then
8911   :
8912 else
8913   _lt_caught_CXX_error=yes
8914 fi
8915
8916 ac_ext=c
8917 ac_cpp='$CPP $CPPFLAGS'
8918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8921
8922 else
8923   _lt_caught_CXX_error=yes
8924 fi
8925
8926
8927
8928
8929
8930 # Set options
8931 # Check whether --enable-shared was given.
8932 if test "${enable_shared+set}" = set; then
8933   enableval=$enable_shared; p=${PACKAGE-default}
8934     case $enableval in
8935     yes) enable_shared=yes ;;
8936     no) enable_shared=no ;;
8937     *)
8938       enable_shared=no
8939       # Look at the argument we got.  We use all the common list separators.
8940       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8941       for pkg in $enableval; do
8942         IFS="$lt_save_ifs"
8943         if test "X$pkg" = "X$p"; then
8944           enable_shared=yes
8945         fi
8946       done
8947       IFS="$lt_save_ifs"
8948       ;;
8949     esac
8950 else
8951   enable_shared=yes
8952 fi
8953
8954
8955
8956
8957
8958
8959
8960 # Check whether --enable-static was given.
8961 if test "${enable_static+set}" = set; then
8962   enableval=$enable_static; p=${PACKAGE-default}
8963     case $enableval in
8964     yes) enable_static=yes ;;
8965     no) enable_static=no ;;
8966     *)
8967      enable_static=no
8968       # Look at the argument we got.  We use all the common list separators.
8969       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8970       for pkg in $enableval; do
8971         IFS="$lt_save_ifs"
8972         if test "X$pkg" = "X$p"; then
8973           enable_static=yes
8974         fi
8975       done
8976       IFS="$lt_save_ifs"
8977       ;;
8978     esac
8979 else
8980   enable_static=no
8981 fi
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992         enable_dlopen=no
8993
8994
8995   enable_win32_dll=no
8996
8997
8998
8999
9000
9001 # Check whether --with-pic was given.
9002 if test "${with_pic+set}" = set; then
9003   withval=$with_pic; pic_mode="$withval"
9004 else
9005   pic_mode=default
9006 fi
9007
9008
9009 test -z "$pic_mode" && pic_mode=default
9010
9011
9012
9013
9014
9015
9016
9017   # Check whether --enable-fast-install was given.
9018 if test "${enable_fast_install+set}" = set; then
9019   enableval=$enable_fast_install; p=${PACKAGE-default}
9020     case $enableval in
9021     yes) enable_fast_install=yes ;;
9022     no) enable_fast_install=no ;;
9023     *)
9024       enable_fast_install=no
9025       # Look at the argument we got.  We use all the common list separators.
9026       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9027       for pkg in $enableval; do
9028         IFS="$lt_save_ifs"
9029         if test "X$pkg" = "X$p"; then
9030           enable_fast_install=yes
9031         fi
9032       done
9033       IFS="$lt_save_ifs"
9034       ;;
9035     esac
9036 else
9037   enable_fast_install=yes
9038 fi
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050 # This can be used to rebuild libtool when needed
9051 LIBTOOL_DEPS="$ltmain"
9052
9053 # Always use our own libtool.
9054 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080 test -z "$LN_S" && LN_S="ln -s"
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095 if test -n "${ZSH_VERSION+set}" ; then
9096    setopt NO_GLOB_SUBST
9097 fi
9098
9099 { echo "$as_me:$LINENO: checking for objdir" >&5
9100 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9101 if test "${lt_cv_objdir+set}" = set; then
9102   echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104   rm -f .libs 2>/dev/null
9105 mkdir .libs 2>/dev/null
9106 if test -d .libs; then
9107   lt_cv_objdir=.libs
9108 else
9109   # MS-DOS does not allow filenames that begin with a dot.
9110   lt_cv_objdir=_libs
9111 fi
9112 rmdir .libs 2>/dev/null
9113 fi
9114 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9115 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9116 objdir=$lt_cv_objdir
9117
9118
9119
9120
9121
9122 cat >>confdefs.h <<_ACEOF
9123 #define LT_OBJDIR "$lt_cv_objdir/"
9124 _ACEOF
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142 case $host_os in
9143 aix3*)
9144   # AIX sometimes has problems with the GCC collect2 program.  For some
9145   # reason, if we set the COLLECT_NAMES environment variable, the problems
9146   # vanish in a puff of smoke.
9147   if test "X${COLLECT_NAMES+set}" != Xset; then
9148     COLLECT_NAMES=
9149     export COLLECT_NAMES
9150   fi
9151   ;;
9152 esac
9153
9154 # Sed substitution that helps us do robust quoting.  It backslashifies
9155 # metacharacters that are still active within double-quoted strings.
9156 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9157
9158 # Same as above, but do not quote variable references.
9159 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9160
9161 # Sed substitution to delay expansion of an escaped shell variable in a
9162 # double_quote_subst'ed string.
9163 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9164
9165 # Sed substitution to delay expansion of an escaped single quote.
9166 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9167
9168 # Sed substitution to avoid accidental globbing in evaled expressions
9169 no_glob_subst='s/\*/\\\*/g'
9170
9171 # Global variables:
9172 ofile=libtool
9173 can_build_shared=yes
9174
9175 # All known linkers require a `.a' archive for static linking (except MSVC,
9176 # which needs '.lib').
9177 libext=a
9178
9179 with_gnu_ld="$lt_cv_prog_gnu_ld"
9180
9181 old_CC="$CC"
9182 old_CFLAGS="$CFLAGS"
9183
9184 # Set sane defaults for various variables
9185 test -z "$CC" && CC=cc
9186 test -z "$LTCC" && LTCC=$CC
9187 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9188 test -z "$LD" && LD=ld
9189 test -z "$ac_objext" && ac_objext=o
9190
9191 for cc_temp in $compiler""; do
9192   case $cc_temp in
9193     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9194     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9195     \-*) ;;
9196     *) break;;
9197   esac
9198 done
9199 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9200
9201
9202 # Only perform the check for file, if the check method requires it
9203 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9204 case $deplibs_check_method in
9205 file_magic*)
9206   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9207     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9208 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9209 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   case $MAGIC_CMD in
9213 [\\/*] |  ?:[\\/]*)
9214   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9215   ;;
9216 *)
9217   lt_save_MAGIC_CMD="$MAGIC_CMD"
9218   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9219   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9220   for ac_dir in $ac_dummy; do
9221     IFS="$lt_save_ifs"
9222     test -z "$ac_dir" && ac_dir=.
9223     if test -f $ac_dir/${ac_tool_prefix}file; then
9224       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9225       if test -n "$file_magic_test_file"; then
9226         case $deplibs_check_method in
9227         "file_magic "*)
9228           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9229           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9230           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9231             $EGREP "$file_magic_regex" > /dev/null; then
9232             :
9233           else
9234             cat <<_LT_EOF 1>&2
9235
9236 *** Warning: the command libtool uses to detect shared libraries,
9237 *** $file_magic_cmd, produces output that libtool cannot recognize.
9238 *** The result is that libtool may fail to recognize shared libraries
9239 *** as such.  This will affect the creation of libtool libraries that
9240 *** depend on shared libraries, but programs linked with such libtool
9241 *** libraries will work regardless of this problem.  Nevertheless, you
9242 *** may want to report the problem to your system manager and/or to
9243 *** bug-libtool@gnu.org
9244
9245 _LT_EOF
9246           fi ;;
9247         esac
9248       fi
9249       break
9250     fi
9251   done
9252   IFS="$lt_save_ifs"
9253   MAGIC_CMD="$lt_save_MAGIC_CMD"
9254   ;;
9255 esac
9256 fi
9257
9258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9259 if test -n "$MAGIC_CMD"; then
9260   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9261 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9262 else
9263   { echo "$as_me:$LINENO: result: no" >&5
9264 echo "${ECHO_T}no" >&6; }
9265 fi
9266
9267
9268
9269
9270
9271 if test -z "$lt_cv_path_MAGIC_CMD"; then
9272   if test -n "$ac_tool_prefix"; then
9273     { echo "$as_me:$LINENO: checking for file" >&5
9274 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9275 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9276   echo $ECHO_N "(cached) $ECHO_C" >&6
9277 else
9278   case $MAGIC_CMD in
9279 [\\/*] |  ?:[\\/]*)
9280   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9281   ;;
9282 *)
9283   lt_save_MAGIC_CMD="$MAGIC_CMD"
9284   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9285   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9286   for ac_dir in $ac_dummy; do
9287     IFS="$lt_save_ifs"
9288     test -z "$ac_dir" && ac_dir=.
9289     if test -f $ac_dir/file; then
9290       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9291       if test -n "$file_magic_test_file"; then
9292         case $deplibs_check_method in
9293         "file_magic "*)
9294           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9295           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9296           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9297             $EGREP "$file_magic_regex" > /dev/null; then
9298             :
9299           else
9300             cat <<_LT_EOF 1>&2
9301
9302 *** Warning: the command libtool uses to detect shared libraries,
9303 *** $file_magic_cmd, produces output that libtool cannot recognize.
9304 *** The result is that libtool may fail to recognize shared libraries
9305 *** as such.  This will affect the creation of libtool libraries that
9306 *** depend on shared libraries, but programs linked with such libtool
9307 *** libraries will work regardless of this problem.  Nevertheless, you
9308 *** may want to report the problem to your system manager and/or to
9309 *** bug-libtool@gnu.org
9310
9311 _LT_EOF
9312           fi ;;
9313         esac
9314       fi
9315       break
9316     fi
9317   done
9318   IFS="$lt_save_ifs"
9319   MAGIC_CMD="$lt_save_MAGIC_CMD"
9320   ;;
9321 esac
9322 fi
9323
9324 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9325 if test -n "$MAGIC_CMD"; then
9326   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9327 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9328 else
9329   { echo "$as_me:$LINENO: result: no" >&5
9330 echo "${ECHO_T}no" >&6; }
9331 fi
9332
9333
9334   else
9335     MAGIC_CMD=:
9336   fi
9337 fi
9338
9339   fi
9340   ;;
9341 esac
9342
9343 # Use C for the default configuration in the libtool script
9344
9345 lt_save_CC="$CC"
9346 ac_ext=c
9347 ac_cpp='$CPP $CPPFLAGS'
9348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9351
9352
9353 # Source file extension for C test sources.
9354 ac_ext=c
9355
9356 # Object file extension for compiled C test sources.
9357 objext=o
9358 objext=$objext
9359
9360 # Code to be used in simple compile tests
9361 lt_simple_compile_test_code="int some_variable = 0;"
9362
9363 # Code to be used in simple link tests
9364 lt_simple_link_test_code='int main(){return(0);}'
9365
9366
9367
9368
9369
9370
9371
9372 # If no C compiler was specified, use CC.
9373 LTCC=${LTCC-"$CC"}
9374
9375 # If no C compiler flags were specified, use CFLAGS.
9376 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9377
9378 # Allow CC to be a program name with arguments.
9379 compiler=$CC
9380
9381 # Save the default compiler, since it gets overwritten when the other
9382 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9383 compiler_DEFAULT=$CC
9384
9385 # save warnings/boilerplate of simple test code
9386 ac_outfile=conftest.$ac_objext
9387 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9388 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9389 _lt_compiler_boilerplate=`cat conftest.err`
9390 $RM conftest*
9391
9392 ac_outfile=conftest.$ac_objext
9393 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9394 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9395 _lt_linker_boilerplate=`cat conftest.err`
9396 $RM -r conftest*
9397
9398
9399 ## CAVEAT EMPTOR:
9400 ## There is no encapsulation within the following macros, do not change
9401 ## the running order or otherwise move them around unless you know exactly
9402 ## what you are doing...
9403 if test -n "$compiler"; then
9404
9405 lt_prog_compiler_no_builtin_flag=
9406
9407 if test "$GCC" = yes; then
9408   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9409
9410   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9411 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9412 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9413   echo $ECHO_N "(cached) $ECHO_C" >&6
9414 else
9415   lt_cv_prog_compiler_rtti_exceptions=no
9416    ac_outfile=conftest.$ac_objext
9417    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9418    lt_compiler_flag="-fno-rtti -fno-exceptions"
9419    # Insert the option either (1) after the last *FLAGS variable, or
9420    # (2) before a word containing "conftest.", or (3) at the end.
9421    # Note that $ac_compile itself does not contain backslashes and begins
9422    # with a dollar sign (not a hyphen), so the echo should work correctly.
9423    # The option is referenced via a variable to avoid confusing sed.
9424    lt_compile=`echo "$ac_compile" | $SED \
9425    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9426    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9427    -e 's:$: $lt_compiler_flag:'`
9428    (eval echo "\"\$as_me:9428: $lt_compile\"" >&5)
9429    (eval "$lt_compile" 2>conftest.err)
9430    ac_status=$?
9431    cat conftest.err >&5
9432    echo "$as_me:9432: \$? = $ac_status" >&5
9433    if (exit $ac_status) && test -s "$ac_outfile"; then
9434      # The compiler can only warn and ignore the option if not recognized
9435      # So say no if there are warnings other than the usual output.
9436      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9437      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9438      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9439        lt_cv_prog_compiler_rtti_exceptions=yes
9440      fi
9441    fi
9442    $RM conftest*
9443
9444 fi
9445 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9446 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9447
9448 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9449     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9450 else
9451     :
9452 fi
9453
9454 fi
9455
9456
9457
9458
9459
9460
9461   lt_prog_compiler_wl=
9462 lt_prog_compiler_pic=
9463 lt_prog_compiler_static=
9464
9465 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9466 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9467
9468   if test "$GCC" = yes; then
9469     lt_prog_compiler_wl='-Wl,'
9470     lt_prog_compiler_static='-static'
9471
9472     case $host_os in
9473       aix*)
9474       # All AIX code is PIC.
9475       if test "$host_cpu" = ia64; then
9476         # AIX 5 now supports IA64 processor
9477         lt_prog_compiler_static='-Bstatic'
9478       fi
9479       ;;
9480
9481     amigaos*)
9482       case $host_cpu in
9483       powerpc)
9484             # see comment about AmigaOS4 .so support
9485             lt_prog_compiler_pic='-fPIC'
9486         ;;
9487       m68k)
9488             # FIXME: we need at least 68020 code to build shared libraries, but
9489             # adding the `-m68020' flag to GCC prevents building anything better,
9490             # like `-m68040'.
9491             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9492         ;;
9493       esac
9494       ;;
9495
9496     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9497       # PIC is the default for these OSes.
9498       ;;
9499
9500     mingw* | cygwin* | pw32* | os2* | cegcc*)
9501       # This hack is so that the source file can tell whether it is being
9502       # built for inclusion in a dll (and should export symbols for example).
9503       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9504       # (--disable-auto-import) libraries
9505       lt_prog_compiler_pic='-DDLL_EXPORT'
9506       ;;
9507
9508     darwin* | rhapsody*)
9509       # PIC is the default on this platform
9510       # Common symbols not allowed in MH_DYLIB files
9511       lt_prog_compiler_pic='-fno-common'
9512       ;;
9513
9514     hpux*)
9515       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9516       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9517       # sets the default TLS model and affects inlining.
9518       case $host_cpu in
9519       hppa*64*)
9520         # +Z the default
9521         ;;
9522       *)
9523         lt_prog_compiler_pic='-fPIC'
9524         ;;
9525       esac
9526       ;;
9527
9528     interix[3-9]*)
9529       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9530       # Instead, we relocate shared libraries at runtime.
9531       ;;
9532
9533     msdosdjgpp*)
9534       # Just because we use GCC doesn't mean we suddenly get shared libraries
9535       # on systems that don't support them.
9536       lt_prog_compiler_can_build_shared=no
9537       enable_shared=no
9538       ;;
9539
9540     *nto* | *qnx*)
9541       # QNX uses GNU C++, but need to define -shared option too, otherwise
9542       # it will coredump.
9543       lt_prog_compiler_pic='-fPIC -shared'
9544       ;;
9545
9546     sysv4*MP*)
9547       if test -d /usr/nec; then
9548         lt_prog_compiler_pic=-Kconform_pic
9549       fi
9550       ;;
9551
9552     *)
9553       lt_prog_compiler_pic='-fPIC'
9554       ;;
9555     esac
9556   else
9557     # PORTME Check for flag to pass linker flags through the system compiler.
9558     case $host_os in
9559     aix*)
9560       lt_prog_compiler_wl='-Wl,'
9561       if test "$host_cpu" = ia64; then
9562         # AIX 5 now supports IA64 processor
9563         lt_prog_compiler_static='-Bstatic'
9564       else
9565         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9566       fi
9567       ;;
9568
9569     mingw* | cygwin* | pw32* | os2* | cegcc*)
9570       # This hack is so that the source file can tell whether it is being
9571       # built for inclusion in a dll (and should export symbols for example).
9572       lt_prog_compiler_pic='-DDLL_EXPORT'
9573       ;;
9574
9575     hpux9* | hpux10* | hpux11*)
9576       lt_prog_compiler_wl='-Wl,'
9577       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9578       # not for PA HP-UX.
9579       case $host_cpu in
9580       hppa*64*|ia64*)
9581         # +Z the default
9582         ;;
9583       *)
9584         lt_prog_compiler_pic='+Z'
9585         ;;
9586       esac
9587       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9588       lt_prog_compiler_static='${wl}-a ${wl}archive'
9589       ;;
9590
9591     irix5* | irix6* | nonstopux*)
9592       lt_prog_compiler_wl='-Wl,'
9593       # PIC (with -KPIC) is the default.
9594       lt_prog_compiler_static='-non_shared'
9595       ;;
9596
9597     linux* | k*bsd*-gnu)
9598       case $cc_basename in
9599       # old Intel for x86_64 which still supported -KPIC.
9600       ecc*)
9601         lt_prog_compiler_wl='-Wl,'
9602         lt_prog_compiler_pic='-KPIC'
9603         lt_prog_compiler_static='-static'
9604         ;;
9605       # icc used to be incompatible with GCC.
9606       # ICC 10 doesn't accept -KPIC any more.
9607       icc* | ifort*)
9608         lt_prog_compiler_wl='-Wl,'
9609         lt_prog_compiler_pic='-fPIC'
9610         lt_prog_compiler_static='-static'
9611         ;;
9612       # Lahey Fortran 8.1.
9613       lf95*)
9614         lt_prog_compiler_wl='-Wl,'
9615         lt_prog_compiler_pic='--shared'
9616         lt_prog_compiler_static='--static'
9617         ;;
9618       pgcc* | pgf77* | pgf90* | pgf95*)
9619         # Portland Group compilers (*not* the Pentium gcc compiler,
9620         # which looks to be a dead project)
9621         lt_prog_compiler_wl='-Wl,'
9622         lt_prog_compiler_pic='-fpic'
9623         lt_prog_compiler_static='-Bstatic'
9624         ;;
9625       ccc*)
9626         lt_prog_compiler_wl='-Wl,'
9627         # All Alpha code is PIC.
9628         lt_prog_compiler_static='-non_shared'
9629         ;;
9630       xl*)
9631         # IBM XL C 8.0/Fortran 10.1 on PPC
9632         lt_prog_compiler_wl='-Wl,'
9633         lt_prog_compiler_pic='-qpic'
9634         lt_prog_compiler_static='-qstaticlink'
9635         ;;
9636       *)
9637         case `$CC -V 2>&1 | sed 5q` in
9638         *Sun\ C*)
9639           # Sun C 5.9
9640           lt_prog_compiler_pic='-KPIC'
9641           lt_prog_compiler_static='-Bstatic'
9642           lt_prog_compiler_wl='-Wl,'
9643           ;;
9644         *Sun\ F*)
9645           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9646           lt_prog_compiler_pic='-KPIC'
9647           lt_prog_compiler_static='-Bstatic'
9648           lt_prog_compiler_wl=''
9649           ;;
9650         esac
9651         ;;
9652       esac
9653       ;;
9654
9655     newsos6)
9656       lt_prog_compiler_pic='-KPIC'
9657       lt_prog_compiler_static='-Bstatic'
9658       ;;
9659
9660     *nto* | *qnx*)
9661       # QNX uses GNU C++, but need to define -shared option too, otherwise
9662       # it will coredump.
9663       lt_prog_compiler_pic='-fPIC -shared'
9664       ;;
9665
9666     osf3* | osf4* | osf5*)
9667       lt_prog_compiler_wl='-Wl,'
9668       # All OSF/1 code is PIC.
9669       lt_prog_compiler_static='-non_shared'
9670       ;;
9671
9672     rdos*)
9673       lt_prog_compiler_static='-non_shared'
9674       ;;
9675
9676     solaris*)
9677       lt_prog_compiler_pic='-KPIC'
9678       lt_prog_compiler_static='-Bstatic'
9679       case $cc_basename in
9680       f77* | f90* | f95*)
9681         lt_prog_compiler_wl='-Qoption ld ';;
9682       *)
9683         lt_prog_compiler_wl='-Wl,';;
9684       esac
9685       ;;
9686
9687     sunos4*)
9688       lt_prog_compiler_wl='-Qoption ld '
9689       lt_prog_compiler_pic='-PIC'
9690       lt_prog_compiler_static='-Bstatic'
9691       ;;
9692
9693     sysv4 | sysv4.2uw2* | sysv4.3*)
9694       lt_prog_compiler_wl='-Wl,'
9695       lt_prog_compiler_pic='-KPIC'
9696       lt_prog_compiler_static='-Bstatic'
9697       ;;
9698
9699     sysv4*MP*)
9700       if test -d /usr/nec ;then
9701         lt_prog_compiler_pic='-Kconform_pic'
9702         lt_prog_compiler_static='-Bstatic'
9703       fi
9704       ;;
9705
9706     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9707       lt_prog_compiler_wl='-Wl,'
9708       lt_prog_compiler_pic='-KPIC'
9709       lt_prog_compiler_static='-Bstatic'
9710       ;;
9711
9712     unicos*)
9713       lt_prog_compiler_wl='-Wl,'
9714       lt_prog_compiler_can_build_shared=no
9715       ;;
9716
9717     uts4*)
9718       lt_prog_compiler_pic='-pic'
9719       lt_prog_compiler_static='-Bstatic'
9720       ;;
9721
9722     *)
9723       lt_prog_compiler_can_build_shared=no
9724       ;;
9725     esac
9726   fi
9727
9728 case $host_os in
9729   # For platforms which do not support PIC, -DPIC is meaningless:
9730   *djgpp*)
9731     lt_prog_compiler_pic=
9732     ;;
9733   *)
9734     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9735     ;;
9736 esac
9737 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9738 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9739
9740
9741
9742
9743
9744
9745 #
9746 # Check to make sure the PIC flag actually works.
9747 #
9748 if test -n "$lt_prog_compiler_pic"; then
9749   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9750 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9751 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9752   echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754   lt_cv_prog_compiler_pic_works=no
9755    ac_outfile=conftest.$ac_objext
9756    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9757    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9758    # Insert the option either (1) after the last *FLAGS variable, or
9759    # (2) before a word containing "conftest.", or (3) at the end.
9760    # Note that $ac_compile itself does not contain backslashes and begins
9761    # with a dollar sign (not a hyphen), so the echo should work correctly.
9762    # The option is referenced via a variable to avoid confusing sed.
9763    lt_compile=`echo "$ac_compile" | $SED \
9764    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9765    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9766    -e 's:$: $lt_compiler_flag:'`
9767    (eval echo "\"\$as_me:9767: $lt_compile\"" >&5)
9768    (eval "$lt_compile" 2>conftest.err)
9769    ac_status=$?
9770    cat conftest.err >&5
9771    echo "$as_me:9771: \$? = $ac_status" >&5
9772    if (exit $ac_status) && test -s "$ac_outfile"; then
9773      # The compiler can only warn and ignore the option if not recognized
9774      # So say no if there are warnings other than the usual output.
9775      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9776      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9777      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9778        lt_cv_prog_compiler_pic_works=yes
9779      fi
9780    fi
9781    $RM conftest*
9782
9783 fi
9784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9785 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9786
9787 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9788     case $lt_prog_compiler_pic in
9789      "" | " "*) ;;
9790      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9791      esac
9792 else
9793     lt_prog_compiler_pic=
9794      lt_prog_compiler_can_build_shared=no
9795 fi
9796
9797 fi
9798
9799
9800
9801
9802
9803
9804 #
9805 # Check to make sure the static flag actually works.
9806 #
9807 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9808 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9809 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9810 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9811   echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813   lt_cv_prog_compiler_static_works=no
9814    save_LDFLAGS="$LDFLAGS"
9815    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9816    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9817    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9818      # The linker can only warn and ignore the option if not recognized
9819      # So say no if there are warnings
9820      if test -s conftest.err; then
9821        # Append any errors to the config.log.
9822        cat conftest.err 1>&5
9823        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9824        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9825        if diff conftest.exp conftest.er2 >/dev/null; then
9826          lt_cv_prog_compiler_static_works=yes
9827        fi
9828      else
9829        lt_cv_prog_compiler_static_works=yes
9830      fi
9831    fi
9832    $RM -r conftest*
9833    LDFLAGS="$save_LDFLAGS"
9834
9835 fi
9836 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9837 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9838
9839 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9840     :
9841 else
9842     lt_prog_compiler_static=
9843 fi
9844
9845
9846
9847
9848
9849
9850
9851   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9852 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9853 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9854   echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856   lt_cv_prog_compiler_c_o=no
9857    $RM -r conftest 2>/dev/null
9858    mkdir conftest
9859    cd conftest
9860    mkdir out
9861    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9862
9863    lt_compiler_flag="-o out/conftest2.$ac_objext"
9864    # Insert the option either (1) after the last *FLAGS variable, or
9865    # (2) before a word containing "conftest.", or (3) at the end.
9866    # Note that $ac_compile itself does not contain backslashes and begins
9867    # with a dollar sign (not a hyphen), so the echo should work correctly.
9868    lt_compile=`echo "$ac_compile" | $SED \
9869    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9870    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9871    -e 's:$: $lt_compiler_flag:'`
9872    (eval echo "\"\$as_me:9872: $lt_compile\"" >&5)
9873    (eval "$lt_compile" 2>out/conftest.err)
9874    ac_status=$?
9875    cat out/conftest.err >&5
9876    echo "$as_me:9876: \$? = $ac_status" >&5
9877    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9878    then
9879      # The compiler can only warn and ignore the option if not recognized
9880      # So say no if there are warnings
9881      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9882      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9883      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9884        lt_cv_prog_compiler_c_o=yes
9885      fi
9886    fi
9887    chmod u+w . 2>&5
9888    $RM conftest*
9889    # SGI C++ compiler will create directory out/ii_files/ for
9890    # template instantiation
9891    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9892    $RM out/* && rmdir out
9893    cd ..
9894    $RM -r conftest
9895    $RM conftest*
9896
9897 fi
9898 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9899 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9900
9901
9902
9903
9904
9905
9906   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9907 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9908 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9909   echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911   lt_cv_prog_compiler_c_o=no
9912    $RM -r conftest 2>/dev/null
9913    mkdir conftest
9914    cd conftest
9915    mkdir out
9916    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9917
9918    lt_compiler_flag="-o out/conftest2.$ac_objext"
9919    # Insert the option either (1) after the last *FLAGS variable, or
9920    # (2) before a word containing "conftest.", or (3) at the end.
9921    # Note that $ac_compile itself does not contain backslashes and begins
9922    # with a dollar sign (not a hyphen), so the echo should work correctly.
9923    lt_compile=`echo "$ac_compile" | $SED \
9924    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9925    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9926    -e 's:$: $lt_compiler_flag:'`
9927    (eval echo "\"\$as_me:9927: $lt_compile\"" >&5)
9928    (eval "$lt_compile" 2>out/conftest.err)
9929    ac_status=$?
9930    cat out/conftest.err >&5
9931    echo "$as_me:9931: \$? = $ac_status" >&5
9932    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9933    then
9934      # The compiler can only warn and ignore the option if not recognized
9935      # So say no if there are warnings
9936      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9937      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9938      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9939        lt_cv_prog_compiler_c_o=yes
9940      fi
9941    fi
9942    chmod u+w . 2>&5
9943    $RM conftest*
9944    # SGI C++ compiler will create directory out/ii_files/ for
9945    # template instantiation
9946    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9947    $RM out/* && rmdir out
9948    cd ..
9949    $RM -r conftest
9950    $RM conftest*
9951
9952 fi
9953 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9954 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9955
9956
9957
9958
9959 hard_links="nottested"
9960 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9961   # do not overwrite the value of need_locks provided by the user
9962   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9963 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9964   hard_links=yes
9965   $RM conftest*
9966   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9967   touch conftest.a
9968   ln conftest.a conftest.b 2>&5 || hard_links=no
9969   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9970   { echo "$as_me:$LINENO: result: $hard_links" >&5
9971 echo "${ECHO_T}$hard_links" >&6; }
9972   if test "$hard_links" = no; then
9973     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9974 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9975     need_locks=warn
9976   fi
9977 else
9978   need_locks=no
9979 fi
9980
9981
9982
9983
9984
9985
9986   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9987 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9988
9989   runpath_var=
9990   allow_undefined_flag=
9991   always_export_symbols=no
9992   archive_cmds=
9993   archive_expsym_cmds=
9994   compiler_needs_object=no
9995   enable_shared_with_static_runtimes=no
9996   export_dynamic_flag_spec=
9997   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9998   hardcode_automatic=no
9999   hardcode_direct=no
10000   hardcode_direct_absolute=no
10001   hardcode_libdir_flag_spec=
10002   hardcode_libdir_flag_spec_ld=
10003   hardcode_libdir_separator=
10004   hardcode_minus_L=no
10005   hardcode_shlibpath_var=unsupported
10006   inherit_rpath=no
10007   link_all_deplibs=unknown
10008   module_cmds=
10009   module_expsym_cmds=
10010   old_archive_from_new_cmds=
10011   old_archive_from_expsyms_cmds=
10012   thread_safe_flag_spec=
10013   whole_archive_flag_spec=
10014   # include_expsyms should be a list of space-separated symbols to be *always*
10015   # included in the symbol list
10016   include_expsyms=
10017   # exclude_expsyms can be an extended regexp of symbols to exclude
10018   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10019   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10020   # as well as any symbol that contains `d'.
10021   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10022   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10023   # platforms (ab)use it in PIC code, but their linkers get confused if
10024   # the symbol is explicitly referenced.  Since portable code cannot
10025   # rely on this symbol name, it's probably fine to never include it in
10026   # preloaded symbol tables.
10027   # Exclude shared library initialization/finalization symbols.
10028   extract_expsyms_cmds=
10029
10030   case $host_os in
10031   cygwin* | mingw* | pw32* | cegcc*)
10032     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10033     # When not using gcc, we currently assume that we are using
10034     # Microsoft Visual C++.
10035     if test "$GCC" != yes; then
10036       with_gnu_ld=no
10037     fi
10038     ;;
10039   interix*)
10040     # we just hope/assume this is gcc and not c89 (= MSVC++)
10041     with_gnu_ld=yes
10042     ;;
10043   openbsd*)
10044     with_gnu_ld=no
10045     ;;
10046   esac
10047
10048   ld_shlibs=yes
10049   if test "$with_gnu_ld" = yes; then
10050     # If archive_cmds runs LD, not CC, wlarc should be empty
10051     wlarc='${wl}'
10052
10053     # Set some defaults for GNU ld with shared library support. These
10054     # are reset later if shared libraries are not supported. Putting them
10055     # here allows them to be overridden if necessary.
10056     runpath_var=LD_RUN_PATH
10057     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10058     export_dynamic_flag_spec='${wl}--export-dynamic'
10059     # ancient GNU ld didn't support --whole-archive et. al.
10060     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10061       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10062     else
10063       whole_archive_flag_spec=
10064     fi
10065     supports_anon_versioning=no
10066     case `$LD -v 2>&1` in
10067       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10068       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10069       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10070       *\ 2.11.*) ;; # other 2.11 versions
10071       *) supports_anon_versioning=yes ;;
10072     esac
10073
10074     # See if GNU ld supports shared libraries.
10075     case $host_os in
10076     aix[3-9]*)
10077       # On AIX/PPC, the GNU linker is very broken
10078       if test "$host_cpu" != ia64; then
10079         ld_shlibs=no
10080         cat <<_LT_EOF 1>&2
10081
10082 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10083 *** to be unable to reliably create shared libraries on AIX.
10084 *** Therefore, libtool is disabling shared libraries support.  If you
10085 *** really care for shared libraries, you may want to modify your PATH
10086 *** so that a non-GNU linker is found, and then restart.
10087
10088 _LT_EOF
10089       fi
10090       ;;
10091
10092     amigaos*)
10093       case $host_cpu in
10094       powerpc)
10095             # see comment about AmigaOS4 .so support
10096             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10097             archive_expsym_cmds=''
10098         ;;
10099       m68k)
10100             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)'
10101             hardcode_libdir_flag_spec='-L$libdir'
10102             hardcode_minus_L=yes
10103         ;;
10104       esac
10105       ;;
10106
10107     beos*)
10108       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10109         allow_undefined_flag=unsupported
10110         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10111         # support --undefined.  This deserves some investigation.  FIXME
10112         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113       else
10114         ld_shlibs=no
10115       fi
10116       ;;
10117
10118     cygwin* | mingw* | pw32* | cegcc*)
10119       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10120       # as there is no search path for DLLs.
10121       hardcode_libdir_flag_spec='-L$libdir'
10122       allow_undefined_flag=unsupported
10123       always_export_symbols=no
10124       enable_shared_with_static_runtimes=yes
10125       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10126
10127       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10128         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10129         # If the export-symbols file already is a .def file (1st line
10130         # is EXPORTS), use it as is; otherwise, prepend...
10131         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10132           cp $export_symbols $output_objdir/$soname.def;
10133         else
10134           echo EXPORTS > $output_objdir/$soname.def;
10135           cat $export_symbols >> $output_objdir/$soname.def;
10136         fi~
10137         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10138       else
10139         ld_shlibs=no
10140       fi
10141       ;;
10142
10143     interix[3-9]*)
10144       hardcode_direct=no
10145       hardcode_shlibpath_var=no
10146       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10147       export_dynamic_flag_spec='${wl}-E'
10148       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10149       # Instead, shared libraries are loaded at an image base (0x10000000 by
10150       # default) and relocated if they conflict, which is a slow very memory
10151       # consuming and fragmenting process.  To avoid this, we pick a random,
10152       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10153       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10154       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10155       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'
10156       ;;
10157
10158     gnu* | linux* | tpf* | k*bsd*-gnu)
10159       tmp_diet=no
10160       if test "$host_os" = linux-dietlibc; then
10161         case $cc_basename in
10162           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10163         esac
10164       fi
10165       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10166          && test "$tmp_diet" = no
10167       then
10168         tmp_addflag=
10169         tmp_sharedflag='-shared'
10170         case $cc_basename,$host_cpu in
10171         pgcc*)                          # Portland Group C compiler
10172           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'
10173           tmp_addflag=' $pic_flag'
10174           ;;
10175         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10176           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'
10177           tmp_addflag=' $pic_flag -Mnomain' ;;
10178         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10179           tmp_addflag=' -i_dynamic' ;;
10180         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10181           tmp_addflag=' -i_dynamic -nofor_main' ;;
10182         ifc* | ifort*)                  # Intel Fortran compiler
10183           tmp_addflag=' -nofor_main' ;;
10184         lf95*)                          # Lahey Fortran 8.1
10185           whole_archive_flag_spec=
10186           tmp_sharedflag='--shared' ;;
10187         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10188           tmp_sharedflag='-qmkshrobj'
10189           tmp_addflag= ;;
10190         esac
10191         case `$CC -V 2>&1 | sed 5q` in
10192         *Sun\ C*)                       # Sun C 5.9
10193           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'
10194           compiler_needs_object=yes
10195           tmp_sharedflag='-G' ;;
10196         *Sun\ F*)                       # Sun Fortran 8.3
10197           tmp_sharedflag='-G' ;;
10198         esac
10199         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10200
10201         if test "x$supports_anon_versioning" = xyes; then
10202           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10203             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10204             echo "local: *; };" >> $output_objdir/$libname.ver~
10205             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10206         fi
10207
10208         case $cc_basename in
10209         xlf*)
10210           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10211           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10212           hardcode_libdir_flag_spec=
10213           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10214           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10215           if test "x$supports_anon_versioning" = xyes; then
10216             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10217               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10218               echo "local: *; };" >> $output_objdir/$libname.ver~
10219               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10220           fi
10221           ;;
10222         esac
10223       else
10224         ld_shlibs=no
10225       fi
10226       ;;
10227
10228     netbsd*)
10229       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10230         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10231         wlarc=
10232       else
10233         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10234         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10235       fi
10236       ;;
10237
10238     solaris*)
10239       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10240         ld_shlibs=no
10241         cat <<_LT_EOF 1>&2
10242
10243 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10244 *** create shared libraries on Solaris systems.  Therefore, libtool
10245 *** is disabling shared libraries support.  We urge you to upgrade GNU
10246 *** binutils to release 2.9.1 or newer.  Another option is to modify
10247 *** your PATH or compiler configuration so that the native linker is
10248 *** used, and then restart.
10249
10250 _LT_EOF
10251       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10252         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10253         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10254       else
10255         ld_shlibs=no
10256       fi
10257       ;;
10258
10259     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10260       case `$LD -v 2>&1` in
10261         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10262         ld_shlibs=no
10263         cat <<_LT_EOF 1>&2
10264
10265 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10266 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10267 *** is disabling shared libraries support.  We urge you to upgrade GNU
10268 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10269 *** your PATH or compiler configuration so that the native linker is
10270 *** used, and then restart.
10271
10272 _LT_EOF
10273         ;;
10274         *)
10275           # For security reasons, it is highly recommended that you always
10276           # use absolute paths for naming shared libraries, and exclude the
10277           # DT_RUNPATH tag from executables and libraries.  But doing so
10278           # requires that you compile everything twice, which is a pain.
10279           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10280             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10281             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10282             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10283           else
10284             ld_shlibs=no
10285           fi
10286         ;;
10287       esac
10288       ;;
10289
10290     sunos4*)
10291       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10292       wlarc=
10293       hardcode_direct=yes
10294       hardcode_shlibpath_var=no
10295       ;;
10296
10297     *)
10298       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10299         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10300         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10301       else
10302         ld_shlibs=no
10303       fi
10304       ;;
10305     esac
10306
10307     if test "$ld_shlibs" = no; then
10308       runpath_var=
10309       hardcode_libdir_flag_spec=
10310       export_dynamic_flag_spec=
10311       whole_archive_flag_spec=
10312     fi
10313   else
10314     # PORTME fill in a description of your system's linker (not GNU ld)
10315     case $host_os in
10316     aix3*)
10317       allow_undefined_flag=unsupported
10318       always_export_symbols=yes
10319       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'
10320       # Note: this linker hardcodes the directories in LIBPATH if there
10321       # are no directories specified by -L.
10322       hardcode_minus_L=yes
10323       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10324         # Neither direct hardcoding nor static linking is supported with a
10325         # broken collect2.
10326         hardcode_direct=unsupported
10327       fi
10328       ;;
10329
10330     aix[4-9]*)
10331       if test "$host_cpu" = ia64; then
10332         # On IA64, the linker does run time linking by default, so we don't
10333         # have to do anything special.
10334         aix_use_runtimelinking=no
10335         exp_sym_flag='-Bexport'
10336         no_entry_flag=""
10337       else
10338         # If we're using GNU nm, then we don't want the "-C" option.
10339         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10340         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10341           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'
10342         else
10343           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'
10344         fi
10345         aix_use_runtimelinking=no
10346
10347         # Test if we are trying to use run time linking or normal
10348         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10349         # need to do runtime linking.
10350         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10351           for ld_flag in $LDFLAGS; do
10352           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10353             aix_use_runtimelinking=yes
10354             break
10355           fi
10356           done
10357           ;;
10358         esac
10359
10360         exp_sym_flag='-bexport'
10361         no_entry_flag='-bnoentry'
10362       fi
10363
10364       # When large executables or shared objects are built, AIX ld can
10365       # have problems creating the table of contents.  If linking a library
10366       # or program results in "error TOC overflow" add -mminimal-toc to
10367       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10368       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10369
10370       archive_cmds=''
10371       hardcode_direct=yes
10372       hardcode_direct_absolute=yes
10373       hardcode_libdir_separator=':'
10374       link_all_deplibs=yes
10375       file_list_spec='${wl}-f,'
10376
10377       if test "$GCC" = yes; then
10378         case $host_os in aix4.[012]|aix4.[012].*)
10379         # We only want to do this on AIX 4.2 and lower, the check
10380         # below for broken collect2 doesn't work under 4.3+
10381           collect2name=`${CC} -print-prog-name=collect2`
10382           if test -f "$collect2name" &&
10383            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10384           then
10385           # We have reworked collect2
10386           :
10387           else
10388           # We have old collect2
10389           hardcode_direct=unsupported
10390           # It fails to find uninstalled libraries when the uninstalled
10391           # path is not listed in the libpath.  Setting hardcode_minus_L
10392           # to unsupported forces relinking
10393           hardcode_minus_L=yes
10394           hardcode_libdir_flag_spec='-L$libdir'
10395           hardcode_libdir_separator=
10396           fi
10397           ;;
10398         esac
10399         shared_flag='-shared'
10400         if test "$aix_use_runtimelinking" = yes; then
10401           shared_flag="$shared_flag "'${wl}-G'
10402         fi
10403       else
10404         # not using gcc
10405         if test "$host_cpu" = ia64; then
10406         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10407         # chokes on -Wl,-G. The following line is correct:
10408           shared_flag='-G'
10409         else
10410           if test "$aix_use_runtimelinking" = yes; then
10411             shared_flag='${wl}-G'
10412           else
10413             shared_flag='${wl}-bM:SRE'
10414           fi
10415         fi
10416       fi
10417
10418       export_dynamic_flag_spec='${wl}-bexpall'
10419       # It seems that -bexpall does not export symbols beginning with
10420       # underscore (_), so it is better to generate a list of symbols to export.
10421       always_export_symbols=yes
10422       if test "$aix_use_runtimelinking" = yes; then
10423         # Warning - without using the other runtime loading flags (-brtl),
10424         # -berok will link without error, but may produce a broken library.
10425         allow_undefined_flag='-berok'
10426         # Determine the default libpath from the value encoded in an
10427         # empty executable.
10428         cat >conftest.$ac_ext <<_ACEOF
10429 /* confdefs.h.  */
10430 _ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h.  */
10434
10435 int
10436 main ()
10437 {
10438
10439   ;
10440   return 0;
10441 }
10442 _ACEOF
10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (ac_try="$ac_link"
10445 case "(($ac_try" in
10446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447   *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450   (eval "$ac_link") 2>conftest.er1
10451   ac_status=$?
10452   grep -v '^ *+' conftest.er1 >conftest.err
10453   rm -f conftest.er1
10454   cat conftest.err >&5
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } && {
10457          test -z "$ac_c_werror_flag" ||
10458          test ! -s conftest.err
10459        } && test -s conftest$ac_exeext &&
10460        $as_test_x conftest$ac_exeext; then
10461
10462 lt_aix_libpath_sed='
10463     /Import File Strings/,/^$/ {
10464         /^0/ {
10465             s/^0  *\(.*\)$/\1/
10466             p
10467         }
10468     }'
10469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10470 # Check for a 64-bit object if we didn't find anything.
10471 if test -z "$aix_libpath"; then
10472   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10473 fi
10474 else
10475   echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10477
10478
10479 fi
10480
10481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10482       conftest$ac_exeext conftest.$ac_ext
10483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10484
10485         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10486         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"
10487       else
10488         if test "$host_cpu" = ia64; then
10489           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10490           allow_undefined_flag="-z nodefs"
10491           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"
10492         else
10493          # Determine the default libpath from the value encoded in an
10494          # empty executable.
10495          cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h.  */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h.  */
10501
10502 int
10503 main ()
10504 {
10505
10506   ;
10507   return 0;
10508 }
10509 _ACEOF
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514   *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517   (eval "$ac_link") 2>conftest.er1
10518   ac_status=$?
10519   grep -v '^ *+' conftest.er1 >conftest.err
10520   rm -f conftest.er1
10521   cat conftest.err >&5
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); } && {
10524          test -z "$ac_c_werror_flag" ||
10525          test ! -s conftest.err
10526        } && test -s conftest$ac_exeext &&
10527        $as_test_x conftest$ac_exeext; then
10528
10529 lt_aix_libpath_sed='
10530     /Import File Strings/,/^$/ {
10531         /^0/ {
10532             s/^0  *\(.*\)$/\1/
10533             p
10534         }
10535     }'
10536 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10537 # Check for a 64-bit object if we didn't find anything.
10538 if test -z "$aix_libpath"; then
10539   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10540 fi
10541 else
10542   echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10544
10545
10546 fi
10547
10548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10549       conftest$ac_exeext conftest.$ac_ext
10550 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10551
10552          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10553           # Warning - without using the other run time loading flags,
10554           # -berok will link without error, but may produce a broken library.
10555           no_undefined_flag=' ${wl}-bernotok'
10556           allow_undefined_flag=' ${wl}-berok'
10557           # Exported symbols can be pulled into shared objects from archives
10558           whole_archive_flag_spec='$convenience'
10559           archive_cmds_need_lc=yes
10560           # This is similar to how AIX traditionally builds its shared libraries.
10561           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'
10562         fi
10563       fi
10564       ;;
10565
10566     amigaos*)
10567       case $host_cpu in
10568       powerpc)
10569             # see comment about AmigaOS4 .so support
10570             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10571             archive_expsym_cmds=''
10572         ;;
10573       m68k)
10574             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)'
10575             hardcode_libdir_flag_spec='-L$libdir'
10576             hardcode_minus_L=yes
10577         ;;
10578       esac
10579       ;;
10580
10581     bsdi[45]*)
10582       export_dynamic_flag_spec=-rdynamic
10583       ;;
10584
10585     cygwin* | mingw* | pw32* | cegcc*)
10586       # When not using gcc, we currently assume that we are using
10587       # Microsoft Visual C++.
10588       # hardcode_libdir_flag_spec is actually meaningless, as there is
10589       # no search path for DLLs.
10590       hardcode_libdir_flag_spec=' '
10591       allow_undefined_flag=unsupported
10592       # Tell ltmain to make .lib files, not .a files.
10593       libext=lib
10594       # Tell ltmain to make .dll files, not .so files.
10595       shrext_cmds=".dll"
10596       # FIXME: Setting linknames here is a bad hack.
10597       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10598       # The linker will automatically build a .lib file if we build a DLL.
10599       old_archive_from_new_cmds='true'
10600       # FIXME: Should let the user specify the lib program.
10601       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10602       fix_srcfile_path='`cygpath -w "$srcfile"`'
10603       enable_shared_with_static_runtimes=yes
10604       ;;
10605
10606     darwin* | rhapsody*)
10607
10608
10609   archive_cmds_need_lc=no
10610   hardcode_direct=no
10611   hardcode_automatic=yes
10612   hardcode_shlibpath_var=unsupported
10613   whole_archive_flag_spec=''
10614   link_all_deplibs=yes
10615   allow_undefined_flag="$_lt_dar_allow_undefined"
10616   case $cc_basename in
10617      ifort*) _lt_dar_can_shared=yes ;;
10618      *) _lt_dar_can_shared=$GCC ;;
10619   esac
10620   if test "$_lt_dar_can_shared" = "yes"; then
10621     output_verbose_link_cmd=echo
10622     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10623     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10624     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}"
10625     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}"
10626
10627   else
10628   ld_shlibs=no
10629   fi
10630
10631       ;;
10632
10633     dgux*)
10634       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10635       hardcode_libdir_flag_spec='-L$libdir'
10636       hardcode_shlibpath_var=no
10637       ;;
10638
10639     freebsd1*)
10640       ld_shlibs=no
10641       ;;
10642
10643     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10644     # support.  Future versions do this automatically, but an explicit c++rt0.o
10645     # does not break anything, and helps significantly (at the cost of a little
10646     # extra space).
10647     freebsd2.2*)
10648       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10649       hardcode_libdir_flag_spec='-R$libdir'
10650       hardcode_direct=yes
10651       hardcode_shlibpath_var=no
10652       ;;
10653
10654     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10655     freebsd2*)
10656       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10657       hardcode_direct=yes
10658       hardcode_minus_L=yes
10659       hardcode_shlibpath_var=no
10660       ;;
10661
10662     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10663     freebsd* | dragonfly*)
10664       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10665       hardcode_libdir_flag_spec='-R$libdir'
10666       hardcode_direct=yes
10667       hardcode_shlibpath_var=no
10668       ;;
10669
10670     hpux9*)
10671       if test "$GCC" = yes; then
10672         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'
10673       else
10674         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'
10675       fi
10676       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10677       hardcode_libdir_separator=:
10678       hardcode_direct=yes
10679
10680       # hardcode_minus_L: Not really in the search PATH,
10681       # but as the default location of the library.
10682       hardcode_minus_L=yes
10683       export_dynamic_flag_spec='${wl}-E'
10684       ;;
10685
10686     hpux10*)
10687       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10688         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10689       else
10690         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10691       fi
10692       if test "$with_gnu_ld" = no; then
10693         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10694         hardcode_libdir_flag_spec_ld='+b $libdir'
10695         hardcode_libdir_separator=:
10696         hardcode_direct=yes
10697         hardcode_direct_absolute=yes
10698         export_dynamic_flag_spec='${wl}-E'
10699         # hardcode_minus_L: Not really in the search PATH,
10700         # but as the default location of the library.
10701         hardcode_minus_L=yes
10702       fi
10703       ;;
10704
10705     hpux11*)
10706       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10707         case $host_cpu in
10708         hppa*64*)
10709           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10710           ;;
10711         ia64*)
10712           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10713           ;;
10714         *)
10715           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10716           ;;
10717         esac
10718       else
10719         case $host_cpu in
10720         hppa*64*)
10721           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10722           ;;
10723         ia64*)
10724           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10725           ;;
10726         *)
10727           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10728           ;;
10729         esac
10730       fi
10731       if test "$with_gnu_ld" = no; then
10732         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10733         hardcode_libdir_separator=:
10734
10735         case $host_cpu in
10736         hppa*64*|ia64*)
10737           hardcode_direct=no
10738           hardcode_shlibpath_var=no
10739           ;;
10740         *)
10741           hardcode_direct=yes
10742           hardcode_direct_absolute=yes
10743           export_dynamic_flag_spec='${wl}-E'
10744
10745           # hardcode_minus_L: Not really in the search PATH,
10746           # but as the default location of the library.
10747           hardcode_minus_L=yes
10748           ;;
10749         esac
10750       fi
10751       ;;
10752
10753     irix5* | irix6* | nonstopux*)
10754       if test "$GCC" = yes; then
10755         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'
10756         # Try to use the -exported_symbol ld option, if it does not
10757         # work, assume that -exports_file does not work either and
10758         # implicitly export all symbols.
10759         save_LDFLAGS="$LDFLAGS"
10760         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10761         cat >conftest.$ac_ext <<_ACEOF
10762 int foo(void) {}
10763 _ACEOF
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (ac_try="$ac_link"
10766 case "(($ac_try" in
10767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768   *) ac_try_echo=$ac_try;;
10769 esac
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771   (eval "$ac_link") 2>conftest.er1
10772   ac_status=$?
10773   grep -v '^ *+' conftest.er1 >conftest.err
10774   rm -f conftest.er1
10775   cat conftest.err >&5
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); } && {
10778          test -z "$ac_c_werror_flag" ||
10779          test ! -s conftest.err
10780        } && test -s conftest$ac_exeext &&
10781        $as_test_x conftest$ac_exeext; then
10782   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'
10783
10784 else
10785   echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10787
10788
10789 fi
10790
10791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10792       conftest$ac_exeext conftest.$ac_ext
10793         LDFLAGS="$save_LDFLAGS"
10794       else
10795         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'
10796         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'
10797       fi
10798       archive_cmds_need_lc='no'
10799       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10800       hardcode_libdir_separator=:
10801       inherit_rpath=yes
10802       link_all_deplibs=yes
10803       ;;
10804
10805     netbsd*)
10806       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10807         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10808       else
10809         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10810       fi
10811       hardcode_libdir_flag_spec='-R$libdir'
10812       hardcode_direct=yes
10813       hardcode_shlibpath_var=no
10814       ;;
10815
10816     newsos6)
10817       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10818       hardcode_direct=yes
10819       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10820       hardcode_libdir_separator=:
10821       hardcode_shlibpath_var=no
10822       ;;
10823
10824     *nto* | *qnx*)
10825       ;;
10826
10827     openbsd*)
10828       if test -f /usr/libexec/ld.so; then
10829         hardcode_direct=yes
10830         hardcode_shlibpath_var=no
10831         hardcode_direct_absolute=yes
10832         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10833           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10834           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10835           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10836           export_dynamic_flag_spec='${wl}-E'
10837         else
10838           case $host_os in
10839            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10840              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10841              hardcode_libdir_flag_spec='-R$libdir'
10842              ;;
10843            *)
10844              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10845              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10846              ;;
10847           esac
10848         fi
10849       else
10850         ld_shlibs=no
10851       fi
10852       ;;
10853
10854     os2*)
10855       hardcode_libdir_flag_spec='-L$libdir'
10856       hardcode_minus_L=yes
10857       allow_undefined_flag=unsupported
10858       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'
10859       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10860       ;;
10861
10862     osf3*)
10863       if test "$GCC" = yes; then
10864         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10865         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'
10866       else
10867         allow_undefined_flag=' -expect_unresolved \*'
10868         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'
10869       fi
10870       archive_cmds_need_lc='no'
10871       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10872       hardcode_libdir_separator=:
10873       ;;
10874
10875     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10876       if test "$GCC" = yes; then
10877         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10878         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'
10879         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10880       else
10881         allow_undefined_flag=' -expect_unresolved \*'
10882         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'
10883         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~
10884         $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'
10885
10886         # Both c and cxx compiler support -rpath directly
10887         hardcode_libdir_flag_spec='-rpath $libdir'
10888       fi
10889       archive_cmds_need_lc='no'
10890       hardcode_libdir_separator=:
10891       ;;
10892
10893     solaris*)
10894       no_undefined_flag=' -z defs'
10895       if test "$GCC" = yes; then
10896         wlarc='${wl}'
10897         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10898         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10899           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10900       else
10901         case `$CC -V 2>&1` in
10902         *"Compilers 5.0"*)
10903           wlarc=''
10904           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10906           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10907           ;;
10908         *)
10909           wlarc='${wl}'
10910           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10911           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10912           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10913           ;;
10914         esac
10915       fi
10916       hardcode_libdir_flag_spec='-R$libdir'
10917       hardcode_shlibpath_var=no
10918       case $host_os in
10919       solaris2.[0-5] | solaris2.[0-5].*) ;;
10920       *)
10921         # The compiler driver will combine and reorder linker options,
10922         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10923         # but is careful enough not to reorder.
10924         # Supported since Solaris 2.6 (maybe 2.5.1?)
10925         if test "$GCC" = yes; then
10926           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10927         else
10928           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10929         fi
10930         ;;
10931       esac
10932       link_all_deplibs=yes
10933       ;;
10934
10935     sunos4*)
10936       if test "x$host_vendor" = xsequent; then
10937         # Use $CC to link under sequent, because it throws in some extra .o
10938         # files that make .init and .fini sections work.
10939         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10940       else
10941         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10942       fi
10943       hardcode_libdir_flag_spec='-L$libdir'
10944       hardcode_direct=yes
10945       hardcode_minus_L=yes
10946       hardcode_shlibpath_var=no
10947       ;;
10948
10949     sysv4)
10950       case $host_vendor in
10951         sni)
10952           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10953           hardcode_direct=yes # is this really true???
10954         ;;
10955         siemens)
10956           ## LD is ld it makes a PLAMLIB
10957           ## CC just makes a GrossModule.
10958           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10959           reload_cmds='$CC -r -o $output$reload_objs'
10960           hardcode_direct=no
10961         ;;
10962         motorola)
10963           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10964           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10965         ;;
10966       esac
10967       runpath_var='LD_RUN_PATH'
10968       hardcode_shlibpath_var=no
10969       ;;
10970
10971     sysv4.3*)
10972       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973       hardcode_shlibpath_var=no
10974       export_dynamic_flag_spec='-Bexport'
10975       ;;
10976
10977     sysv4*MP*)
10978       if test -d /usr/nec; then
10979         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10980         hardcode_shlibpath_var=no
10981         runpath_var=LD_RUN_PATH
10982         hardcode_runpath_var=yes
10983         ld_shlibs=yes
10984       fi
10985       ;;
10986
10987     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10988       no_undefined_flag='${wl}-z,text'
10989       archive_cmds_need_lc=no
10990       hardcode_shlibpath_var=no
10991       runpath_var='LD_RUN_PATH'
10992
10993       if test "$GCC" = yes; then
10994         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10995         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10996       else
10997         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10998         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10999       fi
11000       ;;
11001
11002     sysv5* | sco3.2v5* | sco5v6*)
11003       # Note: We can NOT use -z defs as we might desire, because we do not
11004       # link with -lc, and that would cause any symbols used from libc to
11005       # always be unresolved, which means just about no library would
11006       # ever link correctly.  If we're not using GNU ld we use -z text
11007       # though, which does catch some bad symbols but isn't as heavy-handed
11008       # as -z defs.
11009       no_undefined_flag='${wl}-z,text'
11010       allow_undefined_flag='${wl}-z,nodefs'
11011       archive_cmds_need_lc=no
11012       hardcode_shlibpath_var=no
11013       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11014       hardcode_libdir_separator=':'
11015       link_all_deplibs=yes
11016       export_dynamic_flag_spec='${wl}-Bexport'
11017       runpath_var='LD_RUN_PATH'
11018
11019       if test "$GCC" = yes; then
11020         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11022       else
11023         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11025       fi
11026       ;;
11027
11028     uts4*)
11029       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11030       hardcode_libdir_flag_spec='-L$libdir'
11031       hardcode_shlibpath_var=no
11032       ;;
11033
11034     *)
11035       ld_shlibs=no
11036       ;;
11037     esac
11038
11039     if test x$host_vendor = xsni; then
11040       case $host in
11041       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11042         export_dynamic_flag_spec='${wl}-Blargedynsym'
11043         ;;
11044       esac
11045     fi
11046   fi
11047
11048 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11049 echo "${ECHO_T}$ld_shlibs" >&6; }
11050 test "$ld_shlibs" = no && can_build_shared=no
11051
11052 with_gnu_ld=$with_gnu_ld
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068 #
11069 # Do we need to explicitly link libc?
11070 #
11071 case "x$archive_cmds_need_lc" in
11072 x|xyes)
11073   # Assume -lc should be added
11074   archive_cmds_need_lc=yes
11075
11076   if test "$enable_shared" = yes && test "$GCC" = yes; then
11077     case $archive_cmds in
11078     *'~'*)
11079       # FIXME: we may have to deal with multi-command sequences.
11080       ;;
11081     '$CC '*)
11082       # Test whether the compiler implicitly links with -lc since on some
11083       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11084       # to ld, don't add -lc before -lgcc.
11085       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11086 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11087       $RM conftest*
11088       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11089
11090       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11091   (eval $ac_compile) 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); } 2>conftest.err; then
11095         soname=conftest
11096         lib=conftest
11097         libobjs=conftest.$ac_objext
11098         deplibs=
11099         wl=$lt_prog_compiler_wl
11100         pic_flag=$lt_prog_compiler_pic
11101         compiler_flags=-v
11102         linker_flags=-v
11103         verstring=
11104         output_objdir=.
11105         libname=conftest
11106         lt_save_allow_undefined_flag=$allow_undefined_flag
11107         allow_undefined_flag=
11108         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11109   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); }
11113         then
11114           archive_cmds_need_lc=no
11115         else
11116           archive_cmds_need_lc=yes
11117         fi
11118         allow_undefined_flag=$lt_save_allow_undefined_flag
11119       else
11120         cat conftest.err 1>&5
11121       fi
11122       $RM conftest*
11123       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11124 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11125       ;;
11126     esac
11127   fi
11128   ;;
11129 esac
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
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   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11288 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11289
11290 if test "$GCC" = yes; then
11291   case $host_os in
11292     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11293     *) lt_awk_arg="/^libraries:/" ;;
11294   esac
11295   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11296   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11297     # if the path contains ";" then we assume it to be the separator
11298     # otherwise default to the standard path separator (i.e. ":") - it is
11299     # assumed that no part of a normal pathname contains ";" but that should
11300     # okay in the real world where ";" in dirpaths is itself problematic.
11301     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11302   else
11303     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11304   fi
11305   # Ok, now we have the path, separated by spaces, we can step through it
11306   # and add multilib dir if necessary.
11307   lt_tmp_lt_search_path_spec=
11308   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11309   for lt_sys_path in $lt_search_path_spec; do
11310     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11311       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11312     else
11313       test -d "$lt_sys_path" && \
11314         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11315     fi
11316   done
11317   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11318 BEGIN {RS=" "; FS="/|\n";} {
11319   lt_foo="";
11320   lt_count=0;
11321   for (lt_i = NF; lt_i > 0; lt_i--) {
11322     if ($lt_i != "" && $lt_i != ".") {
11323       if ($lt_i == "..") {
11324         lt_count++;
11325       } else {
11326         if (lt_count == 0) {
11327           lt_foo="/" $lt_i lt_foo;
11328         } else {
11329           lt_count--;
11330         }
11331       }
11332     }
11333   }
11334   if (lt_foo != "") { lt_freq[lt_foo]++; }
11335   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11336 }'`
11337   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11338 else
11339   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11340 fi
11341 library_names_spec=
11342 libname_spec='lib$name'
11343 soname_spec=
11344 shrext_cmds=".so"
11345 postinstall_cmds=
11346 postuninstall_cmds=
11347 finish_cmds=
11348 finish_eval=
11349 shlibpath_var=
11350 shlibpath_overrides_runpath=unknown
11351 version_type=none
11352 dynamic_linker="$host_os ld.so"
11353 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11354 need_lib_prefix=unknown
11355 hardcode_into_libs=no
11356
11357 # when you set need_version to no, make sure it does not cause -set_version
11358 # flags to be left without arguments
11359 need_version=unknown
11360
11361 case $host_os in
11362 aix3*)
11363   version_type=linux
11364   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11365   shlibpath_var=LIBPATH
11366
11367   # AIX 3 has no versioning support, so we append a major version to the name.
11368   soname_spec='${libname}${release}${shared_ext}$major'
11369   ;;
11370
11371 aix[4-9]*)
11372   version_type=linux
11373   need_lib_prefix=no
11374   need_version=no
11375   hardcode_into_libs=yes
11376   if test "$host_cpu" = ia64; then
11377     # AIX 5 supports IA64
11378     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11379     shlibpath_var=LD_LIBRARY_PATH
11380   else
11381     # With GCC up to 2.95.x, collect2 would create an import file
11382     # for dependence libraries.  The import file would start with
11383     # the line `#! .'.  This would cause the generated library to
11384     # depend on `.', always an invalid library.  This was fixed in
11385     # development snapshots of GCC prior to 3.0.
11386     case $host_os in
11387       aix4 | aix4.[01] | aix4.[01].*)
11388       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11389            echo ' yes '
11390            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11391         :
11392       else
11393         can_build_shared=no
11394       fi
11395       ;;
11396     esac
11397     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11398     # soname into executable. Probably we can add versioning support to
11399     # collect2, so additional links can be useful in future.
11400     if test "$aix_use_runtimelinking" = yes; then
11401       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11402       # instead of lib<name>.a to let people know that these are not
11403       # typical AIX shared libraries.
11404       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11405     else
11406       # We preserve .a as extension for shared libraries through AIX4.2
11407       # and later when we are not doing run time linking.
11408       library_names_spec='${libname}${release}.a $libname.a'
11409       soname_spec='${libname}${release}${shared_ext}$major'
11410     fi
11411     shlibpath_var=LIBPATH
11412   fi
11413   ;;
11414
11415 amigaos*)
11416   case $host_cpu in
11417   powerpc)
11418     # Since July 2007 AmigaOS4 officially supports .so libraries.
11419     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421     ;;
11422   m68k)
11423     library_names_spec='$libname.ixlibrary $libname.a'
11424     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11425     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'
11426     ;;
11427   esac
11428   ;;
11429
11430 beos*)
11431   library_names_spec='${libname}${shared_ext}'
11432   dynamic_linker="$host_os ld.so"
11433   shlibpath_var=LIBRARY_PATH
11434   ;;
11435
11436 bsdi[45]*)
11437   version_type=linux
11438   need_version=no
11439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440   soname_spec='${libname}${release}${shared_ext}$major'
11441   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11442   shlibpath_var=LD_LIBRARY_PATH
11443   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11444   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11445   # the default ld.so.conf also contains /usr/contrib/lib and
11446   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11447   # libtool to hard-code these into programs
11448   ;;
11449
11450 cygwin* | mingw* | pw32* | cegcc*)
11451   version_type=windows
11452   shrext_cmds=".dll"
11453   need_version=no
11454   need_lib_prefix=no
11455
11456   case $GCC,$host_os in
11457   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11458     library_names_spec='$libname.dll.a'
11459     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11460     postinstall_cmds='base_file=`basename \${file}`~
11461       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11462       dldir=$destdir/`dirname \$dlpath`~
11463       test -d \$dldir || mkdir -p \$dldir~
11464       $install_prog $dir/$dlname \$dldir/$dlname~
11465       chmod a+x \$dldir/$dlname~
11466       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11467         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11468       fi'
11469     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11470       dlpath=$dir/\$dldll~
11471        $RM \$dlpath'
11472     shlibpath_overrides_runpath=yes
11473
11474     case $host_os in
11475     cygwin*)
11476       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11477       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11478       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11479       ;;
11480     mingw* | cegcc*)
11481       # MinGW DLLs use traditional 'lib' prefix
11482       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11483       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11484       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11485         # It is most probably a Windows format PATH printed by
11486         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11487         # path with ; separators, and with drive letters. We can handle the
11488         # drive letters (cygwin fileutils understands them), so leave them,
11489         # especially as we might pass files found there to a mingw objdump,
11490         # which wouldn't understand a cygwinified path. Ahh.
11491         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11492       else
11493         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11494       fi
11495       ;;
11496     pw32*)
11497       # pw32 DLLs use 'pw' prefix rather than 'lib'
11498       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11499       ;;
11500     esac
11501     ;;
11502
11503   *)
11504     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11505     ;;
11506   esac
11507   dynamic_linker='Win32 ld.exe'
11508   # FIXME: first we should search . and the directory the executable is in
11509   shlibpath_var=PATH
11510   ;;
11511
11512 darwin* | rhapsody*)
11513   dynamic_linker="$host_os dyld"
11514   version_type=darwin
11515   need_lib_prefix=no
11516   need_version=no
11517   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11518   soname_spec='${libname}${release}${major}$shared_ext'
11519   shlibpath_overrides_runpath=yes
11520   shlibpath_var=DYLD_LIBRARY_PATH
11521   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11522
11523   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11524   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11525   ;;
11526
11527 dgux*)
11528   version_type=linux
11529   need_lib_prefix=no
11530   need_version=no
11531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11532   soname_spec='${libname}${release}${shared_ext}$major'
11533   shlibpath_var=LD_LIBRARY_PATH
11534   ;;
11535
11536 freebsd1*)
11537   dynamic_linker=no
11538   ;;
11539
11540 freebsd* | dragonfly*)
11541   # DragonFly does not have aout.  When/if they implement a new
11542   # versioning mechanism, adjust this.
11543   if test -x /usr/bin/objformat; then
11544     objformat=`/usr/bin/objformat`
11545   else
11546     case $host_os in
11547     freebsd[123]*) objformat=aout ;;
11548     *) objformat=elf ;;
11549     esac
11550   fi
11551   version_type=freebsd-$objformat
11552   case $version_type in
11553     freebsd-elf*)
11554       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11555       need_version=no
11556       need_lib_prefix=no
11557       ;;
11558     freebsd-*)
11559       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11560       need_version=yes
11561       ;;
11562   esac
11563   shlibpath_var=LD_LIBRARY_PATH
11564   case $host_os in
11565   freebsd2*)
11566     shlibpath_overrides_runpath=yes
11567     ;;
11568   freebsd3.[01]* | freebsdelf3.[01]*)
11569     shlibpath_overrides_runpath=yes
11570     hardcode_into_libs=yes
11571     ;;
11572   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11573   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11574     shlibpath_overrides_runpath=no
11575     hardcode_into_libs=yes
11576     ;;
11577   *) # from 4.6 on, and DragonFly
11578     shlibpath_overrides_runpath=yes
11579     hardcode_into_libs=yes
11580     ;;
11581   esac
11582   ;;
11583
11584 gnu*)
11585   version_type=linux
11586   need_lib_prefix=no
11587   need_version=no
11588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11589   soname_spec='${libname}${release}${shared_ext}$major'
11590   shlibpath_var=LD_LIBRARY_PATH
11591   hardcode_into_libs=yes
11592   ;;
11593
11594 hpux9* | hpux10* | hpux11*)
11595   # Give a soname corresponding to the major version so that dld.sl refuses to
11596   # link against other versions.
11597   version_type=sunos
11598   need_lib_prefix=no
11599   need_version=no
11600   case $host_cpu in
11601   ia64*)
11602     shrext_cmds='.so'
11603     hardcode_into_libs=yes
11604     dynamic_linker="$host_os dld.so"
11605     shlibpath_var=LD_LIBRARY_PATH
11606     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11607     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608     soname_spec='${libname}${release}${shared_ext}$major'
11609     if test "X$HPUX_IA64_MODE" = X32; then
11610       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11611     else
11612       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11613     fi
11614     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11615     ;;
11616   hppa*64*)
11617     shrext_cmds='.sl'
11618     hardcode_into_libs=yes
11619     dynamic_linker="$host_os dld.sl"
11620     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11621     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623     soname_spec='${libname}${release}${shared_ext}$major'
11624     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11625     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11626     ;;
11627   *)
11628     shrext_cmds='.sl'
11629     dynamic_linker="$host_os dld.sl"
11630     shlibpath_var=SHLIB_PATH
11631     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11632     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11633     soname_spec='${libname}${release}${shared_ext}$major'
11634     ;;
11635   esac
11636   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11637   postinstall_cmds='chmod 555 $lib'
11638   ;;
11639
11640 interix[3-9]*)
11641   version_type=linux
11642   need_lib_prefix=no
11643   need_version=no
11644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11645   soname_spec='${libname}${release}${shared_ext}$major'
11646   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11647   shlibpath_var=LD_LIBRARY_PATH
11648   shlibpath_overrides_runpath=no
11649   hardcode_into_libs=yes
11650   ;;
11651
11652 irix5* | irix6* | nonstopux*)
11653   case $host_os in
11654     nonstopux*) version_type=nonstopux ;;
11655     *)
11656         if test "$lt_cv_prog_gnu_ld" = yes; then
11657                 version_type=linux
11658         else
11659                 version_type=irix
11660         fi ;;
11661   esac
11662   need_lib_prefix=no
11663   need_version=no
11664   soname_spec='${libname}${release}${shared_ext}$major'
11665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11666   case $host_os in
11667   irix5* | nonstopux*)
11668     libsuff= shlibsuff=
11669     ;;
11670   *)
11671     case $LD in # libtool.m4 will add one of these switches to LD
11672     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11673       libsuff= shlibsuff= libmagic=32-bit;;
11674     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11675       libsuff=32 shlibsuff=N32 libmagic=N32;;
11676     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11677       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11678     *) libsuff= shlibsuff= libmagic=never-match;;
11679     esac
11680     ;;
11681   esac
11682   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11683   shlibpath_overrides_runpath=no
11684   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11685   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11686   hardcode_into_libs=yes
11687   ;;
11688
11689 # No shared lib support for Linux oldld, aout, or coff.
11690 linux*oldld* | linux*aout* | linux*coff*)
11691   dynamic_linker=no
11692   ;;
11693
11694 # This must be Linux ELF.
11695 linux* | k*bsd*-gnu)
11696   version_type=linux
11697   need_lib_prefix=no
11698   need_version=no
11699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700   soname_spec='${libname}${release}${shared_ext}$major'
11701   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11702   shlibpath_var=LD_LIBRARY_PATH
11703   shlibpath_overrides_runpath=no
11704   # Some binutils ld are patched to set DT_RUNPATH
11705   save_LDFLAGS=$LDFLAGS
11706   save_libdir=$libdir
11707   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11708        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11709   cat >conftest.$ac_ext <<_ACEOF
11710 /* confdefs.h.  */
11711 _ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h.  */
11715
11716 int
11717 main ()
11718 {
11719
11720   ;
11721   return 0;
11722 }
11723 _ACEOF
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (ac_try="$ac_link"
11726 case "(($ac_try" in
11727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728   *) ac_try_echo=$ac_try;;
11729 esac
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731   (eval "$ac_link") 2>conftest.er1
11732   ac_status=$?
11733   grep -v '^ *+' conftest.er1 >conftest.err
11734   rm -f conftest.er1
11735   cat conftest.err >&5
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); } && {
11738          test -z "$ac_c_werror_flag" ||
11739          test ! -s conftest.err
11740        } && test -s conftest$ac_exeext &&
11741        $as_test_x conftest$ac_exeext; then
11742   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11743   shlibpath_overrides_runpath=yes
11744 fi
11745
11746 else
11747   echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11749
11750
11751 fi
11752
11753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11754       conftest$ac_exeext conftest.$ac_ext
11755   LDFLAGS=$save_LDFLAGS
11756   libdir=$save_libdir
11757
11758   # This implies no fast_install, which is unacceptable.
11759   # Some rework will be needed to allow for fast_install
11760   # before this can be enabled.
11761   hardcode_into_libs=yes
11762
11763   # Append ld.so.conf contents to the search path
11764   if test -f /etc/ld.so.conf; then
11765     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' ' '`
11766     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11767   fi
11768
11769   # We used to test for /lib/ld.so.1 and disable shared libraries on
11770   # powerpc, because MkLinux only supported shared libraries with the
11771   # GNU dynamic linker.  Since this was broken with cross compilers,
11772   # most powerpc-linux boxes support dynamic linking these days and
11773   # people can always --disable-shared, the test was removed, and we
11774   # assume the GNU/Linux dynamic linker is in use.
11775   dynamic_linker='GNU/Linux ld.so'
11776   ;;
11777
11778 netbsd*)
11779   version_type=sunos
11780   need_lib_prefix=no
11781   need_version=no
11782   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11783     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11784     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11785     dynamic_linker='NetBSD (a.out) ld.so'
11786   else
11787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11788     soname_spec='${libname}${release}${shared_ext}$major'
11789     dynamic_linker='NetBSD ld.elf_so'
11790   fi
11791   shlibpath_var=LD_LIBRARY_PATH
11792   shlibpath_overrides_runpath=yes
11793   hardcode_into_libs=yes
11794   ;;
11795
11796 newsos6)
11797   version_type=linux
11798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799   shlibpath_var=LD_LIBRARY_PATH
11800   shlibpath_overrides_runpath=yes
11801   ;;
11802
11803 *nto* | *qnx*)
11804   version_type=qnx
11805   need_lib_prefix=no
11806   need_version=no
11807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808   soname_spec='${libname}${release}${shared_ext}$major'
11809   shlibpath_var=LD_LIBRARY_PATH
11810   shlibpath_overrides_runpath=no
11811   hardcode_into_libs=yes
11812   dynamic_linker='ldqnx.so'
11813   ;;
11814
11815 openbsd*)
11816   version_type=sunos
11817   sys_lib_dlsearch_path_spec="/usr/lib"
11818   need_lib_prefix=no
11819   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11820   case $host_os in
11821     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11822     *)                          need_version=no  ;;
11823   esac
11824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11825   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11826   shlibpath_var=LD_LIBRARY_PATH
11827   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11828     case $host_os in
11829       openbsd2.[89] | openbsd2.[89].*)
11830         shlibpath_overrides_runpath=no
11831         ;;
11832       *)
11833         shlibpath_overrides_runpath=yes
11834         ;;
11835       esac
11836   else
11837     shlibpath_overrides_runpath=yes
11838   fi
11839   ;;
11840
11841 os2*)
11842   libname_spec='$name'
11843   shrext_cmds=".dll"
11844   need_lib_prefix=no
11845   library_names_spec='$libname${shared_ext} $libname.a'
11846   dynamic_linker='OS/2 ld.exe'
11847   shlibpath_var=LIBPATH
11848   ;;
11849
11850 osf3* | osf4* | osf5*)
11851   version_type=osf
11852   need_lib_prefix=no
11853   need_version=no
11854   soname_spec='${libname}${release}${shared_ext}$major'
11855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11856   shlibpath_var=LD_LIBRARY_PATH
11857   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11858   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11859   ;;
11860
11861 rdos*)
11862   dynamic_linker=no
11863   ;;
11864
11865 solaris*)
11866   version_type=linux
11867   need_lib_prefix=no
11868   need_version=no
11869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11870   soname_spec='${libname}${release}${shared_ext}$major'
11871   shlibpath_var=LD_LIBRARY_PATH
11872   shlibpath_overrides_runpath=yes
11873   hardcode_into_libs=yes
11874   # ldd complains unless libraries are executable
11875   postinstall_cmds='chmod +x $lib'
11876   ;;
11877
11878 sunos4*)
11879   version_type=sunos
11880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11881   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11882   shlibpath_var=LD_LIBRARY_PATH
11883   shlibpath_overrides_runpath=yes
11884   if test "$with_gnu_ld" = yes; then
11885     need_lib_prefix=no
11886   fi
11887   need_version=yes
11888   ;;
11889
11890 sysv4 | sysv4.3*)
11891   version_type=linux
11892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11893   soname_spec='${libname}${release}${shared_ext}$major'
11894   shlibpath_var=LD_LIBRARY_PATH
11895   case $host_vendor in
11896     sni)
11897       shlibpath_overrides_runpath=no
11898       need_lib_prefix=no
11899       runpath_var=LD_RUN_PATH
11900       ;;
11901     siemens)
11902       need_lib_prefix=no
11903       ;;
11904     motorola)
11905       need_lib_prefix=no
11906       need_version=no
11907       shlibpath_overrides_runpath=no
11908       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11909       ;;
11910   esac
11911   ;;
11912
11913 sysv4*MP*)
11914   if test -d /usr/nec ;then
11915     version_type=linux
11916     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11917     soname_spec='$libname${shared_ext}.$major'
11918     shlibpath_var=LD_LIBRARY_PATH
11919   fi
11920   ;;
11921
11922 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11923   version_type=freebsd-elf
11924   need_lib_prefix=no
11925   need_version=no
11926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11927   soname_spec='${libname}${release}${shared_ext}$major'
11928   shlibpath_var=LD_LIBRARY_PATH
11929   shlibpath_overrides_runpath=yes
11930   hardcode_into_libs=yes
11931   if test "$with_gnu_ld" = yes; then
11932     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11933   else
11934     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11935     case $host_os in
11936       sco3.2v5*)
11937         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11938         ;;
11939     esac
11940   fi
11941   sys_lib_dlsearch_path_spec='/usr/lib'
11942   ;;
11943
11944 tpf*)
11945   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11946   version_type=linux
11947   need_lib_prefix=no
11948   need_version=no
11949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11950   shlibpath_var=LD_LIBRARY_PATH
11951   shlibpath_overrides_runpath=no
11952   hardcode_into_libs=yes
11953   ;;
11954
11955 uts4*)
11956   version_type=linux
11957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11958   soname_spec='${libname}${release}${shared_ext}$major'
11959   shlibpath_var=LD_LIBRARY_PATH
11960   ;;
11961
11962 *)
11963   dynamic_linker=no
11964   ;;
11965 esac
11966 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11967 echo "${ECHO_T}$dynamic_linker" >&6; }
11968 test "$dynamic_linker" = no && can_build_shared=no
11969
11970 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11971 if test "$GCC" = yes; then
11972   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11973 fi
11974
11975 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11976   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11977 fi
11978 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11979   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11980 fi
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12069 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12070 hardcode_action=
12071 if test -n "$hardcode_libdir_flag_spec" ||
12072    test -n "$runpath_var" ||
12073    test "X$hardcode_automatic" = "Xyes" ; then
12074
12075   # We can hardcode non-existent directories.
12076   if test "$hardcode_direct" != no &&
12077      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12078      # have to relink, otherwise we might link with an installed library
12079      # when we should be linking with a yet-to-be-installed one
12080      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12081      test "$hardcode_minus_L" != no; then
12082     # Linking always hardcodes the temporary library directory.
12083     hardcode_action=relink
12084   else
12085     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12086     hardcode_action=immediate
12087   fi
12088 else
12089   # We cannot hardcode anything, or else we can only hardcode existing
12090   # directories.
12091   hardcode_action=unsupported
12092 fi
12093 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12094 echo "${ECHO_T}$hardcode_action" >&6; }
12095
12096 if test "$hardcode_action" = relink ||
12097    test "$inherit_rpath" = yes; then
12098   # Fast installation is not supported
12099   enable_fast_install=no
12100 elif test "$shlibpath_overrides_runpath" = yes ||
12101      test "$enable_shared" = no; then
12102   # Fast installation is not necessary
12103   enable_fast_install=needless
12104 fi
12105
12106
12107
12108
12109
12110
12111   if test "x$enable_dlopen" != xyes; then
12112   enable_dlopen=unknown
12113   enable_dlopen_self=unknown
12114   enable_dlopen_self_static=unknown
12115 else
12116   lt_cv_dlopen=no
12117   lt_cv_dlopen_libs=
12118
12119   case $host_os in
12120   beos*)
12121     lt_cv_dlopen="load_add_on"
12122     lt_cv_dlopen_libs=
12123     lt_cv_dlopen_self=yes
12124     ;;
12125
12126   mingw* | pw32* | cegcc*)
12127     lt_cv_dlopen="LoadLibrary"
12128     lt_cv_dlopen_libs=
12129     ;;
12130
12131   cygwin*)
12132     lt_cv_dlopen="dlopen"
12133     lt_cv_dlopen_libs=
12134     ;;
12135
12136   darwin*)
12137   # if libdl is installed we need to link against it
12138     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12139 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12140 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12141   echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143   ac_check_lib_save_LIBS=$LIBS
12144 LIBS="-ldl  $LIBS"
12145 cat >conftest.$ac_ext <<_ACEOF
12146 /* confdefs.h.  */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h.  */
12151
12152 /* Override any GCC internal prototype to avoid an error.
12153    Use char because int might match the return type of a GCC
12154    builtin and then its argument prototype would still apply.  */
12155 #ifdef __cplusplus
12156 extern "C"
12157 #endif
12158 char dlopen ();
12159 int
12160 main ()
12161 {
12162 return dlopen ();
12163   ;
12164   return 0;
12165 }
12166 _ACEOF
12167 rm -f conftest.$ac_objext conftest$ac_exeext
12168 if { (ac_try="$ac_link"
12169 case "(($ac_try" in
12170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171   *) ac_try_echo=$ac_try;;
12172 esac
12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174   (eval "$ac_link") 2>conftest.er1
12175   ac_status=$?
12176   grep -v '^ *+' conftest.er1 >conftest.err
12177   rm -f conftest.er1
12178   cat conftest.err >&5
12179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180   (exit $ac_status); } && {
12181          test -z "$ac_c_werror_flag" ||
12182          test ! -s conftest.err
12183        } && test -s conftest$ac_exeext &&
12184        $as_test_x conftest$ac_exeext; then
12185   ac_cv_lib_dl_dlopen=yes
12186 else
12187   echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12189
12190         ac_cv_lib_dl_dlopen=no
12191 fi
12192
12193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12194       conftest$ac_exeext conftest.$ac_ext
12195 LIBS=$ac_check_lib_save_LIBS
12196 fi
12197 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12198 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12199 if test $ac_cv_lib_dl_dlopen = yes; then
12200   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12201 else
12202
12203     lt_cv_dlopen="dyld"
12204     lt_cv_dlopen_libs=
12205     lt_cv_dlopen_self=yes
12206
12207 fi
12208
12209     ;;
12210
12211   *)
12212     { echo "$as_me:$LINENO: checking for shl_load" >&5
12213 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12214 if test "${ac_cv_func_shl_load+set}" = set; then
12215   echo $ECHO_N "(cached) $ECHO_C" >&6
12216 else
12217   cat >conftest.$ac_ext <<_ACEOF
12218 /* confdefs.h.  */
12219 _ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h.  */
12223 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12225 #define shl_load innocuous_shl_load
12226
12227 /* System header to define __stub macros and hopefully few prototypes,
12228     which can conflict with char shl_load (); below.
12229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12230     <limits.h> exists even on freestanding compilers.  */
12231
12232 #ifdef __STDC__
12233 # include <limits.h>
12234 #else
12235 # include <assert.h>
12236 #endif
12237
12238 #undef shl_load
12239
12240 /* Override any GCC internal prototype to avoid an error.
12241    Use char because int might match the return type of a GCC
12242    builtin and then its argument prototype would still apply.  */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 char shl_load ();
12247 /* The GNU C library defines this for functions which it implements
12248     to always fail with ENOSYS.  Some functions are actually named
12249     something starting with __ and the normal name is an alias.  */
12250 #if defined __stub_shl_load || defined __stub___shl_load
12251 choke me
12252 #endif
12253
12254 int
12255 main ()
12256 {
12257 return shl_load ();
12258   ;
12259   return 0;
12260 }
12261 _ACEOF
12262 rm -f conftest.$ac_objext conftest$ac_exeext
12263 if { (ac_try="$ac_link"
12264 case "(($ac_try" in
12265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266   *) ac_try_echo=$ac_try;;
12267 esac
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269   (eval "$ac_link") 2>conftest.er1
12270   ac_status=$?
12271   grep -v '^ *+' conftest.er1 >conftest.err
12272   rm -f conftest.er1
12273   cat conftest.err >&5
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); } && {
12276          test -z "$ac_c_werror_flag" ||
12277          test ! -s conftest.err
12278        } && test -s conftest$ac_exeext &&
12279        $as_test_x conftest$ac_exeext; then
12280   ac_cv_func_shl_load=yes
12281 else
12282   echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12284
12285         ac_cv_func_shl_load=no
12286 fi
12287
12288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12289       conftest$ac_exeext conftest.$ac_ext
12290 fi
12291 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12292 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12293 if test $ac_cv_func_shl_load = yes; then
12294   lt_cv_dlopen="shl_load"
12295 else
12296   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12297 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12298 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12299   echo $ECHO_N "(cached) $ECHO_C" >&6
12300 else
12301   ac_check_lib_save_LIBS=$LIBS
12302 LIBS="-ldld  $LIBS"
12303 cat >conftest.$ac_ext <<_ACEOF
12304 /* confdefs.h.  */
12305 _ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h.  */
12309
12310 /* Override any GCC internal prototype to avoid an error.
12311    Use char because int might match the return type of a GCC
12312    builtin and then its argument prototype would still apply.  */
12313 #ifdef __cplusplus
12314 extern "C"
12315 #endif
12316 char shl_load ();
12317 int
12318 main ()
12319 {
12320 return shl_load ();
12321   ;
12322   return 0;
12323 }
12324 _ACEOF
12325 rm -f conftest.$ac_objext conftest$ac_exeext
12326 if { (ac_try="$ac_link"
12327 case "(($ac_try" in
12328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329   *) ac_try_echo=$ac_try;;
12330 esac
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332   (eval "$ac_link") 2>conftest.er1
12333   ac_status=$?
12334   grep -v '^ *+' conftest.er1 >conftest.err
12335   rm -f conftest.er1
12336   cat conftest.err >&5
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); } && {
12339          test -z "$ac_c_werror_flag" ||
12340          test ! -s conftest.err
12341        } && test -s conftest$ac_exeext &&
12342        $as_test_x conftest$ac_exeext; then
12343   ac_cv_lib_dld_shl_load=yes
12344 else
12345   echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12347
12348         ac_cv_lib_dld_shl_load=no
12349 fi
12350
12351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12352       conftest$ac_exeext conftest.$ac_ext
12353 LIBS=$ac_check_lib_save_LIBS
12354 fi
12355 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12356 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12357 if test $ac_cv_lib_dld_shl_load = yes; then
12358   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12359 else
12360   { echo "$as_me:$LINENO: checking for dlopen" >&5
12361 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12362 if test "${ac_cv_func_dlopen+set}" = set; then
12363   echo $ECHO_N "(cached) $ECHO_C" >&6
12364 else
12365   cat >conftest.$ac_ext <<_ACEOF
12366 /* confdefs.h.  */
12367 _ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h.  */
12371 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12373 #define dlopen innocuous_dlopen
12374
12375 /* System header to define __stub macros and hopefully few prototypes,
12376     which can conflict with char dlopen (); below.
12377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12378     <limits.h> exists even on freestanding compilers.  */
12379
12380 #ifdef __STDC__
12381 # include <limits.h>
12382 #else
12383 # include <assert.h>
12384 #endif
12385
12386 #undef dlopen
12387
12388 /* Override any GCC internal prototype to avoid an error.
12389    Use char because int might match the return type of a GCC
12390    builtin and then its argument prototype would still apply.  */
12391 #ifdef __cplusplus
12392 extern "C"
12393 #endif
12394 char dlopen ();
12395 /* The GNU C library defines this for functions which it implements
12396     to always fail with ENOSYS.  Some functions are actually named
12397     something starting with __ and the normal name is an alias.  */
12398 #if defined __stub_dlopen || defined __stub___dlopen
12399 choke me
12400 #endif
12401
12402 int
12403 main ()
12404 {
12405 return dlopen ();
12406   ;
12407   return 0;
12408 }
12409 _ACEOF
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (ac_try="$ac_link"
12412 case "(($ac_try" in
12413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414   *) ac_try_echo=$ac_try;;
12415 esac
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417   (eval "$ac_link") 2>conftest.er1
12418   ac_status=$?
12419   grep -v '^ *+' conftest.er1 >conftest.err
12420   rm -f conftest.er1
12421   cat conftest.err >&5
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); } && {
12424          test -z "$ac_c_werror_flag" ||
12425          test ! -s conftest.err
12426        } && test -s conftest$ac_exeext &&
12427        $as_test_x conftest$ac_exeext; then
12428   ac_cv_func_dlopen=yes
12429 else
12430   echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12432
12433         ac_cv_func_dlopen=no
12434 fi
12435
12436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12437       conftest$ac_exeext conftest.$ac_ext
12438 fi
12439 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12440 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12441 if test $ac_cv_func_dlopen = yes; then
12442   lt_cv_dlopen="dlopen"
12443 else
12444   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12445 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12446 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12447   echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449   ac_check_lib_save_LIBS=$LIBS
12450 LIBS="-ldl  $LIBS"
12451 cat >conftest.$ac_ext <<_ACEOF
12452 /* confdefs.h.  */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h.  */
12457
12458 /* Override any GCC internal prototype to avoid an error.
12459    Use char because int might match the return type of a GCC
12460    builtin and then its argument prototype would still apply.  */
12461 #ifdef __cplusplus
12462 extern "C"
12463 #endif
12464 char dlopen ();
12465 int
12466 main ()
12467 {
12468 return dlopen ();
12469   ;
12470   return 0;
12471 }
12472 _ACEOF
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (ac_try="$ac_link"
12475 case "(($ac_try" in
12476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477   *) ac_try_echo=$ac_try;;
12478 esac
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480   (eval "$ac_link") 2>conftest.er1
12481   ac_status=$?
12482   grep -v '^ *+' conftest.er1 >conftest.err
12483   rm -f conftest.er1
12484   cat conftest.err >&5
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); } && {
12487          test -z "$ac_c_werror_flag" ||
12488          test ! -s conftest.err
12489        } && test -s conftest$ac_exeext &&
12490        $as_test_x conftest$ac_exeext; then
12491   ac_cv_lib_dl_dlopen=yes
12492 else
12493   echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496         ac_cv_lib_dl_dlopen=no
12497 fi
12498
12499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12500       conftest$ac_exeext conftest.$ac_ext
12501 LIBS=$ac_check_lib_save_LIBS
12502 fi
12503 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12504 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12505 if test $ac_cv_lib_dl_dlopen = yes; then
12506   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12507 else
12508   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12509 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12510 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12511   echo $ECHO_N "(cached) $ECHO_C" >&6
12512 else
12513   ac_check_lib_save_LIBS=$LIBS
12514 LIBS="-lsvld  $LIBS"
12515 cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h.  */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h.  */
12521
12522 /* Override any GCC internal prototype to avoid an error.
12523    Use char because int might match the return type of a GCC
12524    builtin and then its argument prototype would still apply.  */
12525 #ifdef __cplusplus
12526 extern "C"
12527 #endif
12528 char dlopen ();
12529 int
12530 main ()
12531 {
12532 return dlopen ();
12533   ;
12534   return 0;
12535 }
12536 _ACEOF
12537 rm -f conftest.$ac_objext conftest$ac_exeext
12538 if { (ac_try="$ac_link"
12539 case "(($ac_try" in
12540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541   *) ac_try_echo=$ac_try;;
12542 esac
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544   (eval "$ac_link") 2>conftest.er1
12545   ac_status=$?
12546   grep -v '^ *+' conftest.er1 >conftest.err
12547   rm -f conftest.er1
12548   cat conftest.err >&5
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); } && {
12551          test -z "$ac_c_werror_flag" ||
12552          test ! -s conftest.err
12553        } && test -s conftest$ac_exeext &&
12554        $as_test_x conftest$ac_exeext; then
12555   ac_cv_lib_svld_dlopen=yes
12556 else
12557   echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12559
12560         ac_cv_lib_svld_dlopen=no
12561 fi
12562
12563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12564       conftest$ac_exeext conftest.$ac_ext
12565 LIBS=$ac_check_lib_save_LIBS
12566 fi
12567 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12568 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12569 if test $ac_cv_lib_svld_dlopen = yes; then
12570   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12571 else
12572   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12573 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12574 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12575   echo $ECHO_N "(cached) $ECHO_C" >&6
12576 else
12577   ac_check_lib_save_LIBS=$LIBS
12578 LIBS="-ldld  $LIBS"
12579 cat >conftest.$ac_ext <<_ACEOF
12580 /* confdefs.h.  */
12581 _ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h.  */
12585
12586 /* Override any GCC internal prototype to avoid an error.
12587    Use char because int might match the return type of a GCC
12588    builtin and then its argument prototype would still apply.  */
12589 #ifdef __cplusplus
12590 extern "C"
12591 #endif
12592 char dld_link ();
12593 int
12594 main ()
12595 {
12596 return dld_link ();
12597   ;
12598   return 0;
12599 }
12600 _ACEOF
12601 rm -f conftest.$ac_objext conftest$ac_exeext
12602 if { (ac_try="$ac_link"
12603 case "(($ac_try" in
12604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605   *) ac_try_echo=$ac_try;;
12606 esac
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608   (eval "$ac_link") 2>conftest.er1
12609   ac_status=$?
12610   grep -v '^ *+' conftest.er1 >conftest.err
12611   rm -f conftest.er1
12612   cat conftest.err >&5
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); } && {
12615          test -z "$ac_c_werror_flag" ||
12616          test ! -s conftest.err
12617        } && test -s conftest$ac_exeext &&
12618        $as_test_x conftest$ac_exeext; then
12619   ac_cv_lib_dld_dld_link=yes
12620 else
12621   echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12623
12624         ac_cv_lib_dld_dld_link=no
12625 fi
12626
12627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12628       conftest$ac_exeext conftest.$ac_ext
12629 LIBS=$ac_check_lib_save_LIBS
12630 fi
12631 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12632 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12633 if test $ac_cv_lib_dld_dld_link = yes; then
12634   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12635 fi
12636
12637
12638 fi
12639
12640
12641 fi
12642
12643
12644 fi
12645
12646
12647 fi
12648
12649
12650 fi
12651
12652     ;;
12653   esac
12654
12655   if test "x$lt_cv_dlopen" != xno; then
12656     enable_dlopen=yes
12657   else
12658     enable_dlopen=no
12659   fi
12660
12661   case $lt_cv_dlopen in
12662   dlopen)
12663     save_CPPFLAGS="$CPPFLAGS"
12664     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12665
12666     save_LDFLAGS="$LDFLAGS"
12667     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12668
12669     save_LIBS="$LIBS"
12670     LIBS="$lt_cv_dlopen_libs $LIBS"
12671
12672     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12673 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12674 if test "${lt_cv_dlopen_self+set}" = set; then
12675   echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677           if test "$cross_compiling" = yes; then :
12678   lt_cv_dlopen_self=cross
12679 else
12680   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12681   lt_status=$lt_dlunknown
12682   cat > conftest.$ac_ext <<_LT_EOF
12683 #line 12683 "configure"
12684 #include "confdefs.h"
12685
12686 #if HAVE_DLFCN_H
12687 #include <dlfcn.h>
12688 #endif
12689
12690 #include <stdio.h>
12691
12692 #ifdef RTLD_GLOBAL
12693 #  define LT_DLGLOBAL           RTLD_GLOBAL
12694 #else
12695 #  ifdef DL_GLOBAL
12696 #    define LT_DLGLOBAL         DL_GLOBAL
12697 #  else
12698 #    define LT_DLGLOBAL         0
12699 #  endif
12700 #endif
12701
12702 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12703    find out it does not work in some platform. */
12704 #ifndef LT_DLLAZY_OR_NOW
12705 #  ifdef RTLD_LAZY
12706 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12707 #  else
12708 #    ifdef DL_LAZY
12709 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12710 #    else
12711 #      ifdef RTLD_NOW
12712 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12713 #      else
12714 #        ifdef DL_NOW
12715 #          define LT_DLLAZY_OR_NOW      DL_NOW
12716 #        else
12717 #          define LT_DLLAZY_OR_NOW      0
12718 #        endif
12719 #      endif
12720 #    endif
12721 #  endif
12722 #endif
12723
12724 void fnord() { int i=42;}
12725 int main ()
12726 {
12727   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12728   int status = $lt_dlunknown;
12729
12730   if (self)
12731     {
12732       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12733       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12734       /* dlclose (self); */
12735     }
12736   else
12737     puts (dlerror ());
12738
12739   return status;
12740 }
12741 _LT_EOF
12742   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12743   (eval $ac_link) 2>&5
12744   ac_status=$?
12745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12747     (./conftest; exit; ) >&5 2>/dev/null
12748     lt_status=$?
12749     case x$lt_status in
12750       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12751       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12752       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12753     esac
12754   else :
12755     # compilation failed
12756     lt_cv_dlopen_self=no
12757   fi
12758 fi
12759 rm -fr conftest*
12760
12761
12762 fi
12763 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12764 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12765
12766     if test "x$lt_cv_dlopen_self" = xyes; then
12767       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12768       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12769 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12770 if test "${lt_cv_dlopen_self_static+set}" = set; then
12771   echo $ECHO_N "(cached) $ECHO_C" >&6
12772 else
12773           if test "$cross_compiling" = yes; then :
12774   lt_cv_dlopen_self_static=cross
12775 else
12776   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12777   lt_status=$lt_dlunknown
12778   cat > conftest.$ac_ext <<_LT_EOF
12779 #line 12779 "configure"
12780 #include "confdefs.h"
12781
12782 #if HAVE_DLFCN_H
12783 #include <dlfcn.h>
12784 #endif
12785
12786 #include <stdio.h>
12787
12788 #ifdef RTLD_GLOBAL
12789 #  define LT_DLGLOBAL           RTLD_GLOBAL
12790 #else
12791 #  ifdef DL_GLOBAL
12792 #    define LT_DLGLOBAL         DL_GLOBAL
12793 #  else
12794 #    define LT_DLGLOBAL         0
12795 #  endif
12796 #endif
12797
12798 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12799    find out it does not work in some platform. */
12800 #ifndef LT_DLLAZY_OR_NOW
12801 #  ifdef RTLD_LAZY
12802 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12803 #  else
12804 #    ifdef DL_LAZY
12805 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12806 #    else
12807 #      ifdef RTLD_NOW
12808 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12809 #      else
12810 #        ifdef DL_NOW
12811 #          define LT_DLLAZY_OR_NOW      DL_NOW
12812 #        else
12813 #          define LT_DLLAZY_OR_NOW      0
12814 #        endif
12815 #      endif
12816 #    endif
12817 #  endif
12818 #endif
12819
12820 void fnord() { int i=42;}
12821 int main ()
12822 {
12823   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12824   int status = $lt_dlunknown;
12825
12826   if (self)
12827     {
12828       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12829       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12830       /* dlclose (self); */
12831     }
12832   else
12833     puts (dlerror ());
12834
12835   return status;
12836 }
12837 _LT_EOF
12838   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12839   (eval $ac_link) 2>&5
12840   ac_status=$?
12841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12843     (./conftest; exit; ) >&5 2>/dev/null
12844     lt_status=$?
12845     case x$lt_status in
12846       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12847       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12848       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12849     esac
12850   else :
12851     # compilation failed
12852     lt_cv_dlopen_self_static=no
12853   fi
12854 fi
12855 rm -fr conftest*
12856
12857
12858 fi
12859 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12860 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12861     fi
12862
12863     CPPFLAGS="$save_CPPFLAGS"
12864     LDFLAGS="$save_LDFLAGS"
12865     LIBS="$save_LIBS"
12866     ;;
12867   esac
12868
12869   case $lt_cv_dlopen_self in
12870   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12871   *) enable_dlopen_self=unknown ;;
12872   esac
12873
12874   case $lt_cv_dlopen_self_static in
12875   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12876   *) enable_dlopen_self_static=unknown ;;
12877   esac
12878 fi
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896 striplib=
12897 old_striplib=
12898 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12899 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12900 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12901   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12902   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12903   { echo "$as_me:$LINENO: result: yes" >&5
12904 echo "${ECHO_T}yes" >&6; }
12905 else
12906 # FIXME - insert some real tests, host_os isn't really good enough
12907   case $host_os in
12908   darwin*)
12909     if test -n "$STRIP" ; then
12910       striplib="$STRIP -x"
12911       old_striplib="$STRIP -S"
12912       { echo "$as_me:$LINENO: result: yes" >&5
12913 echo "${ECHO_T}yes" >&6; }
12914     else
12915       { echo "$as_me:$LINENO: result: no" >&5
12916 echo "${ECHO_T}no" >&6; }
12917     fi
12918     ;;
12919   *)
12920     { echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6; }
12922     ;;
12923   esac
12924 fi
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937   # Report which library types will actually be built
12938   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12939 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12940   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12941 echo "${ECHO_T}$can_build_shared" >&6; }
12942
12943   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12944 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12945   test "$can_build_shared" = "no" && enable_shared=no
12946
12947   # On AIX, shared libraries and static libraries use the same namespace, and
12948   # are all built from PIC.
12949   case $host_os in
12950   aix3*)
12951     test "$enable_shared" = yes && enable_static=no
12952     if test -n "$RANLIB"; then
12953       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12954       postinstall_cmds='$RANLIB $lib'
12955     fi
12956     ;;
12957
12958   aix[4-9]*)
12959     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12960       test "$enable_shared" = yes && enable_static=no
12961     fi
12962     ;;
12963   esac
12964   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12965 echo "${ECHO_T}$enable_shared" >&6; }
12966
12967   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12968 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12969   # Make sure either enable_shared or enable_static is yes.
12970   test "$enable_shared" = yes || enable_static=yes
12971   { echo "$as_me:$LINENO: result: $enable_static" >&5
12972 echo "${ECHO_T}$enable_static" >&6; }
12973
12974
12975
12976
12977 fi
12978 ac_ext=c
12979 ac_cpp='$CPP $CPPFLAGS'
12980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12983
12984 CC="$lt_save_CC"
12985
12986
12987 ac_ext=cpp
12988 ac_cpp='$CXXCPP $CPPFLAGS'
12989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12992
12993 archive_cmds_need_lc_CXX=no
12994 allow_undefined_flag_CXX=
12995 always_export_symbols_CXX=no
12996 archive_expsym_cmds_CXX=
12997 compiler_needs_object_CXX=no
12998 export_dynamic_flag_spec_CXX=
12999 hardcode_direct_CXX=no
13000 hardcode_direct_absolute_CXX=no
13001 hardcode_libdir_flag_spec_CXX=
13002 hardcode_libdir_flag_spec_ld_CXX=
13003 hardcode_libdir_separator_CXX=
13004 hardcode_minus_L_CXX=no
13005 hardcode_shlibpath_var_CXX=unsupported
13006 hardcode_automatic_CXX=no
13007 inherit_rpath_CXX=no
13008 module_cmds_CXX=
13009 module_expsym_cmds_CXX=
13010 link_all_deplibs_CXX=unknown
13011 old_archive_cmds_CXX=$old_archive_cmds
13012 no_undefined_flag_CXX=
13013 whole_archive_flag_spec_CXX=
13014 enable_shared_with_static_runtimes_CXX=no
13015
13016 # Source file extension for C++ test sources.
13017 ac_ext=cpp
13018
13019 # Object file extension for compiled C++ test sources.
13020 objext=o
13021 objext_CXX=$objext
13022
13023 # No sense in running all these tests if we already determined that
13024 # the CXX compiler isn't working.  Some variables (like enable_shared)
13025 # are currently assumed to apply to all compilers on this platform,
13026 # and will be corrupted by setting them based on a non-working compiler.
13027 if test "$_lt_caught_CXX_error" != yes; then
13028   # Code to be used in simple compile tests
13029   lt_simple_compile_test_code="int some_variable = 0;"
13030
13031   # Code to be used in simple link tests
13032   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13033
13034   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13035
13036
13037
13038
13039
13040
13041 # If no C compiler was specified, use CC.
13042 LTCC=${LTCC-"$CC"}
13043
13044 # If no C compiler flags were specified, use CFLAGS.
13045 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13046
13047 # Allow CC to be a program name with arguments.
13048 compiler=$CC
13049
13050
13051   # save warnings/boilerplate of simple test code
13052   ac_outfile=conftest.$ac_objext
13053 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13054 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13055 _lt_compiler_boilerplate=`cat conftest.err`
13056 $RM conftest*
13057
13058   ac_outfile=conftest.$ac_objext
13059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13060 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13061 _lt_linker_boilerplate=`cat conftest.err`
13062 $RM -r conftest*
13063
13064
13065   # Allow CC to be a program name with arguments.
13066   lt_save_CC=$CC
13067   lt_save_LD=$LD
13068   lt_save_GCC=$GCC
13069   GCC=$GXX
13070   lt_save_with_gnu_ld=$with_gnu_ld
13071   lt_save_path_LD=$lt_cv_path_LD
13072   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13073     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13074   else
13075     $as_unset lt_cv_prog_gnu_ld
13076   fi
13077   if test -n "${lt_cv_path_LDCXX+set}"; then
13078     lt_cv_path_LD=$lt_cv_path_LDCXX
13079   else
13080     $as_unset lt_cv_path_LD
13081   fi
13082   test -z "${LDCXX+set}" || LD=$LDCXX
13083   CC=${CXX-"c++"}
13084   compiler=$CC
13085   compiler_CXX=$CC
13086   for cc_temp in $compiler""; do
13087   case $cc_temp in
13088     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13089     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13090     \-*) ;;
13091     *) break;;
13092   esac
13093 done
13094 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13095
13096
13097   if test -n "$compiler"; then
13098     # We don't want -fno-exception when compiling C++ code, so set the
13099     # no_builtin_flag separately
13100     if test "$GXX" = yes; then
13101       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13102     else
13103       lt_prog_compiler_no_builtin_flag_CXX=
13104     fi
13105
13106     if test "$GXX" = yes; then
13107       # Set up default GNU C++ configuration
13108
13109
13110
13111 # Check whether --with-gnu-ld was given.
13112 if test "${with_gnu_ld+set}" = set; then
13113   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13114 else
13115   with_gnu_ld=no
13116 fi
13117
13118 ac_prog=ld
13119 if test "$GCC" = yes; then
13120   # Check if gcc -print-prog-name=ld gives a path.
13121   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13122 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13123   case $host in
13124   *-*-mingw*)
13125     # gcc leaves a trailing carriage return which upsets mingw
13126     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13127   *)
13128     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13129   esac
13130   case $ac_prog in
13131     # Accept absolute paths.
13132     [\\/]* | ?:[\\/]*)
13133       re_direlt='/[^/][^/]*/\.\./'
13134       # Canonicalize the pathname of ld
13135       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13136       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13137         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13138       done
13139       test -z "$LD" && LD="$ac_prog"
13140       ;;
13141   "")
13142     # If it fails, then pretend we aren't using GCC.
13143     ac_prog=ld
13144     ;;
13145   *)
13146     # If it is relative, then search for the first ld in PATH.
13147     with_gnu_ld=unknown
13148     ;;
13149   esac
13150 elif test "$with_gnu_ld" = yes; then
13151   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13152 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13153 else
13154   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13155 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13156 fi
13157 if test "${lt_cv_path_LD+set}" = set; then
13158   echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160   if test -z "$LD"; then
13161   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13162   for ac_dir in $PATH; do
13163     IFS="$lt_save_ifs"
13164     test -z "$ac_dir" && ac_dir=.
13165     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13166       lt_cv_path_LD="$ac_dir/$ac_prog"
13167       # Check to see if the program is GNU ld.  I'd rather use --version,
13168       # but apparently some variants of GNU ld only accept -v.
13169       # Break only if it was the GNU/non-GNU ld that we prefer.
13170       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13171       *GNU* | *'with BFD'*)
13172         test "$with_gnu_ld" != no && break
13173         ;;
13174       *)
13175         test "$with_gnu_ld" != yes && break
13176         ;;
13177       esac
13178     fi
13179   done
13180   IFS="$lt_save_ifs"
13181 else
13182   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13183 fi
13184 fi
13185
13186 LD="$lt_cv_path_LD"
13187 if test -n "$LD"; then
13188   { echo "$as_me:$LINENO: result: $LD" >&5
13189 echo "${ECHO_T}$LD" >&6; }
13190 else
13191   { echo "$as_me:$LINENO: result: no" >&5
13192 echo "${ECHO_T}no" >&6; }
13193 fi
13194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13196    { (exit 1); exit 1; }; }
13197 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13200   echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13203 case `$LD -v 2>&1 </dev/null` in
13204 *GNU* | *'with BFD'*)
13205   lt_cv_prog_gnu_ld=yes
13206   ;;
13207 *)
13208   lt_cv_prog_gnu_ld=no
13209   ;;
13210 esac
13211 fi
13212 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13213 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13214 with_gnu_ld=$lt_cv_prog_gnu_ld
13215
13216
13217
13218
13219
13220
13221
13222       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13223       # archiving commands below assume that GNU ld is being used.
13224       if test "$with_gnu_ld" = yes; then
13225         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13226         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'
13227
13228         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13229         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13230
13231         # If archive_cmds runs LD, not CC, wlarc should be empty
13232         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13233         #     investigate it a little bit more. (MM)
13234         wlarc='${wl}'
13235
13236         # ancient GNU ld didn't support --whole-archive et. al.
13237         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13238           $GREP 'no-whole-archive' > /dev/null; then
13239           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13240         else
13241           whole_archive_flag_spec_CXX=
13242         fi
13243       else
13244         with_gnu_ld=no
13245         wlarc=
13246
13247         # A generic and very simple default shared library creation
13248         # command for GNU C++ for the case where it uses the native
13249         # linker, instead of GNU ld.  If possible, this setting should
13250         # overridden to take advantage of the native linker features on
13251         # the platform it is being used on.
13252         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13253       fi
13254
13255       # Commands to make compiler produce verbose output that lists
13256       # what "hidden" libraries, object files and flags are used when
13257       # linking a shared library.
13258       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13259
13260     else
13261       GXX=no
13262       with_gnu_ld=no
13263       wlarc=
13264     fi
13265
13266     # PORTME: fill in a description of your system's C++ link characteristics
13267     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13268 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13269     ld_shlibs_CXX=yes
13270     case $host_os in
13271       aix3*)
13272         # FIXME: insert proper C++ library support
13273         ld_shlibs_CXX=no
13274         ;;
13275       aix[4-9]*)
13276         if test "$host_cpu" = ia64; then
13277           # On IA64, the linker does run time linking by default, so we don't
13278           # have to do anything special.
13279           aix_use_runtimelinking=no
13280           exp_sym_flag='-Bexport'
13281           no_entry_flag=""
13282         else
13283           aix_use_runtimelinking=no
13284
13285           # Test if we are trying to use run time linking or normal
13286           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13287           # need to do runtime linking.
13288           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13289             for ld_flag in $LDFLAGS; do
13290               case $ld_flag in
13291               *-brtl*)
13292                 aix_use_runtimelinking=yes
13293                 break
13294                 ;;
13295               esac
13296             done
13297             ;;
13298           esac
13299
13300           exp_sym_flag='-bexport'
13301           no_entry_flag='-bnoentry'
13302         fi
13303
13304         # When large executables or shared objects are built, AIX ld can
13305         # have problems creating the table of contents.  If linking a library
13306         # or program results in "error TOC overflow" add -mminimal-toc to
13307         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13308         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13309
13310         archive_cmds_CXX=''
13311         hardcode_direct_CXX=yes
13312         hardcode_direct_absolute_CXX=yes
13313         hardcode_libdir_separator_CXX=':'
13314         link_all_deplibs_CXX=yes
13315         file_list_spec_CXX='${wl}-f,'
13316
13317         if test "$GXX" = yes; then
13318           case $host_os in aix4.[012]|aix4.[012].*)
13319           # We only want to do this on AIX 4.2 and lower, the check
13320           # below for broken collect2 doesn't work under 4.3+
13321           collect2name=`${CC} -print-prog-name=collect2`
13322           if test -f "$collect2name" &&
13323              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13324           then
13325             # We have reworked collect2
13326             :
13327           else
13328             # We have old collect2
13329             hardcode_direct_CXX=unsupported
13330             # It fails to find uninstalled libraries when the uninstalled
13331             # path is not listed in the libpath.  Setting hardcode_minus_L
13332             # to unsupported forces relinking
13333             hardcode_minus_L_CXX=yes
13334             hardcode_libdir_flag_spec_CXX='-L$libdir'
13335             hardcode_libdir_separator_CXX=
13336           fi
13337           esac
13338           shared_flag='-shared'
13339           if test "$aix_use_runtimelinking" = yes; then
13340             shared_flag="$shared_flag "'${wl}-G'
13341           fi
13342         else
13343           # not using gcc
13344           if test "$host_cpu" = ia64; then
13345           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13346           # chokes on -Wl,-G. The following line is correct:
13347           shared_flag='-G'
13348           else
13349             if test "$aix_use_runtimelinking" = yes; then
13350               shared_flag='${wl}-G'
13351             else
13352               shared_flag='${wl}-bM:SRE'
13353             fi
13354           fi
13355         fi
13356
13357         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13358         # It seems that -bexpall does not export symbols beginning with
13359         # underscore (_), so it is better to generate a list of symbols to
13360         # export.
13361         always_export_symbols_CXX=yes
13362         if test "$aix_use_runtimelinking" = yes; then
13363           # Warning - without using the other runtime loading flags (-brtl),
13364           # -berok will link without error, but may produce a broken library.
13365           allow_undefined_flag_CXX='-berok'
13366           # Determine the default libpath from the value encoded in an empty
13367           # executable.
13368           cat >conftest.$ac_ext <<_ACEOF
13369 /* confdefs.h.  */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h.  */
13374
13375 int
13376 main ()
13377 {
13378
13379   ;
13380   return 0;
13381 }
13382 _ACEOF
13383 rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (ac_try="$ac_link"
13385 case "(($ac_try" in
13386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387   *) ac_try_echo=$ac_try;;
13388 esac
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390   (eval "$ac_link") 2>conftest.er1
13391   ac_status=$?
13392   grep -v '^ *+' conftest.er1 >conftest.err
13393   rm -f conftest.er1
13394   cat conftest.err >&5
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); } && {
13397          test -z "$ac_cxx_werror_flag" ||
13398          test ! -s conftest.err
13399        } && test -s conftest$ac_exeext &&
13400        $as_test_x conftest$ac_exeext; then
13401
13402 lt_aix_libpath_sed='
13403     /Import File Strings/,/^$/ {
13404         /^0/ {
13405             s/^0  *\(.*\)$/\1/
13406             p
13407         }
13408     }'
13409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13410 # Check for a 64-bit object if we didn't find anything.
13411 if test -z "$aix_libpath"; then
13412   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13413 fi
13414 else
13415   echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13417
13418
13419 fi
13420
13421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13422       conftest$ac_exeext conftest.$ac_ext
13423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13424
13425           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13426
13427           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"
13428         else
13429           if test "$host_cpu" = ia64; then
13430             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13431             allow_undefined_flag_CXX="-z nodefs"
13432             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"
13433           else
13434             # Determine the default libpath from the value encoded in an
13435             # empty executable.
13436             cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h.  */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h.  */
13442
13443 int
13444 main ()
13445 {
13446
13447   ;
13448   return 0;
13449 }
13450 _ACEOF
13451 rm -f conftest.$ac_objext conftest$ac_exeext
13452 if { (ac_try="$ac_link"
13453 case "(($ac_try" in
13454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455   *) ac_try_echo=$ac_try;;
13456 esac
13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458   (eval "$ac_link") 2>conftest.er1
13459   ac_status=$?
13460   grep -v '^ *+' conftest.er1 >conftest.err
13461   rm -f conftest.er1
13462   cat conftest.err >&5
13463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464   (exit $ac_status); } && {
13465          test -z "$ac_cxx_werror_flag" ||
13466          test ! -s conftest.err
13467        } && test -s conftest$ac_exeext &&
13468        $as_test_x conftest$ac_exeext; then
13469
13470 lt_aix_libpath_sed='
13471     /Import File Strings/,/^$/ {
13472         /^0/ {
13473             s/^0  *\(.*\)$/\1/
13474             p
13475         }
13476     }'
13477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13478 # Check for a 64-bit object if we didn't find anything.
13479 if test -z "$aix_libpath"; then
13480   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13481 fi
13482 else
13483   echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13485
13486
13487 fi
13488
13489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13490       conftest$ac_exeext conftest.$ac_ext
13491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13492
13493             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13494             # Warning - without using the other run time loading flags,
13495             # -berok will link without error, but may produce a broken library.
13496             no_undefined_flag_CXX=' ${wl}-bernotok'
13497             allow_undefined_flag_CXX=' ${wl}-berok'
13498             # Exported symbols can be pulled into shared objects from archives
13499             whole_archive_flag_spec_CXX='$convenience'
13500             archive_cmds_need_lc_CXX=yes
13501             # This is similar to how AIX traditionally builds its shared
13502             # libraries.
13503             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'
13504           fi
13505         fi
13506         ;;
13507
13508       beos*)
13509         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13510           allow_undefined_flag_CXX=unsupported
13511           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13512           # support --undefined.  This deserves some investigation.  FIXME
13513           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13514         else
13515           ld_shlibs_CXX=no
13516         fi
13517         ;;
13518
13519       chorus*)
13520         case $cc_basename in
13521           *)
13522           # FIXME: insert proper C++ library support
13523           ld_shlibs_CXX=no
13524           ;;
13525         esac
13526         ;;
13527
13528       cygwin* | mingw* | pw32* | cegcc*)
13529         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13530         # as there is no search path for DLLs.
13531         hardcode_libdir_flag_spec_CXX='-L$libdir'
13532         allow_undefined_flag_CXX=unsupported
13533         always_export_symbols_CXX=no
13534         enable_shared_with_static_runtimes_CXX=yes
13535
13536         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13537           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'
13538           # If the export-symbols file already is a .def file (1st line
13539           # is EXPORTS), use it as is; otherwise, prepend...
13540           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13541             cp $export_symbols $output_objdir/$soname.def;
13542           else
13543             echo EXPORTS > $output_objdir/$soname.def;
13544             cat $export_symbols >> $output_objdir/$soname.def;
13545           fi~
13546           $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'
13547         else
13548           ld_shlibs_CXX=no
13549         fi
13550         ;;
13551       darwin* | rhapsody*)
13552
13553
13554   archive_cmds_need_lc_CXX=no
13555   hardcode_direct_CXX=no
13556   hardcode_automatic_CXX=yes
13557   hardcode_shlibpath_var_CXX=unsupported
13558   whole_archive_flag_spec_CXX=''
13559   link_all_deplibs_CXX=yes
13560   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13561   case $cc_basename in
13562      ifort*) _lt_dar_can_shared=yes ;;
13563      *) _lt_dar_can_shared=$GCC ;;
13564   esac
13565   if test "$_lt_dar_can_shared" = "yes"; then
13566     output_verbose_link_cmd=echo
13567     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}"
13568     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13569     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}"
13570     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}"
13571        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13572       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}"
13573       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}"
13574     fi
13575
13576   else
13577   ld_shlibs_CXX=no
13578   fi
13579
13580         ;;
13581
13582       dgux*)
13583         case $cc_basename in
13584           ec++*)
13585             # FIXME: insert proper C++ library support
13586             ld_shlibs_CXX=no
13587             ;;
13588           ghcx*)
13589             # Green Hills C++ Compiler
13590             # FIXME: insert proper C++ library support
13591             ld_shlibs_CXX=no
13592             ;;
13593           *)
13594             # FIXME: insert proper C++ library support
13595             ld_shlibs_CXX=no
13596             ;;
13597         esac
13598         ;;
13599
13600       freebsd[12]*)
13601         # C++ shared libraries reported to be fairly broken before
13602         # switch to ELF
13603         ld_shlibs_CXX=no
13604         ;;
13605
13606       freebsd-elf*)
13607         archive_cmds_need_lc_CXX=no
13608         ;;
13609
13610       freebsd* | dragonfly*)
13611         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13612         # conventions
13613         ld_shlibs_CXX=yes
13614         ;;
13615
13616       gnu*)
13617         ;;
13618
13619       hpux9*)
13620         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13621         hardcode_libdir_separator_CXX=:
13622         export_dynamic_flag_spec_CXX='${wl}-E'
13623         hardcode_direct_CXX=yes
13624         hardcode_minus_L_CXX=yes # Not in the search PATH,
13625                                              # but as the default
13626                                              # location of the library.
13627
13628         case $cc_basename in
13629           CC*)
13630             # FIXME: insert proper C++ library support
13631             ld_shlibs_CXX=no
13632             ;;
13633           aCC*)
13634             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'
13635             # Commands to make compiler produce verbose output that lists
13636             # what "hidden" libraries, object files and flags are used when
13637             # linking a shared library.
13638             #
13639             # There doesn't appear to be a way to prevent this compiler from
13640             # explicitly linking system object files so we need to strip them
13641             # from the output so that they don't get included in the library
13642             # dependencies.
13643             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'
13644             ;;
13645           *)
13646             if test "$GXX" = yes; then
13647               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'
13648             else
13649               # FIXME: insert proper C++ library support
13650               ld_shlibs_CXX=no
13651             fi
13652             ;;
13653         esac
13654         ;;
13655
13656       hpux10*|hpux11*)
13657         if test $with_gnu_ld = no; then
13658           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13659           hardcode_libdir_separator_CXX=:
13660
13661           case $host_cpu in
13662             hppa*64*|ia64*)
13663               ;;
13664             *)
13665               export_dynamic_flag_spec_CXX='${wl}-E'
13666               ;;
13667           esac
13668         fi
13669         case $host_cpu in
13670           hppa*64*|ia64*)
13671             hardcode_direct_CXX=no
13672             hardcode_shlibpath_var_CXX=no
13673             ;;
13674           *)
13675             hardcode_direct_CXX=yes
13676             hardcode_direct_absolute_CXX=yes
13677             hardcode_minus_L_CXX=yes # Not in the search PATH,
13678                                                  # but as the default
13679                                                  # location of the library.
13680             ;;
13681         esac
13682
13683         case $cc_basename in
13684           CC*)
13685             # FIXME: insert proper C++ library support
13686             ld_shlibs_CXX=no
13687             ;;
13688           aCC*)
13689             case $host_cpu in
13690               hppa*64*)
13691                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13692                 ;;
13693               ia64*)
13694                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13695                 ;;
13696               *)
13697                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13698                 ;;
13699             esac
13700             # Commands to make compiler produce verbose output that lists
13701             # what "hidden" libraries, object files and flags are used when
13702             # linking a shared library.
13703             #
13704             # There doesn't appear to be a way to prevent this compiler from
13705             # explicitly linking system object files so we need to strip them
13706             # from the output so that they don't get included in the library
13707             # dependencies.
13708             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'
13709             ;;
13710           *)
13711             if test "$GXX" = yes; then
13712               if test $with_gnu_ld = no; then
13713                 case $host_cpu in
13714                   hppa*64*)
13715                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13716                     ;;
13717                   ia64*)
13718                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13719                     ;;
13720                   *)
13721                     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'
13722                     ;;
13723                 esac
13724               fi
13725             else
13726               # FIXME: insert proper C++ library support
13727               ld_shlibs_CXX=no
13728             fi
13729             ;;
13730         esac
13731         ;;
13732
13733       interix[3-9]*)
13734         hardcode_direct_CXX=no
13735         hardcode_shlibpath_var_CXX=no
13736         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13737         export_dynamic_flag_spec_CXX='${wl}-E'
13738         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13739         # Instead, shared libraries are loaded at an image base (0x10000000 by
13740         # default) and relocated if they conflict, which is a slow very memory
13741         # consuming and fragmenting process.  To avoid this, we pick a random,
13742         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13743         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13744         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'
13745         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'
13746         ;;
13747       irix5* | irix6*)
13748         case $cc_basename in
13749           CC*)
13750             # SGI C++
13751             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'
13752
13753             # Archives containing C++ object files must be created using
13754             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13755             # necessary to make sure instantiated templates are included
13756             # in the archive.
13757             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13758             ;;
13759           *)
13760             if test "$GXX" = yes; then
13761               if test "$with_gnu_ld" = no; then
13762                 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'
13763               else
13764                 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'
13765               fi
13766             fi
13767             link_all_deplibs_CXX=yes
13768             ;;
13769         esac
13770         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13771         hardcode_libdir_separator_CXX=:
13772         inherit_rpath_CXX=yes
13773         ;;
13774
13775       linux* | k*bsd*-gnu)
13776         case $cc_basename in
13777           KCC*)
13778             # Kuck and Associates, Inc. (KAI) C++ Compiler
13779
13780             # KCC will only create a shared library if the output file
13781             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13782             # to its proper name (with version) after linking.
13783             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'
13784             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'
13785             # Commands to make compiler produce verbose output that lists
13786             # what "hidden" libraries, object files and flags are used when
13787             # linking a shared library.
13788             #
13789             # There doesn't appear to be a way to prevent this compiler from
13790             # explicitly linking system object files so we need to strip them
13791             # from the output so that they don't get included in the library
13792             # dependencies.
13793             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'
13794
13795             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13796             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13797
13798             # Archives containing C++ object files must be created using
13799             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13800             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13801             ;;
13802           icpc* | ecpc* )
13803             # Intel C++
13804             with_gnu_ld=yes
13805             # version 8.0 and above of icpc choke on multiply defined symbols
13806             # if we add $predep_objects and $postdep_objects, however 7.1 and
13807             # earlier do not add the objects themselves.
13808             case `$CC -V 2>&1` in
13809               *"Version 7."*)
13810                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13811                 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'
13812                 ;;
13813               *)  # Version 8.0 or newer
13814                 tmp_idyn=
13815                 case $host_cpu in
13816                   ia64*) tmp_idyn=' -i_dynamic';;
13817                 esac
13818                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13819                 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'
13820                 ;;
13821             esac
13822             archive_cmds_need_lc_CXX=no
13823             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13824             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13825             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13826             ;;
13827           pgCC* | pgcpp*)
13828             # Portland Group C++ compiler
13829             case `$CC -V` in
13830             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13831               prelink_cmds_CXX='tpldir=Template.dir~
13832                 rm -rf $tpldir~
13833                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13834                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13835               old_archive_cmds_CXX='tpldir=Template.dir~
13836                 rm -rf $tpldir~
13837                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13838                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13839                 $RANLIB $oldlib'
13840               archive_cmds_CXX='tpldir=Template.dir~
13841                 rm -rf $tpldir~
13842                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13843                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13844               archive_expsym_cmds_CXX='tpldir=Template.dir~
13845                 rm -rf $tpldir~
13846                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13847                 $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'
13848               ;;
13849             *) # Version 6 will use weak symbols
13850               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13851               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'
13852               ;;
13853             esac
13854
13855             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13856             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13857             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'
13858             ;;
13859           cxx*)
13860             # Compaq C++
13861             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13862             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'
13863
13864             runpath_var=LD_RUN_PATH
13865             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13866             hardcode_libdir_separator_CXX=:
13867
13868             # Commands to make compiler produce verbose output that lists
13869             # what "hidden" libraries, object files and flags are used when
13870             # linking a shared library.
13871             #
13872             # There doesn't appear to be a way to prevent this compiler from
13873             # explicitly linking system object files so we need to strip them
13874             # from the output so that they don't get included in the library
13875             # dependencies.
13876             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'
13877             ;;
13878           xl*)
13879             # IBM XL 8.0 on PPC, with GNU ld
13880             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13881             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13882             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13883             if test "x$supports_anon_versioning" = xyes; then
13884               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13885                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13886                 echo "local: *; };" >> $output_objdir/$libname.ver~
13887                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13888             fi
13889             ;;
13890           *)
13891             case `$CC -V 2>&1 | sed 5q` in
13892             *Sun\ C*)
13893               # Sun C++ 5.9
13894               no_undefined_flag_CXX=' -zdefs'
13895               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13896               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'
13897               hardcode_libdir_flag_spec_CXX='-R$libdir'
13898               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'
13899               compiler_needs_object_CXX=yes
13900
13901               # Not sure whether something based on
13902               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13903               # would be better.
13904               output_verbose_link_cmd='echo'
13905
13906               # Archives containing C++ object files must be created using
13907               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13908               # necessary to make sure instantiated templates are included
13909               # in the archive.
13910               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13911               ;;
13912             esac
13913             ;;
13914         esac
13915         ;;
13916
13917       lynxos*)
13918         # FIXME: insert proper C++ library support
13919         ld_shlibs_CXX=no
13920         ;;
13921
13922       m88k*)
13923         # FIXME: insert proper C++ library support
13924         ld_shlibs_CXX=no
13925         ;;
13926
13927       mvs*)
13928         case $cc_basename in
13929           cxx*)
13930             # FIXME: insert proper C++ library support
13931             ld_shlibs_CXX=no
13932             ;;
13933           *)
13934             # FIXME: insert proper C++ library support
13935             ld_shlibs_CXX=no
13936             ;;
13937         esac
13938         ;;
13939
13940       netbsd*)
13941         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13942           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13943           wlarc=
13944           hardcode_libdir_flag_spec_CXX='-R$libdir'
13945           hardcode_direct_CXX=yes
13946           hardcode_shlibpath_var_CXX=no
13947         fi
13948         # Workaround some broken pre-1.5 toolchains
13949         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13950         ;;
13951
13952       *nto* | *qnx*)
13953         ld_shlibs_CXX=yes
13954         ;;
13955
13956       openbsd2*)
13957         # C++ shared libraries are fairly broken
13958         ld_shlibs_CXX=no
13959         ;;
13960
13961       openbsd*)
13962         if test -f /usr/libexec/ld.so; then
13963           hardcode_direct_CXX=yes
13964           hardcode_shlibpath_var_CXX=no
13965           hardcode_direct_absolute_CXX=yes
13966           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13967           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13968           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13969             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13970             export_dynamic_flag_spec_CXX='${wl}-E'
13971             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13972           fi
13973           output_verbose_link_cmd=echo
13974         else
13975           ld_shlibs_CXX=no
13976         fi
13977         ;;
13978
13979       osf3* | osf4* | osf5*)
13980         case $cc_basename in
13981           KCC*)
13982             # Kuck and Associates, Inc. (KAI) C++ Compiler
13983
13984             # KCC will only create a shared library if the output file
13985             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13986             # to its proper name (with version) after linking.
13987             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'
13988
13989             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13990             hardcode_libdir_separator_CXX=:
13991
13992             # Archives containing C++ object files must be created using
13993             # the KAI C++ compiler.
13994             case $host in
13995               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13996               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13997             esac
13998             ;;
13999           RCC*)
14000             # Rational C++ 2.4.1
14001             # FIXME: insert proper C++ library support
14002             ld_shlibs_CXX=no
14003             ;;
14004           cxx*)
14005             case $host in
14006               osf3*)
14007                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14008                 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'
14009                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14010                 ;;
14011               *)
14012                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14013                 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'
14014                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14015                   echo "-hidden">> $lib.exp~
14016                   $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~
14017                   $RM $lib.exp'
14018                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14019                 ;;
14020             esac
14021
14022             hardcode_libdir_separator_CXX=:
14023
14024             # Commands to make compiler produce verbose output that lists
14025             # what "hidden" libraries, object files and flags are used when
14026             # linking a shared library.
14027             #
14028             # There doesn't appear to be a way to prevent this compiler from
14029             # explicitly linking system object files so we need to strip them
14030             # from the output so that they don't get included in the library
14031             # dependencies.
14032             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'
14033             ;;
14034           *)
14035             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14036               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14037               case $host in
14038                 osf3*)
14039                   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'
14040                   ;;
14041                 *)
14042                   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'
14043                   ;;
14044               esac
14045
14046               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14047               hardcode_libdir_separator_CXX=:
14048
14049               # Commands to make compiler produce verbose output that lists
14050               # what "hidden" libraries, object files and flags are used when
14051               # linking a shared library.
14052               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14053
14054             else
14055               # FIXME: insert proper C++ library support
14056               ld_shlibs_CXX=no
14057             fi
14058             ;;
14059         esac
14060         ;;
14061
14062       psos*)
14063         # FIXME: insert proper C++ library support
14064         ld_shlibs_CXX=no
14065         ;;
14066
14067       sunos4*)
14068         case $cc_basename in
14069           CC*)
14070             # Sun C++ 4.x
14071             # FIXME: insert proper C++ library support
14072             ld_shlibs_CXX=no
14073             ;;
14074           lcc*)
14075             # Lucid
14076             # FIXME: insert proper C++ library support
14077             ld_shlibs_CXX=no
14078             ;;
14079           *)
14080             # FIXME: insert proper C++ library support
14081             ld_shlibs_CXX=no
14082             ;;
14083         esac
14084         ;;
14085
14086       solaris*)
14087         case $cc_basename in
14088           CC*)
14089             # Sun C++ 4.2, 5.x and Centerline C++
14090             archive_cmds_need_lc_CXX=yes
14091             no_undefined_flag_CXX=' -zdefs'
14092             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14093             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14094               $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'
14095
14096             hardcode_libdir_flag_spec_CXX='-R$libdir'
14097             hardcode_shlibpath_var_CXX=no
14098             case $host_os in
14099               solaris2.[0-5] | solaris2.[0-5].*) ;;
14100               *)
14101                 # The compiler driver will combine and reorder linker options,
14102                 # but understands `-z linker_flag'.
14103                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14104                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14105                 ;;
14106             esac
14107             link_all_deplibs_CXX=yes
14108
14109             output_verbose_link_cmd='echo'
14110
14111             # Archives containing C++ object files must be created using
14112             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14113             # necessary to make sure instantiated templates are included
14114             # in the archive.
14115             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14116             ;;
14117           gcx*)
14118             # Green Hills C++ Compiler
14119             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14120
14121             # The C++ compiler must be used to create the archive.
14122             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14123             ;;
14124           *)
14125             # GNU C++ compiler with Solaris linker
14126             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14127               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14128               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14129                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14130                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14131                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14132
14133                 # Commands to make compiler produce verbose output that lists
14134                 # what "hidden" libraries, object files and flags are used when
14135                 # linking a shared library.
14136                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14137               else
14138                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14139                 # platform.
14140                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14141                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14142                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14143
14144                 # Commands to make compiler produce verbose output that lists
14145                 # what "hidden" libraries, object files and flags are used when
14146                 # linking a shared library.
14147                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14148               fi
14149
14150               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14151               case $host_os in
14152                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14153                 *)
14154                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14155                   ;;
14156               esac
14157             fi
14158             ;;
14159         esac
14160         ;;
14161
14162     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14163       no_undefined_flag_CXX='${wl}-z,text'
14164       archive_cmds_need_lc_CXX=no
14165       hardcode_shlibpath_var_CXX=no
14166       runpath_var='LD_RUN_PATH'
14167
14168       case $cc_basename in
14169         CC*)
14170           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14171           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14172           ;;
14173         *)
14174           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14175           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14176           ;;
14177       esac
14178       ;;
14179
14180       sysv5* | sco3.2v5* | sco5v6*)
14181         # Note: We can NOT use -z defs as we might desire, because we do not
14182         # link with -lc, and that would cause any symbols used from libc to
14183         # always be unresolved, which means just about no library would
14184         # ever link correctly.  If we're not using GNU ld we use -z text
14185         # though, which does catch some bad symbols but isn't as heavy-handed
14186         # as -z defs.
14187         no_undefined_flag_CXX='${wl}-z,text'
14188         allow_undefined_flag_CXX='${wl}-z,nodefs'
14189         archive_cmds_need_lc_CXX=no
14190         hardcode_shlibpath_var_CXX=no
14191         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14192         hardcode_libdir_separator_CXX=':'
14193         link_all_deplibs_CXX=yes
14194         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14195         runpath_var='LD_RUN_PATH'
14196
14197         case $cc_basename in
14198           CC*)
14199             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14200             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14201             ;;
14202           *)
14203             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14204             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14205             ;;
14206         esac
14207       ;;
14208
14209       tandem*)
14210         case $cc_basename in
14211           NCC*)
14212             # NonStop-UX NCC 3.20
14213             # FIXME: insert proper C++ library support
14214             ld_shlibs_CXX=no
14215             ;;
14216           *)
14217             # FIXME: insert proper C++ library support
14218             ld_shlibs_CXX=no
14219             ;;
14220         esac
14221         ;;
14222
14223       vxworks*)
14224         # FIXME: insert proper C++ library support
14225         ld_shlibs_CXX=no
14226         ;;
14227
14228       *)
14229         # FIXME: insert proper C++ library support
14230         ld_shlibs_CXX=no
14231         ;;
14232     esac
14233
14234     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14235 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14236     test "$ld_shlibs_CXX" = no && can_build_shared=no
14237
14238     GCC_CXX="$GXX"
14239     LD_CXX="$LD"
14240
14241     ## CAVEAT EMPTOR:
14242     ## There is no encapsulation within the following macros, do not change
14243     ## the running order or otherwise move them around unless you know exactly
14244     ## what you are doing...
14245     # Dependencies to place before and after the object being linked:
14246 predep_objects_CXX=
14247 postdep_objects_CXX=
14248 predeps_CXX=
14249 postdeps_CXX=
14250 compiler_lib_search_path_CXX=
14251
14252 cat > conftest.$ac_ext <<_LT_EOF
14253 class Foo
14254 {
14255 public:
14256   Foo (void) { a = 0; }
14257 private:
14258   int a;
14259 };
14260 _LT_EOF
14261
14262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14263   (eval $ac_compile) 2>&5
14264   ac_status=$?
14265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266   (exit $ac_status); }; then
14267   # Parse the compiler output and extract the necessary
14268   # objects, libraries and library flags.
14269
14270   # Sentinel used to keep track of whether or not we are before
14271   # the conftest object file.
14272   pre_test_object_deps_done=no
14273
14274   for p in `eval "$output_verbose_link_cmd"`; do
14275     case $p in
14276
14277     -L* | -R* | -l*)
14278        # Some compilers place space between "-{L,R}" and the path.
14279        # Remove the space.
14280        if test $p = "-L" ||
14281           test $p = "-R"; then
14282          prev=$p
14283          continue
14284        else
14285          prev=
14286        fi
14287
14288        if test "$pre_test_object_deps_done" = no; then
14289          case $p in
14290          -L* | -R*)
14291            # Internal compiler library paths should come after those
14292            # provided the user.  The postdeps already come after the
14293            # user supplied libs so there is no need to process them.
14294            if test -z "$compiler_lib_search_path_CXX"; then
14295              compiler_lib_search_path_CXX="${prev}${p}"
14296            else
14297              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14298            fi
14299            ;;
14300          # The "-l" case would never come before the object being
14301          # linked, so don't bother handling this case.
14302          esac
14303        else
14304          if test -z "$postdeps_CXX"; then
14305            postdeps_CXX="${prev}${p}"
14306          else
14307            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14308          fi
14309        fi
14310        ;;
14311
14312     *.$objext)
14313        # This assumes that the test object file only shows up
14314        # once in the compiler output.
14315        if test "$p" = "conftest.$objext"; then
14316          pre_test_object_deps_done=yes
14317          continue
14318        fi
14319
14320        if test "$pre_test_object_deps_done" = no; then
14321          if test -z "$predep_objects_CXX"; then
14322            predep_objects_CXX="$p"
14323          else
14324            predep_objects_CXX="$predep_objects_CXX $p"
14325          fi
14326        else
14327          if test -z "$postdep_objects_CXX"; then
14328            postdep_objects_CXX="$p"
14329          else
14330            postdep_objects_CXX="$postdep_objects_CXX $p"
14331          fi
14332        fi
14333        ;;
14334
14335     *) ;; # Ignore the rest.
14336
14337     esac
14338   done
14339
14340   # Clean up.
14341   rm -f a.out a.exe
14342 else
14343   echo "libtool.m4: error: problem compiling CXX test program"
14344 fi
14345
14346 $RM -f confest.$objext
14347
14348 # PORTME: override above test on systems where it is broken
14349 case $host_os in
14350 interix[3-9]*)
14351   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14352   # hack all around it, let's just trust "g++" to DTRT.
14353   predep_objects_CXX=
14354   postdep_objects_CXX=
14355   postdeps_CXX=
14356   ;;
14357
14358 linux*)
14359   case `$CC -V 2>&1 | sed 5q` in
14360   *Sun\ C*)
14361     # Sun C++ 5.9
14362
14363     # The more standards-conforming stlport4 library is
14364     # incompatible with the Cstd library. Avoid specifying
14365     # it if it's in CXXFLAGS. Ignore libCrun as
14366     # -library=stlport4 depends on it.
14367     case " $CXX $CXXFLAGS " in
14368     *" -library=stlport4 "*)
14369       solaris_use_stlport4=yes
14370       ;;
14371     esac
14372
14373     if test "$solaris_use_stlport4" != yes; then
14374       postdeps_CXX='-library=Cstd -library=Crun'
14375     fi
14376     ;;
14377   esac
14378   ;;
14379
14380 solaris*)
14381   case $cc_basename in
14382   CC*)
14383     # The more standards-conforming stlport4 library is
14384     # incompatible with the Cstd library. Avoid specifying
14385     # it if it's in CXXFLAGS. Ignore libCrun as
14386     # -library=stlport4 depends on it.
14387     case " $CXX $CXXFLAGS " in
14388     *" -library=stlport4 "*)
14389       solaris_use_stlport4=yes
14390       ;;
14391     esac
14392
14393     # Adding this requires a known-good setup of shared libraries for
14394     # Sun compiler versions before 5.6, else PIC objects from an old
14395     # archive will be linked into the output, leading to subtle bugs.
14396     if test "$solaris_use_stlport4" != yes; then
14397       postdeps_CXX='-library=Cstd -library=Crun'
14398     fi
14399     ;;
14400   esac
14401   ;;
14402 esac
14403
14404
14405 case " $postdeps_CXX " in
14406 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14407 esac
14408  compiler_lib_search_dirs_CXX=
14409 if test -n "${compiler_lib_search_path_CXX}"; then
14410  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14411 fi
14412
14413
14414
14415
14416
14417
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     lt_prog_compiler_wl_CXX=
14444 lt_prog_compiler_pic_CXX=
14445 lt_prog_compiler_static_CXX=
14446
14447 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14448 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14449
14450   # C++ specific cases for pic, static, wl, etc.
14451   if test "$GXX" = yes; then
14452     lt_prog_compiler_wl_CXX='-Wl,'
14453     lt_prog_compiler_static_CXX='-static'
14454
14455     case $host_os in
14456     aix*)
14457       # All AIX code is PIC.
14458       if test "$host_cpu" = ia64; then
14459         # AIX 5 now supports IA64 processor
14460         lt_prog_compiler_static_CXX='-Bstatic'
14461       fi
14462       ;;
14463
14464     amigaos*)
14465       case $host_cpu in
14466       powerpc)
14467             # see comment about AmigaOS4 .so support
14468             lt_prog_compiler_pic_CXX='-fPIC'
14469         ;;
14470       m68k)
14471             # FIXME: we need at least 68020 code to build shared libraries, but
14472             # adding the `-m68020' flag to GCC prevents building anything better,
14473             # like `-m68040'.
14474             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14475         ;;
14476       esac
14477       ;;
14478
14479     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14480       # PIC is the default for these OSes.
14481       ;;
14482     mingw* | cygwin* | os2* | pw32* | cegcc*)
14483       # This hack is so that the source file can tell whether it is being
14484       # built for inclusion in a dll (and should export symbols for example).
14485       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14486       # (--disable-auto-import) libraries
14487       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14488       ;;
14489     darwin* | rhapsody*)
14490       # PIC is the default on this platform
14491       # Common symbols not allowed in MH_DYLIB files
14492       lt_prog_compiler_pic_CXX='-fno-common'
14493       ;;
14494     *djgpp*)
14495       # DJGPP does not support shared libraries at all
14496       lt_prog_compiler_pic_CXX=
14497       ;;
14498     interix[3-9]*)
14499       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14500       # Instead, we relocate shared libraries at runtime.
14501       ;;
14502     sysv4*MP*)
14503       if test -d /usr/nec; then
14504         lt_prog_compiler_pic_CXX=-Kconform_pic
14505       fi
14506       ;;
14507     hpux*)
14508       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14509       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14510       # sets the default TLS model and affects inlining.
14511       case $host_cpu in
14512       hppa*64*)
14513         ;;
14514       *)
14515         lt_prog_compiler_pic_CXX='-fPIC'
14516         ;;
14517       esac
14518       ;;
14519     *qnx* | *nto*)
14520       # QNX uses GNU C++, but need to define -shared option too, otherwise
14521       # it will coredump.
14522       lt_prog_compiler_pic_CXX='-fPIC -shared'
14523       ;;
14524     *)
14525       lt_prog_compiler_pic_CXX='-fPIC'
14526       ;;
14527     esac
14528   else
14529     case $host_os in
14530       aix[4-9]*)
14531         # All AIX code is PIC.
14532         if test "$host_cpu" = ia64; then
14533           # AIX 5 now supports IA64 processor
14534           lt_prog_compiler_static_CXX='-Bstatic'
14535         else
14536           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14537         fi
14538         ;;
14539       chorus*)
14540         case $cc_basename in
14541         cxch68*)
14542           # Green Hills C++ Compiler
14543           # _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"
14544           ;;
14545         esac
14546         ;;
14547       dgux*)
14548         case $cc_basename in
14549           ec++*)
14550             lt_prog_compiler_pic_CXX='-KPIC'
14551             ;;
14552           ghcx*)
14553             # Green Hills C++ Compiler
14554             lt_prog_compiler_pic_CXX='-pic'
14555             ;;
14556           *)
14557             ;;
14558         esac
14559         ;;
14560       freebsd* | dragonfly*)
14561         # FreeBSD uses GNU C++
14562         ;;
14563       hpux9* | hpux10* | hpux11*)
14564         case $cc_basename in
14565           CC*)
14566             lt_prog_compiler_wl_CXX='-Wl,'
14567             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14568             if test "$host_cpu" != ia64; then
14569               lt_prog_compiler_pic_CXX='+Z'
14570             fi
14571             ;;
14572           aCC*)
14573             lt_prog_compiler_wl_CXX='-Wl,'
14574             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14575             case $host_cpu in
14576             hppa*64*|ia64*)
14577               # +Z the default
14578               ;;
14579             *)
14580               lt_prog_compiler_pic_CXX='+Z'
14581               ;;
14582             esac
14583             ;;
14584           *)
14585             ;;
14586         esac
14587         ;;
14588       interix*)
14589         # This is c89, which is MS Visual C++ (no shared libs)
14590         # Anyone wants to do a port?
14591         ;;
14592       irix5* | irix6* | nonstopux*)
14593         case $cc_basename in
14594           CC*)
14595             lt_prog_compiler_wl_CXX='-Wl,'
14596             lt_prog_compiler_static_CXX='-non_shared'
14597             # CC pic flag -KPIC is the default.
14598             ;;
14599           *)
14600             ;;
14601         esac
14602         ;;
14603       linux* | k*bsd*-gnu)
14604         case $cc_basename in
14605           KCC*)
14606             # KAI C++ Compiler
14607             lt_prog_compiler_wl_CXX='--backend -Wl,'
14608             lt_prog_compiler_pic_CXX='-fPIC'
14609             ;;
14610           ecpc* )
14611             # old Intel C++ for x86_64 which still supported -KPIC.
14612             lt_prog_compiler_wl_CXX='-Wl,'
14613             lt_prog_compiler_pic_CXX='-KPIC'
14614             lt_prog_compiler_static_CXX='-static'
14615             ;;
14616           icpc* )
14617             # Intel C++, used to be incompatible with GCC.
14618             # ICC 10 doesn't accept -KPIC any more.
14619             lt_prog_compiler_wl_CXX='-Wl,'
14620             lt_prog_compiler_pic_CXX='-fPIC'
14621             lt_prog_compiler_static_CXX='-static'
14622             ;;
14623           pgCC* | pgcpp*)
14624             # Portland Group C++ compiler
14625             lt_prog_compiler_wl_CXX='-Wl,'
14626             lt_prog_compiler_pic_CXX='-fpic'
14627             lt_prog_compiler_static_CXX='-Bstatic'
14628             ;;
14629           cxx*)
14630             # Compaq C++
14631             # Make sure the PIC flag is empty.  It appears that all Alpha
14632             # Linux and Compaq Tru64 Unix objects are PIC.
14633             lt_prog_compiler_pic_CXX=
14634             lt_prog_compiler_static_CXX='-non_shared'
14635             ;;
14636           xlc* | xlC*)
14637             # IBM XL 8.0 on PPC
14638             lt_prog_compiler_wl_CXX='-Wl,'
14639             lt_prog_compiler_pic_CXX='-qpic'
14640             lt_prog_compiler_static_CXX='-qstaticlink'
14641             ;;
14642           *)
14643             case `$CC -V 2>&1 | sed 5q` in
14644             *Sun\ C*)
14645               # Sun C++ 5.9
14646               lt_prog_compiler_pic_CXX='-KPIC'
14647               lt_prog_compiler_static_CXX='-Bstatic'
14648               lt_prog_compiler_wl_CXX='-Qoption ld '
14649               ;;
14650             esac
14651             ;;
14652         esac
14653         ;;
14654       lynxos*)
14655         ;;
14656       m88k*)
14657         ;;
14658       mvs*)
14659         case $cc_basename in
14660           cxx*)
14661             lt_prog_compiler_pic_CXX='-W c,exportall'
14662             ;;
14663           *)
14664             ;;
14665         esac
14666         ;;
14667       netbsd*)
14668         ;;
14669       *qnx* | *nto*)
14670         # QNX uses GNU C++, but need to define -shared option too, otherwise
14671         # it will coredump.
14672         lt_prog_compiler_pic_CXX='-fPIC -shared'
14673         ;;
14674       osf3* | osf4* | osf5*)
14675         case $cc_basename in
14676           KCC*)
14677             lt_prog_compiler_wl_CXX='--backend -Wl,'
14678             ;;
14679           RCC*)
14680             # Rational C++ 2.4.1
14681             lt_prog_compiler_pic_CXX='-pic'
14682             ;;
14683           cxx*)
14684             # Digital/Compaq C++
14685             lt_prog_compiler_wl_CXX='-Wl,'
14686             # Make sure the PIC flag is empty.  It appears that all Alpha
14687             # Linux and Compaq Tru64 Unix objects are PIC.
14688             lt_prog_compiler_pic_CXX=
14689             lt_prog_compiler_static_CXX='-non_shared'
14690             ;;
14691           *)
14692             ;;
14693         esac
14694         ;;
14695       psos*)
14696         ;;
14697       solaris*)
14698         case $cc_basename in
14699           CC*)
14700             # Sun C++ 4.2, 5.x and Centerline C++
14701             lt_prog_compiler_pic_CXX='-KPIC'
14702             lt_prog_compiler_static_CXX='-Bstatic'
14703             lt_prog_compiler_wl_CXX='-Qoption ld '
14704             ;;
14705           gcx*)
14706             # Green Hills C++ Compiler
14707             lt_prog_compiler_pic_CXX='-PIC'
14708             ;;
14709           *)
14710             ;;
14711         esac
14712         ;;
14713       sunos4*)
14714         case $cc_basename in
14715           CC*)
14716             # Sun C++ 4.x
14717             lt_prog_compiler_pic_CXX='-pic'
14718             lt_prog_compiler_static_CXX='-Bstatic'
14719             ;;
14720           lcc*)
14721             # Lucid
14722             lt_prog_compiler_pic_CXX='-pic'
14723             ;;
14724           *)
14725             ;;
14726         esac
14727         ;;
14728       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14729         case $cc_basename in
14730           CC*)
14731             lt_prog_compiler_wl_CXX='-Wl,'
14732             lt_prog_compiler_pic_CXX='-KPIC'
14733             lt_prog_compiler_static_CXX='-Bstatic'
14734             ;;
14735         esac
14736         ;;
14737       tandem*)
14738         case $cc_basename in
14739           NCC*)
14740             # NonStop-UX NCC 3.20
14741             lt_prog_compiler_pic_CXX='-KPIC'
14742             ;;
14743           *)
14744             ;;
14745         esac
14746         ;;
14747       vxworks*)
14748         ;;
14749       *)
14750         lt_prog_compiler_can_build_shared_CXX=no
14751         ;;
14752     esac
14753   fi
14754
14755 case $host_os in
14756   # For platforms which do not support PIC, -DPIC is meaningless:
14757   *djgpp*)
14758     lt_prog_compiler_pic_CXX=
14759     ;;
14760   *)
14761     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14762     ;;
14763 esac
14764 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14765 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14766
14767
14768
14769 #
14770 # Check to make sure the PIC flag actually works.
14771 #
14772 if test -n "$lt_prog_compiler_pic_CXX"; then
14773   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14774 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14775 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14776   echo $ECHO_N "(cached) $ECHO_C" >&6
14777 else
14778   lt_cv_prog_compiler_pic_works_CXX=no
14779    ac_outfile=conftest.$ac_objext
14780    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14781    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14782    # Insert the option either (1) after the last *FLAGS variable, or
14783    # (2) before a word containing "conftest.", or (3) at the end.
14784    # Note that $ac_compile itself does not contain backslashes and begins
14785    # with a dollar sign (not a hyphen), so the echo should work correctly.
14786    # The option is referenced via a variable to avoid confusing sed.
14787    lt_compile=`echo "$ac_compile" | $SED \
14788    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14789    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14790    -e 's:$: $lt_compiler_flag:'`
14791    (eval echo "\"\$as_me:14791: $lt_compile\"" >&5)
14792    (eval "$lt_compile" 2>conftest.err)
14793    ac_status=$?
14794    cat conftest.err >&5
14795    echo "$as_me:14795: \$? = $ac_status" >&5
14796    if (exit $ac_status) && test -s "$ac_outfile"; then
14797      # The compiler can only warn and ignore the option if not recognized
14798      # So say no if there are warnings other than the usual output.
14799      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14800      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14801      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14802        lt_cv_prog_compiler_pic_works_CXX=yes
14803      fi
14804    fi
14805    $RM conftest*
14806
14807 fi
14808 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14809 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14810
14811 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14812     case $lt_prog_compiler_pic_CXX in
14813      "" | " "*) ;;
14814      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14815      esac
14816 else
14817     lt_prog_compiler_pic_CXX=
14818      lt_prog_compiler_can_build_shared_CXX=no
14819 fi
14820
14821 fi
14822
14823
14824
14825 #
14826 # Check to make sure the static flag actually works.
14827 #
14828 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14829 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14830 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14831 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14832   echo $ECHO_N "(cached) $ECHO_C" >&6
14833 else
14834   lt_cv_prog_compiler_static_works_CXX=no
14835    save_LDFLAGS="$LDFLAGS"
14836    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14837    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14838    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14839      # The linker can only warn and ignore the option if not recognized
14840      # So say no if there are warnings
14841      if test -s conftest.err; then
14842        # Append any errors to the config.log.
14843        cat conftest.err 1>&5
14844        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14845        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14846        if diff conftest.exp conftest.er2 >/dev/null; then
14847          lt_cv_prog_compiler_static_works_CXX=yes
14848        fi
14849      else
14850        lt_cv_prog_compiler_static_works_CXX=yes
14851      fi
14852    fi
14853    $RM -r conftest*
14854    LDFLAGS="$save_LDFLAGS"
14855
14856 fi
14857 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14858 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14859
14860 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14861     :
14862 else
14863     lt_prog_compiler_static_CXX=
14864 fi
14865
14866
14867
14868
14869     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14871 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14872   echo $ECHO_N "(cached) $ECHO_C" >&6
14873 else
14874   lt_cv_prog_compiler_c_o_CXX=no
14875    $RM -r conftest 2>/dev/null
14876    mkdir conftest
14877    cd conftest
14878    mkdir out
14879    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14880
14881    lt_compiler_flag="-o out/conftest2.$ac_objext"
14882    # Insert the option either (1) after the last *FLAGS variable, or
14883    # (2) before a word containing "conftest.", or (3) at the end.
14884    # Note that $ac_compile itself does not contain backslashes and begins
14885    # with a dollar sign (not a hyphen), so the echo should work correctly.
14886    lt_compile=`echo "$ac_compile" | $SED \
14887    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14889    -e 's:$: $lt_compiler_flag:'`
14890    (eval echo "\"\$as_me:14890: $lt_compile\"" >&5)
14891    (eval "$lt_compile" 2>out/conftest.err)
14892    ac_status=$?
14893    cat out/conftest.err >&5
14894    echo "$as_me:14894: \$? = $ac_status" >&5
14895    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14896    then
14897      # The compiler can only warn and ignore the option if not recognized
14898      # So say no if there are warnings
14899      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14900      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14901      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14902        lt_cv_prog_compiler_c_o_CXX=yes
14903      fi
14904    fi
14905    chmod u+w . 2>&5
14906    $RM conftest*
14907    # SGI C++ compiler will create directory out/ii_files/ for
14908    # template instantiation
14909    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14910    $RM out/* && rmdir out
14911    cd ..
14912    $RM -r conftest
14913    $RM conftest*
14914
14915 fi
14916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14918
14919
14920
14921     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14922 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14923 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14924   echo $ECHO_N "(cached) $ECHO_C" >&6
14925 else
14926   lt_cv_prog_compiler_c_o_CXX=no
14927    $RM -r conftest 2>/dev/null
14928    mkdir conftest
14929    cd conftest
14930    mkdir out
14931    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14932
14933    lt_compiler_flag="-o out/conftest2.$ac_objext"
14934    # Insert the option either (1) after the last *FLAGS variable, or
14935    # (2) before a word containing "conftest.", or (3) at the end.
14936    # Note that $ac_compile itself does not contain backslashes and begins
14937    # with a dollar sign (not a hyphen), so the echo should work correctly.
14938    lt_compile=`echo "$ac_compile" | $SED \
14939    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14940    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14941    -e 's:$: $lt_compiler_flag:'`
14942    (eval echo "\"\$as_me:14942: $lt_compile\"" >&5)
14943    (eval "$lt_compile" 2>out/conftest.err)
14944    ac_status=$?
14945    cat out/conftest.err >&5
14946    echo "$as_me:14946: \$? = $ac_status" >&5
14947    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14948    then
14949      # The compiler can only warn and ignore the option if not recognized
14950      # So say no if there are warnings
14951      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14952      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14953      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14954        lt_cv_prog_compiler_c_o_CXX=yes
14955      fi
14956    fi
14957    chmod u+w . 2>&5
14958    $RM conftest*
14959    # SGI C++ compiler will create directory out/ii_files/ for
14960    # template instantiation
14961    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14962    $RM out/* && rmdir out
14963    cd ..
14964    $RM -r conftest
14965    $RM conftest*
14966
14967 fi
14968 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14969 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14970
14971
14972
14973
14974 hard_links="nottested"
14975 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14976   # do not overwrite the value of need_locks provided by the user
14977   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14978 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14979   hard_links=yes
14980   $RM conftest*
14981   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14982   touch conftest.a
14983   ln conftest.a conftest.b 2>&5 || hard_links=no
14984   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14985   { echo "$as_me:$LINENO: result: $hard_links" >&5
14986 echo "${ECHO_T}$hard_links" >&6; }
14987   if test "$hard_links" = no; then
14988     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14989 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14990     need_locks=warn
14991   fi
14992 else
14993   need_locks=no
14994 fi
14995
14996
14997
14998     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14999 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15000
15001   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15002   case $host_os in
15003   aix[4-9]*)
15004     # If we're using GNU nm, then we don't want the "-C" option.
15005     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15006     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15007       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'
15008     else
15009       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'
15010     fi
15011     ;;
15012   pw32*)
15013     export_symbols_cmds_CXX="$ltdll_cmds"
15014   ;;
15015   cygwin* | mingw* | cegcc*)
15016     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'
15017   ;;
15018   *)
15019     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15020   ;;
15021   esac
15022   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15023
15024 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15025 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15026 test "$ld_shlibs_CXX" = no && can_build_shared=no
15027
15028 with_gnu_ld_CXX=$with_gnu_ld
15029
15030
15031
15032
15033
15034
15035 #
15036 # Do we need to explicitly link libc?
15037 #
15038 case "x$archive_cmds_need_lc_CXX" in
15039 x|xyes)
15040   # Assume -lc should be added
15041   archive_cmds_need_lc_CXX=yes
15042
15043   if test "$enable_shared" = yes && test "$GCC" = yes; then
15044     case $archive_cmds_CXX in
15045     *'~'*)
15046       # FIXME: we may have to deal with multi-command sequences.
15047       ;;
15048     '$CC '*)
15049       # Test whether the compiler implicitly links with -lc since on some
15050       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15051       # to ld, don't add -lc before -lgcc.
15052       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15053 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15054       $RM conftest*
15055       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15056
15057       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058   (eval $ac_compile) 2>&5
15059   ac_status=$?
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); } 2>conftest.err; then
15062         soname=conftest
15063         lib=conftest
15064         libobjs=conftest.$ac_objext
15065         deplibs=
15066         wl=$lt_prog_compiler_wl_CXX
15067         pic_flag=$lt_prog_compiler_pic_CXX
15068         compiler_flags=-v
15069         linker_flags=-v
15070         verstring=
15071         output_objdir=.
15072         libname=conftest
15073         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15074         allow_undefined_flag_CXX=
15075         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15076   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15077   ac_status=$?
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   (exit $ac_status); }
15080         then
15081           archive_cmds_need_lc_CXX=no
15082         else
15083           archive_cmds_need_lc_CXX=yes
15084         fi
15085         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15086       else
15087         cat conftest.err 1>&5
15088       fi
15089       $RM conftest*
15090       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15091 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15092       ;;
15093     esac
15094   fi
15095   ;;
15096 esac
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
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     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15162 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15163
15164 library_names_spec=
15165 libname_spec='lib$name'
15166 soname_spec=
15167 shrext_cmds=".so"
15168 postinstall_cmds=
15169 postuninstall_cmds=
15170 finish_cmds=
15171 finish_eval=
15172 shlibpath_var=
15173 shlibpath_overrides_runpath=unknown
15174 version_type=none
15175 dynamic_linker="$host_os ld.so"
15176 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15177 need_lib_prefix=unknown
15178 hardcode_into_libs=no
15179
15180 # when you set need_version to no, make sure it does not cause -set_version
15181 # flags to be left without arguments
15182 need_version=unknown
15183
15184 case $host_os in
15185 aix3*)
15186   version_type=linux
15187   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15188   shlibpath_var=LIBPATH
15189
15190   # AIX 3 has no versioning support, so we append a major version to the name.
15191   soname_spec='${libname}${release}${shared_ext}$major'
15192   ;;
15193
15194 aix[4-9]*)
15195   version_type=linux
15196   need_lib_prefix=no
15197   need_version=no
15198   hardcode_into_libs=yes
15199   if test "$host_cpu" = ia64; then
15200     # AIX 5 supports IA64
15201     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15202     shlibpath_var=LD_LIBRARY_PATH
15203   else
15204     # With GCC up to 2.95.x, collect2 would create an import file
15205     # for dependence libraries.  The import file would start with
15206     # the line `#! .'.  This would cause the generated library to
15207     # depend on `.', always an invalid library.  This was fixed in
15208     # development snapshots of GCC prior to 3.0.
15209     case $host_os in
15210       aix4 | aix4.[01] | aix4.[01].*)
15211       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15212            echo ' yes '
15213            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15214         :
15215       else
15216         can_build_shared=no
15217       fi
15218       ;;
15219     esac
15220     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15221     # soname into executable. Probably we can add versioning support to
15222     # collect2, so additional links can be useful in future.
15223     if test "$aix_use_runtimelinking" = yes; then
15224       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15225       # instead of lib<name>.a to let people know that these are not
15226       # typical AIX shared libraries.
15227       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228     else
15229       # We preserve .a as extension for shared libraries through AIX4.2
15230       # and later when we are not doing run time linking.
15231       library_names_spec='${libname}${release}.a $libname.a'
15232       soname_spec='${libname}${release}${shared_ext}$major'
15233     fi
15234     shlibpath_var=LIBPATH
15235   fi
15236   ;;
15237
15238 amigaos*)
15239   case $host_cpu in
15240   powerpc)
15241     # Since July 2007 AmigaOS4 officially supports .so libraries.
15242     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15244     ;;
15245   m68k)
15246     library_names_spec='$libname.ixlibrary $libname.a'
15247     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15248     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'
15249     ;;
15250   esac
15251   ;;
15252
15253 beos*)
15254   library_names_spec='${libname}${shared_ext}'
15255   dynamic_linker="$host_os ld.so"
15256   shlibpath_var=LIBRARY_PATH
15257   ;;
15258
15259 bsdi[45]*)
15260   version_type=linux
15261   need_version=no
15262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263   soname_spec='${libname}${release}${shared_ext}$major'
15264   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15265   shlibpath_var=LD_LIBRARY_PATH
15266   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15267   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15268   # the default ld.so.conf also contains /usr/contrib/lib and
15269   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15270   # libtool to hard-code these into programs
15271   ;;
15272
15273 cygwin* | mingw* | pw32* | cegcc*)
15274   version_type=windows
15275   shrext_cmds=".dll"
15276   need_version=no
15277   need_lib_prefix=no
15278
15279   case $GCC,$host_os in
15280   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15281     library_names_spec='$libname.dll.a'
15282     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15283     postinstall_cmds='base_file=`basename \${file}`~
15284       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15285       dldir=$destdir/`dirname \$dlpath`~
15286       test -d \$dldir || mkdir -p \$dldir~
15287       $install_prog $dir/$dlname \$dldir/$dlname~
15288       chmod a+x \$dldir/$dlname~
15289       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15290         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15291       fi'
15292     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15293       dlpath=$dir/\$dldll~
15294        $RM \$dlpath'
15295     shlibpath_overrides_runpath=yes
15296
15297     case $host_os in
15298     cygwin*)
15299       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15300       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15301       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15302       ;;
15303     mingw* | cegcc*)
15304       # MinGW DLLs use traditional 'lib' prefix
15305       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15306       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15307       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15308         # It is most probably a Windows format PATH printed by
15309         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15310         # path with ; separators, and with drive letters. We can handle the
15311         # drive letters (cygwin fileutils understands them), so leave them,
15312         # especially as we might pass files found there to a mingw objdump,
15313         # which wouldn't understand a cygwinified path. Ahh.
15314         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15315       else
15316         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15317       fi
15318       ;;
15319     pw32*)
15320       # pw32 DLLs use 'pw' prefix rather than 'lib'
15321       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15322       ;;
15323     esac
15324     ;;
15325
15326   *)
15327     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15328     ;;
15329   esac
15330   dynamic_linker='Win32 ld.exe'
15331   # FIXME: first we should search . and the directory the executable is in
15332   shlibpath_var=PATH
15333   ;;
15334
15335 darwin* | rhapsody*)
15336   dynamic_linker="$host_os dyld"
15337   version_type=darwin
15338   need_lib_prefix=no
15339   need_version=no
15340   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15341   soname_spec='${libname}${release}${major}$shared_ext'
15342   shlibpath_overrides_runpath=yes
15343   shlibpath_var=DYLD_LIBRARY_PATH
15344   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15345
15346   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15347   ;;
15348
15349 dgux*)
15350   version_type=linux
15351   need_lib_prefix=no
15352   need_version=no
15353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15354   soname_spec='${libname}${release}${shared_ext}$major'
15355   shlibpath_var=LD_LIBRARY_PATH
15356   ;;
15357
15358 freebsd1*)
15359   dynamic_linker=no
15360   ;;
15361
15362 freebsd* | dragonfly*)
15363   # DragonFly does not have aout.  When/if they implement a new
15364   # versioning mechanism, adjust this.
15365   if test -x /usr/bin/objformat; then
15366     objformat=`/usr/bin/objformat`
15367   else
15368     case $host_os in
15369     freebsd[123]*) objformat=aout ;;
15370     *) objformat=elf ;;
15371     esac
15372   fi
15373   version_type=freebsd-$objformat
15374   case $version_type in
15375     freebsd-elf*)
15376       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15377       need_version=no
15378       need_lib_prefix=no
15379       ;;
15380     freebsd-*)
15381       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15382       need_version=yes
15383       ;;
15384   esac
15385   shlibpath_var=LD_LIBRARY_PATH
15386   case $host_os in
15387   freebsd2*)
15388     shlibpath_overrides_runpath=yes
15389     ;;
15390   freebsd3.[01]* | freebsdelf3.[01]*)
15391     shlibpath_overrides_runpath=yes
15392     hardcode_into_libs=yes
15393     ;;
15394   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15395   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15396     shlibpath_overrides_runpath=no
15397     hardcode_into_libs=yes
15398     ;;
15399   *) # from 4.6 on, and DragonFly
15400     shlibpath_overrides_runpath=yes
15401     hardcode_into_libs=yes
15402     ;;
15403   esac
15404   ;;
15405
15406 gnu*)
15407   version_type=linux
15408   need_lib_prefix=no
15409   need_version=no
15410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15411   soname_spec='${libname}${release}${shared_ext}$major'
15412   shlibpath_var=LD_LIBRARY_PATH
15413   hardcode_into_libs=yes
15414   ;;
15415
15416 hpux9* | hpux10* | hpux11*)
15417   # Give a soname corresponding to the major version so that dld.sl refuses to
15418   # link against other versions.
15419   version_type=sunos
15420   need_lib_prefix=no
15421   need_version=no
15422   case $host_cpu in
15423   ia64*)
15424     shrext_cmds='.so'
15425     hardcode_into_libs=yes
15426     dynamic_linker="$host_os dld.so"
15427     shlibpath_var=LD_LIBRARY_PATH
15428     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430     soname_spec='${libname}${release}${shared_ext}$major'
15431     if test "X$HPUX_IA64_MODE" = X32; then
15432       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15433     else
15434       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15435     fi
15436     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15437     ;;
15438   hppa*64*)
15439     shrext_cmds='.sl'
15440     hardcode_into_libs=yes
15441     dynamic_linker="$host_os dld.sl"
15442     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15443     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15444     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15445     soname_spec='${libname}${release}${shared_ext}$major'
15446     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15447     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15448     ;;
15449   *)
15450     shrext_cmds='.sl'
15451     dynamic_linker="$host_os dld.sl"
15452     shlibpath_var=SHLIB_PATH
15453     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15455     soname_spec='${libname}${release}${shared_ext}$major'
15456     ;;
15457   esac
15458   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15459   postinstall_cmds='chmod 555 $lib'
15460   ;;
15461
15462 interix[3-9]*)
15463   version_type=linux
15464   need_lib_prefix=no
15465   need_version=no
15466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15467   soname_spec='${libname}${release}${shared_ext}$major'
15468   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15469   shlibpath_var=LD_LIBRARY_PATH
15470   shlibpath_overrides_runpath=no
15471   hardcode_into_libs=yes
15472   ;;
15473
15474 irix5* | irix6* | nonstopux*)
15475   case $host_os in
15476     nonstopux*) version_type=nonstopux ;;
15477     *)
15478         if test "$lt_cv_prog_gnu_ld" = yes; then
15479                 version_type=linux
15480         else
15481                 version_type=irix
15482         fi ;;
15483   esac
15484   need_lib_prefix=no
15485   need_version=no
15486   soname_spec='${libname}${release}${shared_ext}$major'
15487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15488   case $host_os in
15489   irix5* | nonstopux*)
15490     libsuff= shlibsuff=
15491     ;;
15492   *)
15493     case $LD in # libtool.m4 will add one of these switches to LD
15494     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15495       libsuff= shlibsuff= libmagic=32-bit;;
15496     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15497       libsuff=32 shlibsuff=N32 libmagic=N32;;
15498     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15499       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15500     *) libsuff= shlibsuff= libmagic=never-match;;
15501     esac
15502     ;;
15503   esac
15504   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15505   shlibpath_overrides_runpath=no
15506   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15507   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15508   hardcode_into_libs=yes
15509   ;;
15510
15511 # No shared lib support for Linux oldld, aout, or coff.
15512 linux*oldld* | linux*aout* | linux*coff*)
15513   dynamic_linker=no
15514   ;;
15515
15516 # This must be Linux ELF.
15517 linux* | k*bsd*-gnu)
15518   version_type=linux
15519   need_lib_prefix=no
15520   need_version=no
15521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522   soname_spec='${libname}${release}${shared_ext}$major'
15523   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15524   shlibpath_var=LD_LIBRARY_PATH
15525   shlibpath_overrides_runpath=no
15526   # Some binutils ld are patched to set DT_RUNPATH
15527   save_LDFLAGS=$LDFLAGS
15528   save_libdir=$libdir
15529   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15530        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15531   cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h.  */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h.  */
15537
15538 int
15539 main ()
15540 {
15541
15542   ;
15543   return 0;
15544 }
15545 _ACEOF
15546 rm -f conftest.$ac_objext conftest$ac_exeext
15547 if { (ac_try="$ac_link"
15548 case "(($ac_try" in
15549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550   *) ac_try_echo=$ac_try;;
15551 esac
15552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553   (eval "$ac_link") 2>conftest.er1
15554   ac_status=$?
15555   grep -v '^ *+' conftest.er1 >conftest.err
15556   rm -f conftest.er1
15557   cat conftest.err >&5
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); } && {
15560          test -z "$ac_cxx_werror_flag" ||
15561          test ! -s conftest.err
15562        } && test -s conftest$ac_exeext &&
15563        $as_test_x conftest$ac_exeext; then
15564   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15565   shlibpath_overrides_runpath=yes
15566 fi
15567
15568 else
15569   echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15571
15572
15573 fi
15574
15575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15576       conftest$ac_exeext conftest.$ac_ext
15577   LDFLAGS=$save_LDFLAGS
15578   libdir=$save_libdir
15579
15580   # This implies no fast_install, which is unacceptable.
15581   # Some rework will be needed to allow for fast_install
15582   # before this can be enabled.
15583   hardcode_into_libs=yes
15584
15585   # Append ld.so.conf contents to the search path
15586   if test -f /etc/ld.so.conf; then
15587     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' ' '`
15588     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15589   fi
15590
15591   # We used to test for /lib/ld.so.1 and disable shared libraries on
15592   # powerpc, because MkLinux only supported shared libraries with the
15593   # GNU dynamic linker.  Since this was broken with cross compilers,
15594   # most powerpc-linux boxes support dynamic linking these days and
15595   # people can always --disable-shared, the test was removed, and we
15596   # assume the GNU/Linux dynamic linker is in use.
15597   dynamic_linker='GNU/Linux ld.so'
15598   ;;
15599
15600 netbsd*)
15601   version_type=sunos
15602   need_lib_prefix=no
15603   need_version=no
15604   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15605     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15606     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15607     dynamic_linker='NetBSD (a.out) ld.so'
15608   else
15609     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15610     soname_spec='${libname}${release}${shared_ext}$major'
15611     dynamic_linker='NetBSD ld.elf_so'
15612   fi
15613   shlibpath_var=LD_LIBRARY_PATH
15614   shlibpath_overrides_runpath=yes
15615   hardcode_into_libs=yes
15616   ;;
15617
15618 newsos6)
15619   version_type=linux
15620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621   shlibpath_var=LD_LIBRARY_PATH
15622   shlibpath_overrides_runpath=yes
15623   ;;
15624
15625 *nto* | *qnx*)
15626   version_type=qnx
15627   need_lib_prefix=no
15628   need_version=no
15629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630   soname_spec='${libname}${release}${shared_ext}$major'
15631   shlibpath_var=LD_LIBRARY_PATH
15632   shlibpath_overrides_runpath=no
15633   hardcode_into_libs=yes
15634   dynamic_linker='ldqnx.so'
15635   ;;
15636
15637 openbsd*)
15638   version_type=sunos
15639   sys_lib_dlsearch_path_spec="/usr/lib"
15640   need_lib_prefix=no
15641   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15642   case $host_os in
15643     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15644     *)                          need_version=no  ;;
15645   esac
15646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15647   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15648   shlibpath_var=LD_LIBRARY_PATH
15649   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15650     case $host_os in
15651       openbsd2.[89] | openbsd2.[89].*)
15652         shlibpath_overrides_runpath=no
15653         ;;
15654       *)
15655         shlibpath_overrides_runpath=yes
15656         ;;
15657       esac
15658   else
15659     shlibpath_overrides_runpath=yes
15660   fi
15661   ;;
15662
15663 os2*)
15664   libname_spec='$name'
15665   shrext_cmds=".dll"
15666   need_lib_prefix=no
15667   library_names_spec='$libname${shared_ext} $libname.a'
15668   dynamic_linker='OS/2 ld.exe'
15669   shlibpath_var=LIBPATH
15670   ;;
15671
15672 osf3* | osf4* | osf5*)
15673   version_type=osf
15674   need_lib_prefix=no
15675   need_version=no
15676   soname_spec='${libname}${release}${shared_ext}$major'
15677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678   shlibpath_var=LD_LIBRARY_PATH
15679   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15680   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15681   ;;
15682
15683 rdos*)
15684   dynamic_linker=no
15685   ;;
15686
15687 solaris*)
15688   version_type=linux
15689   need_lib_prefix=no
15690   need_version=no
15691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692   soname_spec='${libname}${release}${shared_ext}$major'
15693   shlibpath_var=LD_LIBRARY_PATH
15694   shlibpath_overrides_runpath=yes
15695   hardcode_into_libs=yes
15696   # ldd complains unless libraries are executable
15697   postinstall_cmds='chmod +x $lib'
15698   ;;
15699
15700 sunos4*)
15701   version_type=sunos
15702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15703   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15704   shlibpath_var=LD_LIBRARY_PATH
15705   shlibpath_overrides_runpath=yes
15706   if test "$with_gnu_ld" = yes; then
15707     need_lib_prefix=no
15708   fi
15709   need_version=yes
15710   ;;
15711
15712 sysv4 | sysv4.3*)
15713   version_type=linux
15714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15715   soname_spec='${libname}${release}${shared_ext}$major'
15716   shlibpath_var=LD_LIBRARY_PATH
15717   case $host_vendor in
15718     sni)
15719       shlibpath_overrides_runpath=no
15720       need_lib_prefix=no
15721       runpath_var=LD_RUN_PATH
15722       ;;
15723     siemens)
15724       need_lib_prefix=no
15725       ;;
15726     motorola)
15727       need_lib_prefix=no
15728       need_version=no
15729       shlibpath_overrides_runpath=no
15730       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15731       ;;
15732   esac
15733   ;;
15734
15735 sysv4*MP*)
15736   if test -d /usr/nec ;then
15737     version_type=linux
15738     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15739     soname_spec='$libname${shared_ext}.$major'
15740     shlibpath_var=LD_LIBRARY_PATH
15741   fi
15742   ;;
15743
15744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15745   version_type=freebsd-elf
15746   need_lib_prefix=no
15747   need_version=no
15748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15749   soname_spec='${libname}${release}${shared_ext}$major'
15750   shlibpath_var=LD_LIBRARY_PATH
15751   shlibpath_overrides_runpath=yes
15752   hardcode_into_libs=yes
15753   if test "$with_gnu_ld" = yes; then
15754     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15755   else
15756     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15757     case $host_os in
15758       sco3.2v5*)
15759         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15760         ;;
15761     esac
15762   fi
15763   sys_lib_dlsearch_path_spec='/usr/lib'
15764   ;;
15765
15766 tpf*)
15767   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15768   version_type=linux
15769   need_lib_prefix=no
15770   need_version=no
15771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772   shlibpath_var=LD_LIBRARY_PATH
15773   shlibpath_overrides_runpath=no
15774   hardcode_into_libs=yes
15775   ;;
15776
15777 uts4*)
15778   version_type=linux
15779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780   soname_spec='${libname}${release}${shared_ext}$major'
15781   shlibpath_var=LD_LIBRARY_PATH
15782   ;;
15783
15784 *)
15785   dynamic_linker=no
15786   ;;
15787 esac
15788 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15789 echo "${ECHO_T}$dynamic_linker" >&6; }
15790 test "$dynamic_linker" = no && can_build_shared=no
15791
15792 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15793 if test "$GCC" = yes; then
15794   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15795 fi
15796
15797 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15798   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15799 fi
15800 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15801   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15802 fi
15803
15804
15805
15806
15807
15808
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     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15840 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15841 hardcode_action_CXX=
15842 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15843    test -n "$runpath_var_CXX" ||
15844    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15845
15846   # We can hardcode non-existent directories.
15847   if test "$hardcode_direct_CXX" != no &&
15848      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15849      # have to relink, otherwise we might link with an installed library
15850      # when we should be linking with a yet-to-be-installed one
15851      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15852      test "$hardcode_minus_L_CXX" != no; then
15853     # Linking always hardcodes the temporary library directory.
15854     hardcode_action_CXX=relink
15855   else
15856     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15857     hardcode_action_CXX=immediate
15858   fi
15859 else
15860   # We cannot hardcode anything, or else we can only hardcode existing
15861   # directories.
15862   hardcode_action_CXX=unsupported
15863 fi
15864 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15865 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15866
15867 if test "$hardcode_action_CXX" = relink ||
15868    test "$inherit_rpath_CXX" = yes; then
15869   # Fast installation is not supported
15870   enable_fast_install=no
15871 elif test "$shlibpath_overrides_runpath" = yes ||
15872      test "$enable_shared" = no; then
15873   # Fast installation is not necessary
15874   enable_fast_install=needless
15875 fi
15876
15877
15878
15879
15880
15881
15882
15883   fi # test -n "$compiler"
15884
15885   CC=$lt_save_CC
15886   LDCXX=$LD
15887   LD=$lt_save_LD
15888   GCC=$lt_save_GCC
15889   with_gnu_ld=$lt_save_with_gnu_ld
15890   lt_cv_path_LDCXX=$lt_cv_path_LD
15891   lt_cv_path_LD=$lt_save_path_LD
15892   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15893   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15894 fi # test "$_lt_caught_CXX_error" != yes
15895
15896 ac_ext=c
15897 ac_cpp='$CPP $CPPFLAGS'
15898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914         ac_config_commands="$ac_config_commands libtool"
15915
15916
15917
15918
15919 # Only expand once:
15920
15921
15922
15923
15924 if test x$use_libtool != xno; then
15925    DEFAULT_OBJECT_TYPE=".lo"
15926    DEFAULT_ARCHIVE_TYPE=".la"
15927    DEFAULT_SHARED_OBJECT_TYPE=".la"
15928    LIBTOOL="\$(LIBTOOL)"
15929    LIBTOOL_INSTALL_TARGET="libtool-install"
15930    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15931    LIBTOOL_CLEAN_TARGET="libtool-clean"
15932    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15933    FD_PLUGIN_DIR="src/plugins/fd"
15934    have_plugins=yes
15935 else
15936    DEFAULT_OBJECT_TYPE=".o"
15937    DEFAULT_ARCHIVE_TYPE=".a"
15938    DEFAULT_SHARED_OBJECT_TYPE=".so"
15939    LIBTOOL="# \$(LIBTOOL)"
15940    LIBTOOL_INSTALL_TARGET=""
15941    LIBTOOL_UNINSTALL_TARGET=""
15942    LIBTOOL_CLEAN_TARGET=""
15943    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15944    FD_PLUGIN_DIR=""
15945    have_plugins=no
15946 fi
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958 # Check whether --enable-includes was given.
15959 if test "${enable_includes+set}" = set; then
15960   enableval=$enable_includes;
15961        if test x$enableval = xyes; then
15962           install_includes=yes
15963        fi
15964
15965
15966 fi
15967
15968
15969
15970 if test x$use_libtool != xno -a x$install_includes = xyes; then
15971    INCLUDE_INSTALL_TARGET="install-includes"
15972    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15973 else
15974    INCLUDE_INSTALL_TARGET=""
15975    INCLUDE_UNINSTALL_TARGET=""
15976 fi
15977
15978
15979
15980
15981 { echo "$as_me:$LINENO: checking host system type" >&5
15982 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15983 if test "${ac_cv_host+set}" = set; then
15984   echo $ECHO_N "(cached) $ECHO_C" >&6
15985 else
15986   if test "x$host_alias" = x; then
15987   ac_cv_host=$ac_cv_build
15988 else
15989   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15990     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15991 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15992    { (exit 1); exit 1; }; }
15993 fi
15994
15995 fi
15996 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15997 echo "${ECHO_T}$ac_cv_host" >&6; }
15998 case $ac_cv_host in
15999 *-*-*) ;;
16000 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16001 echo "$as_me: error: invalid value of canonical host" >&2;}
16002    { (exit 1); exit 1; }; };;
16003 esac
16004 host=$ac_cv_host
16005 ac_save_IFS=$IFS; IFS='-'
16006 set x $ac_cv_host
16007 shift
16008 host_cpu=$1
16009 host_vendor=$2
16010 shift; shift
16011 # Remember, the first character of IFS is used to create $*,
16012 # except with old shells:
16013 host_os=$*
16014 IFS=$ac_save_IFS
16015 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16016
16017
16018 case $host_os in
16019   *cygwin* ) CYGWIN=yes;;
16020          * ) CYGWIN=no;;
16021 esac
16022
16023 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16024 then
16025
16026
16027 if $TRUEPRG; then
16028   HAVE_SUN_OS_TRUE=
16029   HAVE_SUN_OS_FALSE='#'
16030 else
16031   HAVE_SUN_OS_TRUE='#'
16032   HAVE_SUN_OS_FALSE=
16033 fi
16034         cat >>confdefs.h <<\_ACEOF
16035 #define HAVE_SUN_OS 1
16036 _ACEOF
16037
16038 else
16039
16040
16041 if $FALSEPRG; then
16042   HAVE_SUN_OS_TRUE=
16043   HAVE_SUN_OS_FALSE='#'
16044 else
16045   HAVE_SUN_OS_TRUE='#'
16046   HAVE_SUN_OS_FALSE=
16047 fi
16048 fi
16049
16050 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16051 then
16052
16053
16054 if $TRUEPRG; then
16055   HAVE_OSF1_OS_TRUE=
16056   HAVE_OSF1_OS_FALSE='#'
16057 else
16058   HAVE_OSF1_OS_TRUE='#'
16059   HAVE_OSF1_OS_FALSE=
16060 fi
16061         cat >>confdefs.h <<\_ACEOF
16062 #define HAVE_OSF1_OS 1
16063 _ACEOF
16064
16065 else
16066
16067
16068 if $FALSEPRG; then
16069   HAVE_OSF1_OS_TRUE=
16070   HAVE_OSF1_OS_FALSE='#'
16071 else
16072   HAVE_OSF1_OS_TRUE='#'
16073   HAVE_OSF1_OS_FALSE=
16074 fi
16075 fi
16076
16077 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16078 then
16079
16080
16081 if $TRUEPRG; then
16082   HAVE_AIX_OS_TRUE=
16083   HAVE_AIX_OS_FALSE='#'
16084 else
16085   HAVE_AIX_OS_TRUE='#'
16086   HAVE_AIX_OS_FALSE=
16087 fi
16088         cat >>confdefs.h <<\_ACEOF
16089 #define HAVE_AIX_OS 1
16090 _ACEOF
16091
16092 else
16093
16094
16095 if $FALSEPRG; then
16096   HAVE_AIX_OS_TRUE=
16097   HAVE_AIX_OS_FALSE='#'
16098 else
16099   HAVE_AIX_OS_TRUE='#'
16100   HAVE_AIX_OS_FALSE=
16101 fi
16102 fi
16103
16104 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16105 then
16106
16107
16108 if $TRUEPRG; then
16109   HAVE_HPUX_OS_TRUE=
16110   HAVE_HPUX_OS_FALSE='#'
16111 else
16112   HAVE_HPUX_OS_TRUE='#'
16113   HAVE_HPUX_OS_FALSE=
16114 fi
16115         cat >>confdefs.h <<\_ACEOF
16116 #define HAVE_HPUX_OS 1
16117 _ACEOF
16118
16119 else
16120
16121
16122 if $FALSEPRG; then
16123   HAVE_HPUX_OS_TRUE=
16124   HAVE_HPUX_OS_FALSE='#'
16125 else
16126   HAVE_HPUX_OS_TRUE='#'
16127   HAVE_HPUX_OS_FALSE=
16128 fi
16129 fi
16130
16131 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16132 then
16133
16134
16135 if $TRUEPRG; then
16136   HAVE_LINUX_OS_TRUE=
16137   HAVE_LINUX_OS_FALSE='#'
16138 else
16139   HAVE_LINUX_OS_TRUE='#'
16140   HAVE_LINUX_OS_FALSE=
16141 fi
16142         cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_LINUX_OS 1
16144 _ACEOF
16145
16146 else
16147
16148
16149 if $FALSEPRG; then
16150   HAVE_LINUX_OS_TRUE=
16151   HAVE_LINUX_OS_FALSE='#'
16152 else
16153   HAVE_LINUX_OS_TRUE='#'
16154   HAVE_LINUX_OS_FALSE=
16155 fi
16156 fi
16157
16158 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16159 then
16160
16161
16162 if $TRUEPRG; then
16163   HAVE_FREEBSD_OS_TRUE=
16164   HAVE_FREEBSD_OS_FALSE='#'
16165 else
16166   HAVE_FREEBSD_OS_TRUE='#'
16167   HAVE_FREEBSD_OS_FALSE=
16168 fi
16169         cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_FREEBSD_OS 1
16171 _ACEOF
16172
16173 else
16174
16175
16176 if $FALSEPRG; then
16177   HAVE_FREEBSD_OS_TRUE=
16178   HAVE_FREEBSD_OS_FALSE='#'
16179 else
16180   HAVE_FREEBSD_OS_TRUE='#'
16181   HAVE_FREEBSD_OS_FALSE=
16182 fi
16183 fi
16184
16185 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16186 then
16187
16188
16189 if $TRUEPRG; then
16190   HAVE_NETBSD_OS_TRUE=
16191   HAVE_NETBSD_OS_FALSE='#'
16192 else
16193   HAVE_NETBSD_OS_TRUE='#'
16194   HAVE_NETBSD_OS_FALSE=
16195 fi
16196         cat >>confdefs.h <<\_ACEOF
16197 #define HAVE_NETBSD_OS 1
16198 _ACEOF
16199
16200 else
16201
16202
16203 if $FALSEPRG; then
16204   HAVE_NETBSD_OS_TRUE=
16205   HAVE_NETBSD_OS_FALSE='#'
16206 else
16207   HAVE_NETBSD_OS_TRUE='#'
16208   HAVE_NETBSD_OS_FALSE=
16209 fi
16210 fi
16211
16212 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16213 then
16214
16215
16216 if $TRUEPRG; then
16217   HAVE_OPENBSD_OS_TRUE=
16218   HAVE_OPENBSD_OS_FALSE='#'
16219 else
16220   HAVE_OPENBSD_OS_TRUE='#'
16221   HAVE_OPENBSD_OS_FALSE=
16222 fi
16223         cat >>confdefs.h <<\_ACEOF
16224 #define HAVE_OPENBSD_OS 1
16225 _ACEOF
16226
16227 else
16228
16229
16230 if $FALSEPRG; then
16231   HAVE_OPENBSD_OS_TRUE=
16232   HAVE_OPENBSD_OS_FALSE='#'
16233 else
16234   HAVE_OPENBSD_OS_TRUE='#'
16235   HAVE_OPENBSD_OS_FALSE=
16236 fi
16237 fi
16238
16239 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16240 then
16241
16242
16243 if $TRUEPRG; then
16244   HAVE_BSDI_OS_TRUE=
16245   HAVE_BSDI_OS_FALSE='#'
16246 else
16247   HAVE_BSDI_OS_TRUE='#'
16248   HAVE_BSDI_OS_FALSE=
16249 fi
16250         cat >>confdefs.h <<\_ACEOF
16251 #define HAVE_BSDI_OS 1
16252 _ACEOF
16253
16254 else
16255
16256
16257 if $FALSEPRG; then
16258   HAVE_BSDI_OS_TRUE=
16259   HAVE_BSDI_OS_FALSE='#'
16260 else
16261   HAVE_BSDI_OS_TRUE='#'
16262   HAVE_BSDI_OS_FALSE=
16263 fi
16264 fi
16265
16266 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16267 then
16268
16269
16270 if $TRUEPRG; then
16271   HAVE_SGI_OS_TRUE=
16272   HAVE_SGI_OS_FALSE='#'
16273 else
16274   HAVE_SGI_OS_TRUE='#'
16275   HAVE_SGI_OS_FALSE=
16276 fi
16277         cat >>confdefs.h <<\_ACEOF
16278 #define HAVE_SGI_OS 1
16279 _ACEOF
16280
16281 else
16282
16283
16284 if $FALSEPRG; then
16285   HAVE_SGI_OS_TRUE=
16286   HAVE_SGI_OS_FALSE='#'
16287 else
16288   HAVE_SGI_OS_TRUE='#'
16289   HAVE_SGI_OS_FALSE=
16290 fi
16291 fi
16292
16293 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16294 then
16295
16296
16297 if $TRUEPRG; then
16298   HAVE_IRIX_OS_TRUE=
16299   HAVE_IRIX_OS_FALSE='#'
16300 else
16301   HAVE_IRIX_OS_TRUE='#'
16302   HAVE_IRIX_OS_FALSE=
16303 fi
16304         cat >>confdefs.h <<\_ACEOF
16305 #define HAVE_IRIX_OS 1
16306 _ACEOF
16307
16308 else
16309
16310
16311 if $FALSEPRG; then
16312   HAVE_IRIX_OS_TRUE=
16313   HAVE_IRIX_OS_FALSE='#'
16314 else
16315   HAVE_IRIX_OS_TRUE='#'
16316   HAVE_IRIX_OS_FALSE=
16317 fi
16318 fi
16319
16320 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16321 then
16322
16323
16324 if $TRUEPRG; then
16325   HAVE_DARWIN_OS_TRUE=
16326   HAVE_DARWIN_OS_FALSE='#'
16327 else
16328   HAVE_DARWIN_OS_TRUE='#'
16329   HAVE_DARWIN_OS_FALSE=
16330 fi
16331     cat >>confdefs.h <<\_ACEOF
16332 #define HAVE_DARWIN_OS 1
16333 _ACEOF
16334
16335 else
16336
16337
16338 if $FALSEPRG; then
16339   HAVE_DARWIN_OS_TRUE=
16340   HAVE_DARWIN_OS_FALSE='#'
16341 else
16342   HAVE_DARWIN_OS_TRUE='#'
16343   HAVE_DARWIN_OS_FALSE=
16344 fi
16345 fi
16346
16347
16348 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16349 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16350 if test "x$DISTNAME" != "x"
16351 then
16352         echo "distname set to $DISTNAME"
16353 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16354 then
16355         DISTNAME=alpha
16356 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16357 then
16358         DISTNAME=aix
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16360 then
16361         DISTNAME=hpux
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16363 then
16364         DISTNAME=solaris
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16366 then
16367         DISTNAME=freebsd
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16369 then
16370         DISTNAME=netbsd
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16372 then
16373         DISTNAME=openbsd
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16375 then
16376         DISTNAME=irix
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16378 then
16379         DISTNAME=bsdi
16380 elif test -f /etc/SuSE-release
16381 then
16382         DISTNAME=suse
16383 elif test -d /etc/SuSEconfig
16384 then
16385         DISTNAME=suse5
16386 elif test -f /etc/mandrake-release
16387 then
16388         DISTNAME=mandrake
16389 elif test -f /etc/whitebox-release
16390 then
16391        DISTNAME=redhat
16392 elif test -f /etc/redhat-release
16393 then
16394         DISTNAME=redhat
16395 elif test -f /etc/gentoo-release
16396 then
16397         DISTNAME=gentoo
16398 elif test -f /etc/debian_version
16399 then
16400         DISTNAME=debian
16401 elif test -f /etc/slackware-version
16402 then
16403         DISTNAME=slackware
16404 elif test x$host_vendor = xapple
16405 then
16406     DISTNAME=osx
16407 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16408 then
16409     DISTNAME=darwin
16410 elif test -f /etc/engarde-version
16411 then
16412         DISTNAME=engarde
16413 elif test "$CYGWIN" = yes
16414 then
16415         DISTNAME=cygwin
16416         cat >>confdefs.h <<\_ACEOF
16417 #define HAVE_CYGWIN 1
16418 _ACEOF
16419
16420 else
16421         DISTNAME=unknown
16422 fi
16423 { echo "$as_me:$LINENO: result: done" >&5
16424 echo "${ECHO_T}done" >&6; }
16425
16426
16427 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16428 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16429 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16430 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16431   echo $ECHO_N "(cached) $ECHO_C" >&6
16432 else
16433   cat >conftest.make <<\_ACEOF
16434 SHELL = /bin/sh
16435 all:
16436         @echo '@@@%%%=$(MAKE)=@@@%%%'
16437 _ACEOF
16438 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16439 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16440   *@@@%%%=?*=@@@%%%*)
16441     eval ac_cv_prog_make_${ac_make}_set=yes;;
16442   *)
16443     eval ac_cv_prog_make_${ac_make}_set=no;;
16444 esac
16445 rm -f conftest.make
16446 fi
16447 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16448   { echo "$as_me:$LINENO: result: yes" >&5
16449 echo "${ECHO_T}yes" >&6; }
16450   SET_MAKE=
16451 else
16452   { echo "$as_me:$LINENO: result: no" >&5
16453 echo "${ECHO_T}no" >&6; }
16454   SET_MAKE="MAKE=${MAKE-make}"
16455 fi
16456
16457
16458
16459         MKINSTALLDIRS=
16460   if test -n "$ac_aux_dir"; then
16461     case "$ac_aux_dir" in
16462       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16463       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16464     esac
16465   fi
16466   if test -z "$MKINSTALLDIRS"; then
16467     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16468   fi
16469
16470
16471
16472   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16473 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16474     # Check whether --enable-nls was given.
16475 if test "${enable_nls+set}" = set; then
16476   enableval=$enable_nls; USE_NLS=$enableval
16477 else
16478   USE_NLS=yes
16479 fi
16480
16481   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16482 echo "${ECHO_T}$USE_NLS" >&6; }
16483
16484
16485
16486
16487
16488
16489 # Prepare PATH_SEPARATOR.
16490 # The user is always right.
16491 if test "${PATH_SEPARATOR+set}" != set; then
16492   echo "#! /bin/sh" >conf$$.sh
16493   echo  "exit 0"   >>conf$$.sh
16494   chmod +x conf$$.sh
16495   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16496     PATH_SEPARATOR=';'
16497   else
16498     PATH_SEPARATOR=:
16499   fi
16500   rm -f conf$$.sh
16501 fi
16502
16503 # Find out how to test for executable files. Don't use a zero-byte file,
16504 # as systems may use methods other than mode bits to determine executability.
16505 cat >conf$$.file <<_ASEOF
16506 #! /bin/sh
16507 exit 0
16508 _ASEOF
16509 chmod +x conf$$.file
16510 if test -x conf$$.file >/dev/null 2>&1; then
16511   ac_executable_p="test -x"
16512 else
16513   ac_executable_p="test -f"
16514 fi
16515 rm -f conf$$.file
16516
16517 # Extract the first word of "msgfmt", so it can be a program name with args.
16518 set dummy msgfmt; ac_word=$2
16519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16521 if test "${ac_cv_path_MSGFMT+set}" = set; then
16522   echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524   case "$MSGFMT" in
16525   [\\/]* | ?:[\\/]*)
16526     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16527     ;;
16528   *)
16529     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16530     for ac_dir in $PATH; do
16531       IFS="$ac_save_IFS"
16532       test -z "$ac_dir" && ac_dir=.
16533       for ac_exec_ext in '' $ac_executable_extensions; do
16534         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16535           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16536           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16537      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16538             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16539             break 2
16540           fi
16541         fi
16542       done
16543     done
16544     IFS="$ac_save_IFS"
16545   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16546     ;;
16547 esac
16548 fi
16549 MSGFMT="$ac_cv_path_MSGFMT"
16550 if test "$MSGFMT" != ":"; then
16551   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16552 echo "${ECHO_T}$MSGFMT" >&6; }
16553 else
16554   { echo "$as_me:$LINENO: result: no" >&5
16555 echo "${ECHO_T}no" >&6; }
16556 fi
16557
16558   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16559 set dummy gmsgfmt; ac_word=$2
16560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16562 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16563   echo $ECHO_N "(cached) $ECHO_C" >&6
16564 else
16565   case $GMSGFMT in
16566   [\\/]* | ?:[\\/]*)
16567   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16568   ;;
16569   *)
16570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16571 for as_dir in $PATH
16572 do
16573   IFS=$as_save_IFS
16574   test -z "$as_dir" && as_dir=.
16575   for ac_exec_ext in '' $ac_executable_extensions; do
16576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16577     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16579     break 2
16580   fi
16581 done
16582 done
16583 IFS=$as_save_IFS
16584
16585   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16586   ;;
16587 esac
16588 fi
16589 GMSGFMT=$ac_cv_path_GMSGFMT
16590 if test -n "$GMSGFMT"; then
16591   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16592 echo "${ECHO_T}$GMSGFMT" >&6; }
16593 else
16594   { echo "$as_me:$LINENO: result: no" >&5
16595 echo "${ECHO_T}no" >&6; }
16596 fi
16597
16598
16599
16600
16601 # Prepare PATH_SEPARATOR.
16602 # The user is always right.
16603 if test "${PATH_SEPARATOR+set}" != set; then
16604   echo "#! /bin/sh" >conf$$.sh
16605   echo  "exit 0"   >>conf$$.sh
16606   chmod +x conf$$.sh
16607   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16608     PATH_SEPARATOR=';'
16609   else
16610     PATH_SEPARATOR=:
16611   fi
16612   rm -f conf$$.sh
16613 fi
16614
16615 # Find out how to test for executable files. Don't use a zero-byte file,
16616 # as systems may use methods other than mode bits to determine executability.
16617 cat >conf$$.file <<_ASEOF
16618 #! /bin/sh
16619 exit 0
16620 _ASEOF
16621 chmod +x conf$$.file
16622 if test -x conf$$.file >/dev/null 2>&1; then
16623   ac_executable_p="test -x"
16624 else
16625   ac_executable_p="test -f"
16626 fi
16627 rm -f conf$$.file
16628
16629 # Extract the first word of "xgettext", so it can be a program name with args.
16630 set dummy xgettext; ac_word=$2
16631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16633 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16634   echo $ECHO_N "(cached) $ECHO_C" >&6
16635 else
16636   case "$XGETTEXT" in
16637   [\\/]* | ?:[\\/]*)
16638     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16639     ;;
16640   *)
16641     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16642     for ac_dir in $PATH; do
16643       IFS="$ac_save_IFS"
16644       test -z "$ac_dir" && ac_dir=.
16645       for ac_exec_ext in '' $ac_executable_extensions; do
16646         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16647           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16648           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16649      (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
16650             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16651             break 2
16652           fi
16653         fi
16654       done
16655     done
16656     IFS="$ac_save_IFS"
16657   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16658     ;;
16659 esac
16660 fi
16661 XGETTEXT="$ac_cv_path_XGETTEXT"
16662 if test "$XGETTEXT" != ":"; then
16663   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16664 echo "${ECHO_T}$XGETTEXT" >&6; }
16665 else
16666   { echo "$as_me:$LINENO: result: no" >&5
16667 echo "${ECHO_T}no" >&6; }
16668 fi
16669
16670     rm -f messages.po
16671
16672
16673 # Prepare PATH_SEPARATOR.
16674 # The user is always right.
16675 if test "${PATH_SEPARATOR+set}" != set; then
16676   echo "#! /bin/sh" >conf$$.sh
16677   echo  "exit 0"   >>conf$$.sh
16678   chmod +x conf$$.sh
16679   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16680     PATH_SEPARATOR=';'
16681   else
16682     PATH_SEPARATOR=:
16683   fi
16684   rm -f conf$$.sh
16685 fi
16686
16687 # Find out how to test for executable files. Don't use a zero-byte file,
16688 # as systems may use methods other than mode bits to determine executability.
16689 cat >conf$$.file <<_ASEOF
16690 #! /bin/sh
16691 exit 0
16692 _ASEOF
16693 chmod +x conf$$.file
16694 if test -x conf$$.file >/dev/null 2>&1; then
16695   ac_executable_p="test -x"
16696 else
16697   ac_executable_p="test -f"
16698 fi
16699 rm -f conf$$.file
16700
16701 # Extract the first word of "msgmerge", so it can be a program name with args.
16702 set dummy msgmerge; ac_word=$2
16703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16705 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16706   echo $ECHO_N "(cached) $ECHO_C" >&6
16707 else
16708   case "$MSGMERGE" in
16709   [\\/]* | ?:[\\/]*)
16710     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16711     ;;
16712   *)
16713     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16714     for ac_dir in $PATH; do
16715       IFS="$ac_save_IFS"
16716       test -z "$ac_dir" && ac_dir=.
16717       for ac_exec_ext in '' $ac_executable_extensions; do
16718         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16719           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16720           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16721             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16722             break 2
16723           fi
16724         fi
16725       done
16726     done
16727     IFS="$ac_save_IFS"
16728   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16729     ;;
16730 esac
16731 fi
16732 MSGMERGE="$ac_cv_path_MSGMERGE"
16733 if test "$MSGMERGE" != ":"; then
16734   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16735 echo "${ECHO_T}$MSGMERGE" >&6; }
16736 else
16737   { echo "$as_me:$LINENO: result: no" >&5
16738 echo "${ECHO_T}no" >&6; }
16739 fi
16740
16741
16742       if test "$GMSGFMT" != ":"; then
16743             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16744        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16745       : ;
16746     else
16747       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16748       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16749 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16750       GMSGFMT=":"
16751     fi
16752   fi
16753
16754       if test "$XGETTEXT" != ":"; then
16755             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16756        (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
16757       : ;
16758     else
16759       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16760 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16761       XGETTEXT=":"
16762     fi
16763         rm -f messages.po
16764   fi
16765
16766   ac_config_commands="$ac_config_commands default-1"
16767
16768
16769
16770       if test "X$prefix" = "XNONE"; then
16771     acl_final_prefix="$ac_default_prefix"
16772   else
16773     acl_final_prefix="$prefix"
16774   fi
16775   if test "X$exec_prefix" = "XNONE"; then
16776     acl_final_exec_prefix='${prefix}'
16777   else
16778     acl_final_exec_prefix="$exec_prefix"
16779   fi
16780   acl_save_prefix="$prefix"
16781   prefix="$acl_final_prefix"
16782   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16783   prefix="$acl_save_prefix"
16784
16785
16786 # Check whether --with-gnu-ld was given.
16787 if test "${with_gnu_ld+set}" = set; then
16788   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16789 else
16790   with_gnu_ld=no
16791 fi
16792
16793 # Prepare PATH_SEPARATOR.
16794 # The user is always right.
16795 if test "${PATH_SEPARATOR+set}" != set; then
16796   echo "#! /bin/sh" >conf$$.sh
16797   echo  "exit 0"   >>conf$$.sh
16798   chmod +x conf$$.sh
16799   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16800     PATH_SEPARATOR=';'
16801   else
16802     PATH_SEPARATOR=:
16803   fi
16804   rm -f conf$$.sh
16805 fi
16806 ac_prog=ld
16807 if test "$GCC" = yes; then
16808   # Check if gcc -print-prog-name=ld gives a path.
16809   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16810 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16811   case $host in
16812   *-*-mingw*)
16813     # gcc leaves a trailing carriage return which upsets mingw
16814     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16815   *)
16816     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16817   esac
16818   case $ac_prog in
16819     # Accept absolute paths.
16820     [\\/]* | [A-Za-z]:[\\/]*)
16821       re_direlt='/[^/][^/]*/\.\./'
16822       # Canonicalize the path of ld
16823       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16824       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16825         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16826       done
16827       test -z "$LD" && LD="$ac_prog"
16828       ;;
16829   "")
16830     # If it fails, then pretend we aren't using GCC.
16831     ac_prog=ld
16832     ;;
16833   *)
16834     # If it is relative, then search for the first ld in PATH.
16835     with_gnu_ld=unknown
16836     ;;
16837   esac
16838 elif test "$with_gnu_ld" = yes; then
16839   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16840 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16841 else
16842   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16843 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16844 fi
16845 if test "${acl_cv_path_LD+set}" = set; then
16846   echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848   if test -z "$LD"; then
16849   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16850   for ac_dir in $PATH; do
16851     test -z "$ac_dir" && ac_dir=.
16852     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16853       acl_cv_path_LD="$ac_dir/$ac_prog"
16854       # Check to see if the program is GNU ld.  I'd rather use --version,
16855       # but apparently some GNU ld's only accept -v.
16856       # Break only if it was the GNU/non-GNU ld that we prefer.
16857       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16858       *GNU* | *'with BFD'*)
16859         test "$with_gnu_ld" != no && break ;;
16860       *)
16861         test "$with_gnu_ld" != yes && break ;;
16862       esac
16863     fi
16864   done
16865   IFS="$ac_save_ifs"
16866 else
16867   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16868 fi
16869 fi
16870
16871 LD="$acl_cv_path_LD"
16872 if test -n "$LD"; then
16873   { echo "$as_me:$LINENO: result: $LD" >&5
16874 echo "${ECHO_T}$LD" >&6; }
16875 else
16876   { echo "$as_me:$LINENO: result: no" >&5
16877 echo "${ECHO_T}no" >&6; }
16878 fi
16879 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16880 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16881    { (exit 1); exit 1; }; }
16882 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16883 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16884 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16885   echo $ECHO_N "(cached) $ECHO_C" >&6
16886 else
16887   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16888 case `$LD -v 2>&1 </dev/null` in
16889 *GNU* | *'with BFD'*)
16890   acl_cv_prog_gnu_ld=yes ;;
16891 *)
16892   acl_cv_prog_gnu_ld=no ;;
16893 esac
16894 fi
16895 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16896 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16897 with_gnu_ld=$acl_cv_prog_gnu_ld
16898
16899
16900
16901
16902                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16903 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16904 if test "${acl_cv_rpath+set}" = set; then
16905   echo $ECHO_N "(cached) $ECHO_C" >&6
16906 else
16907
16908     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16909     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16910     . ./conftest.sh
16911     rm -f ./conftest.sh
16912     acl_cv_rpath=done
16913
16914 fi
16915 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16916 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16917   wl="$acl_cv_wl"
16918   libext="$acl_cv_libext"
16919   shlibext="$acl_cv_shlibext"
16920   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16921   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16922   hardcode_direct="$acl_cv_hardcode_direct"
16923   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16924     # Check whether --enable-rpath was given.
16925 if test "${enable_rpath+set}" = set; then
16926   enableval=$enable_rpath; :
16927 else
16928   enable_rpath=yes
16929 fi
16930
16931
16932
16933
16934
16935
16936
16937
16938     use_additional=yes
16939
16940   acl_save_prefix="$prefix"
16941   prefix="$acl_final_prefix"
16942   acl_save_exec_prefix="$exec_prefix"
16943   exec_prefix="$acl_final_exec_prefix"
16944
16945     eval additional_includedir=\"$includedir\"
16946     eval additional_libdir=\"$libdir\"
16947
16948   exec_prefix="$acl_save_exec_prefix"
16949   prefix="$acl_save_prefix"
16950
16951
16952 # Check whether --with-libiconv-prefix was given.
16953 if test "${with_libiconv_prefix+set}" = set; then
16954   withval=$with_libiconv_prefix;
16955     if test "X$withval" = "Xno"; then
16956       use_additional=no
16957     else
16958       if test "X$withval" = "X"; then
16959
16960   acl_save_prefix="$prefix"
16961   prefix="$acl_final_prefix"
16962   acl_save_exec_prefix="$exec_prefix"
16963   exec_prefix="$acl_final_exec_prefix"
16964
16965           eval additional_includedir=\"$includedir\"
16966           eval additional_libdir=\"$libdir\"
16967
16968   exec_prefix="$acl_save_exec_prefix"
16969   prefix="$acl_save_prefix"
16970
16971       else
16972         additional_includedir="$withval/include"
16973         additional_libdir="$withval/lib"
16974       fi
16975     fi
16976
16977 fi
16978
16979       LIBICONV=
16980   LTLIBICONV=
16981   INCICONV=
16982   rpathdirs=
16983   ltrpathdirs=
16984   names_already_handled=
16985   names_next_round='iconv '
16986   while test -n "$names_next_round"; do
16987     names_this_round="$names_next_round"
16988     names_next_round=
16989     for name in $names_this_round; do
16990       already_handled=
16991       for n in $names_already_handled; do
16992         if test "$n" = "$name"; then
16993           already_handled=yes
16994           break
16995         fi
16996       done
16997       if test -z "$already_handled"; then
16998         names_already_handled="$names_already_handled $name"
16999                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17000         eval value=\"\$HAVE_LIB$uppername\"
17001         if test -n "$value"; then
17002           if test "$value" = yes; then
17003             eval value=\"\$LIB$uppername\"
17004             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17005             eval value=\"\$LTLIB$uppername\"
17006             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17007           else
17008                                     :
17009           fi
17010         else
17011                               found_dir=
17012           found_la=
17013           found_so=
17014           found_a=
17015           if test $use_additional = yes; then
17016             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17017               found_dir="$additional_libdir"
17018               found_so="$additional_libdir/lib$name.$shlibext"
17019               if test -f "$additional_libdir/lib$name.la"; then
17020                 found_la="$additional_libdir/lib$name.la"
17021               fi
17022             else
17023               if test -f "$additional_libdir/lib$name.$libext"; then
17024                 found_dir="$additional_libdir"
17025                 found_a="$additional_libdir/lib$name.$libext"
17026                 if test -f "$additional_libdir/lib$name.la"; then
17027                   found_la="$additional_libdir/lib$name.la"
17028                 fi
17029               fi
17030             fi
17031           fi
17032           if test "X$found_dir" = "X"; then
17033             for x in $LDFLAGS $LTLIBICONV; do
17034
17035   acl_save_prefix="$prefix"
17036   prefix="$acl_final_prefix"
17037   acl_save_exec_prefix="$exec_prefix"
17038   exec_prefix="$acl_final_exec_prefix"
17039   eval x=\"$x\"
17040   exec_prefix="$acl_save_exec_prefix"
17041   prefix="$acl_save_prefix"
17042
17043               case "$x" in
17044                 -L*)
17045                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17046                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17047                     found_dir="$dir"
17048                     found_so="$dir/lib$name.$shlibext"
17049                     if test -f "$dir/lib$name.la"; then
17050                       found_la="$dir/lib$name.la"
17051                     fi
17052                   else
17053                     if test -f "$dir/lib$name.$libext"; then
17054                       found_dir="$dir"
17055                       found_a="$dir/lib$name.$libext"
17056                       if test -f "$dir/lib$name.la"; then
17057                         found_la="$dir/lib$name.la"
17058                       fi
17059                     fi
17060                   fi
17061                   ;;
17062               esac
17063               if test "X$found_dir" != "X"; then
17064                 break
17065               fi
17066             done
17067           fi
17068           if test "X$found_dir" != "X"; then
17069                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17070             if test "X$found_so" != "X"; then
17071                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17072                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17073               else
17074                                                                                 haveit=
17075                 for x in $ltrpathdirs; do
17076                   if test "X$x" = "X$found_dir"; then
17077                     haveit=yes
17078                     break
17079                   fi
17080                 done
17081                 if test -z "$haveit"; then
17082                   ltrpathdirs="$ltrpathdirs $found_dir"
17083                 fi
17084                                 if test "$hardcode_direct" = yes; then
17085                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17086                 else
17087                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17088                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17089                                                             haveit=
17090                     for x in $rpathdirs; do
17091                       if test "X$x" = "X$found_dir"; then
17092                         haveit=yes
17093                         break
17094                       fi
17095                     done
17096                     if test -z "$haveit"; then
17097                       rpathdirs="$rpathdirs $found_dir"
17098                     fi
17099                   else
17100                                                                                 haveit=
17101                     for x in $LDFLAGS $LIBICONV; do
17102
17103   acl_save_prefix="$prefix"
17104   prefix="$acl_final_prefix"
17105   acl_save_exec_prefix="$exec_prefix"
17106   exec_prefix="$acl_final_exec_prefix"
17107   eval x=\"$x\"
17108   exec_prefix="$acl_save_exec_prefix"
17109   prefix="$acl_save_prefix"
17110
17111                       if test "X$x" = "X-L$found_dir"; then
17112                         haveit=yes
17113                         break
17114                       fi
17115                     done
17116                     if test -z "$haveit"; then
17117                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17118                     fi
17119                     if test "$hardcode_minus_L" != no; then
17120                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17121                     else
17122                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17123                     fi
17124                   fi
17125                 fi
17126               fi
17127             else
17128               if test "X$found_a" != "X"; then
17129                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17130               else
17131                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17132               fi
17133             fi
17134                         additional_includedir=
17135             case "$found_dir" in
17136               */lib | */lib/)
17137                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17138                 additional_includedir="$basedir/include"
17139                 ;;
17140             esac
17141             if test "X$additional_includedir" != "X"; then
17142                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17143                 haveit=
17144                 if test "X$additional_includedir" = "X/usr/local/include"; then
17145                   if test -n "$GCC"; then
17146                     case $host_os in
17147                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17148                     esac
17149                   fi
17150                 fi
17151                 if test -z "$haveit"; then
17152                   for x in $CPPFLAGS $INCICONV; do
17153
17154   acl_save_prefix="$prefix"
17155   prefix="$acl_final_prefix"
17156   acl_save_exec_prefix="$exec_prefix"
17157   exec_prefix="$acl_final_exec_prefix"
17158   eval x=\"$x\"
17159   exec_prefix="$acl_save_exec_prefix"
17160   prefix="$acl_save_prefix"
17161
17162                     if test "X$x" = "X-I$additional_includedir"; then
17163                       haveit=yes
17164                       break
17165                     fi
17166                   done
17167                   if test -z "$haveit"; then
17168                     if test -d "$additional_includedir"; then
17169                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17170                     fi
17171                   fi
17172                 fi
17173               fi
17174             fi
17175                         if test -n "$found_la"; then
17176                                                         save_libdir="$libdir"
17177               case "$found_la" in
17178                 */* | *\\*) . "$found_la" ;;
17179                 *) . "./$found_la" ;;
17180               esac
17181               libdir="$save_libdir"
17182                             for dep in $dependency_libs; do
17183                 case "$dep" in
17184                   -L*)
17185                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17186                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17187                       haveit=
17188                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17189                         if test -n "$GCC"; then
17190                           case $host_os in
17191                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17192                           esac
17193                         fi
17194                       fi
17195                       if test -z "$haveit"; then
17196                         haveit=
17197                         for x in $LDFLAGS $LIBICONV; do
17198
17199   acl_save_prefix="$prefix"
17200   prefix="$acl_final_prefix"
17201   acl_save_exec_prefix="$exec_prefix"
17202   exec_prefix="$acl_final_exec_prefix"
17203   eval x=\"$x\"
17204   exec_prefix="$acl_save_exec_prefix"
17205   prefix="$acl_save_prefix"
17206
17207                           if test "X$x" = "X-L$additional_libdir"; then
17208                             haveit=yes
17209                             break
17210                           fi
17211                         done
17212                         if test -z "$haveit"; then
17213                           if test -d "$additional_libdir"; then
17214                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17215                           fi
17216                         fi
17217                         haveit=
17218                         for x in $LDFLAGS $LTLIBICONV; do
17219
17220   acl_save_prefix="$prefix"
17221   prefix="$acl_final_prefix"
17222   acl_save_exec_prefix="$exec_prefix"
17223   exec_prefix="$acl_final_exec_prefix"
17224   eval x=\"$x\"
17225   exec_prefix="$acl_save_exec_prefix"
17226   prefix="$acl_save_prefix"
17227
17228                           if test "X$x" = "X-L$additional_libdir"; then
17229                             haveit=yes
17230                             break
17231                           fi
17232                         done
17233                         if test -z "$haveit"; then
17234                           if test -d "$additional_libdir"; then
17235                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17236                           fi
17237                         fi
17238                       fi
17239                     fi
17240                     ;;
17241                   -R*)
17242                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17243                     if test "$enable_rpath" != no; then
17244                                                                   haveit=
17245                       for x in $rpathdirs; do
17246                         if test "X$x" = "X$dir"; then
17247                           haveit=yes
17248                           break
17249                         fi
17250                       done
17251                       if test -z "$haveit"; then
17252                         rpathdirs="$rpathdirs $dir"
17253                       fi
17254                                                                   haveit=
17255                       for x in $ltrpathdirs; do
17256                         if test "X$x" = "X$dir"; then
17257                           haveit=yes
17258                           break
17259                         fi
17260                       done
17261                       if test -z "$haveit"; then
17262                         ltrpathdirs="$ltrpathdirs $dir"
17263                       fi
17264                     fi
17265                     ;;
17266                   -l*)
17267                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17268                     ;;
17269                   *.la)
17270                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17271                     ;;
17272                   *)
17273                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17274                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17275                     ;;
17276                 esac
17277               done
17278             fi
17279           else
17280                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17281             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17282           fi
17283         fi
17284       fi
17285     done
17286   done
17287   if test "X$rpathdirs" != "X"; then
17288     if test -n "$hardcode_libdir_separator"; then
17289                         alldirs=
17290       for found_dir in $rpathdirs; do
17291         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17292       done
17293             acl_save_libdir="$libdir"
17294       libdir="$alldirs"
17295       eval flag=\"$hardcode_libdir_flag_spec\"
17296       libdir="$acl_save_libdir"
17297       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17298     else
17299             for found_dir in $rpathdirs; do
17300         acl_save_libdir="$libdir"
17301         libdir="$found_dir"
17302         eval flag=\"$hardcode_libdir_flag_spec\"
17303         libdir="$acl_save_libdir"
17304         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17305       done
17306     fi
17307   fi
17308   if test "X$ltrpathdirs" != "X"; then
17309             for found_dir in $ltrpathdirs; do
17310       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17311     done
17312   fi
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17332 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17333 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17334   echo $ECHO_N "(cached) $ECHO_C" >&6
17335 else
17336   gt_save_CPPFLAGS="$CPPFLAGS"
17337      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17338      gt_save_LIBS="$LIBS"
17339      LIBS="$LIBS -framework CoreFoundation"
17340      cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 #include <CFPreferences.h>
17347 int
17348 main ()
17349 {
17350 CFPreferencesCopyAppValue(NULL, NULL)
17351   ;
17352   return 0;
17353 }
17354 _ACEOF
17355 rm -f conftest.$ac_objext conftest$ac_exeext
17356 if { (ac_try="$ac_link"
17357 case "(($ac_try" in
17358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359   *) ac_try_echo=$ac_try;;
17360 esac
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362   (eval "$ac_link") 2>conftest.er1
17363   ac_status=$?
17364   grep -v '^ *+' conftest.er1 >conftest.err
17365   rm -f conftest.er1
17366   cat conftest.err >&5
17367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368   (exit $ac_status); } && {
17369          test -z "$ac_c_werror_flag" ||
17370          test ! -s conftest.err
17371        } && test -s conftest$ac_exeext &&
17372        $as_test_x conftest$ac_exeext; then
17373   gt_cv_func_CFPreferencesCopyAppValue=yes
17374 else
17375   echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17377
17378         gt_cv_func_CFPreferencesCopyAppValue=no
17379 fi
17380
17381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17382       conftest$ac_exeext conftest.$ac_ext
17383      CPPFLAGS="$gt_save_CPPFLAGS"
17384      LIBS="$gt_save_LIBS"
17385 fi
17386 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17387 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17388   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17389
17390 cat >>confdefs.h <<\_ACEOF
17391 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17392 _ACEOF
17393
17394   fi
17395     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17396 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17397 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17398   echo $ECHO_N "(cached) $ECHO_C" >&6
17399 else
17400   gt_save_CPPFLAGS="$CPPFLAGS"
17401      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17402      gt_save_LIBS="$LIBS"
17403      LIBS="$LIBS -framework CoreFoundation"
17404      cat >conftest.$ac_ext <<_ACEOF
17405 /* confdefs.h.  */
17406 _ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h.  */
17410 #include <CFLocale.h>
17411 int
17412 main ()
17413 {
17414 CFLocaleCopyCurrent();
17415   ;
17416   return 0;
17417 }
17418 _ACEOF
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (ac_try="$ac_link"
17421 case "(($ac_try" in
17422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423   *) ac_try_echo=$ac_try;;
17424 esac
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426   (eval "$ac_link") 2>conftest.er1
17427   ac_status=$?
17428   grep -v '^ *+' conftest.er1 >conftest.err
17429   rm -f conftest.er1
17430   cat conftest.err >&5
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); } && {
17433          test -z "$ac_c_werror_flag" ||
17434          test ! -s conftest.err
17435        } && test -s conftest$ac_exeext &&
17436        $as_test_x conftest$ac_exeext; then
17437   gt_cv_func_CFLocaleCopyCurrent=yes
17438 else
17439   echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442         gt_cv_func_CFLocaleCopyCurrent=no
17443 fi
17444
17445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17446       conftest$ac_exeext conftest.$ac_ext
17447      CPPFLAGS="$gt_save_CPPFLAGS"
17448      LIBS="$gt_save_LIBS"
17449 fi
17450 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17451 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17452   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17453
17454 cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_CFLOCALECOPYCURRENT 1
17456 _ACEOF
17457
17458   fi
17459   INTL_MACOSX_LIBS=
17460   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17461     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17462   fi
17463
17464
17465
17466
17467   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17468 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17469     # Check whether --enable-nls was given.
17470 if test "${enable_nls+set}" = set; then
17471   enableval=$enable_nls; USE_NLS=$enableval
17472 else
17473   USE_NLS=yes
17474 fi
17475
17476   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17477 echo "${ECHO_T}$USE_NLS" >&6; }
17478
17479
17480
17481
17482   LIBINTL=
17483   LTLIBINTL=
17484   POSUB=
17485
17486     if test "$USE_NLS" = "yes"; then
17487     gt_use_preinstalled_gnugettext=no
17488
17489
17490
17491
17492
17493
17494         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17495 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17496 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17497   echo $ECHO_N "(cached) $ECHO_C" >&6
17498 else
17499   cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h.  */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h.  */
17505 #include <libintl.h>
17506 extern int _nl_msg_cat_cntr;
17507 extern int *_nl_domain_bindings;
17508 int
17509 main ()
17510 {
17511 bindtextdomain ("", "");
17512 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17513   ;
17514   return 0;
17515 }
17516 _ACEOF
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (ac_try="$ac_link"
17519 case "(($ac_try" in
17520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521   *) ac_try_echo=$ac_try;;
17522 esac
17523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524   (eval "$ac_link") 2>conftest.er1
17525   ac_status=$?
17526   grep -v '^ *+' conftest.er1 >conftest.err
17527   rm -f conftest.er1
17528   cat conftest.err >&5
17529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); } && {
17531          test -z "$ac_c_werror_flag" ||
17532          test ! -s conftest.err
17533        } && test -s conftest$ac_exeext &&
17534        $as_test_x conftest$ac_exeext; then
17535   gt_cv_func_gnugettext1_libc=yes
17536 else
17537   echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17539
17540         gt_cv_func_gnugettext1_libc=no
17541 fi
17542
17543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17544       conftest$ac_exeext conftest.$ac_ext
17545 fi
17546 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17547 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17548
17549         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17550
17551
17552
17553
17554
17555           am_save_CPPFLAGS="$CPPFLAGS"
17556
17557   for element in $INCICONV; do
17558     haveit=
17559     for x in $CPPFLAGS; do
17560
17561   acl_save_prefix="$prefix"
17562   prefix="$acl_final_prefix"
17563   acl_save_exec_prefix="$exec_prefix"
17564   exec_prefix="$acl_final_exec_prefix"
17565   eval x=\"$x\"
17566   exec_prefix="$acl_save_exec_prefix"
17567   prefix="$acl_save_prefix"
17568
17569       if test "X$x" = "X$element"; then
17570         haveit=yes
17571         break
17572       fi
17573     done
17574     if test -z "$haveit"; then
17575       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17576     fi
17577   done
17578
17579
17580   { echo "$as_me:$LINENO: checking for iconv" >&5
17581 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17582 if test "${am_cv_func_iconv+set}" = set; then
17583   echo $ECHO_N "(cached) $ECHO_C" >&6
17584 else
17585
17586     am_cv_func_iconv="no, consider installing GNU libiconv"
17587     am_cv_lib_iconv=no
17588     cat >conftest.$ac_ext <<_ACEOF
17589 /* confdefs.h.  */
17590 _ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h.  */
17594 #include <stdlib.h>
17595 #include <iconv.h>
17596 int
17597 main ()
17598 {
17599 iconv_t cd = iconv_open("","");
17600        iconv(cd,NULL,NULL,NULL,NULL);
17601        iconv_close(cd);
17602   ;
17603   return 0;
17604 }
17605 _ACEOF
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610   *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613   (eval "$ac_link") 2>conftest.er1
17614   ac_status=$?
17615   grep -v '^ *+' conftest.er1 >conftest.err
17616   rm -f conftest.er1
17617   cat conftest.err >&5
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); } && {
17620          test -z "$ac_c_werror_flag" ||
17621          test ! -s conftest.err
17622        } && test -s conftest$ac_exeext &&
17623        $as_test_x conftest$ac_exeext; then
17624   am_cv_func_iconv=yes
17625 else
17626   echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17628
17629
17630 fi
17631
17632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633       conftest$ac_exeext conftest.$ac_ext
17634     if test "$am_cv_func_iconv" != yes; then
17635       am_save_LIBS="$LIBS"
17636       LIBS="$LIBS $LIBICONV"
17637       cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h.  */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h.  */
17643 #include <stdlib.h>
17644 #include <iconv.h>
17645 int
17646 main ()
17647 {
17648 iconv_t cd = iconv_open("","");
17649          iconv(cd,NULL,NULL,NULL,NULL);
17650          iconv_close(cd);
17651   ;
17652   return 0;
17653 }
17654 _ACEOF
17655 rm -f conftest.$ac_objext conftest$ac_exeext
17656 if { (ac_try="$ac_link"
17657 case "(($ac_try" in
17658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659   *) ac_try_echo=$ac_try;;
17660 esac
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662   (eval "$ac_link") 2>conftest.er1
17663   ac_status=$?
17664   grep -v '^ *+' conftest.er1 >conftest.err
17665   rm -f conftest.er1
17666   cat conftest.err >&5
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); } && {
17669          test -z "$ac_c_werror_flag" ||
17670          test ! -s conftest.err
17671        } && test -s conftest$ac_exeext &&
17672        $as_test_x conftest$ac_exeext; then
17673   am_cv_lib_iconv=yes
17674         am_cv_func_iconv=yes
17675 else
17676   echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17678
17679
17680 fi
17681
17682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17683       conftest$ac_exeext conftest.$ac_ext
17684       LIBS="$am_save_LIBS"
17685     fi
17686
17687 fi
17688 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17689 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17690   if test "$am_cv_func_iconv" = yes; then
17691
17692 cat >>confdefs.h <<\_ACEOF
17693 #define HAVE_ICONV 1
17694 _ACEOF
17695
17696   fi
17697   if test "$am_cv_lib_iconv" = yes; then
17698     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17699 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17700     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17701 echo "${ECHO_T}$LIBICONV" >&6; }
17702   else
17703             CPPFLAGS="$am_save_CPPFLAGS"
17704     LIBICONV=
17705     LTLIBICONV=
17706   fi
17707
17708
17709
17710
17711
17712
17713     use_additional=yes
17714
17715   acl_save_prefix="$prefix"
17716   prefix="$acl_final_prefix"
17717   acl_save_exec_prefix="$exec_prefix"
17718   exec_prefix="$acl_final_exec_prefix"
17719
17720     eval additional_includedir=\"$includedir\"
17721     eval additional_libdir=\"$libdir\"
17722
17723   exec_prefix="$acl_save_exec_prefix"
17724   prefix="$acl_save_prefix"
17725
17726
17727 # Check whether --with-libintl-prefix was given.
17728 if test "${with_libintl_prefix+set}" = set; then
17729   withval=$with_libintl_prefix;
17730     if test "X$withval" = "Xno"; then
17731       use_additional=no
17732     else
17733       if test "X$withval" = "X"; then
17734
17735   acl_save_prefix="$prefix"
17736   prefix="$acl_final_prefix"
17737   acl_save_exec_prefix="$exec_prefix"
17738   exec_prefix="$acl_final_exec_prefix"
17739
17740           eval additional_includedir=\"$includedir\"
17741           eval additional_libdir=\"$libdir\"
17742
17743   exec_prefix="$acl_save_exec_prefix"
17744   prefix="$acl_save_prefix"
17745
17746       else
17747         additional_includedir="$withval/include"
17748         additional_libdir="$withval/lib"
17749       fi
17750     fi
17751
17752 fi
17753
17754       LIBINTL=
17755   LTLIBINTL=
17756   INCINTL=
17757   rpathdirs=
17758   ltrpathdirs=
17759   names_already_handled=
17760   names_next_round='intl '
17761   while test -n "$names_next_round"; do
17762     names_this_round="$names_next_round"
17763     names_next_round=
17764     for name in $names_this_round; do
17765       already_handled=
17766       for n in $names_already_handled; do
17767         if test "$n" = "$name"; then
17768           already_handled=yes
17769           break
17770         fi
17771       done
17772       if test -z "$already_handled"; then
17773         names_already_handled="$names_already_handled $name"
17774                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17775         eval value=\"\$HAVE_LIB$uppername\"
17776         if test -n "$value"; then
17777           if test "$value" = yes; then
17778             eval value=\"\$LIB$uppername\"
17779             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17780             eval value=\"\$LTLIB$uppername\"
17781             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17782           else
17783                                     :
17784           fi
17785         else
17786                               found_dir=
17787           found_la=
17788           found_so=
17789           found_a=
17790           if test $use_additional = yes; then
17791             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17792               found_dir="$additional_libdir"
17793               found_so="$additional_libdir/lib$name.$shlibext"
17794               if test -f "$additional_libdir/lib$name.la"; then
17795                 found_la="$additional_libdir/lib$name.la"
17796               fi
17797             else
17798               if test -f "$additional_libdir/lib$name.$libext"; then
17799                 found_dir="$additional_libdir"
17800                 found_a="$additional_libdir/lib$name.$libext"
17801                 if test -f "$additional_libdir/lib$name.la"; then
17802                   found_la="$additional_libdir/lib$name.la"
17803                 fi
17804               fi
17805             fi
17806           fi
17807           if test "X$found_dir" = "X"; then
17808             for x in $LDFLAGS $LTLIBINTL; do
17809
17810   acl_save_prefix="$prefix"
17811   prefix="$acl_final_prefix"
17812   acl_save_exec_prefix="$exec_prefix"
17813   exec_prefix="$acl_final_exec_prefix"
17814   eval x=\"$x\"
17815   exec_prefix="$acl_save_exec_prefix"
17816   prefix="$acl_save_prefix"
17817
17818               case "$x" in
17819                 -L*)
17820                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17821                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17822                     found_dir="$dir"
17823                     found_so="$dir/lib$name.$shlibext"
17824                     if test -f "$dir/lib$name.la"; then
17825                       found_la="$dir/lib$name.la"
17826                     fi
17827                   else
17828                     if test -f "$dir/lib$name.$libext"; then
17829                       found_dir="$dir"
17830                       found_a="$dir/lib$name.$libext"
17831                       if test -f "$dir/lib$name.la"; then
17832                         found_la="$dir/lib$name.la"
17833                       fi
17834                     fi
17835                   fi
17836                   ;;
17837               esac
17838               if test "X$found_dir" != "X"; then
17839                 break
17840               fi
17841             done
17842           fi
17843           if test "X$found_dir" != "X"; then
17844                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17845             if test "X$found_so" != "X"; then
17846                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17847                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17848               else
17849                                                                                 haveit=
17850                 for x in $ltrpathdirs; do
17851                   if test "X$x" = "X$found_dir"; then
17852                     haveit=yes
17853                     break
17854                   fi
17855                 done
17856                 if test -z "$haveit"; then
17857                   ltrpathdirs="$ltrpathdirs $found_dir"
17858                 fi
17859                                 if test "$hardcode_direct" = yes; then
17860                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17861                 else
17862                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17863                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17864                                                             haveit=
17865                     for x in $rpathdirs; do
17866                       if test "X$x" = "X$found_dir"; then
17867                         haveit=yes
17868                         break
17869                       fi
17870                     done
17871                     if test -z "$haveit"; then
17872                       rpathdirs="$rpathdirs $found_dir"
17873                     fi
17874                   else
17875                                                                                 haveit=
17876                     for x in $LDFLAGS $LIBINTL; do
17877
17878   acl_save_prefix="$prefix"
17879   prefix="$acl_final_prefix"
17880   acl_save_exec_prefix="$exec_prefix"
17881   exec_prefix="$acl_final_exec_prefix"
17882   eval x=\"$x\"
17883   exec_prefix="$acl_save_exec_prefix"
17884   prefix="$acl_save_prefix"
17885
17886                       if test "X$x" = "X-L$found_dir"; then
17887                         haveit=yes
17888                         break
17889                       fi
17890                     done
17891                     if test -z "$haveit"; then
17892                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17893                     fi
17894                     if test "$hardcode_minus_L" != no; then
17895                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17896                     else
17897                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17898                     fi
17899                   fi
17900                 fi
17901               fi
17902             else
17903               if test "X$found_a" != "X"; then
17904                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17905               else
17906                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17907               fi
17908             fi
17909                         additional_includedir=
17910             case "$found_dir" in
17911               */lib | */lib/)
17912                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17913                 additional_includedir="$basedir/include"
17914                 ;;
17915             esac
17916             if test "X$additional_includedir" != "X"; then
17917                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17918                 haveit=
17919                 if test "X$additional_includedir" = "X/usr/local/include"; then
17920                   if test -n "$GCC"; then
17921                     case $host_os in
17922                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17923                     esac
17924                   fi
17925                 fi
17926                 if test -z "$haveit"; then
17927                   for x in $CPPFLAGS $INCINTL; do
17928
17929   acl_save_prefix="$prefix"
17930   prefix="$acl_final_prefix"
17931   acl_save_exec_prefix="$exec_prefix"
17932   exec_prefix="$acl_final_exec_prefix"
17933   eval x=\"$x\"
17934   exec_prefix="$acl_save_exec_prefix"
17935   prefix="$acl_save_prefix"
17936
17937                     if test "X$x" = "X-I$additional_includedir"; then
17938                       haveit=yes
17939                       break
17940                     fi
17941                   done
17942                   if test -z "$haveit"; then
17943                     if test -d "$additional_includedir"; then
17944                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17945                     fi
17946                   fi
17947                 fi
17948               fi
17949             fi
17950                         if test -n "$found_la"; then
17951                                                         save_libdir="$libdir"
17952               case "$found_la" in
17953                 */* | *\\*) . "$found_la" ;;
17954                 *) . "./$found_la" ;;
17955               esac
17956               libdir="$save_libdir"
17957                             for dep in $dependency_libs; do
17958                 case "$dep" in
17959                   -L*)
17960                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17961                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17962                       haveit=
17963                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17964                         if test -n "$GCC"; then
17965                           case $host_os in
17966                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17967                           esac
17968                         fi
17969                       fi
17970                       if test -z "$haveit"; then
17971                         haveit=
17972                         for x in $LDFLAGS $LIBINTL; do
17973
17974   acl_save_prefix="$prefix"
17975   prefix="$acl_final_prefix"
17976   acl_save_exec_prefix="$exec_prefix"
17977   exec_prefix="$acl_final_exec_prefix"
17978   eval x=\"$x\"
17979   exec_prefix="$acl_save_exec_prefix"
17980   prefix="$acl_save_prefix"
17981
17982                           if test "X$x" = "X-L$additional_libdir"; then
17983                             haveit=yes
17984                             break
17985                           fi
17986                         done
17987                         if test -z "$haveit"; then
17988                           if test -d "$additional_libdir"; then
17989                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17990                           fi
17991                         fi
17992                         haveit=
17993                         for x in $LDFLAGS $LTLIBINTL; do
17994
17995   acl_save_prefix="$prefix"
17996   prefix="$acl_final_prefix"
17997   acl_save_exec_prefix="$exec_prefix"
17998   exec_prefix="$acl_final_exec_prefix"
17999   eval x=\"$x\"
18000   exec_prefix="$acl_save_exec_prefix"
18001   prefix="$acl_save_prefix"
18002
18003                           if test "X$x" = "X-L$additional_libdir"; then
18004                             haveit=yes
18005                             break
18006                           fi
18007                         done
18008                         if test -z "$haveit"; then
18009                           if test -d "$additional_libdir"; then
18010                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18011                           fi
18012                         fi
18013                       fi
18014                     fi
18015                     ;;
18016                   -R*)
18017                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18018                     if test "$enable_rpath" != no; then
18019                                                                   haveit=
18020                       for x in $rpathdirs; do
18021                         if test "X$x" = "X$dir"; then
18022                           haveit=yes
18023                           break
18024                         fi
18025                       done
18026                       if test -z "$haveit"; then
18027                         rpathdirs="$rpathdirs $dir"
18028                       fi
18029                                                                   haveit=
18030                       for x in $ltrpathdirs; do
18031                         if test "X$x" = "X$dir"; then
18032                           haveit=yes
18033                           break
18034                         fi
18035                       done
18036                       if test -z "$haveit"; then
18037                         ltrpathdirs="$ltrpathdirs $dir"
18038                       fi
18039                     fi
18040                     ;;
18041                   -l*)
18042                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18043                     ;;
18044                   *.la)
18045                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18046                     ;;
18047                   *)
18048                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18049                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18050                     ;;
18051                 esac
18052               done
18053             fi
18054           else
18055                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18056             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18057           fi
18058         fi
18059       fi
18060     done
18061   done
18062   if test "X$rpathdirs" != "X"; then
18063     if test -n "$hardcode_libdir_separator"; then
18064                         alldirs=
18065       for found_dir in $rpathdirs; do
18066         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18067       done
18068             acl_save_libdir="$libdir"
18069       libdir="$alldirs"
18070       eval flag=\"$hardcode_libdir_flag_spec\"
18071       libdir="$acl_save_libdir"
18072       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18073     else
18074             for found_dir in $rpathdirs; do
18075         acl_save_libdir="$libdir"
18076         libdir="$found_dir"
18077         eval flag=\"$hardcode_libdir_flag_spec\"
18078         libdir="$acl_save_libdir"
18079         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18080       done
18081     fi
18082   fi
18083   if test "X$ltrpathdirs" != "X"; then
18084             for found_dir in $ltrpathdirs; do
18085       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18086     done
18087   fi
18088
18089           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18090 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18091 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18092   echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094   gt_save_CPPFLAGS="$CPPFLAGS"
18095             CPPFLAGS="$CPPFLAGS $INCINTL"
18096             gt_save_LIBS="$LIBS"
18097             LIBS="$LIBS $LIBINTL"
18098                         cat >conftest.$ac_ext <<_ACEOF
18099 /* confdefs.h.  */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h.  */
18104 #include <libintl.h>
18105 extern int _nl_msg_cat_cntr;
18106 extern
18107 #ifdef __cplusplus
18108 "C"
18109 #endif
18110 const char *_nl_expand_alias (const char *);
18111 int
18112 main ()
18113 {
18114 bindtextdomain ("", "");
18115 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (ac_try="$ac_link"
18122 case "(($ac_try" in
18123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124   *) ac_try_echo=$ac_try;;
18125 esac
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127   (eval "$ac_link") 2>conftest.er1
18128   ac_status=$?
18129   grep -v '^ *+' conftest.er1 >conftest.err
18130   rm -f conftest.er1
18131   cat conftest.err >&5
18132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); } && {
18134          test -z "$ac_c_werror_flag" ||
18135          test ! -s conftest.err
18136        } && test -s conftest$ac_exeext &&
18137        $as_test_x conftest$ac_exeext; then
18138   gt_cv_func_gnugettext1_libintl=yes
18139 else
18140   echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143         gt_cv_func_gnugettext1_libintl=no
18144 fi
18145
18146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18147       conftest$ac_exeext conftest.$ac_ext
18148                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18149               LIBS="$LIBS $LIBICONV"
18150               cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h.  */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h.  */
18156 #include <libintl.h>
18157 extern int _nl_msg_cat_cntr;
18158 extern
18159 #ifdef __cplusplus
18160 "C"
18161 #endif
18162 const char *_nl_expand_alias (const char *);
18163 int
18164 main ()
18165 {
18166 bindtextdomain ("", "");
18167 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18168   ;
18169   return 0;
18170 }
18171 _ACEOF
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176   *) ac_try_echo=$ac_try;;
18177 esac
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179   (eval "$ac_link") 2>conftest.er1
18180   ac_status=$?
18181   grep -v '^ *+' conftest.er1 >conftest.err
18182   rm -f conftest.er1
18183   cat conftest.err >&5
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); } && {
18186          test -z "$ac_c_werror_flag" ||
18187          test ! -s conftest.err
18188        } && test -s conftest$ac_exeext &&
18189        $as_test_x conftest$ac_exeext; then
18190   LIBINTL="$LIBINTL $LIBICONV"
18191                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18192                 gt_cv_func_gnugettext1_libintl=yes
18193
18194 else
18195   echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18197
18198
18199 fi
18200
18201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18202       conftest$ac_exeext conftest.$ac_ext
18203             fi
18204             CPPFLAGS="$gt_save_CPPFLAGS"
18205             LIBS="$gt_save_LIBS"
18206 fi
18207 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18208 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18209         fi
18210
18211                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18212            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18213                 && test "$PACKAGE" != gettext-runtime \
18214                 && test "$PACKAGE" != gettext-tools; }; then
18215           gt_use_preinstalled_gnugettext=yes
18216         else
18217                     LIBINTL=
18218           LTLIBINTL=
18219           INCINTL=
18220         fi
18221
18222
18223
18224     if test -n "$INTL_MACOSX_LIBS"; then
18225       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18226          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18227                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18228         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18229       fi
18230     fi
18231
18232     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18233        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18234
18235 cat >>confdefs.h <<\_ACEOF
18236 #define ENABLE_NLS 1
18237 _ACEOF
18238
18239     else
18240       USE_NLS=no
18241     fi
18242   fi
18243
18244   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18245 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18246   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18247 echo "${ECHO_T}$USE_NLS" >&6; }
18248   if test "$USE_NLS" = "yes"; then
18249     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18250 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18251     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18252       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18253         gt_source="external libintl"
18254       else
18255         gt_source="libc"
18256       fi
18257     else
18258       gt_source="included intl directory"
18259     fi
18260     { echo "$as_me:$LINENO: result: $gt_source" >&5
18261 echo "${ECHO_T}$gt_source" >&6; }
18262   fi
18263
18264   if test "$USE_NLS" = "yes"; then
18265
18266     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18267       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18268         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18269 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18270         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18271 echo "${ECHO_T}$LIBINTL" >&6; }
18272
18273   for element in $INCINTL; do
18274     haveit=
18275     for x in $CPPFLAGS; do
18276
18277   acl_save_prefix="$prefix"
18278   prefix="$acl_final_prefix"
18279   acl_save_exec_prefix="$exec_prefix"
18280   exec_prefix="$acl_final_exec_prefix"
18281   eval x=\"$x\"
18282   exec_prefix="$acl_save_exec_prefix"
18283   prefix="$acl_save_prefix"
18284
18285       if test "X$x" = "X$element"; then
18286         haveit=yes
18287         break
18288       fi
18289     done
18290     if test -z "$haveit"; then
18291       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18292     fi
18293   done
18294
18295       fi
18296
18297
18298 cat >>confdefs.h <<\_ACEOF
18299 #define HAVE_GETTEXT 1
18300 _ACEOF
18301
18302
18303 cat >>confdefs.h <<\_ACEOF
18304 #define HAVE_DCGETTEXT 1
18305 _ACEOF
18306
18307     fi
18308
18309         POSUB=po
18310   fi
18311
18312
18313
18314     INTLLIBS="$LIBINTL"
18315
18316
18317
18318
18319
18320
18321
18322 os_name=`uname -s 2>/dev/null`
18323 if test x${prefix} = xNONE ; then
18324    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18325       sysconfdir=/etc/bacula
18326    fi
18327
18328    if test `eval echo ${libdir}` = NONE/lib ; then
18329       case ${os_name} in
18330       Linux)
18331          os_processor=`uname -p 2>/dev/null`
18332          case ${os_processor} in
18333          x86_64)
18334             libdir=/usr/lib64
18335             ;;
18336          *)
18337             libdir=/usr/lib
18338             ;;
18339          esac
18340          ;;
18341       *)
18342          libdir=/usr/lib
18343          ;;
18344       esac
18345    fi
18346
18347    if test `eval echo ${includedir}` = NONE/include ; then
18348       includedir=/usr/include
18349    fi
18350
18351    if test `eval echo ${datarootdir}` = NONE/share ; then
18352       datarootdir=/usr/share
18353    fi
18354    prefix=
18355 fi
18356
18357 if test x${exec_prefix} = xNONE ; then
18358    exec_prefix=${prefix}
18359 fi
18360
18361 sysconfdir=`eval echo ${sysconfdir}`
18362 datarootdir=`eval echo ${datarootdir}`
18363 docdir=`eval echo ${docdir}`
18364 htmldir=`eval echo ${htmldir}`
18365 libdir=`eval echo ${libdir}`
18366 includedir=`eval echo ${includedir}`
18367 localedir=`eval echo ${datarootdir}/locale`
18368 cat >>confdefs.h <<_ACEOF
18369 #define SYSCONFDIR "$sysconfdir"
18370 _ACEOF
18371
18372 cat >>confdefs.h <<_ACEOF
18373 #define LOCALEDIR "$localedir"
18374 _ACEOF
18375
18376
18377 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18378    sbindir=${exec_prefix}/sbin
18379 fi
18380 sbindir=`eval echo ${sbindir}`
18381
18382 if test x$mandir = x'${prefix}/man' ; then
18383    mandir=/usr/share/man
18384 fi
18385
18386 if test x$htmldir = x${docdir} ; then
18387    htmldir=`eval echo ${docdir}bacula/html`
18388 fi
18389
18390 if test x$docdir = x'/usr/share/doc/' ; then
18391    docdir=`eval echo ${docdir}bacula`
18392 fi
18393
18394
18395 for ac_prog in msgfmt
18396 do
18397   # Extract the first word of "$ac_prog", so it can be a program name with args.
18398 set dummy $ac_prog; ac_word=$2
18399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18401 if test "${ac_cv_path_MSGFMT+set}" = set; then
18402   echo $ECHO_N "(cached) $ECHO_C" >&6
18403 else
18404   case $MSGFMT in
18405   [\\/]* | ?:[\\/]*)
18406   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18407   ;;
18408   *)
18409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18410 for as_dir in $PATH
18411 do
18412   IFS=$as_save_IFS
18413   test -z "$as_dir" && as_dir=.
18414   for ac_exec_ext in '' $ac_executable_extensions; do
18415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18416     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18418     break 2
18419   fi
18420 done
18421 done
18422 IFS=$as_save_IFS
18423
18424   ;;
18425 esac
18426 fi
18427 MSGFMT=$ac_cv_path_MSGFMT
18428 if test -n "$MSGFMT"; then
18429   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18430 echo "${ECHO_T}$MSGFMT" >&6; }
18431 else
18432   { echo "$as_me:$LINENO: result: no" >&5
18433 echo "${ECHO_T}no" >&6; }
18434 fi
18435
18436
18437   test -n "$MSGFMT" && break
18438 done
18439 test -n "$MSGFMT" || MSGFMT="no"
18440
18441 if test "$MSGFMT" = "no"
18442 then
18443    echo 'msgfmt program not found, disabling NLS !'
18444    USE_NLS=no
18445    USE_INCLUDED_LIBINTL=no
18446 #else
18447
18448     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18449 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18450 if test "${ac_cv_gnu_library_2+set}" = set; then
18451   echo $ECHO_N "(cached) $ECHO_C" >&6
18452 else
18453   cat >conftest.$ac_ext <<_ACEOF
18454 /* confdefs.h.  */
18455 _ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h.  */
18459
18460 #include <features.h>
18461 #ifdef __GNU_LIBRARY__
18462  #if (__GLIBC__ >= 2)
18463   Lucky GNU user
18464  #endif
18465 #endif
18466
18467 _ACEOF
18468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18469   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18470   ac_cv_gnu_library_2=yes
18471 else
18472   ac_cv_gnu_library_2=no
18473 fi
18474 rm -f conftest*
18475
18476
18477
18478 fi
18479 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18480 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18481
18482     GLIBC2="$ac_cv_gnu_library_2"
18483
18484
18485 if test -n "$ac_tool_prefix"; then
18486   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18490 if test "${ac_cv_prog_RANLIB+set}" = set; then
18491   echo $ECHO_N "(cached) $ECHO_C" >&6
18492 else
18493   if test -n "$RANLIB"; then
18494   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18495 else
18496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18497 for as_dir in $PATH
18498 do
18499   IFS=$as_save_IFS
18500   test -z "$as_dir" && as_dir=.
18501   for ac_exec_ext in '' $ac_executable_extensions; do
18502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18503     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18505     break 2
18506   fi
18507 done
18508 done
18509 IFS=$as_save_IFS
18510
18511 fi
18512 fi
18513 RANLIB=$ac_cv_prog_RANLIB
18514 if test -n "$RANLIB"; then
18515   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18516 echo "${ECHO_T}$RANLIB" >&6; }
18517 else
18518   { echo "$as_me:$LINENO: result: no" >&5
18519 echo "${ECHO_T}no" >&6; }
18520 fi
18521
18522
18523 fi
18524 if test -z "$ac_cv_prog_RANLIB"; then
18525   ac_ct_RANLIB=$RANLIB
18526   # Extract the first word of "ranlib", so it can be a program name with args.
18527 set dummy ranlib; ac_word=$2
18528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18530 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18531   echo $ECHO_N "(cached) $ECHO_C" >&6
18532 else
18533   if test -n "$ac_ct_RANLIB"; then
18534   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18535 else
18536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18537 for as_dir in $PATH
18538 do
18539   IFS=$as_save_IFS
18540   test -z "$as_dir" && as_dir=.
18541   for ac_exec_ext in '' $ac_executable_extensions; do
18542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18543     ac_cv_prog_ac_ct_RANLIB="ranlib"
18544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18545     break 2
18546   fi
18547 done
18548 done
18549 IFS=$as_save_IFS
18550
18551 fi
18552 fi
18553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18554 if test -n "$ac_ct_RANLIB"; then
18555   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18556 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18557 else
18558   { echo "$as_me:$LINENO: result: no" >&5
18559 echo "${ECHO_T}no" >&6; }
18560 fi
18561
18562   if test "x$ac_ct_RANLIB" = x; then
18563     RANLIB=":"
18564   else
18565     case $cross_compiling:$ac_tool_warned in
18566 yes:)
18567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18568 whose name does not start with the host triplet.  If you think this
18569 configuration is useful to you, please write to autoconf@gnu.org." >&5
18570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18571 whose name does not start with the host triplet.  If you think this
18572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18573 ac_tool_warned=yes ;;
18574 esac
18575     RANLIB=$ac_ct_RANLIB
18576   fi
18577 else
18578   RANLIB="$ac_cv_prog_RANLIB"
18579 fi
18580
18581
18582         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18583 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18584 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18585   echo $ECHO_N "(cached) $ECHO_C" >&6
18586 else
18587   ac_check_lib_save_LIBS=$LIBS
18588 LIBS="-lcposix  $LIBS"
18589 cat >conftest.$ac_ext <<_ACEOF
18590 /* confdefs.h.  */
18591 _ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h.  */
18595
18596 /* Override any GCC internal prototype to avoid an error.
18597    Use char because int might match the return type of a GCC
18598    builtin and then its argument prototype would still apply.  */
18599 #ifdef __cplusplus
18600 extern "C"
18601 #endif
18602 char strerror ();
18603 int
18604 main ()
18605 {
18606 return strerror ();
18607   ;
18608   return 0;
18609 }
18610 _ACEOF
18611 rm -f conftest.$ac_objext conftest$ac_exeext
18612 if { (ac_try="$ac_link"
18613 case "(($ac_try" in
18614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615   *) ac_try_echo=$ac_try;;
18616 esac
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618   (eval "$ac_link") 2>conftest.er1
18619   ac_status=$?
18620   grep -v '^ *+' conftest.er1 >conftest.err
18621   rm -f conftest.er1
18622   cat conftest.err >&5
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); } && {
18625          test -z "$ac_c_werror_flag" ||
18626          test ! -s conftest.err
18627        } && test -s conftest$ac_exeext &&
18628        $as_test_x conftest$ac_exeext; then
18629   ac_cv_lib_cposix_strerror=yes
18630 else
18631   echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18633
18634         ac_cv_lib_cposix_strerror=no
18635 fi
18636
18637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18638       conftest$ac_exeext conftest.$ac_ext
18639 LIBS=$ac_check_lib_save_LIBS
18640 fi
18641 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18642 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18643 if test $ac_cv_lib_cposix_strerror = yes; then
18644   LIBS="$LIBS -lcposix"
18645 fi
18646
18647
18648
18649 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18650 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18651 if test "${ac_cv_c_const+set}" = set; then
18652   echo $ECHO_N "(cached) $ECHO_C" >&6
18653 else
18654   cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h.  */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h.  */
18660
18661 int
18662 main ()
18663 {
18664 /* FIXME: Include the comments suggested by Paul. */
18665 #ifndef __cplusplus
18666   /* Ultrix mips cc rejects this.  */
18667   typedef int charset[2];
18668   const charset cs;
18669   /* SunOS 4.1.1 cc rejects this.  */
18670   char const *const *pcpcc;
18671   char **ppc;
18672   /* NEC SVR4.0.2 mips cc rejects this.  */
18673   struct point {int x, y;};
18674   static struct point const zero = {0,0};
18675   /* AIX XL C 1.02.0.0 rejects this.
18676      It does not let you subtract one const X* pointer from another in
18677      an arm of an if-expression whose if-part is not a constant
18678      expression */
18679   const char *g = "string";
18680   pcpcc = &g + (g ? g-g : 0);
18681   /* HPUX 7.0 cc rejects these. */
18682   ++pcpcc;
18683   ppc = (char**) pcpcc;
18684   pcpcc = (char const *const *) ppc;
18685   { /* SCO 3.2v4 cc rejects this.  */
18686     char *t;
18687     char const *s = 0 ? (char *) 0 : (char const *) 0;
18688
18689     *t++ = 0;
18690     if (s) return 0;
18691   }
18692   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18693     int x[] = {25, 17};
18694     const int *foo = &x[0];
18695     ++foo;
18696   }
18697   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18698     typedef const int *iptr;
18699     iptr p = 0;
18700     ++p;
18701   }
18702   { /* AIX XL C 1.02.0.0 rejects this saying
18703        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18704     struct s { int j; const int *ap[3]; };
18705     struct s *b; b->j = 5;
18706   }
18707   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18708     const int foo = 10;
18709     if (!foo) return 0;
18710   }
18711   return !cs[0] && !zero.x;
18712 #endif
18713
18714   ;
18715   return 0;
18716 }
18717 _ACEOF
18718 rm -f conftest.$ac_objext
18719 if { (ac_try="$ac_compile"
18720 case "(($ac_try" in
18721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722   *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725   (eval "$ac_compile") 2>conftest.er1
18726   ac_status=$?
18727   grep -v '^ *+' conftest.er1 >conftest.err
18728   rm -f conftest.er1
18729   cat conftest.err >&5
18730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731   (exit $ac_status); } && {
18732          test -z "$ac_c_werror_flag" ||
18733          test ! -s conftest.err
18734        } && test -s conftest.$ac_objext; then
18735   ac_cv_c_const=yes
18736 else
18737   echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740         ac_cv_c_const=no
18741 fi
18742
18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18744 fi
18745 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18746 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18747 if test $ac_cv_c_const = no; then
18748
18749 cat >>confdefs.h <<\_ACEOF
18750 #define const
18751 _ACEOF
18752
18753 fi
18754
18755
18756   { echo "$as_me:$LINENO: checking for signed" >&5
18757 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18758 if test "${bh_cv_c_signed+set}" = set; then
18759   echo $ECHO_N "(cached) $ECHO_C" >&6
18760 else
18761   cat >conftest.$ac_ext <<_ACEOF
18762 /* confdefs.h.  */
18763 _ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h.  */
18767
18768 int
18769 main ()
18770 {
18771 signed char x;
18772   ;
18773   return 0;
18774 }
18775 _ACEOF
18776 rm -f conftest.$ac_objext
18777 if { (ac_try="$ac_compile"
18778 case "(($ac_try" in
18779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780   *) ac_try_echo=$ac_try;;
18781 esac
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783   (eval "$ac_compile") 2>conftest.er1
18784   ac_status=$?
18785   grep -v '^ *+' conftest.er1 >conftest.err
18786   rm -f conftest.er1
18787   cat conftest.err >&5
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); } && {
18790          test -z "$ac_c_werror_flag" ||
18791          test ! -s conftest.err
18792        } && test -s conftest.$ac_objext; then
18793   bh_cv_c_signed=yes
18794 else
18795   echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18797
18798         bh_cv_c_signed=no
18799 fi
18800
18801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18802 fi
18803 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18804 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18805   if test $bh_cv_c_signed = no; then
18806
18807 cat >>confdefs.h <<\_ACEOF
18808 #define signed
18809 _ACEOF
18810
18811   fi
18812
18813 { echo "$as_me:$LINENO: checking for inline" >&5
18814 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18815 if test "${ac_cv_c_inline+set}" = set; then
18816   echo $ECHO_N "(cached) $ECHO_C" >&6
18817 else
18818   ac_cv_c_inline=no
18819 for ac_kw in inline __inline__ __inline; do
18820   cat >conftest.$ac_ext <<_ACEOF
18821 /* confdefs.h.  */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h.  */
18826 #ifndef __cplusplus
18827 typedef int foo_t;
18828 static $ac_kw foo_t static_foo () {return 0; }
18829 $ac_kw foo_t foo () {return 0; }
18830 #endif
18831
18832 _ACEOF
18833 rm -f conftest.$ac_objext
18834 if { (ac_try="$ac_compile"
18835 case "(($ac_try" in
18836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837   *) ac_try_echo=$ac_try;;
18838 esac
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840   (eval "$ac_compile") 2>conftest.er1
18841   ac_status=$?
18842   grep -v '^ *+' conftest.er1 >conftest.err
18843   rm -f conftest.er1
18844   cat conftest.err >&5
18845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846   (exit $ac_status); } && {
18847          test -z "$ac_c_werror_flag" ||
18848          test ! -s conftest.err
18849        } && test -s conftest.$ac_objext; then
18850   ac_cv_c_inline=$ac_kw
18851 else
18852   echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18854
18855
18856 fi
18857
18858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18859   test "$ac_cv_c_inline" != no && break
18860 done
18861
18862 fi
18863 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18864 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18865
18866
18867 case $ac_cv_c_inline in
18868   inline | yes) ;;
18869   *)
18870     case $ac_cv_c_inline in
18871       no) ac_val=;;
18872       *) ac_val=$ac_cv_c_inline;;
18873     esac
18874     cat >>confdefs.h <<_ACEOF
18875 #ifndef __cplusplus
18876 #define inline $ac_val
18877 #endif
18878 _ACEOF
18879     ;;
18880 esac
18881
18882 { echo "$as_me:$LINENO: checking for off_t" >&5
18883 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18884 if test "${ac_cv_type_off_t+set}" = set; then
18885   echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887   cat >conftest.$ac_ext <<_ACEOF
18888 /* confdefs.h.  */
18889 _ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h.  */
18893 $ac_includes_default
18894 typedef off_t ac__type_new_;
18895 int
18896 main ()
18897 {
18898 if ((ac__type_new_ *) 0)
18899   return 0;
18900 if (sizeof (ac__type_new_))
18901   return 0;
18902   ;
18903   return 0;
18904 }
18905 _ACEOF
18906 rm -f conftest.$ac_objext
18907 if { (ac_try="$ac_compile"
18908 case "(($ac_try" in
18909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910   *) ac_try_echo=$ac_try;;
18911 esac
18912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18913   (eval "$ac_compile") 2>conftest.er1
18914   ac_status=$?
18915   grep -v '^ *+' conftest.er1 >conftest.err
18916   rm -f conftest.er1
18917   cat conftest.err >&5
18918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919   (exit $ac_status); } && {
18920          test -z "$ac_c_werror_flag" ||
18921          test ! -s conftest.err
18922        } && test -s conftest.$ac_objext; then
18923   ac_cv_type_off_t=yes
18924 else
18925   echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18927
18928         ac_cv_type_off_t=no
18929 fi
18930
18931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18932 fi
18933 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18934 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18935 if test $ac_cv_type_off_t = yes; then
18936   :
18937 else
18938
18939 cat >>confdefs.h <<_ACEOF
18940 #define off_t long int
18941 _ACEOF
18942
18943 fi
18944
18945 { echo "$as_me:$LINENO: checking for size_t" >&5
18946 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18947 if test "${ac_cv_type_size_t+set}" = set; then
18948   echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950   cat >conftest.$ac_ext <<_ACEOF
18951 /* confdefs.h.  */
18952 _ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h.  */
18956 $ac_includes_default
18957 typedef size_t ac__type_new_;
18958 int
18959 main ()
18960 {
18961 if ((ac__type_new_ *) 0)
18962   return 0;
18963 if (sizeof (ac__type_new_))
18964   return 0;
18965   ;
18966   return 0;
18967 }
18968 _ACEOF
18969 rm -f conftest.$ac_objext
18970 if { (ac_try="$ac_compile"
18971 case "(($ac_try" in
18972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973   *) ac_try_echo=$ac_try;;
18974 esac
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976   (eval "$ac_compile") 2>conftest.er1
18977   ac_status=$?
18978   grep -v '^ *+' conftest.er1 >conftest.err
18979   rm -f conftest.er1
18980   cat conftest.err >&5
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); } && {
18983          test -z "$ac_c_werror_flag" ||
18984          test ! -s conftest.err
18985        } && test -s conftest.$ac_objext; then
18986   ac_cv_type_size_t=yes
18987 else
18988   echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18990
18991         ac_cv_type_size_t=no
18992 fi
18993
18994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18995 fi
18996 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18997 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18998 if test $ac_cv_type_size_t = yes; then
18999   :
19000 else
19001
19002 cat >>confdefs.h <<_ACEOF
19003 #define size_t unsigned int
19004 _ACEOF
19005
19006 fi
19007
19008
19009   { echo "$as_me:$LINENO: checking for long long" >&5
19010 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19011 if test "${ac_cv_type_long_long+set}" = set; then
19012   echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014   cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h.  */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h.  */
19020 long long ll = 1LL; int i = 63;
19021 int
19022 main ()
19023 {
19024 long long llmax = (long long) -1;
19025      return ll << i | ll >> i | llmax / ll | llmax % ll;
19026   ;
19027   return 0;
19028 }
19029 _ACEOF
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (ac_try="$ac_link"
19032 case "(($ac_try" in
19033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034   *) ac_try_echo=$ac_try;;
19035 esac
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037   (eval "$ac_link") 2>conftest.er1
19038   ac_status=$?
19039   grep -v '^ *+' conftest.er1 >conftest.err
19040   rm -f conftest.er1
19041   cat conftest.err >&5
19042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043   (exit $ac_status); } && {
19044          test -z "$ac_c_werror_flag" ||
19045          test ! -s conftest.err
19046        } && test -s conftest$ac_exeext &&
19047        $as_test_x conftest$ac_exeext; then
19048   ac_cv_type_long_long=yes
19049 else
19050   echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19052
19053         ac_cv_type_long_long=no
19054 fi
19055
19056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19057       conftest$ac_exeext conftest.$ac_ext
19058 fi
19059 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19060 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19061   if test $ac_cv_type_long_long = yes; then
19062
19063 cat >>confdefs.h <<\_ACEOF
19064 #define HAVE_LONG_LONG 1
19065 _ACEOF
19066
19067   fi
19068
19069
19070   { echo "$as_me:$LINENO: checking for long double" >&5
19071 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19072 if test "${gt_cv_c_long_double+set}" = set; then
19073   echo $ECHO_N "(cached) $ECHO_C" >&6
19074 else
19075   if test "$GCC" = yes; then
19076        gt_cv_c_long_double=yes
19077      else
19078        cat >conftest.$ac_ext <<_ACEOF
19079 /* confdefs.h.  */
19080 _ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h.  */
19084
19085          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19086          long double foo = 0.0;
19087          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19088          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19089
19090 int
19091 main ()
19092 {
19093
19094   ;
19095   return 0;
19096 }
19097 _ACEOF
19098 rm -f conftest.$ac_objext
19099 if { (ac_try="$ac_compile"
19100 case "(($ac_try" in
19101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102   *) ac_try_echo=$ac_try;;
19103 esac
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105   (eval "$ac_compile") 2>conftest.er1
19106   ac_status=$?
19107   grep -v '^ *+' conftest.er1 >conftest.err
19108   rm -f conftest.er1
19109   cat conftest.err >&5
19110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111   (exit $ac_status); } && {
19112          test -z "$ac_c_werror_flag" ||
19113          test ! -s conftest.err
19114        } && test -s conftest.$ac_objext; then
19115   gt_cv_c_long_double=yes
19116 else
19117   echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19119
19120         gt_cv_c_long_double=no
19121 fi
19122
19123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19124      fi
19125 fi
19126 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19127 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19128   if test $gt_cv_c_long_double = yes; then
19129
19130 cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_LONG_DOUBLE 1
19132 _ACEOF
19133
19134   fi
19135
19136
19137   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19138 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19139 if test "${gt_cv_c_wchar_t+set}" = set; then
19140   echo $ECHO_N "(cached) $ECHO_C" >&6
19141 else
19142   cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h.  */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h.  */
19148 #include <stddef.h>
19149        wchar_t foo = (wchar_t)'\0';
19150 int
19151 main ()
19152 {
19153
19154   ;
19155   return 0;
19156 }
19157 _ACEOF
19158 rm -f conftest.$ac_objext
19159 if { (ac_try="$ac_compile"
19160 case "(($ac_try" in
19161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162   *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165   (eval "$ac_compile") 2>conftest.er1
19166   ac_status=$?
19167   grep -v '^ *+' conftest.er1 >conftest.err
19168   rm -f conftest.er1
19169   cat conftest.err >&5
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); } && {
19172          test -z "$ac_c_werror_flag" ||
19173          test ! -s conftest.err
19174        } && test -s conftest.$ac_objext; then
19175   gt_cv_c_wchar_t=yes
19176 else
19177   echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19179
19180         gt_cv_c_wchar_t=no
19181 fi
19182
19183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19184 fi
19185 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19186 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19187   if test $gt_cv_c_wchar_t = yes; then
19188
19189 cat >>confdefs.h <<\_ACEOF
19190 #define HAVE_WCHAR_T 1
19191 _ACEOF
19192
19193   fi
19194
19195
19196   { echo "$as_me:$LINENO: checking for wint_t" >&5
19197 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19198 if test "${gt_cv_c_wint_t+set}" = set; then
19199   echo $ECHO_N "(cached) $ECHO_C" >&6
19200 else
19201   cat >conftest.$ac_ext <<_ACEOF
19202 /* confdefs.h.  */
19203 _ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h.  */
19207 #include <wchar.h>
19208        wint_t foo = (wchar_t)'\0';
19209 int
19210 main ()
19211 {
19212
19213   ;
19214   return 0;
19215 }
19216 _ACEOF
19217 rm -f conftest.$ac_objext
19218 if { (ac_try="$ac_compile"
19219 case "(($ac_try" in
19220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221   *) ac_try_echo=$ac_try;;
19222 esac
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224   (eval "$ac_compile") 2>conftest.er1
19225   ac_status=$?
19226   grep -v '^ *+' conftest.er1 >conftest.err
19227   rm -f conftest.er1
19228   cat conftest.err >&5
19229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230   (exit $ac_status); } && {
19231          test -z "$ac_c_werror_flag" ||
19232          test ! -s conftest.err
19233        } && test -s conftest.$ac_objext; then
19234   gt_cv_c_wint_t=yes
19235 else
19236   echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19238
19239         gt_cv_c_wint_t=no
19240 fi
19241
19242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19243 fi
19244 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19245 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19246   if test $gt_cv_c_wint_t = yes; then
19247
19248 cat >>confdefs.h <<\_ACEOF
19249 #define HAVE_WINT_T 1
19250 _ACEOF
19251
19252   fi
19253
19254
19255   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19256 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19257 if test "${gl_cv_header_inttypes_h+set}" = set; then
19258   echo $ECHO_N "(cached) $ECHO_C" >&6
19259 else
19260   cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h.  */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h.  */
19266 #include <sys/types.h>
19267 #include <inttypes.h>
19268 int
19269 main ()
19270 {
19271 uintmax_t i = (uintmax_t) -1;
19272   ;
19273   return 0;
19274 }
19275 _ACEOF
19276 rm -f conftest.$ac_objext
19277 if { (ac_try="$ac_compile"
19278 case "(($ac_try" in
19279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280   *) ac_try_echo=$ac_try;;
19281 esac
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283   (eval "$ac_compile") 2>conftest.er1
19284   ac_status=$?
19285   grep -v '^ *+' conftest.er1 >conftest.err
19286   rm -f conftest.er1
19287   cat conftest.err >&5
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); } && {
19290          test -z "$ac_c_werror_flag" ||
19291          test ! -s conftest.err
19292        } && test -s conftest.$ac_objext; then
19293   gl_cv_header_inttypes_h=yes
19294 else
19295   echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19297
19298         gl_cv_header_inttypes_h=no
19299 fi
19300
19301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19302 fi
19303 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19304 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19305   if test $gl_cv_header_inttypes_h = yes; then
19306
19307 cat >>confdefs.h <<_ACEOF
19308 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19309 _ACEOF
19310
19311   fi
19312
19313
19314   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19315 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19316 if test "${gl_cv_header_stdint_h+set}" = set; then
19317   echo $ECHO_N "(cached) $ECHO_C" >&6
19318 else
19319   cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h.  */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h.  */
19325 #include <sys/types.h>
19326 #include <stdint.h>
19327 int
19328 main ()
19329 {
19330 uintmax_t i = (uintmax_t) -1;
19331   ;
19332   return 0;
19333 }
19334 _ACEOF
19335 rm -f conftest.$ac_objext
19336 if { (ac_try="$ac_compile"
19337 case "(($ac_try" in
19338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19339   *) ac_try_echo=$ac_try;;
19340 esac
19341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19342   (eval "$ac_compile") 2>conftest.er1
19343   ac_status=$?
19344   grep -v '^ *+' conftest.er1 >conftest.err
19345   rm -f conftest.er1
19346   cat conftest.err >&5
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); } && {
19349          test -z "$ac_c_werror_flag" ||
19350          test ! -s conftest.err
19351        } && test -s conftest.$ac_objext; then
19352   gl_cv_header_stdint_h=yes
19353 else
19354   echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19356
19357         gl_cv_header_stdint_h=no
19358 fi
19359
19360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19361 fi
19362 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19363 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19364   if test $gl_cv_header_stdint_h = yes; then
19365
19366 cat >>confdefs.h <<_ACEOF
19367 #define HAVE_STDINT_H_WITH_UINTMAX 1
19368 _ACEOF
19369
19370   fi
19371
19372
19373
19374
19375   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19376 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19377 if test "${gt_cv_c_intmax_t+set}" = set; then
19378   echo $ECHO_N "(cached) $ECHO_C" >&6
19379 else
19380   cat >conftest.$ac_ext <<_ACEOF
19381 /* confdefs.h.  */
19382 _ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h.  */
19386
19387 #include <stddef.h>
19388 #include <stdlib.h>
19389 #if HAVE_STDINT_H_WITH_UINTMAX
19390 #include <stdint.h>
19391 #endif
19392 #if HAVE_INTTYPES_H_WITH_UINTMAX
19393 #include <inttypes.h>
19394 #endif
19395
19396 int
19397 main ()
19398 {
19399 intmax_t x = -1;
19400   ;
19401   return 0;
19402 }
19403 _ACEOF
19404 rm -f conftest.$ac_objext
19405 if { (ac_try="$ac_compile"
19406 case "(($ac_try" in
19407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408   *) ac_try_echo=$ac_try;;
19409 esac
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411   (eval "$ac_compile") 2>conftest.er1
19412   ac_status=$?
19413   grep -v '^ *+' conftest.er1 >conftest.err
19414   rm -f conftest.er1
19415   cat conftest.err >&5
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); } && {
19418          test -z "$ac_c_werror_flag" ||
19419          test ! -s conftest.err
19420        } && test -s conftest.$ac_objext; then
19421   gt_cv_c_intmax_t=yes
19422 else
19423   echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19425
19426         gt_cv_c_intmax_t=no
19427 fi
19428
19429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19430 fi
19431 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19432 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19433   if test $gt_cv_c_intmax_t = yes; then
19434
19435 cat >>confdefs.h <<\_ACEOF
19436 #define HAVE_INTMAX_T 1
19437 _ACEOF
19438
19439   fi
19440
19441
19442
19443   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19444 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19445 if test "${gt_cv_func_printf_posix+set}" = set; then
19446   echo $ECHO_N "(cached) $ECHO_C" >&6
19447 else
19448
19449       if test "$cross_compiling" = yes; then
19450
19451         cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h.  */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h.  */
19457
19458 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19459   notposix
19460 #endif
19461
19462 _ACEOF
19463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19464   $EGREP "notposix" >/dev/null 2>&1; then
19465   gt_cv_func_printf_posix="guessing no"
19466 else
19467   gt_cv_func_printf_posix="guessing yes"
19468 fi
19469 rm -f conftest*
19470
19471
19472 else
19473   cat >conftest.$ac_ext <<_ACEOF
19474 /* confdefs.h.  */
19475 _ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h.  */
19479
19480 #include <stdio.h>
19481 #include <string.h>
19482 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19483    dollar expansion (possibly an autoconf bug).  */
19484 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19485 static char buf[100];
19486 int main ()
19487 {
19488   sprintf (buf, format, 33, 55);
19489   return (strcmp (buf, "55 33") != 0);
19490 }
19491 _ACEOF
19492 rm -f conftest$ac_exeext
19493 if { (ac_try="$ac_link"
19494 case "(($ac_try" in
19495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496   *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499   (eval "$ac_link") 2>&5
19500   ac_status=$?
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19503   { (case "(($ac_try" in
19504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505   *) ac_try_echo=$ac_try;;
19506 esac
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508   (eval "$ac_try") 2>&5
19509   ac_status=$?
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); }; }; then
19512   gt_cv_func_printf_posix=yes
19513 else
19514   echo "$as_me: program exited with status $ac_status" >&5
19515 echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19517
19518 ( exit $ac_status )
19519 gt_cv_func_printf_posix=no
19520 fi
19521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19522 fi
19523
19524
19525
19526 fi
19527 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19528 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19529   case $gt_cv_func_printf_posix in
19530     *yes)
19531
19532 cat >>confdefs.h <<\_ACEOF
19533 #define HAVE_POSIX_PRINTF 1
19534 _ACEOF
19535
19536       ;;
19537   esac
19538
19539 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19540 # for constant arguments.  Useless!
19541 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19542 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19543 if test "${ac_cv_working_alloca_h+set}" = set; then
19544   echo $ECHO_N "(cached) $ECHO_C" >&6
19545 else
19546   cat >conftest.$ac_ext <<_ACEOF
19547 /* confdefs.h.  */
19548 _ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h.  */
19552 #include <alloca.h>
19553 int
19554 main ()
19555 {
19556 char *p = (char *) alloca (2 * sizeof (int));
19557                           if (p) return 0;
19558   ;
19559   return 0;
19560 }
19561 _ACEOF
19562 rm -f conftest.$ac_objext conftest$ac_exeext
19563 if { (ac_try="$ac_link"
19564 case "(($ac_try" in
19565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566   *) ac_try_echo=$ac_try;;
19567 esac
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569   (eval "$ac_link") 2>conftest.er1
19570   ac_status=$?
19571   grep -v '^ *+' conftest.er1 >conftest.err
19572   rm -f conftest.er1
19573   cat conftest.err >&5
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); } && {
19576          test -z "$ac_c_werror_flag" ||
19577          test ! -s conftest.err
19578        } && test -s conftest$ac_exeext &&
19579        $as_test_x conftest$ac_exeext; then
19580   ac_cv_working_alloca_h=yes
19581 else
19582   echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19584
19585         ac_cv_working_alloca_h=no
19586 fi
19587
19588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19589       conftest$ac_exeext conftest.$ac_ext
19590 fi
19591 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19592 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19593 if test $ac_cv_working_alloca_h = yes; then
19594
19595 cat >>confdefs.h <<\_ACEOF
19596 #define HAVE_ALLOCA_H 1
19597 _ACEOF
19598
19599 fi
19600
19601 { echo "$as_me:$LINENO: checking for alloca" >&5
19602 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19603 if test "${ac_cv_func_alloca_works+set}" = set; then
19604   echo $ECHO_N "(cached) $ECHO_C" >&6
19605 else
19606   cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h.  */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h.  */
19612 #ifdef __GNUC__
19613 # define alloca __builtin_alloca
19614 #else
19615 # ifdef _MSC_VER
19616 #  include <malloc.h>
19617 #  define alloca _alloca
19618 # else
19619 #  ifdef HAVE_ALLOCA_H
19620 #   include <alloca.h>
19621 #  else
19622 #   ifdef _AIX
19623  #pragma alloca
19624 #   else
19625 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19626 char *alloca ();
19627 #    endif
19628 #   endif
19629 #  endif
19630 # endif
19631 #endif
19632
19633 int
19634 main ()
19635 {
19636 char *p = (char *) alloca (1);
19637                                     if (p) return 0;
19638   ;
19639   return 0;
19640 }
19641 _ACEOF
19642 rm -f conftest.$ac_objext conftest$ac_exeext
19643 if { (ac_try="$ac_link"
19644 case "(($ac_try" in
19645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646   *) ac_try_echo=$ac_try;;
19647 esac
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649   (eval "$ac_link") 2>conftest.er1
19650   ac_status=$?
19651   grep -v '^ *+' conftest.er1 >conftest.err
19652   rm -f conftest.er1
19653   cat conftest.err >&5
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); } && {
19656          test -z "$ac_c_werror_flag" ||
19657          test ! -s conftest.err
19658        } && test -s conftest$ac_exeext &&
19659        $as_test_x conftest$ac_exeext; then
19660   ac_cv_func_alloca_works=yes
19661 else
19662   echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665         ac_cv_func_alloca_works=no
19666 fi
19667
19668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19669       conftest$ac_exeext conftest.$ac_ext
19670 fi
19671 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19672 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19673
19674 if test $ac_cv_func_alloca_works = yes; then
19675
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE_ALLOCA 1
19678 _ACEOF
19679
19680 else
19681   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19682 # that cause trouble.  Some versions do not even contain alloca or
19683 # contain a buggy version.  If you still want to use their alloca,
19684 # use ar to extract alloca.o from them instead of compiling alloca.c.
19685
19686 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19687
19688 cat >>confdefs.h <<\_ACEOF
19689 #define C_ALLOCA 1
19690 _ACEOF
19691
19692
19693 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19694 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19695 if test "${ac_cv_os_cray+set}" = set; then
19696   echo $ECHO_N "(cached) $ECHO_C" >&6
19697 else
19698   cat >conftest.$ac_ext <<_ACEOF
19699 /* confdefs.h.  */
19700 _ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h.  */
19704 #if defined CRAY && ! defined CRAY2
19705 webecray
19706 #else
19707 wenotbecray
19708 #endif
19709
19710 _ACEOF
19711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19712   $EGREP "webecray" >/dev/null 2>&1; then
19713   ac_cv_os_cray=yes
19714 else
19715   ac_cv_os_cray=no
19716 fi
19717 rm -f conftest*
19718
19719 fi
19720 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19721 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19722 if test $ac_cv_os_cray = yes; then
19723   for ac_func in _getb67 GETB67 getb67; do
19724     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19728   echo $ECHO_N "(cached) $ECHO_C" >&6
19729 else
19730   cat >conftest.$ac_ext <<_ACEOF
19731 /* confdefs.h.  */
19732 _ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h.  */
19736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19738 #define $ac_func innocuous_$ac_func
19739
19740 /* System header to define __stub macros and hopefully few prototypes,
19741     which can conflict with char $ac_func (); below.
19742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19743     <limits.h> exists even on freestanding compilers.  */
19744
19745 #ifdef __STDC__
19746 # include <limits.h>
19747 #else
19748 # include <assert.h>
19749 #endif
19750
19751 #undef $ac_func
19752
19753 /* Override any GCC internal prototype to avoid an error.
19754    Use char because int might match the return type of a GCC
19755    builtin and then its argument prototype would still apply.  */
19756 #ifdef __cplusplus
19757 extern "C"
19758 #endif
19759 char $ac_func ();
19760 /* The GNU C library defines this for functions which it implements
19761     to always fail with ENOSYS.  Some functions are actually named
19762     something starting with __ and the normal name is an alias.  */
19763 #if defined __stub_$ac_func || defined __stub___$ac_func
19764 choke me
19765 #endif
19766
19767 int
19768 main ()
19769 {
19770 return $ac_func ();
19771   ;
19772   return 0;
19773 }
19774 _ACEOF
19775 rm -f conftest.$ac_objext conftest$ac_exeext
19776 if { (ac_try="$ac_link"
19777 case "(($ac_try" in
19778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779   *) ac_try_echo=$ac_try;;
19780 esac
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782   (eval "$ac_link") 2>conftest.er1
19783   ac_status=$?
19784   grep -v '^ *+' conftest.er1 >conftest.err
19785   rm -f conftest.er1
19786   cat conftest.err >&5
19787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788   (exit $ac_status); } && {
19789          test -z "$ac_c_werror_flag" ||
19790          test ! -s conftest.err
19791        } && test -s conftest$ac_exeext &&
19792        $as_test_x conftest$ac_exeext; then
19793   eval "$as_ac_var=yes"
19794 else
19795   echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19797
19798         eval "$as_ac_var=no"
19799 fi
19800
19801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19802       conftest$ac_exeext conftest.$ac_ext
19803 fi
19804 ac_res=`eval echo '${'$as_ac_var'}'`
19805                { echo "$as_me:$LINENO: result: $ac_res" >&5
19806 echo "${ECHO_T}$ac_res" >&6; }
19807 if test `eval echo '${'$as_ac_var'}'` = yes; then
19808
19809 cat >>confdefs.h <<_ACEOF
19810 #define CRAY_STACKSEG_END $ac_func
19811 _ACEOF
19812
19813     break
19814 fi
19815
19816   done
19817 fi
19818
19819 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19820 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19821 if test "${ac_cv_c_stack_direction+set}" = set; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824   if test "$cross_compiling" = yes; then
19825   ac_cv_c_stack_direction=0
19826 else
19827   cat >conftest.$ac_ext <<_ACEOF
19828 /* confdefs.h.  */
19829 _ACEOF
19830 cat confdefs.h >>conftest.$ac_ext
19831 cat >>conftest.$ac_ext <<_ACEOF
19832 /* end confdefs.h.  */
19833 $ac_includes_default
19834 int
19835 find_stack_direction ()
19836 {
19837   static char *addr = 0;
19838   auto char dummy;
19839   if (addr == 0)
19840     {
19841       addr = &dummy;
19842       return find_stack_direction ();
19843     }
19844   else
19845     return (&dummy > addr) ? 1 : -1;
19846 }
19847
19848 int
19849 main ()
19850 {
19851   return find_stack_direction () < 0;
19852 }
19853 _ACEOF
19854 rm -f conftest$ac_exeext
19855 if { (ac_try="$ac_link"
19856 case "(($ac_try" in
19857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858   *) ac_try_echo=$ac_try;;
19859 esac
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861   (eval "$ac_link") 2>&5
19862   ac_status=$?
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19865   { (case "(($ac_try" in
19866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867   *) ac_try_echo=$ac_try;;
19868 esac
19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870   (eval "$ac_try") 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); }; }; then
19874   ac_cv_c_stack_direction=1
19875 else
19876   echo "$as_me: program exited with status $ac_status" >&5
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19879
19880 ( exit $ac_status )
19881 ac_cv_c_stack_direction=-1
19882 fi
19883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19884 fi
19885
19886
19887 fi
19888 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19889 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19890
19891 cat >>confdefs.h <<_ACEOF
19892 #define STACK_DIRECTION $ac_cv_c_stack_direction
19893 _ACEOF
19894
19895
19896 fi
19897
19898
19899
19900 for ac_header in stdlib.h unistd.h
19901 do
19902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19904   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907   echo $ECHO_N "(cached) $ECHO_C" >&6
19908 fi
19909 ac_res=`eval echo '${'$as_ac_Header'}'`
19910                { echo "$as_me:$LINENO: result: $ac_res" >&5
19911 echo "${ECHO_T}$ac_res" >&6; }
19912 else
19913   # Is the header compilable?
19914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19916 cat >conftest.$ac_ext <<_ACEOF
19917 /* confdefs.h.  */
19918 _ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h.  */
19922 $ac_includes_default
19923 #include <$ac_header>
19924 _ACEOF
19925 rm -f conftest.$ac_objext
19926 if { (ac_try="$ac_compile"
19927 case "(($ac_try" in
19928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929   *) ac_try_echo=$ac_try;;
19930 esac
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932   (eval "$ac_compile") 2>conftest.er1
19933   ac_status=$?
19934   grep -v '^ *+' conftest.er1 >conftest.err
19935   rm -f conftest.er1
19936   cat conftest.err >&5
19937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938   (exit $ac_status); } && {
19939          test -z "$ac_c_werror_flag" ||
19940          test ! -s conftest.err
19941        } && test -s conftest.$ac_objext; then
19942   ac_header_compiler=yes
19943 else
19944   echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19946
19947         ac_header_compiler=no
19948 fi
19949
19950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19952 echo "${ECHO_T}$ac_header_compiler" >&6; }
19953
19954 # Is the header present?
19955 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19957 cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h.  */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h.  */
19963 #include <$ac_header>
19964 _ACEOF
19965 if { (ac_try="$ac_cpp conftest.$ac_ext"
19966 case "(($ac_try" in
19967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968   *) ac_try_echo=$ac_try;;
19969 esac
19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19972   ac_status=$?
19973   grep -v '^ *+' conftest.er1 >conftest.err
19974   rm -f conftest.er1
19975   cat conftest.err >&5
19976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977   (exit $ac_status); } >/dev/null && {
19978          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19979          test ! -s conftest.err
19980        }; then
19981   ac_header_preproc=yes
19982 else
19983   echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19985
19986   ac_header_preproc=no
19987 fi
19988
19989 rm -f conftest.err conftest.$ac_ext
19990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19991 echo "${ECHO_T}$ac_header_preproc" >&6; }
19992
19993 # So?  What about this header?
19994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19995   yes:no: )
19996     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20000     ac_header_preproc=yes
20001     ;;
20002   no:yes:* )
20003     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20005     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20006 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20007     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20009     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20010 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20013     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20015
20016     ;;
20017 esac
20018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20021   echo $ECHO_N "(cached) $ECHO_C" >&6
20022 else
20023   eval "$as_ac_Header=\$ac_header_preproc"
20024 fi
20025 ac_res=`eval echo '${'$as_ac_Header'}'`
20026                { echo "$as_me:$LINENO: result: $ac_res" >&5
20027 echo "${ECHO_T}$ac_res" >&6; }
20028
20029 fi
20030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20031   cat >>confdefs.h <<_ACEOF
20032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20033 _ACEOF
20034
20035 fi
20036
20037 done
20038
20039
20040 for ac_func in getpagesize
20041 do
20042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20046   echo $ECHO_N "(cached) $ECHO_C" >&6
20047 else
20048   cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h.  */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h.  */
20054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20056 #define $ac_func innocuous_$ac_func
20057
20058 /* System header to define __stub macros and hopefully few prototypes,
20059     which can conflict with char $ac_func (); below.
20060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20061     <limits.h> exists even on freestanding compilers.  */
20062
20063 #ifdef __STDC__
20064 # include <limits.h>
20065 #else
20066 # include <assert.h>
20067 #endif
20068
20069 #undef $ac_func
20070
20071 /* Override any GCC internal prototype to avoid an error.
20072    Use char because int might match the return type of a GCC
20073    builtin and then its argument prototype would still apply.  */
20074 #ifdef __cplusplus
20075 extern "C"
20076 #endif
20077 char $ac_func ();
20078 /* The GNU C library defines this for functions which it implements
20079     to always fail with ENOSYS.  Some functions are actually named
20080     something starting with __ and the normal name is an alias.  */
20081 #if defined __stub_$ac_func || defined __stub___$ac_func
20082 choke me
20083 #endif
20084
20085 int
20086 main ()
20087 {
20088 return $ac_func ();
20089   ;
20090   return 0;
20091 }
20092 _ACEOF
20093 rm -f conftest.$ac_objext conftest$ac_exeext
20094 if { (ac_try="$ac_link"
20095 case "(($ac_try" in
20096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097   *) ac_try_echo=$ac_try;;
20098 esac
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100   (eval "$ac_link") 2>conftest.er1
20101   ac_status=$?
20102   grep -v '^ *+' conftest.er1 >conftest.err
20103   rm -f conftest.er1
20104   cat conftest.err >&5
20105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106   (exit $ac_status); } && {
20107          test -z "$ac_c_werror_flag" ||
20108          test ! -s conftest.err
20109        } && test -s conftest$ac_exeext &&
20110        $as_test_x conftest$ac_exeext; then
20111   eval "$as_ac_var=yes"
20112 else
20113   echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20115
20116         eval "$as_ac_var=no"
20117 fi
20118
20119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20120       conftest$ac_exeext conftest.$ac_ext
20121 fi
20122 ac_res=`eval echo '${'$as_ac_var'}'`
20123                { echo "$as_me:$LINENO: result: $ac_res" >&5
20124 echo "${ECHO_T}$ac_res" >&6; }
20125 if test `eval echo '${'$as_ac_var'}'` = yes; then
20126   cat >>confdefs.h <<_ACEOF
20127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20128 _ACEOF
20129
20130 fi
20131 done
20132
20133 { echo "$as_me:$LINENO: checking for working mmap" >&5
20134 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20135 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20136   echo $ECHO_N "(cached) $ECHO_C" >&6
20137 else
20138   if test "$cross_compiling" = yes; then
20139   ac_cv_func_mmap_fixed_mapped=no
20140 else
20141   cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h.  */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h.  */
20147 $ac_includes_default
20148 /* malloc might have been renamed as rpl_malloc. */
20149 #undef malloc
20150
20151 /* Thanks to Mike Haertel and Jim Avera for this test.
20152    Here is a matrix of mmap possibilities:
20153         mmap private not fixed
20154         mmap private fixed at somewhere currently unmapped
20155         mmap private fixed at somewhere already mapped
20156         mmap shared not fixed
20157         mmap shared fixed at somewhere currently unmapped
20158         mmap shared fixed at somewhere already mapped
20159    For private mappings, we should verify that changes cannot be read()
20160    back from the file, nor mmap's back from the file at a different
20161    address.  (There have been systems where private was not correctly
20162    implemented like the infamous i386 svr4.0, and systems where the
20163    VM page cache was not coherent with the file system buffer cache
20164    like early versions of FreeBSD and possibly contemporary NetBSD.)
20165    For shared mappings, we should conversely verify that changes get
20166    propagated back to all the places they're supposed to be.
20167
20168    Grep wants private fixed already mapped.
20169    The main things grep needs to know about mmap are:
20170    * does it exist and is it safe to write into the mmap'd area
20171    * how to use it (BSD variants)  */
20172
20173 #include <fcntl.h>
20174 #include <sys/mman.h>
20175
20176 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20177 char *malloc ();
20178 #endif
20179
20180 /* This mess was copied from the GNU getpagesize.h.  */
20181 #ifndef HAVE_GETPAGESIZE
20182 /* Assume that all systems that can run configure have sys/param.h.  */
20183 # ifndef HAVE_SYS_PARAM_H
20184 #  define HAVE_SYS_PARAM_H 1
20185 # endif
20186
20187 # ifdef _SC_PAGESIZE
20188 #  define getpagesize() sysconf(_SC_PAGESIZE)
20189 # else /* no _SC_PAGESIZE */
20190 #  ifdef HAVE_SYS_PARAM_H
20191 #   include <sys/param.h>
20192 #   ifdef EXEC_PAGESIZE
20193 #    define getpagesize() EXEC_PAGESIZE
20194 #   else /* no EXEC_PAGESIZE */
20195 #    ifdef NBPG
20196 #     define getpagesize() NBPG * CLSIZE
20197 #     ifndef CLSIZE
20198 #      define CLSIZE 1
20199 #     endif /* no CLSIZE */
20200 #    else /* no NBPG */
20201 #     ifdef NBPC
20202 #      define getpagesize() NBPC
20203 #     else /* no NBPC */
20204 #      ifdef PAGESIZE
20205 #       define getpagesize() PAGESIZE
20206 #      endif /* PAGESIZE */
20207 #     endif /* no NBPC */
20208 #    endif /* no NBPG */
20209 #   endif /* no EXEC_PAGESIZE */
20210 #  else /* no HAVE_SYS_PARAM_H */
20211 #   define getpagesize() 8192   /* punt totally */
20212 #  endif /* no HAVE_SYS_PARAM_H */
20213 # endif /* no _SC_PAGESIZE */
20214
20215 #endif /* no HAVE_GETPAGESIZE */
20216
20217 int
20218 main ()
20219 {
20220   char *data, *data2, *data3;
20221   int i, pagesize;
20222   int fd;
20223
20224   pagesize = getpagesize ();
20225
20226   /* First, make a file with some known garbage in it. */
20227   data = (char *) malloc (pagesize);
20228   if (!data)
20229     return 1;
20230   for (i = 0; i < pagesize; ++i)
20231     *(data + i) = rand ();
20232   umask (0);
20233   fd = creat ("conftest.mmap", 0600);
20234   if (fd < 0)
20235     return 1;
20236   if (write (fd, data, pagesize) != pagesize)
20237     return 1;
20238   close (fd);
20239
20240   /* Next, try to mmap the file at a fixed address which already has
20241      something else allocated at it.  If we can, also make sure that
20242      we see the same garbage.  */
20243   fd = open ("conftest.mmap", O_RDWR);
20244   if (fd < 0)
20245     return 1;
20246   data2 = (char *) malloc (2 * pagesize);
20247   if (!data2)
20248     return 1;
20249   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20250   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20251                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20252     return 1;
20253   for (i = 0; i < pagesize; ++i)
20254     if (*(data + i) != *(data2 + i))
20255       return 1;
20256
20257   /* Finally, make sure that changes to the mapped area do not
20258      percolate back to the file as seen by read().  (This is a bug on
20259      some variants of i386 svr4.0.)  */
20260   for (i = 0; i < pagesize; ++i)
20261     *(data2 + i) = *(data2 + i) + 1;
20262   data3 = (char *) malloc (pagesize);
20263   if (!data3)
20264     return 1;
20265   if (read (fd, data3, pagesize) != pagesize)
20266     return 1;
20267   for (i = 0; i < pagesize; ++i)
20268     if (*(data + i) != *(data3 + i))
20269       return 1;
20270   close (fd);
20271   return 0;
20272 }
20273 _ACEOF
20274 rm -f conftest$ac_exeext
20275 if { (ac_try="$ac_link"
20276 case "(($ac_try" in
20277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278   *) ac_try_echo=$ac_try;;
20279 esac
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281   (eval "$ac_link") 2>&5
20282   ac_status=$?
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20285   { (case "(($ac_try" in
20286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287   *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290   (eval "$ac_try") 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); }; }; then
20294   ac_cv_func_mmap_fixed_mapped=yes
20295 else
20296   echo "$as_me: program exited with status $ac_status" >&5
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20299
20300 ( exit $ac_status )
20301 ac_cv_func_mmap_fixed_mapped=no
20302 fi
20303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20304 fi
20305
20306
20307 fi
20308 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20309 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20310 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20311
20312 cat >>confdefs.h <<\_ACEOF
20313 #define HAVE_MMAP 1
20314 _ACEOF
20315
20316 fi
20317 rm -f conftest.mmap
20318
20319
20320     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20321 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20322 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20323   echo $ECHO_N "(cached) $ECHO_C" >&6
20324 else
20325   cat >conftest.$ac_ext <<_ACEOF
20326 /* confdefs.h.  */
20327 _ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h.  */
20331
20332 #include <features.h>
20333 #ifdef __GNU_LIBRARY__
20334  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20335   Lucky GNU user
20336  #endif
20337 #endif
20338
20339 _ACEOF
20340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20341   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20342   ac_cv_gnu_library_2_1=yes
20343 else
20344   ac_cv_gnu_library_2_1=no
20345 fi
20346 rm -f conftest*
20347
20348
20349
20350 fi
20351 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20352 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20353
20354     GLIBC21="$ac_cv_gnu_library_2_1"
20355
20356
20357
20358
20359   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20360 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20361 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20362   echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364
20365       if test "$cross_compiling" = yes; then
20366
20367           # Guess based on the CPU.
20368           case "$host_cpu" in
20369             alpha* | i3456786 | m68k | s390*)
20370               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20371             *)
20372               gt_cv_int_divbyzero_sigfpe="guessing no";;
20373           esac
20374
20375 else
20376   cat >conftest.$ac_ext <<_ACEOF
20377 /* confdefs.h.  */
20378 _ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h.  */
20382
20383 #include <stdlib.h>
20384 #include <signal.h>
20385
20386 static void
20387 #ifdef __cplusplus
20388 sigfpe_handler (int sig)
20389 #else
20390 sigfpe_handler (sig) int sig;
20391 #endif
20392 {
20393   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20394   exit (sig != SIGFPE);
20395 }
20396
20397 int x = 1;
20398 int y = 0;
20399 int z;
20400 int nan;
20401
20402 int main ()
20403 {
20404   signal (SIGFPE, sigfpe_handler);
20405 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20406 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20407   signal (SIGTRAP, sigfpe_handler);
20408 #endif
20409 /* Linux/SPARC yields signal SIGILL.  */
20410 #if defined (__sparc__) && defined (__linux__)
20411   signal (SIGILL, sigfpe_handler);
20412 #endif
20413
20414   z = x / y;
20415   nan = y / y;
20416   exit (1);
20417 }
20418
20419 _ACEOF
20420 rm -f conftest$ac_exeext
20421 if { (ac_try="$ac_link"
20422 case "(($ac_try" in
20423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424   *) ac_try_echo=$ac_try;;
20425 esac
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427   (eval "$ac_link") 2>&5
20428   ac_status=$?
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20431   { (case "(($ac_try" in
20432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433   *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436   (eval "$ac_try") 2>&5
20437   ac_status=$?
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); }; }; then
20440   gt_cv_int_divbyzero_sigfpe=yes
20441 else
20442   echo "$as_me: program exited with status $ac_status" >&5
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20445
20446 ( exit $ac_status )
20447 gt_cv_int_divbyzero_sigfpe=no
20448 fi
20449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20450 fi
20451
20452
20453
20454 fi
20455 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20456 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20457   case "$gt_cv_int_divbyzero_sigfpe" in
20458     *yes) value=1;;
20459     *) value=0;;
20460   esac
20461
20462 cat >>confdefs.h <<_ACEOF
20463 #define INTDIV0_RAISES_SIGFPE $value
20464 _ACEOF
20465
20466
20467
20468   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20469 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20470 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20471   echo $ECHO_N "(cached) $ECHO_C" >&6
20472 else
20473   cat >conftest.$ac_ext <<_ACEOF
20474 /* confdefs.h.  */
20475 _ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h.  */
20479 unsigned long long ull = 1ULL; int i = 63;
20480 int
20481 main ()
20482 {
20483 unsigned long long ullmax = (unsigned long long) -1;
20484      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20485   ;
20486   return 0;
20487 }
20488 _ACEOF
20489 rm -f conftest.$ac_objext conftest$ac_exeext
20490 if { (ac_try="$ac_link"
20491 case "(($ac_try" in
20492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493   *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496   (eval "$ac_link") 2>conftest.er1
20497   ac_status=$?
20498   grep -v '^ *+' conftest.er1 >conftest.err
20499   rm -f conftest.er1
20500   cat conftest.err >&5
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); } && {
20503          test -z "$ac_c_werror_flag" ||
20504          test ! -s conftest.err
20505        } && test -s conftest$ac_exeext &&
20506        $as_test_x conftest$ac_exeext; then
20507   ac_cv_type_unsigned_long_long=yes
20508 else
20509   echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20511
20512         ac_cv_type_unsigned_long_long=no
20513 fi
20514
20515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20516       conftest$ac_exeext conftest.$ac_ext
20517 fi
20518 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20519 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20520   if test $ac_cv_type_unsigned_long_long = yes; then
20521
20522 cat >>confdefs.h <<\_ACEOF
20523 #define HAVE_UNSIGNED_LONG_LONG 1
20524 _ACEOF
20525
20526   fi
20527
20528
20529
20530
20531   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20532
20533     test $ac_cv_type_unsigned_long_long = yes \
20534       && ac_type='unsigned long long' \
20535       || ac_type='unsigned long'
20536
20537 cat >>confdefs.h <<_ACEOF
20538 #define uintmax_t $ac_type
20539 _ACEOF
20540
20541   else
20542
20543 cat >>confdefs.h <<\_ACEOF
20544 #define HAVE_UINTMAX_T 1
20545 _ACEOF
20546
20547   fi
20548
20549
20550   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20551 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20552 if test "${gt_cv_header_inttypes_h+set}" = set; then
20553   echo $ECHO_N "(cached) $ECHO_C" >&6
20554 else
20555
20556     cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h.  */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h.  */
20562 #include <sys/types.h>
20563 #include <inttypes.h>
20564 int
20565 main ()
20566 {
20567
20568   ;
20569   return 0;
20570 }
20571 _ACEOF
20572 rm -f conftest.$ac_objext
20573 if { (ac_try="$ac_compile"
20574 case "(($ac_try" in
20575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576   *) ac_try_echo=$ac_try;;
20577 esac
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579   (eval "$ac_compile") 2>conftest.er1
20580   ac_status=$?
20581   grep -v '^ *+' conftest.er1 >conftest.err
20582   rm -f conftest.er1
20583   cat conftest.err >&5
20584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585   (exit $ac_status); } && {
20586          test -z "$ac_c_werror_flag" ||
20587          test ! -s conftest.err
20588        } && test -s conftest.$ac_objext; then
20589   gt_cv_header_inttypes_h=yes
20590 else
20591   echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20593
20594         gt_cv_header_inttypes_h=no
20595 fi
20596
20597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20598
20599 fi
20600 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20601 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20602   if test $gt_cv_header_inttypes_h = yes; then
20603
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_INTTYPES_H 1
20606 _ACEOF
20607
20608   fi
20609
20610
20611
20612   if test $gt_cv_header_inttypes_h = yes; then
20613     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20614 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20615 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20616   echo $ECHO_N "(cached) $ECHO_C" >&6
20617 else
20618
20619         cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h.  */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h.  */
20625 #include <inttypes.h>
20626 #ifdef PRId32
20627 char *p = PRId32;
20628 #endif
20629
20630 int
20631 main ()
20632 {
20633
20634   ;
20635   return 0;
20636 }
20637 _ACEOF
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642   *) ac_try_echo=$ac_try;;
20643 esac
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645   (eval "$ac_compile") 2>conftest.er1
20646   ac_status=$?
20647   grep -v '^ *+' conftest.er1 >conftest.err
20648   rm -f conftest.er1
20649   cat conftest.err >&5
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); } && {
20652          test -z "$ac_c_werror_flag" ||
20653          test ! -s conftest.err
20654        } && test -s conftest.$ac_objext; then
20655   gt_cv_inttypes_pri_broken=no
20656 else
20657   echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20659
20660         gt_cv_inttypes_pri_broken=yes
20661 fi
20662
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20664
20665 fi
20666 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20667 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20668   fi
20669   if test "$gt_cv_inttypes_pri_broken" = yes; then
20670
20671 cat >>confdefs.h <<_ACEOF
20672 #define PRI_MACROS_BROKEN 1
20673 _ACEOF
20674
20675   fi
20676
20677
20678
20679 for ac_header in stdint.h
20680 do
20681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20683   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20686   echo $ECHO_N "(cached) $ECHO_C" >&6
20687 fi
20688 ac_res=`eval echo '${'$as_ac_Header'}'`
20689                { echo "$as_me:$LINENO: result: $ac_res" >&5
20690 echo "${ECHO_T}$ac_res" >&6; }
20691 else
20692   # Is the header compilable?
20693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20695 cat >conftest.$ac_ext <<_ACEOF
20696 /* confdefs.h.  */
20697 _ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h.  */
20701 $ac_includes_default
20702 #include <$ac_header>
20703 _ACEOF
20704 rm -f conftest.$ac_objext
20705 if { (ac_try="$ac_compile"
20706 case "(($ac_try" in
20707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708   *) ac_try_echo=$ac_try;;
20709 esac
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711   (eval "$ac_compile") 2>conftest.er1
20712   ac_status=$?
20713   grep -v '^ *+' conftest.er1 >conftest.err
20714   rm -f conftest.er1
20715   cat conftest.err >&5
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); } && {
20718          test -z "$ac_c_werror_flag" ||
20719          test ! -s conftest.err
20720        } && test -s conftest.$ac_objext; then
20721   ac_header_compiler=yes
20722 else
20723   echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20725
20726         ac_header_compiler=no
20727 fi
20728
20729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20731 echo "${ECHO_T}$ac_header_compiler" >&6; }
20732
20733 # Is the header present?
20734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20736 cat >conftest.$ac_ext <<_ACEOF
20737 /* confdefs.h.  */
20738 _ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h.  */
20742 #include <$ac_header>
20743 _ACEOF
20744 if { (ac_try="$ac_cpp conftest.$ac_ext"
20745 case "(($ac_try" in
20746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747   *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20751   ac_status=$?
20752   grep -v '^ *+' conftest.er1 >conftest.err
20753   rm -f conftest.er1
20754   cat conftest.err >&5
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); } >/dev/null && {
20757          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20758          test ! -s conftest.err
20759        }; then
20760   ac_header_preproc=yes
20761 else
20762   echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20764
20765   ac_header_preproc=no
20766 fi
20767
20768 rm -f conftest.err conftest.$ac_ext
20769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20770 echo "${ECHO_T}$ac_header_preproc" >&6; }
20771
20772 # So?  What about this header?
20773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20774   yes:no: )
20775     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20779     ac_header_preproc=yes
20780     ;;
20781   no:yes:* )
20782     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20784     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20785 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20786     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20788     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20789 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20792     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20794
20795     ;;
20796 esac
20797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20800   echo $ECHO_N "(cached) $ECHO_C" >&6
20801 else
20802   eval "$as_ac_Header=\$ac_header_preproc"
20803 fi
20804 ac_res=`eval echo '${'$as_ac_Header'}'`
20805                { echo "$as_me:$LINENO: result: $ac_res" >&5
20806 echo "${ECHO_T}$ac_res" >&6; }
20807
20808 fi
20809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20810   cat >>confdefs.h <<_ACEOF
20811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20812 _ACEOF
20813
20814 fi
20815
20816 done
20817
20818     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20819 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20820   result=
20821   cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h.  */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h.  */
20827
20828 #include <limits.h>
20829 #if HAVE_STDINT_H
20830 #include <stdint.h>
20831 #endif
20832 #ifdef SIZE_MAX
20833 Found it
20834 #endif
20835
20836 _ACEOF
20837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20838   $EGREP "Found it" >/dev/null 2>&1; then
20839   result=yes
20840 fi
20841 rm -f conftest*
20842
20843   if test -z "$result"; then
20844                     if test "$cross_compiling" = yes; then
20845   # Depending upon the size, compute the lo and hi bounds.
20846 cat >conftest.$ac_ext <<_ACEOF
20847 /* confdefs.h.  */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h.  */
20852 #include <stddef.h>
20853 int
20854 main ()
20855 {
20856 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20857 test_array [0] = 0
20858
20859   ;
20860   return 0;
20861 }
20862 _ACEOF
20863 rm -f conftest.$ac_objext
20864 if { (ac_try="$ac_compile"
20865 case "(($ac_try" in
20866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867   *) ac_try_echo=$ac_try;;
20868 esac
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870   (eval "$ac_compile") 2>conftest.er1
20871   ac_status=$?
20872   grep -v '^ *+' conftest.er1 >conftest.err
20873   rm -f conftest.er1
20874   cat conftest.err >&5
20875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876   (exit $ac_status); } && {
20877          test -z "$ac_c_werror_flag" ||
20878          test ! -s conftest.err
20879        } && test -s conftest.$ac_objext; then
20880   ac_lo=0 ac_mid=0
20881   while :; do
20882     cat >conftest.$ac_ext <<_ACEOF
20883 /* confdefs.h.  */
20884 _ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h.  */
20888 #include <stddef.h>
20889 int
20890 main ()
20891 {
20892 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20893 test_array [0] = 0
20894
20895   ;
20896   return 0;
20897 }
20898 _ACEOF
20899 rm -f conftest.$ac_objext
20900 if { (ac_try="$ac_compile"
20901 case "(($ac_try" in
20902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903   *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906   (eval "$ac_compile") 2>conftest.er1
20907   ac_status=$?
20908   grep -v '^ *+' conftest.er1 >conftest.err
20909   rm -f conftest.er1
20910   cat conftest.err >&5
20911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912   (exit $ac_status); } && {
20913          test -z "$ac_c_werror_flag" ||
20914          test ! -s conftest.err
20915        } && test -s conftest.$ac_objext; then
20916   ac_hi=$ac_mid; break
20917 else
20918   echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20920
20921         ac_lo=`expr $ac_mid + 1`
20922                         if test $ac_lo -le $ac_mid; then
20923                           ac_lo= ac_hi=
20924                           break
20925                         fi
20926                         ac_mid=`expr 2 '*' $ac_mid + 1`
20927 fi
20928
20929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20930   done
20931 else
20932   echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20934
20935         cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h.  */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h.  */
20941 #include <stddef.h>
20942 int
20943 main ()
20944 {
20945 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20946 test_array [0] = 0
20947
20948   ;
20949   return 0;
20950 }
20951 _ACEOF
20952 rm -f conftest.$ac_objext
20953 if { (ac_try="$ac_compile"
20954 case "(($ac_try" in
20955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956   *) ac_try_echo=$ac_try;;
20957 esac
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959   (eval "$ac_compile") 2>conftest.er1
20960   ac_status=$?
20961   grep -v '^ *+' conftest.er1 >conftest.err
20962   rm -f conftest.er1
20963   cat conftest.err >&5
20964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965   (exit $ac_status); } && {
20966          test -z "$ac_c_werror_flag" ||
20967          test ! -s conftest.err
20968        } && test -s conftest.$ac_objext; then
20969   ac_hi=-1 ac_mid=-1
20970   while :; do
20971     cat >conftest.$ac_ext <<_ACEOF
20972 /* confdefs.h.  */
20973 _ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h.  */
20977 #include <stddef.h>
20978 int
20979 main ()
20980 {
20981 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20982 test_array [0] = 0
20983
20984   ;
20985   return 0;
20986 }
20987 _ACEOF
20988 rm -f conftest.$ac_objext
20989 if { (ac_try="$ac_compile"
20990 case "(($ac_try" in
20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992   *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995   (eval "$ac_compile") 2>conftest.er1
20996   ac_status=$?
20997   grep -v '^ *+' conftest.er1 >conftest.err
20998   rm -f conftest.er1
20999   cat conftest.err >&5
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } && {
21002          test -z "$ac_c_werror_flag" ||
21003          test ! -s conftest.err
21004        } && test -s conftest.$ac_objext; then
21005   ac_lo=$ac_mid; break
21006 else
21007   echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010         ac_hi=`expr '(' $ac_mid ')' - 1`
21011                         if test $ac_mid -le $ac_hi; then
21012                           ac_lo= ac_hi=
21013                           break
21014                         fi
21015                         ac_mid=`expr 2 '*' $ac_mid`
21016 fi
21017
21018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019   done
21020 else
21021   echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21023
21024         ac_lo= ac_hi=
21025 fi
21026
21027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21028 fi
21029
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031 # Binary search between lo and hi bounds.
21032 while test "x$ac_lo" != "x$ac_hi"; do
21033   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21034   cat >conftest.$ac_ext <<_ACEOF
21035 /* confdefs.h.  */
21036 _ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h.  */
21040 #include <stddef.h>
21041 int
21042 main ()
21043 {
21044 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21045 test_array [0] = 0
21046
21047   ;
21048   return 0;
21049 }
21050 _ACEOF
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055   *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058   (eval "$ac_compile") 2>conftest.er1
21059   ac_status=$?
21060   grep -v '^ *+' conftest.er1 >conftest.err
21061   rm -f conftest.er1
21062   cat conftest.err >&5
21063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064   (exit $ac_status); } && {
21065          test -z "$ac_c_werror_flag" ||
21066          test ! -s conftest.err
21067        } && test -s conftest.$ac_objext; then
21068   ac_hi=$ac_mid
21069 else
21070   echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21072
21073         ac_lo=`expr '(' $ac_mid ')' + 1`
21074 fi
21075
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077 done
21078 case $ac_lo in
21079 ?*) res_hi=$ac_lo;;
21080 '') result=? ;;
21081 esac
21082 else
21083   cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h.  */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h.  */
21089 #include <stddef.h>
21090 static long int longval () { return ~(size_t)0 / 10; }
21091 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21092 #include <stdio.h>
21093 #include <stdlib.h>
21094 int
21095 main ()
21096 {
21097
21098   FILE *f = fopen ("conftest.val", "w");
21099   if (! f)
21100     return 1;
21101   if ((~(size_t)0 / 10) < 0)
21102     {
21103       long int i = longval ();
21104       if (i != (~(size_t)0 / 10))
21105         return 1;
21106       fprintf (f, "%ld\n", i);
21107     }
21108   else
21109     {
21110       unsigned long int i = ulongval ();
21111       if (i != (~(size_t)0 / 10))
21112         return 1;
21113       fprintf (f, "%lu\n", i);
21114     }
21115   return ferror (f) || fclose (f) != 0;
21116
21117   ;
21118   return 0;
21119 }
21120 _ACEOF
21121 rm -f conftest$ac_exeext
21122 if { (ac_try="$ac_link"
21123 case "(($ac_try" in
21124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125   *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128   (eval "$ac_link") 2>&5
21129   ac_status=$?
21130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21132   { (case "(($ac_try" in
21133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134   *) ac_try_echo=$ac_try;;
21135 esac
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137   (eval "$ac_try") 2>&5
21138   ac_status=$?
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); }; }; then
21141   res_hi=`cat conftest.val`
21142 else
21143   echo "$as_me: program exited with status $ac_status" >&5
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21146
21147 ( exit $ac_status )
21148 result=?
21149 fi
21150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21151 fi
21152 rm -f conftest.val
21153
21154     if test "$cross_compiling" = yes; then
21155   # Depending upon the size, compute the lo and hi bounds.
21156 cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h.  */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h.  */
21162 #include <stddef.h>
21163 int
21164 main ()
21165 {
21166 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21167 test_array [0] = 0
21168
21169   ;
21170   return 0;
21171 }
21172 _ACEOF
21173 rm -f conftest.$ac_objext
21174 if { (ac_try="$ac_compile"
21175 case "(($ac_try" in
21176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177   *) ac_try_echo=$ac_try;;
21178 esac
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180   (eval "$ac_compile") 2>conftest.er1
21181   ac_status=$?
21182   grep -v '^ *+' conftest.er1 >conftest.err
21183   rm -f conftest.er1
21184   cat conftest.err >&5
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); } && {
21187          test -z "$ac_c_werror_flag" ||
21188          test ! -s conftest.err
21189        } && test -s conftest.$ac_objext; then
21190   ac_lo=0 ac_mid=0
21191   while :; do
21192     cat >conftest.$ac_ext <<_ACEOF
21193 /* confdefs.h.  */
21194 _ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h.  */
21198 #include <stddef.h>
21199 int
21200 main ()
21201 {
21202 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21203 test_array [0] = 0
21204
21205   ;
21206   return 0;
21207 }
21208 _ACEOF
21209 rm -f conftest.$ac_objext
21210 if { (ac_try="$ac_compile"
21211 case "(($ac_try" in
21212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213   *) ac_try_echo=$ac_try;;
21214 esac
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216   (eval "$ac_compile") 2>conftest.er1
21217   ac_status=$?
21218   grep -v '^ *+' conftest.er1 >conftest.err
21219   rm -f conftest.er1
21220   cat conftest.err >&5
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); } && {
21223          test -z "$ac_c_werror_flag" ||
21224          test ! -s conftest.err
21225        } && test -s conftest.$ac_objext; then
21226   ac_hi=$ac_mid; break
21227 else
21228   echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21230
21231         ac_lo=`expr $ac_mid + 1`
21232                         if test $ac_lo -le $ac_mid; then
21233                           ac_lo= ac_hi=
21234                           break
21235                         fi
21236                         ac_mid=`expr 2 '*' $ac_mid + 1`
21237 fi
21238
21239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21240   done
21241 else
21242   echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21244
21245         cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h.  */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h.  */
21251 #include <stddef.h>
21252 int
21253 main ()
21254 {
21255 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21256 test_array [0] = 0
21257
21258   ;
21259   return 0;
21260 }
21261 _ACEOF
21262 rm -f conftest.$ac_objext
21263 if { (ac_try="$ac_compile"
21264 case "(($ac_try" in
21265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266   *) ac_try_echo=$ac_try;;
21267 esac
21268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21269   (eval "$ac_compile") 2>conftest.er1
21270   ac_status=$?
21271   grep -v '^ *+' conftest.er1 >conftest.err
21272   rm -f conftest.er1
21273   cat conftest.err >&5
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); } && {
21276          test -z "$ac_c_werror_flag" ||
21277          test ! -s conftest.err
21278        } && test -s conftest.$ac_objext; then
21279   ac_hi=-1 ac_mid=-1
21280   while :; do
21281     cat >conftest.$ac_ext <<_ACEOF
21282 /* confdefs.h.  */
21283 _ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h.  */
21287 #include <stddef.h>
21288 int
21289 main ()
21290 {
21291 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21292 test_array [0] = 0
21293
21294   ;
21295   return 0;
21296 }
21297 _ACEOF
21298 rm -f conftest.$ac_objext
21299 if { (ac_try="$ac_compile"
21300 case "(($ac_try" in
21301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302   *) ac_try_echo=$ac_try;;
21303 esac
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305   (eval "$ac_compile") 2>conftest.er1
21306   ac_status=$?
21307   grep -v '^ *+' conftest.er1 >conftest.err
21308   rm -f conftest.er1
21309   cat conftest.err >&5
21310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311   (exit $ac_status); } && {
21312          test -z "$ac_c_werror_flag" ||
21313          test ! -s conftest.err
21314        } && test -s conftest.$ac_objext; then
21315   ac_lo=$ac_mid; break
21316 else
21317   echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21319
21320         ac_hi=`expr '(' $ac_mid ')' - 1`
21321                         if test $ac_mid -le $ac_hi; then
21322                           ac_lo= ac_hi=
21323                           break
21324                         fi
21325                         ac_mid=`expr 2 '*' $ac_mid`
21326 fi
21327
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21329   done
21330 else
21331   echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21333
21334         ac_lo= ac_hi=
21335 fi
21336
21337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338 fi
21339
21340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21341 # Binary search between lo and hi bounds.
21342 while test "x$ac_lo" != "x$ac_hi"; do
21343   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21344   cat >conftest.$ac_ext <<_ACEOF
21345 /* confdefs.h.  */
21346 _ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h.  */
21350 #include <stddef.h>
21351 int
21352 main ()
21353 {
21354 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21355 test_array [0] = 0
21356
21357   ;
21358   return 0;
21359 }
21360 _ACEOF
21361 rm -f conftest.$ac_objext
21362 if { (ac_try="$ac_compile"
21363 case "(($ac_try" in
21364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365   *) ac_try_echo=$ac_try;;
21366 esac
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368   (eval "$ac_compile") 2>conftest.er1
21369   ac_status=$?
21370   grep -v '^ *+' conftest.er1 >conftest.err
21371   rm -f conftest.er1
21372   cat conftest.err >&5
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); } && {
21375          test -z "$ac_c_werror_flag" ||
21376          test ! -s conftest.err
21377        } && test -s conftest.$ac_objext; then
21378   ac_hi=$ac_mid
21379 else
21380   echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21382
21383         ac_lo=`expr '(' $ac_mid ')' + 1`
21384 fi
21385
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387 done
21388 case $ac_lo in
21389 ?*) res_lo=$ac_lo;;
21390 '') result=? ;;
21391 esac
21392 else
21393   cat >conftest.$ac_ext <<_ACEOF
21394 /* confdefs.h.  */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h.  */
21399 #include <stddef.h>
21400 static long int longval () { return ~(size_t)0 % 10; }
21401 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21402 #include <stdio.h>
21403 #include <stdlib.h>
21404 int
21405 main ()
21406 {
21407
21408   FILE *f = fopen ("conftest.val", "w");
21409   if (! f)
21410     return 1;
21411   if ((~(size_t)0 % 10) < 0)
21412     {
21413       long int i = longval ();
21414       if (i != (~(size_t)0 % 10))
21415         return 1;
21416       fprintf (f, "%ld\n", i);
21417     }
21418   else
21419     {
21420       unsigned long int i = ulongval ();
21421       if (i != (~(size_t)0 % 10))
21422         return 1;
21423       fprintf (f, "%lu\n", i);
21424     }
21425   return ferror (f) || fclose (f) != 0;
21426
21427   ;
21428   return 0;
21429 }
21430 _ACEOF
21431 rm -f conftest$ac_exeext
21432 if { (ac_try="$ac_link"
21433 case "(($ac_try" in
21434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435   *) ac_try_echo=$ac_try;;
21436 esac
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438   (eval "$ac_link") 2>&5
21439   ac_status=$?
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21442   { (case "(($ac_try" in
21443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21444   *) ac_try_echo=$ac_try;;
21445 esac
21446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447   (eval "$ac_try") 2>&5
21448   ac_status=$?
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); }; }; then
21451   res_lo=`cat conftest.val`
21452 else
21453   echo "$as_me: program exited with status $ac_status" >&5
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21456
21457 ( exit $ac_status )
21458 result=?
21459 fi
21460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21461 fi
21462 rm -f conftest.val
21463
21464     if test "$cross_compiling" = yes; then
21465   # Depending upon the size, compute the lo and hi bounds.
21466 cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h.  */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h.  */
21472 #include <stddef.h>
21473 int
21474 main ()
21475 {
21476 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21477 test_array [0] = 0
21478
21479   ;
21480   return 0;
21481 }
21482 _ACEOF
21483 rm -f conftest.$ac_objext
21484 if { (ac_try="$ac_compile"
21485 case "(($ac_try" in
21486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487   *) ac_try_echo=$ac_try;;
21488 esac
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490   (eval "$ac_compile") 2>conftest.er1
21491   ac_status=$?
21492   grep -v '^ *+' conftest.er1 >conftest.err
21493   rm -f conftest.er1
21494   cat conftest.err >&5
21495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496   (exit $ac_status); } && {
21497          test -z "$ac_c_werror_flag" ||
21498          test ! -s conftest.err
21499        } && test -s conftest.$ac_objext; then
21500   ac_lo=0 ac_mid=0
21501   while :; do
21502     cat >conftest.$ac_ext <<_ACEOF
21503 /* confdefs.h.  */
21504 _ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h.  */
21508 #include <stddef.h>
21509 int
21510 main ()
21511 {
21512 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21513 test_array [0] = 0
21514
21515   ;
21516   return 0;
21517 }
21518 _ACEOF
21519 rm -f conftest.$ac_objext
21520 if { (ac_try="$ac_compile"
21521 case "(($ac_try" in
21522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21523   *) ac_try_echo=$ac_try;;
21524 esac
21525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21526   (eval "$ac_compile") 2>conftest.er1
21527   ac_status=$?
21528   grep -v '^ *+' conftest.er1 >conftest.err
21529   rm -f conftest.er1
21530   cat conftest.err >&5
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); } && {
21533          test -z "$ac_c_werror_flag" ||
21534          test ! -s conftest.err
21535        } && test -s conftest.$ac_objext; then
21536   ac_hi=$ac_mid; break
21537 else
21538   echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21540
21541         ac_lo=`expr $ac_mid + 1`
21542                         if test $ac_lo -le $ac_mid; then
21543                           ac_lo= ac_hi=
21544                           break
21545                         fi
21546                         ac_mid=`expr 2 '*' $ac_mid + 1`
21547 fi
21548
21549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21550   done
21551 else
21552   echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21554
21555         cat >conftest.$ac_ext <<_ACEOF
21556 /* confdefs.h.  */
21557 _ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h.  */
21561 #include <stddef.h>
21562 int
21563 main ()
21564 {
21565 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21566 test_array [0] = 0
21567
21568   ;
21569   return 0;
21570 }
21571 _ACEOF
21572 rm -f conftest.$ac_objext
21573 if { (ac_try="$ac_compile"
21574 case "(($ac_try" in
21575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576   *) ac_try_echo=$ac_try;;
21577 esac
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579   (eval "$ac_compile") 2>conftest.er1
21580   ac_status=$?
21581   grep -v '^ *+' conftest.er1 >conftest.err
21582   rm -f conftest.er1
21583   cat conftest.err >&5
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); } && {
21586          test -z "$ac_c_werror_flag" ||
21587          test ! -s conftest.err
21588        } && test -s conftest.$ac_objext; then
21589   ac_hi=-1 ac_mid=-1
21590   while :; do
21591     cat >conftest.$ac_ext <<_ACEOF
21592 /* confdefs.h.  */
21593 _ACEOF
21594 cat confdefs.h >>conftest.$ac_ext
21595 cat >>conftest.$ac_ext <<_ACEOF
21596 /* end confdefs.h.  */
21597 #include <stddef.h>
21598 int
21599 main ()
21600 {
21601 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21602 test_array [0] = 0
21603
21604   ;
21605   return 0;
21606 }
21607 _ACEOF
21608 rm -f conftest.$ac_objext
21609 if { (ac_try="$ac_compile"
21610 case "(($ac_try" in
21611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612   *) ac_try_echo=$ac_try;;
21613 esac
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615   (eval "$ac_compile") 2>conftest.er1
21616   ac_status=$?
21617   grep -v '^ *+' conftest.er1 >conftest.err
21618   rm -f conftest.er1
21619   cat conftest.err >&5
21620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621   (exit $ac_status); } && {
21622          test -z "$ac_c_werror_flag" ||
21623          test ! -s conftest.err
21624        } && test -s conftest.$ac_objext; then
21625   ac_lo=$ac_mid; break
21626 else
21627   echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21629
21630         ac_hi=`expr '(' $ac_mid ')' - 1`
21631                         if test $ac_mid -le $ac_hi; then
21632                           ac_lo= ac_hi=
21633                           break
21634                         fi
21635                         ac_mid=`expr 2 '*' $ac_mid`
21636 fi
21637
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639   done
21640 else
21641   echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21643
21644         ac_lo= ac_hi=
21645 fi
21646
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648 fi
21649
21650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651 # Binary search between lo and hi bounds.
21652 while test "x$ac_lo" != "x$ac_hi"; do
21653   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21654   cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h.  */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h.  */
21660 #include <stddef.h>
21661 int
21662 main ()
21663 {
21664 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21665 test_array [0] = 0
21666
21667   ;
21668   return 0;
21669 }
21670 _ACEOF
21671 rm -f conftest.$ac_objext
21672 if { (ac_try="$ac_compile"
21673 case "(($ac_try" in
21674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675   *) ac_try_echo=$ac_try;;
21676 esac
21677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678   (eval "$ac_compile") 2>conftest.er1
21679   ac_status=$?
21680   grep -v '^ *+' conftest.er1 >conftest.err
21681   rm -f conftest.er1
21682   cat conftest.err >&5
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); } && {
21685          test -z "$ac_c_werror_flag" ||
21686          test ! -s conftest.err
21687        } && test -s conftest.$ac_objext; then
21688   ac_hi=$ac_mid
21689 else
21690   echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21692
21693         ac_lo=`expr '(' $ac_mid ')' + 1`
21694 fi
21695
21696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21697 done
21698 case $ac_lo in
21699 ?*) fits_in_uint=$ac_lo;;
21700 '') result=? ;;
21701 esac
21702 else
21703   cat >conftest.$ac_ext <<_ACEOF
21704 /* confdefs.h.  */
21705 _ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h.  */
21709 #include <stddef.h>
21710 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21711 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21712 #include <stdio.h>
21713 #include <stdlib.h>
21714 int
21715 main ()
21716 {
21717
21718   FILE *f = fopen ("conftest.val", "w");
21719   if (! f)
21720     return 1;
21721   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21722     {
21723       long int i = longval ();
21724       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21725         return 1;
21726       fprintf (f, "%ld\n", i);
21727     }
21728   else
21729     {
21730       unsigned long int i = ulongval ();
21731       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21732         return 1;
21733       fprintf (f, "%lu\n", i);
21734     }
21735   return ferror (f) || fclose (f) != 0;
21736
21737   ;
21738   return 0;
21739 }
21740 _ACEOF
21741 rm -f conftest$ac_exeext
21742 if { (ac_try="$ac_link"
21743 case "(($ac_try" in
21744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745   *) ac_try_echo=$ac_try;;
21746 esac
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748   (eval "$ac_link") 2>&5
21749   ac_status=$?
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21752   { (case "(($ac_try" in
21753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754   *) ac_try_echo=$ac_try;;
21755 esac
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757   (eval "$ac_try") 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); }; }; then
21761   fits_in_uint=`cat conftest.val`
21762 else
21763   echo "$as_me: program exited with status $ac_status" >&5
21764 echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21766
21767 ( exit $ac_status )
21768 result=?
21769 fi
21770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21771 fi
21772 rm -f conftest.val
21773
21774     if test "$fits_in_uint" = 1; then
21775                   cat >conftest.$ac_ext <<_ACEOF
21776 /* confdefs.h.  */
21777 _ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h.  */
21781 #include <stddef.h>
21782         extern size_t foo;
21783         extern unsigned long foo;
21784
21785 int
21786 main ()
21787 {
21788
21789   ;
21790   return 0;
21791 }
21792 _ACEOF
21793 rm -f conftest.$ac_objext
21794 if { (ac_try="$ac_compile"
21795 case "(($ac_try" in
21796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21797   *) ac_try_echo=$ac_try;;
21798 esac
21799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21800   (eval "$ac_compile") 2>conftest.er1
21801   ac_status=$?
21802   grep -v '^ *+' conftest.er1 >conftest.err
21803   rm -f conftest.er1
21804   cat conftest.err >&5
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); } && {
21807          test -z "$ac_c_werror_flag" ||
21808          test ! -s conftest.err
21809        } && test -s conftest.$ac_objext; then
21810   fits_in_uint=0
21811 else
21812   echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21814
21815
21816 fi
21817
21818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21819     fi
21820     if test -z "$result"; then
21821       if test "$fits_in_uint" = 1; then
21822         result="$res_hi$res_lo"U
21823       else
21824         result="$res_hi$res_lo"UL
21825       fi
21826     else
21827             result='~(size_t)0'
21828     fi
21829   fi
21830   { echo "$as_me:$LINENO: result: $result" >&5
21831 echo "${ECHO_T}$result" >&6; }
21832   if test "$result" != yes; then
21833
21834 cat >>confdefs.h <<_ACEOF
21835 #define SIZE_MAX $result
21836 _ACEOF
21837
21838   fi
21839
21840
21841
21842
21843
21844 for ac_header in stdint.h
21845 do
21846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21848   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21851   echo $ECHO_N "(cached) $ECHO_C" >&6
21852 fi
21853 ac_res=`eval echo '${'$as_ac_Header'}'`
21854                { echo "$as_me:$LINENO: result: $ac_res" >&5
21855 echo "${ECHO_T}$ac_res" >&6; }
21856 else
21857   # Is the header compilable?
21858 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21860 cat >conftest.$ac_ext <<_ACEOF
21861 /* confdefs.h.  */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h.  */
21866 $ac_includes_default
21867 #include <$ac_header>
21868 _ACEOF
21869 rm -f conftest.$ac_objext
21870 if { (ac_try="$ac_compile"
21871 case "(($ac_try" in
21872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873   *) ac_try_echo=$ac_try;;
21874 esac
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876   (eval "$ac_compile") 2>conftest.er1
21877   ac_status=$?
21878   grep -v '^ *+' conftest.er1 >conftest.err
21879   rm -f conftest.er1
21880   cat conftest.err >&5
21881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882   (exit $ac_status); } && {
21883          test -z "$ac_c_werror_flag" ||
21884          test ! -s conftest.err
21885        } && test -s conftest.$ac_objext; then
21886   ac_header_compiler=yes
21887 else
21888   echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21890
21891         ac_header_compiler=no
21892 fi
21893
21894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21896 echo "${ECHO_T}$ac_header_compiler" >&6; }
21897
21898 # Is the header present?
21899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21901 cat >conftest.$ac_ext <<_ACEOF
21902 /* confdefs.h.  */
21903 _ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h.  */
21907 #include <$ac_header>
21908 _ACEOF
21909 if { (ac_try="$ac_cpp conftest.$ac_ext"
21910 case "(($ac_try" in
21911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912   *) ac_try_echo=$ac_try;;
21913 esac
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21916   ac_status=$?
21917   grep -v '^ *+' conftest.er1 >conftest.err
21918   rm -f conftest.er1
21919   cat conftest.err >&5
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); } >/dev/null && {
21922          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21923          test ! -s conftest.err
21924        }; then
21925   ac_header_preproc=yes
21926 else
21927   echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21929
21930   ac_header_preproc=no
21931 fi
21932
21933 rm -f conftest.err conftest.$ac_ext
21934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21935 echo "${ECHO_T}$ac_header_preproc" >&6; }
21936
21937 # So?  What about this header?
21938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21939   yes:no: )
21940     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21944     ac_header_preproc=yes
21945     ;;
21946   no:yes:* )
21947     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21949     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21950 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21951     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21953     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21954 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21957     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21959
21960     ;;
21961 esac
21962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21965   echo $ECHO_N "(cached) $ECHO_C" >&6
21966 else
21967   eval "$as_ac_Header=\$ac_header_preproc"
21968 fi
21969 ac_res=`eval echo '${'$as_ac_Header'}'`
21970                { echo "$as_me:$LINENO: result: $ac_res" >&5
21971 echo "${ECHO_T}$ac_res" >&6; }
21972
21973 fi
21974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21975   cat >>confdefs.h <<_ACEOF
21976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21977 _ACEOF
21978
21979 fi
21980
21981 done
21982
21983
21984
21985
21986
21987
21988
21989
21990   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21991 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21992 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21993   echo $ECHO_N "(cached) $ECHO_C" >&6
21994 else
21995   cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h.  */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h.  */
22001 $ac_includes_default
22002 typedef ptrdiff_t ac__type_new_;
22003 int
22004 main ()
22005 {
22006 if ((ac__type_new_ *) 0)
22007   return 0;
22008 if (sizeof (ac__type_new_))
22009   return 0;
22010   ;
22011   return 0;
22012 }
22013 _ACEOF
22014 rm -f conftest.$ac_objext
22015 if { (ac_try="$ac_compile"
22016 case "(($ac_try" in
22017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018   *) ac_try_echo=$ac_try;;
22019 esac
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021   (eval "$ac_compile") 2>conftest.er1
22022   ac_status=$?
22023   grep -v '^ *+' conftest.er1 >conftest.err
22024   rm -f conftest.er1
22025   cat conftest.err >&5
22026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027   (exit $ac_status); } && {
22028          test -z "$ac_c_werror_flag" ||
22029          test ! -s conftest.err
22030        } && test -s conftest.$ac_objext; then
22031   ac_cv_type_ptrdiff_t=yes
22032 else
22033   echo "$as_me: failed program was:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22035
22036         ac_cv_type_ptrdiff_t=no
22037 fi
22038
22039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22040 fi
22041 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22042 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22043 if test $ac_cv_type_ptrdiff_t = yes; then
22044   :
22045 else
22046
22047 cat >>confdefs.h <<\_ACEOF
22048 #define ptrdiff_t long
22049 _ACEOF
22050
22051
22052 fi
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22065 stdlib.h string.h unistd.h sys/param.h
22066 do
22067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22069   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22072   echo $ECHO_N "(cached) $ECHO_C" >&6
22073 fi
22074 ac_res=`eval echo '${'$as_ac_Header'}'`
22075                { echo "$as_me:$LINENO: result: $ac_res" >&5
22076 echo "${ECHO_T}$ac_res" >&6; }
22077 else
22078   # Is the header compilable?
22079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22081 cat >conftest.$ac_ext <<_ACEOF
22082 /* confdefs.h.  */
22083 _ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h.  */
22087 $ac_includes_default
22088 #include <$ac_header>
22089 _ACEOF
22090 rm -f conftest.$ac_objext
22091 if { (ac_try="$ac_compile"
22092 case "(($ac_try" in
22093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094   *) ac_try_echo=$ac_try;;
22095 esac
22096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22097   (eval "$ac_compile") 2>conftest.er1
22098   ac_status=$?
22099   grep -v '^ *+' conftest.er1 >conftest.err
22100   rm -f conftest.er1
22101   cat conftest.err >&5
22102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103   (exit $ac_status); } && {
22104          test -z "$ac_c_werror_flag" ||
22105          test ! -s conftest.err
22106        } && test -s conftest.$ac_objext; then
22107   ac_header_compiler=yes
22108 else
22109   echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22111
22112         ac_header_compiler=no
22113 fi
22114
22115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22117 echo "${ECHO_T}$ac_header_compiler" >&6; }
22118
22119 # Is the header present?
22120 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22122 cat >conftest.$ac_ext <<_ACEOF
22123 /* confdefs.h.  */
22124 _ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h.  */
22128 #include <$ac_header>
22129 _ACEOF
22130 if { (ac_try="$ac_cpp conftest.$ac_ext"
22131 case "(($ac_try" in
22132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133   *) ac_try_echo=$ac_try;;
22134 esac
22135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22137   ac_status=$?
22138   grep -v '^ *+' conftest.er1 >conftest.err
22139   rm -f conftest.er1
22140   cat conftest.err >&5
22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); } >/dev/null && {
22143          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22144          test ! -s conftest.err
22145        }; then
22146   ac_header_preproc=yes
22147 else
22148   echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22150
22151   ac_header_preproc=no
22152 fi
22153
22154 rm -f conftest.err conftest.$ac_ext
22155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22156 echo "${ECHO_T}$ac_header_preproc" >&6; }
22157
22158 # So?  What about this header?
22159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22160   yes:no: )
22161     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22165     ac_header_preproc=yes
22166     ;;
22167   no:yes:* )
22168     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22170     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22171 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22172     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22174     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22175 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22178     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22180
22181     ;;
22182 esac
22183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22186   echo $ECHO_N "(cached) $ECHO_C" >&6
22187 else
22188   eval "$as_ac_Header=\$ac_header_preproc"
22189 fi
22190 ac_res=`eval echo '${'$as_ac_Header'}'`
22191                { echo "$as_me:$LINENO: result: $ac_res" >&5
22192 echo "${ECHO_T}$ac_res" >&6; }
22193
22194 fi
22195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22196   cat >>confdefs.h <<_ACEOF
22197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22198 _ACEOF
22199
22200 fi
22201
22202 done
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22228 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22229 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22230 __fsetlocking
22231 do
22232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22236   echo $ECHO_N "(cached) $ECHO_C" >&6
22237 else
22238   cat >conftest.$ac_ext <<_ACEOF
22239 /* confdefs.h.  */
22240 _ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h.  */
22244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22246 #define $ac_func innocuous_$ac_func
22247
22248 /* System header to define __stub macros and hopefully few prototypes,
22249     which can conflict with char $ac_func (); below.
22250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22251     <limits.h> exists even on freestanding compilers.  */
22252
22253 #ifdef __STDC__
22254 # include <limits.h>
22255 #else
22256 # include <assert.h>
22257 #endif
22258
22259 #undef $ac_func
22260
22261 /* Override any GCC internal prototype to avoid an error.
22262    Use char because int might match the return type of a GCC
22263    builtin and then its argument prototype would still apply.  */
22264 #ifdef __cplusplus
22265 extern "C"
22266 #endif
22267 char $ac_func ();
22268 /* The GNU C library defines this for functions which it implements
22269     to always fail with ENOSYS.  Some functions are actually named
22270     something starting with __ and the normal name is an alias.  */
22271 #if defined __stub_$ac_func || defined __stub___$ac_func
22272 choke me
22273 #endif
22274
22275 int
22276 main ()
22277 {
22278 return $ac_func ();
22279   ;
22280   return 0;
22281 }
22282 _ACEOF
22283 rm -f conftest.$ac_objext conftest$ac_exeext
22284 if { (ac_try="$ac_link"
22285 case "(($ac_try" in
22286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287   *) ac_try_echo=$ac_try;;
22288 esac
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290   (eval "$ac_link") 2>conftest.er1
22291   ac_status=$?
22292   grep -v '^ *+' conftest.er1 >conftest.err
22293   rm -f conftest.er1
22294   cat conftest.err >&5
22295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296   (exit $ac_status); } && {
22297          test -z "$ac_c_werror_flag" ||
22298          test ! -s conftest.err
22299        } && test -s conftest$ac_exeext &&
22300        $as_test_x conftest$ac_exeext; then
22301   eval "$as_ac_var=yes"
22302 else
22303   echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22305
22306         eval "$as_ac_var=no"
22307 fi
22308
22309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22310       conftest$ac_exeext conftest.$ac_ext
22311 fi
22312 ac_res=`eval echo '${'$as_ac_var'}'`
22313                { echo "$as_me:$LINENO: result: $ac_res" >&5
22314 echo "${ECHO_T}$ac_res" >&6; }
22315 if test `eval echo '${'$as_ac_var'}'` = yes; then
22316   cat >>confdefs.h <<_ACEOF
22317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22318 _ACEOF
22319
22320 fi
22321 done
22322
22323
22324
22325   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22326 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22327 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22328   echo $ECHO_N "(cached) $ECHO_C" >&6
22329 else
22330   cat >conftest.$ac_ext <<_ACEOF
22331 /* confdefs.h.  */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h.  */
22336 #include <stdio.h>
22337 int
22338 main ()
22339 {
22340
22341 #ifndef _snprintf
22342   char *p = (char *) _snprintf;
22343 #endif
22344
22345   ;
22346   return 0;
22347 }
22348 _ACEOF
22349 rm -f conftest.$ac_objext
22350 if { (ac_try="$ac_compile"
22351 case "(($ac_try" in
22352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353   *) ac_try_echo=$ac_try;;
22354 esac
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356   (eval "$ac_compile") 2>conftest.er1
22357   ac_status=$?
22358   grep -v '^ *+' conftest.er1 >conftest.err
22359   rm -f conftest.er1
22360   cat conftest.err >&5
22361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362   (exit $ac_status); } && {
22363          test -z "$ac_c_werror_flag" ||
22364          test ! -s conftest.err
22365        } && test -s conftest.$ac_objext; then
22366   ac_cv_have_decl__snprintf=yes
22367 else
22368   echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22370
22371         ac_cv_have_decl__snprintf=no
22372 fi
22373
22374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22375 fi
22376 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22377 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22378   if test $ac_cv_have_decl__snprintf = yes; then
22379     gt_value=1
22380   else
22381     gt_value=0
22382   fi
22383
22384 cat >>confdefs.h <<_ACEOF
22385 #define HAVE_DECL__SNPRINTF $gt_value
22386 _ACEOF
22387
22388
22389
22390   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22391 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22392 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22393   echo $ECHO_N "(cached) $ECHO_C" >&6
22394 else
22395   cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h.  */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h.  */
22401 #include <stdio.h>
22402 int
22403 main ()
22404 {
22405
22406 #ifndef _snwprintf
22407   char *p = (char *) _snwprintf;
22408 #endif
22409
22410   ;
22411   return 0;
22412 }
22413 _ACEOF
22414 rm -f conftest.$ac_objext
22415 if { (ac_try="$ac_compile"
22416 case "(($ac_try" in
22417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418   *) ac_try_echo=$ac_try;;
22419 esac
22420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22421   (eval "$ac_compile") 2>conftest.er1
22422   ac_status=$?
22423   grep -v '^ *+' conftest.er1 >conftest.err
22424   rm -f conftest.er1
22425   cat conftest.err >&5
22426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427   (exit $ac_status); } && {
22428          test -z "$ac_c_werror_flag" ||
22429          test ! -s conftest.err
22430        } && test -s conftest.$ac_objext; then
22431   ac_cv_have_decl__snwprintf=yes
22432 else
22433   echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22435
22436         ac_cv_have_decl__snwprintf=no
22437 fi
22438
22439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22440 fi
22441 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22442 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22443   if test $ac_cv_have_decl__snwprintf = yes; then
22444     gt_value=1
22445   else
22446     gt_value=0
22447   fi
22448
22449 cat >>confdefs.h <<_ACEOF
22450 #define HAVE_DECL__SNWPRINTF $gt_value
22451 _ACEOF
22452
22453
22454
22455
22456   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22457 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22458 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22459   echo $ECHO_N "(cached) $ECHO_C" >&6
22460 else
22461   cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h.  */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h.  */
22467 #include <stdio.h>
22468 int
22469 main ()
22470 {
22471
22472 #ifndef feof_unlocked
22473   char *p = (char *) feof_unlocked;
22474 #endif
22475
22476   ;
22477   return 0;
22478 }
22479 _ACEOF
22480 rm -f conftest.$ac_objext
22481 if { (ac_try="$ac_compile"
22482 case "(($ac_try" in
22483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484   *) ac_try_echo=$ac_try;;
22485 esac
22486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22487   (eval "$ac_compile") 2>conftest.er1
22488   ac_status=$?
22489   grep -v '^ *+' conftest.er1 >conftest.err
22490   rm -f conftest.er1
22491   cat conftest.err >&5
22492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493   (exit $ac_status); } && {
22494          test -z "$ac_c_werror_flag" ||
22495          test ! -s conftest.err
22496        } && test -s conftest.$ac_objext; then
22497   ac_cv_have_decl_feof_unlocked=yes
22498 else
22499   echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22501
22502         ac_cv_have_decl_feof_unlocked=no
22503 fi
22504
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22506 fi
22507 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22508 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22509   if test $ac_cv_have_decl_feof_unlocked = yes; then
22510     gt_value=1
22511   else
22512     gt_value=0
22513   fi
22514
22515 cat >>confdefs.h <<_ACEOF
22516 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22517 _ACEOF
22518
22519
22520
22521   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22522 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22523 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22524   echo $ECHO_N "(cached) $ECHO_C" >&6
22525 else
22526   cat >conftest.$ac_ext <<_ACEOF
22527 /* confdefs.h.  */
22528 _ACEOF
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h.  */
22532 #include <stdio.h>
22533 int
22534 main ()
22535 {
22536
22537 #ifndef fgets_unlocked
22538   char *p = (char *) fgets_unlocked;
22539 #endif
22540
22541   ;
22542   return 0;
22543 }
22544 _ACEOF
22545 rm -f conftest.$ac_objext
22546 if { (ac_try="$ac_compile"
22547 case "(($ac_try" in
22548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549   *) ac_try_echo=$ac_try;;
22550 esac
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552   (eval "$ac_compile") 2>conftest.er1
22553   ac_status=$?
22554   grep -v '^ *+' conftest.er1 >conftest.err
22555   rm -f conftest.er1
22556   cat conftest.err >&5
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); } && {
22559          test -z "$ac_c_werror_flag" ||
22560          test ! -s conftest.err
22561        } && test -s conftest.$ac_objext; then
22562   ac_cv_have_decl_fgets_unlocked=yes
22563 else
22564   echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567         ac_cv_have_decl_fgets_unlocked=no
22568 fi
22569
22570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22571 fi
22572 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22573 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22574   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22575     gt_value=1
22576   else
22577     gt_value=0
22578   fi
22579
22580 cat >>confdefs.h <<_ACEOF
22581 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22582 _ACEOF
22583
22584
22585
22586   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22587 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22588 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22589   echo $ECHO_N "(cached) $ECHO_C" >&6
22590 else
22591   cat >conftest.$ac_ext <<_ACEOF
22592 /* confdefs.h.  */
22593 _ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h.  */
22597 #include <stdio.h>
22598 int
22599 main ()
22600 {
22601
22602 #ifndef getc_unlocked
22603   char *p = (char *) getc_unlocked;
22604 #endif
22605
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614   *) ac_try_echo=$ac_try;;
22615 esac
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617   (eval "$ac_compile") 2>conftest.er1
22618   ac_status=$?
22619   grep -v '^ *+' conftest.er1 >conftest.err
22620   rm -f conftest.er1
22621   cat conftest.err >&5
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); } && {
22624          test -z "$ac_c_werror_flag" ||
22625          test ! -s conftest.err
22626        } && test -s conftest.$ac_objext; then
22627   ac_cv_have_decl_getc_unlocked=yes
22628 else
22629   echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632         ac_cv_have_decl_getc_unlocked=no
22633 fi
22634
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636 fi
22637 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22638 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22639   if test $ac_cv_have_decl_getc_unlocked = yes; then
22640     gt_value=1
22641   else
22642     gt_value=0
22643   fi
22644
22645 cat >>confdefs.h <<_ACEOF
22646 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22647 _ACEOF
22648
22649
22650
22651   case $gt_cv_func_printf_posix in
22652     *yes) HAVE_POSIX_PRINTF=1 ;;
22653     *) HAVE_POSIX_PRINTF=0 ;;
22654   esac
22655
22656   if test "$ac_cv_func_asprintf" = yes; then
22657     HAVE_ASPRINTF=1
22658   else
22659     HAVE_ASPRINTF=0
22660   fi
22661
22662   if test "$ac_cv_func_snprintf" = yes; then
22663     HAVE_SNPRINTF=1
22664   else
22665     HAVE_SNPRINTF=0
22666   fi
22667
22668   if test "$ac_cv_func_wprintf" = yes; then
22669     HAVE_WPRINTF=1
22670   else
22671     HAVE_WPRINTF=0
22672   fi
22673
22674
22675
22676
22677
22678
22679
22680           am_save_CPPFLAGS="$CPPFLAGS"
22681
22682   for element in $INCICONV; do
22683     haveit=
22684     for x in $CPPFLAGS; do
22685
22686   acl_save_prefix="$prefix"
22687   prefix="$acl_final_prefix"
22688   acl_save_exec_prefix="$exec_prefix"
22689   exec_prefix="$acl_final_exec_prefix"
22690   eval x=\"$x\"
22691   exec_prefix="$acl_save_exec_prefix"
22692   prefix="$acl_save_prefix"
22693
22694       if test "X$x" = "X$element"; then
22695         haveit=yes
22696         break
22697       fi
22698     done
22699     if test -z "$haveit"; then
22700       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22701     fi
22702   done
22703
22704
22705   { echo "$as_me:$LINENO: checking for iconv" >&5
22706 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22707 if test "${am_cv_func_iconv+set}" = set; then
22708   echo $ECHO_N "(cached) $ECHO_C" >&6
22709 else
22710
22711     am_cv_func_iconv="no, consider installing GNU libiconv"
22712     am_cv_lib_iconv=no
22713     cat >conftest.$ac_ext <<_ACEOF
22714 /* confdefs.h.  */
22715 _ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h.  */
22719 #include <stdlib.h>
22720 #include <iconv.h>
22721 int
22722 main ()
22723 {
22724 iconv_t cd = iconv_open("","");
22725        iconv(cd,NULL,NULL,NULL,NULL);
22726        iconv_close(cd);
22727   ;
22728   return 0;
22729 }
22730 _ACEOF
22731 rm -f conftest.$ac_objext conftest$ac_exeext
22732 if { (ac_try="$ac_link"
22733 case "(($ac_try" in
22734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735   *) ac_try_echo=$ac_try;;
22736 esac
22737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738   (eval "$ac_link") 2>conftest.er1
22739   ac_status=$?
22740   grep -v '^ *+' conftest.er1 >conftest.err
22741   rm -f conftest.er1
22742   cat conftest.err >&5
22743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744   (exit $ac_status); } && {
22745          test -z "$ac_c_werror_flag" ||
22746          test ! -s conftest.err
22747        } && test -s conftest$ac_exeext &&
22748        $as_test_x conftest$ac_exeext; then
22749   am_cv_func_iconv=yes
22750 else
22751   echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22753
22754
22755 fi
22756
22757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22758       conftest$ac_exeext conftest.$ac_ext
22759     if test "$am_cv_func_iconv" != yes; then
22760       am_save_LIBS="$LIBS"
22761       LIBS="$LIBS $LIBICONV"
22762       cat >conftest.$ac_ext <<_ACEOF
22763 /* confdefs.h.  */
22764 _ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h.  */
22768 #include <stdlib.h>
22769 #include <iconv.h>
22770 int
22771 main ()
22772 {
22773 iconv_t cd = iconv_open("","");
22774          iconv(cd,NULL,NULL,NULL,NULL);
22775          iconv_close(cd);
22776   ;
22777   return 0;
22778 }
22779 _ACEOF
22780 rm -f conftest.$ac_objext conftest$ac_exeext
22781 if { (ac_try="$ac_link"
22782 case "(($ac_try" in
22783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784   *) ac_try_echo=$ac_try;;
22785 esac
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787   (eval "$ac_link") 2>conftest.er1
22788   ac_status=$?
22789   grep -v '^ *+' conftest.er1 >conftest.err
22790   rm -f conftest.er1
22791   cat conftest.err >&5
22792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793   (exit $ac_status); } && {
22794          test -z "$ac_c_werror_flag" ||
22795          test ! -s conftest.err
22796        } && test -s conftest$ac_exeext &&
22797        $as_test_x conftest$ac_exeext; then
22798   am_cv_lib_iconv=yes
22799         am_cv_func_iconv=yes
22800 else
22801   echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22803
22804
22805 fi
22806
22807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22808       conftest$ac_exeext conftest.$ac_ext
22809       LIBS="$am_save_LIBS"
22810     fi
22811
22812 fi
22813 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22814 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22815   if test "$am_cv_func_iconv" = yes; then
22816
22817 cat >>confdefs.h <<\_ACEOF
22818 #define HAVE_ICONV 1
22819 _ACEOF
22820
22821   fi
22822   if test "$am_cv_lib_iconv" = yes; then
22823     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22824 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22825     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22826 echo "${ECHO_T}$LIBICONV" >&6; }
22827   else
22828             CPPFLAGS="$am_save_CPPFLAGS"
22829     LIBICONV=
22830     LTLIBICONV=
22831   fi
22832
22833
22834
22835   if test "$am_cv_func_iconv" = yes; then
22836     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22837 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22838     if test "${am_cv_proto_iconv+set}" = set; then
22839   echo $ECHO_N "(cached) $ECHO_C" >&6
22840 else
22841
22842       cat >conftest.$ac_ext <<_ACEOF
22843 /* confdefs.h.  */
22844 _ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h.  */
22848
22849 #include <stdlib.h>
22850 #include <iconv.h>
22851 extern
22852 #ifdef __cplusplus
22853 "C"
22854 #endif
22855 #if defined(__STDC__) || defined(__cplusplus)
22856 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22857 #else
22858 size_t iconv();
22859 #endif
22860
22861 int
22862 main ()
22863 {
22864
22865   ;
22866   return 0;
22867 }
22868 _ACEOF
22869 rm -f conftest.$ac_objext
22870 if { (ac_try="$ac_compile"
22871 case "(($ac_try" in
22872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873   *) ac_try_echo=$ac_try;;
22874 esac
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876   (eval "$ac_compile") 2>conftest.er1
22877   ac_status=$?
22878   grep -v '^ *+' conftest.er1 >conftest.err
22879   rm -f conftest.er1
22880   cat conftest.err >&5
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); } && {
22883          test -z "$ac_c_werror_flag" ||
22884          test ! -s conftest.err
22885        } && test -s conftest.$ac_objext; then
22886   am_cv_proto_iconv_arg1=""
22887 else
22888   echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22890
22891         am_cv_proto_iconv_arg1="const"
22892 fi
22893
22894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22895       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);"
22896 fi
22897
22898     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22899     { echo "$as_me:$LINENO: result: ${ac_t:-
22900          }$am_cv_proto_iconv" >&5
22901 echo "${ECHO_T}${ac_t:-
22902          }$am_cv_proto_iconv" >&6; }
22903
22904 cat >>confdefs.h <<_ACEOF
22905 #define ICONV_CONST $am_cv_proto_iconv_arg1
22906 _ACEOF
22907
22908   fi
22909
22910
22911   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22912 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22913 if test "${am_cv_langinfo_codeset+set}" = set; then
22914   echo $ECHO_N "(cached) $ECHO_C" >&6
22915 else
22916   cat >conftest.$ac_ext <<_ACEOF
22917 /* confdefs.h.  */
22918 _ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h.  */
22922 #include <langinfo.h>
22923 int
22924 main ()
22925 {
22926 char* cs = nl_langinfo(CODESET);
22927   ;
22928   return 0;
22929 }
22930 _ACEOF
22931 rm -f conftest.$ac_objext conftest$ac_exeext
22932 if { (ac_try="$ac_link"
22933 case "(($ac_try" in
22934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935   *) ac_try_echo=$ac_try;;
22936 esac
22937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22938   (eval "$ac_link") 2>conftest.er1
22939   ac_status=$?
22940   grep -v '^ *+' conftest.er1 >conftest.err
22941   rm -f conftest.er1
22942   cat conftest.err >&5
22943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944   (exit $ac_status); } && {
22945          test -z "$ac_c_werror_flag" ||
22946          test ! -s conftest.err
22947        } && test -s conftest$ac_exeext &&
22948        $as_test_x conftest$ac_exeext; then
22949   am_cv_langinfo_codeset=yes
22950 else
22951   echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22953
22954         am_cv_langinfo_codeset=no
22955 fi
22956
22957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22958       conftest$ac_exeext conftest.$ac_ext
22959
22960 fi
22961 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22962 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22963   if test $am_cv_langinfo_codeset = yes; then
22964
22965 cat >>confdefs.h <<\_ACEOF
22966 #define HAVE_LANGINFO_CODESET 1
22967 _ACEOF
22968
22969   fi
22970
22971   if test $ac_cv_header_locale_h = yes; then
22972
22973   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22974 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22975 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22976   echo $ECHO_N "(cached) $ECHO_C" >&6
22977 else
22978   cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h.  */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h.  */
22984 #include <locale.h>
22985 int
22986 main ()
22987 {
22988 return LC_MESSAGES
22989   ;
22990   return 0;
22991 }
22992 _ACEOF
22993 rm -f conftest.$ac_objext conftest$ac_exeext
22994 if { (ac_try="$ac_link"
22995 case "(($ac_try" in
22996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997   *) ac_try_echo=$ac_try;;
22998 esac
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000   (eval "$ac_link") 2>conftest.er1
23001   ac_status=$?
23002   grep -v '^ *+' conftest.er1 >conftest.err
23003   rm -f conftest.er1
23004   cat conftest.err >&5
23005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006   (exit $ac_status); } && {
23007          test -z "$ac_c_werror_flag" ||
23008          test ! -s conftest.err
23009        } && test -s conftest$ac_exeext &&
23010        $as_test_x conftest$ac_exeext; then
23011   gt_cv_val_LC_MESSAGES=yes
23012 else
23013   echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23015
23016         gt_cv_val_LC_MESSAGES=no
23017 fi
23018
23019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23020       conftest$ac_exeext conftest.$ac_ext
23021 fi
23022 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23023 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23024   if test $gt_cv_val_LC_MESSAGES = yes; then
23025
23026 cat >>confdefs.h <<\_ACEOF
23027 #define HAVE_LC_MESSAGES 1
23028 _ACEOF
23029
23030   fi
23031
23032   fi
23033
23034   if test -n "$INTL_MACOSX_LIBS"; then
23035     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23036   fi
23037
23038                       for ac_prog in bison
23039 do
23040   # Extract the first word of "$ac_prog", so it can be a program name with args.
23041 set dummy $ac_prog; ac_word=$2
23042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23044 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23045   echo $ECHO_N "(cached) $ECHO_C" >&6
23046 else
23047   if test -n "$INTLBISON"; then
23048   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23049 else
23050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23051 for as_dir in $PATH
23052 do
23053   IFS=$as_save_IFS
23054   test -z "$as_dir" && as_dir=.
23055   for ac_exec_ext in '' $ac_executable_extensions; do
23056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23057     ac_cv_prog_INTLBISON="$ac_prog"
23058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23059     break 2
23060   fi
23061 done
23062 done
23063 IFS=$as_save_IFS
23064
23065 fi
23066 fi
23067 INTLBISON=$ac_cv_prog_INTLBISON
23068 if test -n "$INTLBISON"; then
23069   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23070 echo "${ECHO_T}$INTLBISON" >&6; }
23071 else
23072   { echo "$as_me:$LINENO: result: no" >&5
23073 echo "${ECHO_T}no" >&6; }
23074 fi
23075
23076
23077   test -n "$INTLBISON" && break
23078 done
23079
23080   if test -z "$INTLBISON"; then
23081     ac_verc_fail=yes
23082   else
23083         { echo "$as_me:$LINENO: checking version of bison" >&5
23084 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23085     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23086     case $ac_prog_version in
23087       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23088       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23089          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23090       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23091     esac
23092     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23093 echo "${ECHO_T}$ac_prog_version" >&6; }
23094   fi
23095   if test $ac_verc_fail = yes; then
23096     INTLBISON=:
23097   fi
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23115 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23116 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23117   echo $ECHO_N "(cached) $ECHO_C" >&6
23118 else
23119   gt_save_CPPFLAGS="$CPPFLAGS"
23120      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23121      gt_save_LIBS="$LIBS"
23122      LIBS="$LIBS -framework CoreFoundation"
23123      cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h.  */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h.  */
23129 #include <CFPreferences.h>
23130 int
23131 main ()
23132 {
23133 CFPreferencesCopyAppValue(NULL, NULL)
23134   ;
23135   return 0;
23136 }
23137 _ACEOF
23138 rm -f conftest.$ac_objext conftest$ac_exeext
23139 if { (ac_try="$ac_link"
23140 case "(($ac_try" in
23141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23142   *) ac_try_echo=$ac_try;;
23143 esac
23144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23145   (eval "$ac_link") 2>conftest.er1
23146   ac_status=$?
23147   grep -v '^ *+' conftest.er1 >conftest.err
23148   rm -f conftest.er1
23149   cat conftest.err >&5
23150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151   (exit $ac_status); } && {
23152          test -z "$ac_c_werror_flag" ||
23153          test ! -s conftest.err
23154        } && test -s conftest$ac_exeext &&
23155        $as_test_x conftest$ac_exeext; then
23156   gt_cv_func_CFPreferencesCopyAppValue=yes
23157 else
23158   echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23160
23161         gt_cv_func_CFPreferencesCopyAppValue=no
23162 fi
23163
23164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23165       conftest$ac_exeext conftest.$ac_ext
23166      CPPFLAGS="$gt_save_CPPFLAGS"
23167      LIBS="$gt_save_LIBS"
23168 fi
23169 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23170 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23171   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23172
23173 cat >>confdefs.h <<\_ACEOF
23174 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23175 _ACEOF
23176
23177   fi
23178     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23179 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23180 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23181   echo $ECHO_N "(cached) $ECHO_C" >&6
23182 else
23183   gt_save_CPPFLAGS="$CPPFLAGS"
23184      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23185      gt_save_LIBS="$LIBS"
23186      LIBS="$LIBS -framework CoreFoundation"
23187      cat >conftest.$ac_ext <<_ACEOF
23188 /* confdefs.h.  */
23189 _ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h.  */
23193 #include <CFLocale.h>
23194 int
23195 main ()
23196 {
23197 CFLocaleCopyCurrent();
23198   ;
23199   return 0;
23200 }
23201 _ACEOF
23202 rm -f conftest.$ac_objext conftest$ac_exeext
23203 if { (ac_try="$ac_link"
23204 case "(($ac_try" in
23205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206   *) ac_try_echo=$ac_try;;
23207 esac
23208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23209   (eval "$ac_link") 2>conftest.er1
23210   ac_status=$?
23211   grep -v '^ *+' conftest.er1 >conftest.err
23212   rm -f conftest.er1
23213   cat conftest.err >&5
23214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215   (exit $ac_status); } && {
23216          test -z "$ac_c_werror_flag" ||
23217          test ! -s conftest.err
23218        } && test -s conftest$ac_exeext &&
23219        $as_test_x conftest$ac_exeext; then
23220   gt_cv_func_CFLocaleCopyCurrent=yes
23221 else
23222   echo "$as_me: failed program was:" >&5
23223 sed 's/^/| /' conftest.$ac_ext >&5
23224
23225         gt_cv_func_CFLocaleCopyCurrent=no
23226 fi
23227
23228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23229       conftest$ac_exeext conftest.$ac_ext
23230      CPPFLAGS="$gt_save_CPPFLAGS"
23231      LIBS="$gt_save_LIBS"
23232 fi
23233 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23234 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23235   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23236
23237 cat >>confdefs.h <<\_ACEOF
23238 #define HAVE_CFLOCALECOPYCURRENT 1
23239 _ACEOF
23240
23241   fi
23242   INTL_MACOSX_LIBS=
23243   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23244     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23245   fi
23246
23247
23248
23249
23250   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23251 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23252     # Check whether --enable-nls was given.
23253 if test "${enable_nls+set}" = set; then
23254   enableval=$enable_nls; USE_NLS=$enableval
23255 else
23256   USE_NLS=yes
23257 fi
23258
23259   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23260 echo "${ECHO_T}$USE_NLS" >&6; }
23261
23262
23263
23264
23265     BUILD_INCLUDED_LIBINTL=no
23266     USE_INCLUDED_LIBINTL=no
23267
23268   LIBINTL=
23269   LTLIBINTL=
23270   POSUB=
23271
23272     if test "$USE_NLS" = "yes"; then
23273     gt_use_preinstalled_gnugettext=no
23274
23275       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23276 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23277
23278 # Check whether --with-included-gettext was given.
23279 if test "${with_included_gettext+set}" = set; then
23280   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23281 else
23282   nls_cv_force_use_gnu_gettext=no
23283 fi
23284
23285       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23286 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23287
23288       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23289       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23290
23291
23292
23293
23294
23295
23296         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23297 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23298 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23299   echo $ECHO_N "(cached) $ECHO_C" >&6
23300 else
23301   cat >conftest.$ac_ext <<_ACEOF
23302 /* confdefs.h.  */
23303 _ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h.  */
23307 #include <libintl.h>
23308 extern int _nl_msg_cat_cntr;
23309 extern int *_nl_domain_bindings;
23310 int
23311 main ()
23312 {
23313 bindtextdomain ("", "");
23314 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23315   ;
23316   return 0;
23317 }
23318 _ACEOF
23319 rm -f conftest.$ac_objext conftest$ac_exeext
23320 if { (ac_try="$ac_link"
23321 case "(($ac_try" in
23322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323   *) ac_try_echo=$ac_try;;
23324 esac
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326   (eval "$ac_link") 2>conftest.er1
23327   ac_status=$?
23328   grep -v '^ *+' conftest.er1 >conftest.err
23329   rm -f conftest.er1
23330   cat conftest.err >&5
23331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332   (exit $ac_status); } && {
23333          test -z "$ac_c_werror_flag" ||
23334          test ! -s conftest.err
23335        } && test -s conftest$ac_exeext &&
23336        $as_test_x conftest$ac_exeext; then
23337   gt_cv_func_gnugettext1_libc=yes
23338 else
23339   echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23341
23342         gt_cv_func_gnugettext1_libc=no
23343 fi
23344
23345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23346       conftest$ac_exeext conftest.$ac_ext
23347 fi
23348 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23349 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23350
23351         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23352
23353
23354
23355     use_additional=yes
23356
23357   acl_save_prefix="$prefix"
23358   prefix="$acl_final_prefix"
23359   acl_save_exec_prefix="$exec_prefix"
23360   exec_prefix="$acl_final_exec_prefix"
23361
23362     eval additional_includedir=\"$includedir\"
23363     eval additional_libdir=\"$libdir\"
23364
23365   exec_prefix="$acl_save_exec_prefix"
23366   prefix="$acl_save_prefix"
23367
23368
23369 # Check whether --with-libintl-prefix was given.
23370 if test "${with_libintl_prefix+set}" = set; then
23371   withval=$with_libintl_prefix;
23372     if test "X$withval" = "Xno"; then
23373       use_additional=no
23374     else
23375       if test "X$withval" = "X"; then
23376
23377   acl_save_prefix="$prefix"
23378   prefix="$acl_final_prefix"
23379   acl_save_exec_prefix="$exec_prefix"
23380   exec_prefix="$acl_final_exec_prefix"
23381
23382           eval additional_includedir=\"$includedir\"
23383           eval additional_libdir=\"$libdir\"
23384
23385   exec_prefix="$acl_save_exec_prefix"
23386   prefix="$acl_save_prefix"
23387
23388       else
23389         additional_includedir="$withval/include"
23390         additional_libdir="$withval/lib"
23391       fi
23392     fi
23393
23394 fi
23395
23396       LIBINTL=
23397   LTLIBINTL=
23398   INCINTL=
23399   rpathdirs=
23400   ltrpathdirs=
23401   names_already_handled=
23402   names_next_round='intl '
23403   while test -n "$names_next_round"; do
23404     names_this_round="$names_next_round"
23405     names_next_round=
23406     for name in $names_this_round; do
23407       already_handled=
23408       for n in $names_already_handled; do
23409         if test "$n" = "$name"; then
23410           already_handled=yes
23411           break
23412         fi
23413       done
23414       if test -z "$already_handled"; then
23415         names_already_handled="$names_already_handled $name"
23416                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23417         eval value=\"\$HAVE_LIB$uppername\"
23418         if test -n "$value"; then
23419           if test "$value" = yes; then
23420             eval value=\"\$LIB$uppername\"
23421             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23422             eval value=\"\$LTLIB$uppername\"
23423             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23424           else
23425                                     :
23426           fi
23427         else
23428                               found_dir=
23429           found_la=
23430           found_so=
23431           found_a=
23432           if test $use_additional = yes; then
23433             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23434               found_dir="$additional_libdir"
23435               found_so="$additional_libdir/lib$name.$shlibext"
23436               if test -f "$additional_libdir/lib$name.la"; then
23437                 found_la="$additional_libdir/lib$name.la"
23438               fi
23439             else
23440               if test -f "$additional_libdir/lib$name.$libext"; then
23441                 found_dir="$additional_libdir"
23442                 found_a="$additional_libdir/lib$name.$libext"
23443                 if test -f "$additional_libdir/lib$name.la"; then
23444                   found_la="$additional_libdir/lib$name.la"
23445                 fi
23446               fi
23447             fi
23448           fi
23449           if test "X$found_dir" = "X"; then
23450             for x in $LDFLAGS $LTLIBINTL; do
23451
23452   acl_save_prefix="$prefix"
23453   prefix="$acl_final_prefix"
23454   acl_save_exec_prefix="$exec_prefix"
23455   exec_prefix="$acl_final_exec_prefix"
23456   eval x=\"$x\"
23457   exec_prefix="$acl_save_exec_prefix"
23458   prefix="$acl_save_prefix"
23459
23460               case "$x" in
23461                 -L*)
23462                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23463                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23464                     found_dir="$dir"
23465                     found_so="$dir/lib$name.$shlibext"
23466                     if test -f "$dir/lib$name.la"; then
23467                       found_la="$dir/lib$name.la"
23468                     fi
23469                   else
23470                     if test -f "$dir/lib$name.$libext"; then
23471                       found_dir="$dir"
23472                       found_a="$dir/lib$name.$libext"
23473                       if test -f "$dir/lib$name.la"; then
23474                         found_la="$dir/lib$name.la"
23475                       fi
23476                     fi
23477                   fi
23478                   ;;
23479               esac
23480               if test "X$found_dir" != "X"; then
23481                 break
23482               fi
23483             done
23484           fi
23485           if test "X$found_dir" != "X"; then
23486                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23487             if test "X$found_so" != "X"; then
23488                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23489                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23490               else
23491                                                                                 haveit=
23492                 for x in $ltrpathdirs; do
23493                   if test "X$x" = "X$found_dir"; then
23494                     haveit=yes
23495                     break
23496                   fi
23497                 done
23498                 if test -z "$haveit"; then
23499                   ltrpathdirs="$ltrpathdirs $found_dir"
23500                 fi
23501                                 if test "$hardcode_direct" = yes; then
23502                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23503                 else
23504                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23505                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23506                                                             haveit=
23507                     for x in $rpathdirs; do
23508                       if test "X$x" = "X$found_dir"; then
23509                         haveit=yes
23510                         break
23511                       fi
23512                     done
23513                     if test -z "$haveit"; then
23514                       rpathdirs="$rpathdirs $found_dir"
23515                     fi
23516                   else
23517                                                                                 haveit=
23518                     for x in $LDFLAGS $LIBINTL; do
23519
23520   acl_save_prefix="$prefix"
23521   prefix="$acl_final_prefix"
23522   acl_save_exec_prefix="$exec_prefix"
23523   exec_prefix="$acl_final_exec_prefix"
23524   eval x=\"$x\"
23525   exec_prefix="$acl_save_exec_prefix"
23526   prefix="$acl_save_prefix"
23527
23528                       if test "X$x" = "X-L$found_dir"; then
23529                         haveit=yes
23530                         break
23531                       fi
23532                     done
23533                     if test -z "$haveit"; then
23534                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23535                     fi
23536                     if test "$hardcode_minus_L" != no; then
23537                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23538                     else
23539                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23540                     fi
23541                   fi
23542                 fi
23543               fi
23544             else
23545               if test "X$found_a" != "X"; then
23546                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23547               else
23548                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23549               fi
23550             fi
23551                         additional_includedir=
23552             case "$found_dir" in
23553               */lib | */lib/)
23554                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23555                 additional_includedir="$basedir/include"
23556                 ;;
23557             esac
23558             if test "X$additional_includedir" != "X"; then
23559                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23560                 haveit=
23561                 if test "X$additional_includedir" = "X/usr/local/include"; then
23562                   if test -n "$GCC"; then
23563                     case $host_os in
23564                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23565                     esac
23566                   fi
23567                 fi
23568                 if test -z "$haveit"; then
23569                   for x in $CPPFLAGS $INCINTL; do
23570
23571   acl_save_prefix="$prefix"
23572   prefix="$acl_final_prefix"
23573   acl_save_exec_prefix="$exec_prefix"
23574   exec_prefix="$acl_final_exec_prefix"
23575   eval x=\"$x\"
23576   exec_prefix="$acl_save_exec_prefix"
23577   prefix="$acl_save_prefix"
23578
23579                     if test "X$x" = "X-I$additional_includedir"; then
23580                       haveit=yes
23581                       break
23582                     fi
23583                   done
23584                   if test -z "$haveit"; then
23585                     if test -d "$additional_includedir"; then
23586                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23587                     fi
23588                   fi
23589                 fi
23590               fi
23591             fi
23592                         if test -n "$found_la"; then
23593                                                         save_libdir="$libdir"
23594               case "$found_la" in
23595                 */* | *\\*) . "$found_la" ;;
23596                 *) . "./$found_la" ;;
23597               esac
23598               libdir="$save_libdir"
23599                             for dep in $dependency_libs; do
23600                 case "$dep" in
23601                   -L*)
23602                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23603                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23604                       haveit=
23605                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23606                         if test -n "$GCC"; then
23607                           case $host_os in
23608                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23609                           esac
23610                         fi
23611                       fi
23612                       if test -z "$haveit"; then
23613                         haveit=
23614                         for x in $LDFLAGS $LIBINTL; do
23615
23616   acl_save_prefix="$prefix"
23617   prefix="$acl_final_prefix"
23618   acl_save_exec_prefix="$exec_prefix"
23619   exec_prefix="$acl_final_exec_prefix"
23620   eval x=\"$x\"
23621   exec_prefix="$acl_save_exec_prefix"
23622   prefix="$acl_save_prefix"
23623
23624                           if test "X$x" = "X-L$additional_libdir"; then
23625                             haveit=yes
23626                             break
23627                           fi
23628                         done
23629                         if test -z "$haveit"; then
23630                           if test -d "$additional_libdir"; then
23631                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23632                           fi
23633                         fi
23634                         haveit=
23635                         for x in $LDFLAGS $LTLIBINTL; do
23636
23637   acl_save_prefix="$prefix"
23638   prefix="$acl_final_prefix"
23639   acl_save_exec_prefix="$exec_prefix"
23640   exec_prefix="$acl_final_exec_prefix"
23641   eval x=\"$x\"
23642   exec_prefix="$acl_save_exec_prefix"
23643   prefix="$acl_save_prefix"
23644
23645                           if test "X$x" = "X-L$additional_libdir"; then
23646                             haveit=yes
23647                             break
23648                           fi
23649                         done
23650                         if test -z "$haveit"; then
23651                           if test -d "$additional_libdir"; then
23652                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23653                           fi
23654                         fi
23655                       fi
23656                     fi
23657                     ;;
23658                   -R*)
23659                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23660                     if test "$enable_rpath" != no; then
23661                                                                   haveit=
23662                       for x in $rpathdirs; do
23663                         if test "X$x" = "X$dir"; then
23664                           haveit=yes
23665                           break
23666                         fi
23667                       done
23668                       if test -z "$haveit"; then
23669                         rpathdirs="$rpathdirs $dir"
23670                       fi
23671                                                                   haveit=
23672                       for x in $ltrpathdirs; do
23673                         if test "X$x" = "X$dir"; then
23674                           haveit=yes
23675                           break
23676                         fi
23677                       done
23678                       if test -z "$haveit"; then
23679                         ltrpathdirs="$ltrpathdirs $dir"
23680                       fi
23681                     fi
23682                     ;;
23683                   -l*)
23684                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23685                     ;;
23686                   *.la)
23687                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23688                     ;;
23689                   *)
23690                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23691                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23692                     ;;
23693                 esac
23694               done
23695             fi
23696           else
23697                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23698             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23699           fi
23700         fi
23701       fi
23702     done
23703   done
23704   if test "X$rpathdirs" != "X"; then
23705     if test -n "$hardcode_libdir_separator"; then
23706                         alldirs=
23707       for found_dir in $rpathdirs; do
23708         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23709       done
23710             acl_save_libdir="$libdir"
23711       libdir="$alldirs"
23712       eval flag=\"$hardcode_libdir_flag_spec\"
23713       libdir="$acl_save_libdir"
23714       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23715     else
23716             for found_dir in $rpathdirs; do
23717         acl_save_libdir="$libdir"
23718         libdir="$found_dir"
23719         eval flag=\"$hardcode_libdir_flag_spec\"
23720         libdir="$acl_save_libdir"
23721         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23722       done
23723     fi
23724   fi
23725   if test "X$ltrpathdirs" != "X"; then
23726             for found_dir in $ltrpathdirs; do
23727       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23728     done
23729   fi
23730
23731           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23732 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23733 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23734   echo $ECHO_N "(cached) $ECHO_C" >&6
23735 else
23736   gt_save_CPPFLAGS="$CPPFLAGS"
23737             CPPFLAGS="$CPPFLAGS $INCINTL"
23738             gt_save_LIBS="$LIBS"
23739             LIBS="$LIBS $LIBINTL"
23740                         cat >conftest.$ac_ext <<_ACEOF
23741 /* confdefs.h.  */
23742 _ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h.  */
23746 #include <libintl.h>
23747 extern int _nl_msg_cat_cntr;
23748 extern
23749 #ifdef __cplusplus
23750 "C"
23751 #endif
23752 const char *_nl_expand_alias (const char *);
23753 int
23754 main ()
23755 {
23756 bindtextdomain ("", "");
23757 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23758   ;
23759   return 0;
23760 }
23761 _ACEOF
23762 rm -f conftest.$ac_objext conftest$ac_exeext
23763 if { (ac_try="$ac_link"
23764 case "(($ac_try" in
23765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23766   *) ac_try_echo=$ac_try;;
23767 esac
23768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23769   (eval "$ac_link") 2>conftest.er1
23770   ac_status=$?
23771   grep -v '^ *+' conftest.er1 >conftest.err
23772   rm -f conftest.er1
23773   cat conftest.err >&5
23774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775   (exit $ac_status); } && {
23776          test -z "$ac_c_werror_flag" ||
23777          test ! -s conftest.err
23778        } && test -s conftest$ac_exeext &&
23779        $as_test_x conftest$ac_exeext; then
23780   gt_cv_func_gnugettext1_libintl=yes
23781 else
23782   echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23784
23785         gt_cv_func_gnugettext1_libintl=no
23786 fi
23787
23788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23789       conftest$ac_exeext conftest.$ac_ext
23790                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23791               LIBS="$LIBS $LIBICONV"
23792               cat >conftest.$ac_ext <<_ACEOF
23793 /* confdefs.h.  */
23794 _ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h.  */
23798 #include <libintl.h>
23799 extern int _nl_msg_cat_cntr;
23800 extern
23801 #ifdef __cplusplus
23802 "C"
23803 #endif
23804 const char *_nl_expand_alias (const char *);
23805 int
23806 main ()
23807 {
23808 bindtextdomain ("", "");
23809 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23810   ;
23811   return 0;
23812 }
23813 _ACEOF
23814 rm -f conftest.$ac_objext conftest$ac_exeext
23815 if { (ac_try="$ac_link"
23816 case "(($ac_try" in
23817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23818   *) ac_try_echo=$ac_try;;
23819 esac
23820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23821   (eval "$ac_link") 2>conftest.er1
23822   ac_status=$?
23823   grep -v '^ *+' conftest.er1 >conftest.err
23824   rm -f conftest.er1
23825   cat conftest.err >&5
23826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827   (exit $ac_status); } && {
23828          test -z "$ac_c_werror_flag" ||
23829          test ! -s conftest.err
23830        } && test -s conftest$ac_exeext &&
23831        $as_test_x conftest$ac_exeext; then
23832   LIBINTL="$LIBINTL $LIBICONV"
23833                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23834                 gt_cv_func_gnugettext1_libintl=yes
23835
23836 else
23837   echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23839
23840
23841 fi
23842
23843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23844       conftest$ac_exeext conftest.$ac_ext
23845             fi
23846             CPPFLAGS="$gt_save_CPPFLAGS"
23847             LIBS="$gt_save_LIBS"
23848 fi
23849 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23850 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23851         fi
23852
23853                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23854            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23855                 && test "$PACKAGE" != gettext-runtime \
23856                 && test "$PACKAGE" != gettext-tools; }; then
23857           gt_use_preinstalled_gnugettext=yes
23858         else
23859                     LIBINTL=
23860           LTLIBINTL=
23861           INCINTL=
23862         fi
23863
23864
23865         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23866                               nls_cv_use_gnu_gettext=yes
23867         fi
23868       fi
23869
23870       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23871                 BUILD_INCLUDED_LIBINTL=yes
23872         USE_INCLUDED_LIBINTL=yes
23873         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23874         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23875         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23876       fi
23877
23878       CATOBJEXT=
23879       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23880          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23881                 CATOBJEXT=.gmo
23882       fi
23883
23884
23885     if test -n "$INTL_MACOSX_LIBS"; then
23886       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23887          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23888                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23889         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23890       fi
23891     fi
23892
23893     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23894        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23895
23896 cat >>confdefs.h <<\_ACEOF
23897 #define ENABLE_NLS 1
23898 _ACEOF
23899
23900     else
23901       USE_NLS=no
23902     fi
23903   fi
23904
23905   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23906 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23907   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23908 echo "${ECHO_T}$USE_NLS" >&6; }
23909   if test "$USE_NLS" = "yes"; then
23910     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23911 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23912     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23913       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23914         gt_source="external libintl"
23915       else
23916         gt_source="libc"
23917       fi
23918     else
23919       gt_source="included intl directory"
23920     fi
23921     { echo "$as_me:$LINENO: result: $gt_source" >&5
23922 echo "${ECHO_T}$gt_source" >&6; }
23923   fi
23924
23925   if test "$USE_NLS" = "yes"; then
23926
23927     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23928       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23929         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23930 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23931         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23932 echo "${ECHO_T}$LIBINTL" >&6; }
23933
23934   for element in $INCINTL; do
23935     haveit=
23936     for x in $CPPFLAGS; do
23937
23938   acl_save_prefix="$prefix"
23939   prefix="$acl_final_prefix"
23940   acl_save_exec_prefix="$exec_prefix"
23941   exec_prefix="$acl_final_exec_prefix"
23942   eval x=\"$x\"
23943   exec_prefix="$acl_save_exec_prefix"
23944   prefix="$acl_save_prefix"
23945
23946       if test "X$x" = "X$element"; then
23947         haveit=yes
23948         break
23949       fi
23950     done
23951     if test -z "$haveit"; then
23952       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23953     fi
23954   done
23955
23956       fi
23957
23958
23959 cat >>confdefs.h <<\_ACEOF
23960 #define HAVE_GETTEXT 1
23961 _ACEOF
23962
23963
23964 cat >>confdefs.h <<\_ACEOF
23965 #define HAVE_DCGETTEXT 1
23966 _ACEOF
23967
23968     fi
23969
23970         POSUB=po
23971   fi
23972
23973
23974             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23975       BUILD_INCLUDED_LIBINTL=yes
23976     fi
23977
23978
23979
23980
23981
23982         nls_cv_header_intl=
23983     nls_cv_header_libgt=
23984
23985         DATADIRNAME=share
23986
23987
23988         INSTOBJEXT=.mo
23989
23990
23991         GENCAT=gencat
23992
23993
23994         INTLOBJS=
23995     if test "$USE_INCLUDED_LIBINTL" = yes; then
23996       INTLOBJS="\$(GETTOBJS)"
23997     fi
23998
23999
24000         INTL_LIBTOOL_SUFFIX_PREFIX=
24001
24002
24003
24004     INTLLIBS="$LIBINTL"
24005
24006
24007
24008
24009
24010
24011 fi
24012
24013 support_mysql=no
24014 support_sqlite=no
24015 support_sqlite3=no
24016 support_postgresql=no
24017 support_ingres=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
24103
24104
24105
24106
24107
24108
24109
24110 # Check whether --enable-bwx-console was given.
24111 if test "${enable_bwx_console+set}" = set; then
24112   enableval=$enable_bwx_console;
24113        if test x$enableval = xyes; then
24114           support_wx_console=yes
24115        fi
24116
24117
24118 fi
24119
24120
24121 WX_DIR=
24122 if test x$support_wx_console = xyes; then
24123    abc=`$WXCONFIG $WXFLAGS --cppflags`
24124    pkg=$?
24125    if test $pkg = 0; then
24126       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24127       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24128       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24129
24130
24131
24132       WX_DIR="src/wx-console"
24133    else
24134       echo " "
24135       echo "wx-config program not found. bwx-console disabled."
24136       echo " "
24137       support_wx_console=no
24138    fi
24139 fi
24140
24141
24142 # Check whether --enable-tray-monitor was given.
24143 if test "${enable_tray_monitor+set}" = set; then
24144   enableval=$enable_tray_monitor;
24145        if test x$enableval = xyes; then
24146           support_tray_monitor=yes
24147        fi
24148
24149
24150 fi
24151
24152
24153 TRAY_MONITOR_DIR=
24154 if test x$support_tray_monitor = xyes; then
24155    abc=`$PKGCONFIG --exists gtk+-2.0`
24156    pkg=$?
24157    if test $pkg = 0; then
24158       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24159       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24160
24161
24162       TRAY_MONITOR_DIR=src/tray-monitor
24163       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24164       pkg=$?
24165       if test $pkg = 0; then
24166
24167 cat >>confdefs.h <<\_ACEOF
24168 #define HAVE_GTK_2_4 1
24169 _ACEOF
24170
24171       fi
24172    fi
24173 fi
24174
24175
24176 # Check whether --enable-smartalloc was given.
24177 if test "${enable_smartalloc+set}" = set; then
24178   enableval=$enable_smartalloc;
24179        if test x$enableval = xno; then
24180           support_smartalloc=no
24181        fi
24182
24183
24184 fi
24185
24186
24187 if test x$support_smartalloc = xyes; then
24188
24189 cat >>confdefs.h <<\_ACEOF
24190 #define SMARTALLOC 1
24191 _ACEOF
24192
24193 fi
24194
24195 # Check whether --enable-lockmgr was given.
24196 if test "${enable_lockmgr+set}" = set; then
24197   enableval=$enable_lockmgr;
24198        if test x$enableval = xyes; then
24199           support_lockmgr=yes
24200        fi
24201
24202
24203 fi
24204
24205
24206 if test x$support_lockmgr = xyes; then
24207
24208 cat >>confdefs.h <<\_ACEOF
24209 #define _USE_LOCKMGR 1
24210 _ACEOF
24211
24212 fi
24213
24214
24215 # Check whether --enable-static-tools was given.
24216 if test "${enable_static_tools+set}" = set; then
24217   enableval=$enable_static_tools;
24218        if test x$enableval = xyes; then
24219           if test x$use_libtool = xyes; then
24220              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24221   please rerun configure with --disable-libtool" >&5
24222 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24223   please rerun configure with --disable-libtool" >&2;}
24224    { (exit 1); exit 1; }; }
24225           fi
24226           support_static_tools=yes
24227        fi
24228
24229
24230 fi
24231
24232
24233 TTOOL_LDFLAGS=
24234 if test x$support_static_tools = xyes; then
24235    TTOOL_LDFLAGS="-static"
24236 fi
24237
24238
24239 # Check whether --enable-static-fd was given.
24240 if test "${enable_static_fd+set}" = set; then
24241   enableval=$enable_static_fd;
24242        if test x$enableval = xyes; then
24243           if test x$use_libtool = xyes; then
24244              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24245   please rerun configure with --disable-libtool" >&5
24246 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24247   please rerun configure with --disable-libtool" >&2;}
24248    { (exit 1); exit 1; }; }
24249           fi
24250           support_static_fd=yes
24251        fi
24252
24253
24254 fi
24255
24256
24257 STATIC_FD=
24258 if test x$support_static_fd = xyes; then
24259    STATIC_FD="static-bacula-fd"
24260 fi
24261
24262
24263 # Check whether --enable-static-sd was given.
24264 if test "${enable_static_sd+set}" = set; then
24265   enableval=$enable_static_sd;
24266        if test x$enableval = xyes; then
24267           if test x$use_libtool = xyes; then
24268              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24269   please rerun configure with --disable-libtool" >&5
24270 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24271   please rerun configure with --disable-libtool" >&2;}
24272    { (exit 1); exit 1; }; }
24273           fi
24274           support_static_sd=yes
24275        fi
24276
24277
24278 fi
24279
24280
24281 STATIC_SD=
24282 if test x$support_static_sd = xyes; then
24283    STATIC_SD="static-bacula-sd"
24284 fi
24285
24286
24287 # Check whether --enable-static-dir was given.
24288 if test "${enable_static_dir+set}" = set; then
24289   enableval=$enable_static_dir;
24290        if test x$enableval = xyes; then
24291           if test x$use_libtool = xyes; then
24292              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24293   please rerun configure with --disable-libtool" >&5
24294 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24295   please rerun configure with --disable-libtool" >&2;}
24296    { (exit 1); exit 1; }; }
24297           fi
24298           support_static_dir=yes
24299        fi
24300
24301
24302 fi
24303
24304
24305 STATIC_DIR=
24306 if test x$support_static_dir = xyes; then
24307    STATIC_DIR="static-bacula-dir"
24308 fi
24309
24310
24311 # Check whether --enable-static-cons was given.
24312 if test "${enable_static_cons+set}" = set; then
24313   enableval=$enable_static_cons;
24314        if test x$enableval = xyes; then
24315           if test x$use_libtool = xyes; then
24316              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24317   please rerun configure with --disable-libtool" >&5
24318 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24319   please rerun configure with --disable-libtool" >&2;}
24320    { (exit 1); exit 1; }; }
24321           fi
24322           support_static_cons=yes
24323        fi
24324
24325
24326 fi
24327
24328
24329 STATIC_CONS=
24330 STATIC_GNOME_CONS=
24331 STATIC_WX_CONS=
24332 if test x$support_static_cons = xyes; then
24333    STATIC_CONS="static-bconsole"
24334    STATIC_GNOME_CONS="static-bgnome-console"
24335    STATIC_WX_CONS="static-bwx-console"
24336 fi
24337
24338
24339
24340
24341 # Check whether --enable-client-only was given.
24342 if test "${enable_client_only+set}" = set; then
24343   enableval=$enable_client_only;
24344        if test x$enableval = xyes; then
24345           build_client_only=yes
24346           db_type=None
24347           DB_TYPE=none
24348        fi
24349
24350
24351 fi
24352
24353 if test x$build_client_only = xno; then
24354    ALL_DIRS="subdirs"
24355 else
24356    ALL_DIRS=""
24357 fi
24358
24359
24360 # Check whether --enable-build-dird was given.
24361 if test "${enable_build_dird+set}" = set; then
24362   enableval=$enable_build_dird;
24363        if test x$enableval = xno; then
24364           build_dird=no
24365        fi
24366
24367
24368 fi
24369
24370 if test x$build_dird = xyes; then
24371    DIRD_DIR="src/dird"
24372    DIR_TOOLS="DIRTOOLS"
24373 else
24374    DIRD_DIR=""
24375    DIR_TOOLS="NODIRTOOLS"
24376 fi
24377
24378
24379
24380 # Check whether --enable-build-stored was given.
24381 if test "${enable_build_stored+set}" = set; then
24382   enableval=$enable_build_stored;
24383       if test x$enableval = xno; then
24384          build_stored=no
24385       fi
24386
24387
24388 fi
24389
24390 if test x$build_stored = xyes; then
24391    STORED_DIR="src/stored"
24392 else
24393    STORED_DIR=""
24394 fi
24395
24396
24397 # Check whether --enable-conio was given.
24398 if test "${enable_conio+set}" = set; then
24399   enableval=$enable_conio;
24400        if test x$enableval = xno; then
24401           support_conio=no
24402        fi
24403
24404
24405 fi
24406
24407
24408
24409 support_ipv6=yes
24410 # Check whether --enable-ipv6 was given.
24411 if test "${enable_ipv6+set}" = set; then
24412   enableval=$enable_ipv6;
24413        if test x$enableval = xno; then
24414           support_ipv6=no
24415        fi
24416
24417
24418 fi
24419
24420
24421 if test x$support_ipv6 = xyes; then
24422     cat >conftest.$ac_ext <<_ACEOF
24423 /* confdefs.h.  */
24424 _ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h.  */
24428  #include <sys/types.h>
24429 #include <sys/socket.h>
24430 #include <netinet/in.h>
24431 int
24432 main ()
24433 {
24434 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24435   ;
24436   return 0;
24437 }
24438 _ACEOF
24439 rm -f conftest.$ac_objext conftest$ac_exeext
24440 if { (ac_try="$ac_link"
24441 case "(($ac_try" in
24442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443   *) ac_try_echo=$ac_try;;
24444 esac
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446   (eval "$ac_link") 2>conftest.er1
24447   ac_status=$?
24448   grep -v '^ *+' conftest.er1 >conftest.err
24449   rm -f conftest.er1
24450   cat conftest.err >&5
24451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452   (exit $ac_status); } && {
24453          test -z "$ac_c_werror_flag" ||
24454          test ! -s conftest.err
24455        } && test -s conftest$ac_exeext &&
24456        $as_test_x conftest$ac_exeext; then
24457   support_ipv6=yes
24458 else
24459   echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24461
24462         support_ipv6=no
24463 fi
24464
24465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24466       conftest$ac_exeext conftest.$ac_ext
24467 fi
24468
24469 if test x$support_ipv6 = xyes; then
24470
24471 cat >>confdefs.h <<\_ACEOF
24472 #define HAVE_IPV6 1
24473 _ACEOF
24474
24475 fi
24476
24477 got_conio="no"
24478 if test x$support_conio = xyes; then
24479    if test "${ac_cv_header_termcap_h+set}" = set; then
24480   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24481 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24482 if test "${ac_cv_header_termcap_h+set}" = set; then
24483   echo $ECHO_N "(cached) $ECHO_C" >&6
24484 fi
24485 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24486 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24487 else
24488   # Is the header compilable?
24489 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24490 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24491 cat >conftest.$ac_ext <<_ACEOF
24492 /* confdefs.h.  */
24493 _ACEOF
24494 cat confdefs.h >>conftest.$ac_ext
24495 cat >>conftest.$ac_ext <<_ACEOF
24496 /* end confdefs.h.  */
24497 $ac_includes_default
24498 #include <termcap.h>
24499 _ACEOF
24500 rm -f conftest.$ac_objext
24501 if { (ac_try="$ac_compile"
24502 case "(($ac_try" in
24503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504   *) ac_try_echo=$ac_try;;
24505 esac
24506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507   (eval "$ac_compile") 2>conftest.er1
24508   ac_status=$?
24509   grep -v '^ *+' conftest.er1 >conftest.err
24510   rm -f conftest.er1
24511   cat conftest.err >&5
24512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513   (exit $ac_status); } && {
24514          test -z "$ac_c_werror_flag" ||
24515          test ! -s conftest.err
24516        } && test -s conftest.$ac_objext; then
24517   ac_header_compiler=yes
24518 else
24519   echo "$as_me: failed program was:" >&5
24520 sed 's/^/| /' conftest.$ac_ext >&5
24521
24522         ac_header_compiler=no
24523 fi
24524
24525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24527 echo "${ECHO_T}$ac_header_compiler" >&6; }
24528
24529 # Is the header present?
24530 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24531 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24532 cat >conftest.$ac_ext <<_ACEOF
24533 /* confdefs.h.  */
24534 _ACEOF
24535 cat confdefs.h >>conftest.$ac_ext
24536 cat >>conftest.$ac_ext <<_ACEOF
24537 /* end confdefs.h.  */
24538 #include <termcap.h>
24539 _ACEOF
24540 if { (ac_try="$ac_cpp conftest.$ac_ext"
24541 case "(($ac_try" in
24542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24543   *) ac_try_echo=$ac_try;;
24544 esac
24545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24546   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24547   ac_status=$?
24548   grep -v '^ *+' conftest.er1 >conftest.err
24549   rm -f conftest.er1
24550   cat conftest.err >&5
24551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552   (exit $ac_status); } >/dev/null && {
24553          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24554          test ! -s conftest.err
24555        }; then
24556   ac_header_preproc=yes
24557 else
24558   echo "$as_me: failed program was:" >&5
24559 sed 's/^/| /' conftest.$ac_ext >&5
24560
24561   ac_header_preproc=no
24562 fi
24563
24564 rm -f conftest.err conftest.$ac_ext
24565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24566 echo "${ECHO_T}$ac_header_preproc" >&6; }
24567
24568 # So?  What about this header?
24569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24570   yes:no: )
24571     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24572 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24573     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24574 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24575     ac_header_preproc=yes
24576     ;;
24577   no:yes:* )
24578     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24579 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24580     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24581 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24582     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24583 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24584     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24585 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24586     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24587 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24588     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24589 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24590
24591     ;;
24592 esac
24593 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24594 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24595 if test "${ac_cv_header_termcap_h+set}" = set; then
24596   echo $ECHO_N "(cached) $ECHO_C" >&6
24597 else
24598   ac_cv_header_termcap_h=$ac_header_preproc
24599 fi
24600 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24601 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24602
24603 fi
24604 if test $ac_cv_header_termcap_h = yes; then
24605    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24606 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24607 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24608   echo $ECHO_N "(cached) $ECHO_C" >&6
24609 else
24610   ac_check_lib_save_LIBS=$LIBS
24611 LIBS="-ltermcap  $LIBS"
24612 cat >conftest.$ac_ext <<_ACEOF
24613 /* confdefs.h.  */
24614 _ACEOF
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h.  */
24618
24619 /* Override any GCC internal prototype to avoid an error.
24620    Use char because int might match the return type of a GCC
24621    builtin and then its argument prototype would still apply.  */
24622 #ifdef __cplusplus
24623 extern "C"
24624 #endif
24625 char tgetent ();
24626 int
24627 main ()
24628 {
24629 return tgetent ();
24630   ;
24631   return 0;
24632 }
24633 _ACEOF
24634 rm -f conftest.$ac_objext conftest$ac_exeext
24635 if { (ac_try="$ac_link"
24636 case "(($ac_try" in
24637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638   *) ac_try_echo=$ac_try;;
24639 esac
24640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24641   (eval "$ac_link") 2>conftest.er1
24642   ac_status=$?
24643   grep -v '^ *+' conftest.er1 >conftest.err
24644   rm -f conftest.er1
24645   cat conftest.err >&5
24646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647   (exit $ac_status); } && {
24648          test -z "$ac_c_werror_flag" ||
24649          test ! -s conftest.err
24650        } && test -s conftest$ac_exeext &&
24651        $as_test_x conftest$ac_exeext; then
24652   ac_cv_lib_termcap_tgetent=yes
24653 else
24654   echo "$as_me: failed program was:" >&5
24655 sed 's/^/| /' conftest.$ac_ext >&5
24656
24657         ac_cv_lib_termcap_tgetent=no
24658 fi
24659
24660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24661       conftest$ac_exeext conftest.$ac_ext
24662 LIBS=$ac_check_lib_save_LIBS
24663 fi
24664 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24665 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24666 if test $ac_cv_lib_termcap_tgetent = yes; then
24667    CONS_LIBS="-ltermcap"
24668     CONS_OBJ="conio.o"
24669     CONS_SRC="conio.c"
24670     got_conio="yes"
24671     support_readline=no
24672
24673 cat >>confdefs.h <<\_ACEOF
24674 #define HAVE_CONIO 1
24675 _ACEOF
24676
24677
24678 else
24679    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24680 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24681 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24682   echo $ECHO_N "(cached) $ECHO_C" >&6
24683 else
24684   ac_check_lib_save_LIBS=$LIBS
24685 LIBS="-lncurses  $LIBS"
24686 cat >conftest.$ac_ext <<_ACEOF
24687 /* confdefs.h.  */
24688 _ACEOF
24689 cat confdefs.h >>conftest.$ac_ext
24690 cat >>conftest.$ac_ext <<_ACEOF
24691 /* end confdefs.h.  */
24692
24693 /* Override any GCC internal prototype to avoid an error.
24694    Use char because int might match the return type of a GCC
24695    builtin and then its argument prototype would still apply.  */
24696 #ifdef __cplusplus
24697 extern "C"
24698 #endif
24699 char tgetent ();
24700 int
24701 main ()
24702 {
24703 return tgetent ();
24704   ;
24705   return 0;
24706 }
24707 _ACEOF
24708 rm -f conftest.$ac_objext conftest$ac_exeext
24709 if { (ac_try="$ac_link"
24710 case "(($ac_try" in
24711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712   *) ac_try_echo=$ac_try;;
24713 esac
24714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24715   (eval "$ac_link") 2>conftest.er1
24716   ac_status=$?
24717   grep -v '^ *+' conftest.er1 >conftest.err
24718   rm -f conftest.er1
24719   cat conftest.err >&5
24720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721   (exit $ac_status); } && {
24722          test -z "$ac_c_werror_flag" ||
24723          test ! -s conftest.err
24724        } && test -s conftest$ac_exeext &&
24725        $as_test_x conftest$ac_exeext; then
24726   ac_cv_lib_ncurses_tgetent=yes
24727 else
24728   echo "$as_me: failed program was:" >&5
24729 sed 's/^/| /' conftest.$ac_ext >&5
24730
24731         ac_cv_lib_ncurses_tgetent=no
24732 fi
24733
24734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24735       conftest$ac_exeext conftest.$ac_ext
24736 LIBS=$ac_check_lib_save_LIBS
24737 fi
24738 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24739 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24740 if test $ac_cv_lib_ncurses_tgetent = yes; then
24741    CONS_LIBS="-lncurses"
24742       CONS_OBJ="conio.o"
24743       CONS_SRC="conio.c"
24744       got_conio="yes"
24745       support_readline=no
24746
24747 cat >>confdefs.h <<\_ACEOF
24748 #define HAVE_CONIO 1
24749 _ACEOF
24750
24751
24752 fi
24753
24754
24755 fi
24756
24757
24758 else
24759
24760
24761 for ac_header in curses.h
24762 do
24763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24765   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24768   echo $ECHO_N "(cached) $ECHO_C" >&6
24769 fi
24770 ac_res=`eval echo '${'$as_ac_Header'}'`
24771                { echo "$as_me:$LINENO: result: $ac_res" >&5
24772 echo "${ECHO_T}$ac_res" >&6; }
24773 else
24774   # Is the header compilable?
24775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24777 cat >conftest.$ac_ext <<_ACEOF
24778 /* confdefs.h.  */
24779 _ACEOF
24780 cat confdefs.h >>conftest.$ac_ext
24781 cat >>conftest.$ac_ext <<_ACEOF
24782 /* end confdefs.h.  */
24783 $ac_includes_default
24784 #include <$ac_header>
24785 _ACEOF
24786 rm -f conftest.$ac_objext
24787 if { (ac_try="$ac_compile"
24788 case "(($ac_try" in
24789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24790   *) ac_try_echo=$ac_try;;
24791 esac
24792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24793   (eval "$ac_compile") 2>conftest.er1
24794   ac_status=$?
24795   grep -v '^ *+' conftest.er1 >conftest.err
24796   rm -f conftest.er1
24797   cat conftest.err >&5
24798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799   (exit $ac_status); } && {
24800          test -z "$ac_c_werror_flag" ||
24801          test ! -s conftest.err
24802        } && test -s conftest.$ac_objext; then
24803   ac_header_compiler=yes
24804 else
24805   echo "$as_me: failed program was:" >&5
24806 sed 's/^/| /' conftest.$ac_ext >&5
24807
24808         ac_header_compiler=no
24809 fi
24810
24811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24813 echo "${ECHO_T}$ac_header_compiler" >&6; }
24814
24815 # Is the header present?
24816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24818 cat >conftest.$ac_ext <<_ACEOF
24819 /* confdefs.h.  */
24820 _ACEOF
24821 cat confdefs.h >>conftest.$ac_ext
24822 cat >>conftest.$ac_ext <<_ACEOF
24823 /* end confdefs.h.  */
24824 #include <$ac_header>
24825 _ACEOF
24826 if { (ac_try="$ac_cpp conftest.$ac_ext"
24827 case "(($ac_try" in
24828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24829   *) ac_try_echo=$ac_try;;
24830 esac
24831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24833   ac_status=$?
24834   grep -v '^ *+' conftest.er1 >conftest.err
24835   rm -f conftest.er1
24836   cat conftest.err >&5
24837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838   (exit $ac_status); } >/dev/null && {
24839          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24840          test ! -s conftest.err
24841        }; then
24842   ac_header_preproc=yes
24843 else
24844   echo "$as_me: failed program was:" >&5
24845 sed 's/^/| /' conftest.$ac_ext >&5
24846
24847   ac_header_preproc=no
24848 fi
24849
24850 rm -f conftest.err conftest.$ac_ext
24851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24852 echo "${ECHO_T}$ac_header_preproc" >&6; }
24853
24854 # So?  What about this header?
24855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24856   yes:no: )
24857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24861     ac_header_preproc=yes
24862     ;;
24863   no:yes:* )
24864     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24866     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24867 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24868     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24870     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24871 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24874     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24876
24877     ;;
24878 esac
24879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24882   echo $ECHO_N "(cached) $ECHO_C" >&6
24883 else
24884   eval "$as_ac_Header=\$ac_header_preproc"
24885 fi
24886 ac_res=`eval echo '${'$as_ac_Header'}'`
24887                { echo "$as_me:$LINENO: result: $ac_res" >&5
24888 echo "${ECHO_T}$ac_res" >&6; }
24889
24890 fi
24891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24892   cat >>confdefs.h <<_ACEOF
24893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24894 _ACEOF
24895
24896 fi
24897
24898 done
24899
24900     { echo "$as_me:$LINENO: checking for term.h" >&5
24901 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24902 if test "${ac_cv_header_term_h+set}" = set; then
24903   echo $ECHO_N "(cached) $ECHO_C" >&6
24904 else
24905   cat >conftest.$ac_ext <<_ACEOF
24906 /* confdefs.h.  */
24907 _ACEOF
24908 cat confdefs.h >>conftest.$ac_ext
24909 cat >>conftest.$ac_ext <<_ACEOF
24910 /* end confdefs.h.  */
24911 #if HAVE_CURSES_H
24912 #include <curses.h>
24913 #endif
24914
24915
24916 #include <term.h>
24917 _ACEOF
24918 rm -f conftest.$ac_objext
24919 if { (ac_try="$ac_compile"
24920 case "(($ac_try" in
24921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922   *) ac_try_echo=$ac_try;;
24923 esac
24924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24925   (eval "$ac_compile") 2>conftest.er1
24926   ac_status=$?
24927   grep -v '^ *+' conftest.er1 >conftest.err
24928   rm -f conftest.er1
24929   cat conftest.err >&5
24930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931   (exit $ac_status); } && {
24932          test -z "$ac_c_werror_flag" ||
24933          test ! -s conftest.err
24934        } && test -s conftest.$ac_objext; then
24935   ac_cv_header_term_h=yes
24936 else
24937   echo "$as_me: failed program was:" >&5
24938 sed 's/^/| /' conftest.$ac_ext >&5
24939
24940         ac_cv_header_term_h=no
24941 fi
24942
24943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24944 fi
24945 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24946 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24947 if test $ac_cv_header_term_h = yes; then
24948    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24949 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24950 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24951   echo $ECHO_N "(cached) $ECHO_C" >&6
24952 else
24953   ac_check_lib_save_LIBS=$LIBS
24954 LIBS="-lcurses  $LIBS"
24955 cat >conftest.$ac_ext <<_ACEOF
24956 /* confdefs.h.  */
24957 _ACEOF
24958 cat confdefs.h >>conftest.$ac_ext
24959 cat >>conftest.$ac_ext <<_ACEOF
24960 /* end confdefs.h.  */
24961
24962 /* Override any GCC internal prototype to avoid an error.
24963    Use char because int might match the return type of a GCC
24964    builtin and then its argument prototype would still apply.  */
24965 #ifdef __cplusplus
24966 extern "C"
24967 #endif
24968 char tgetent ();
24969 int
24970 main ()
24971 {
24972 return tgetent ();
24973   ;
24974   return 0;
24975 }
24976 _ACEOF
24977 rm -f conftest.$ac_objext conftest$ac_exeext
24978 if { (ac_try="$ac_link"
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_link") 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_exeext &&
24994        $as_test_x conftest$ac_exeext; then
24995   ac_cv_lib_curses_tgetent=yes
24996 else
24997   echo "$as_me: failed program was:" >&5
24998 sed 's/^/| /' conftest.$ac_ext >&5
24999
25000         ac_cv_lib_curses_tgetent=no
25001 fi
25002
25003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25004       conftest$ac_exeext conftest.$ac_ext
25005 LIBS=$ac_check_lib_save_LIBS
25006 fi
25007 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25008 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25009 if test $ac_cv_lib_curses_tgetent = yes; then
25010    CONS_LIBS="-lcurses"
25011          CONS_OBJ="conio.o"
25012          CONS_SRC="conio.c"
25013          got_conio="yes"
25014          support_readline=no
25015
25016 cat >>confdefs.h <<\_ACEOF
25017 #define HAVE_CONIO 1
25018 _ACEOF
25019
25020
25021 fi
25022
25023
25024 else
25025    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25026 fi
25027
25028
25029
25030 fi
25031
25032
25033 fi
25034
25035
25036 # Check whether --enable-readline was given.
25037 if test "${enable_readline+set}" = set; then
25038   enableval=$enable_readline;
25039        if test x$enableval = xno; then
25040           support_readline=no
25041        fi
25042
25043
25044 fi
25045
25046
25047 got_readline="no"
25048 READLINE_SRC=
25049 if test x$support_readline = xyes; then
25050
25051 # Check whether --with-readline was given.
25052 if test "${with_readline+set}" = set; then
25053   withval=$with_readline;
25054           case "$with_readline" in
25055           no)
25056              :
25057              ;;
25058           yes|*)
25059              if test -f ${with_readline}/readline.h; then
25060                 CONS_INC="-I${with_readline}"
25061                 CONS_LDFLAGS="-L$with_readline"
25062              elif test -f ${with_readline}/include/readline/readline.h; then
25063                 CONS_INC="-I${with_readline}/include/readline"
25064                 CONS_LDFLAGS="-L${with_readline}/lib"
25065                 with_readline="${with_readline}/include/readline"
25066              else
25067                 with_readline="/usr/include/readline"
25068              fi
25069
25070              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25072   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25073 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25075   echo $ECHO_N "(cached) $ECHO_C" >&6
25076 fi
25077 ac_res=`eval echo '${'$as_ac_Header'}'`
25078                { echo "$as_me:$LINENO: result: $ac_res" >&5
25079 echo "${ECHO_T}$ac_res" >&6; }
25080 else
25081   # Is the header compilable?
25082 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25083 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25084 cat >conftest.$ac_ext <<_ACEOF
25085 /* confdefs.h.  */
25086 _ACEOF
25087 cat confdefs.h >>conftest.$ac_ext
25088 cat >>conftest.$ac_ext <<_ACEOF
25089 /* end confdefs.h.  */
25090 $ac_includes_default
25091 #include <${with_readline}/readline.h>
25092 _ACEOF
25093 rm -f conftest.$ac_objext
25094 if { (ac_try="$ac_compile"
25095 case "(($ac_try" in
25096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25097   *) ac_try_echo=$ac_try;;
25098 esac
25099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25100   (eval "$ac_compile") 2>conftest.er1
25101   ac_status=$?
25102   grep -v '^ *+' conftest.er1 >conftest.err
25103   rm -f conftest.er1
25104   cat conftest.err >&5
25105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106   (exit $ac_status); } && {
25107          test -z "$ac_c_werror_flag" ||
25108          test ! -s conftest.err
25109        } && test -s conftest.$ac_objext; then
25110   ac_header_compiler=yes
25111 else
25112   echo "$as_me: failed program was:" >&5
25113 sed 's/^/| /' conftest.$ac_ext >&5
25114
25115         ac_header_compiler=no
25116 fi
25117
25118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25120 echo "${ECHO_T}$ac_header_compiler" >&6; }
25121
25122 # Is the header present?
25123 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25124 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25125 cat >conftest.$ac_ext <<_ACEOF
25126 /* confdefs.h.  */
25127 _ACEOF
25128 cat confdefs.h >>conftest.$ac_ext
25129 cat >>conftest.$ac_ext <<_ACEOF
25130 /* end confdefs.h.  */
25131 #include <${with_readline}/readline.h>
25132 _ACEOF
25133 if { (ac_try="$ac_cpp conftest.$ac_ext"
25134 case "(($ac_try" in
25135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25136   *) ac_try_echo=$ac_try;;
25137 esac
25138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25140   ac_status=$?
25141   grep -v '^ *+' conftest.er1 >conftest.err
25142   rm -f conftest.er1
25143   cat conftest.err >&5
25144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145   (exit $ac_status); } >/dev/null && {
25146          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25147          test ! -s conftest.err
25148        }; then
25149   ac_header_preproc=yes
25150 else
25151   echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25153
25154   ac_header_preproc=no
25155 fi
25156
25157 rm -f conftest.err conftest.$ac_ext
25158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25159 echo "${ECHO_T}$ac_header_preproc" >&6; }
25160
25161 # So?  What about this header?
25162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25163   yes:no: )
25164     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25165 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25166     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25167 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25168     ac_header_preproc=yes
25169     ;;
25170   no:yes:* )
25171     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25172 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25173     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25174 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25175     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25176 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25177     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25178 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25179     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25180 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25181     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25182 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25183
25184     ;;
25185 esac
25186 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25187 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25189   echo $ECHO_N "(cached) $ECHO_C" >&6
25190 else
25191   eval "$as_ac_Header=\$ac_header_preproc"
25192 fi
25193 ac_res=`eval echo '${'$as_ac_Header'}'`
25194                { echo "$as_me:$LINENO: result: $ac_res" >&5
25195 echo "${ECHO_T}$ac_res" >&6; }
25196
25197 fi
25198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25199
25200
25201 cat >>confdefs.h <<\_ACEOF
25202 #define HAVE_READLINE 1
25203 _ACEOF
25204
25205                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25206                     got_readline="yes"
25207
25208 else
25209
25210                     echo " "
25211                     echo "readline.h not found. readline turned off ..."
25212                     echo " "
25213
25214
25215 fi
25216
25217
25218              ;;
25219           esac
25220
25221 else
25222
25223                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25224   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25225 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25226 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25227   echo $ECHO_N "(cached) $ECHO_C" >&6
25228 fi
25229 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25230 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25231 else
25232   # Is the header compilable?
25233 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25234 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25235 cat >conftest.$ac_ext <<_ACEOF
25236 /* confdefs.h.  */
25237 _ACEOF
25238 cat confdefs.h >>conftest.$ac_ext
25239 cat >>conftest.$ac_ext <<_ACEOF
25240 /* end confdefs.h.  */
25241 $ac_includes_default
25242 #include </usr/include/readline/readline.h>
25243 _ACEOF
25244 rm -f conftest.$ac_objext
25245 if { (ac_try="$ac_compile"
25246 case "(($ac_try" in
25247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25248   *) ac_try_echo=$ac_try;;
25249 esac
25250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25251   (eval "$ac_compile") 2>conftest.er1
25252   ac_status=$?
25253   grep -v '^ *+' conftest.er1 >conftest.err
25254   rm -f conftest.er1
25255   cat conftest.err >&5
25256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257   (exit $ac_status); } && {
25258          test -z "$ac_c_werror_flag" ||
25259          test ! -s conftest.err
25260        } && test -s conftest.$ac_objext; then
25261   ac_header_compiler=yes
25262 else
25263   echo "$as_me: failed program was:" >&5
25264 sed 's/^/| /' conftest.$ac_ext >&5
25265
25266         ac_header_compiler=no
25267 fi
25268
25269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25271 echo "${ECHO_T}$ac_header_compiler" >&6; }
25272
25273 # Is the header present?
25274 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25275 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25276 cat >conftest.$ac_ext <<_ACEOF
25277 /* confdefs.h.  */
25278 _ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h.  */
25282 #include </usr/include/readline/readline.h>
25283 _ACEOF
25284 if { (ac_try="$ac_cpp conftest.$ac_ext"
25285 case "(($ac_try" in
25286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25287   *) ac_try_echo=$ac_try;;
25288 esac
25289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25290   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25291   ac_status=$?
25292   grep -v '^ *+' conftest.er1 >conftest.err
25293   rm -f conftest.er1
25294   cat conftest.err >&5
25295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296   (exit $ac_status); } >/dev/null && {
25297          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25298          test ! -s conftest.err
25299        }; then
25300   ac_header_preproc=yes
25301 else
25302   echo "$as_me: failed program was:" >&5
25303 sed 's/^/| /' conftest.$ac_ext >&5
25304
25305   ac_header_preproc=no
25306 fi
25307
25308 rm -f conftest.err conftest.$ac_ext
25309 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25310 echo "${ECHO_T}$ac_header_preproc" >&6; }
25311
25312 # So?  What about this header?
25313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25314   yes:no: )
25315     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25316 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25317     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25318 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25319     ac_header_preproc=yes
25320     ;;
25321   no:yes:* )
25322     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25323 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25324     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25325 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25326     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25327 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25328     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25329 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25330     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25331 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25332     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25333 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25334
25335     ;;
25336 esac
25337 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25338 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25339 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25340   echo $ECHO_N "(cached) $ECHO_C" >&6
25341 else
25342   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25343 fi
25344 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25345 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25346
25347 fi
25348 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25349
25350
25351 cat >>confdefs.h <<\_ACEOF
25352 #define HAVE_READLINE 1
25353 _ACEOF
25354
25355                 got_readline="yes"
25356                 CONS_INC="-I/usr/include/readline"
25357                 CONS_LIBS="-lreadline -ltermcap"
25358
25359 else
25360
25361                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25363   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25364 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25366   echo $ECHO_N "(cached) $ECHO_C" >&6
25367 fi
25368 ac_res=`eval echo '${'$as_ac_Header'}'`
25369                { echo "$as_me:$LINENO: result: $ac_res" >&5
25370 echo "${ECHO_T}$ac_res" >&6; }
25371 else
25372   # Is the header compilable?
25373 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25374 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25375 cat >conftest.$ac_ext <<_ACEOF
25376 /* confdefs.h.  */
25377 _ACEOF
25378 cat confdefs.h >>conftest.$ac_ext
25379 cat >>conftest.$ac_ext <<_ACEOF
25380 /* end confdefs.h.  */
25381 $ac_includes_default
25382 #include <${TOP_DIR}/depkgs/readline/readline.h>
25383 _ACEOF
25384 rm -f conftest.$ac_objext
25385 if { (ac_try="$ac_compile"
25386 case "(($ac_try" in
25387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25388   *) ac_try_echo=$ac_try;;
25389 esac
25390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25391   (eval "$ac_compile") 2>conftest.er1
25392   ac_status=$?
25393   grep -v '^ *+' conftest.er1 >conftest.err
25394   rm -f conftest.er1
25395   cat conftest.err >&5
25396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397   (exit $ac_status); } && {
25398          test -z "$ac_c_werror_flag" ||
25399          test ! -s conftest.err
25400        } && test -s conftest.$ac_objext; then
25401   ac_header_compiler=yes
25402 else
25403   echo "$as_me: failed program was:" >&5
25404 sed 's/^/| /' conftest.$ac_ext >&5
25405
25406         ac_header_compiler=no
25407 fi
25408
25409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25411 echo "${ECHO_T}$ac_header_compiler" >&6; }
25412
25413 # Is the header present?
25414 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25415 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25416 cat >conftest.$ac_ext <<_ACEOF
25417 /* confdefs.h.  */
25418 _ACEOF
25419 cat confdefs.h >>conftest.$ac_ext
25420 cat >>conftest.$ac_ext <<_ACEOF
25421 /* end confdefs.h.  */
25422 #include <${TOP_DIR}/depkgs/readline/readline.h>
25423 _ACEOF
25424 if { (ac_try="$ac_cpp conftest.$ac_ext"
25425 case "(($ac_try" in
25426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25427   *) ac_try_echo=$ac_try;;
25428 esac
25429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25430   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25431   ac_status=$?
25432   grep -v '^ *+' conftest.er1 >conftest.err
25433   rm -f conftest.er1
25434   cat conftest.err >&5
25435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436   (exit $ac_status); } >/dev/null && {
25437          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25438          test ! -s conftest.err
25439        }; then
25440   ac_header_preproc=yes
25441 else
25442   echo "$as_me: failed program was:" >&5
25443 sed 's/^/| /' conftest.$ac_ext >&5
25444
25445   ac_header_preproc=no
25446 fi
25447
25448 rm -f conftest.err conftest.$ac_ext
25449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25450 echo "${ECHO_T}$ac_header_preproc" >&6; }
25451
25452 # So?  What about this header?
25453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25454   yes:no: )
25455     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25456 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25457     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25458 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25459     ac_header_preproc=yes
25460     ;;
25461   no:yes:* )
25462     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25463 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25464     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25465 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25466     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25467 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25468     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25469 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25470     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25471 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25472     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25473 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25474
25475     ;;
25476 esac
25477 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25478 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25480   echo $ECHO_N "(cached) $ECHO_C" >&6
25481 else
25482   eval "$as_ac_Header=\$ac_header_preproc"
25483 fi
25484 ac_res=`eval echo '${'$as_ac_Header'}'`
25485                { echo "$as_me:$LINENO: result: $ac_res" >&5
25486 echo "${ECHO_T}$ac_res" >&6; }
25487
25488 fi
25489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25490
25491
25492 cat >>confdefs.h <<\_ACEOF
25493 #define HAVE_READLINE 1
25494 _ACEOF
25495
25496                         got_readline="yes"
25497                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25498                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25499                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25500                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25501
25502 else
25503
25504                         echo " "
25505                         echo "readline.h not found. readline turned off ..."
25506                         echo " "
25507
25508
25509 fi
25510
25511
25512
25513
25514 fi
25515
25516
25517
25518
25519 fi
25520
25521 fi
25522
25523
25524
25525
25526
25527
25528
25529
25530 MAKE_SHELL=/bin/sh
25531
25532 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25533 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25534 if test "${ac_cv_header_stat_broken+set}" = set; then
25535   echo $ECHO_N "(cached) $ECHO_C" >&6
25536 else
25537   cat >conftest.$ac_ext <<_ACEOF
25538 /* confdefs.h.  */
25539 _ACEOF
25540 cat confdefs.h >>conftest.$ac_ext
25541 cat >>conftest.$ac_ext <<_ACEOF
25542 /* end confdefs.h.  */
25543 #include <sys/types.h>
25544 #include <sys/stat.h>
25545
25546 #if defined S_ISBLK && defined S_IFDIR
25547 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25548 #endif
25549
25550 #if defined S_ISBLK && defined S_IFCHR
25551 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25552 #endif
25553
25554 #if defined S_ISLNK && defined S_IFREG
25555 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25556 #endif
25557
25558 #if defined S_ISSOCK && defined S_IFREG
25559 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25560 #endif
25561
25562 _ACEOF
25563 rm -f conftest.$ac_objext
25564 if { (ac_try="$ac_compile"
25565 case "(($ac_try" in
25566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25567   *) ac_try_echo=$ac_try;;
25568 esac
25569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25570   (eval "$ac_compile") 2>conftest.er1
25571   ac_status=$?
25572   grep -v '^ *+' conftest.er1 >conftest.err
25573   rm -f conftest.er1
25574   cat conftest.err >&5
25575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576   (exit $ac_status); } && {
25577          test -z "$ac_c_werror_flag" ||
25578          test ! -s conftest.err
25579        } && test -s conftest.$ac_objext; then
25580   ac_cv_header_stat_broken=no
25581 else
25582   echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25584
25585         ac_cv_header_stat_broken=yes
25586 fi
25587
25588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25589 fi
25590 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25591 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25592 if test $ac_cv_header_stat_broken = yes; then
25593
25594 cat >>confdefs.h <<\_ACEOF
25595 #define STAT_MACROS_BROKEN 1
25596 _ACEOF
25597
25598 fi
25599
25600
25601
25602
25603
25604
25605 ac_header_dirent=no
25606 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25607   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25608 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25609 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25611   echo $ECHO_N "(cached) $ECHO_C" >&6
25612 else
25613   cat >conftest.$ac_ext <<_ACEOF
25614 /* confdefs.h.  */
25615 _ACEOF
25616 cat confdefs.h >>conftest.$ac_ext
25617 cat >>conftest.$ac_ext <<_ACEOF
25618 /* end confdefs.h.  */
25619 #include <sys/types.h>
25620 #include <$ac_hdr>
25621
25622 int
25623 main ()
25624 {
25625 if ((DIR *) 0)
25626 return 0;
25627   ;
25628   return 0;
25629 }
25630 _ACEOF
25631 rm -f conftest.$ac_objext
25632 if { (ac_try="$ac_compile"
25633 case "(($ac_try" in
25634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25635   *) ac_try_echo=$ac_try;;
25636 esac
25637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25638   (eval "$ac_compile") 2>conftest.er1
25639   ac_status=$?
25640   grep -v '^ *+' conftest.er1 >conftest.err
25641   rm -f conftest.er1
25642   cat conftest.err >&5
25643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644   (exit $ac_status); } && {
25645          test -z "$ac_c_werror_flag" ||
25646          test ! -s conftest.err
25647        } && test -s conftest.$ac_objext; then
25648   eval "$as_ac_Header=yes"
25649 else
25650   echo "$as_me: failed program was:" >&5
25651 sed 's/^/| /' conftest.$ac_ext >&5
25652
25653         eval "$as_ac_Header=no"
25654 fi
25655
25656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25657 fi
25658 ac_res=`eval echo '${'$as_ac_Header'}'`
25659                { echo "$as_me:$LINENO: result: $ac_res" >&5
25660 echo "${ECHO_T}$ac_res" >&6; }
25661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25662   cat >>confdefs.h <<_ACEOF
25663 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25664 _ACEOF
25665
25666 ac_header_dirent=$ac_hdr; break
25667 fi
25668
25669 done
25670 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25671 if test $ac_header_dirent = dirent.h; then
25672   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25673 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25674 if test "${ac_cv_search_opendir+set}" = set; then
25675   echo $ECHO_N "(cached) $ECHO_C" >&6
25676 else
25677   ac_func_search_save_LIBS=$LIBS
25678 cat >conftest.$ac_ext <<_ACEOF
25679 /* confdefs.h.  */
25680 _ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h.  */
25684
25685 /* Override any GCC internal prototype to avoid an error.
25686    Use char because int might match the return type of a GCC
25687    builtin and then its argument prototype would still apply.  */
25688 #ifdef __cplusplus
25689 extern "C"
25690 #endif
25691 char opendir ();
25692 int
25693 main ()
25694 {
25695 return opendir ();
25696   ;
25697   return 0;
25698 }
25699 _ACEOF
25700 for ac_lib in '' dir; do
25701   if test -z "$ac_lib"; then
25702     ac_res="none required"
25703   else
25704     ac_res=-l$ac_lib
25705     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25706   fi
25707   rm -f conftest.$ac_objext conftest$ac_exeext
25708 if { (ac_try="$ac_link"
25709 case "(($ac_try" in
25710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25711   *) ac_try_echo=$ac_try;;
25712 esac
25713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25714   (eval "$ac_link") 2>conftest.er1
25715   ac_status=$?
25716   grep -v '^ *+' conftest.er1 >conftest.err
25717   rm -f conftest.er1
25718   cat conftest.err >&5
25719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720   (exit $ac_status); } && {
25721          test -z "$ac_c_werror_flag" ||
25722          test ! -s conftest.err
25723        } && test -s conftest$ac_exeext &&
25724        $as_test_x conftest$ac_exeext; then
25725   ac_cv_search_opendir=$ac_res
25726 else
25727   echo "$as_me: failed program was:" >&5
25728 sed 's/^/| /' conftest.$ac_ext >&5
25729
25730
25731 fi
25732
25733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25734       conftest$ac_exeext
25735   if test "${ac_cv_search_opendir+set}" = set; then
25736   break
25737 fi
25738 done
25739 if test "${ac_cv_search_opendir+set}" = set; then
25740   :
25741 else
25742   ac_cv_search_opendir=no
25743 fi
25744 rm conftest.$ac_ext
25745 LIBS=$ac_func_search_save_LIBS
25746 fi
25747 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25748 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25749 ac_res=$ac_cv_search_opendir
25750 if test "$ac_res" != no; then
25751   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25752
25753 fi
25754
25755 else
25756   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25757 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25758 if test "${ac_cv_search_opendir+set}" = set; then
25759   echo $ECHO_N "(cached) $ECHO_C" >&6
25760 else
25761   ac_func_search_save_LIBS=$LIBS
25762 cat >conftest.$ac_ext <<_ACEOF
25763 /* confdefs.h.  */
25764 _ACEOF
25765 cat confdefs.h >>conftest.$ac_ext
25766 cat >>conftest.$ac_ext <<_ACEOF
25767 /* end confdefs.h.  */
25768
25769 /* Override any GCC internal prototype to avoid an error.
25770    Use char because int might match the return type of a GCC
25771    builtin and then its argument prototype would still apply.  */
25772 #ifdef __cplusplus
25773 extern "C"
25774 #endif
25775 char opendir ();
25776 int
25777 main ()
25778 {
25779 return opendir ();
25780   ;
25781   return 0;
25782 }
25783 _ACEOF
25784 for ac_lib in '' x; do
25785   if test -z "$ac_lib"; then
25786     ac_res="none required"
25787   else
25788     ac_res=-l$ac_lib
25789     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25790   fi
25791   rm -f conftest.$ac_objext conftest$ac_exeext
25792 if { (ac_try="$ac_link"
25793 case "(($ac_try" in
25794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25795   *) ac_try_echo=$ac_try;;
25796 esac
25797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25798   (eval "$ac_link") 2>conftest.er1
25799   ac_status=$?
25800   grep -v '^ *+' conftest.er1 >conftest.err
25801   rm -f conftest.er1
25802   cat conftest.err >&5
25803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804   (exit $ac_status); } && {
25805          test -z "$ac_c_werror_flag" ||
25806          test ! -s conftest.err
25807        } && test -s conftest$ac_exeext &&
25808        $as_test_x conftest$ac_exeext; then
25809   ac_cv_search_opendir=$ac_res
25810 else
25811   echo "$as_me: failed program was:" >&5
25812 sed 's/^/| /' conftest.$ac_ext >&5
25813
25814
25815 fi
25816
25817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25818       conftest$ac_exeext
25819   if test "${ac_cv_search_opendir+set}" = set; then
25820   break
25821 fi
25822 done
25823 if test "${ac_cv_search_opendir+set}" = set; then
25824   :
25825 else
25826   ac_cv_search_opendir=no
25827 fi
25828 rm conftest.$ac_ext
25829 LIBS=$ac_func_search_save_LIBS
25830 fi
25831 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25832 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25833 ac_res=$ac_cv_search_opendir
25834 if test "$ac_res" != no; then
25835   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25836
25837 fi
25838
25839 fi
25840
25841
25842
25843
25844
25845
25846
25847
25848 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25849 do
25850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25854   echo $ECHO_N "(cached) $ECHO_C" >&6
25855 else
25856   cat >conftest.$ac_ext <<_ACEOF
25857 /* confdefs.h.  */
25858 _ACEOF
25859 cat confdefs.h >>conftest.$ac_ext
25860 cat >>conftest.$ac_ext <<_ACEOF
25861 /* end confdefs.h.  */
25862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25864 #define $ac_func innocuous_$ac_func
25865
25866 /* System header to define __stub macros and hopefully few prototypes,
25867     which can conflict with char $ac_func (); below.
25868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25869     <limits.h> exists even on freestanding compilers.  */
25870
25871 #ifdef __STDC__
25872 # include <limits.h>
25873 #else
25874 # include <assert.h>
25875 #endif
25876
25877 #undef $ac_func
25878
25879 /* Override any GCC internal prototype to avoid an error.
25880    Use char because int might match the return type of a GCC
25881    builtin and then its argument prototype would still apply.  */
25882 #ifdef __cplusplus
25883 extern "C"
25884 #endif
25885 char $ac_func ();
25886 /* The GNU C library defines this for functions which it implements
25887     to always fail with ENOSYS.  Some functions are actually named
25888     something starting with __ and the normal name is an alias.  */
25889 #if defined __stub_$ac_func || defined __stub___$ac_func
25890 choke me
25891 #endif
25892
25893 int
25894 main ()
25895 {
25896 return $ac_func ();
25897   ;
25898   return 0;
25899 }
25900 _ACEOF
25901 rm -f conftest.$ac_objext conftest$ac_exeext
25902 if { (ac_try="$ac_link"
25903 case "(($ac_try" in
25904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25905   *) ac_try_echo=$ac_try;;
25906 esac
25907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25908   (eval "$ac_link") 2>conftest.er1
25909   ac_status=$?
25910   grep -v '^ *+' conftest.er1 >conftest.err
25911   rm -f conftest.er1
25912   cat conftest.err >&5
25913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914   (exit $ac_status); } && {
25915          test -z "$ac_c_werror_flag" ||
25916          test ! -s conftest.err
25917        } && test -s conftest$ac_exeext &&
25918        $as_test_x conftest$ac_exeext; then
25919   eval "$as_ac_var=yes"
25920 else
25921   echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25923
25924         eval "$as_ac_var=no"
25925 fi
25926
25927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25928       conftest$ac_exeext conftest.$ac_ext
25929 fi
25930 ac_res=`eval echo '${'$as_ac_var'}'`
25931                { echo "$as_me:$LINENO: result: $ac_res" >&5
25932 echo "${ECHO_T}$ac_res" >&6; }
25933 if test `eval echo '${'$as_ac_var'}'` = yes; then
25934   cat >>confdefs.h <<_ACEOF
25935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25936 _ACEOF
25937
25938 fi
25939 done
25940
25941
25942
25943 for ac_func in nanosleep nl_langinfo
25944 do
25945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25949   echo $ECHO_N "(cached) $ECHO_C" >&6
25950 else
25951   cat >conftest.$ac_ext <<_ACEOF
25952 /* confdefs.h.  */
25953 _ACEOF
25954 cat confdefs.h >>conftest.$ac_ext
25955 cat >>conftest.$ac_ext <<_ACEOF
25956 /* end confdefs.h.  */
25957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25959 #define $ac_func innocuous_$ac_func
25960
25961 /* System header to define __stub macros and hopefully few prototypes,
25962     which can conflict with char $ac_func (); below.
25963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25964     <limits.h> exists even on freestanding compilers.  */
25965
25966 #ifdef __STDC__
25967 # include <limits.h>
25968 #else
25969 # include <assert.h>
25970 #endif
25971
25972 #undef $ac_func
25973
25974 /* Override any GCC internal prototype to avoid an error.
25975    Use char because int might match the return type of a GCC
25976    builtin and then its argument prototype would still apply.  */
25977 #ifdef __cplusplus
25978 extern "C"
25979 #endif
25980 char $ac_func ();
25981 /* The GNU C library defines this for functions which it implements
25982     to always fail with ENOSYS.  Some functions are actually named
25983     something starting with __ and the normal name is an alias.  */
25984 #if defined __stub_$ac_func || defined __stub___$ac_func
25985 choke me
25986 #endif
25987
25988 int
25989 main ()
25990 {
25991 return $ac_func ();
25992   ;
25993   return 0;
25994 }
25995 _ACEOF
25996 rm -f conftest.$ac_objext conftest$ac_exeext
25997 if { (ac_try="$ac_link"
25998 case "(($ac_try" in
25999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26000   *) ac_try_echo=$ac_try;;
26001 esac
26002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26003   (eval "$ac_link") 2>conftest.er1
26004   ac_status=$?
26005   grep -v '^ *+' conftest.er1 >conftest.err
26006   rm -f conftest.er1
26007   cat conftest.err >&5
26008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009   (exit $ac_status); } && {
26010          test -z "$ac_c_werror_flag" ||
26011          test ! -s conftest.err
26012        } && test -s conftest$ac_exeext &&
26013        $as_test_x conftest$ac_exeext; then
26014   eval "$as_ac_var=yes"
26015 else
26016   echo "$as_me: failed program was:" >&5
26017 sed 's/^/| /' conftest.$ac_ext >&5
26018
26019         eval "$as_ac_var=no"
26020 fi
26021
26022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26023       conftest$ac_exeext conftest.$ac_ext
26024 fi
26025 ac_res=`eval echo '${'$as_ac_var'}'`
26026                { echo "$as_me:$LINENO: result: $ac_res" >&5
26027 echo "${ECHO_T}$ac_res" >&6; }
26028 if test `eval echo '${'$as_ac_var'}'` = yes; then
26029   cat >>confdefs.h <<_ACEOF
26030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26031 _ACEOF
26032
26033 fi
26034 done
26035
26036
26037 for ac_header in varargs.h
26038 do
26039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26041   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26044   echo $ECHO_N "(cached) $ECHO_C" >&6
26045 fi
26046 ac_res=`eval echo '${'$as_ac_Header'}'`
26047                { echo "$as_me:$LINENO: result: $ac_res" >&5
26048 echo "${ECHO_T}$ac_res" >&6; }
26049 else
26050   # Is the header compilable?
26051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26053 cat >conftest.$ac_ext <<_ACEOF
26054 /* confdefs.h.  */
26055 _ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h.  */
26059 $ac_includes_default
26060 #include <$ac_header>
26061 _ACEOF
26062 rm -f conftest.$ac_objext
26063 if { (ac_try="$ac_compile"
26064 case "(($ac_try" in
26065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26066   *) ac_try_echo=$ac_try;;
26067 esac
26068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26069   (eval "$ac_compile") 2>conftest.er1
26070   ac_status=$?
26071   grep -v '^ *+' conftest.er1 >conftest.err
26072   rm -f conftest.er1
26073   cat conftest.err >&5
26074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075   (exit $ac_status); } && {
26076          test -z "$ac_c_werror_flag" ||
26077          test ! -s conftest.err
26078        } && test -s conftest.$ac_objext; then
26079   ac_header_compiler=yes
26080 else
26081   echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26083
26084         ac_header_compiler=no
26085 fi
26086
26087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26089 echo "${ECHO_T}$ac_header_compiler" >&6; }
26090
26091 # Is the header present?
26092 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26094 cat >conftest.$ac_ext <<_ACEOF
26095 /* confdefs.h.  */
26096 _ACEOF
26097 cat confdefs.h >>conftest.$ac_ext
26098 cat >>conftest.$ac_ext <<_ACEOF
26099 /* end confdefs.h.  */
26100 #include <$ac_header>
26101 _ACEOF
26102 if { (ac_try="$ac_cpp conftest.$ac_ext"
26103 case "(($ac_try" in
26104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26105   *) ac_try_echo=$ac_try;;
26106 esac
26107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26108   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26109   ac_status=$?
26110   grep -v '^ *+' conftest.er1 >conftest.err
26111   rm -f conftest.er1
26112   cat conftest.err >&5
26113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114   (exit $ac_status); } >/dev/null && {
26115          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26116          test ! -s conftest.err
26117        }; then
26118   ac_header_preproc=yes
26119 else
26120   echo "$as_me: failed program was:" >&5
26121 sed 's/^/| /' conftest.$ac_ext >&5
26122
26123   ac_header_preproc=no
26124 fi
26125
26126 rm -f conftest.err conftest.$ac_ext
26127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26128 echo "${ECHO_T}$ac_header_preproc" >&6; }
26129
26130 # So?  What about this header?
26131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26132   yes:no: )
26133     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26137     ac_header_preproc=yes
26138     ;;
26139   no:yes:* )
26140     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26142     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26143 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26144     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26146     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26147 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26150     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26152
26153     ;;
26154 esac
26155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26158   echo $ECHO_N "(cached) $ECHO_C" >&6
26159 else
26160   eval "$as_ac_Header=\$ac_header_preproc"
26161 fi
26162 ac_res=`eval echo '${'$as_ac_Header'}'`
26163                { echo "$as_me:$LINENO: result: $ac_res" >&5
26164 echo "${ECHO_T}$ac_res" >&6; }
26165
26166 fi
26167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26168   cat >>confdefs.h <<_ACEOF
26169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26170 _ACEOF
26171
26172 fi
26173
26174 done
26175
26176
26177
26178 { echo "$as_me:$LINENO: checking for Python support" >&5
26179 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26180
26181 # Check whether --with-python was given.
26182 if test "${with_python+set}" = set; then
26183   withval=$with_python;
26184        PYTHON_INCDIR=
26185        PYTHON_LIBS=
26186        if test "$withval" != "no"; then
26187           if test "$withval" = "yes"; then
26188              if test -e /usr/bin/python-config ; then
26189                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26190                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26191              else
26192                 for python_root in /usr /usr/local /usr/sfw; do
26193                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26194                       if test -f $python_root/include/${ver}/Python.h; then
26195                          PYTHON_INCDIR=-I$python_root/include/${ver}
26196                          if test -d $python_root/lib64/${ver}/config; then
26197                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26198                          else
26199                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26200                          fi
26201                          break
26202                       fi
26203                    done
26204                 done
26205
26206                 if test x$PYTHON_INCDIR = x; then
26207                    if test -f $prefix/include/Python.h; then
26208                       PYTHON_INCDIR=-I$prefix/include
26209                       if test -d $prefix/lib64/config; then
26210                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26211                       else
26212                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26213                       fi
26214                    else
26215                       { echo "$as_me:$LINENO: result: no" >&5
26216 echo "${ECHO_T}no" >&6; }
26217                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26218 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26219    { (exit 1); exit 1; }; }
26220                    fi
26221                 fi
26222              fi
26223           else
26224              if test -e $withval/bin/python-config ; then
26225                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26226                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26227              elif test -f $withval/Python.h; then
26228                 PYTHON_INCDIR=-I$withval
26229                 PYTHON_LIBS="-L$withval/config -lpython"
26230              elif test -f $withval/include/Python.h; then
26231                 PYTHON_INCDIR=-I$withval/include
26232                 if test -d $withval/lib64/config; then
26233                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26234                 else
26235                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26236                 fi
26237              elif test -f $withval/include/python/Python.h; then
26238                 PYTHON_INCDIR=-I$withval/include/python
26239                 if test -d $withval/lib64/python/config; then
26240                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26241                 else
26242                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26243                 fi
26244              else
26245                 { echo "$as_me:$LINENO: result: no" >&5
26246 echo "${ECHO_T}no" >&6; }
26247                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26248 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26249    { (exit 1); exit 1; }; }
26250              fi
26251           fi
26252
26253           cat >>confdefs.h <<\_ACEOF
26254 #define HAVE_PYTHON 1
26255 _ACEOF
26256
26257           { echo "$as_me:$LINENO: result: yes" >&5
26258 echo "${ECHO_T}yes" >&6; }
26259           support_python=yes
26260           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26261 echo "$as_me: checking for more Python libs" >&6;}
26262           saved_LIBS="$LIBS"; LIBS=
26263           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26264 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26265 if test "${ac_cv_search_shm_open+set}" = set; then
26266   echo $ECHO_N "(cached) $ECHO_C" >&6
26267 else
26268   ac_func_search_save_LIBS=$LIBS
26269 cat >conftest.$ac_ext <<_ACEOF
26270 /* confdefs.h.  */
26271 _ACEOF
26272 cat confdefs.h >>conftest.$ac_ext
26273 cat >>conftest.$ac_ext <<_ACEOF
26274 /* end confdefs.h.  */
26275
26276 /* Override any GCC internal prototype to avoid an error.
26277    Use char because int might match the return type of a GCC
26278    builtin and then its argument prototype would still apply.  */
26279 #ifdef __cplusplus
26280 extern "C"
26281 #endif
26282 char shm_open ();
26283 int
26284 main ()
26285 {
26286 return shm_open ();
26287   ;
26288   return 0;
26289 }
26290 _ACEOF
26291 for ac_lib in '' rt; do
26292   if test -z "$ac_lib"; then
26293     ac_res="none required"
26294   else
26295     ac_res=-l$ac_lib
26296     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26297   fi
26298   rm -f conftest.$ac_objext conftest$ac_exeext
26299 if { (ac_try="$ac_link"
26300 case "(($ac_try" in
26301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26302   *) ac_try_echo=$ac_try;;
26303 esac
26304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26305   (eval "$ac_link") 2>conftest.er1
26306   ac_status=$?
26307   grep -v '^ *+' conftest.er1 >conftest.err
26308   rm -f conftest.er1
26309   cat conftest.err >&5
26310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311   (exit $ac_status); } && {
26312          test -z "$ac_c_werror_flag" ||
26313          test ! -s conftest.err
26314        } && test -s conftest$ac_exeext &&
26315        $as_test_x conftest$ac_exeext; then
26316   ac_cv_search_shm_open=$ac_res
26317 else
26318   echo "$as_me: failed program was:" >&5
26319 sed 's/^/| /' conftest.$ac_ext >&5
26320
26321
26322 fi
26323
26324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26325       conftest$ac_exeext
26326   if test "${ac_cv_search_shm_open+set}" = set; then
26327   break
26328 fi
26329 done
26330 if test "${ac_cv_search_shm_open+set}" = set; then
26331   :
26332 else
26333   ac_cv_search_shm_open=no
26334 fi
26335 rm conftest.$ac_ext
26336 LIBS=$ac_func_search_save_LIBS
26337 fi
26338 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26339 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26340 ac_res=$ac_cv_search_shm_open
26341 if test "$ac_res" != no; then
26342   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26343
26344 fi
26345
26346
26347 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26348 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26349 if test "${ac_cv_lib_util_openpty+set}" = set; then
26350   echo $ECHO_N "(cached) $ECHO_C" >&6
26351 else
26352   ac_check_lib_save_LIBS=$LIBS
26353 LIBS="-lutil  $LIBS"
26354 cat >conftest.$ac_ext <<_ACEOF
26355 /* confdefs.h.  */
26356 _ACEOF
26357 cat confdefs.h >>conftest.$ac_ext
26358 cat >>conftest.$ac_ext <<_ACEOF
26359 /* end confdefs.h.  */
26360
26361 /* Override any GCC internal prototype to avoid an error.
26362    Use char because int might match the return type of a GCC
26363    builtin and then its argument prototype would still apply.  */
26364 #ifdef __cplusplus
26365 extern "C"
26366 #endif
26367 char openpty ();
26368 int
26369 main ()
26370 {
26371 return openpty ();
26372   ;
26373   return 0;
26374 }
26375 _ACEOF
26376 rm -f conftest.$ac_objext conftest$ac_exeext
26377 if { (ac_try="$ac_link"
26378 case "(($ac_try" in
26379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26380   *) ac_try_echo=$ac_try;;
26381 esac
26382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26383   (eval "$ac_link") 2>conftest.er1
26384   ac_status=$?
26385   grep -v '^ *+' conftest.er1 >conftest.err
26386   rm -f conftest.er1
26387   cat conftest.err >&5
26388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389   (exit $ac_status); } && {
26390          test -z "$ac_c_werror_flag" ||
26391          test ! -s conftest.err
26392        } && test -s conftest$ac_exeext &&
26393        $as_test_x conftest$ac_exeext; then
26394   ac_cv_lib_util_openpty=yes
26395 else
26396   echo "$as_me: failed program was:" >&5
26397 sed 's/^/| /' conftest.$ac_ext >&5
26398
26399         ac_cv_lib_util_openpty=no
26400 fi
26401
26402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26403       conftest$ac_exeext conftest.$ac_ext
26404 LIBS=$ac_check_lib_save_LIBS
26405 fi
26406 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26407 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26408 if test $ac_cv_lib_util_openpty = yes; then
26409   cat >>confdefs.h <<_ACEOF
26410 #define HAVE_LIBUTIL 1
26411 _ACEOF
26412
26413   LIBS="-lutil $LIBS"
26414
26415 fi
26416
26417           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26418           LIBS="$saved_LIBS"
26419        else
26420           { echo "$as_me:$LINENO: result: no" >&5
26421 echo "${ECHO_T}no" >&6; }
26422        fi
26423
26424 else
26425
26426        { echo "$as_me:$LINENO: result: no" >&5
26427 echo "${ECHO_T}no" >&6; }
26428
26429
26430 fi
26431
26432
26433
26434
26435 { echo "$as_me:$LINENO: checking for socket" >&5
26436 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26437 if test "${ac_cv_func_socket+set}" = set; then
26438   echo $ECHO_N "(cached) $ECHO_C" >&6
26439 else
26440   cat >conftest.$ac_ext <<_ACEOF
26441 /* confdefs.h.  */
26442 _ACEOF
26443 cat confdefs.h >>conftest.$ac_ext
26444 cat >>conftest.$ac_ext <<_ACEOF
26445 /* end confdefs.h.  */
26446 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26448 #define socket innocuous_socket
26449
26450 /* System header to define __stub macros and hopefully few prototypes,
26451     which can conflict with char socket (); below.
26452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26453     <limits.h> exists even on freestanding compilers.  */
26454
26455 #ifdef __STDC__
26456 # include <limits.h>
26457 #else
26458 # include <assert.h>
26459 #endif
26460
26461 #undef socket
26462
26463 /* Override any GCC internal prototype to avoid an error.
26464    Use char because int might match the return type of a GCC
26465    builtin and then its argument prototype would still apply.  */
26466 #ifdef __cplusplus
26467 extern "C"
26468 #endif
26469 char socket ();
26470 /* The GNU C library defines this for functions which it implements
26471     to always fail with ENOSYS.  Some functions are actually named
26472     something starting with __ and the normal name is an alias.  */
26473 #if defined __stub_socket || defined __stub___socket
26474 choke me
26475 #endif
26476
26477 int
26478 main ()
26479 {
26480 return socket ();
26481   ;
26482   return 0;
26483 }
26484 _ACEOF
26485 rm -f conftest.$ac_objext conftest$ac_exeext
26486 if { (ac_try="$ac_link"
26487 case "(($ac_try" in
26488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26489   *) ac_try_echo=$ac_try;;
26490 esac
26491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26492   (eval "$ac_link") 2>conftest.er1
26493   ac_status=$?
26494   grep -v '^ *+' conftest.er1 >conftest.err
26495   rm -f conftest.er1
26496   cat conftest.err >&5
26497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498   (exit $ac_status); } && {
26499          test -z "$ac_c_werror_flag" ||
26500          test ! -s conftest.err
26501        } && test -s conftest$ac_exeext &&
26502        $as_test_x conftest$ac_exeext; then
26503   ac_cv_func_socket=yes
26504 else
26505   echo "$as_me: failed program was:" >&5
26506 sed 's/^/| /' conftest.$ac_ext >&5
26507
26508         ac_cv_func_socket=no
26509 fi
26510
26511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26512       conftest$ac_exeext conftest.$ac_ext
26513 fi
26514 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26515 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26516 if test $ac_cv_func_socket = yes; then
26517   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26518 echo "${ECHO_T}using libc's socket" >&6; }
26519 else
26520
26521 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26522 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26523 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26524   echo $ECHO_N "(cached) $ECHO_C" >&6
26525 else
26526   ac_check_lib_save_LIBS=$LIBS
26527 LIBS="-lxnet  $LIBS"
26528 cat >conftest.$ac_ext <<_ACEOF
26529 /* confdefs.h.  */
26530 _ACEOF
26531 cat confdefs.h >>conftest.$ac_ext
26532 cat >>conftest.$ac_ext <<_ACEOF
26533 /* end confdefs.h.  */
26534
26535 /* Override any GCC internal prototype to avoid an error.
26536    Use char because int might match the return type of a GCC
26537    builtin and then its argument prototype would still apply.  */
26538 #ifdef __cplusplus
26539 extern "C"
26540 #endif
26541 char socket ();
26542 int
26543 main ()
26544 {
26545 return socket ();
26546   ;
26547   return 0;
26548 }
26549 _ACEOF
26550 rm -f conftest.$ac_objext conftest$ac_exeext
26551 if { (ac_try="$ac_link"
26552 case "(($ac_try" in
26553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554   *) ac_try_echo=$ac_try;;
26555 esac
26556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557   (eval "$ac_link") 2>conftest.er1
26558   ac_status=$?
26559   grep -v '^ *+' conftest.er1 >conftest.err
26560   rm -f conftest.er1
26561   cat conftest.err >&5
26562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563   (exit $ac_status); } && {
26564          test -z "$ac_c_werror_flag" ||
26565          test ! -s conftest.err
26566        } && test -s conftest$ac_exeext &&
26567        $as_test_x conftest$ac_exeext; then
26568   ac_cv_lib_xnet_socket=yes
26569 else
26570   echo "$as_me: failed program was:" >&5
26571 sed 's/^/| /' conftest.$ac_ext >&5
26572
26573         ac_cv_lib_xnet_socket=no
26574 fi
26575
26576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26577       conftest$ac_exeext conftest.$ac_ext
26578 LIBS=$ac_check_lib_save_LIBS
26579 fi
26580 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26581 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26582 if test $ac_cv_lib_xnet_socket = yes; then
26583   cat >>confdefs.h <<_ACEOF
26584 #define HAVE_LIBXNET 1
26585 _ACEOF
26586
26587   LIBS="-lxnet $LIBS"
26588
26589 fi
26590
26591
26592 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26593 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26594 if test "${ac_cv_lib_socket_socket+set}" = set; then
26595   echo $ECHO_N "(cached) $ECHO_C" >&6
26596 else
26597   ac_check_lib_save_LIBS=$LIBS
26598 LIBS="-lsocket  $LIBS"
26599 cat >conftest.$ac_ext <<_ACEOF
26600 /* confdefs.h.  */
26601 _ACEOF
26602 cat confdefs.h >>conftest.$ac_ext
26603 cat >>conftest.$ac_ext <<_ACEOF
26604 /* end confdefs.h.  */
26605
26606 /* Override any GCC internal prototype to avoid an error.
26607    Use char because int might match the return type of a GCC
26608    builtin and then its argument prototype would still apply.  */
26609 #ifdef __cplusplus
26610 extern "C"
26611 #endif
26612 char socket ();
26613 int
26614 main ()
26615 {
26616 return socket ();
26617   ;
26618   return 0;
26619 }
26620 _ACEOF
26621 rm -f conftest.$ac_objext conftest$ac_exeext
26622 if { (ac_try="$ac_link"
26623 case "(($ac_try" in
26624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26625   *) ac_try_echo=$ac_try;;
26626 esac
26627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26628   (eval "$ac_link") 2>conftest.er1
26629   ac_status=$?
26630   grep -v '^ *+' conftest.er1 >conftest.err
26631   rm -f conftest.er1
26632   cat conftest.err >&5
26633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634   (exit $ac_status); } && {
26635          test -z "$ac_c_werror_flag" ||
26636          test ! -s conftest.err
26637        } && test -s conftest$ac_exeext &&
26638        $as_test_x conftest$ac_exeext; then
26639   ac_cv_lib_socket_socket=yes
26640 else
26641   echo "$as_me: failed program was:" >&5
26642 sed 's/^/| /' conftest.$ac_ext >&5
26643
26644         ac_cv_lib_socket_socket=no
26645 fi
26646
26647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26648       conftest$ac_exeext conftest.$ac_ext
26649 LIBS=$ac_check_lib_save_LIBS
26650 fi
26651 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26652 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26653 if test $ac_cv_lib_socket_socket = yes; then
26654   cat >>confdefs.h <<_ACEOF
26655 #define HAVE_LIBSOCKET 1
26656 _ACEOF
26657
26658   LIBS="-lsocket $LIBS"
26659
26660 fi
26661
26662
26663 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26664 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26665 if test "${ac_cv_lib_inet_socket+set}" = set; then
26666   echo $ECHO_N "(cached) $ECHO_C" >&6
26667 else
26668   ac_check_lib_save_LIBS=$LIBS
26669 LIBS="-linet  $LIBS"
26670 cat >conftest.$ac_ext <<_ACEOF
26671 /* confdefs.h.  */
26672 _ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h.  */
26676
26677 /* Override any GCC internal prototype to avoid an error.
26678    Use char because int might match the return type of a GCC
26679    builtin and then its argument prototype would still apply.  */
26680 #ifdef __cplusplus
26681 extern "C"
26682 #endif
26683 char socket ();
26684 int
26685 main ()
26686 {
26687 return socket ();
26688   ;
26689   return 0;
26690 }
26691 _ACEOF
26692 rm -f conftest.$ac_objext conftest$ac_exeext
26693 if { (ac_try="$ac_link"
26694 case "(($ac_try" in
26695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26696   *) ac_try_echo=$ac_try;;
26697 esac
26698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26699   (eval "$ac_link") 2>conftest.er1
26700   ac_status=$?
26701   grep -v '^ *+' conftest.er1 >conftest.err
26702   rm -f conftest.er1
26703   cat conftest.err >&5
26704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705   (exit $ac_status); } && {
26706          test -z "$ac_c_werror_flag" ||
26707          test ! -s conftest.err
26708        } && test -s conftest$ac_exeext &&
26709        $as_test_x conftest$ac_exeext; then
26710   ac_cv_lib_inet_socket=yes
26711 else
26712   echo "$as_me: failed program was:" >&5
26713 sed 's/^/| /' conftest.$ac_ext >&5
26714
26715         ac_cv_lib_inet_socket=no
26716 fi
26717
26718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26719       conftest$ac_exeext conftest.$ac_ext
26720 LIBS=$ac_check_lib_save_LIBS
26721 fi
26722 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26723 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26724 if test $ac_cv_lib_inet_socket = yes; then
26725   cat >>confdefs.h <<_ACEOF
26726 #define HAVE_LIBINET 1
26727 _ACEOF
26728
26729   LIBS="-linet $LIBS"
26730
26731 fi
26732
26733 fi
26734
26735
26736 TCPW_MSG="no"
26737 WRAPLIBS=""
26738
26739 # Check whether --with-tcp-wrappers was given.
26740 if test "${with_tcp_wrappers+set}" = set; then
26741   withval=$with_tcp_wrappers;
26742        if test "x$withval" != "xno" ; then
26743           saved_LIBS="$LIBS"
26744           LIBS="$saved_LIBS -lwrap"
26745           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26746 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26747 if test "${ac_cv_search_nanosleep+set}" = set; then
26748   echo $ECHO_N "(cached) $ECHO_C" >&6
26749 else
26750   ac_func_search_save_LIBS=$LIBS
26751 cat >conftest.$ac_ext <<_ACEOF
26752 /* confdefs.h.  */
26753 _ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h.  */
26757
26758 /* Override any GCC internal prototype to avoid an error.
26759    Use char because int might match the return type of a GCC
26760    builtin and then its argument prototype would still apply.  */
26761 #ifdef __cplusplus
26762 extern "C"
26763 #endif
26764 char nanosleep ();
26765 int
26766 main ()
26767 {
26768 return nanosleep ();
26769   ;
26770   return 0;
26771 }
26772 _ACEOF
26773 for ac_lib in '' rt; do
26774   if test -z "$ac_lib"; then
26775     ac_res="none required"
26776   else
26777     ac_res=-l$ac_lib
26778     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26779   fi
26780   rm -f conftest.$ac_objext conftest$ac_exeext
26781 if { (ac_try="$ac_link"
26782 case "(($ac_try" in
26783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26784   *) ac_try_echo=$ac_try;;
26785 esac
26786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26787   (eval "$ac_link") 2>conftest.er1
26788   ac_status=$?
26789   grep -v '^ *+' conftest.er1 >conftest.err
26790   rm -f conftest.er1
26791   cat conftest.err >&5
26792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793   (exit $ac_status); } && {
26794          test -z "$ac_c_werror_flag" ||
26795          test ! -s conftest.err
26796        } && test -s conftest$ac_exeext &&
26797        $as_test_x conftest$ac_exeext; then
26798   ac_cv_search_nanosleep=$ac_res
26799 else
26800   echo "$as_me: failed program was:" >&5
26801 sed 's/^/| /' conftest.$ac_ext >&5
26802
26803
26804 fi
26805
26806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26807       conftest$ac_exeext
26808   if test "${ac_cv_search_nanosleep+set}" = set; then
26809   break
26810 fi
26811 done
26812 if test "${ac_cv_search_nanosleep+set}" = set; then
26813   :
26814 else
26815   ac_cv_search_nanosleep=no
26816 fi
26817 rm conftest.$ac_ext
26818 LIBS=$ac_func_search_save_LIBS
26819 fi
26820 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26821 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26822 ac_res=$ac_cv_search_nanosleep
26823 if test "$ac_res" != no; then
26824   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26825
26826 fi
26827
26828           { echo "$as_me:$LINENO: checking for libwrap" >&5
26829 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26830           cat >conftest.$ac_ext <<_ACEOF
26831 /* confdefs.h.  */
26832 _ACEOF
26833 cat confdefs.h >>conftest.$ac_ext
26834 cat >>conftest.$ac_ext <<_ACEOF
26835 /* end confdefs.h.  */
26836
26837                #include <sys/types.h>
26838                #include <tcpd.h>
26839                int deny_severity = 0;
26840                int allow_severity = 0;
26841                struct request_info *req;
26842
26843 int
26844 main ()
26845 {
26846
26847                 hosts_access(req);
26848
26849   ;
26850   return 0;
26851 }
26852 _ACEOF
26853 rm -f conftest.$ac_objext conftest$ac_exeext
26854 if { (ac_try="$ac_link"
26855 case "(($ac_try" in
26856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26857   *) ac_try_echo=$ac_try;;
26858 esac
26859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26860   (eval "$ac_link") 2>conftest.er1
26861   ac_status=$?
26862   grep -v '^ *+' conftest.er1 >conftest.err
26863   rm -f conftest.er1
26864   cat conftest.err >&5
26865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866   (exit $ac_status); } && {
26867          test -z "$ac_c_werror_flag" ||
26868          test ! -s conftest.err
26869        } && test -s conftest$ac_exeext &&
26870        $as_test_x conftest$ac_exeext; then
26871
26872                  { echo "$as_me:$LINENO: result: yes" >&5
26873 echo "${ECHO_T}yes" >&6; }
26874
26875 cat >>confdefs.h <<\_ACEOF
26876 #define HAVE_LIBWRAP 1
26877 _ACEOF
26878
26879                  TCPW_MSG="yes"
26880                  LIBS="$saved_LIBS"
26881                  WRAPLIBS="-lwrap"
26882
26883 else
26884   echo "$as_me: failed program was:" >&5
26885 sed 's/^/| /' conftest.$ac_ext >&5
26886
26887
26888                  LIBS="$saved_LIBS -lwrap -lnsl"
26889                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26890                  cat >conftest.$ac_ext <<_ACEOF
26891 /* confdefs.h.  */
26892 _ACEOF
26893 cat confdefs.h >>conftest.$ac_ext
26894 cat >>conftest.$ac_ext <<_ACEOF
26895 /* end confdefs.h.  */
26896
26897                        #include <sys/types.h>
26898                        #include <tcpd.h>
26899                        int deny_severity = 0;
26900                        int allow_severity = 0;
26901                        struct request_info *req;
26902
26903 int
26904 main ()
26905 {
26906
26907                        hosts_access(req);
26908
26909   ;
26910   return 0;
26911 }
26912 _ACEOF
26913 rm -f conftest.$ac_objext conftest$ac_exeext
26914 if { (ac_try="$ac_link"
26915 case "(($ac_try" in
26916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26917   *) ac_try_echo=$ac_try;;
26918 esac
26919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26920   (eval "$ac_link") 2>conftest.er1
26921   ac_status=$?
26922   grep -v '^ *+' conftest.er1 >conftest.err
26923   rm -f conftest.er1
26924   cat conftest.err >&5
26925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26926   (exit $ac_status); } && {
26927          test -z "$ac_c_werror_flag" ||
26928          test ! -s conftest.err
26929        } && test -s conftest$ac_exeext &&
26930        $as_test_x conftest$ac_exeext; then
26931
26932                       { echo "$as_me:$LINENO: result: yes" >&5
26933 echo "${ECHO_T}yes" >&6; }
26934
26935 cat >>confdefs.h <<\_ACEOF
26936 #define HAVE_LIBWRAP 1
26937 _ACEOF
26938
26939                       TCPW_MSG="yes"
26940                       LIBS="$saved_LIBS"
26941                       WRAPLIBS="-lwrap"
26942
26943 else
26944   echo "$as_me: failed program was:" >&5
26945 sed 's/^/| /' conftest.$ac_ext >&5
26946
26947
26948                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26949 echo "$as_me: error: *** libwrap missing" >&2;}
26950    { (exit 1); exit 1; }; }
26951
26952
26953 fi
26954
26955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26956       conftest$ac_exeext conftest.$ac_ext
26957
26958
26959 fi
26960
26961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26962       conftest$ac_exeext conftest.$ac_ext
26963        fi
26964
26965
26966 fi
26967
26968
26969 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26970 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26971
26972 # Check whether --with-openssl was given.
26973 if test "${with_openssl+set}" = set; then
26974   withval=$with_openssl;
26975         with_openssl_directory=${withval}
26976
26977
26978 fi
26979
26980
26981 if test "x$with_openssl_directory" != "xno"; then
26982    OPENSSL_LIBS="-lssl -lcrypto"
26983    OPENSSL_INC=""
26984
26985    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26986       #
26987       # Make sure the $with_openssl_directory also makes sense
26988       #
26989       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26990          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26991          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26992       fi
26993    fi
26994
26995    saved_LIBS="${LIBS}"
26996    saved_CFLAGS="${CFLAGS}"
26997    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26998    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26999
27000    cat >conftest.$ac_ext <<_ACEOF
27001 /* confdefs.h.  */
27002 _ACEOF
27003 cat confdefs.h >>conftest.$ac_ext
27004 cat >>conftest.$ac_ext <<_ACEOF
27005 /* end confdefs.h.  */
27006
27007           #include <openssl/ssl.h>
27008
27009 int
27010 main ()
27011 {
27012
27013            CRYPTO_set_id_callback(NULL);
27014
27015   ;
27016   return 0;
27017 }
27018 _ACEOF
27019 rm -f conftest.$ac_objext conftest$ac_exeext
27020 if { (ac_try="$ac_link"
27021 case "(($ac_try" in
27022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27023   *) ac_try_echo=$ac_try;;
27024 esac
27025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27026   (eval "$ac_link") 2>conftest.er1
27027   ac_status=$?
27028   grep -v '^ *+' conftest.er1 >conftest.err
27029   rm -f conftest.er1
27030   cat conftest.err >&5
27031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032   (exit $ac_status); } && {
27033          test -z "$ac_c_werror_flag" ||
27034          test ! -s conftest.err
27035        } && test -s conftest$ac_exeext &&
27036        $as_test_x conftest$ac_exeext; then
27037
27038           support_tls="yes"
27039           support_crypto="yes"
27040
27041 else
27042   echo "$as_me: failed program was:" >&5
27043 sed 's/^/| /' conftest.$ac_ext >&5
27044
27045
27046           support_tls="no"
27047           support_crypto="no"
27048
27049
27050 fi
27051
27052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27053       conftest$ac_exeext conftest.$ac_ext
27054
27055    cat >conftest.$ac_ext <<_ACEOF
27056 /* confdefs.h.  */
27057 _ACEOF
27058 cat confdefs.h >>conftest.$ac_ext
27059 cat >>conftest.$ac_ext <<_ACEOF
27060 /* end confdefs.h.  */
27061
27062           #include <openssl/evp.h>
27063
27064 int
27065 main ()
27066 {
27067
27068           EVP_sha512();
27069
27070   ;
27071   return 0;
27072 }
27073 _ACEOF
27074 rm -f conftest.$ac_objext conftest$ac_exeext
27075 if { (ac_try="$ac_link"
27076 case "(($ac_try" in
27077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27078   *) ac_try_echo=$ac_try;;
27079 esac
27080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27081   (eval "$ac_link") 2>conftest.er1
27082   ac_status=$?
27083   grep -v '^ *+' conftest.er1 >conftest.err
27084   rm -f conftest.er1
27085   cat conftest.err >&5
27086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087   (exit $ac_status); } && {
27088          test -z "$ac_c_werror_flag" ||
27089          test ! -s conftest.err
27090        } && test -s conftest$ac_exeext &&
27091        $as_test_x conftest$ac_exeext; then
27092
27093           ac_cv_openssl_sha2="yes"
27094
27095 else
27096   echo "$as_me: failed program was:" >&5
27097 sed 's/^/| /' conftest.$ac_ext >&5
27098
27099
27100           ac_cv_openssl_sha2="no"
27101
27102
27103 fi
27104
27105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27106       conftest$ac_exeext conftest.$ac_ext
27107
27108                cat >conftest.$ac_ext <<_ACEOF
27109 /* confdefs.h.  */
27110 _ACEOF
27111 cat confdefs.h >>conftest.$ac_ext
27112 cat >>conftest.$ac_ext <<_ACEOF
27113 /* end confdefs.h.  */
27114
27115           #include <openssl/evp.h>
27116
27117 int
27118 main ()
27119 {
27120
27121           EVP_aes_192_cbc();
27122
27123   ;
27124   return 0;
27125 }
27126 _ACEOF
27127 rm -f conftest.$ac_objext conftest$ac_exeext
27128 if { (ac_try="$ac_link"
27129 case "(($ac_try" in
27130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27131   *) ac_try_echo=$ac_try;;
27132 esac
27133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27134   (eval "$ac_link") 2>conftest.er1
27135   ac_status=$?
27136   grep -v '^ *+' conftest.er1 >conftest.err
27137   rm -f conftest.er1
27138   cat conftest.err >&5
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); } && {
27141          test -z "$ac_c_werror_flag" ||
27142          test ! -s conftest.err
27143        } && test -s conftest$ac_exeext &&
27144        $as_test_x conftest$ac_exeext; then
27145
27146           ac_cv_openssl_export="no"
27147
27148 else
27149   echo "$as_me: failed program was:" >&5
27150 sed 's/^/| /' conftest.$ac_ext >&5
27151
27152
27153           ac_cv_openssl_export="yes"
27154
27155
27156 fi
27157
27158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27159       conftest$ac_exeext conftest.$ac_ext
27160
27161    LIBS="${saved_LIBS}"
27162    CFLAGS="${saved_CFLAGS}"
27163
27164    if test "$support_tls" = "yes"; then
27165
27166 cat >>confdefs.h <<\_ACEOF
27167 #define HAVE_OPENSSL 1
27168 _ACEOF
27169
27170
27171 cat >>confdefs.h <<\_ACEOF
27172 #define HAVE_TLS 1
27173 _ACEOF
27174
27175
27176 cat >>confdefs.h <<\_ACEOF
27177 #define HAVE_CRYPTO 1
27178 _ACEOF
27179
27180    fi
27181
27182    if test "$ac_cv_openssl_sha2" = "yes"; then
27183
27184 cat >>confdefs.h <<\_ACEOF
27185 #define HAVE_SHA2 1
27186 _ACEOF
27187
27188    fi
27189
27190    if test "$ac_cv_openssl_export" = "yes"; then
27191
27192 cat >>confdefs.h <<\_ACEOF
27193 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27194 _ACEOF
27195
27196    fi
27197 else
27198    support_tls="no"
27199    support_crypto="no"
27200    OPENSSL_LIBS=""
27201    OPENSSL_INC=""
27202 fi
27203
27204 if test "$support_tls" = "no"; then
27205    OPENSSL_LIBS=""
27206    OPENSSL_INC=""
27207 fi
27208 if test "$support_crypto" = "no"; then
27209    OPENSSL_LIBS=""
27210    OPENSSL_INC=""
27211 fi
27212
27213 { echo "$as_me:$LINENO: result: $support_tls" >&5
27214 echo "${ECHO_T}$support_tls" >&6; }
27215
27216
27217
27218 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27219 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27220 if test "${ac_cv_search_dlopen+set}" = set; then
27221   echo $ECHO_N "(cached) $ECHO_C" >&6
27222 else
27223   ac_func_search_save_LIBS=$LIBS
27224 cat >conftest.$ac_ext <<_ACEOF
27225 /* confdefs.h.  */
27226 _ACEOF
27227 cat confdefs.h >>conftest.$ac_ext
27228 cat >>conftest.$ac_ext <<_ACEOF
27229 /* end confdefs.h.  */
27230
27231 /* Override any GCC internal prototype to avoid an error.
27232    Use char because int might match the return type of a GCC
27233    builtin and then its argument prototype would still apply.  */
27234 #ifdef __cplusplus
27235 extern "C"
27236 #endif
27237 char dlopen ();
27238 int
27239 main ()
27240 {
27241 return dlopen ();
27242   ;
27243   return 0;
27244 }
27245 _ACEOF
27246 for ac_lib in '' dl; do
27247   if test -z "$ac_lib"; then
27248     ac_res="none required"
27249   else
27250     ac_res=-l$ac_lib
27251     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27252   fi
27253   rm -f conftest.$ac_objext conftest$ac_exeext
27254 if { (ac_try="$ac_link"
27255 case "(($ac_try" in
27256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27257   *) ac_try_echo=$ac_try;;
27258 esac
27259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27260   (eval "$ac_link") 2>conftest.er1
27261   ac_status=$?
27262   grep -v '^ *+' conftest.er1 >conftest.err
27263   rm -f conftest.er1
27264   cat conftest.err >&5
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); } && {
27267          test -z "$ac_c_werror_flag" ||
27268          test ! -s conftest.err
27269        } && test -s conftest$ac_exeext &&
27270        $as_test_x conftest$ac_exeext; then
27271   ac_cv_search_dlopen=$ac_res
27272 else
27273   echo "$as_me: failed program was:" >&5
27274 sed 's/^/| /' conftest.$ac_ext >&5
27275
27276
27277 fi
27278
27279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27280       conftest$ac_exeext
27281   if test "${ac_cv_search_dlopen+set}" = set; then
27282   break
27283 fi
27284 done
27285 if test "${ac_cv_search_dlopen+set}" = set; then
27286   :
27287 else
27288   ac_cv_search_dlopen=no
27289 fi
27290 rm conftest.$ac_ext
27291 LIBS=$ac_func_search_save_LIBS
27292 fi
27293 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27294 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27295 ac_res=$ac_cv_search_dlopen
27296 if test "$ac_res" != no; then
27297   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27298
27299 fi
27300
27301
27302 working_dir=`eval echo ${prefix}/var/bacula/working`
27303
27304 # Check whether --with-working-dir was given.
27305 if test "${with_working_dir+set}" = set; then
27306   withval=$with_working_dir;
27307        if test "x$withval" != "xno" ; then
27308          working_dir=$withval
27309        fi
27310
27311
27312 fi
27313
27314
27315
27316
27317 archivedir=/tmp
27318
27319 # Check whether --with-archivedir was given.
27320 if test "${with_archivedir+set}" = set; then
27321   withval=$with_archivedir;
27322        if test "x$withval" != "xno" ; then
27323           archivedir=$withval
27324        fi
27325
27326
27327 fi
27328
27329
27330
27331
27332 basename=`hostname`
27333
27334 # Check whether --with-basename was given.
27335 if test "${with_basename+set}" = set; then
27336   withval=$with_basename;
27337        if test "x$withval" != "xno" ; then
27338           basename=$withval
27339        fi
27340
27341
27342 fi
27343
27344
27345
27346
27347 hostname=`uname -n | cut -d '.' -f 1`
27348 if test x${hostname} = x ; then
27349   hostname="localhost"
27350 fi
27351
27352 # Check whether --with-hostname was given.
27353 if test "${with_hostname+set}" = set; then
27354   withval=$with_hostname;
27355        if test "x$withval" != "xno" ; then
27356          hostname=$withval
27357        fi
27358
27359
27360 fi
27361
27362
27363
27364
27365
27366 scriptdir=`eval echo ${sysconfdir}`
27367
27368 # Check whether --with-scriptdir was given.
27369 if test "${with_scriptdir+set}" = set; then
27370   withval=$with_scriptdir;
27371        if test "x$withval" != "xno" ; then
27372           scriptdir=$withval
27373        fi
27374
27375
27376 fi
27377
27378
27379
27380
27381
27382 bsrdir=/tmp
27383
27384 # Check whether --with-bsrdir was given.
27385 if test "${with_bsrdir+set}" = set; then
27386   withval=$with_bsrdir;
27387        if test "x$withval" != "xno" ; then
27388           bsrdir=$withval
27389        fi
27390
27391
27392 fi
27393
27394
27395
27396
27397 logdir=/tmp
27398
27399 # Check whether --with-logdir was given.
27400 if test "${with_logdir+set}" = set; then
27401   withval=$with_logdir;
27402        if test "x$withval" != "xno" ; then
27403           logdir=$withval
27404        fi
27405
27406
27407 fi
27408
27409
27410
27411
27412
27413 # ------------------------------------------
27414 # Where to place plugindir (plugin files)
27415 # ------------------------------------------
27416 plugindir=`eval echo ${libdir}`
27417
27418 # Check whether --with-plugindir was given.
27419 if test "${with_plugindir+set}" = set; then
27420   withval=$with_plugindir;
27421        if test "x$withval" != "xno" ; then
27422           plugindir=$withval
27423        fi
27424
27425
27426 fi
27427
27428
27429
27430
27431 dump_email=root@localhost
27432
27433 # Check whether --with-dump-email was given.
27434 if test "${with_dump_email+set}" = set; then
27435   withval=$with_dump_email;
27436        if test "x$withval" != "xno" ; then
27437           dump_email=$withval
27438        fi
27439
27440
27441 fi
27442
27443
27444
27445
27446 job_email=root@localhost
27447
27448 # Check whether --with-job-email was given.
27449 if test "${with_job_email+set}" = set; then
27450   withval=$with_job_email;
27451        if test "x$withval" != "xno" ; then
27452           job_email=$withval
27453        fi
27454
27455
27456 fi
27457
27458
27459
27460
27461 smtp_host=localhost
27462
27463 # Check whether --with-smtp_host was given.
27464 if test "${with_smtp_host+set}" = set; then
27465   withval=$with_smtp_host;
27466        if test "x$withval" != "xno" ; then
27467           smtp_host=$withval
27468        fi
27469
27470
27471 fi
27472
27473
27474
27475
27476 piddir=/var/run
27477
27478 # Check whether --with-pid-dir was given.
27479 if test "${with_pid_dir+set}" = set; then
27480   withval=$with_pid_dir;
27481        if test "x$withval" != "xno" ; then
27482           piddir=$withval
27483        fi
27484
27485
27486 fi
27487
27488
27489 cat >>confdefs.h <<_ACEOF
27490 #define _PATH_BACULA_PIDDIR "$piddir"
27491 _ACEOF
27492
27493
27494
27495 subsysdir=/var/run/subsys
27496 if test -d /var/run/subsys; then
27497    subsysdir=/var/run/subsys
27498 elif test -d /var/lock/subsys; then
27499    subsysdir=/var/lock/subsys
27500 else
27501    subsysdir=/var/run/subsys
27502 fi
27503
27504 # Check whether --with-subsys-dir was given.
27505 if test "${with_subsys_dir+set}" = set; then
27506   withval=$with_subsys_dir;
27507        if test "x$withval" != "xno" ; then
27508           subsysdir=$withval
27509        fi
27510
27511
27512 fi
27513
27514
27515
27516
27517 baseport=9101
27518
27519 # Check whether --with-baseport was given.
27520 if test "${with_baseport+set}" = set; then
27521   withval=$with_baseport;
27522        if test "x$withval" != "xno" ; then
27523           baseport=$withval
27524        fi
27525
27526
27527 fi
27528
27529
27530
27531 dir_port=`expr $baseport`
27532 fd_port=`expr $baseport + 1`
27533 sd_port=`expr $fd_port + 1`
27534
27535
27536
27537
27538
27539 dir_password=
27540
27541 # Check whether --with-dir-password was given.
27542 if test "${with_dir_password+set}" = set; then
27543   withval=$with_dir_password;
27544        if test "x$withval" != "xno" ; then
27545           dir_password=$withval
27546        fi
27547
27548
27549 fi
27550
27551
27552 if test "x$dir_password" = "x" ; then
27553    if test "x$OPENSSL" = "xnone" ; then
27554       key=`autoconf/randpass 33`
27555    else
27556       key=`openssl rand -base64 33`
27557    fi
27558    dir_password=$key
27559 fi
27560
27561 fd_password=
27562
27563 # Check whether --with-fd-password was given.
27564 if test "${with_fd_password+set}" = set; then
27565   withval=$with_fd_password;
27566        if test "x$withval" != "xno" ; then
27567           fd_password=$withval
27568        fi
27569
27570
27571 fi
27572
27573
27574 if test "x$fd_password" = "x" ; then
27575    if test "x$OPENSSL" = "xnone" ; then
27576       key=`autoconf/randpass 37`
27577    else
27578       key=`openssl rand -base64 33`
27579    fi
27580    fd_password=$key
27581 fi
27582
27583 sd_password=
27584
27585 # Check whether --with-sd-password was given.
27586 if test "${with_sd_password+set}" = set; then
27587   withval=$with_sd_password;
27588        if test "x$withval" != "xno" ; then
27589           sd_password=$withval
27590        fi
27591
27592
27593 fi
27594
27595
27596 if test "x$sd_password" = "x" ; then
27597    if test "x$OPENSSL" = "xnone" ; then
27598       key=`autoconf/randpass 41`
27599    else
27600       key=`openssl rand -base64 33`
27601    fi
27602    sd_password=$key
27603 fi
27604
27605 mon_dir_password=
27606
27607 # Check whether --with-mon-dir-password was given.
27608 if test "${with_mon_dir_password+set}" = set; then
27609   withval=$with_mon_dir_password;
27610        if test "x$withval" != "xno" ; then
27611           mon_dir_password=$withval
27612        fi
27613
27614
27615 fi
27616
27617
27618 if test "x$mon_dir_password" = "x" ; then
27619    if test "x$OPENSSL" = "xnone" ; then
27620       key=`autoconf/randpass 33`
27621    else
27622       key=`openssl rand -base64 33`
27623    fi
27624    mon_dir_password=$key
27625 fi
27626
27627 mon_fd_password=
27628
27629 # Check whether --with-mon-fd-password was given.
27630 if test "${with_mon_fd_password+set}" = set; then
27631   withval=$with_mon_fd_password;
27632        if test "x$withval" != "xno" ; then
27633           mon_fd_password=$withval
27634        fi
27635
27636
27637 fi
27638
27639
27640 if test "x$mon_fd_password" = "x" ; then
27641    if test "x$OPENSSL" = "xnone" ; then
27642       key=`autoconf/randpass 37`
27643    else
27644       key=`openssl rand -base64 33`
27645    fi
27646    mon_fd_password=$key
27647 fi
27648
27649 mon_sd_password=
27650
27651 # Check whether --with-mon-sd-password was given.
27652 if test "${with_mon_sd_password+set}" = set; then
27653   withval=$with_mon_sd_password;
27654        if test "x$withval" != "xno" ; then
27655           mon_sd_password=$withval
27656        fi
27657
27658
27659 fi
27660
27661
27662 if test "x$mon_sd_password" = "x" ; then
27663    if test "x$OPENSSL" = "xnone" ; then
27664       key=`autoconf/randpass 41`
27665    else
27666       key=`openssl rand -base64 33`
27667    fi
27668    mon_sd_password=$key
27669 fi
27670
27671
27672
27673
27674
27675
27676
27677
27678 db_name=bacula
27679
27680 # Check whether --with-db_name was given.
27681 if test "${with_db_name+set}" = set; then
27682   withval=$with_db_name;
27683        if test "x$withval" != "x" ; then
27684           db_name=$withval
27685        fi
27686
27687
27688 fi
27689
27690
27691
27692 db_user=bacula
27693
27694 # Check whether --with-db_user was given.
27695 if test "${with_db_user+set}" = set; then
27696   withval=$with_db_user;
27697        if test "x$withval" != "x" ; then
27698           db_user=$withval
27699        fi
27700
27701
27702 fi
27703
27704
27705
27706 db_password=
27707
27708 # Check whether --with-db_password was given.
27709 if test "${with_db_password+set}" = set; then
27710   withval=$with_db_password;
27711        if test "x$withval" != "x" ; then
27712           db_password=$withval
27713        fi
27714
27715
27716 fi
27717
27718
27719
27720 db_port=" "
27721
27722 # Check whether --with-db_port was given.
27723 if test "${with_db_port+set}" = set; then
27724   withval=$with_db_port;
27725        if test "x$withval" != "x" ; then
27726           db_port=$withval
27727        fi
27728
27729
27730 fi
27731
27732
27733
27734 #
27735 # Handle users and groups for each daemon
27736 #
27737 dir_user=
27738
27739 # Check whether --with-dir_user was given.
27740 if test "${with_dir_user+set}" = set; then
27741   withval=$with_dir_user;
27742        if test "x$withval" != "x" ; then
27743            dir_user=$withval
27744        fi
27745
27746
27747 fi
27748
27749
27750 dir_group=
27751
27752 # Check whether --with-dir_group was given.
27753 if test "${with_dir_group+set}" = set; then
27754   withval=$with_dir_group;
27755        if test "x$withval" != "x" ; then
27756           dir_group=$withval
27757        fi
27758
27759
27760 fi
27761
27762
27763 sd_user=
27764
27765 # Check whether --with-sd_user was given.
27766 if test "${with_sd_user+set}" = set; then
27767   withval=$with_sd_user;
27768        if test "x$withval" != "x" ; then
27769           sd_user=$withval
27770        fi
27771
27772
27773 fi
27774
27775
27776 sd_group=
27777
27778 # Check whether --with-sd_group was given.
27779 if test "${with_sd_group+set}" = set; then
27780   withval=$with_sd_group;
27781        if test "x$withval" != "x" ; then
27782           sd_group=$withval
27783        fi
27784
27785
27786 fi
27787
27788
27789 fd_user=
27790
27791 # Check whether --with-fd_user was given.
27792 if test "${with_fd_user+set}" = set; then
27793   withval=$with_fd_user;
27794        if test "x$withval" != "x" ; then
27795           fd_user=$withval
27796        fi
27797
27798
27799 fi
27800
27801
27802 fd_group=
27803
27804 # Check whether --with-fd_group was given.
27805 if test "${with_fd_group+set}" = set; then
27806   withval=$with_fd_group;
27807        if test "x$withval" != "x" ; then
27808           fd_group=$withval
27809        fi
27810
27811
27812 fi
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822 SBINPERM=0754
27823
27824 # Check whether --with-sbin-perm was given.
27825 if test "${with_sbin_perm+set}" = set; then
27826   withval=$with_sbin_perm;
27827        if test "x$withval" != "x" ; then
27828           SBINPERM=$withval
27829        fi
27830
27831
27832 fi
27833
27834
27835
27836
27837 SQL_LIB=
27838
27839 db_found=no
27840 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27841 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27842
27843 # Check whether --with-postgresql was given.
27844 if test "${with_postgresql+set}" = set; then
27845   withval=$with_postgresql;
27846   if test "$withval" != "no"; then
27847       if test "$db_found" = "yes"; then
27848           { echo "$as_me:$LINENO: result: error" >&5
27849 echo "${ECHO_T}error" >&6; }
27850           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27851 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27852    { (exit 1); exit 1; }; };
27853       fi
27854       if test "$withval" = "yes"; then
27855           PG_CONFIG=`which pg_config`
27856           if test -n "$PG_CONFIG";then
27857               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27858               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27859               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27860           elif test -f /usr/local/include/libpq-fe.h; then
27861               POSTGRESQL_INCDIR=/usr/local/include
27862               if test -d /usr/local/lib64; then
27863                  POSTGRESQL_LIBDIR=/usr/local/lib64
27864               else
27865                  POSTGRESQL_LIBDIR=/usr/local/lib
27866               fi
27867               POSTGRESQL_BINDIR=/usr/local/bin
27868           elif test -f /usr/include/libpq-fe.h; then
27869               POSTGRESQL_INCDIR=/usr/include
27870               if test -d /usr/lib64; then
27871                  POSTGRESQL_LIBDIR=/usr/lib64
27872               else
27873                  POSTGRESQL_LIBDIR=/usr/lib
27874               fi
27875               POSTGRESQL_BINDIR=/usr/bin
27876           elif test -f /usr/include/pgsql/libpq-fe.h; then
27877               POSTGRESQL_INCDIR=/usr/include/pgsql
27878               if test -d /usr/lib64/pgsql; then
27879                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27880               else
27881                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27882               fi
27883               POSTGRESQL_BINDIR=/usr/bin
27884           elif test -f /usr/include/postgresql/libpq-fe.h; then
27885               POSTGRESQL_INCDIR=/usr/include/postgresql
27886               if test -d /usr/lib64/postgresql; then
27887                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27888               else
27889                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27890               fi
27891               POSTGRESQL_BINDIR=/usr/bin
27892           else
27893               { echo "$as_me:$LINENO: result: no" >&5
27894 echo "${ECHO_T}no" >&6; }
27895               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27896 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27897    { (exit 1); exit 1; }; }
27898           fi
27899       elif test -f $withval/include/libpq-fe.h; then
27900           POSTGRESQL_INCDIR=$withval/include
27901           POSTGRESQL_LIBDIR=$withval/lib
27902           POSTGRESQL_BINDIR=$withval/bin
27903       elif test -f $withval/include/postgresql/libpq-fe.h; then
27904           POSTGRESQL_INCDIR=$withval/include/postgresql
27905      if test -d $withval/lib64; then
27906          POSTGRESQL_LIBDIR=$withval/lib64
27907      else
27908          POSTGRESQL_LIBDIR=$withval/lib
27909      fi
27910           POSTGRESQL_BINDIR=$withval/bin
27911       else
27912           { echo "$as_me:$LINENO: result: no" >&5
27913 echo "${ECHO_T}no" >&6; }
27914           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27915 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27916    { (exit 1); exit 1; }; }
27917       fi
27918       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27919       { echo "$as_me:$LINENO: checking for crypt" >&5
27920 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27921 if test "${ac_cv_func_crypt+set}" = set; then
27922   echo $ECHO_N "(cached) $ECHO_C" >&6
27923 else
27924   cat >conftest.$ac_ext <<_ACEOF
27925 /* confdefs.h.  */
27926 _ACEOF
27927 cat confdefs.h >>conftest.$ac_ext
27928 cat >>conftest.$ac_ext <<_ACEOF
27929 /* end confdefs.h.  */
27930 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27932 #define crypt innocuous_crypt
27933
27934 /* System header to define __stub macros and hopefully few prototypes,
27935     which can conflict with char crypt (); below.
27936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27937     <limits.h> exists even on freestanding compilers.  */
27938
27939 #ifdef __STDC__
27940 # include <limits.h>
27941 #else
27942 # include <assert.h>
27943 #endif
27944
27945 #undef crypt
27946
27947 /* Override any GCC internal prototype to avoid an error.
27948    Use char because int might match the return type of a GCC
27949    builtin and then its argument prototype would still apply.  */
27950 #ifdef __cplusplus
27951 extern "C"
27952 #endif
27953 char crypt ();
27954 /* The GNU C library defines this for functions which it implements
27955     to always fail with ENOSYS.  Some functions are actually named
27956     something starting with __ and the normal name is an alias.  */
27957 #if defined __stub_crypt || defined __stub___crypt
27958 choke me
27959 #endif
27960
27961 int
27962 main ()
27963 {
27964 return crypt ();
27965   ;
27966   return 0;
27967 }
27968 _ACEOF
27969 rm -f conftest.$ac_objext conftest$ac_exeext
27970 if { (ac_try="$ac_link"
27971 case "(($ac_try" in
27972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27973   *) ac_try_echo=$ac_try;;
27974 esac
27975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27976   (eval "$ac_link") 2>conftest.er1
27977   ac_status=$?
27978   grep -v '^ *+' conftest.er1 >conftest.err
27979   rm -f conftest.er1
27980   cat conftest.err >&5
27981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982   (exit $ac_status); } && {
27983          test -z "$ac_c_werror_flag" ||
27984          test ! -s conftest.err
27985        } && test -s conftest$ac_exeext &&
27986        $as_test_x conftest$ac_exeext; then
27987   ac_cv_func_crypt=yes
27988 else
27989   echo "$as_me: failed program was:" >&5
27990 sed 's/^/| /' conftest.$ac_ext >&5
27991
27992         ac_cv_func_crypt=no
27993 fi
27994
27995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27996       conftest$ac_exeext conftest.$ac_ext
27997 fi
27998 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27999 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28000 if test $ac_cv_func_crypt = yes; then
28001   :
28002 else
28003   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28004 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28005 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28006   echo $ECHO_N "(cached) $ECHO_C" >&6
28007 else
28008   ac_check_lib_save_LIBS=$LIBS
28009 LIBS="-lcrypt  $LIBS"
28010 cat >conftest.$ac_ext <<_ACEOF
28011 /* confdefs.h.  */
28012 _ACEOF
28013 cat confdefs.h >>conftest.$ac_ext
28014 cat >>conftest.$ac_ext <<_ACEOF
28015 /* end confdefs.h.  */
28016
28017 /* Override any GCC internal prototype to avoid an error.
28018    Use char because int might match the return type of a GCC
28019    builtin and then its argument prototype would still apply.  */
28020 #ifdef __cplusplus
28021 extern "C"
28022 #endif
28023 char crypt ();
28024 int
28025 main ()
28026 {
28027 return crypt ();
28028   ;
28029   return 0;
28030 }
28031 _ACEOF
28032 rm -f conftest.$ac_objext conftest$ac_exeext
28033 if { (ac_try="$ac_link"
28034 case "(($ac_try" in
28035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28036   *) ac_try_echo=$ac_try;;
28037 esac
28038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28039   (eval "$ac_link") 2>conftest.er1
28040   ac_status=$?
28041   grep -v '^ *+' conftest.er1 >conftest.err
28042   rm -f conftest.er1
28043   cat conftest.err >&5
28044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045   (exit $ac_status); } && {
28046          test -z "$ac_c_werror_flag" ||
28047          test ! -s conftest.err
28048        } && test -s conftest$ac_exeext &&
28049        $as_test_x conftest$ac_exeext; then
28050   ac_cv_lib_crypt_crypt=yes
28051 else
28052   echo "$as_me: failed program was:" >&5
28053 sed 's/^/| /' conftest.$ac_ext >&5
28054
28055         ac_cv_lib_crypt_crypt=no
28056 fi
28057
28058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28059       conftest$ac_exeext conftest.$ac_ext
28060 LIBS=$ac_check_lib_save_LIBS
28061 fi
28062 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28063 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28064 if test $ac_cv_lib_crypt_crypt = yes; then
28065   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28066 fi
28067
28068 fi
28069
28070       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28071       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28072       SQL_BINDIR=$POSTGRESQL_BINDIR
28073       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28074
28075       cat >>confdefs.h <<\_ACEOF
28076 #define HAVE_POSTGRESQL 1
28077 _ACEOF
28078
28079       { echo "$as_me:$LINENO: result: yes" >&5
28080 echo "${ECHO_T}yes" >&6; }
28081       db_found=yes
28082       support_postgresql=yes
28083       db_type=PostgreSQL
28084       DB_TYPE=postgresql
28085   else
28086       { echo "$as_me:$LINENO: result: no" >&5
28087 echo "${ECHO_T}no" >&6; }
28088   fi
28089
28090 else
28091
28092   { echo "$as_me:$LINENO: result: no" >&5
28093 echo "${ECHO_T}no" >&6; }
28094
28095 fi
28096
28097
28098
28099
28100
28101
28102
28103
28104 db_found=no
28105 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28106 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28107
28108 # Check whether --with-mysql was given.
28109 if test "${with_mysql+set}" = set; then
28110   withval=$with_mysql;
28111   if test "$withval" != "no"; then
28112         if test "$withval" = "yes"; then
28113            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28114                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28115                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28116                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28117                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28118                    else
28119                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28120                    fi
28121                    MYSQL_BINDIR=/usr/local/mysql/bin
28122            elif test -f /usr/include/mysql/mysql.h; then
28123                    MYSQL_INCDIR=/usr/include/mysql
28124                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28125                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28126                            MYSQL_LIBDIR=/usr/lib64/mysql
28127                    elif test -f /usr/lib64/libmysqlclient_r.a \
28128                         -o -f /usr/lib64/libmysqlclient_r.so; then
28129                            MYSQL_LIBDIR=/usr/lib64
28130                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28131                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28132                            MYSQL_LIBDIR=/usr/lib/mysql
28133                    else
28134                            MYSQL_LIBDIR=/usr/lib
28135                    fi
28136                    MYSQL_BINDIR=/usr/bin
28137            elif test -f /usr/include/mysql.h; then
28138                    MYSQL_INCDIR=/usr/include
28139                    if test -f /usr/lib64/libmysqlclient_r.a \
28140                         -o -f /usr/lib64/libmysqlclient_r.so; then
28141                            MYSQL_LIBDIR=/usr/lib64
28142                    else
28143                            MYSQL_LIBDIR=/usr/lib
28144                    fi
28145                    MYSQL_BINDIR=/usr/bin
28146            elif test -f /usr/local/include/mysql/mysql.h; then
28147                    MYSQL_INCDIR=/usr/local/include/mysql
28148                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28149                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28150                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28151                    else
28152                            MYSQL_LIBDIR=/usr/local/lib/mysql
28153                    fi
28154                    MYSQL_BINDIR=/usr/local/bin
28155            elif test -f /usr/local/include/mysql.h; then
28156                    MYSQL_INCDIR=/usr/local/include
28157                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28158                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28159                            MYSQL_LIBDIR=/usr/local/lib64
28160                    else
28161                            MYSQL_LIBDIR=/usr/local/lib
28162                    fi
28163                    MYSQL_BINDIR=/usr/local/bin
28164            else
28165               { echo "$as_me:$LINENO: result: no" >&5
28166 echo "${ECHO_T}no" >&6; }
28167               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28168 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28169    { (exit 1); exit 1; }; }
28170            fi
28171         else
28172            if test -f $withval/include/mysql/mysql.h; then
28173               MYSQL_INCDIR=$withval/include/mysql
28174               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28175                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28176                  MYSQL_LIBDIR=$withval/lib64/mysql
28177               elif test -f $withval/lib64/libmysqlclient_r.a \
28178                    -o -f $withval/lib64/libmysqlclient_r.so; then
28179                  MYSQL_LIBDIR=$withval/lib64
28180               elif test -f $withval/lib/libmysqlclient_r.a \
28181                    -o -f $withval/lib/libmysqlclient_r.so; then
28182                  MYSQL_LIBDIR=$withval/lib
28183               else
28184                  MYSQL_LIBDIR=$withval/lib/mysql
28185               fi
28186               MYSQL_BINDIR=$withval/bin
28187            elif test -f $withval/include/mysql.h; then
28188               MYSQL_INCDIR=$withval/include
28189               if test -f $withval/lib64/libmysqlclient_r.a \
28190                    -o -f $withval/lib64/libmysqlclient_r.so; then
28191                  MYSQL_LIBDIR=$withval/lib64
28192               else
28193                  MYSQL_LIBDIR=$withval/lib
28194               fi
28195               MYSQL_BINDIR=$withval/bin
28196            else
28197               { echo "$as_me:$LINENO: result: no" >&5
28198 echo "${ECHO_T}no" >&6; }
28199               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28200 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28201    { (exit 1); exit 1; }; }
28202            fi
28203         fi
28204     SQL_INCLUDE=-I$MYSQL_INCDIR
28205     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28206          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28207        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28208        cat >>confdefs.h <<\_ACEOF
28209 #define HAVE_THREAD_SAFE_MYSQL 1
28210 _ACEOF
28211
28212     fi
28213     SQL_BINDIR=$MYSQL_BINDIR
28214     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28215
28216
28217 cat >>confdefs.h <<\_ACEOF
28218 #define HAVE_MYSQL 1
28219 _ACEOF
28220
28221     { echo "$as_me:$LINENO: result: yes" >&5
28222 echo "${ECHO_T}yes" >&6; }
28223     db_found=yes
28224     support_mysql=yes
28225     db_type=MySQL
28226     DB_TYPE=mysql
28227
28228   else
28229         { echo "$as_me:$LINENO: result: no" >&5
28230 echo "${ECHO_T}no" >&6; }
28231   fi
28232
28233
28234 fi
28235
28236
28237
28238 # Check whether --with-embedded-mysql was given.
28239 if test "${with_embedded_mysql+set}" = set; then
28240   withval=$with_embedded_mysql;
28241   if test "$withval" != "no"; then
28242         if test "$withval" = "yes"; then
28243                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28244                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28245                         if test -d /usr/local/mysql/lib64/mysql; then
28246                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28247                         else
28248                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28249                         fi
28250                         MYSQL_BINDIR=/usr/local/mysql/bin
28251                 elif test -f /usr/include/mysql/mysql.h; then
28252                         MYSQL_INCDIR=/usr/include/mysql
28253                         if test -d /usr/lib64/mysql; then
28254                                 MYSQL_LIBDIR=/usr/lib64/mysql
28255                         else
28256                                 MYSQL_LIBDIR=/usr/lib/mysql
28257                         fi
28258                         MYSQL_BINDIR=/usr/bin
28259                 elif test -f /usr/include/mysql.h; then
28260                         MYSQL_INCDIR=/usr/include
28261                         if test -d /usr/lib64; then
28262                                 MYSQL_LIBDIR=/usr/lib64
28263                         else
28264                                 MYSQL_LIBDIR=/usr/lib
28265                         fi
28266                         MYSQL_BINDIR=/usr/bin
28267                 elif test -f /usr/local/include/mysql/mysql.h; then
28268                         MYSQL_INCDIR=/usr/local/include/mysql
28269                         if test -d /usr/local/lib64/mysql; then
28270                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28271                         else
28272                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28273                         fi
28274                         MYSQL_BINDIR=/usr/local/bin
28275                 elif test -f /usr/local/include/mysql.h; then
28276                         MYSQL_INCDIR=/usr/local/include
28277                         if test -d /usr/local/lib64; then
28278                                 MYSQL_LIBDIR=/usr/local/lib64
28279                         else
28280                                 MYSQL_LIBDIR=/usr/local/lib
28281                         fi
28282                         MYSQL_BINDIR=/usr/local/bin
28283                 else
28284                    { echo "$as_me:$LINENO: result: no" >&5
28285 echo "${ECHO_T}no" >&6; }
28286                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28287 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28288    { (exit 1); exit 1; }; }
28289                 fi
28290         else
28291                 if test -f $withval/include/mysql/mysql.h; then
28292                         MYSQL_INCDIR=$withval/include/mysql
28293                         if test -d $withval/lib64/mysql; then
28294                                 MYSQL_LIBDIR=$withval/lib64/mysql
28295                         else
28296                                 MYSQL_LIBDIR=$withval/lib/mysql
28297                         fi
28298                         MYSQL_BINDIR=$withval/bin
28299                 elif test -f $withval/include/mysql.h; then
28300                         MYSQL_INCDIR=$withval/include
28301                         if test -d $withval/lib64; then
28302                                 MYSQL_LIBDIR=$withval/lib64
28303                         else
28304                                 MYSQL_LIBDIR=$withval/lib
28305                         fi
28306                         MYSQL_BINDIR=$withval/bin
28307                 else
28308                    { echo "$as_me:$LINENO: result: no" >&5
28309 echo "${ECHO_T}no" >&6; }
28310                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28311 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28312    { (exit 1); exit 1; }; }
28313                 fi
28314         fi
28315     SQL_INCLUDE=-I$MYSQL_INCDIR
28316     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28317     SQL_BINDIR=$MYSQL_BINDIR
28318     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28319
28320     cat >>confdefs.h <<\_ACEOF
28321 #define HAVE_MYSQL 1
28322 _ACEOF
28323
28324     cat >>confdefs.h <<\_ACEOF
28325 #define HAVE_EMBEDDED_MYSQL 1
28326 _ACEOF
28327
28328     { echo "$as_me:$LINENO: result: yes" >&5
28329 echo "${ECHO_T}yes" >&6; }
28330     db_found=yes
28331     support_mysql=yes
28332     db_type=MySQL
28333     DB_TYPE=mysql
28334
28335   else
28336         { echo "$as_me:$LINENO: result: no" >&5
28337 echo "${ECHO_T}no" >&6; }
28338   fi
28339
28340
28341 fi
28342
28343
28344
28345
28346
28347
28348
28349
28350
28351
28352 db_found=no
28353 { echo "$as_me:$LINENO: checking for Ingres support" >&5
28354 echo $ECHO_N "checking for Ingres support... $ECHO_C" >&6; }
28355
28356 # Check whether --with-ingres was given.
28357 if test "${with_ingres+set}" = set; then
28358   withval=$with_ingres;
28359   if test "$withval" != "no"; then
28360      if test "$withval" = "yes"; then
28361         if test -f ${II_SYSTEM}/files/eqdefc.h; then
28362            INGRES_INCDIR=${II_SYSTEM}/files
28363            INGRES_LIBDIR=${II_SYSTEM}/lib
28364            INGRES_BINDIR=${II_SYSTEM}/bin
28365         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
28366            INGRES_INCDIR=${II_SYSTEM}/ingres/files
28367            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
28368            INGRES_BINDIR=${II_SYSTEM}/bin
28369         else
28370            { echo "$as_me:$LINENO: result: no" >&5
28371 echo "${ECHO_T}no" >&6; }
28372            { { echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
28373 echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
28374    { (exit 1); exit 1; }; }
28375         fi
28376      else
28377         if test -f $withval/files/eqdefc.h; then
28378            INGRES_INCDIR=$withval/files
28379            INGRES_LIBDIR=$withval/lib
28380            INGRES_BINDIR=$withval/bin
28381         else
28382            { echo "$as_me:$LINENO: result: no" >&5
28383 echo "${ECHO_T}no" >&6; }
28384            { { echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&5
28385 echo "$as_me: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&2;}
28386    { (exit 1); exit 1; }; }
28387         fi
28388      fi
28389      SQL_INCLUDE=-I$INGRES_INCDIR
28390      SQL_LFLAGS="-L$INGRES_LIBDIR -lingres"
28391      SQL_BINDIR=$INGRES_BINDIR
28392      SQL_LIB=$INGRES_LIBDIR/libingres.a
28393
28394 cat >>confdefs.h <<\_ACEOF
28395 #define HAVE_INGRES 1
28396 _ACEOF
28397
28398      { echo "$as_me:$LINENO: result: yes" >&5
28399 echo "${ECHO_T}yes" >&6; }
28400      db_found=yes
28401      support_ingres=yes
28402      db_type=Ingres
28403      DB_TYPE=ingres
28404
28405   else
28406      { echo "$as_me:$LINENO: result: no" >&5
28407 echo "${ECHO_T}no" >&6; }
28408   fi
28409
28410 else
28411
28412   { echo "$as_me:$LINENO: result: no" >&5
28413 echo "${ECHO_T}no" >&6; }
28414
28415 fi
28416
28417
28418
28419
28420
28421
28422
28423
28424 db_found=no
28425 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28426 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28427
28428 # Check whether --with-sqlite3 was given.
28429 if test "${with_sqlite3+set}" = set; then
28430   withval=$with_sqlite3;
28431   if test "$withval" != "no"; then
28432      if test "$withval" = "yes"; then
28433         if test -f /usr/local/include/sqlite3.h; then
28434            SQLITE_INCDIR=/usr/local/include
28435            if test -d /usr/local/lib64; then
28436               SQLITE_LIBDIR=/usr/local/lib64
28437            else
28438               SQLITE_LIBDIR=/usr/local/lib
28439            fi
28440            SQLITE_BINDIR=/usr/local/bin
28441         elif test -f /usr/include/sqlite3.h; then
28442            SQLITE_INCDIR=/usr/include
28443            if test -d /usr/lib64; then
28444               SQLITE_LIBDIR=/usr/lib64
28445            else
28446               SQLITE_LIBDIR=/usr/lib
28447            fi
28448            SQLITE_BINDIR=/usr/bin
28449         elif test -f $prefix/include/sqlite3.h; then
28450            SQLITE_INCDIR=$prefix/include
28451            if test -d $prefix/lib64; then
28452               SQLITE_LIBDIR=$prefix/lib64
28453            else
28454               SQLITE_LIBDIR=$prefix/lib
28455            fi
28456            SQLITE_BINDIR=$prefix/bin
28457         else
28458            { echo "$as_me:$LINENO: result: no" >&5
28459 echo "${ECHO_T}no" >&6; }
28460            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28461 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28462    { (exit 1); exit 1; }; }
28463         fi
28464      else
28465         if test -f $withval/sqlite3.h; then
28466            SQLITE_INCDIR=$withval
28467            SQLITE_LIBDIR=$withval
28468            SQLITE_BINDIR=$withval
28469         elif test -f $withval/include/sqlite3.h; then
28470            SQLITE_INCDIR=$withval/include
28471            if test -d $withval/lib64; then
28472               SQLITE_LIBDIR=$withval/lib64
28473            else
28474               SQLITE_LIBDIR=$withval/lib
28475            fi
28476            SQLITE_BINDIR=$withval/bin
28477         else
28478            { echo "$as_me:$LINENO: result: no" >&5
28479 echo "${ECHO_T}no" >&6; }
28480            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28481 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28482    { (exit 1); exit 1; }; }
28483         fi
28484      fi
28485      SQL_INCLUDE=-I$SQLITE_INCDIR
28486      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28487      SQL_BINDIR=$SQLITE_BINDIR
28488      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28489
28490      cat >>confdefs.h <<\_ACEOF
28491 #define HAVE_SQLITE3 1
28492 _ACEOF
28493
28494      { echo "$as_me:$LINENO: result: yes" >&5
28495 echo "${ECHO_T}yes" >&6; }
28496      db_found=yes
28497      support_sqlite3=yes
28498      db_type=SQLite3
28499      DB_TYPE=sqlite3
28500
28501   else
28502      { echo "$as_me:$LINENO: result: no" >&5
28503 echo "${ECHO_T}no" >&6; }
28504   fi
28505
28506 else
28507
28508   { echo "$as_me:$LINENO: result: no" >&5
28509 echo "${ECHO_T}no" >&6; }
28510
28511 fi
28512
28513
28514
28515
28516
28517
28518
28519 # BA_CHECK_SQLITE_DB
28520
28521
28522 db_found=no
28523 { echo "$as_me:$LINENO: checking for DBI support" >&5
28524 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28525
28526 # Check whether --with-dbi was given.
28527 if test "${with_dbi+set}" = set; then
28528   withval=$with_dbi;
28529   if test "$withval" != "no"; then
28530      if test "$withval" = "yes"; then
28531         if test -f /usr/local/include/dbi/dbi.h; then
28532            DBI_INCDIR=/usr/local/dbi/include
28533            if test -d /usr/local/lib64; then
28534               DBI_LIBDIR=/usr/local/lib64
28535            else
28536               DBI_LIBDIR=/usr/local/lib
28537            fi
28538            DBI_BINDIR=/usr/local/bin
28539         elif test -f /usr/include/dbi/dbi.h; then
28540            DBI_INCDIR=/usr/include
28541            if test -d /usr/lib64; then
28542               DBI_LIBDIR=/usr/lib64
28543            else
28544               DBI_LIBDIR=/usr/lib
28545            fi
28546            DBI_BINDIR=/usr/bin
28547         elif test -f $prefix/include/dbi/dbi.h; then
28548            DBI_INCDIR=$prefix/include
28549            if test -d $prefix/lib64; then
28550               DBI_LIBDIR=$prefix/lib64
28551            else
28552               DBI_LIBDIR=$prefix/lib
28553            fi
28554            DBI_BINDIR=$prefix/bin
28555         else
28556            { echo "$as_me:$LINENO: result: no" >&5
28557 echo "${ECHO_T}no" >&6; }
28558            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28559 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28560    { (exit 1); exit 1; }; }
28561         fi
28562         if test -d /usr/local/lib/dbd; then
28563            DRIVERDIR=/usr/local/lib/dbd
28564            if test -d /usr/local/lib64/dbd; then
28565               DRIVERDIR=/usr/local/lib64/dbd
28566            else
28567               DRIVERDIR=/usr/local/lib/dbd
28568            fi
28569         elif test -d /usr/lib/dbd; then
28570            DRIVERDIR=/usr/lib/dbd
28571            if test -d /usr/lib64/dbd; then
28572               DRIVERDIR=/usr/lib64/dbd
28573            else
28574               DRIVERDIR=/usr/lib/dbd
28575            fi
28576         elif test -d $prefix/lib/dbd; then
28577            if test -d $prefix/lib64/dbd; then
28578               DRIVERDIR=$prefix/lib64/dbd
28579            else
28580               DRIVERDIR=$prefix/lib/dbd
28581            fi
28582         elif test -d /usr/local/lib64/dbd; then
28583            DRIVERDIR=/usr/local/lib64/dbd
28584         elif test -d /usr/lib64/dbd; then
28585            DRIVERDIR=/usr/lib64/dbd
28586         elif test -d $prefix/lib64/dbd; then
28587            DRIVERDIR=$prefix/lib64/dbd
28588         else
28589            { echo "$as_me:$LINENO: result: no" >&5
28590 echo "${ECHO_T}no" >&6; }
28591            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28592 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28593    { (exit 1); exit 1; }; }
28594         fi
28595      else
28596         if test -f $withval/dbi.h; then
28597            DBI_INCDIR=$withval
28598            DBI_LIBDIR=$withval
28599            DBI_BINDIR=$withval
28600         elif test -f $withval/include/dbi/dbi.h; then
28601            DBI_INCDIR=$withval/include
28602            if test -d $withval/lib64; then
28603               DBI_LIBDIR=$withval/lib64
28604            else
28605               DBI_LIBDIR=$withval/lib
28606            fi
28607            DBI_BINDIR=$withval/bin
28608         else
28609            { echo "$as_me:$LINENO: result: no" >&5
28610 echo "${ECHO_T}no" >&6; }
28611            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28612 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28613    { (exit 1); exit 1; }; }
28614         fi
28615         if test -d $withval/dbd; then
28616            DRIVERDIR=$withval/dbd
28617         elif test -d $withval/lib/; then
28618            if test -d $withval/lib64/dbd; then
28619               DRIVERDIR=$withval/lib64/dbd
28620            else
28621               DRIVERDIR=$withval/lib/dbd
28622            fi
28623         elif test -d $withval/lib64/dbd; then
28624            DRIVERDIR=$withval/lib64/dbd
28625         else
28626            { echo "$as_me:$LINENO: result: no" >&5
28627 echo "${ECHO_T}no" >&6; }
28628            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28629 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28630    { (exit 1); exit 1; }; }
28631         fi
28632      fi
28633      SQL_INCLUDE=-I$DBI_INCDIR
28634      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28635      SQL_BINDIR=$DBI_BINDIR
28636      SQL_LIB=$DBI_LIBDIR/libdbi.a
28637      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28638
28639
28640 cat >>confdefs.h <<\_ACEOF
28641 #define HAVE_DBI 1
28642 _ACEOF
28643
28644      { echo "$as_me:$LINENO: result: yes" >&5
28645 echo "${ECHO_T}yes" >&6; }
28646      db_found=yes
28647      support_dbi=yes
28648      db_type=DBI
28649      DB_TYPE=dbi
28650      uncomment_dbi=" "
28651
28652   else
28653      { echo "$as_me:$LINENO: result: no" >&5
28654 echo "${ECHO_T}no" >&6; }
28655   fi
28656
28657 else
28658
28659   { echo "$as_me:$LINENO: result: no" >&5
28660 echo "${ECHO_T}no" >&6; }
28661
28662 fi
28663
28664
28665
28666
28667
28668
28669
28670
28671
28672
28673 db_found=no
28674 db_prog=no
28675 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28676 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28677
28678 # Check whether --with-dbi-driver was given.
28679 if test "${with_dbi_driver+set}" = set; then
28680   withval=$with_dbi_driver;
28681   if test "$withval" != "no"; then
28682      case $withval in
28683         "mysql")
28684            db_prog="mysql"
28685            if test -f /usr/local/mysql/bin/mysql; then
28686               SQL_BINDIR=/usr/local/mysql/bin
28687               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28688                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28689                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28690               else
28691                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28692               fi
28693            elif test -f /usr/bin/mysql; then
28694               SQL_BINDIR=/usr/bin
28695               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28696                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28697                   SQL_LIBDIR=/usr/lib64/mysql
28698               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28699                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28700                   SQL_LIBDIR=/usr/lib/mysql
28701               else
28702                   SQL_LIBDIR=/usr/lib
28703               fi
28704            elif test -f /usr/local/bin/mysql; then
28705               SQL_BINDIR=/usr/local/bin
28706               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28707                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28708                   SQL_LIBDIR=/usr/local/lib64/mysql
28709               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28710                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28711                   SQL_LIBDIR=/usr/local/lib/mysql
28712               else
28713                   SQL_LIBDIR=/usr/local/lib
28714               fi
28715            elif test -f $withval/bin/mysql; then
28716               SQL_BINDIR=$withval/bin
28717               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28718                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28719                   SQL_LIBDIR=$withval/lib64/mysql
28720               elif test -f $withval/lib64/libmysqlclient_r.a \
28721                   -o -f $withval/lib64/libmysqlclient_r.so; then
28722                   SQL_LIBDIR=$withval/lib64
28723               elif test -f $withval/lib/libmysqlclient_r.a \
28724                   -o -f $withval/lib/libmysqlclient_r.so; then
28725                   SQL_LIBDIR=$withval/lib/
28726               else
28727                   SQL_LIBDIR=$withval/lib/mysql
28728               fi
28729            else
28730               { echo "$as_me:$LINENO: result: no" >&5
28731 echo "${ECHO_T}no" >&6; }
28732               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28733 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28734    { (exit 1); exit 1; }; }
28735            fi
28736            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28737               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28738            else
28739               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28740            fi
28741         ;;
28742         "postgresql")
28743            db_prog="postgresql"
28744            PG_CONFIG=`which pg_config`
28745            if test -n "$PG_CONFIG"; then
28746               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28747               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28748            elif test -f /usr/local/bin/psql; then
28749               SQL_BINDIR=/usr/local/bin
28750               if test -d /usr/local/lib64; then
28751                  SQL_LIBDIR=/usr/local/lib64
28752               else
28753                  SQL_LIBDIR=/usr/local/lib
28754               fi
28755            elif test -f /usr/bin/psql; then
28756               SQL_BINDIR=/usr/local/bin
28757               if test -d /usr/lib64/postgresql; then
28758                  SQL_LIBDIR=/usr/lib64/postgresql
28759               elif test -d /usr/lib/postgresql; then
28760                  SQL_LIBDIR=/usr/lib/postgresql
28761               elif test -d /usr/lib64; then
28762                  SQL_LIBDIR=/usr/lib64
28763               else
28764                  SQL_LIBDIR=/usr/lib
28765               fi
28766            elif test -f $withval/bin/psql; then
28767               SQL_BINDIR=$withval/bin
28768               if test -d $withval/lib64; then
28769                  SQL_LIBDIR=$withval/lib64
28770               else
28771                  SQL_LIBDIR=$withval/lib
28772               fi
28773            else
28774               { echo "$as_me:$LINENO: result: no" >&5
28775 echo "${ECHO_T}no" >&6; }
28776               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28777 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28778    { (exit 1); exit 1; }; }
28779            fi
28780            if test -f $SQL_LIBDIR/libpq.so; then
28781               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28782            else
28783               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28784            fi
28785         ;;
28786         "sqlite")
28787            db_prog="sqlite"
28788            if test -f /usr/local/bin/sqlite; then
28789               SQL_BINDIR=/usr/local/bin
28790               if test -d /usr/local/lib64; then
28791                  SQL_LIBDIR=/usr/local/lib64
28792               else
28793                  SQL_LIBDIR=/usr/local/lib
28794               fi
28795            elif test -f /usr/bin/sqlite; then
28796               SQL_BINDIR=/usr/bin
28797               if test -d /usr/lib64; then
28798                  SQL_LIBDIR=/usr/lib64
28799               else
28800                  SQL_LIBDIR=/usr/lib
28801               fi
28802            elif test -f $withval/bin/sqlite; then
28803               SQL_BINDIR=$withval/bin
28804               if test -d $withval/lib64; then
28805                  SQL_LIBDIR=$withval/lib64
28806               else
28807                  SQL_LIBDIR=$withval/lib
28808               fi
28809            else
28810               { echo "$as_me:$LINENO: result: no" >&5
28811 echo "${ECHO_T}no" >&6; }
28812               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28813 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28814    { (exit 1); exit 1; }; }
28815            fi
28816            if test -f $SQL_LIBDIR/libsqlite.so; then
28817               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28818            else
28819               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28820            fi
28821         ;;
28822         "sqlite3")
28823            db_prog="sqlite3"
28824            if test -f /usr/local/bin/sqlite3; then
28825               SQL_BINDIR=/usr/local/bin
28826               if test -d /usr/local/lib64; then
28827                  SQL_LIBDIR=/usr/local/lib64
28828               else
28829                  SQL_LIBDIR=/usr/local/lib
28830               fi
28831            elif test -f /usr/bin/sqlite3; then
28832               SQL_BINDIR=/usr/bin
28833               if test -d /usr/lib64; then
28834                  SQL_LIBDIR=/usr/lib64
28835               else
28836                  SQL_LIBDIR=/usr/lib
28837               fi
28838            elif test -f $withval/bin/sqlite3; then
28839               SQL_BINDIR=$withval/bin
28840               if test -d $withval/lib64; then
28841                  SQL_LIBDIR=$withval/lib64
28842               else
28843                  SQL_LIBDIR=$withval/lib
28844               fi
28845            else
28846               { echo "$as_me:$LINENO: result: no" >&5
28847 echo "${ECHO_T}no" >&6; }
28848               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28849 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28850    { (exit 1); exit 1; }; }
28851            fi
28852            if test -f $SQL_LIBDIR/libsqlite3.so; then
28853               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28854            else
28855               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28856            fi
28857         ;;
28858         *)
28859            { echo "$as_me:$LINENO: result: no" >&5
28860 echo "${ECHO_T}no" >&6; }
28861            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28862 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28863    { (exit 1); exit 1; }; }
28864         ;;
28865      esac
28866
28867      { echo "$as_me:$LINENO: result: yes" >&5
28868 echo "${ECHO_T}yes" >&6; }
28869      DB_PROG=$db_prog
28870   else
28871      { echo "$as_me:$LINENO: result: no" >&5
28872 echo "${ECHO_T}no" >&6; }
28873   fi
28874
28875 else
28876
28877   { echo "$as_me:$LINENO: result: no" >&5
28878 echo "${ECHO_T}no" >&6; }
28879
28880 fi
28881
28882
28883
28884
28885
28886
28887
28888
28889
28890
28891 support_batch_insert=no
28892 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28893 pkg=$?
28894 if test $pkg = 0; then
28895    support_batch_insert=yes
28896    # Check whether --enable-batch-insert was given.
28897 if test "${enable_batch_insert+set}" = set; then
28898   enableval=$enable_batch_insert;
28899           if test x$enableval = xno; then
28900              support_batch_insert=no
28901           else
28902              support_batch_insert=yes
28903           fi
28904
28905
28906 fi
28907
28908 fi
28909
28910 if test x$DB_TYPE = xpostgresql; then
28911    { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
28912 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
28913 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
28914   echo $ECHO_N "(cached) $ECHO_C" >&6
28915 else
28916   ac_check_lib_save_LIBS=$LIBS
28917 LIBS="-lpq  $LIBS"
28918 cat >conftest.$ac_ext <<_ACEOF
28919 /* confdefs.h.  */
28920 _ACEOF
28921 cat confdefs.h >>conftest.$ac_ext
28922 cat >>conftest.$ac_ext <<_ACEOF
28923 /* end confdefs.h.  */
28924
28925 /* Override any GCC internal prototype to avoid an error.
28926    Use char because int might match the return type of a GCC
28927    builtin and then its argument prototype would still apply.  */
28928 #ifdef __cplusplus
28929 extern "C"
28930 #endif
28931 char PQisthreadsafe ();
28932 int
28933 main ()
28934 {
28935 return PQisthreadsafe ();
28936   ;
28937   return 0;
28938 }
28939 _ACEOF
28940 rm -f conftest.$ac_objext conftest$ac_exeext
28941 if { (ac_try="$ac_link"
28942 case "(($ac_try" in
28943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28944   *) ac_try_echo=$ac_try;;
28945 esac
28946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28947   (eval "$ac_link") 2>conftest.er1
28948   ac_status=$?
28949   grep -v '^ *+' conftest.er1 >conftest.err
28950   rm -f conftest.er1
28951   cat conftest.err >&5
28952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953   (exit $ac_status); } && {
28954          test -z "$ac_c_werror_flag" ||
28955          test ! -s conftest.err
28956        } && test -s conftest$ac_exeext &&
28957        $as_test_x conftest$ac_exeext; then
28958   ac_cv_lib_pq_PQisthreadsafe=yes
28959 else
28960   echo "$as_me: failed program was:" >&5
28961 sed 's/^/| /' conftest.$ac_ext >&5
28962
28963         ac_cv_lib_pq_PQisthreadsafe=no
28964 fi
28965
28966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28967       conftest$ac_exeext conftest.$ac_ext
28968 LIBS=$ac_check_lib_save_LIBS
28969 fi
28970 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
28971 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
28972 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
28973
28974 cat >>confdefs.h <<\_ACEOF
28975 #define HAVE_PQISTHREADSAFE 1
28976 _ACEOF
28977
28978 fi
28979
28980    { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
28981 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
28982 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
28983   echo $ECHO_N "(cached) $ECHO_C" >&6
28984 else
28985   ac_check_lib_save_LIBS=$LIBS
28986 LIBS="-lpq  $LIBS"
28987 cat >conftest.$ac_ext <<_ACEOF
28988 /* confdefs.h.  */
28989 _ACEOF
28990 cat confdefs.h >>conftest.$ac_ext
28991 cat >>conftest.$ac_ext <<_ACEOF
28992 /* end confdefs.h.  */
28993
28994 /* Override any GCC internal prototype to avoid an error.
28995    Use char because int might match the return type of a GCC
28996    builtin and then its argument prototype would still apply.  */
28997 #ifdef __cplusplus
28998 extern "C"
28999 #endif
29000 char PQputCopyData ();
29001 int
29002 main ()
29003 {
29004 return PQputCopyData ();
29005   ;
29006   return 0;
29007 }
29008 _ACEOF
29009 rm -f conftest.$ac_objext conftest$ac_exeext
29010 if { (ac_try="$ac_link"
29011 case "(($ac_try" in
29012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29013   *) ac_try_echo=$ac_try;;
29014 esac
29015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29016   (eval "$ac_link") 2>conftest.er1
29017   ac_status=$?
29018   grep -v '^ *+' conftest.er1 >conftest.err
29019   rm -f conftest.er1
29020   cat conftest.err >&5
29021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022   (exit $ac_status); } && {
29023          test -z "$ac_c_werror_flag" ||
29024          test ! -s conftest.err
29025        } && test -s conftest$ac_exeext &&
29026        $as_test_x conftest$ac_exeext; then
29027   ac_cv_lib_pq_PQputCopyData=yes
29028 else
29029   echo "$as_me: failed program was:" >&5
29030 sed 's/^/| /' conftest.$ac_ext >&5
29031
29032         ac_cv_lib_pq_PQputCopyData=no
29033 fi
29034
29035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29036       conftest$ac_exeext conftest.$ac_ext
29037 LIBS=$ac_check_lib_save_LIBS
29038 fi
29039 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29040 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29041 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29042
29043 cat >>confdefs.h <<\_ACEOF
29044 #define HAVE_PQ_COPY 1
29045 _ACEOF
29046
29047 fi
29048
29049    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29050     then
29051         support_batch_insert=no
29052    fi
29053 fi
29054
29055 if test x$DB_TYPE = xdbi; then
29056    DB_TYPE=$DB_PROG
29057    db_type=$DB_PROG
29058    pkg=1
29059       if test $DB_PROG = postgresql; then
29060       { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29061 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29062 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29063   echo $ECHO_N "(cached) $ECHO_C" >&6
29064 else
29065   ac_check_lib_save_LIBS=$LIBS
29066 LIBS="-lpq  $LIBS"
29067 cat >conftest.$ac_ext <<_ACEOF
29068 /* confdefs.h.  */
29069 _ACEOF
29070 cat confdefs.h >>conftest.$ac_ext
29071 cat >>conftest.$ac_ext <<_ACEOF
29072 /* end confdefs.h.  */
29073
29074 /* Override any GCC internal prototype to avoid an error.
29075    Use char because int might match the return type of a GCC
29076    builtin and then its argument prototype would still apply.  */
29077 #ifdef __cplusplus
29078 extern "C"
29079 #endif
29080 char PQisthreadsafe ();
29081 int
29082 main ()
29083 {
29084 return PQisthreadsafe ();
29085   ;
29086   return 0;
29087 }
29088 _ACEOF
29089 rm -f conftest.$ac_objext conftest$ac_exeext
29090 if { (ac_try="$ac_link"
29091 case "(($ac_try" in
29092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29093   *) ac_try_echo=$ac_try;;
29094 esac
29095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29096   (eval "$ac_link") 2>conftest.er1
29097   ac_status=$?
29098   grep -v '^ *+' conftest.er1 >conftest.err
29099   rm -f conftest.er1
29100   cat conftest.err >&5
29101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102   (exit $ac_status); } && {
29103          test -z "$ac_c_werror_flag" ||
29104          test ! -s conftest.err
29105        } && test -s conftest$ac_exeext &&
29106        $as_test_x conftest$ac_exeext; then
29107   ac_cv_lib_pq_PQisthreadsafe=yes
29108 else
29109   echo "$as_me: failed program was:" >&5
29110 sed 's/^/| /' conftest.$ac_ext >&5
29111
29112         ac_cv_lib_pq_PQisthreadsafe=no
29113 fi
29114
29115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29116       conftest$ac_exeext conftest.$ac_ext
29117 LIBS=$ac_check_lib_save_LIBS
29118 fi
29119 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29120 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29121 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29122   cat >>confdefs.h <<\_ACEOF
29123 #define HAVE_PQISTHREADSAFE 1
29124 _ACEOF
29125
29126 fi
29127
29128       { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29129 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29130 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29131   echo $ECHO_N "(cached) $ECHO_C" >&6
29132 else
29133   ac_check_lib_save_LIBS=$LIBS
29134 LIBS="-lpq  $LIBS"
29135 cat >conftest.$ac_ext <<_ACEOF
29136 /* confdefs.h.  */
29137 _ACEOF
29138 cat confdefs.h >>conftest.$ac_ext
29139 cat >>conftest.$ac_ext <<_ACEOF
29140 /* end confdefs.h.  */
29141
29142 /* Override any GCC internal prototype to avoid an error.
29143    Use char because int might match the return type of a GCC
29144    builtin and then its argument prototype would still apply.  */
29145 #ifdef __cplusplus
29146 extern "C"
29147 #endif
29148 char PQputCopyData ();
29149 int
29150 main ()
29151 {
29152 return PQputCopyData ();
29153   ;
29154   return 0;
29155 }
29156 _ACEOF
29157 rm -f conftest.$ac_objext conftest$ac_exeext
29158 if { (ac_try="$ac_link"
29159 case "(($ac_try" in
29160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29161   *) ac_try_echo=$ac_try;;
29162 esac
29163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29164   (eval "$ac_link") 2>conftest.er1
29165   ac_status=$?
29166   grep -v '^ *+' conftest.er1 >conftest.err
29167   rm -f conftest.er1
29168   cat conftest.err >&5
29169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170   (exit $ac_status); } && {
29171          test -z "$ac_c_werror_flag" ||
29172          test ! -s conftest.err
29173        } && test -s conftest$ac_exeext &&
29174        $as_test_x conftest$ac_exeext; then
29175   ac_cv_lib_pq_PQputCopyData=yes
29176 else
29177   echo "$as_me: failed program was:" >&5
29178 sed 's/^/| /' conftest.$ac_ext >&5
29179
29180         ac_cv_lib_pq_PQputCopyData=no
29181 fi
29182
29183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29184       conftest$ac_exeext conftest.$ac_ext
29185 LIBS=$ac_check_lib_save_LIBS
29186 fi
29187 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29188 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29189 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29190   cat >>confdefs.h <<\_ACEOF
29191 #define HAVE_PQ_COPY 1
29192 _ACEOF
29193
29194 fi
29195
29196       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29197       pkg=$?
29198    fi
29199
29200    if test $DB_PROG = mysql; then
29201       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29202       pkg=$?
29203    fi
29204
29205    if test $DB_PROG = sqlite3; then
29206       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29207       pkg=$?
29208       { echo "$as_me:$LINENO: checking for sqlite3_threadsafe in -lsqlite3" >&5
29209 echo $ECHO_N "checking for sqlite3_threadsafe in -lsqlite3... $ECHO_C" >&6; }
29210 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then
29211   echo $ECHO_N "(cached) $ECHO_C" >&6
29212 else
29213   ac_check_lib_save_LIBS=$LIBS
29214 LIBS="-lsqlite3  $LIBS"
29215 cat >conftest.$ac_ext <<_ACEOF
29216 /* confdefs.h.  */
29217 _ACEOF
29218 cat confdefs.h >>conftest.$ac_ext
29219 cat >>conftest.$ac_ext <<_ACEOF
29220 /* end confdefs.h.  */
29221
29222 /* Override any GCC internal prototype to avoid an error.
29223    Use char because int might match the return type of a GCC
29224    builtin and then its argument prototype would still apply.  */
29225 #ifdef __cplusplus
29226 extern "C"
29227 #endif
29228 char sqlite3_threadsafe ();
29229 int
29230 main ()
29231 {
29232 return sqlite3_threadsafe ();
29233   ;
29234   return 0;
29235 }
29236 _ACEOF
29237 rm -f conftest.$ac_objext conftest$ac_exeext
29238 if { (ac_try="$ac_link"
29239 case "(($ac_try" in
29240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241   *) ac_try_echo=$ac_try;;
29242 esac
29243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244   (eval "$ac_link") 2>conftest.er1
29245   ac_status=$?
29246   grep -v '^ *+' conftest.er1 >conftest.err
29247   rm -f conftest.er1
29248   cat conftest.err >&5
29249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250   (exit $ac_status); } && {
29251          test -z "$ac_c_werror_flag" ||
29252          test ! -s conftest.err
29253        } && test -s conftest$ac_exeext &&
29254        $as_test_x conftest$ac_exeext; then
29255   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
29256 else
29257   echo "$as_me: failed program was:" >&5
29258 sed 's/^/| /' conftest.$ac_ext >&5
29259
29260         ac_cv_lib_sqlite3_sqlite3_threadsafe=no
29261 fi
29262
29263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29264       conftest$ac_exeext conftest.$ac_ext
29265 LIBS=$ac_check_lib_save_LIBS
29266 fi
29267 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
29268 echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
29269 if test $ac_cv_lib_sqlite3_sqlite3_threadsafe = yes; then
29270
29271 cat >>confdefs.h <<\_ACEOF
29272 #define HAVE_SQLITE3_THREADSAFE 1
29273 _ACEOF
29274
29275 fi
29276
29277    fi
29278
29279    if test $pkg = 0; then
29280       # Check whether --enable-batch-insert was given.
29281 if test "${enable_batch_insert+set}" = set; then
29282   enableval=$enable_batch_insert;
29283              if test x$enableval = xno; then
29284                 support_batch_insert=no
29285              else
29286                 support_batch_insert=yes
29287              fi
29288
29289
29290 fi
29291
29292    fi
29293 else
29294       uncomment_dbi="#"
29295 fi
29296
29297
29298
29299 if test $support_batch_insert = yes ; then
29300
29301 cat >>confdefs.h <<\_ACEOF
29302 #define HAVE_BATCH_FILE_INSERT 1
29303 _ACEOF
29304
29305 fi
29306
29307 cat >>confdefs.h <<\_ACEOF
29308 #define PROTOTYPES 1
29309 _ACEOF
29310
29311
29312 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29313    if test -z "$CCOPTS"; then
29314       CCOPTS='-g -O2 -Wall'
29315    fi
29316    CFLAGS="$CCOPTS"
29317 fi
29318
29319
29320
29321 largefile_support="no"
29322
29323    # Check whether --enable-largefile was given.
29324 if test "${enable_largefile+set}" = set; then
29325   enableval=$enable_largefile;
29326 fi
29327
29328    if test "$enable_largefile" != no; then
29329      if test -n "$ac_tool_prefix"; then
29330   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29331 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29334 if test "${ac_cv_prog_GETCONF+set}" = set; then
29335   echo $ECHO_N "(cached) $ECHO_C" >&6
29336 else
29337   if test -n "$GETCONF"; then
29338   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29339 else
29340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29341 for as_dir in $PATH
29342 do
29343   IFS=$as_save_IFS
29344   test -z "$as_dir" && as_dir=.
29345   for ac_exec_ext in '' $ac_executable_extensions; do
29346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29347     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29349     break 2
29350   fi
29351 done
29352 done
29353 IFS=$as_save_IFS
29354
29355 fi
29356 fi
29357 GETCONF=$ac_cv_prog_GETCONF
29358 if test -n "$GETCONF"; then
29359   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29360 echo "${ECHO_T}$GETCONF" >&6; }
29361 else
29362   { echo "$as_me:$LINENO: result: no" >&5
29363 echo "${ECHO_T}no" >&6; }
29364 fi
29365
29366
29367 fi
29368 if test -z "$ac_cv_prog_GETCONF"; then
29369   ac_ct_GETCONF=$GETCONF
29370   # Extract the first word of "getconf", so it can be a program name with args.
29371 set dummy getconf; ac_word=$2
29372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29374 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29375   echo $ECHO_N "(cached) $ECHO_C" >&6
29376 else
29377   if test -n "$ac_ct_GETCONF"; then
29378   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29379 else
29380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29381 for as_dir in $PATH
29382 do
29383   IFS=$as_save_IFS
29384   test -z "$as_dir" && as_dir=.
29385   for ac_exec_ext in '' $ac_executable_extensions; do
29386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29387     ac_cv_prog_ac_ct_GETCONF="getconf"
29388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29389     break 2
29390   fi
29391 done
29392 done
29393 IFS=$as_save_IFS
29394
29395 fi
29396 fi
29397 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29398 if test -n "$ac_ct_GETCONF"; then
29399   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29400 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29401 else
29402   { echo "$as_me:$LINENO: result: no" >&5
29403 echo "${ECHO_T}no" >&6; }
29404 fi
29405
29406   if test "x$ac_ct_GETCONF" = x; then
29407     GETCONF=""
29408   else
29409     case $cross_compiling:$ac_tool_warned in
29410 yes:)
29411 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29412 whose name does not start with the host triplet.  If you think this
29413 configuration is useful to you, please write to autoconf@gnu.org." >&5
29414 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29415 whose name does not start with the host triplet.  If you think this
29416 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29417 ac_tool_warned=yes ;;
29418 esac
29419     GETCONF=$ac_ct_GETCONF
29420   fi
29421 else
29422   GETCONF="$ac_cv_prog_GETCONF"
29423 fi
29424
29425      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29426 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29427 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29428   echo $ECHO_N "(cached) $ECHO_C" >&6
29429 else
29430   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29431         ac_cv_sys_largefile_CFLAGS=no
29432         case "$host_os" in
29433            # IRIX 6.2 and later require cc -n32.
29434            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29435              if test "$GCC" != yes; then
29436                ac_cv_sys_largefile_CFLAGS=-n32
29437              fi
29438              ac_save_CC="$CC"
29439              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29440              cat >conftest.$ac_ext <<_ACEOF
29441 /* confdefs.h.  */
29442 _ACEOF
29443 cat confdefs.h >>conftest.$ac_ext
29444 cat >>conftest.$ac_ext <<_ACEOF
29445 /* end confdefs.h.  */
29446
29447 int
29448 main ()
29449 {
29450
29451   ;
29452   return 0;
29453 }
29454 _ACEOF
29455 rm -f conftest.$ac_objext conftest$ac_exeext
29456 if { (ac_try="$ac_link"
29457 case "(($ac_try" in
29458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29459   *) ac_try_echo=$ac_try;;
29460 esac
29461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29462   (eval "$ac_link") 2>conftest.er1
29463   ac_status=$?
29464   grep -v '^ *+' conftest.er1 >conftest.err
29465   rm -f conftest.er1
29466   cat conftest.err >&5
29467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468   (exit $ac_status); } && {
29469          test -z "$ac_c_werror_flag" ||
29470          test ! -s conftest.err
29471        } && test -s conftest$ac_exeext &&
29472        $as_test_x conftest$ac_exeext; then
29473   :
29474 else
29475   echo "$as_me: failed program was:" >&5
29476 sed 's/^/| /' conftest.$ac_ext >&5
29477
29478         ac_cv_sys_largefile_CFLAGS=no
29479 fi
29480
29481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29482       conftest$ac_exeext conftest.$ac_ext
29483              CC="$ac_save_CC"
29484            esac
29485       }
29486 fi
29487 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29488 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29489      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29490 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29491 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29492   echo $ECHO_N "(cached) $ECHO_C" >&6
29493 else
29494   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29495         ac_cv_sys_largefile_LDFLAGS=no
29496
29497       }
29498 fi
29499 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29500 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29501      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29502 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29503 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29504   echo $ECHO_N "(cached) $ECHO_C" >&6
29505 else
29506   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29507         ac_cv_sys_largefile_LIBS=no
29508
29509       }
29510 fi
29511 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29512 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29513
29514      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29515        case "$ac_flag" in
29516        no) ;;
29517        -D_FILE_OFFSET_BITS=*) ;;
29518        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29519        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29520        -D?* | -I?*)
29521          case "$ac_flag" in
29522    no) ;;
29523    ?*)
29524      case "$CPPFLAGS" in
29525      '') CPPFLAGS="$ac_flag" ;;
29526      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29527      esac ;;
29528    esac ;;
29529        *)
29530          case "$ac_flag" in
29531    no) ;;
29532    ?*)
29533      case "$CFLAGS" in
29534      '') CFLAGS="$ac_flag" ;;
29535      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29536      esac ;;
29537    esac ;;
29538        esac
29539      done
29540      case "$ac_cv_sys_largefile_LDFLAGS" in
29541    no) ;;
29542    ?*)
29543      case "$LDFLAGS" in
29544      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29545      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29546      esac ;;
29547    esac
29548      case "$ac_cv_sys_largefile_LIBS" in
29549    no) ;;
29550    ?*)
29551      case "$LIBS" in
29552      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29553      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29554      esac ;;
29555    esac
29556      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29557 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29558 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29559   echo $ECHO_N "(cached) $ECHO_C" >&6
29560 else
29561   ac_cv_sys_file_offset_bits=no
29562       ac_cv_sys_file_offset_bits=64
29563       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29564         case "$ac_flag" in
29565         -D_FILE_OFFSET_BITS)
29566           ac_cv_sys_file_offset_bits=1 ;;
29567         -D_FILE_OFFSET_BITS=*)
29568           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29569         esac
29570       done
29571
29572 fi
29573 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29574 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29575    if test "$ac_cv_sys_file_offset_bits" != no; then
29576
29577 cat >>confdefs.h <<_ACEOF
29578 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29579 _ACEOF
29580
29581    fi
29582      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29583 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29584 if test "${ac_cv_sys_largefile_source+set}" = set; then
29585   echo $ECHO_N "(cached) $ECHO_C" >&6
29586 else
29587   ac_cv_sys_largefile_source=no
29588       ac_cv_sys_largefile_source=1
29589       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29590         case "$ac_flag" in
29591         -D_LARGEFILE_SOURCE)
29592           ac_cv_sys_largefile_source=1 ;;
29593         -D_LARGEFILE_SOURCE=*)
29594           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29595         esac
29596       done
29597
29598 fi
29599 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29600 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29601    if test "$ac_cv_sys_largefile_source" != no; then
29602
29603 cat >>confdefs.h <<_ACEOF
29604 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29605 _ACEOF
29606
29607    fi
29608      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29609 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29610 if test "${ac_cv_sys_large_files+set}" = set; then
29611   echo $ECHO_N "(cached) $ECHO_C" >&6
29612 else
29613   ac_cv_sys_large_files=no
29614       ac_cv_sys_large_files=1
29615       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29616         case "$ac_flag" in
29617         -D_LARGE_FILES)
29618           ac_cv_sys_large_files=1 ;;
29619         -D_LARGE_FILES=*)
29620           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29621         esac
29622       done
29623
29624 fi
29625 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29626 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29627    if test "$ac_cv_sys_large_files" != no; then
29628
29629 cat >>confdefs.h <<_ACEOF
29630 #define _LARGE_FILES $ac_cv_sys_large_files
29631 _ACEOF
29632
29633    fi
29634    fi
29635
29636
29637 { echo "$as_me:$LINENO: checking for X" >&5
29638 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29639
29640
29641 # Check whether --with-x was given.
29642 if test "${with_x+set}" = set; then
29643   withval=$with_x;
29644 fi
29645
29646 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29647 if test "x$with_x" = xno; then
29648   # The user explicitly disabled X.
29649   have_x=disabled
29650 else
29651   case $x_includes,$x_libraries in #(
29652     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29653 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29654    { (exit 1); exit 1; }; };; #(
29655     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29656   echo $ECHO_N "(cached) $ECHO_C" >&6
29657 else
29658   # One or both of the vars are not set, and there is no cached value.
29659 ac_x_includes=no ac_x_libraries=no
29660 rm -f -r conftest.dir
29661 if mkdir conftest.dir; then
29662   cd conftest.dir
29663   cat >Imakefile <<'_ACEOF'
29664 incroot:
29665         @echo incroot='${INCROOT}'
29666 usrlibdir:
29667         @echo usrlibdir='${USRLIBDIR}'
29668 libdir:
29669         @echo libdir='${LIBDIR}'
29670 _ACEOF
29671   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29672     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29673     for ac_var in incroot usrlibdir libdir; do
29674       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29675     done
29676     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29677     for ac_extension in a so sl; do
29678       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29679          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29680         ac_im_usrlibdir=$ac_im_libdir; break
29681       fi
29682     done
29683     # Screen out bogus values from the imake configuration.  They are
29684     # bogus both because they are the default anyway, and because
29685     # using them would break gcc on systems where it needs fixed includes.
29686     case $ac_im_incroot in
29687         /usr/include) ac_x_includes= ;;
29688         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29689     esac
29690     case $ac_im_usrlibdir in
29691         /usr/lib | /lib) ;;
29692         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29693     esac
29694   fi
29695   cd ..
29696   rm -f -r conftest.dir
29697 fi
29698
29699 # Standard set of common directories for X headers.
29700 # Check X11 before X11Rn because it is often a symlink to the current release.
29701 ac_x_header_dirs='
29702 /usr/X11/include
29703 /usr/X11R6/include
29704 /usr/X11R5/include
29705 /usr/X11R4/include
29706
29707 /usr/include/X11
29708 /usr/include/X11R6
29709 /usr/include/X11R5
29710 /usr/include/X11R4
29711
29712 /usr/local/X11/include
29713 /usr/local/X11R6/include
29714 /usr/local/X11R5/include
29715 /usr/local/X11R4/include
29716
29717 /usr/local/include/X11
29718 /usr/local/include/X11R6
29719 /usr/local/include/X11R5
29720 /usr/local/include/X11R4
29721
29722 /usr/X386/include
29723 /usr/x386/include
29724 /usr/XFree86/include/X11
29725
29726 /usr/include
29727 /usr/local/include
29728 /usr/unsupported/include
29729 /usr/athena/include
29730 /usr/local/x11r5/include
29731 /usr/lpp/Xamples/include
29732
29733 /usr/openwin/include
29734 /usr/openwin/share/include'
29735
29736 if test "$ac_x_includes" = no; then
29737   # Guess where to find include files, by looking for Xlib.h.
29738   # First, try using that file with no special directory specified.
29739   cat >conftest.$ac_ext <<_ACEOF
29740 /* confdefs.h.  */
29741 _ACEOF
29742 cat confdefs.h >>conftest.$ac_ext
29743 cat >>conftest.$ac_ext <<_ACEOF
29744 /* end confdefs.h.  */
29745 #include <X11/Xlib.h>
29746 _ACEOF
29747 if { (ac_try="$ac_cpp conftest.$ac_ext"
29748 case "(($ac_try" in
29749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29750   *) ac_try_echo=$ac_try;;
29751 esac
29752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29754   ac_status=$?
29755   grep -v '^ *+' conftest.er1 >conftest.err
29756   rm -f conftest.er1
29757   cat conftest.err >&5
29758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759   (exit $ac_status); } >/dev/null && {
29760          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29761          test ! -s conftest.err
29762        }; then
29763   # We can compile using X headers with no special include directory.
29764 ac_x_includes=
29765 else
29766   echo "$as_me: failed program was:" >&5
29767 sed 's/^/| /' conftest.$ac_ext >&5
29768
29769   for ac_dir in $ac_x_header_dirs; do
29770   if test -r "$ac_dir/X11/Xlib.h"; then
29771     ac_x_includes=$ac_dir
29772     break
29773   fi
29774 done
29775 fi
29776
29777 rm -f conftest.err conftest.$ac_ext
29778 fi # $ac_x_includes = no
29779
29780 if test "$ac_x_libraries" = no; then
29781   # Check for the libraries.
29782   # See if we find them without any special options.
29783   # Don't add to $LIBS permanently.
29784   ac_save_LIBS=$LIBS
29785   LIBS="-lX11 $LIBS"
29786   cat >conftest.$ac_ext <<_ACEOF
29787 /* confdefs.h.  */
29788 _ACEOF
29789 cat confdefs.h >>conftest.$ac_ext
29790 cat >>conftest.$ac_ext <<_ACEOF
29791 /* end confdefs.h.  */
29792 #include <X11/Xlib.h>
29793 int
29794 main ()
29795 {
29796 XrmInitialize ()
29797   ;
29798   return 0;
29799 }
29800 _ACEOF
29801 rm -f conftest.$ac_objext conftest$ac_exeext
29802 if { (ac_try="$ac_link"
29803 case "(($ac_try" in
29804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29805   *) ac_try_echo=$ac_try;;
29806 esac
29807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29808   (eval "$ac_link") 2>conftest.er1
29809   ac_status=$?
29810   grep -v '^ *+' conftest.er1 >conftest.err
29811   rm -f conftest.er1
29812   cat conftest.err >&5
29813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814   (exit $ac_status); } && {
29815          test -z "$ac_c_werror_flag" ||
29816          test ! -s conftest.err
29817        } && test -s conftest$ac_exeext &&
29818        $as_test_x conftest$ac_exeext; then
29819   LIBS=$ac_save_LIBS
29820 # We can link X programs with no special library path.
29821 ac_x_libraries=
29822 else
29823   echo "$as_me: failed program was:" >&5
29824 sed 's/^/| /' conftest.$ac_ext >&5
29825
29826         LIBS=$ac_save_LIBS
29827 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29828 do
29829   # Don't even attempt the hair of trying to link an X program!
29830   for ac_extension in a so sl; do
29831     if test -r "$ac_dir/libX11.$ac_extension"; then
29832       ac_x_libraries=$ac_dir
29833       break 2
29834     fi
29835   done
29836 done
29837 fi
29838
29839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29840       conftest$ac_exeext conftest.$ac_ext
29841 fi # $ac_x_libraries = no
29842
29843 case $ac_x_includes,$ac_x_libraries in #(
29844   no,* | *,no | *\'*)
29845     # Didn't find X, or a directory has "'" in its name.
29846     ac_cv_have_x="have_x=no";; #(
29847   *)
29848     # Record where we found X for the cache.
29849     ac_cv_have_x="have_x=yes\
29850         ac_x_includes='$ac_x_includes'\
29851         ac_x_libraries='$ac_x_libraries'"
29852 esac
29853 fi
29854 ;; #(
29855     *) have_x=yes;;
29856   esac
29857   eval "$ac_cv_have_x"
29858 fi # $with_x != no
29859
29860 if test "$have_x" != yes; then
29861   { echo "$as_me:$LINENO: result: $have_x" >&5
29862 echo "${ECHO_T}$have_x" >&6; }
29863   no_x=yes
29864 else
29865   # If each of the values was on the command line, it overrides each guess.
29866   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29867   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29868   # Update the cache value to reflect the command line values.
29869   ac_cv_have_x="have_x=yes\
29870         ac_x_includes='$x_includes'\
29871         ac_x_libraries='$x_libraries'"
29872   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29873 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29874 fi
29875
29876 if test "$no_x" = yes; then
29877   # Not all programs may use this symbol, but it does not hurt to define it.
29878
29879 cat >>confdefs.h <<\_ACEOF
29880 #define X_DISPLAY_MISSING 1
29881 _ACEOF
29882
29883   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29884 else
29885   if test -n "$x_includes"; then
29886     X_CFLAGS="$X_CFLAGS -I$x_includes"
29887   fi
29888
29889   # It would also be nice to do this for all -L options, not just this one.
29890   if test -n "$x_libraries"; then
29891     X_LIBS="$X_LIBS -L$x_libraries"
29892     # For Solaris; some versions of Sun CC require a space after -R and
29893     # others require no space.  Words are not sufficient . . . .
29894     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29895 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29896     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29897     ac_xsave_c_werror_flag=$ac_c_werror_flag
29898     ac_c_werror_flag=yes
29899     cat >conftest.$ac_ext <<_ACEOF
29900 /* confdefs.h.  */
29901 _ACEOF
29902 cat confdefs.h >>conftest.$ac_ext
29903 cat >>conftest.$ac_ext <<_ACEOF
29904 /* end confdefs.h.  */
29905
29906 int
29907 main ()
29908 {
29909
29910   ;
29911   return 0;
29912 }
29913 _ACEOF
29914 rm -f conftest.$ac_objext conftest$ac_exeext
29915 if { (ac_try="$ac_link"
29916 case "(($ac_try" in
29917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29918   *) ac_try_echo=$ac_try;;
29919 esac
29920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29921   (eval "$ac_link") 2>conftest.er1
29922   ac_status=$?
29923   grep -v '^ *+' conftest.er1 >conftest.err
29924   rm -f conftest.er1
29925   cat conftest.err >&5
29926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927   (exit $ac_status); } && {
29928          test -z "$ac_c_werror_flag" ||
29929          test ! -s conftest.err
29930        } && test -s conftest$ac_exeext &&
29931        $as_test_x conftest$ac_exeext; then
29932   { echo "$as_me:$LINENO: result: no" >&5
29933 echo "${ECHO_T}no" >&6; }
29934        X_LIBS="$X_LIBS -R$x_libraries"
29935 else
29936   echo "$as_me: failed program was:" >&5
29937 sed 's/^/| /' conftest.$ac_ext >&5
29938
29939         LIBS="$ac_xsave_LIBS -R $x_libraries"
29940        cat >conftest.$ac_ext <<_ACEOF
29941 /* confdefs.h.  */
29942 _ACEOF
29943 cat confdefs.h >>conftest.$ac_ext
29944 cat >>conftest.$ac_ext <<_ACEOF
29945 /* end confdefs.h.  */
29946
29947 int
29948 main ()
29949 {
29950
29951   ;
29952   return 0;
29953 }
29954 _ACEOF
29955 rm -f conftest.$ac_objext conftest$ac_exeext
29956 if { (ac_try="$ac_link"
29957 case "(($ac_try" in
29958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29959   *) ac_try_echo=$ac_try;;
29960 esac
29961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29962   (eval "$ac_link") 2>conftest.er1
29963   ac_status=$?
29964   grep -v '^ *+' conftest.er1 >conftest.err
29965   rm -f conftest.er1
29966   cat conftest.err >&5
29967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968   (exit $ac_status); } && {
29969          test -z "$ac_c_werror_flag" ||
29970          test ! -s conftest.err
29971        } && test -s conftest$ac_exeext &&
29972        $as_test_x conftest$ac_exeext; then
29973   { echo "$as_me:$LINENO: result: yes" >&5
29974 echo "${ECHO_T}yes" >&6; }
29975           X_LIBS="$X_LIBS -R $x_libraries"
29976 else
29977   echo "$as_me: failed program was:" >&5
29978 sed 's/^/| /' conftest.$ac_ext >&5
29979
29980         { echo "$as_me:$LINENO: result: neither works" >&5
29981 echo "${ECHO_T}neither works" >&6; }
29982 fi
29983
29984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29985       conftest$ac_exeext conftest.$ac_ext
29986 fi
29987
29988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29989       conftest$ac_exeext conftest.$ac_ext
29990     ac_c_werror_flag=$ac_xsave_c_werror_flag
29991     LIBS=$ac_xsave_LIBS
29992   fi
29993
29994   # Check for system-dependent libraries X programs must link with.
29995   # Do this before checking for the system-independent R6 libraries
29996   # (-lICE), since we may need -lsocket or whatever for X linking.
29997
29998   if test "$ISC" = yes; then
29999     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30000   else
30001     # Martyn Johnson says this is needed for Ultrix, if the X
30002     # libraries were built with DECnet support.  And Karl Berry says
30003     # the Alpha needs dnet_stub (dnet does not exist).
30004     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30005     cat >conftest.$ac_ext <<_ACEOF
30006 /* confdefs.h.  */
30007 _ACEOF
30008 cat confdefs.h >>conftest.$ac_ext
30009 cat >>conftest.$ac_ext <<_ACEOF
30010 /* end confdefs.h.  */
30011
30012 /* Override any GCC internal prototype to avoid an error.
30013    Use char because int might match the return type of a GCC
30014    builtin and then its argument prototype would still apply.  */
30015 #ifdef __cplusplus
30016 extern "C"
30017 #endif
30018 char XOpenDisplay ();
30019 int
30020 main ()
30021 {
30022 return XOpenDisplay ();
30023   ;
30024   return 0;
30025 }
30026 _ACEOF
30027 rm -f conftest.$ac_objext conftest$ac_exeext
30028 if { (ac_try="$ac_link"
30029 case "(($ac_try" in
30030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30031   *) ac_try_echo=$ac_try;;
30032 esac
30033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30034   (eval "$ac_link") 2>conftest.er1
30035   ac_status=$?
30036   grep -v '^ *+' conftest.er1 >conftest.err
30037   rm -f conftest.er1
30038   cat conftest.err >&5
30039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30040   (exit $ac_status); } && {
30041          test -z "$ac_c_werror_flag" ||
30042          test ! -s conftest.err
30043        } && test -s conftest$ac_exeext &&
30044        $as_test_x conftest$ac_exeext; then
30045   :
30046 else
30047   echo "$as_me: failed program was:" >&5
30048 sed 's/^/| /' conftest.$ac_ext >&5
30049
30050         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30051 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30052 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30053   echo $ECHO_N "(cached) $ECHO_C" >&6
30054 else
30055   ac_check_lib_save_LIBS=$LIBS
30056 LIBS="-ldnet  $LIBS"
30057 cat >conftest.$ac_ext <<_ACEOF
30058 /* confdefs.h.  */
30059 _ACEOF
30060 cat confdefs.h >>conftest.$ac_ext
30061 cat >>conftest.$ac_ext <<_ACEOF
30062 /* end confdefs.h.  */
30063
30064 /* Override any GCC internal prototype to avoid an error.
30065    Use char because int might match the return type of a GCC
30066    builtin and then its argument prototype would still apply.  */
30067 #ifdef __cplusplus
30068 extern "C"
30069 #endif
30070 char dnet_ntoa ();
30071 int
30072 main ()
30073 {
30074 return dnet_ntoa ();
30075   ;
30076   return 0;
30077 }
30078 _ACEOF
30079 rm -f conftest.$ac_objext conftest$ac_exeext
30080 if { (ac_try="$ac_link"
30081 case "(($ac_try" in
30082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30083   *) ac_try_echo=$ac_try;;
30084 esac
30085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30086   (eval "$ac_link") 2>conftest.er1
30087   ac_status=$?
30088   grep -v '^ *+' conftest.er1 >conftest.err
30089   rm -f conftest.er1
30090   cat conftest.err >&5
30091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092   (exit $ac_status); } && {
30093          test -z "$ac_c_werror_flag" ||
30094          test ! -s conftest.err
30095        } && test -s conftest$ac_exeext &&
30096        $as_test_x conftest$ac_exeext; then
30097   ac_cv_lib_dnet_dnet_ntoa=yes
30098 else
30099   echo "$as_me: failed program was:" >&5
30100 sed 's/^/| /' conftest.$ac_ext >&5
30101
30102         ac_cv_lib_dnet_dnet_ntoa=no
30103 fi
30104
30105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30106       conftest$ac_exeext conftest.$ac_ext
30107 LIBS=$ac_check_lib_save_LIBS
30108 fi
30109 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30110 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30111 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30112   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30113 fi
30114
30115     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30116       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30117 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30118 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30119   echo $ECHO_N "(cached) $ECHO_C" >&6
30120 else
30121   ac_check_lib_save_LIBS=$LIBS
30122 LIBS="-ldnet_stub  $LIBS"
30123 cat >conftest.$ac_ext <<_ACEOF
30124 /* confdefs.h.  */
30125 _ACEOF
30126 cat confdefs.h >>conftest.$ac_ext
30127 cat >>conftest.$ac_ext <<_ACEOF
30128 /* end confdefs.h.  */
30129
30130 /* Override any GCC internal prototype to avoid an error.
30131    Use char because int might match the return type of a GCC
30132    builtin and then its argument prototype would still apply.  */
30133 #ifdef __cplusplus
30134 extern "C"
30135 #endif
30136 char dnet_ntoa ();
30137 int
30138 main ()
30139 {
30140 return dnet_ntoa ();
30141   ;
30142   return 0;
30143 }
30144 _ACEOF
30145 rm -f conftest.$ac_objext conftest$ac_exeext
30146 if { (ac_try="$ac_link"
30147 case "(($ac_try" in
30148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30149   *) ac_try_echo=$ac_try;;
30150 esac
30151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30152   (eval "$ac_link") 2>conftest.er1
30153   ac_status=$?
30154   grep -v '^ *+' conftest.er1 >conftest.err
30155   rm -f conftest.er1
30156   cat conftest.err >&5
30157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158   (exit $ac_status); } && {
30159          test -z "$ac_c_werror_flag" ||
30160          test ! -s conftest.err
30161        } && test -s conftest$ac_exeext &&
30162        $as_test_x conftest$ac_exeext; then
30163   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30164 else
30165   echo "$as_me: failed program was:" >&5
30166 sed 's/^/| /' conftest.$ac_ext >&5
30167
30168         ac_cv_lib_dnet_stub_dnet_ntoa=no
30169 fi
30170
30171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30172       conftest$ac_exeext conftest.$ac_ext
30173 LIBS=$ac_check_lib_save_LIBS
30174 fi
30175 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30176 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30177 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30178   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30179 fi
30180
30181     fi
30182 fi
30183
30184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30185       conftest$ac_exeext conftest.$ac_ext
30186     LIBS="$ac_xsave_LIBS"
30187
30188     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30189     # to get the SysV transport functions.
30190     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30191     # needs -lnsl.
30192     # The nsl library prevents programs from opening the X display
30193     # on Irix 5.2, according to T.E. Dickey.
30194     # The functions gethostbyname, getservbyname, and inet_addr are
30195     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30196     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30197 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30198 if test "${ac_cv_func_gethostbyname+set}" = set; then
30199   echo $ECHO_N "(cached) $ECHO_C" >&6
30200 else
30201   cat >conftest.$ac_ext <<_ACEOF
30202 /* confdefs.h.  */
30203 _ACEOF
30204 cat confdefs.h >>conftest.$ac_ext
30205 cat >>conftest.$ac_ext <<_ACEOF
30206 /* end confdefs.h.  */
30207 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30209 #define gethostbyname innocuous_gethostbyname
30210
30211 /* System header to define __stub macros and hopefully few prototypes,
30212     which can conflict with char gethostbyname (); below.
30213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30214     <limits.h> exists even on freestanding compilers.  */
30215
30216 #ifdef __STDC__
30217 # include <limits.h>
30218 #else
30219 # include <assert.h>
30220 #endif
30221
30222 #undef gethostbyname
30223
30224 /* Override any GCC internal prototype to avoid an error.
30225    Use char because int might match the return type of a GCC
30226    builtin and then its argument prototype would still apply.  */
30227 #ifdef __cplusplus
30228 extern "C"
30229 #endif
30230 char gethostbyname ();
30231 /* The GNU C library defines this for functions which it implements
30232     to always fail with ENOSYS.  Some functions are actually named
30233     something starting with __ and the normal name is an alias.  */
30234 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30235 choke me
30236 #endif
30237
30238 int
30239 main ()
30240 {
30241 return gethostbyname ();
30242   ;
30243   return 0;
30244 }
30245 _ACEOF
30246 rm -f conftest.$ac_objext conftest$ac_exeext
30247 if { (ac_try="$ac_link"
30248 case "(($ac_try" in
30249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250   *) ac_try_echo=$ac_try;;
30251 esac
30252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30253   (eval "$ac_link") 2>conftest.er1
30254   ac_status=$?
30255   grep -v '^ *+' conftest.er1 >conftest.err
30256   rm -f conftest.er1
30257   cat conftest.err >&5
30258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259   (exit $ac_status); } && {
30260          test -z "$ac_c_werror_flag" ||
30261          test ! -s conftest.err
30262        } && test -s conftest$ac_exeext &&
30263        $as_test_x conftest$ac_exeext; then
30264   ac_cv_func_gethostbyname=yes
30265 else
30266   echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30268
30269         ac_cv_func_gethostbyname=no
30270 fi
30271
30272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30273       conftest$ac_exeext conftest.$ac_ext
30274 fi
30275 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30276 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30277
30278     if test $ac_cv_func_gethostbyname = no; then
30279       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30280 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30281 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30282   echo $ECHO_N "(cached) $ECHO_C" >&6
30283 else
30284   ac_check_lib_save_LIBS=$LIBS
30285 LIBS="-lnsl  $LIBS"
30286 cat >conftest.$ac_ext <<_ACEOF
30287 /* confdefs.h.  */
30288 _ACEOF
30289 cat confdefs.h >>conftest.$ac_ext
30290 cat >>conftest.$ac_ext <<_ACEOF
30291 /* end confdefs.h.  */
30292
30293 /* Override any GCC internal prototype to avoid an error.
30294    Use char because int might match the return type of a GCC
30295    builtin and then its argument prototype would still apply.  */
30296 #ifdef __cplusplus
30297 extern "C"
30298 #endif
30299 char gethostbyname ();
30300 int
30301 main ()
30302 {
30303 return gethostbyname ();
30304   ;
30305   return 0;
30306 }
30307 _ACEOF
30308 rm -f conftest.$ac_objext conftest$ac_exeext
30309 if { (ac_try="$ac_link"
30310 case "(($ac_try" in
30311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30312   *) ac_try_echo=$ac_try;;
30313 esac
30314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30315   (eval "$ac_link") 2>conftest.er1
30316   ac_status=$?
30317   grep -v '^ *+' conftest.er1 >conftest.err
30318   rm -f conftest.er1
30319   cat conftest.err >&5
30320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321   (exit $ac_status); } && {
30322          test -z "$ac_c_werror_flag" ||
30323          test ! -s conftest.err
30324        } && test -s conftest$ac_exeext &&
30325        $as_test_x conftest$ac_exeext; then
30326   ac_cv_lib_nsl_gethostbyname=yes
30327 else
30328   echo "$as_me: failed program was:" >&5
30329 sed 's/^/| /' conftest.$ac_ext >&5
30330
30331         ac_cv_lib_nsl_gethostbyname=no
30332 fi
30333
30334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30335       conftest$ac_exeext conftest.$ac_ext
30336 LIBS=$ac_check_lib_save_LIBS
30337 fi
30338 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30339 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30340 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30341   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30342 fi
30343
30344       if test $ac_cv_lib_nsl_gethostbyname = no; then
30345         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30346 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30347 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30348   echo $ECHO_N "(cached) $ECHO_C" >&6
30349 else
30350   ac_check_lib_save_LIBS=$LIBS
30351 LIBS="-lbsd  $LIBS"
30352 cat >conftest.$ac_ext <<_ACEOF
30353 /* confdefs.h.  */
30354 _ACEOF
30355 cat confdefs.h >>conftest.$ac_ext
30356 cat >>conftest.$ac_ext <<_ACEOF
30357 /* end confdefs.h.  */
30358
30359 /* Override any GCC internal prototype to avoid an error.
30360    Use char because int might match the return type of a GCC
30361    builtin and then its argument prototype would still apply.  */
30362 #ifdef __cplusplus
30363 extern "C"
30364 #endif
30365 char gethostbyname ();
30366 int
30367 main ()
30368 {
30369 return gethostbyname ();
30370   ;
30371   return 0;
30372 }
30373 _ACEOF
30374 rm -f conftest.$ac_objext conftest$ac_exeext
30375 if { (ac_try="$ac_link"
30376 case "(($ac_try" in
30377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30378   *) ac_try_echo=$ac_try;;
30379 esac
30380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30381   (eval "$ac_link") 2>conftest.er1
30382   ac_status=$?
30383   grep -v '^ *+' conftest.er1 >conftest.err
30384   rm -f conftest.er1
30385   cat conftest.err >&5
30386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30387   (exit $ac_status); } && {
30388          test -z "$ac_c_werror_flag" ||
30389          test ! -s conftest.err
30390        } && test -s conftest$ac_exeext &&
30391        $as_test_x conftest$ac_exeext; then
30392   ac_cv_lib_bsd_gethostbyname=yes
30393 else
30394   echo "$as_me: failed program was:" >&5
30395 sed 's/^/| /' conftest.$ac_ext >&5
30396
30397         ac_cv_lib_bsd_gethostbyname=no
30398 fi
30399
30400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30401       conftest$ac_exeext conftest.$ac_ext
30402 LIBS=$ac_check_lib_save_LIBS
30403 fi
30404 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30405 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30406 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30407   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30408 fi
30409
30410       fi
30411     fi
30412
30413     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30414     # socket/setsockopt and other routines are undefined under SCO ODT
30415     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30416     # on later versions), says Simon Leinen: it contains gethostby*
30417     # variants that don't use the name server (or something).  -lsocket
30418     # must be given before -lnsl if both are needed.  We assume that
30419     # if connect needs -lnsl, so does gethostbyname.
30420     { echo "$as_me:$LINENO: checking for connect" >&5
30421 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30422 if test "${ac_cv_func_connect+set}" = set; then
30423   echo $ECHO_N "(cached) $ECHO_C" >&6
30424 else
30425   cat >conftest.$ac_ext <<_ACEOF
30426 /* confdefs.h.  */
30427 _ACEOF
30428 cat confdefs.h >>conftest.$ac_ext
30429 cat >>conftest.$ac_ext <<_ACEOF
30430 /* end confdefs.h.  */
30431 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30433 #define connect innocuous_connect
30434
30435 /* System header to define __stub macros and hopefully few prototypes,
30436     which can conflict with char connect (); below.
30437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30438     <limits.h> exists even on freestanding compilers.  */
30439
30440 #ifdef __STDC__
30441 # include <limits.h>
30442 #else
30443 # include <assert.h>
30444 #endif
30445
30446 #undef connect
30447
30448 /* Override any GCC internal prototype to avoid an error.
30449    Use char because int might match the return type of a GCC
30450    builtin and then its argument prototype would still apply.  */
30451 #ifdef __cplusplus
30452 extern "C"
30453 #endif
30454 char connect ();
30455 /* The GNU C library defines this for functions which it implements
30456     to always fail with ENOSYS.  Some functions are actually named
30457     something starting with __ and the normal name is an alias.  */
30458 #if defined __stub_connect || defined __stub___connect
30459 choke me
30460 #endif
30461
30462 int
30463 main ()
30464 {
30465 return connect ();
30466   ;
30467   return 0;
30468 }
30469 _ACEOF
30470 rm -f conftest.$ac_objext conftest$ac_exeext
30471 if { (ac_try="$ac_link"
30472 case "(($ac_try" in
30473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30474   *) ac_try_echo=$ac_try;;
30475 esac
30476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30477   (eval "$ac_link") 2>conftest.er1
30478   ac_status=$?
30479   grep -v '^ *+' conftest.er1 >conftest.err
30480   rm -f conftest.er1
30481   cat conftest.err >&5
30482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483   (exit $ac_status); } && {
30484          test -z "$ac_c_werror_flag" ||
30485          test ! -s conftest.err
30486        } && test -s conftest$ac_exeext &&
30487        $as_test_x conftest$ac_exeext; then
30488   ac_cv_func_connect=yes
30489 else
30490   echo "$as_me: failed program was:" >&5
30491 sed 's/^/| /' conftest.$ac_ext >&5
30492
30493         ac_cv_func_connect=no
30494 fi
30495
30496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30497       conftest$ac_exeext conftest.$ac_ext
30498 fi
30499 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30500 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30501
30502     if test $ac_cv_func_connect = no; then
30503       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30504 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30505 if test "${ac_cv_lib_socket_connect+set}" = set; then
30506   echo $ECHO_N "(cached) $ECHO_C" >&6
30507 else
30508   ac_check_lib_save_LIBS=$LIBS
30509 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30510 cat >conftest.$ac_ext <<_ACEOF
30511 /* confdefs.h.  */
30512 _ACEOF
30513 cat confdefs.h >>conftest.$ac_ext
30514 cat >>conftest.$ac_ext <<_ACEOF
30515 /* end confdefs.h.  */
30516
30517 /* Override any GCC internal prototype to avoid an error.
30518    Use char because int might match the return type of a GCC
30519    builtin and then its argument prototype would still apply.  */
30520 #ifdef __cplusplus
30521 extern "C"
30522 #endif
30523 char connect ();
30524 int
30525 main ()
30526 {
30527 return connect ();
30528   ;
30529   return 0;
30530 }
30531 _ACEOF
30532 rm -f conftest.$ac_objext conftest$ac_exeext
30533 if { (ac_try="$ac_link"
30534 case "(($ac_try" in
30535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536   *) ac_try_echo=$ac_try;;
30537 esac
30538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539   (eval "$ac_link") 2>conftest.er1
30540   ac_status=$?
30541   grep -v '^ *+' conftest.er1 >conftest.err
30542   rm -f conftest.er1
30543   cat conftest.err >&5
30544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545   (exit $ac_status); } && {
30546          test -z "$ac_c_werror_flag" ||
30547          test ! -s conftest.err
30548        } && test -s conftest$ac_exeext &&
30549        $as_test_x conftest$ac_exeext; then
30550   ac_cv_lib_socket_connect=yes
30551 else
30552   echo "$as_me: failed program was:" >&5
30553 sed 's/^/| /' conftest.$ac_ext >&5
30554
30555         ac_cv_lib_socket_connect=no
30556 fi
30557
30558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30559       conftest$ac_exeext conftest.$ac_ext
30560 LIBS=$ac_check_lib_save_LIBS
30561 fi
30562 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30563 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30564 if test $ac_cv_lib_socket_connect = yes; then
30565   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30566 fi
30567
30568     fi
30569
30570     # Guillermo Gomez says -lposix is necessary on A/UX.
30571     { echo "$as_me:$LINENO: checking for remove" >&5
30572 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30573 if test "${ac_cv_func_remove+set}" = set; then
30574   echo $ECHO_N "(cached) $ECHO_C" >&6
30575 else
30576   cat >conftest.$ac_ext <<_ACEOF
30577 /* confdefs.h.  */
30578 _ACEOF
30579 cat confdefs.h >>conftest.$ac_ext
30580 cat >>conftest.$ac_ext <<_ACEOF
30581 /* end confdefs.h.  */
30582 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30584 #define remove innocuous_remove
30585
30586 /* System header to define __stub macros and hopefully few prototypes,
30587     which can conflict with char remove (); below.
30588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30589     <limits.h> exists even on freestanding compilers.  */
30590
30591 #ifdef __STDC__
30592 # include <limits.h>
30593 #else
30594 # include <assert.h>
30595 #endif
30596
30597 #undef remove
30598
30599 /* Override any GCC internal prototype to avoid an error.
30600    Use char because int might match the return type of a GCC
30601    builtin and then its argument prototype would still apply.  */
30602 #ifdef __cplusplus
30603 extern "C"
30604 #endif
30605 char remove ();
30606 /* The GNU C library defines this for functions which it implements
30607     to always fail with ENOSYS.  Some functions are actually named
30608     something starting with __ and the normal name is an alias.  */
30609 #if defined __stub_remove || defined __stub___remove
30610 choke me
30611 #endif
30612
30613 int
30614 main ()
30615 {
30616 return remove ();
30617   ;
30618   return 0;
30619 }
30620 _ACEOF
30621 rm -f conftest.$ac_objext conftest$ac_exeext
30622 if { (ac_try="$ac_link"
30623 case "(($ac_try" in
30624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30625   *) ac_try_echo=$ac_try;;
30626 esac
30627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30628   (eval "$ac_link") 2>conftest.er1
30629   ac_status=$?
30630   grep -v '^ *+' conftest.er1 >conftest.err
30631   rm -f conftest.er1
30632   cat conftest.err >&5
30633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634   (exit $ac_status); } && {
30635          test -z "$ac_c_werror_flag" ||
30636          test ! -s conftest.err
30637        } && test -s conftest$ac_exeext &&
30638        $as_test_x conftest$ac_exeext; then
30639   ac_cv_func_remove=yes
30640 else
30641   echo "$as_me: failed program was:" >&5
30642 sed 's/^/| /' conftest.$ac_ext >&5
30643
30644         ac_cv_func_remove=no
30645 fi
30646
30647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30648       conftest$ac_exeext conftest.$ac_ext
30649 fi
30650 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30651 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30652
30653     if test $ac_cv_func_remove = no; then
30654       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30655 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30656 if test "${ac_cv_lib_posix_remove+set}" = set; then
30657   echo $ECHO_N "(cached) $ECHO_C" >&6
30658 else
30659   ac_check_lib_save_LIBS=$LIBS
30660 LIBS="-lposix  $LIBS"
30661 cat >conftest.$ac_ext <<_ACEOF
30662 /* confdefs.h.  */
30663 _ACEOF
30664 cat confdefs.h >>conftest.$ac_ext
30665 cat >>conftest.$ac_ext <<_ACEOF
30666 /* end confdefs.h.  */
30667
30668 /* Override any GCC internal prototype to avoid an error.
30669    Use char because int might match the return type of a GCC
30670    builtin and then its argument prototype would still apply.  */
30671 #ifdef __cplusplus
30672 extern "C"
30673 #endif
30674 char remove ();
30675 int
30676 main ()
30677 {
30678 return remove ();
30679   ;
30680   return 0;
30681 }
30682 _ACEOF
30683 rm -f conftest.$ac_objext conftest$ac_exeext
30684 if { (ac_try="$ac_link"
30685 case "(($ac_try" in
30686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30687   *) ac_try_echo=$ac_try;;
30688 esac
30689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30690   (eval "$ac_link") 2>conftest.er1
30691   ac_status=$?
30692   grep -v '^ *+' conftest.er1 >conftest.err
30693   rm -f conftest.er1
30694   cat conftest.err >&5
30695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696   (exit $ac_status); } && {
30697          test -z "$ac_c_werror_flag" ||
30698          test ! -s conftest.err
30699        } && test -s conftest$ac_exeext &&
30700        $as_test_x conftest$ac_exeext; then
30701   ac_cv_lib_posix_remove=yes
30702 else
30703   echo "$as_me: failed program was:" >&5
30704 sed 's/^/| /' conftest.$ac_ext >&5
30705
30706         ac_cv_lib_posix_remove=no
30707 fi
30708
30709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30710       conftest$ac_exeext conftest.$ac_ext
30711 LIBS=$ac_check_lib_save_LIBS
30712 fi
30713 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30714 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30715 if test $ac_cv_lib_posix_remove = yes; then
30716   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30717 fi
30718
30719     fi
30720
30721     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30722     { echo "$as_me:$LINENO: checking for shmat" >&5
30723 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30724 if test "${ac_cv_func_shmat+set}" = set; then
30725   echo $ECHO_N "(cached) $ECHO_C" >&6
30726 else
30727   cat >conftest.$ac_ext <<_ACEOF
30728 /* confdefs.h.  */
30729 _ACEOF
30730 cat confdefs.h >>conftest.$ac_ext
30731 cat >>conftest.$ac_ext <<_ACEOF
30732 /* end confdefs.h.  */
30733 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30735 #define shmat innocuous_shmat
30736
30737 /* System header to define __stub macros and hopefully few prototypes,
30738     which can conflict with char shmat (); below.
30739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30740     <limits.h> exists even on freestanding compilers.  */
30741
30742 #ifdef __STDC__
30743 # include <limits.h>
30744 #else
30745 # include <assert.h>
30746 #endif
30747
30748 #undef shmat
30749
30750 /* Override any GCC internal prototype to avoid an error.
30751    Use char because int might match the return type of a GCC
30752    builtin and then its argument prototype would still apply.  */
30753 #ifdef __cplusplus
30754 extern "C"
30755 #endif
30756 char shmat ();
30757 /* The GNU C library defines this for functions which it implements
30758     to always fail with ENOSYS.  Some functions are actually named
30759     something starting with __ and the normal name is an alias.  */
30760 #if defined __stub_shmat || defined __stub___shmat
30761 choke me
30762 #endif
30763
30764 int
30765 main ()
30766 {
30767 return shmat ();
30768   ;
30769   return 0;
30770 }
30771 _ACEOF
30772 rm -f conftest.$ac_objext conftest$ac_exeext
30773 if { (ac_try="$ac_link"
30774 case "(($ac_try" in
30775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30776   *) ac_try_echo=$ac_try;;
30777 esac
30778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30779   (eval "$ac_link") 2>conftest.er1
30780   ac_status=$?
30781   grep -v '^ *+' conftest.er1 >conftest.err
30782   rm -f conftest.er1
30783   cat conftest.err >&5
30784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785   (exit $ac_status); } && {
30786          test -z "$ac_c_werror_flag" ||
30787          test ! -s conftest.err
30788        } && test -s conftest$ac_exeext &&
30789        $as_test_x conftest$ac_exeext; then
30790   ac_cv_func_shmat=yes
30791 else
30792   echo "$as_me: failed program was:" >&5
30793 sed 's/^/| /' conftest.$ac_ext >&5
30794
30795         ac_cv_func_shmat=no
30796 fi
30797
30798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30799       conftest$ac_exeext conftest.$ac_ext
30800 fi
30801 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30802 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30803
30804     if test $ac_cv_func_shmat = no; then
30805       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30806 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30807 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30808   echo $ECHO_N "(cached) $ECHO_C" >&6
30809 else
30810   ac_check_lib_save_LIBS=$LIBS
30811 LIBS="-lipc  $LIBS"
30812 cat >conftest.$ac_ext <<_ACEOF
30813 /* confdefs.h.  */
30814 _ACEOF
30815 cat confdefs.h >>conftest.$ac_ext
30816 cat >>conftest.$ac_ext <<_ACEOF
30817 /* end confdefs.h.  */
30818
30819 /* Override any GCC internal prototype to avoid an error.
30820    Use char because int might match the return type of a GCC
30821    builtin and then its argument prototype would still apply.  */
30822 #ifdef __cplusplus
30823 extern "C"
30824 #endif
30825 char shmat ();
30826 int
30827 main ()
30828 {
30829 return shmat ();
30830   ;
30831   return 0;
30832 }
30833 _ACEOF
30834 rm -f conftest.$ac_objext conftest$ac_exeext
30835 if { (ac_try="$ac_link"
30836 case "(($ac_try" in
30837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30838   *) ac_try_echo=$ac_try;;
30839 esac
30840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30841   (eval "$ac_link") 2>conftest.er1
30842   ac_status=$?
30843   grep -v '^ *+' conftest.er1 >conftest.err
30844   rm -f conftest.er1
30845   cat conftest.err >&5
30846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847   (exit $ac_status); } && {
30848          test -z "$ac_c_werror_flag" ||
30849          test ! -s conftest.err
30850        } && test -s conftest$ac_exeext &&
30851        $as_test_x conftest$ac_exeext; then
30852   ac_cv_lib_ipc_shmat=yes
30853 else
30854   echo "$as_me: failed program was:" >&5
30855 sed 's/^/| /' conftest.$ac_ext >&5
30856
30857         ac_cv_lib_ipc_shmat=no
30858 fi
30859
30860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30861       conftest$ac_exeext conftest.$ac_ext
30862 LIBS=$ac_check_lib_save_LIBS
30863 fi
30864 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30865 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30866 if test $ac_cv_lib_ipc_shmat = yes; then
30867   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30868 fi
30869
30870     fi
30871   fi
30872
30873   # Check for libraries that X11R6 Xt/Xaw programs need.
30874   ac_save_LDFLAGS=$LDFLAGS
30875   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30876   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30877   # check for ICE first), but we must link in the order -lSM -lICE or
30878   # we get undefined symbols.  So assume we have SM if we have ICE.
30879   # These have to be linked with before -lX11, unlike the other
30880   # libraries we check for below, so use a different variable.
30881   # John Interrante, Karl Berry
30882   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30883 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30884 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30885   echo $ECHO_N "(cached) $ECHO_C" >&6
30886 else
30887   ac_check_lib_save_LIBS=$LIBS
30888 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30889 cat >conftest.$ac_ext <<_ACEOF
30890 /* confdefs.h.  */
30891 _ACEOF
30892 cat confdefs.h >>conftest.$ac_ext
30893 cat >>conftest.$ac_ext <<_ACEOF
30894 /* end confdefs.h.  */
30895
30896 /* Override any GCC internal prototype to avoid an error.
30897    Use char because int might match the return type of a GCC
30898    builtin and then its argument prototype would still apply.  */
30899 #ifdef __cplusplus
30900 extern "C"
30901 #endif
30902 char IceConnectionNumber ();
30903 int
30904 main ()
30905 {
30906 return IceConnectionNumber ();
30907   ;
30908   return 0;
30909 }
30910 _ACEOF
30911 rm -f conftest.$ac_objext conftest$ac_exeext
30912 if { (ac_try="$ac_link"
30913 case "(($ac_try" in
30914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30915   *) ac_try_echo=$ac_try;;
30916 esac
30917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30918   (eval "$ac_link") 2>conftest.er1
30919   ac_status=$?
30920   grep -v '^ *+' conftest.er1 >conftest.err
30921   rm -f conftest.er1
30922   cat conftest.err >&5
30923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924   (exit $ac_status); } && {
30925          test -z "$ac_c_werror_flag" ||
30926          test ! -s conftest.err
30927        } && test -s conftest$ac_exeext &&
30928        $as_test_x conftest$ac_exeext; then
30929   ac_cv_lib_ICE_IceConnectionNumber=yes
30930 else
30931   echo "$as_me: failed program was:" >&5
30932 sed 's/^/| /' conftest.$ac_ext >&5
30933
30934         ac_cv_lib_ICE_IceConnectionNumber=no
30935 fi
30936
30937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30938       conftest$ac_exeext conftest.$ac_ext
30939 LIBS=$ac_check_lib_save_LIBS
30940 fi
30941 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30942 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30943 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30944   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30945 fi
30946
30947   LDFLAGS=$ac_save_LDFLAGS
30948
30949 fi
30950
30951
30952
30953
30954
30955
30956
30957
30958
30959
30960
30961
30962
30963
30964
30965
30966
30967
30968
30969
30970
30971
30972
30973
30974
30975
30976
30977
30978
30979
30980
30981 for ac_header in \
30982    assert.h \
30983    fcntl.h \
30984    grp.h \
30985    pwd.h \
30986    libc.h \
30987    limits.h \
30988    stdarg.h \
30989    stdlib.h \
30990    stdint.h \
30991    string.h \
30992    strings.h \
30993    termios.h \
30994    termcap.h \
30995    term.h \
30996    unistd.h \
30997    sys/bitypes.h \
30998    sys/byteorder.h \
30999    sys/ioctl.h \
31000    sys/select.h \
31001    sys/socket.h \
31002    sys/sockio.h \
31003    sys/stat.h \
31004    sys/time.h \
31005    sys/types.h \
31006    arpa/nameser.h \
31007    mtio.h \
31008    sys/mtio.h \
31009    sys/tape.h \
31010    regex.h \
31011
31012 do
31013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31015   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31018   echo $ECHO_N "(cached) $ECHO_C" >&6
31019 fi
31020 ac_res=`eval echo '${'$as_ac_Header'}'`
31021                { echo "$as_me:$LINENO: result: $ac_res" >&5
31022 echo "${ECHO_T}$ac_res" >&6; }
31023 else
31024   # Is the header compilable?
31025 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31027 cat >conftest.$ac_ext <<_ACEOF
31028 /* confdefs.h.  */
31029 _ACEOF
31030 cat confdefs.h >>conftest.$ac_ext
31031 cat >>conftest.$ac_ext <<_ACEOF
31032 /* end confdefs.h.  */
31033 $ac_includes_default
31034 #include <$ac_header>
31035 _ACEOF
31036 rm -f conftest.$ac_objext
31037 if { (ac_try="$ac_compile"
31038 case "(($ac_try" in
31039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31040   *) ac_try_echo=$ac_try;;
31041 esac
31042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31043   (eval "$ac_compile") 2>conftest.er1
31044   ac_status=$?
31045   grep -v '^ *+' conftest.er1 >conftest.err
31046   rm -f conftest.er1
31047   cat conftest.err >&5
31048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31049   (exit $ac_status); } && {
31050          test -z "$ac_c_werror_flag" ||
31051          test ! -s conftest.err
31052        } && test -s conftest.$ac_objext; then
31053   ac_header_compiler=yes
31054 else
31055   echo "$as_me: failed program was:" >&5
31056 sed 's/^/| /' conftest.$ac_ext >&5
31057
31058         ac_header_compiler=no
31059 fi
31060
31061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31062 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31063 echo "${ECHO_T}$ac_header_compiler" >&6; }
31064
31065 # Is the header present?
31066 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31068 cat >conftest.$ac_ext <<_ACEOF
31069 /* confdefs.h.  */
31070 _ACEOF
31071 cat confdefs.h >>conftest.$ac_ext
31072 cat >>conftest.$ac_ext <<_ACEOF
31073 /* end confdefs.h.  */
31074 #include <$ac_header>
31075 _ACEOF
31076 if { (ac_try="$ac_cpp conftest.$ac_ext"
31077 case "(($ac_try" in
31078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31079   *) ac_try_echo=$ac_try;;
31080 esac
31081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31082   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31083   ac_status=$?
31084   grep -v '^ *+' conftest.er1 >conftest.err
31085   rm -f conftest.er1
31086   cat conftest.err >&5
31087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31088   (exit $ac_status); } >/dev/null && {
31089          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31090          test ! -s conftest.err
31091        }; then
31092   ac_header_preproc=yes
31093 else
31094   echo "$as_me: failed program was:" >&5
31095 sed 's/^/| /' conftest.$ac_ext >&5
31096
31097   ac_header_preproc=no
31098 fi
31099
31100 rm -f conftest.err conftest.$ac_ext
31101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31102 echo "${ECHO_T}$ac_header_preproc" >&6; }
31103
31104 # So?  What about this header?
31105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31106   yes:no: )
31107     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31111     ac_header_preproc=yes
31112     ;;
31113   no:yes:* )
31114     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31116     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31117 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31118     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31120     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31121 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31124     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31126
31127     ;;
31128 esac
31129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31132   echo $ECHO_N "(cached) $ECHO_C" >&6
31133 else
31134   eval "$as_ac_Header=\$ac_header_preproc"
31135 fi
31136 ac_res=`eval echo '${'$as_ac_Header'}'`
31137                { echo "$as_me:$LINENO: result: $ac_res" >&5
31138 echo "${ECHO_T}$ac_res" >&6; }
31139
31140 fi
31141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31142   cat >>confdefs.h <<_ACEOF
31143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31144 _ACEOF
31145
31146 fi
31147
31148 done
31149
31150 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31151 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31152 if test "${ac_cv_header_stdc+set}" = set; then
31153   echo $ECHO_N "(cached) $ECHO_C" >&6
31154 else
31155   cat >conftest.$ac_ext <<_ACEOF
31156 /* confdefs.h.  */
31157 _ACEOF
31158 cat confdefs.h >>conftest.$ac_ext
31159 cat >>conftest.$ac_ext <<_ACEOF
31160 /* end confdefs.h.  */
31161 #include <stdlib.h>
31162 #include <stdarg.h>
31163 #include <string.h>
31164 #include <float.h>
31165
31166 int
31167 main ()
31168 {
31169
31170   ;
31171   return 0;
31172 }
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_cv_header_stdc=yes
31192 else
31193   echo "$as_me: failed program was:" >&5
31194 sed 's/^/| /' conftest.$ac_ext >&5
31195
31196         ac_cv_header_stdc=no
31197 fi
31198
31199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31200
31201 if test $ac_cv_header_stdc = yes; then
31202   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31203   cat >conftest.$ac_ext <<_ACEOF
31204 /* confdefs.h.  */
31205 _ACEOF
31206 cat confdefs.h >>conftest.$ac_ext
31207 cat >>conftest.$ac_ext <<_ACEOF
31208 /* end confdefs.h.  */
31209 #include <string.h>
31210
31211 _ACEOF
31212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31213   $EGREP "memchr" >/dev/null 2>&1; then
31214   :
31215 else
31216   ac_cv_header_stdc=no
31217 fi
31218 rm -f conftest*
31219
31220 fi
31221
31222 if test $ac_cv_header_stdc = yes; then
31223   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31224   cat >conftest.$ac_ext <<_ACEOF
31225 /* confdefs.h.  */
31226 _ACEOF
31227 cat confdefs.h >>conftest.$ac_ext
31228 cat >>conftest.$ac_ext <<_ACEOF
31229 /* end confdefs.h.  */
31230 #include <stdlib.h>
31231
31232 _ACEOF
31233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31234   $EGREP "free" >/dev/null 2>&1; then
31235   :
31236 else
31237   ac_cv_header_stdc=no
31238 fi
31239 rm -f conftest*
31240
31241 fi
31242
31243 if test $ac_cv_header_stdc = yes; then
31244   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31245   if test "$cross_compiling" = yes; then
31246   :
31247 else
31248   cat >conftest.$ac_ext <<_ACEOF
31249 /* confdefs.h.  */
31250 _ACEOF
31251 cat confdefs.h >>conftest.$ac_ext
31252 cat >>conftest.$ac_ext <<_ACEOF
31253 /* end confdefs.h.  */
31254 #include <ctype.h>
31255 #include <stdlib.h>
31256 #if ((' ' & 0x0FF) == 0x020)
31257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31259 #else
31260 # define ISLOWER(c) \
31261                    (('a' <= (c) && (c) <= 'i') \
31262                      || ('j' <= (c) && (c) <= 'r') \
31263                      || ('s' <= (c) && (c) <= 'z'))
31264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31265 #endif
31266
31267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31268 int
31269 main ()
31270 {
31271   int i;
31272   for (i = 0; i < 256; i++)
31273     if (XOR (islower (i), ISLOWER (i))
31274         || toupper (i) != TOUPPER (i))
31275       return 2;
31276   return 0;
31277 }
31278 _ACEOF
31279 rm -f conftest$ac_exeext
31280 if { (ac_try="$ac_link"
31281 case "(($ac_try" in
31282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31283   *) ac_try_echo=$ac_try;;
31284 esac
31285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31286   (eval "$ac_link") 2>&5
31287   ac_status=$?
31288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31290   { (case "(($ac_try" in
31291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31292   *) ac_try_echo=$ac_try;;
31293 esac
31294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31295   (eval "$ac_try") 2>&5
31296   ac_status=$?
31297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298   (exit $ac_status); }; }; then
31299   :
31300 else
31301   echo "$as_me: program exited with status $ac_status" >&5
31302 echo "$as_me: failed program was:" >&5
31303 sed 's/^/| /' conftest.$ac_ext >&5
31304
31305 ( exit $ac_status )
31306 ac_cv_header_stdc=no
31307 fi
31308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31309 fi
31310
31311
31312 fi
31313 fi
31314 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31315 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31316 if test $ac_cv_header_stdc = yes; then
31317
31318 cat >>confdefs.h <<\_ACEOF
31319 #define STDC_HEADERS 1
31320 _ACEOF
31321
31322 fi
31323
31324 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31325 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31326 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31327   echo $ECHO_N "(cached) $ECHO_C" >&6
31328 else
31329   cat >conftest.$ac_ext <<_ACEOF
31330 /* confdefs.h.  */
31331 _ACEOF
31332 cat confdefs.h >>conftest.$ac_ext
31333 cat >>conftest.$ac_ext <<_ACEOF
31334 /* end confdefs.h.  */
31335 #include <sys/types.h>
31336 int
31337 main ()
31338 {
31339 return makedev(0, 0);
31340   ;
31341   return 0;
31342 }
31343 _ACEOF
31344 rm -f conftest.$ac_objext conftest$ac_exeext
31345 if { (ac_try="$ac_link"
31346 case "(($ac_try" in
31347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31348   *) ac_try_echo=$ac_try;;
31349 esac
31350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31351   (eval "$ac_link") 2>conftest.er1
31352   ac_status=$?
31353   grep -v '^ *+' conftest.er1 >conftest.err
31354   rm -f conftest.er1
31355   cat conftest.err >&5
31356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357   (exit $ac_status); } && {
31358          test -z "$ac_c_werror_flag" ||
31359          test ! -s conftest.err
31360        } && test -s conftest$ac_exeext &&
31361        $as_test_x conftest$ac_exeext; then
31362   ac_cv_header_sys_types_h_makedev=yes
31363 else
31364   echo "$as_me: failed program was:" >&5
31365 sed 's/^/| /' conftest.$ac_ext >&5
31366
31367         ac_cv_header_sys_types_h_makedev=no
31368 fi
31369
31370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31371       conftest$ac_exeext conftest.$ac_ext
31372
31373 fi
31374 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31375 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31376
31377 if test $ac_cv_header_sys_types_h_makedev = no; then
31378 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31379   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31380 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31381 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31382   echo $ECHO_N "(cached) $ECHO_C" >&6
31383 fi
31384 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31385 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31386 else
31387   # Is the header compilable?
31388 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31389 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31390 cat >conftest.$ac_ext <<_ACEOF
31391 /* confdefs.h.  */
31392 _ACEOF
31393 cat confdefs.h >>conftest.$ac_ext
31394 cat >>conftest.$ac_ext <<_ACEOF
31395 /* end confdefs.h.  */
31396 $ac_includes_default
31397 #include <sys/mkdev.h>
31398 _ACEOF
31399 rm -f conftest.$ac_objext
31400 if { (ac_try="$ac_compile"
31401 case "(($ac_try" in
31402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31403   *) ac_try_echo=$ac_try;;
31404 esac
31405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31406   (eval "$ac_compile") 2>conftest.er1
31407   ac_status=$?
31408   grep -v '^ *+' conftest.er1 >conftest.err
31409   rm -f conftest.er1
31410   cat conftest.err >&5
31411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412   (exit $ac_status); } && {
31413          test -z "$ac_c_werror_flag" ||
31414          test ! -s conftest.err
31415        } && test -s conftest.$ac_objext; then
31416   ac_header_compiler=yes
31417 else
31418   echo "$as_me: failed program was:" >&5
31419 sed 's/^/| /' conftest.$ac_ext >&5
31420
31421         ac_header_compiler=no
31422 fi
31423
31424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31426 echo "${ECHO_T}$ac_header_compiler" >&6; }
31427
31428 # Is the header present?
31429 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31430 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31431 cat >conftest.$ac_ext <<_ACEOF
31432 /* confdefs.h.  */
31433 _ACEOF
31434 cat confdefs.h >>conftest.$ac_ext
31435 cat >>conftest.$ac_ext <<_ACEOF
31436 /* end confdefs.h.  */
31437 #include <sys/mkdev.h>
31438 _ACEOF
31439 if { (ac_try="$ac_cpp conftest.$ac_ext"
31440 case "(($ac_try" in
31441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31442   *) ac_try_echo=$ac_try;;
31443 esac
31444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31446   ac_status=$?
31447   grep -v '^ *+' conftest.er1 >conftest.err
31448   rm -f conftest.er1
31449   cat conftest.err >&5
31450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451   (exit $ac_status); } >/dev/null && {
31452          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31453          test ! -s conftest.err
31454        }; then
31455   ac_header_preproc=yes
31456 else
31457   echo "$as_me: failed program was:" >&5
31458 sed 's/^/| /' conftest.$ac_ext >&5
31459
31460   ac_header_preproc=no
31461 fi
31462
31463 rm -f conftest.err conftest.$ac_ext
31464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31465 echo "${ECHO_T}$ac_header_preproc" >&6; }
31466
31467 # So?  What about this header?
31468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31469   yes:no: )
31470     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31471 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31472     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31473 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31474     ac_header_preproc=yes
31475     ;;
31476   no:yes:* )
31477     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31478 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31479     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31480 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31481     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31482 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31483     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31484 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31485     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31486 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31487     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31488 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31489
31490     ;;
31491 esac
31492 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31493 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31494 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31495   echo $ECHO_N "(cached) $ECHO_C" >&6
31496 else
31497   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31498 fi
31499 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31500 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31501
31502 fi
31503 if test $ac_cv_header_sys_mkdev_h = yes; then
31504
31505 cat >>confdefs.h <<\_ACEOF
31506 #define MAJOR_IN_MKDEV 1
31507 _ACEOF
31508
31509 fi
31510
31511
31512
31513   if test $ac_cv_header_sys_mkdev_h = no; then
31514     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31515   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31516 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31517 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31518   echo $ECHO_N "(cached) $ECHO_C" >&6
31519 fi
31520 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31521 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31522 else
31523   # Is the header compilable?
31524 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31525 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31526 cat >conftest.$ac_ext <<_ACEOF
31527 /* confdefs.h.  */
31528 _ACEOF
31529 cat confdefs.h >>conftest.$ac_ext
31530 cat >>conftest.$ac_ext <<_ACEOF
31531 /* end confdefs.h.  */
31532 $ac_includes_default
31533 #include <sys/sysmacros.h>
31534 _ACEOF
31535 rm -f conftest.$ac_objext
31536 if { (ac_try="$ac_compile"
31537 case "(($ac_try" in
31538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31539   *) ac_try_echo=$ac_try;;
31540 esac
31541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31542   (eval "$ac_compile") 2>conftest.er1
31543   ac_status=$?
31544   grep -v '^ *+' conftest.er1 >conftest.err
31545   rm -f conftest.er1
31546   cat conftest.err >&5
31547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548   (exit $ac_status); } && {
31549          test -z "$ac_c_werror_flag" ||
31550          test ! -s conftest.err
31551        } && test -s conftest.$ac_objext; then
31552   ac_header_compiler=yes
31553 else
31554   echo "$as_me: failed program was:" >&5
31555 sed 's/^/| /' conftest.$ac_ext >&5
31556
31557         ac_header_compiler=no
31558 fi
31559
31560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31562 echo "${ECHO_T}$ac_header_compiler" >&6; }
31563
31564 # Is the header present?
31565 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31566 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31567 cat >conftest.$ac_ext <<_ACEOF
31568 /* confdefs.h.  */
31569 _ACEOF
31570 cat confdefs.h >>conftest.$ac_ext
31571 cat >>conftest.$ac_ext <<_ACEOF
31572 /* end confdefs.h.  */
31573 #include <sys/sysmacros.h>
31574 _ACEOF
31575 if { (ac_try="$ac_cpp conftest.$ac_ext"
31576 case "(($ac_try" in
31577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31578   *) ac_try_echo=$ac_try;;
31579 esac
31580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31582   ac_status=$?
31583   grep -v '^ *+' conftest.er1 >conftest.err
31584   rm -f conftest.er1
31585   cat conftest.err >&5
31586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587   (exit $ac_status); } >/dev/null && {
31588          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31589          test ! -s conftest.err
31590        }; then
31591   ac_header_preproc=yes
31592 else
31593   echo "$as_me: failed program was:" >&5
31594 sed 's/^/| /' conftest.$ac_ext >&5
31595
31596   ac_header_preproc=no
31597 fi
31598
31599 rm -f conftest.err conftest.$ac_ext
31600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31601 echo "${ECHO_T}$ac_header_preproc" >&6; }
31602
31603 # So?  What about this header?
31604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31605   yes:no: )
31606     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31607 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31608     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31609 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31610     ac_header_preproc=yes
31611     ;;
31612   no:yes:* )
31613     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31614 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31615     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31616 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31617     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31618 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31619     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31620 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31621     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31622 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31623     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31624 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31625
31626     ;;
31627 esac
31628 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31629 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31630 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31631   echo $ECHO_N "(cached) $ECHO_C" >&6
31632 else
31633   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31634 fi
31635 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31636 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31637
31638 fi
31639 if test $ac_cv_header_sys_sysmacros_h = yes; then
31640
31641 cat >>confdefs.h <<\_ACEOF
31642 #define MAJOR_IN_SYSMACROS 1
31643 _ACEOF
31644
31645 fi
31646
31647
31648   fi
31649 fi
31650
31651
31652
31653
31654
31655
31656 ac_header_dirent=no
31657 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31658   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31659 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31660 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31662   echo $ECHO_N "(cached) $ECHO_C" >&6
31663 else
31664   cat >conftest.$ac_ext <<_ACEOF
31665 /* confdefs.h.  */
31666 _ACEOF
31667 cat confdefs.h >>conftest.$ac_ext
31668 cat >>conftest.$ac_ext <<_ACEOF
31669 /* end confdefs.h.  */
31670 #include <sys/types.h>
31671 #include <$ac_hdr>
31672
31673 int
31674 main ()
31675 {
31676 if ((DIR *) 0)
31677 return 0;
31678   ;
31679   return 0;
31680 }
31681 _ACEOF
31682 rm -f conftest.$ac_objext
31683 if { (ac_try="$ac_compile"
31684 case "(($ac_try" in
31685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31686   *) ac_try_echo=$ac_try;;
31687 esac
31688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31689   (eval "$ac_compile") 2>conftest.er1
31690   ac_status=$?
31691   grep -v '^ *+' conftest.er1 >conftest.err
31692   rm -f conftest.er1
31693   cat conftest.err >&5
31694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695   (exit $ac_status); } && {
31696          test -z "$ac_c_werror_flag" ||
31697          test ! -s conftest.err
31698        } && test -s conftest.$ac_objext; then
31699   eval "$as_ac_Header=yes"
31700 else
31701   echo "$as_me: failed program was:" >&5
31702 sed 's/^/| /' conftest.$ac_ext >&5
31703
31704         eval "$as_ac_Header=no"
31705 fi
31706
31707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31708 fi
31709 ac_res=`eval echo '${'$as_ac_Header'}'`
31710                { echo "$as_me:$LINENO: result: $ac_res" >&5
31711 echo "${ECHO_T}$ac_res" >&6; }
31712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31713   cat >>confdefs.h <<_ACEOF
31714 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31715 _ACEOF
31716
31717 ac_header_dirent=$ac_hdr; break
31718 fi
31719
31720 done
31721 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31722 if test $ac_header_dirent = dirent.h; then
31723   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31724 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31725 if test "${ac_cv_search_opendir+set}" = set; then
31726   echo $ECHO_N "(cached) $ECHO_C" >&6
31727 else
31728   ac_func_search_save_LIBS=$LIBS
31729 cat >conftest.$ac_ext <<_ACEOF
31730 /* confdefs.h.  */
31731 _ACEOF
31732 cat confdefs.h >>conftest.$ac_ext
31733 cat >>conftest.$ac_ext <<_ACEOF
31734 /* end confdefs.h.  */
31735
31736 /* Override any GCC internal prototype to avoid an error.
31737    Use char because int might match the return type of a GCC
31738    builtin and then its argument prototype would still apply.  */
31739 #ifdef __cplusplus
31740 extern "C"
31741 #endif
31742 char opendir ();
31743 int
31744 main ()
31745 {
31746 return opendir ();
31747   ;
31748   return 0;
31749 }
31750 _ACEOF
31751 for ac_lib in '' dir; do
31752   if test -z "$ac_lib"; then
31753     ac_res="none required"
31754   else
31755     ac_res=-l$ac_lib
31756     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31757   fi
31758   rm -f conftest.$ac_objext conftest$ac_exeext
31759 if { (ac_try="$ac_link"
31760 case "(($ac_try" in
31761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31762   *) ac_try_echo=$ac_try;;
31763 esac
31764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31765   (eval "$ac_link") 2>conftest.er1
31766   ac_status=$?
31767   grep -v '^ *+' conftest.er1 >conftest.err
31768   rm -f conftest.er1
31769   cat conftest.err >&5
31770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771   (exit $ac_status); } && {
31772          test -z "$ac_c_werror_flag" ||
31773          test ! -s conftest.err
31774        } && test -s conftest$ac_exeext &&
31775        $as_test_x conftest$ac_exeext; then
31776   ac_cv_search_opendir=$ac_res
31777 else
31778   echo "$as_me: failed program was:" >&5
31779 sed 's/^/| /' conftest.$ac_ext >&5
31780
31781
31782 fi
31783
31784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31785       conftest$ac_exeext
31786   if test "${ac_cv_search_opendir+set}" = set; then
31787   break
31788 fi
31789 done
31790 if test "${ac_cv_search_opendir+set}" = set; then
31791   :
31792 else
31793   ac_cv_search_opendir=no
31794 fi
31795 rm conftest.$ac_ext
31796 LIBS=$ac_func_search_save_LIBS
31797 fi
31798 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31799 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31800 ac_res=$ac_cv_search_opendir
31801 if test "$ac_res" != no; then
31802   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31803
31804 fi
31805
31806 else
31807   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31808 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31809 if test "${ac_cv_search_opendir+set}" = set; then
31810   echo $ECHO_N "(cached) $ECHO_C" >&6
31811 else
31812   ac_func_search_save_LIBS=$LIBS
31813 cat >conftest.$ac_ext <<_ACEOF
31814 /* confdefs.h.  */
31815 _ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h.  */
31819
31820 /* Override any GCC internal prototype to avoid an error.
31821    Use char because int might match the return type of a GCC
31822    builtin and then its argument prototype would still apply.  */
31823 #ifdef __cplusplus
31824 extern "C"
31825 #endif
31826 char opendir ();
31827 int
31828 main ()
31829 {
31830 return opendir ();
31831   ;
31832   return 0;
31833 }
31834 _ACEOF
31835 for ac_lib in '' x; do
31836   if test -z "$ac_lib"; then
31837     ac_res="none required"
31838   else
31839     ac_res=-l$ac_lib
31840     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31841   fi
31842   rm -f conftest.$ac_objext conftest$ac_exeext
31843 if { (ac_try="$ac_link"
31844 case "(($ac_try" in
31845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31846   *) ac_try_echo=$ac_try;;
31847 esac
31848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31849   (eval "$ac_link") 2>conftest.er1
31850   ac_status=$?
31851   grep -v '^ *+' conftest.er1 >conftest.err
31852   rm -f conftest.er1
31853   cat conftest.err >&5
31854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855   (exit $ac_status); } && {
31856          test -z "$ac_c_werror_flag" ||
31857          test ! -s conftest.err
31858        } && test -s conftest$ac_exeext &&
31859        $as_test_x conftest$ac_exeext; then
31860   ac_cv_search_opendir=$ac_res
31861 else
31862   echo "$as_me: failed program was:" >&5
31863 sed 's/^/| /' conftest.$ac_ext >&5
31864
31865
31866 fi
31867
31868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31869       conftest$ac_exeext
31870   if test "${ac_cv_search_opendir+set}" = set; then
31871   break
31872 fi
31873 done
31874 if test "${ac_cv_search_opendir+set}" = set; then
31875   :
31876 else
31877   ac_cv_search_opendir=no
31878 fi
31879 rm conftest.$ac_ext
31880 LIBS=$ac_func_search_save_LIBS
31881 fi
31882 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31883 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31884 ac_res=$ac_cv_search_opendir
31885 if test "$ac_res" != no; then
31886   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31887
31888 fi
31889
31890 fi
31891
31892 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31893 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31894 if test "${ac_cv_header_stat_broken+set}" = set; then
31895   echo $ECHO_N "(cached) $ECHO_C" >&6
31896 else
31897   cat >conftest.$ac_ext <<_ACEOF
31898 /* confdefs.h.  */
31899 _ACEOF
31900 cat confdefs.h >>conftest.$ac_ext
31901 cat >>conftest.$ac_ext <<_ACEOF
31902 /* end confdefs.h.  */
31903 #include <sys/types.h>
31904 #include <sys/stat.h>
31905
31906 #if defined S_ISBLK && defined S_IFDIR
31907 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31908 #endif
31909
31910 #if defined S_ISBLK && defined S_IFCHR
31911 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31912 #endif
31913
31914 #if defined S_ISLNK && defined S_IFREG
31915 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31916 #endif
31917
31918 #if defined S_ISSOCK && defined S_IFREG
31919 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31920 #endif
31921
31922 _ACEOF
31923 rm -f conftest.$ac_objext
31924 if { (ac_try="$ac_compile"
31925 case "(($ac_try" in
31926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31927   *) ac_try_echo=$ac_try;;
31928 esac
31929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31930   (eval "$ac_compile") 2>conftest.er1
31931   ac_status=$?
31932   grep -v '^ *+' conftest.er1 >conftest.err
31933   rm -f conftest.er1
31934   cat conftest.err >&5
31935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936   (exit $ac_status); } && {
31937          test -z "$ac_c_werror_flag" ||
31938          test ! -s conftest.err
31939        } && test -s conftest.$ac_objext; then
31940   ac_cv_header_stat_broken=no
31941 else
31942   echo "$as_me: failed program was:" >&5
31943 sed 's/^/| /' conftest.$ac_ext >&5
31944
31945         ac_cv_header_stat_broken=yes
31946 fi
31947
31948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31949 fi
31950 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31951 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31952 if test $ac_cv_header_stat_broken = yes; then
31953
31954 cat >>confdefs.h <<\_ACEOF
31955 #define STAT_MACROS_BROKEN 1
31956 _ACEOF
31957
31958 fi
31959
31960 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31961 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31962 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31963   echo $ECHO_N "(cached) $ECHO_C" >&6
31964 else
31965   cat >conftest.$ac_ext <<_ACEOF
31966 /* confdefs.h.  */
31967 _ACEOF
31968 cat confdefs.h >>conftest.$ac_ext
31969 cat >>conftest.$ac_ext <<_ACEOF
31970 /* end confdefs.h.  */
31971 #include <sys/types.h>
31972 #include <sys/wait.h>
31973 #ifndef WEXITSTATUS
31974 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31975 #endif
31976 #ifndef WIFEXITED
31977 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31978 #endif
31979
31980 int
31981 main ()
31982 {
31983   int s;
31984   wait (&s);
31985   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31986   ;
31987   return 0;
31988 }
31989 _ACEOF
31990 rm -f conftest.$ac_objext
31991 if { (ac_try="$ac_compile"
31992 case "(($ac_try" in
31993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31994   *) ac_try_echo=$ac_try;;
31995 esac
31996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31997   (eval "$ac_compile") 2>conftest.er1
31998   ac_status=$?
31999   grep -v '^ *+' conftest.er1 >conftest.err
32000   rm -f conftest.er1
32001   cat conftest.err >&5
32002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003   (exit $ac_status); } && {
32004          test -z "$ac_c_werror_flag" ||
32005          test ! -s conftest.err
32006        } && test -s conftest.$ac_objext; then
32007   ac_cv_header_sys_wait_h=yes
32008 else
32009   echo "$as_me: failed program was:" >&5
32010 sed 's/^/| /' conftest.$ac_ext >&5
32011
32012         ac_cv_header_sys_wait_h=no
32013 fi
32014
32015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32016 fi
32017 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
32018 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
32019 if test $ac_cv_header_sys_wait_h = yes; then
32020
32021 cat >>confdefs.h <<\_ACEOF
32022 #define HAVE_SYS_WAIT_H 1
32023 _ACEOF
32024
32025 fi
32026
32027 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32028 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32029 if test "${ac_cv_header_time+set}" = set; then
32030   echo $ECHO_N "(cached) $ECHO_C" >&6
32031 else
32032   cat >conftest.$ac_ext <<_ACEOF
32033 /* confdefs.h.  */
32034 _ACEOF
32035 cat confdefs.h >>conftest.$ac_ext
32036 cat >>conftest.$ac_ext <<_ACEOF
32037 /* end confdefs.h.  */
32038 #include <sys/types.h>
32039 #include <sys/time.h>
32040 #include <time.h>
32041
32042 int
32043 main ()
32044 {
32045 if ((struct tm *) 0)
32046 return 0;
32047   ;
32048   return 0;
32049 }
32050 _ACEOF
32051 rm -f conftest.$ac_objext
32052 if { (ac_try="$ac_compile"
32053 case "(($ac_try" in
32054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32055   *) ac_try_echo=$ac_try;;
32056 esac
32057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32058   (eval "$ac_compile") 2>conftest.er1
32059   ac_status=$?
32060   grep -v '^ *+' conftest.er1 >conftest.err
32061   rm -f conftest.er1
32062   cat conftest.err >&5
32063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32064   (exit $ac_status); } && {
32065          test -z "$ac_c_werror_flag" ||
32066          test ! -s conftest.err
32067        } && test -s conftest.$ac_objext; then
32068   ac_cv_header_time=yes
32069 else
32070   echo "$as_me: failed program was:" >&5
32071 sed 's/^/| /' conftest.$ac_ext >&5
32072
32073         ac_cv_header_time=no
32074 fi
32075
32076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32077 fi
32078 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32079 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32080 if test $ac_cv_header_time = yes; then
32081
32082 cat >>confdefs.h <<\_ACEOF
32083 #define TIME_WITH_SYS_TIME 1
32084 _ACEOF
32085
32086 fi
32087
32088 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32089 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32090 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32091   echo $ECHO_N "(cached) $ECHO_C" >&6
32092 else
32093   cat >conftest.$ac_ext <<_ACEOF
32094 /* confdefs.h.  */
32095 _ACEOF
32096 cat confdefs.h >>conftest.$ac_ext
32097 cat >>conftest.$ac_ext <<_ACEOF
32098 /* end confdefs.h.  */
32099 $ac_includes_default
32100 int
32101 main ()
32102 {
32103 static struct stat ac_aggr;
32104 if (ac_aggr.st_blksize)
32105 return 0;
32106   ;
32107   return 0;
32108 }
32109 _ACEOF
32110 rm -f conftest.$ac_objext
32111 if { (ac_try="$ac_compile"
32112 case "(($ac_try" in
32113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32114   *) ac_try_echo=$ac_try;;
32115 esac
32116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32117   (eval "$ac_compile") 2>conftest.er1
32118   ac_status=$?
32119   grep -v '^ *+' conftest.er1 >conftest.err
32120   rm -f conftest.er1
32121   cat conftest.err >&5
32122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123   (exit $ac_status); } && {
32124          test -z "$ac_c_werror_flag" ||
32125          test ! -s conftest.err
32126        } && test -s conftest.$ac_objext; then
32127   ac_cv_member_struct_stat_st_blksize=yes
32128 else
32129   echo "$as_me: failed program was:" >&5
32130 sed 's/^/| /' conftest.$ac_ext >&5
32131
32132         cat >conftest.$ac_ext <<_ACEOF
32133 /* confdefs.h.  */
32134 _ACEOF
32135 cat confdefs.h >>conftest.$ac_ext
32136 cat >>conftest.$ac_ext <<_ACEOF
32137 /* end confdefs.h.  */
32138 $ac_includes_default
32139 int
32140 main ()
32141 {
32142 static struct stat ac_aggr;
32143 if (sizeof ac_aggr.st_blksize)
32144 return 0;
32145   ;
32146   return 0;
32147 }
32148 _ACEOF
32149 rm -f conftest.$ac_objext
32150 if { (ac_try="$ac_compile"
32151 case "(($ac_try" in
32152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32153   *) ac_try_echo=$ac_try;;
32154 esac
32155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32156   (eval "$ac_compile") 2>conftest.er1
32157   ac_status=$?
32158   grep -v '^ *+' conftest.er1 >conftest.err
32159   rm -f conftest.er1
32160   cat conftest.err >&5
32161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162   (exit $ac_status); } && {
32163          test -z "$ac_c_werror_flag" ||
32164          test ! -s conftest.err
32165        } && test -s conftest.$ac_objext; then
32166   ac_cv_member_struct_stat_st_blksize=yes
32167 else
32168   echo "$as_me: failed program was:" >&5
32169 sed 's/^/| /' conftest.$ac_ext >&5
32170
32171         ac_cv_member_struct_stat_st_blksize=no
32172 fi
32173
32174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32175 fi
32176
32177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32178 fi
32179 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32180 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32181 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32182
32183 cat >>confdefs.h <<_ACEOF
32184 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32185 _ACEOF
32186
32187
32188 cat >>confdefs.h <<\_ACEOF
32189 #define HAVE_ST_BLKSIZE 1
32190 _ACEOF
32191
32192 fi
32193
32194
32195 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32196 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32197 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32198   echo $ECHO_N "(cached) $ECHO_C" >&6
32199 else
32200   cat >conftest.$ac_ext <<_ACEOF
32201 /* confdefs.h.  */
32202 _ACEOF
32203 cat confdefs.h >>conftest.$ac_ext
32204 cat >>conftest.$ac_ext <<_ACEOF
32205 /* end confdefs.h.  */
32206 $ac_includes_default
32207 int
32208 main ()
32209 {
32210 static struct stat ac_aggr;
32211 if (ac_aggr.st_blocks)
32212 return 0;
32213   ;
32214   return 0;
32215 }
32216 _ACEOF
32217 rm -f conftest.$ac_objext
32218 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
32234   ac_cv_member_struct_stat_st_blocks=yes
32235 else
32236   echo "$as_me: failed program was:" >&5
32237 sed 's/^/| /' conftest.$ac_ext >&5
32238
32239         cat >conftest.$ac_ext <<_ACEOF
32240 /* confdefs.h.  */
32241 _ACEOF
32242 cat confdefs.h >>conftest.$ac_ext
32243 cat >>conftest.$ac_ext <<_ACEOF
32244 /* end confdefs.h.  */
32245 $ac_includes_default
32246 int
32247 main ()
32248 {
32249 static struct stat ac_aggr;
32250 if (sizeof ac_aggr.st_blocks)
32251 return 0;
32252   ;
32253   return 0;
32254 }
32255 _ACEOF
32256 rm -f conftest.$ac_objext
32257 if { (ac_try="$ac_compile"
32258 case "(($ac_try" in
32259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32260   *) ac_try_echo=$ac_try;;
32261 esac
32262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32263   (eval "$ac_compile") 2>conftest.er1
32264   ac_status=$?
32265   grep -v '^ *+' conftest.er1 >conftest.err
32266   rm -f conftest.er1
32267   cat conftest.err >&5
32268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269   (exit $ac_status); } && {
32270          test -z "$ac_c_werror_flag" ||
32271          test ! -s conftest.err
32272        } && test -s conftest.$ac_objext; then
32273   ac_cv_member_struct_stat_st_blocks=yes
32274 else
32275   echo "$as_me: failed program was:" >&5
32276 sed 's/^/| /' conftest.$ac_ext >&5
32277
32278         ac_cv_member_struct_stat_st_blocks=no
32279 fi
32280
32281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32282 fi
32283
32284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32285 fi
32286 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32287 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32288 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32289
32290 cat >>confdefs.h <<_ACEOF
32291 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32292 _ACEOF
32293
32294
32295 cat >>confdefs.h <<\_ACEOF
32296 #define HAVE_ST_BLOCKS 1
32297 _ACEOF
32298
32299 else
32300   case " $LIBOBJS " in
32301   *" fileblocks.$ac_objext "* ) ;;
32302   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32303  ;;
32304 esac
32305
32306 fi
32307
32308
32309 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32310 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32311 if test "${ac_cv_struct_tm+set}" = set; then
32312   echo $ECHO_N "(cached) $ECHO_C" >&6
32313 else
32314   cat >conftest.$ac_ext <<_ACEOF
32315 /* confdefs.h.  */
32316 _ACEOF
32317 cat confdefs.h >>conftest.$ac_ext
32318 cat >>conftest.$ac_ext <<_ACEOF
32319 /* end confdefs.h.  */
32320 #include <sys/types.h>
32321 #include <time.h>
32322
32323 int
32324 main ()
32325 {
32326 struct tm tm;
32327                                      int *p = &tm.tm_sec;
32328                                      return !p;
32329   ;
32330   return 0;
32331 }
32332 _ACEOF
32333 rm -f conftest.$ac_objext
32334 if { (ac_try="$ac_compile"
32335 case "(($ac_try" in
32336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32337   *) ac_try_echo=$ac_try;;
32338 esac
32339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32340   (eval "$ac_compile") 2>conftest.er1
32341   ac_status=$?
32342   grep -v '^ *+' conftest.er1 >conftest.err
32343   rm -f conftest.er1
32344   cat conftest.err >&5
32345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346   (exit $ac_status); } && {
32347          test -z "$ac_c_werror_flag" ||
32348          test ! -s conftest.err
32349        } && test -s conftest.$ac_objext; then
32350   ac_cv_struct_tm=time.h
32351 else
32352   echo "$as_me: failed program was:" >&5
32353 sed 's/^/| /' conftest.$ac_ext >&5
32354
32355         ac_cv_struct_tm=sys/time.h
32356 fi
32357
32358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32359 fi
32360 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32361 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32362 if test $ac_cv_struct_tm = sys/time.h; then
32363
32364 cat >>confdefs.h <<\_ACEOF
32365 #define TM_IN_SYS_TIME 1
32366 _ACEOF
32367
32368 fi
32369
32370 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32371 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32372 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32373   echo $ECHO_N "(cached) $ECHO_C" >&6
32374 else
32375   cat >conftest.$ac_ext <<_ACEOF
32376 /* confdefs.h.  */
32377 _ACEOF
32378 cat confdefs.h >>conftest.$ac_ext
32379 cat >>conftest.$ac_ext <<_ACEOF
32380 /* end confdefs.h.  */
32381 #include <sys/types.h>
32382 #include <$ac_cv_struct_tm>
32383
32384
32385 int
32386 main ()
32387 {
32388 static struct tm ac_aggr;
32389 if (ac_aggr.tm_zone)
32390 return 0;
32391   ;
32392   return 0;
32393 }
32394 _ACEOF
32395 rm -f conftest.$ac_objext
32396 if { (ac_try="$ac_compile"
32397 case "(($ac_try" in
32398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32399   *) ac_try_echo=$ac_try;;
32400 esac
32401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32402   (eval "$ac_compile") 2>conftest.er1
32403   ac_status=$?
32404   grep -v '^ *+' conftest.er1 >conftest.err
32405   rm -f conftest.er1
32406   cat conftest.err >&5
32407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32408   (exit $ac_status); } && {
32409          test -z "$ac_c_werror_flag" ||
32410          test ! -s conftest.err
32411        } && test -s conftest.$ac_objext; then
32412   ac_cv_member_struct_tm_tm_zone=yes
32413 else
32414   echo "$as_me: failed program was:" >&5
32415 sed 's/^/| /' conftest.$ac_ext >&5
32416
32417         cat >conftest.$ac_ext <<_ACEOF
32418 /* confdefs.h.  */
32419 _ACEOF
32420 cat confdefs.h >>conftest.$ac_ext
32421 cat >>conftest.$ac_ext <<_ACEOF
32422 /* end confdefs.h.  */
32423 #include <sys/types.h>
32424 #include <$ac_cv_struct_tm>
32425
32426
32427 int
32428 main ()
32429 {
32430 static struct tm ac_aggr;
32431 if (sizeof ac_aggr.tm_zone)
32432 return 0;
32433   ;
32434   return 0;
32435 }
32436 _ACEOF
32437 rm -f conftest.$ac_objext
32438 if { (ac_try="$ac_compile"
32439 case "(($ac_try" in
32440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32441   *) ac_try_echo=$ac_try;;
32442 esac
32443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32444   (eval "$ac_compile") 2>conftest.er1
32445   ac_status=$?
32446   grep -v '^ *+' conftest.er1 >conftest.err
32447   rm -f conftest.er1
32448   cat conftest.err >&5
32449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450   (exit $ac_status); } && {
32451          test -z "$ac_c_werror_flag" ||
32452          test ! -s conftest.err
32453        } && test -s conftest.$ac_objext; then
32454   ac_cv_member_struct_tm_tm_zone=yes
32455 else
32456   echo "$as_me: failed program was:" >&5
32457 sed 's/^/| /' conftest.$ac_ext >&5
32458
32459         ac_cv_member_struct_tm_tm_zone=no
32460 fi
32461
32462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32463 fi
32464
32465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32466 fi
32467 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32468 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32469 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32470
32471 cat >>confdefs.h <<_ACEOF
32472 #define HAVE_STRUCT_TM_TM_ZONE 1
32473 _ACEOF
32474
32475
32476 fi
32477
32478 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32479
32480 cat >>confdefs.h <<\_ACEOF
32481 #define HAVE_TM_ZONE 1
32482 _ACEOF
32483
32484 else
32485   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32486 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32487 if test "${ac_cv_have_decl_tzname+set}" = set; then
32488   echo $ECHO_N "(cached) $ECHO_C" >&6
32489 else
32490   cat >conftest.$ac_ext <<_ACEOF
32491 /* confdefs.h.  */
32492 _ACEOF
32493 cat confdefs.h >>conftest.$ac_ext
32494 cat >>conftest.$ac_ext <<_ACEOF
32495 /* end confdefs.h.  */
32496 #include <time.h>
32497
32498 int
32499 main ()
32500 {
32501 #ifndef tzname
32502   (void) tzname;
32503 #endif
32504
32505   ;
32506   return 0;
32507 }
32508 _ACEOF
32509 rm -f conftest.$ac_objext
32510 if { (ac_try="$ac_compile"
32511 case "(($ac_try" in
32512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32513   *) ac_try_echo=$ac_try;;
32514 esac
32515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32516   (eval "$ac_compile") 2>conftest.er1
32517   ac_status=$?
32518   grep -v '^ *+' conftest.er1 >conftest.err
32519   rm -f conftest.er1
32520   cat conftest.err >&5
32521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522   (exit $ac_status); } && {
32523          test -z "$ac_c_werror_flag" ||
32524          test ! -s conftest.err
32525        } && test -s conftest.$ac_objext; then
32526   ac_cv_have_decl_tzname=yes
32527 else
32528   echo "$as_me: failed program was:" >&5
32529 sed 's/^/| /' conftest.$ac_ext >&5
32530
32531         ac_cv_have_decl_tzname=no
32532 fi
32533
32534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32535 fi
32536 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32537 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32538 if test $ac_cv_have_decl_tzname = yes; then
32539
32540 cat >>confdefs.h <<_ACEOF
32541 #define HAVE_DECL_TZNAME 1
32542 _ACEOF
32543
32544
32545 else
32546   cat >>confdefs.h <<_ACEOF
32547 #define HAVE_DECL_TZNAME 0
32548 _ACEOF
32549
32550
32551 fi
32552
32553
32554   { echo "$as_me:$LINENO: checking for tzname" >&5
32555 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32556 if test "${ac_cv_var_tzname+set}" = set; then
32557   echo $ECHO_N "(cached) $ECHO_C" >&6
32558 else
32559   cat >conftest.$ac_ext <<_ACEOF
32560 /* confdefs.h.  */
32561 _ACEOF
32562 cat confdefs.h >>conftest.$ac_ext
32563 cat >>conftest.$ac_ext <<_ACEOF
32564 /* end confdefs.h.  */
32565 #include <time.h>
32566 #if !HAVE_DECL_TZNAME
32567 extern char *tzname[];
32568 #endif
32569
32570 int
32571 main ()
32572 {
32573 return tzname[0][0];
32574   ;
32575   return 0;
32576 }
32577 _ACEOF
32578 rm -f conftest.$ac_objext conftest$ac_exeext
32579 if { (ac_try="$ac_link"
32580 case "(($ac_try" in
32581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582   *) ac_try_echo=$ac_try;;
32583 esac
32584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585   (eval "$ac_link") 2>conftest.er1
32586   ac_status=$?
32587   grep -v '^ *+' conftest.er1 >conftest.err
32588   rm -f conftest.er1
32589   cat conftest.err >&5
32590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591   (exit $ac_status); } && {
32592          test -z "$ac_c_werror_flag" ||
32593          test ! -s conftest.err
32594        } && test -s conftest$ac_exeext &&
32595        $as_test_x conftest$ac_exeext; then
32596   ac_cv_var_tzname=yes
32597 else
32598   echo "$as_me: failed program was:" >&5
32599 sed 's/^/| /' conftest.$ac_ext >&5
32600
32601         ac_cv_var_tzname=no
32602 fi
32603
32604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32605       conftest$ac_exeext conftest.$ac_ext
32606 fi
32607 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32608 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32609   if test $ac_cv_var_tzname = yes; then
32610
32611 cat >>confdefs.h <<\_ACEOF
32612 #define HAVE_TZNAME 1
32613 _ACEOF
32614
32615   fi
32616 fi
32617
32618
32619 { echo "$as_me:$LINENO: checking for utime.h" >&5
32620 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32621 if test "${ba_cv_header_utime_h+set}" = set; then
32622   echo $ECHO_N "(cached) $ECHO_C" >&6
32623 else
32624
32625        cat >conftest.$ac_ext <<_ACEOF
32626 /* confdefs.h.  */
32627 _ACEOF
32628 cat confdefs.h >>conftest.$ac_ext
32629 cat >>conftest.$ac_ext <<_ACEOF
32630 /* end confdefs.h.  */
32631
32632               #include <sys/types.h>
32633               #include <utime.h>
32634
32635 int
32636 main ()
32637 {
32638
32639               struct utimbuf foo
32640
32641   ;
32642   return 0;
32643 }
32644 _ACEOF
32645 rm -f conftest.$ac_objext
32646 if { (ac_try="$ac_compile"
32647 case "(($ac_try" in
32648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32649   *) ac_try_echo=$ac_try;;
32650 esac
32651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32652   (eval "$ac_compile") 2>conftest.er1
32653   ac_status=$?
32654   grep -v '^ *+' conftest.er1 >conftest.err
32655   rm -f conftest.er1
32656   cat conftest.err >&5
32657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658   (exit $ac_status); } && {
32659          test -z "$ac_c_werror_flag" ||
32660          test ! -s conftest.err
32661        } && test -s conftest.$ac_objext; then
32662
32663               ba_cv_header_utime_h=yes
32664
32665 else
32666   echo "$as_me: failed program was:" >&5
32667 sed 's/^/| /' conftest.$ac_ext >&5
32668
32669
32670               ba_cv_header_utime_h=no
32671
32672
32673 fi
32674
32675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32676
32677
32678 fi
32679 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32680 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32681 test $ba_cv_header_utime_h = yes &&
32682 cat >>confdefs.h <<\_ACEOF
32683 #define HAVE_UTIME_H 1
32684 _ACEOF
32685
32686
32687 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32688 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32689 if test "${ba_cv_header_socklen_t+set}" = set; then
32690   echo $ECHO_N "(cached) $ECHO_C" >&6
32691 else
32692
32693        cat >conftest.$ac_ext <<_ACEOF
32694 /* confdefs.h.  */
32695 _ACEOF
32696 cat confdefs.h >>conftest.$ac_ext
32697 cat >>conftest.$ac_ext <<_ACEOF
32698 /* end confdefs.h.  */
32699
32700               #include <sys/types.h>
32701               #include <sys/socket.h>
32702
32703 int
32704 main ()
32705 {
32706
32707               socklen_t x
32708
32709   ;
32710   return 0;
32711 }
32712 _ACEOF
32713 rm -f conftest.$ac_objext
32714 if { (ac_try="$ac_compile"
32715 case "(($ac_try" in
32716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32717   *) ac_try_echo=$ac_try;;
32718 esac
32719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32720   (eval "$ac_compile") 2>conftest.er1
32721   ac_status=$?
32722   grep -v '^ *+' conftest.er1 >conftest.err
32723   rm -f conftest.er1
32724   cat conftest.err >&5
32725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726   (exit $ac_status); } && {
32727          test -z "$ac_c_werror_flag" ||
32728          test ! -s conftest.err
32729        } && test -s conftest.$ac_objext; then
32730
32731              ba_cv_header_socklen_t=yes
32732
32733 else
32734   echo "$as_me: failed program was:" >&5
32735 sed 's/^/| /' conftest.$ac_ext >&5
32736
32737
32738              ba_cv_header_socklen_t=no
32739
32740
32741 fi
32742
32743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32744
32745
32746 fi
32747 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32748 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32749 test $ba_cv_header_socklen_t = yes &&
32750 cat >>confdefs.h <<\_ACEOF
32751 #define HAVE_SOCKLEN_T 1
32752 _ACEOF
32753
32754
32755 ac_ext=cpp
32756 ac_cpp='$CXXCPP $CPPFLAGS'
32757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32760
32761 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32762 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32763 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32764   echo $ECHO_N "(cached) $ECHO_C" >&6
32765 else
32766
32767        cat >conftest.$ac_ext <<_ACEOF
32768 /* confdefs.h.  */
32769 _ACEOF
32770 cat confdefs.h >>conftest.$ac_ext
32771 cat >>conftest.$ac_ext <<_ACEOF
32772 /* end confdefs.h.  */
32773
32774               #include <unistd.h>
32775               #include <sys/types.h>
32776               #include <sys/ioctl.h>
32777
32778 int
32779 main ()
32780 {
32781
32782               int (*d_ioctl)(int fd, unsigned long int request, ...);
32783               d_ioctl = ::ioctl;
32784
32785   ;
32786   return 0;
32787 }
32788 _ACEOF
32789 rm -f conftest.$ac_objext
32790 if { (ac_try="$ac_compile"
32791 case "(($ac_try" in
32792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32793   *) ac_try_echo=$ac_try;;
32794 esac
32795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32796   (eval "$ac_compile") 2>conftest.er1
32797   ac_status=$?
32798   grep -v '^ *+' conftest.er1 >conftest.err
32799   rm -f conftest.er1
32800   cat conftest.err >&5
32801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802   (exit $ac_status); } && {
32803          test -z "$ac_cxx_werror_flag" ||
32804          test ! -s conftest.err
32805        } && test -s conftest.$ac_objext; then
32806
32807              ba_cv_header_ioctl_req_t=yes
32808
32809 else
32810   echo "$as_me: failed program was:" >&5
32811 sed 's/^/| /' conftest.$ac_ext >&5
32812
32813
32814              ba_cv_header_ioctl_req_t=no
32815
32816
32817 fi
32818
32819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32820
32821
32822 fi
32823 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32824 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32825 test $ba_cv_header_ioctl_req_t = yes &&
32826 cat >>confdefs.h <<\_ACEOF
32827 #define HAVE_IOCTL_ULINT_REQUEST 1
32828 _ACEOF
32829
32830
32831 ac_ext=c
32832 ac_cpp='$CPP $CPPFLAGS'
32833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32836
32837
32838 ac_ext=cpp
32839 ac_cpp='$CXXCPP $CPPFLAGS'
32840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32843
32844 { echo "$as_me:$LINENO: checking for typeof" >&5
32845 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32846 if test "${ba_cv_have_typeof+set}" = set; then
32847   echo $ECHO_N "(cached) $ECHO_C" >&6
32848 else
32849
32850        if test "$cross_compiling" = yes; then
32851
32852               ba_cv_have_typeof=no
32853
32854
32855 else
32856   cat >conftest.$ac_ext <<_ACEOF
32857 /* confdefs.h.  */
32858 _ACEOF
32859 cat confdefs.h >>conftest.$ac_ext
32860 cat >>conftest.$ac_ext <<_ACEOF
32861 /* end confdefs.h.  */
32862
32863               main(){char *a = 0; a = (typeof a)a;}
32864
32865 _ACEOF
32866 rm -f conftest$ac_exeext
32867 if { (ac_try="$ac_link"
32868 case "(($ac_try" in
32869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870   *) ac_try_echo=$ac_try;;
32871 esac
32872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873   (eval "$ac_link") 2>&5
32874   ac_status=$?
32875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32877   { (case "(($ac_try" in
32878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32879   *) ac_try_echo=$ac_try;;
32880 esac
32881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32882   (eval "$ac_try") 2>&5
32883   ac_status=$?
32884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885   (exit $ac_status); }; }; then
32886
32887               ba_cv_have_typeof=yes
32888
32889 else
32890   echo "$as_me: program exited with status $ac_status" >&5
32891 echo "$as_me: failed program was:" >&5
32892 sed 's/^/| /' conftest.$ac_ext >&5
32893
32894 ( exit $ac_status )
32895
32896               ba_cv_have_typeof=no
32897
32898 fi
32899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32900 fi
32901
32902
32903
32904
32905 fi
32906 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32907 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32908 test $ba_cv_have_typeof = yes &&
32909 cat >>confdefs.h <<\_ACEOF
32910 #define HAVE_TYPEOF 1
32911 _ACEOF
32912
32913 ac_ext=c
32914 ac_cpp='$CPP $CPPFLAGS'
32915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32918
32919
32920 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32921 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32922 if test "${ac_cv_c_const+set}" = set; then
32923   echo $ECHO_N "(cached) $ECHO_C" >&6
32924 else
32925   cat >conftest.$ac_ext <<_ACEOF
32926 /* confdefs.h.  */
32927 _ACEOF
32928 cat confdefs.h >>conftest.$ac_ext
32929 cat >>conftest.$ac_ext <<_ACEOF
32930 /* end confdefs.h.  */
32931
32932 int
32933 main ()
32934 {
32935 /* FIXME: Include the comments suggested by Paul. */
32936 #ifndef __cplusplus
32937   /* Ultrix mips cc rejects this.  */
32938   typedef int charset[2];
32939   const charset cs;
32940   /* SunOS 4.1.1 cc rejects this.  */
32941   char const *const *pcpcc;
32942   char **ppc;
32943   /* NEC SVR4.0.2 mips cc rejects this.  */
32944   struct point {int x, y;};
32945   static struct point const zero = {0,0};
32946   /* AIX XL C 1.02.0.0 rejects this.
32947      It does not let you subtract one const X* pointer from another in
32948      an arm of an if-expression whose if-part is not a constant
32949      expression */
32950   const char *g = "string";
32951   pcpcc = &g + (g ? g-g : 0);
32952   /* HPUX 7.0 cc rejects these. */
32953   ++pcpcc;
32954   ppc = (char**) pcpcc;
32955   pcpcc = (char const *const *) ppc;
32956   { /* SCO 3.2v4 cc rejects this.  */
32957     char *t;
32958     char const *s = 0 ? (char *) 0 : (char const *) 0;
32959
32960     *t++ = 0;
32961     if (s) return 0;
32962   }
32963   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32964     int x[] = {25, 17};
32965     const int *foo = &x[0];
32966     ++foo;
32967   }
32968   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32969     typedef const int *iptr;
32970     iptr p = 0;
32971     ++p;
32972   }
32973   { /* AIX XL C 1.02.0.0 rejects this saying
32974        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32975     struct s { int j; const int *ap[3]; };
32976     struct s *b; b->j = 5;
32977   }
32978   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32979     const int foo = 10;
32980     if (!foo) return 0;
32981   }
32982   return !cs[0] && !zero.x;
32983 #endif
32984
32985   ;
32986   return 0;
32987 }
32988 _ACEOF
32989 rm -f conftest.$ac_objext
32990 if { (ac_try="$ac_compile"
32991 case "(($ac_try" in
32992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32993   *) ac_try_echo=$ac_try;;
32994 esac
32995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32996   (eval "$ac_compile") 2>conftest.er1
32997   ac_status=$?
32998   grep -v '^ *+' conftest.er1 >conftest.err
32999   rm -f conftest.er1
33000   cat conftest.err >&5
33001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002   (exit $ac_status); } && {
33003          test -z "$ac_c_werror_flag" ||
33004          test ! -s conftest.err
33005        } && test -s conftest.$ac_objext; then
33006   ac_cv_c_const=yes
33007 else
33008   echo "$as_me: failed program was:" >&5
33009 sed 's/^/| /' conftest.$ac_ext >&5
33010
33011         ac_cv_c_const=no
33012 fi
33013
33014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33015 fi
33016 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33017 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33018 if test $ac_cv_c_const = no; then
33019
33020 cat >>confdefs.h <<\_ACEOF
33021 #define const
33022 _ACEOF
33023
33024 fi
33025
33026
33027 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
33028 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
33029 fstype=no
33030 # The order of these tests is important.
33031 cat >conftest.$ac_ext <<_ACEOF
33032 /* confdefs.h.  */
33033 _ACEOF
33034 cat confdefs.h >>conftest.$ac_ext
33035 cat >>conftest.$ac_ext <<_ACEOF
33036 /* end confdefs.h.  */
33037
33038        #include <sys/statvfs.h>
33039        #include <sys/fstyp.h>
33040
33041 _ACEOF
33042 if { (ac_try="$ac_cpp conftest.$ac_ext"
33043 case "(($ac_try" in
33044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33045   *) ac_try_echo=$ac_try;;
33046 esac
33047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33049   ac_status=$?
33050   grep -v '^ *+' conftest.er1 >conftest.err
33051   rm -f conftest.er1
33052   cat conftest.err >&5
33053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054   (exit $ac_status); } >/dev/null && {
33055          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33056          test ! -s conftest.err
33057        }; then
33058   cat >>confdefs.h <<\_ACEOF
33059 #define FSTYPE_STATVFS 1
33060 _ACEOF
33061  fstype=SVR4
33062
33063 else
33064   echo "$as_me: failed program was:" >&5
33065 sed 's/^/| /' conftest.$ac_ext >&5
33066
33067
33068 fi
33069
33070 rm -f conftest.err conftest.$ac_ext
33071 if test $fstype = no; then
33072    cat >conftest.$ac_ext <<_ACEOF
33073 /* confdefs.h.  */
33074 _ACEOF
33075 cat confdefs.h >>conftest.$ac_ext
33076 cat >>conftest.$ac_ext <<_ACEOF
33077 /* end confdefs.h.  */
33078
33079           #include <sys/statfs.h>
33080           #include <sys/fstyp.h>
33081
33082 _ACEOF
33083 if { (ac_try="$ac_cpp conftest.$ac_ext"
33084 case "(($ac_try" in
33085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33086   *) ac_try_echo=$ac_try;;
33087 esac
33088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33089   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33090   ac_status=$?
33091   grep -v '^ *+' conftest.er1 >conftest.err
33092   rm -f conftest.er1
33093   cat conftest.err >&5
33094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095   (exit $ac_status); } >/dev/null && {
33096          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33097          test ! -s conftest.err
33098        }; then
33099   cat >>confdefs.h <<\_ACEOF
33100 #define FSTYPE_USG_STATFS 1
33101 _ACEOF
33102  fstype=SVR3
33103
33104 else
33105   echo "$as_me: failed program was:" >&5
33106 sed 's/^/| /' conftest.$ac_ext >&5
33107
33108
33109 fi
33110
33111 rm -f conftest.err conftest.$ac_ext
33112 fi
33113 if test $fstype = no; then
33114    cat >conftest.$ac_ext <<_ACEOF
33115 /* confdefs.h.  */
33116 _ACEOF
33117 cat confdefs.h >>conftest.$ac_ext
33118 cat >>conftest.$ac_ext <<_ACEOF
33119 /* end confdefs.h.  */
33120
33121           #include <sys/statfs.h>
33122           #include <sys/vmount.h>
33123
33124 _ACEOF
33125 if { (ac_try="$ac_cpp conftest.$ac_ext"
33126 case "(($ac_try" in
33127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33128   *) ac_try_echo=$ac_try;;
33129 esac
33130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33131   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33132   ac_status=$?
33133   grep -v '^ *+' conftest.er1 >conftest.err
33134   rm -f conftest.er1
33135   cat conftest.err >&5
33136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137   (exit $ac_status); } >/dev/null && {
33138          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33139          test ! -s conftest.err
33140        }; then
33141   cat >>confdefs.h <<\_ACEOF
33142 #define FSTYPE_AIX_STATFS 1
33143 _ACEOF
33144  fstype=AIX
33145
33146 else
33147   echo "$as_me: failed program was:" >&5
33148 sed 's/^/| /' conftest.$ac_ext >&5
33149
33150
33151 fi
33152
33153 rm -f conftest.err conftest.$ac_ext
33154 fi
33155 if test $fstype = no; then
33156    cat >conftest.$ac_ext <<_ACEOF
33157 /* confdefs.h.  */
33158 _ACEOF
33159 cat confdefs.h >>conftest.$ac_ext
33160 cat >>conftest.$ac_ext <<_ACEOF
33161 /* end confdefs.h.  */
33162
33163           #include <mntent.h>
33164
33165 _ACEOF
33166 if { (ac_try="$ac_cpp conftest.$ac_ext"
33167 case "(($ac_try" in
33168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33169   *) ac_try_echo=$ac_try;;
33170 esac
33171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33172   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33173   ac_status=$?
33174   grep -v '^ *+' conftest.er1 >conftest.err
33175   rm -f conftest.er1
33176   cat conftest.err >&5
33177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33178   (exit $ac_status); } >/dev/null && {
33179          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33180          test ! -s conftest.err
33181        }; then
33182   cat >>confdefs.h <<\_ACEOF
33183 #define FSTYPE_MNTENT 1
33184 _ACEOF
33185  fstype=4.3BSD
33186
33187 else
33188   echo "$as_me: failed program was:" >&5
33189 sed 's/^/| /' conftest.$ac_ext >&5
33190
33191
33192 fi
33193
33194 rm -f conftest.err conftest.$ac_ext
33195 fi
33196 if test $fstype = no; then
33197    cat >conftest.$ac_ext <<_ACEOF
33198 /* confdefs.h.  */
33199 _ACEOF
33200 cat confdefs.h >>conftest.$ac_ext
33201 cat >>conftest.$ac_ext <<_ACEOF
33202 /* end confdefs.h.  */
33203 #include <sys/mount.h>
33204
33205 _ACEOF
33206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33207   $EGREP "f_type;" >/dev/null 2>&1; then
33208   cat >>confdefs.h <<\_ACEOF
33209 #define FSTYPE_STATFS 1
33210 _ACEOF
33211  fstype=4.4BSD/OSF1
33212 fi
33213 rm -f conftest*
33214
33215 fi
33216 if test $fstype = no; then
33217    cat >conftest.$ac_ext <<_ACEOF
33218 /* confdefs.h.  */
33219 _ACEOF
33220 cat confdefs.h >>conftest.$ac_ext
33221 cat >>conftest.$ac_ext <<_ACEOF
33222 /* end confdefs.h.  */
33223
33224           #include <sys/mount.h>
33225           #include <sys/fs_types.h>
33226
33227 _ACEOF
33228 if { (ac_try="$ac_cpp conftest.$ac_ext"
33229 case "(($ac_try" in
33230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33231   *) ac_try_echo=$ac_try;;
33232 esac
33233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33235   ac_status=$?
33236   grep -v '^ *+' conftest.er1 >conftest.err
33237   rm -f conftest.er1
33238   cat conftest.err >&5
33239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240   (exit $ac_status); } >/dev/null && {
33241          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33242          test ! -s conftest.err
33243        }; then
33244   cat >>confdefs.h <<\_ACEOF
33245 #define FSTYPE_GETMNT 1
33246 _ACEOF
33247  fstype=Ultrix
33248
33249 else
33250   echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.$ac_ext >&5
33252
33253
33254 fi
33255
33256 rm -f conftest.err conftest.$ac_ext
33257 fi
33258 { echo "$as_me:$LINENO: result: $fstype" >&5
33259 echo "${ECHO_T}$fstype" >&6; }
33260
33261 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33262   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33263 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33264 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33265   echo $ECHO_N "(cached) $ECHO_C" >&6
33266 fi
33267 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33268 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33269 else
33270   # Is the header compilable?
33271 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33272 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33273 cat >conftest.$ac_ext <<_ACEOF
33274 /* confdefs.h.  */
33275 _ACEOF
33276 cat confdefs.h >>conftest.$ac_ext
33277 cat >>conftest.$ac_ext <<_ACEOF
33278 /* end confdefs.h.  */
33279 $ac_includes_default
33280 #include <sys/statvfs.h>
33281 _ACEOF
33282 rm -f conftest.$ac_objext
33283 if { (ac_try="$ac_compile"
33284 case "(($ac_try" in
33285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33286   *) ac_try_echo=$ac_try;;
33287 esac
33288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33289   (eval "$ac_compile") 2>conftest.er1
33290   ac_status=$?
33291   grep -v '^ *+' conftest.er1 >conftest.err
33292   rm -f conftest.er1
33293   cat conftest.err >&5
33294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33295   (exit $ac_status); } && {
33296          test -z "$ac_c_werror_flag" ||
33297          test ! -s conftest.err
33298        } && test -s conftest.$ac_objext; then
33299   ac_header_compiler=yes
33300 else
33301   echo "$as_me: failed program was:" >&5
33302 sed 's/^/| /' conftest.$ac_ext >&5
33303
33304         ac_header_compiler=no
33305 fi
33306
33307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33309 echo "${ECHO_T}$ac_header_compiler" >&6; }
33310
33311 # Is the header present?
33312 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33313 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33314 cat >conftest.$ac_ext <<_ACEOF
33315 /* confdefs.h.  */
33316 _ACEOF
33317 cat confdefs.h >>conftest.$ac_ext
33318 cat >>conftest.$ac_ext <<_ACEOF
33319 /* end confdefs.h.  */
33320 #include <sys/statvfs.h>
33321 _ACEOF
33322 if { (ac_try="$ac_cpp conftest.$ac_ext"
33323 case "(($ac_try" in
33324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33325   *) ac_try_echo=$ac_try;;
33326 esac
33327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33328   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33329   ac_status=$?
33330   grep -v '^ *+' conftest.er1 >conftest.err
33331   rm -f conftest.er1
33332   cat conftest.err >&5
33333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334   (exit $ac_status); } >/dev/null && {
33335          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33336          test ! -s conftest.err
33337        }; then
33338   ac_header_preproc=yes
33339 else
33340   echo "$as_me: failed program was:" >&5
33341 sed 's/^/| /' conftest.$ac_ext >&5
33342
33343   ac_header_preproc=no
33344 fi
33345
33346 rm -f conftest.err conftest.$ac_ext
33347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33348 echo "${ECHO_T}$ac_header_preproc" >&6; }
33349
33350 # So?  What about this header?
33351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33352   yes:no: )
33353     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33354 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33355     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33356 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33357     ac_header_preproc=yes
33358     ;;
33359   no:yes:* )
33360     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33361 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33362     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33363 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33364     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33365 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33366     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33367 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33368     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33369 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33370     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33371 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33372
33373     ;;
33374 esac
33375 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33376 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33377 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33378   echo $ECHO_N "(cached) $ECHO_C" >&6
33379 else
33380   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33381 fi
33382 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33383 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33384
33385 fi
33386 if test $ac_cv_header_sys_statvfs_h = yes; then
33387
33388 cat >>confdefs.h <<\_ACEOF
33389 #define HAVE_SYS_STATVFS_H 1
33390 _ACEOF
33391
33392 fi
33393
33394
33395
33396 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33397 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33398 if test "${ac_cv_type_signal+set}" = set; then
33399   echo $ECHO_N "(cached) $ECHO_C" >&6
33400 else
33401   cat >conftest.$ac_ext <<_ACEOF
33402 /* confdefs.h.  */
33403 _ACEOF
33404 cat confdefs.h >>conftest.$ac_ext
33405 cat >>conftest.$ac_ext <<_ACEOF
33406 /* end confdefs.h.  */
33407 #include <sys/types.h>
33408 #include <signal.h>
33409
33410 int
33411 main ()
33412 {
33413 return *(signal (0, 0)) (0) == 1;
33414   ;
33415   return 0;
33416 }
33417 _ACEOF
33418 rm -f conftest.$ac_objext
33419 if { (ac_try="$ac_compile"
33420 case "(($ac_try" in
33421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33422   *) ac_try_echo=$ac_try;;
33423 esac
33424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33425   (eval "$ac_compile") 2>conftest.er1
33426   ac_status=$?
33427   grep -v '^ *+' conftest.er1 >conftest.err
33428   rm -f conftest.er1
33429   cat conftest.err >&5
33430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431   (exit $ac_status); } && {
33432          test -z "$ac_c_werror_flag" ||
33433          test ! -s conftest.err
33434        } && test -s conftest.$ac_objext; then
33435   ac_cv_type_signal=int
33436 else
33437   echo "$as_me: failed program was:" >&5
33438 sed 's/^/| /' conftest.$ac_ext >&5
33439
33440         ac_cv_type_signal=void
33441 fi
33442
33443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33444 fi
33445 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33446 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33447
33448 cat >>confdefs.h <<_ACEOF
33449 #define RETSIGTYPE $ac_cv_type_signal
33450 _ACEOF
33451
33452
33453
33454   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33455 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33456   if test "${bash_cv_signal_vintage+set}" = set; then
33457   echo $ECHO_N "(cached) $ECHO_C" >&6
33458 else
33459
33460     cat >conftest.$ac_ext <<_ACEOF
33461 /* confdefs.h.  */
33462 _ACEOF
33463 cat confdefs.h >>conftest.$ac_ext
33464 cat >>conftest.$ac_ext <<_ACEOF
33465 /* end confdefs.h.  */
33466 #include <signal.h>
33467 int
33468 main ()
33469 {
33470
33471       sigset_t ss;
33472       struct sigaction sa;
33473       sigemptyset(&ss); sigsuspend(&ss);
33474       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33475       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33476
33477   ;
33478   return 0;
33479 }
33480 _ACEOF
33481 rm -f conftest.$ac_objext conftest$ac_exeext
33482 if { (ac_try="$ac_link"
33483 case "(($ac_try" in
33484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33485   *) ac_try_echo=$ac_try;;
33486 esac
33487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33488   (eval "$ac_link") 2>conftest.er1
33489   ac_status=$?
33490   grep -v '^ *+' conftest.er1 >conftest.err
33491   rm -f conftest.er1
33492   cat conftest.err >&5
33493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494   (exit $ac_status); } && {
33495          test -z "$ac_c_werror_flag" ||
33496          test ! -s conftest.err
33497        } && test -s conftest$ac_exeext &&
33498        $as_test_x conftest$ac_exeext; then
33499   bash_cv_signal_vintage="posix"
33500 else
33501   echo "$as_me: failed program was:" >&5
33502 sed 's/^/| /' conftest.$ac_ext >&5
33503
33504
33505       cat >conftest.$ac_ext <<_ACEOF
33506 /* confdefs.h.  */
33507 _ACEOF
33508 cat confdefs.h >>conftest.$ac_ext
33509 cat >>conftest.$ac_ext <<_ACEOF
33510 /* end confdefs.h.  */
33511 #include <signal.h>
33512 int
33513 main ()
33514 {
33515
33516           int mask = sigmask(SIGINT);
33517           sigsetmask(mask); sigblock(mask); sigpause(mask);
33518
33519   ;
33520   return 0;
33521 }
33522 _ACEOF
33523 rm -f conftest.$ac_objext conftest$ac_exeext
33524 if { (ac_try="$ac_link"
33525 case "(($ac_try" in
33526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33527   *) ac_try_echo=$ac_try;;
33528 esac
33529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33530   (eval "$ac_link") 2>conftest.er1
33531   ac_status=$?
33532   grep -v '^ *+' conftest.er1 >conftest.err
33533   rm -f conftest.er1
33534   cat conftest.err >&5
33535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536   (exit $ac_status); } && {
33537          test -z "$ac_c_werror_flag" ||
33538          test ! -s conftest.err
33539        } && test -s conftest$ac_exeext &&
33540        $as_test_x conftest$ac_exeext; then
33541   bash_cv_signal_vintage="4.2bsd"
33542 else
33543   echo "$as_me: failed program was:" >&5
33544 sed 's/^/| /' conftest.$ac_ext >&5
33545
33546
33547         cat >conftest.$ac_ext <<_ACEOF
33548 /* confdefs.h.  */
33549 _ACEOF
33550 cat confdefs.h >>conftest.$ac_ext
33551 cat >>conftest.$ac_ext <<_ACEOF
33552 /* end confdefs.h.  */
33553
33554           #include <signal.h>
33555           RETSIGTYPE foo() { }
33556 int
33557 main ()
33558 {
33559
33560                   int mask = sigmask(SIGINT);
33561                   sigset(SIGINT, foo); sigrelse(SIGINT);
33562                   sighold(SIGINT); sigpause(SIGINT);
33563
33564   ;
33565   return 0;
33566 }
33567 _ACEOF
33568 rm -f conftest.$ac_objext conftest$ac_exeext
33569 if { (ac_try="$ac_link"
33570 case "(($ac_try" in
33571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33572   *) ac_try_echo=$ac_try;;
33573 esac
33574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33575   (eval "$ac_link") 2>conftest.er1
33576   ac_status=$?
33577   grep -v '^ *+' conftest.er1 >conftest.err
33578   rm -f conftest.er1
33579   cat conftest.err >&5
33580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581   (exit $ac_status); } && {
33582          test -z "$ac_c_werror_flag" ||
33583          test ! -s conftest.err
33584        } && test -s conftest$ac_exeext &&
33585        $as_test_x conftest$ac_exeext; then
33586   bash_cv_signal_vintage="svr3"
33587 else
33588   echo "$as_me: failed program was:" >&5
33589 sed 's/^/| /' conftest.$ac_ext >&5
33590
33591         bash_cv_signal_vintage="v7"
33592
33593 fi
33594
33595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33596       conftest$ac_exeext conftest.$ac_ext
33597
33598 fi
33599
33600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33601       conftest$ac_exeext conftest.$ac_ext
33602
33603 fi
33604
33605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33606       conftest$ac_exeext conftest.$ac_ext
33607
33608 fi
33609
33610   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33611 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33612   if test "$bash_cv_signal_vintage" = "posix"; then
33613     cat >>confdefs.h <<\_ACEOF
33614 #define HAVE_POSIX_SIGNALS 1
33615 _ACEOF
33616
33617   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33618     cat >>confdefs.h <<\_ACEOF
33619 #define HAVE_BSD_SIGNALS 1
33620 _ACEOF
33621
33622   elif test "$bash_cv_signal_vintage" = "svr3"; then
33623     cat >>confdefs.h <<\_ACEOF
33624 #define HAVE_USG_SIGHOLD 1
33625 _ACEOF
33626
33627   fi
33628
33629 { echo "$as_me:$LINENO: checking for mode_t" >&5
33630 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33631 if test "${ac_cv_type_mode_t+set}" = set; then
33632   echo $ECHO_N "(cached) $ECHO_C" >&6
33633 else
33634   cat >conftest.$ac_ext <<_ACEOF
33635 /* confdefs.h.  */
33636 _ACEOF
33637 cat confdefs.h >>conftest.$ac_ext
33638 cat >>conftest.$ac_ext <<_ACEOF
33639 /* end confdefs.h.  */
33640 $ac_includes_default
33641 typedef mode_t ac__type_new_;
33642 int
33643 main ()
33644 {
33645 if ((ac__type_new_ *) 0)
33646   return 0;
33647 if (sizeof (ac__type_new_))
33648   return 0;
33649   ;
33650   return 0;
33651 }
33652 _ACEOF
33653 rm -f conftest.$ac_objext
33654 if { (ac_try="$ac_compile"
33655 case "(($ac_try" in
33656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33657   *) ac_try_echo=$ac_try;;
33658 esac
33659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33660   (eval "$ac_compile") 2>conftest.er1
33661   ac_status=$?
33662   grep -v '^ *+' conftest.er1 >conftest.err
33663   rm -f conftest.er1
33664   cat conftest.err >&5
33665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666   (exit $ac_status); } && {
33667          test -z "$ac_c_werror_flag" ||
33668          test ! -s conftest.err
33669        } && test -s conftest.$ac_objext; then
33670   ac_cv_type_mode_t=yes
33671 else
33672   echo "$as_me: failed program was:" >&5
33673 sed 's/^/| /' conftest.$ac_ext >&5
33674
33675         ac_cv_type_mode_t=no
33676 fi
33677
33678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33679 fi
33680 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33681 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33682 if test $ac_cv_type_mode_t = yes; then
33683   :
33684 else
33685
33686 cat >>confdefs.h <<_ACEOF
33687 #define mode_t int
33688 _ACEOF
33689
33690 fi
33691
33692 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33693 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33694 if test "${ac_cv_type_uid_t+set}" = set; then
33695   echo $ECHO_N "(cached) $ECHO_C" >&6
33696 else
33697   cat >conftest.$ac_ext <<_ACEOF
33698 /* confdefs.h.  */
33699 _ACEOF
33700 cat confdefs.h >>conftest.$ac_ext
33701 cat >>conftest.$ac_ext <<_ACEOF
33702 /* end confdefs.h.  */
33703 #include <sys/types.h>
33704
33705 _ACEOF
33706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33707   $EGREP "uid_t" >/dev/null 2>&1; then
33708   ac_cv_type_uid_t=yes
33709 else
33710   ac_cv_type_uid_t=no
33711 fi
33712 rm -f conftest*
33713
33714 fi
33715 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33716 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33717 if test $ac_cv_type_uid_t = no; then
33718
33719 cat >>confdefs.h <<\_ACEOF
33720 #define uid_t int
33721 _ACEOF
33722
33723
33724 cat >>confdefs.h <<\_ACEOF
33725 #define gid_t int
33726 _ACEOF
33727
33728 fi
33729
33730 { echo "$as_me:$LINENO: checking for size_t" >&5
33731 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33732 if test "${ac_cv_type_size_t+set}" = set; then
33733   echo $ECHO_N "(cached) $ECHO_C" >&6
33734 else
33735   cat >conftest.$ac_ext <<_ACEOF
33736 /* confdefs.h.  */
33737 _ACEOF
33738 cat confdefs.h >>conftest.$ac_ext
33739 cat >>conftest.$ac_ext <<_ACEOF
33740 /* end confdefs.h.  */
33741 $ac_includes_default
33742 typedef size_t ac__type_new_;
33743 int
33744 main ()
33745 {
33746 if ((ac__type_new_ *) 0)
33747   return 0;
33748 if (sizeof (ac__type_new_))
33749   return 0;
33750   ;
33751   return 0;
33752 }
33753 _ACEOF
33754 rm -f conftest.$ac_objext
33755 if { (ac_try="$ac_compile"
33756 case "(($ac_try" in
33757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33758   *) ac_try_echo=$ac_try;;
33759 esac
33760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33761   (eval "$ac_compile") 2>conftest.er1
33762   ac_status=$?
33763   grep -v '^ *+' conftest.er1 >conftest.err
33764   rm -f conftest.er1
33765   cat conftest.err >&5
33766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767   (exit $ac_status); } && {
33768          test -z "$ac_c_werror_flag" ||
33769          test ! -s conftest.err
33770        } && test -s conftest.$ac_objext; then
33771   ac_cv_type_size_t=yes
33772 else
33773   echo "$as_me: failed program was:" >&5
33774 sed 's/^/| /' conftest.$ac_ext >&5
33775
33776         ac_cv_type_size_t=no
33777 fi
33778
33779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33780 fi
33781 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33782 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33783 if test $ac_cv_type_size_t = yes; then
33784   :
33785 else
33786
33787 cat >>confdefs.h <<_ACEOF
33788 #define size_t unsigned int
33789 _ACEOF
33790
33791 fi
33792
33793 { echo "$as_me:$LINENO: checking for pid_t" >&5
33794 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33795 if test "${ac_cv_type_pid_t+set}" = set; then
33796   echo $ECHO_N "(cached) $ECHO_C" >&6
33797 else
33798   cat >conftest.$ac_ext <<_ACEOF
33799 /* confdefs.h.  */
33800 _ACEOF
33801 cat confdefs.h >>conftest.$ac_ext
33802 cat >>conftest.$ac_ext <<_ACEOF
33803 /* end confdefs.h.  */
33804 $ac_includes_default
33805 typedef pid_t ac__type_new_;
33806 int
33807 main ()
33808 {
33809 if ((ac__type_new_ *) 0)
33810   return 0;
33811 if (sizeof (ac__type_new_))
33812   return 0;
33813   ;
33814   return 0;
33815 }
33816 _ACEOF
33817 rm -f conftest.$ac_objext
33818 if { (ac_try="$ac_compile"
33819 case "(($ac_try" in
33820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33821   *) ac_try_echo=$ac_try;;
33822 esac
33823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33824   (eval "$ac_compile") 2>conftest.er1
33825   ac_status=$?
33826   grep -v '^ *+' conftest.er1 >conftest.err
33827   rm -f conftest.er1
33828   cat conftest.err >&5
33829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33830   (exit $ac_status); } && {
33831          test -z "$ac_c_werror_flag" ||
33832          test ! -s conftest.err
33833        } && test -s conftest.$ac_objext; then
33834   ac_cv_type_pid_t=yes
33835 else
33836   echo "$as_me: failed program was:" >&5
33837 sed 's/^/| /' conftest.$ac_ext >&5
33838
33839         ac_cv_type_pid_t=no
33840 fi
33841
33842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33843 fi
33844 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33845 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33846 if test $ac_cv_type_pid_t = yes; then
33847   :
33848 else
33849
33850 cat >>confdefs.h <<_ACEOF
33851 #define pid_t int
33852 _ACEOF
33853
33854 fi
33855
33856 { echo "$as_me:$LINENO: checking for off_t" >&5
33857 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33858 if test "${ac_cv_type_off_t+set}" = set; then
33859   echo $ECHO_N "(cached) $ECHO_C" >&6
33860 else
33861   cat >conftest.$ac_ext <<_ACEOF
33862 /* confdefs.h.  */
33863 _ACEOF
33864 cat confdefs.h >>conftest.$ac_ext
33865 cat >>conftest.$ac_ext <<_ACEOF
33866 /* end confdefs.h.  */
33867 $ac_includes_default
33868 typedef off_t ac__type_new_;
33869 int
33870 main ()
33871 {
33872 if ((ac__type_new_ *) 0)
33873   return 0;
33874 if (sizeof (ac__type_new_))
33875   return 0;
33876   ;
33877   return 0;
33878 }
33879 _ACEOF
33880 rm -f conftest.$ac_objext
33881 if { (ac_try="$ac_compile"
33882 case "(($ac_try" in
33883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33884   *) ac_try_echo=$ac_try;;
33885 esac
33886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33887   (eval "$ac_compile") 2>conftest.er1
33888   ac_status=$?
33889   grep -v '^ *+' conftest.er1 >conftest.err
33890   rm -f conftest.er1
33891   cat conftest.err >&5
33892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33893   (exit $ac_status); } && {
33894          test -z "$ac_c_werror_flag" ||
33895          test ! -s conftest.err
33896        } && test -s conftest.$ac_objext; then
33897   ac_cv_type_off_t=yes
33898 else
33899   echo "$as_me: failed program was:" >&5
33900 sed 's/^/| /' conftest.$ac_ext >&5
33901
33902         ac_cv_type_off_t=no
33903 fi
33904
33905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33906 fi
33907 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33908 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33909 if test $ac_cv_type_off_t = yes; then
33910   :
33911 else
33912
33913 cat >>confdefs.h <<_ACEOF
33914 #define off_t long int
33915 _ACEOF
33916
33917 fi
33918
33919
33920   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33921 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33922 if test "${ac_cv_type_intptr_t+set}" = set; then
33923   echo $ECHO_N "(cached) $ECHO_C" >&6
33924 else
33925   cat >conftest.$ac_ext <<_ACEOF
33926 /* confdefs.h.  */
33927 _ACEOF
33928 cat confdefs.h >>conftest.$ac_ext
33929 cat >>conftest.$ac_ext <<_ACEOF
33930 /* end confdefs.h.  */
33931 $ac_includes_default
33932 typedef intptr_t ac__type_new_;
33933 int
33934 main ()
33935 {
33936 if ((ac__type_new_ *) 0)
33937   return 0;
33938 if (sizeof (ac__type_new_))
33939   return 0;
33940   ;
33941   return 0;
33942 }
33943 _ACEOF
33944 rm -f conftest.$ac_objext
33945 if { (ac_try="$ac_compile"
33946 case "(($ac_try" in
33947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33948   *) ac_try_echo=$ac_try;;
33949 esac
33950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33951   (eval "$ac_compile") 2>conftest.er1
33952   ac_status=$?
33953   grep -v '^ *+' conftest.er1 >conftest.err
33954   rm -f conftest.er1
33955   cat conftest.err >&5
33956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957   (exit $ac_status); } && {
33958          test -z "$ac_c_werror_flag" ||
33959          test ! -s conftest.err
33960        } && test -s conftest.$ac_objext; then
33961   ac_cv_type_intptr_t=yes
33962 else
33963   echo "$as_me: failed program was:" >&5
33964 sed 's/^/| /' conftest.$ac_ext >&5
33965
33966         ac_cv_type_intptr_t=no
33967 fi
33968
33969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33970 fi
33971 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33972 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33973 if test $ac_cv_type_intptr_t = yes; then
33974
33975 cat >>confdefs.h <<\_ACEOF
33976 #define HAVE_INTPTR_T 1
33977 _ACEOF
33978
33979 else
33980   for ac_type in 'int' 'long int' 'long long int'; do
33981        cat >conftest.$ac_ext <<_ACEOF
33982 /* confdefs.h.  */
33983 _ACEOF
33984 cat confdefs.h >>conftest.$ac_ext
33985 cat >>conftest.$ac_ext <<_ACEOF
33986 /* end confdefs.h.  */
33987 $ac_includes_default
33988 int
33989 main ()
33990 {
33991 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33992 test_array [0] = 0
33993
33994   ;
33995   return 0;
33996 }
33997 _ACEOF
33998 rm -f conftest.$ac_objext
33999 if { (ac_try="$ac_compile"
34000 case "(($ac_try" in
34001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34002   *) ac_try_echo=$ac_try;;
34003 esac
34004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34005   (eval "$ac_compile") 2>conftest.er1
34006   ac_status=$?
34007   grep -v '^ *+' conftest.er1 >conftest.err
34008   rm -f conftest.er1
34009   cat conftest.err >&5
34010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011   (exit $ac_status); } && {
34012          test -z "$ac_c_werror_flag" ||
34013          test ! -s conftest.err
34014        } && test -s conftest.$ac_objext; then
34015
34016 cat >>confdefs.h <<_ACEOF
34017 #define intptr_t $ac_type
34018 _ACEOF
34019
34020           ac_type=
34021 else
34022   echo "$as_me: failed program was:" >&5
34023 sed 's/^/| /' conftest.$ac_ext >&5
34024
34025
34026 fi
34027
34028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34029        test -z "$ac_type" && break
34030      done
34031 fi
34032
34033
34034
34035   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
34036 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
34037 if test "${ac_cv_type_uintptr_t+set}" = set; then
34038   echo $ECHO_N "(cached) $ECHO_C" >&6
34039 else
34040   cat >conftest.$ac_ext <<_ACEOF
34041 /* confdefs.h.  */
34042 _ACEOF
34043 cat confdefs.h >>conftest.$ac_ext
34044 cat >>conftest.$ac_ext <<_ACEOF
34045 /* end confdefs.h.  */
34046 $ac_includes_default
34047 typedef uintptr_t ac__type_new_;
34048 int
34049 main ()
34050 {
34051 if ((ac__type_new_ *) 0)
34052   return 0;
34053 if (sizeof (ac__type_new_))
34054   return 0;
34055   ;
34056   return 0;
34057 }
34058 _ACEOF
34059 rm -f conftest.$ac_objext
34060 if { (ac_try="$ac_compile"
34061 case "(($ac_try" in
34062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34063   *) ac_try_echo=$ac_try;;
34064 esac
34065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34066   (eval "$ac_compile") 2>conftest.er1
34067   ac_status=$?
34068   grep -v '^ *+' conftest.er1 >conftest.err
34069   rm -f conftest.er1
34070   cat conftest.err >&5
34071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34072   (exit $ac_status); } && {
34073          test -z "$ac_c_werror_flag" ||
34074          test ! -s conftest.err
34075        } && test -s conftest.$ac_objext; then
34076   ac_cv_type_uintptr_t=yes
34077 else
34078   echo "$as_me: failed program was:" >&5
34079 sed 's/^/| /' conftest.$ac_ext >&5
34080
34081         ac_cv_type_uintptr_t=no
34082 fi
34083
34084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34085 fi
34086 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34087 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34088 if test $ac_cv_type_uintptr_t = yes; then
34089
34090 cat >>confdefs.h <<\_ACEOF
34091 #define HAVE_UINTPTR_T 1
34092 _ACEOF
34093
34094 else
34095   for ac_type in 'unsigned int' 'unsigned long int' \
34096         'unsigned long long int'; do
34097        cat >conftest.$ac_ext <<_ACEOF
34098 /* confdefs.h.  */
34099 _ACEOF
34100 cat confdefs.h >>conftest.$ac_ext
34101 cat >>conftest.$ac_ext <<_ACEOF
34102 /* end confdefs.h.  */
34103 $ac_includes_default
34104 int
34105 main ()
34106 {
34107 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34108 test_array [0] = 0
34109
34110   ;
34111   return 0;
34112 }
34113 _ACEOF
34114 rm -f conftest.$ac_objext
34115 if { (ac_try="$ac_compile"
34116 case "(($ac_try" in
34117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34118   *) ac_try_echo=$ac_try;;
34119 esac
34120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34121   (eval "$ac_compile") 2>conftest.er1
34122   ac_status=$?
34123   grep -v '^ *+' conftest.er1 >conftest.err
34124   rm -f conftest.er1
34125   cat conftest.err >&5
34126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34127   (exit $ac_status); } && {
34128          test -z "$ac_c_werror_flag" ||
34129          test ! -s conftest.err
34130        } && test -s conftest.$ac_objext; then
34131
34132 cat >>confdefs.h <<_ACEOF
34133 #define uintptr_t $ac_type
34134 _ACEOF
34135
34136           ac_type=
34137 else
34138   echo "$as_me: failed program was:" >&5
34139 sed 's/^/| /' conftest.$ac_ext >&5
34140
34141
34142 fi
34143
34144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34145        test -z "$ac_type" && break
34146      done
34147 fi
34148
34149
34150 { echo "$as_me:$LINENO: checking for ino_t" >&5
34151 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34152 if test "${ac_cv_type_ino_t+set}" = set; then
34153   echo $ECHO_N "(cached) $ECHO_C" >&6
34154 else
34155   cat >conftest.$ac_ext <<_ACEOF
34156 /* confdefs.h.  */
34157 _ACEOF
34158 cat confdefs.h >>conftest.$ac_ext
34159 cat >>conftest.$ac_ext <<_ACEOF
34160 /* end confdefs.h.  */
34161 $ac_includes_default
34162 typedef ino_t ac__type_new_;
34163 int
34164 main ()
34165 {
34166 if ((ac__type_new_ *) 0)
34167   return 0;
34168 if (sizeof (ac__type_new_))
34169   return 0;
34170   ;
34171   return 0;
34172 }
34173 _ACEOF
34174 rm -f conftest.$ac_objext
34175 if { (ac_try="$ac_compile"
34176 case "(($ac_try" in
34177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34178   *) ac_try_echo=$ac_try;;
34179 esac
34180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34181   (eval "$ac_compile") 2>conftest.er1
34182   ac_status=$?
34183   grep -v '^ *+' conftest.er1 >conftest.err
34184   rm -f conftest.er1
34185   cat conftest.err >&5
34186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34187   (exit $ac_status); } && {
34188          test -z "$ac_c_werror_flag" ||
34189          test ! -s conftest.err
34190        } && test -s conftest.$ac_objext; then
34191   ac_cv_type_ino_t=yes
34192 else
34193   echo "$as_me: failed program was:" >&5
34194 sed 's/^/| /' conftest.$ac_ext >&5
34195
34196         ac_cv_type_ino_t=no
34197 fi
34198
34199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34200 fi
34201 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34202 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34203 if test $ac_cv_type_ino_t = yes; then
34204   :
34205 else
34206
34207 cat >>confdefs.h <<_ACEOF
34208 #define ino_t unsigned long
34209 _ACEOF
34210
34211 fi
34212
34213 { echo "$as_me:$LINENO: checking for dev_t" >&5
34214 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34215 if test "${ac_cv_type_dev_t+set}" = set; then
34216   echo $ECHO_N "(cached) $ECHO_C" >&6
34217 else
34218   cat >conftest.$ac_ext <<_ACEOF
34219 /* confdefs.h.  */
34220 _ACEOF
34221 cat confdefs.h >>conftest.$ac_ext
34222 cat >>conftest.$ac_ext <<_ACEOF
34223 /* end confdefs.h.  */
34224 $ac_includes_default
34225 typedef dev_t ac__type_new_;
34226 int
34227 main ()
34228 {
34229 if ((ac__type_new_ *) 0)
34230   return 0;
34231 if (sizeof (ac__type_new_))
34232   return 0;
34233   ;
34234   return 0;
34235 }
34236 _ACEOF
34237 rm -f conftest.$ac_objext
34238 if { (ac_try="$ac_compile"
34239 case "(($ac_try" in
34240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34241   *) ac_try_echo=$ac_try;;
34242 esac
34243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34244   (eval "$ac_compile") 2>conftest.er1
34245   ac_status=$?
34246   grep -v '^ *+' conftest.er1 >conftest.err
34247   rm -f conftest.er1
34248   cat conftest.err >&5
34249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250   (exit $ac_status); } && {
34251          test -z "$ac_c_werror_flag" ||
34252          test ! -s conftest.err
34253        } && test -s conftest.$ac_objext; then
34254   ac_cv_type_dev_t=yes
34255 else
34256   echo "$as_me: failed program was:" >&5
34257 sed 's/^/| /' conftest.$ac_ext >&5
34258
34259         ac_cv_type_dev_t=no
34260 fi
34261
34262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34263 fi
34264 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34265 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34266 if test $ac_cv_type_dev_t = yes; then
34267   :
34268 else
34269
34270 cat >>confdefs.h <<_ACEOF
34271 #define dev_t unsigned long
34272 _ACEOF
34273
34274 fi
34275
34276 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34277 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34278 if test "${ac_cv_type_daddr_t+set}" = set; then
34279   echo $ECHO_N "(cached) $ECHO_C" >&6
34280 else
34281   cat >conftest.$ac_ext <<_ACEOF
34282 /* confdefs.h.  */
34283 _ACEOF
34284 cat confdefs.h >>conftest.$ac_ext
34285 cat >>conftest.$ac_ext <<_ACEOF
34286 /* end confdefs.h.  */
34287 $ac_includes_default
34288 typedef daddr_t ac__type_new_;
34289 int
34290 main ()
34291 {
34292 if ((ac__type_new_ *) 0)
34293   return 0;
34294 if (sizeof (ac__type_new_))
34295   return 0;
34296   ;
34297   return 0;
34298 }
34299 _ACEOF
34300 rm -f conftest.$ac_objext
34301 if { (ac_try="$ac_compile"
34302 case "(($ac_try" in
34303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34304   *) ac_try_echo=$ac_try;;
34305 esac
34306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34307   (eval "$ac_compile") 2>conftest.er1
34308   ac_status=$?
34309   grep -v '^ *+' conftest.er1 >conftest.err
34310   rm -f conftest.er1
34311   cat conftest.err >&5
34312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34313   (exit $ac_status); } && {
34314          test -z "$ac_c_werror_flag" ||
34315          test ! -s conftest.err
34316        } && test -s conftest.$ac_objext; then
34317   ac_cv_type_daddr_t=yes
34318 else
34319   echo "$as_me: failed program was:" >&5
34320 sed 's/^/| /' conftest.$ac_ext >&5
34321
34322         ac_cv_type_daddr_t=no
34323 fi
34324
34325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34326 fi
34327 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34328 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34329 if test $ac_cv_type_daddr_t = yes; then
34330   :
34331 else
34332
34333 cat >>confdefs.h <<_ACEOF
34334 #define daddr_t long
34335 _ACEOF
34336
34337 fi
34338
34339 { echo "$as_me:$LINENO: checking for major_t" >&5
34340 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34341 if test "${ac_cv_type_major_t+set}" = set; then
34342   echo $ECHO_N "(cached) $ECHO_C" >&6
34343 else
34344   cat >conftest.$ac_ext <<_ACEOF
34345 /* confdefs.h.  */
34346 _ACEOF
34347 cat confdefs.h >>conftest.$ac_ext
34348 cat >>conftest.$ac_ext <<_ACEOF
34349 /* end confdefs.h.  */
34350 $ac_includes_default
34351 typedef major_t ac__type_new_;
34352 int
34353 main ()
34354 {
34355 if ((ac__type_new_ *) 0)
34356   return 0;
34357 if (sizeof (ac__type_new_))
34358   return 0;
34359   ;
34360   return 0;
34361 }
34362 _ACEOF
34363 rm -f conftest.$ac_objext
34364 if { (ac_try="$ac_compile"
34365 case "(($ac_try" in
34366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34367   *) ac_try_echo=$ac_try;;
34368 esac
34369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34370   (eval "$ac_compile") 2>conftest.er1
34371   ac_status=$?
34372   grep -v '^ *+' conftest.er1 >conftest.err
34373   rm -f conftest.er1
34374   cat conftest.err >&5
34375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34376   (exit $ac_status); } && {
34377          test -z "$ac_c_werror_flag" ||
34378          test ! -s conftest.err
34379        } && test -s conftest.$ac_objext; then
34380   ac_cv_type_major_t=yes
34381 else
34382   echo "$as_me: failed program was:" >&5
34383 sed 's/^/| /' conftest.$ac_ext >&5
34384
34385         ac_cv_type_major_t=no
34386 fi
34387
34388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34389 fi
34390 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34391 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34392 if test $ac_cv_type_major_t = yes; then
34393   :
34394 else
34395
34396 cat >>confdefs.h <<_ACEOF
34397 #define major_t int
34398 _ACEOF
34399
34400 fi
34401
34402 { echo "$as_me:$LINENO: checking for minor_t" >&5
34403 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34404 if test "${ac_cv_type_minor_t+set}" = set; then
34405   echo $ECHO_N "(cached) $ECHO_C" >&6
34406 else
34407   cat >conftest.$ac_ext <<_ACEOF
34408 /* confdefs.h.  */
34409 _ACEOF
34410 cat confdefs.h >>conftest.$ac_ext
34411 cat >>conftest.$ac_ext <<_ACEOF
34412 /* end confdefs.h.  */
34413 $ac_includes_default
34414 typedef minor_t ac__type_new_;
34415 int
34416 main ()
34417 {
34418 if ((ac__type_new_ *) 0)
34419   return 0;
34420 if (sizeof (ac__type_new_))
34421   return 0;
34422   ;
34423   return 0;
34424 }
34425 _ACEOF
34426 rm -f conftest.$ac_objext
34427 if { (ac_try="$ac_compile"
34428 case "(($ac_try" in
34429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34430   *) ac_try_echo=$ac_try;;
34431 esac
34432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34433   (eval "$ac_compile") 2>conftest.er1
34434   ac_status=$?
34435   grep -v '^ *+' conftest.er1 >conftest.err
34436   rm -f conftest.er1
34437   cat conftest.err >&5
34438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439   (exit $ac_status); } && {
34440          test -z "$ac_c_werror_flag" ||
34441          test ! -s conftest.err
34442        } && test -s conftest.$ac_objext; then
34443   ac_cv_type_minor_t=yes
34444 else
34445   echo "$as_me: failed program was:" >&5
34446 sed 's/^/| /' conftest.$ac_ext >&5
34447
34448         ac_cv_type_minor_t=no
34449 fi
34450
34451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34452 fi
34453 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34454 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34455 if test $ac_cv_type_minor_t = yes; then
34456   :
34457 else
34458
34459 cat >>confdefs.h <<_ACEOF
34460 #define minor_t int
34461 _ACEOF
34462
34463 fi
34464
34465 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34466 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34467 if test "${ac_cv_type_ssize_t+set}" = set; then
34468   echo $ECHO_N "(cached) $ECHO_C" >&6
34469 else
34470   cat >conftest.$ac_ext <<_ACEOF
34471 /* confdefs.h.  */
34472 _ACEOF
34473 cat confdefs.h >>conftest.$ac_ext
34474 cat >>conftest.$ac_ext <<_ACEOF
34475 /* end confdefs.h.  */
34476 $ac_includes_default
34477 typedef ssize_t ac__type_new_;
34478 int
34479 main ()
34480 {
34481 if ((ac__type_new_ *) 0)
34482   return 0;
34483 if (sizeof (ac__type_new_))
34484   return 0;
34485   ;
34486   return 0;
34487 }
34488 _ACEOF
34489 rm -f conftest.$ac_objext
34490 if { (ac_try="$ac_compile"
34491 case "(($ac_try" in
34492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34493   *) ac_try_echo=$ac_try;;
34494 esac
34495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34496   (eval "$ac_compile") 2>conftest.er1
34497   ac_status=$?
34498   grep -v '^ *+' conftest.er1 >conftest.err
34499   rm -f conftest.er1
34500   cat conftest.err >&5
34501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34502   (exit $ac_status); } && {
34503          test -z "$ac_c_werror_flag" ||
34504          test ! -s conftest.err
34505        } && test -s conftest.$ac_objext; then
34506   ac_cv_type_ssize_t=yes
34507 else
34508   echo "$as_me: failed program was:" >&5
34509 sed 's/^/| /' conftest.$ac_ext >&5
34510
34511         ac_cv_type_ssize_t=no
34512 fi
34513
34514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34515 fi
34516 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34517 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34518 if test $ac_cv_type_ssize_t = yes; then
34519   :
34520 else
34521
34522 cat >>confdefs.h <<_ACEOF
34523 #define ssize_t int
34524 _ACEOF
34525
34526 fi
34527
34528 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34529 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34530 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34531   echo $ECHO_N "(cached) $ECHO_C" >&6
34532 else
34533   cat >conftest.$ac_ext <<_ACEOF
34534 /* confdefs.h.  */
34535 _ACEOF
34536 cat confdefs.h >>conftest.$ac_ext
34537 cat >>conftest.$ac_ext <<_ACEOF
34538 /* end confdefs.h.  */
34539 $ac_includes_default
34540 int
34541 main ()
34542 {
34543 static struct stat ac_aggr;
34544 if (ac_aggr.st_blocks)
34545 return 0;
34546   ;
34547   return 0;
34548 }
34549 _ACEOF
34550 rm -f conftest.$ac_objext
34551 if { (ac_try="$ac_compile"
34552 case "(($ac_try" in
34553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34554   *) ac_try_echo=$ac_try;;
34555 esac
34556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34557   (eval "$ac_compile") 2>conftest.er1
34558   ac_status=$?
34559   grep -v '^ *+' conftest.er1 >conftest.err
34560   rm -f conftest.er1
34561   cat conftest.err >&5
34562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34563   (exit $ac_status); } && {
34564          test -z "$ac_c_werror_flag" ||
34565          test ! -s conftest.err
34566        } && test -s conftest.$ac_objext; then
34567   ac_cv_member_struct_stat_st_blocks=yes
34568 else
34569   echo "$as_me: failed program was:" >&5
34570 sed 's/^/| /' conftest.$ac_ext >&5
34571
34572         cat >conftest.$ac_ext <<_ACEOF
34573 /* confdefs.h.  */
34574 _ACEOF
34575 cat confdefs.h >>conftest.$ac_ext
34576 cat >>conftest.$ac_ext <<_ACEOF
34577 /* end confdefs.h.  */
34578 $ac_includes_default
34579 int
34580 main ()
34581 {
34582 static struct stat ac_aggr;
34583 if (sizeof ac_aggr.st_blocks)
34584 return 0;
34585   ;
34586   return 0;
34587 }
34588 _ACEOF
34589 rm -f conftest.$ac_objext
34590 if { (ac_try="$ac_compile"
34591 case "(($ac_try" in
34592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34593   *) ac_try_echo=$ac_try;;
34594 esac
34595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34596   (eval "$ac_compile") 2>conftest.er1
34597   ac_status=$?
34598   grep -v '^ *+' conftest.er1 >conftest.err
34599   rm -f conftest.er1
34600   cat conftest.err >&5
34601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34602   (exit $ac_status); } && {
34603          test -z "$ac_c_werror_flag" ||
34604          test ! -s conftest.err
34605        } && test -s conftest.$ac_objext; then
34606   ac_cv_member_struct_stat_st_blocks=yes
34607 else
34608   echo "$as_me: failed program was:" >&5
34609 sed 's/^/| /' conftest.$ac_ext >&5
34610
34611         ac_cv_member_struct_stat_st_blocks=no
34612 fi
34613
34614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34615 fi
34616
34617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34618 fi
34619 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34620 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34621 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34622
34623 cat >>confdefs.h <<_ACEOF
34624 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34625 _ACEOF
34626
34627
34628 cat >>confdefs.h <<\_ACEOF
34629 #define HAVE_ST_BLOCKS 1
34630 _ACEOF
34631
34632 else
34633   case " $LIBOBJS " in
34634   *" fileblocks.$ac_objext "* ) ;;
34635   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34636  ;;
34637 esac
34638
34639 fi
34640
34641
34642 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34643 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34644 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34645   echo $ECHO_N "(cached) $ECHO_C" >&6
34646 else
34647   cat >conftest.$ac_ext <<_ACEOF
34648 /* confdefs.h.  */
34649 _ACEOF
34650 cat confdefs.h >>conftest.$ac_ext
34651 cat >>conftest.$ac_ext <<_ACEOF
34652 /* end confdefs.h.  */
34653 $ac_includes_default
34654 int
34655 main ()
34656 {
34657 static struct stat ac_aggr;
34658 if (ac_aggr.st_rdev)
34659 return 0;
34660   ;
34661   return 0;
34662 }
34663 _ACEOF
34664 rm -f conftest.$ac_objext
34665 if { (ac_try="$ac_compile"
34666 case "(($ac_try" in
34667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34668   *) ac_try_echo=$ac_try;;
34669 esac
34670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34671   (eval "$ac_compile") 2>conftest.er1
34672   ac_status=$?
34673   grep -v '^ *+' conftest.er1 >conftest.err
34674   rm -f conftest.er1
34675   cat conftest.err >&5
34676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34677   (exit $ac_status); } && {
34678          test -z "$ac_c_werror_flag" ||
34679          test ! -s conftest.err
34680        } && test -s conftest.$ac_objext; then
34681   ac_cv_member_struct_stat_st_rdev=yes
34682 else
34683   echo "$as_me: failed program was:" >&5
34684 sed 's/^/| /' conftest.$ac_ext >&5
34685
34686         cat >conftest.$ac_ext <<_ACEOF
34687 /* confdefs.h.  */
34688 _ACEOF
34689 cat confdefs.h >>conftest.$ac_ext
34690 cat >>conftest.$ac_ext <<_ACEOF
34691 /* end confdefs.h.  */
34692 $ac_includes_default
34693 int
34694 main ()
34695 {
34696 static struct stat ac_aggr;
34697 if (sizeof ac_aggr.st_rdev)
34698 return 0;
34699   ;
34700   return 0;
34701 }
34702 _ACEOF
34703 rm -f conftest.$ac_objext
34704 if { (ac_try="$ac_compile"
34705 case "(($ac_try" in
34706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34707   *) ac_try_echo=$ac_try;;
34708 esac
34709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34710   (eval "$ac_compile") 2>conftest.er1
34711   ac_status=$?
34712   grep -v '^ *+' conftest.er1 >conftest.err
34713   rm -f conftest.er1
34714   cat conftest.err >&5
34715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34716   (exit $ac_status); } && {
34717          test -z "$ac_c_werror_flag" ||
34718          test ! -s conftest.err
34719        } && test -s conftest.$ac_objext; then
34720   ac_cv_member_struct_stat_st_rdev=yes
34721 else
34722   echo "$as_me: failed program was:" >&5
34723 sed 's/^/| /' conftest.$ac_ext >&5
34724
34725         ac_cv_member_struct_stat_st_rdev=no
34726 fi
34727
34728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34729 fi
34730
34731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34732 fi
34733 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34734 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34735 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34736
34737 cat >>confdefs.h <<_ACEOF
34738 #define HAVE_STRUCT_STAT_ST_RDEV 1
34739 _ACEOF
34740
34741
34742 cat >>confdefs.h <<\_ACEOF
34743 #define HAVE_ST_RDEV 1
34744 _ACEOF
34745
34746 fi
34747
34748
34749 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34750 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34751 if test "${ac_cv_struct_tm+set}" = set; then
34752   echo $ECHO_N "(cached) $ECHO_C" >&6
34753 else
34754   cat >conftest.$ac_ext <<_ACEOF
34755 /* confdefs.h.  */
34756 _ACEOF
34757 cat confdefs.h >>conftest.$ac_ext
34758 cat >>conftest.$ac_ext <<_ACEOF
34759 /* end confdefs.h.  */
34760 #include <sys/types.h>
34761 #include <time.h>
34762
34763 int
34764 main ()
34765 {
34766 struct tm tm;
34767                                      int *p = &tm.tm_sec;
34768                                      return !p;
34769   ;
34770   return 0;
34771 }
34772 _ACEOF
34773 rm -f conftest.$ac_objext
34774 if { (ac_try="$ac_compile"
34775 case "(($ac_try" in
34776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34777   *) ac_try_echo=$ac_try;;
34778 esac
34779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34780   (eval "$ac_compile") 2>conftest.er1
34781   ac_status=$?
34782   grep -v '^ *+' conftest.er1 >conftest.err
34783   rm -f conftest.er1
34784   cat conftest.err >&5
34785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34786   (exit $ac_status); } && {
34787          test -z "$ac_c_werror_flag" ||
34788          test ! -s conftest.err
34789        } && test -s conftest.$ac_objext; then
34790   ac_cv_struct_tm=time.h
34791 else
34792   echo "$as_me: failed program was:" >&5
34793 sed 's/^/| /' conftest.$ac_ext >&5
34794
34795         ac_cv_struct_tm=sys/time.h
34796 fi
34797
34798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34799 fi
34800 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34801 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34802 if test $ac_cv_struct_tm = sys/time.h; then
34803
34804 cat >>confdefs.h <<\_ACEOF
34805 #define TM_IN_SYS_TIME 1
34806 _ACEOF
34807
34808 fi
34809
34810 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34811 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34812 if test "${ac_cv_c_const+set}" = set; then
34813   echo $ECHO_N "(cached) $ECHO_C" >&6
34814 else
34815   cat >conftest.$ac_ext <<_ACEOF
34816 /* confdefs.h.  */
34817 _ACEOF
34818 cat confdefs.h >>conftest.$ac_ext
34819 cat >>conftest.$ac_ext <<_ACEOF
34820 /* end confdefs.h.  */
34821
34822 int
34823 main ()
34824 {
34825 /* FIXME: Include the comments suggested by Paul. */
34826 #ifndef __cplusplus
34827   /* Ultrix mips cc rejects this.  */
34828   typedef int charset[2];
34829   const charset cs;
34830   /* SunOS 4.1.1 cc rejects this.  */
34831   char const *const *pcpcc;
34832   char **ppc;
34833   /* NEC SVR4.0.2 mips cc rejects this.  */
34834   struct point {int x, y;};
34835   static struct point const zero = {0,0};
34836   /* AIX XL C 1.02.0.0 rejects this.
34837      It does not let you subtract one const X* pointer from another in
34838      an arm of an if-expression whose if-part is not a constant
34839      expression */
34840   const char *g = "string";
34841   pcpcc = &g + (g ? g-g : 0);
34842   /* HPUX 7.0 cc rejects these. */
34843   ++pcpcc;
34844   ppc = (char**) pcpcc;
34845   pcpcc = (char const *const *) ppc;
34846   { /* SCO 3.2v4 cc rejects this.  */
34847     char *t;
34848     char const *s = 0 ? (char *) 0 : (char const *) 0;
34849
34850     *t++ = 0;
34851     if (s) return 0;
34852   }
34853   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34854     int x[] = {25, 17};
34855     const int *foo = &x[0];
34856     ++foo;
34857   }
34858   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34859     typedef const int *iptr;
34860     iptr p = 0;
34861     ++p;
34862   }
34863   { /* AIX XL C 1.02.0.0 rejects this saying
34864        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34865     struct s { int j; const int *ap[3]; };
34866     struct s *b; b->j = 5;
34867   }
34868   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34869     const int foo = 10;
34870     if (!foo) return 0;
34871   }
34872   return !cs[0] && !zero.x;
34873 #endif
34874
34875   ;
34876   return 0;
34877 }
34878 _ACEOF
34879 rm -f conftest.$ac_objext
34880 if { (ac_try="$ac_compile"
34881 case "(($ac_try" in
34882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34883   *) ac_try_echo=$ac_try;;
34884 esac
34885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34886   (eval "$ac_compile") 2>conftest.er1
34887   ac_status=$?
34888   grep -v '^ *+' conftest.er1 >conftest.err
34889   rm -f conftest.er1
34890   cat conftest.err >&5
34891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34892   (exit $ac_status); } && {
34893          test -z "$ac_c_werror_flag" ||
34894          test ! -s conftest.err
34895        } && test -s conftest.$ac_objext; then
34896   ac_cv_c_const=yes
34897 else
34898   echo "$as_me: failed program was:" >&5
34899 sed 's/^/| /' conftest.$ac_ext >&5
34900
34901         ac_cv_c_const=no
34902 fi
34903
34904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34905 fi
34906 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34907 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34908 if test $ac_cv_c_const = no; then
34909
34910 cat >>confdefs.h <<\_ACEOF
34911 #define const
34912 _ACEOF
34913
34914 fi
34915
34916
34917 { echo "$as_me:$LINENO: checking for char" >&5
34918 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34919 if test "${ac_cv_type_char+set}" = set; then
34920   echo $ECHO_N "(cached) $ECHO_C" >&6
34921 else
34922   cat >conftest.$ac_ext <<_ACEOF
34923 /* confdefs.h.  */
34924 _ACEOF
34925 cat confdefs.h >>conftest.$ac_ext
34926 cat >>conftest.$ac_ext <<_ACEOF
34927 /* end confdefs.h.  */
34928 $ac_includes_default
34929 typedef char ac__type_new_;
34930 int
34931 main ()
34932 {
34933 if ((ac__type_new_ *) 0)
34934   return 0;
34935 if (sizeof (ac__type_new_))
34936   return 0;
34937   ;
34938   return 0;
34939 }
34940 _ACEOF
34941 rm -f conftest.$ac_objext
34942 if { (ac_try="$ac_compile"
34943 case "(($ac_try" in
34944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34945   *) ac_try_echo=$ac_try;;
34946 esac
34947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34948   (eval "$ac_compile") 2>conftest.er1
34949   ac_status=$?
34950   grep -v '^ *+' conftest.er1 >conftest.err
34951   rm -f conftest.er1
34952   cat conftest.err >&5
34953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954   (exit $ac_status); } && {
34955          test -z "$ac_c_werror_flag" ||
34956          test ! -s conftest.err
34957        } && test -s conftest.$ac_objext; then
34958   ac_cv_type_char=yes
34959 else
34960   echo "$as_me: failed program was:" >&5
34961 sed 's/^/| /' conftest.$ac_ext >&5
34962
34963         ac_cv_type_char=no
34964 fi
34965
34966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34967 fi
34968 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34969 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34970
34971 # The cast to long int works around a bug in the HP C Compiler
34972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34974 # This bug is HP SR number 8606223364.
34975 { echo "$as_me:$LINENO: checking size of char" >&5
34976 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34977 if test "${ac_cv_sizeof_char+set}" = set; then
34978   echo $ECHO_N "(cached) $ECHO_C" >&6
34979 else
34980   if test "$cross_compiling" = yes; then
34981   # Depending upon the size, compute the lo and hi bounds.
34982 cat >conftest.$ac_ext <<_ACEOF
34983 /* confdefs.h.  */
34984 _ACEOF
34985 cat confdefs.h >>conftest.$ac_ext
34986 cat >>conftest.$ac_ext <<_ACEOF
34987 /* end confdefs.h.  */
34988 $ac_includes_default
34989    typedef char ac__type_sizeof_;
34990 int
34991 main ()
34992 {
34993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34994 test_array [0] = 0
34995
34996   ;
34997   return 0;
34998 }
34999 _ACEOF
35000 rm -f conftest.$ac_objext
35001 if { (ac_try="$ac_compile"
35002 case "(($ac_try" in
35003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35004   *) ac_try_echo=$ac_try;;
35005 esac
35006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35007   (eval "$ac_compile") 2>conftest.er1
35008   ac_status=$?
35009   grep -v '^ *+' conftest.er1 >conftest.err
35010   rm -f conftest.er1
35011   cat conftest.err >&5
35012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35013   (exit $ac_status); } && {
35014          test -z "$ac_c_werror_flag" ||
35015          test ! -s conftest.err
35016        } && test -s conftest.$ac_objext; then
35017   ac_lo=0 ac_mid=0
35018   while :; do
35019     cat >conftest.$ac_ext <<_ACEOF
35020 /* confdefs.h.  */
35021 _ACEOF
35022 cat confdefs.h >>conftest.$ac_ext
35023 cat >>conftest.$ac_ext <<_ACEOF
35024 /* end confdefs.h.  */
35025 $ac_includes_default
35026    typedef char ac__type_sizeof_;
35027 int
35028 main ()
35029 {
35030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35031 test_array [0] = 0
35032
35033   ;
35034   return 0;
35035 }
35036 _ACEOF
35037 rm -f conftest.$ac_objext
35038 if { (ac_try="$ac_compile"
35039 case "(($ac_try" in
35040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35041   *) ac_try_echo=$ac_try;;
35042 esac
35043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35044   (eval "$ac_compile") 2>conftest.er1
35045   ac_status=$?
35046   grep -v '^ *+' conftest.er1 >conftest.err
35047   rm -f conftest.er1
35048   cat conftest.err >&5
35049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35050   (exit $ac_status); } && {
35051          test -z "$ac_c_werror_flag" ||
35052          test ! -s conftest.err
35053        } && test -s conftest.$ac_objext; then
35054   ac_hi=$ac_mid; break
35055 else
35056   echo "$as_me: failed program was:" >&5
35057 sed 's/^/| /' conftest.$ac_ext >&5
35058
35059         ac_lo=`expr $ac_mid + 1`
35060                         if test $ac_lo -le $ac_mid; then
35061                           ac_lo= ac_hi=
35062                           break
35063                         fi
35064                         ac_mid=`expr 2 '*' $ac_mid + 1`
35065 fi
35066
35067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35068   done
35069 else
35070   echo "$as_me: failed program was:" >&5
35071 sed 's/^/| /' conftest.$ac_ext >&5
35072
35073         cat >conftest.$ac_ext <<_ACEOF
35074 /* confdefs.h.  */
35075 _ACEOF
35076 cat confdefs.h >>conftest.$ac_ext
35077 cat >>conftest.$ac_ext <<_ACEOF
35078 /* end confdefs.h.  */
35079 $ac_includes_default
35080    typedef char ac__type_sizeof_;
35081 int
35082 main ()
35083 {
35084 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35085 test_array [0] = 0
35086
35087   ;
35088   return 0;
35089 }
35090 _ACEOF
35091 rm -f conftest.$ac_objext
35092 if { (ac_try="$ac_compile"
35093 case "(($ac_try" in
35094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35095   *) ac_try_echo=$ac_try;;
35096 esac
35097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35098   (eval "$ac_compile") 2>conftest.er1
35099   ac_status=$?
35100   grep -v '^ *+' conftest.er1 >conftest.err
35101   rm -f conftest.er1
35102   cat conftest.err >&5
35103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35104   (exit $ac_status); } && {
35105          test -z "$ac_c_werror_flag" ||
35106          test ! -s conftest.err
35107        } && test -s conftest.$ac_objext; then
35108   ac_hi=-1 ac_mid=-1
35109   while :; do
35110     cat >conftest.$ac_ext <<_ACEOF
35111 /* confdefs.h.  */
35112 _ACEOF
35113 cat confdefs.h >>conftest.$ac_ext
35114 cat >>conftest.$ac_ext <<_ACEOF
35115 /* end confdefs.h.  */
35116 $ac_includes_default
35117    typedef char ac__type_sizeof_;
35118 int
35119 main ()
35120 {
35121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35122 test_array [0] = 0
35123
35124   ;
35125   return 0;
35126 }
35127 _ACEOF
35128 rm -f conftest.$ac_objext
35129 if { (ac_try="$ac_compile"
35130 case "(($ac_try" in
35131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35132   *) ac_try_echo=$ac_try;;
35133 esac
35134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35135   (eval "$ac_compile") 2>conftest.er1
35136   ac_status=$?
35137   grep -v '^ *+' conftest.er1 >conftest.err
35138   rm -f conftest.er1
35139   cat conftest.err >&5
35140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35141   (exit $ac_status); } && {
35142          test -z "$ac_c_werror_flag" ||
35143          test ! -s conftest.err
35144        } && test -s conftest.$ac_objext; then
35145   ac_lo=$ac_mid; break
35146 else
35147   echo "$as_me: failed program was:" >&5
35148 sed 's/^/| /' conftest.$ac_ext >&5
35149
35150         ac_hi=`expr '(' $ac_mid ')' - 1`
35151                         if test $ac_mid -le $ac_hi; then
35152                           ac_lo= ac_hi=
35153                           break
35154                         fi
35155                         ac_mid=`expr 2 '*' $ac_mid`
35156 fi
35157
35158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35159   done
35160 else
35161   echo "$as_me: failed program was:" >&5
35162 sed 's/^/| /' conftest.$ac_ext >&5
35163
35164         ac_lo= ac_hi=
35165 fi
35166
35167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35168 fi
35169
35170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35171 # Binary search between lo and hi bounds.
35172 while test "x$ac_lo" != "x$ac_hi"; do
35173   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35174   cat >conftest.$ac_ext <<_ACEOF
35175 /* confdefs.h.  */
35176 _ACEOF
35177 cat confdefs.h >>conftest.$ac_ext
35178 cat >>conftest.$ac_ext <<_ACEOF
35179 /* end confdefs.h.  */
35180 $ac_includes_default
35181    typedef char ac__type_sizeof_;
35182 int
35183 main ()
35184 {
35185 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35186 test_array [0] = 0
35187
35188   ;
35189   return 0;
35190 }
35191 _ACEOF
35192 rm -f conftest.$ac_objext
35193 if { (ac_try="$ac_compile"
35194 case "(($ac_try" in
35195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35196   *) ac_try_echo=$ac_try;;
35197 esac
35198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35199   (eval "$ac_compile") 2>conftest.er1
35200   ac_status=$?
35201   grep -v '^ *+' conftest.er1 >conftest.err
35202   rm -f conftest.er1
35203   cat conftest.err >&5
35204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205   (exit $ac_status); } && {
35206          test -z "$ac_c_werror_flag" ||
35207          test ! -s conftest.err
35208        } && test -s conftest.$ac_objext; then
35209   ac_hi=$ac_mid
35210 else
35211   echo "$as_me: failed program was:" >&5
35212 sed 's/^/| /' conftest.$ac_ext >&5
35213
35214         ac_lo=`expr '(' $ac_mid ')' + 1`
35215 fi
35216
35217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35218 done
35219 case $ac_lo in
35220 ?*) ac_cv_sizeof_char=$ac_lo;;
35221 '') if test "$ac_cv_type_char" = yes; then
35222      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35223 See \`config.log' for more details." >&5
35224 echo "$as_me: error: cannot compute sizeof (char)
35225 See \`config.log' for more details." >&2;}
35226    { (exit 77); exit 77; }; }
35227    else
35228      ac_cv_sizeof_char=0
35229    fi ;;
35230 esac
35231 else
35232   cat >conftest.$ac_ext <<_ACEOF
35233 /* confdefs.h.  */
35234 _ACEOF
35235 cat confdefs.h >>conftest.$ac_ext
35236 cat >>conftest.$ac_ext <<_ACEOF
35237 /* end confdefs.h.  */
35238 $ac_includes_default
35239    typedef char ac__type_sizeof_;
35240 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35241 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35242 #include <stdio.h>
35243 #include <stdlib.h>
35244 int
35245 main ()
35246 {
35247
35248   FILE *f = fopen ("conftest.val", "w");
35249   if (! f)
35250     return 1;
35251   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35252     {
35253       long int i = longval ();
35254       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35255         return 1;
35256       fprintf (f, "%ld\n", i);
35257     }
35258   else
35259     {
35260       unsigned long int i = ulongval ();
35261       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35262         return 1;
35263       fprintf (f, "%lu\n", i);
35264     }
35265   return ferror (f) || fclose (f) != 0;
35266
35267   ;
35268   return 0;
35269 }
35270 _ACEOF
35271 rm -f conftest$ac_exeext
35272 if { (ac_try="$ac_link"
35273 case "(($ac_try" in
35274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35275   *) ac_try_echo=$ac_try;;
35276 esac
35277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35278   (eval "$ac_link") 2>&5
35279   ac_status=$?
35280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35281   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35282   { (case "(($ac_try" in
35283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35284   *) ac_try_echo=$ac_try;;
35285 esac
35286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35287   (eval "$ac_try") 2>&5
35288   ac_status=$?
35289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35290   (exit $ac_status); }; }; then
35291   ac_cv_sizeof_char=`cat conftest.val`
35292 else
35293   echo "$as_me: program exited with status $ac_status" >&5
35294 echo "$as_me: failed program was:" >&5
35295 sed 's/^/| /' conftest.$ac_ext >&5
35296
35297 ( exit $ac_status )
35298 if test "$ac_cv_type_char" = yes; then
35299      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35300 See \`config.log' for more details." >&5
35301 echo "$as_me: error: cannot compute sizeof (char)
35302 See \`config.log' for more details." >&2;}
35303    { (exit 77); exit 77; }; }
35304    else
35305      ac_cv_sizeof_char=0
35306    fi
35307 fi
35308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35309 fi
35310 rm -f conftest.val
35311 fi
35312 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35313 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35314
35315
35316
35317 cat >>confdefs.h <<_ACEOF
35318 #define SIZEOF_CHAR $ac_cv_sizeof_char
35319 _ACEOF
35320
35321
35322 { echo "$as_me:$LINENO: checking for short int" >&5
35323 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35324 if test "${ac_cv_type_short_int+set}" = set; then
35325   echo $ECHO_N "(cached) $ECHO_C" >&6
35326 else
35327   cat >conftest.$ac_ext <<_ACEOF
35328 /* confdefs.h.  */
35329 _ACEOF
35330 cat confdefs.h >>conftest.$ac_ext
35331 cat >>conftest.$ac_ext <<_ACEOF
35332 /* end confdefs.h.  */
35333 $ac_includes_default
35334 typedef short int ac__type_new_;
35335 int
35336 main ()
35337 {
35338 if ((ac__type_new_ *) 0)
35339   return 0;
35340 if (sizeof (ac__type_new_))
35341   return 0;
35342   ;
35343   return 0;
35344 }
35345 _ACEOF
35346 rm -f conftest.$ac_objext
35347 if { (ac_try="$ac_compile"
35348 case "(($ac_try" in
35349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35350   *) ac_try_echo=$ac_try;;
35351 esac
35352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35353   (eval "$ac_compile") 2>conftest.er1
35354   ac_status=$?
35355   grep -v '^ *+' conftest.er1 >conftest.err
35356   rm -f conftest.er1
35357   cat conftest.err >&5
35358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35359   (exit $ac_status); } && {
35360          test -z "$ac_c_werror_flag" ||
35361          test ! -s conftest.err
35362        } && test -s conftest.$ac_objext; then
35363   ac_cv_type_short_int=yes
35364 else
35365   echo "$as_me: failed program was:" >&5
35366 sed 's/^/| /' conftest.$ac_ext >&5
35367
35368         ac_cv_type_short_int=no
35369 fi
35370
35371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35372 fi
35373 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35374 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35375
35376 # The cast to long int works around a bug in the HP C Compiler
35377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35379 # This bug is HP SR number 8606223364.
35380 { echo "$as_me:$LINENO: checking size of short int" >&5
35381 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35382 if test "${ac_cv_sizeof_short_int+set}" = set; then
35383   echo $ECHO_N "(cached) $ECHO_C" >&6
35384 else
35385   if test "$cross_compiling" = yes; then
35386   # Depending upon the size, compute the lo and hi bounds.
35387 cat >conftest.$ac_ext <<_ACEOF
35388 /* confdefs.h.  */
35389 _ACEOF
35390 cat confdefs.h >>conftest.$ac_ext
35391 cat >>conftest.$ac_ext <<_ACEOF
35392 /* end confdefs.h.  */
35393 $ac_includes_default
35394    typedef short int ac__type_sizeof_;
35395 int
35396 main ()
35397 {
35398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35399 test_array [0] = 0
35400
35401   ;
35402   return 0;
35403 }
35404 _ACEOF
35405 rm -f conftest.$ac_objext
35406 if { (ac_try="$ac_compile"
35407 case "(($ac_try" in
35408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35409   *) ac_try_echo=$ac_try;;
35410 esac
35411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35412   (eval "$ac_compile") 2>conftest.er1
35413   ac_status=$?
35414   grep -v '^ *+' conftest.er1 >conftest.err
35415   rm -f conftest.er1
35416   cat conftest.err >&5
35417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35418   (exit $ac_status); } && {
35419          test -z "$ac_c_werror_flag" ||
35420          test ! -s conftest.err
35421        } && test -s conftest.$ac_objext; then
35422   ac_lo=0 ac_mid=0
35423   while :; do
35424     cat >conftest.$ac_ext <<_ACEOF
35425 /* confdefs.h.  */
35426 _ACEOF
35427 cat confdefs.h >>conftest.$ac_ext
35428 cat >>conftest.$ac_ext <<_ACEOF
35429 /* end confdefs.h.  */
35430 $ac_includes_default
35431    typedef short int ac__type_sizeof_;
35432 int
35433 main ()
35434 {
35435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35436 test_array [0] = 0
35437
35438   ;
35439   return 0;
35440 }
35441 _ACEOF
35442 rm -f conftest.$ac_objext
35443 if { (ac_try="$ac_compile"
35444 case "(($ac_try" in
35445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35446   *) ac_try_echo=$ac_try;;
35447 esac
35448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35449   (eval "$ac_compile") 2>conftest.er1
35450   ac_status=$?
35451   grep -v '^ *+' conftest.er1 >conftest.err
35452   rm -f conftest.er1
35453   cat conftest.err >&5
35454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35455   (exit $ac_status); } && {
35456          test -z "$ac_c_werror_flag" ||
35457          test ! -s conftest.err
35458        } && test -s conftest.$ac_objext; then
35459   ac_hi=$ac_mid; break
35460 else
35461   echo "$as_me: failed program was:" >&5
35462 sed 's/^/| /' conftest.$ac_ext >&5
35463
35464         ac_lo=`expr $ac_mid + 1`
35465                         if test $ac_lo -le $ac_mid; then
35466                           ac_lo= ac_hi=
35467                           break
35468                         fi
35469                         ac_mid=`expr 2 '*' $ac_mid + 1`
35470 fi
35471
35472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35473   done
35474 else
35475   echo "$as_me: failed program was:" >&5
35476 sed 's/^/| /' conftest.$ac_ext >&5
35477
35478         cat >conftest.$ac_ext <<_ACEOF
35479 /* confdefs.h.  */
35480 _ACEOF
35481 cat confdefs.h >>conftest.$ac_ext
35482 cat >>conftest.$ac_ext <<_ACEOF
35483 /* end confdefs.h.  */
35484 $ac_includes_default
35485    typedef short int ac__type_sizeof_;
35486 int
35487 main ()
35488 {
35489 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35490 test_array [0] = 0
35491
35492   ;
35493   return 0;
35494 }
35495 _ACEOF
35496 rm -f conftest.$ac_objext
35497 if { (ac_try="$ac_compile"
35498 case "(($ac_try" in
35499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35500   *) ac_try_echo=$ac_try;;
35501 esac
35502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35503   (eval "$ac_compile") 2>conftest.er1
35504   ac_status=$?
35505   grep -v '^ *+' conftest.er1 >conftest.err
35506   rm -f conftest.er1
35507   cat conftest.err >&5
35508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35509   (exit $ac_status); } && {
35510          test -z "$ac_c_werror_flag" ||
35511          test ! -s conftest.err
35512        } && test -s conftest.$ac_objext; then
35513   ac_hi=-1 ac_mid=-1
35514   while :; do
35515     cat >conftest.$ac_ext <<_ACEOF
35516 /* confdefs.h.  */
35517 _ACEOF
35518 cat confdefs.h >>conftest.$ac_ext
35519 cat >>conftest.$ac_ext <<_ACEOF
35520 /* end confdefs.h.  */
35521 $ac_includes_default
35522    typedef short int ac__type_sizeof_;
35523 int
35524 main ()
35525 {
35526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35527 test_array [0] = 0
35528
35529   ;
35530   return 0;
35531 }
35532 _ACEOF
35533 rm -f conftest.$ac_objext
35534 if { (ac_try="$ac_compile"
35535 case "(($ac_try" in
35536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35537   *) ac_try_echo=$ac_try;;
35538 esac
35539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35540   (eval "$ac_compile") 2>conftest.er1
35541   ac_status=$?
35542   grep -v '^ *+' conftest.er1 >conftest.err
35543   rm -f conftest.er1
35544   cat conftest.err >&5
35545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35546   (exit $ac_status); } && {
35547          test -z "$ac_c_werror_flag" ||
35548          test ! -s conftest.err
35549        } && test -s conftest.$ac_objext; then
35550   ac_lo=$ac_mid; break
35551 else
35552   echo "$as_me: failed program was:" >&5
35553 sed 's/^/| /' conftest.$ac_ext >&5
35554
35555         ac_hi=`expr '(' $ac_mid ')' - 1`
35556                         if test $ac_mid -le $ac_hi; then
35557                           ac_lo= ac_hi=
35558                           break
35559                         fi
35560                         ac_mid=`expr 2 '*' $ac_mid`
35561 fi
35562
35563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35564   done
35565 else
35566   echo "$as_me: failed program was:" >&5
35567 sed 's/^/| /' conftest.$ac_ext >&5
35568
35569         ac_lo= ac_hi=
35570 fi
35571
35572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35573 fi
35574
35575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35576 # Binary search between lo and hi bounds.
35577 while test "x$ac_lo" != "x$ac_hi"; do
35578   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35579   cat >conftest.$ac_ext <<_ACEOF
35580 /* confdefs.h.  */
35581 _ACEOF
35582 cat confdefs.h >>conftest.$ac_ext
35583 cat >>conftest.$ac_ext <<_ACEOF
35584 /* end confdefs.h.  */
35585 $ac_includes_default
35586    typedef short int ac__type_sizeof_;
35587 int
35588 main ()
35589 {
35590 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35591 test_array [0] = 0
35592
35593   ;
35594   return 0;
35595 }
35596 _ACEOF
35597 rm -f conftest.$ac_objext
35598 if { (ac_try="$ac_compile"
35599 case "(($ac_try" in
35600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35601   *) ac_try_echo=$ac_try;;
35602 esac
35603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35604   (eval "$ac_compile") 2>conftest.er1
35605   ac_status=$?
35606   grep -v '^ *+' conftest.er1 >conftest.err
35607   rm -f conftest.er1
35608   cat conftest.err >&5
35609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35610   (exit $ac_status); } && {
35611          test -z "$ac_c_werror_flag" ||
35612          test ! -s conftest.err
35613        } && test -s conftest.$ac_objext; then
35614   ac_hi=$ac_mid
35615 else
35616   echo "$as_me: failed program was:" >&5
35617 sed 's/^/| /' conftest.$ac_ext >&5
35618
35619         ac_lo=`expr '(' $ac_mid ')' + 1`
35620 fi
35621
35622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35623 done
35624 case $ac_lo in
35625 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35626 '') if test "$ac_cv_type_short_int" = yes; then
35627      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35628 See \`config.log' for more details." >&5
35629 echo "$as_me: error: cannot compute sizeof (short int)
35630 See \`config.log' for more details." >&2;}
35631    { (exit 77); exit 77; }; }
35632    else
35633      ac_cv_sizeof_short_int=0
35634    fi ;;
35635 esac
35636 else
35637   cat >conftest.$ac_ext <<_ACEOF
35638 /* confdefs.h.  */
35639 _ACEOF
35640 cat confdefs.h >>conftest.$ac_ext
35641 cat >>conftest.$ac_ext <<_ACEOF
35642 /* end confdefs.h.  */
35643 $ac_includes_default
35644    typedef short int ac__type_sizeof_;
35645 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35646 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35647 #include <stdio.h>
35648 #include <stdlib.h>
35649 int
35650 main ()
35651 {
35652
35653   FILE *f = fopen ("conftest.val", "w");
35654   if (! f)
35655     return 1;
35656   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35657     {
35658       long int i = longval ();
35659       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35660         return 1;
35661       fprintf (f, "%ld\n", i);
35662     }
35663   else
35664     {
35665       unsigned long int i = ulongval ();
35666       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35667         return 1;
35668       fprintf (f, "%lu\n", i);
35669     }
35670   return ferror (f) || fclose (f) != 0;
35671
35672   ;
35673   return 0;
35674 }
35675 _ACEOF
35676 rm -f conftest$ac_exeext
35677 if { (ac_try="$ac_link"
35678 case "(($ac_try" in
35679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35680   *) ac_try_echo=$ac_try;;
35681 esac
35682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35683   (eval "$ac_link") 2>&5
35684   ac_status=$?
35685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35687   { (case "(($ac_try" in
35688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35689   *) ac_try_echo=$ac_try;;
35690 esac
35691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35692   (eval "$ac_try") 2>&5
35693   ac_status=$?
35694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695   (exit $ac_status); }; }; then
35696   ac_cv_sizeof_short_int=`cat conftest.val`
35697 else
35698   echo "$as_me: program exited with status $ac_status" >&5
35699 echo "$as_me: failed program was:" >&5
35700 sed 's/^/| /' conftest.$ac_ext >&5
35701
35702 ( exit $ac_status )
35703 if test "$ac_cv_type_short_int" = yes; then
35704      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35705 See \`config.log' for more details." >&5
35706 echo "$as_me: error: cannot compute sizeof (short int)
35707 See \`config.log' for more details." >&2;}
35708    { (exit 77); exit 77; }; }
35709    else
35710      ac_cv_sizeof_short_int=0
35711    fi
35712 fi
35713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35714 fi
35715 rm -f conftest.val
35716 fi
35717 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35718 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35719
35720
35721
35722 cat >>confdefs.h <<_ACEOF
35723 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35724 _ACEOF
35725
35726
35727 { echo "$as_me:$LINENO: checking for int" >&5
35728 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35729 if test "${ac_cv_type_int+set}" = set; then
35730   echo $ECHO_N "(cached) $ECHO_C" >&6
35731 else
35732   cat >conftest.$ac_ext <<_ACEOF
35733 /* confdefs.h.  */
35734 _ACEOF
35735 cat confdefs.h >>conftest.$ac_ext
35736 cat >>conftest.$ac_ext <<_ACEOF
35737 /* end confdefs.h.  */
35738 $ac_includes_default
35739 typedef int ac__type_new_;
35740 int
35741 main ()
35742 {
35743 if ((ac__type_new_ *) 0)
35744   return 0;
35745 if (sizeof (ac__type_new_))
35746   return 0;
35747   ;
35748   return 0;
35749 }
35750 _ACEOF
35751 rm -f conftest.$ac_objext
35752 if { (ac_try="$ac_compile"
35753 case "(($ac_try" in
35754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35755   *) ac_try_echo=$ac_try;;
35756 esac
35757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35758   (eval "$ac_compile") 2>conftest.er1
35759   ac_status=$?
35760   grep -v '^ *+' conftest.er1 >conftest.err
35761   rm -f conftest.er1
35762   cat conftest.err >&5
35763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764   (exit $ac_status); } && {
35765          test -z "$ac_c_werror_flag" ||
35766          test ! -s conftest.err
35767        } && test -s conftest.$ac_objext; then
35768   ac_cv_type_int=yes
35769 else
35770   echo "$as_me: failed program was:" >&5
35771 sed 's/^/| /' conftest.$ac_ext >&5
35772
35773         ac_cv_type_int=no
35774 fi
35775
35776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35777 fi
35778 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35779 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35780
35781 # The cast to long int works around a bug in the HP C Compiler
35782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35784 # This bug is HP SR number 8606223364.
35785 { echo "$as_me:$LINENO: checking size of int" >&5
35786 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35787 if test "${ac_cv_sizeof_int+set}" = set; then
35788   echo $ECHO_N "(cached) $ECHO_C" >&6
35789 else
35790   if test "$cross_compiling" = yes; then
35791   # Depending upon the size, compute the lo and hi bounds.
35792 cat >conftest.$ac_ext <<_ACEOF
35793 /* confdefs.h.  */
35794 _ACEOF
35795 cat confdefs.h >>conftest.$ac_ext
35796 cat >>conftest.$ac_ext <<_ACEOF
35797 /* end confdefs.h.  */
35798 $ac_includes_default
35799    typedef int ac__type_sizeof_;
35800 int
35801 main ()
35802 {
35803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35804 test_array [0] = 0
35805
35806   ;
35807   return 0;
35808 }
35809 _ACEOF
35810 rm -f conftest.$ac_objext
35811 if { (ac_try="$ac_compile"
35812 case "(($ac_try" in
35813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35814   *) ac_try_echo=$ac_try;;
35815 esac
35816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35817   (eval "$ac_compile") 2>conftest.er1
35818   ac_status=$?
35819   grep -v '^ *+' conftest.er1 >conftest.err
35820   rm -f conftest.er1
35821   cat conftest.err >&5
35822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35823   (exit $ac_status); } && {
35824          test -z "$ac_c_werror_flag" ||
35825          test ! -s conftest.err
35826        } && test -s conftest.$ac_objext; then
35827   ac_lo=0 ac_mid=0
35828   while :; do
35829     cat >conftest.$ac_ext <<_ACEOF
35830 /* confdefs.h.  */
35831 _ACEOF
35832 cat confdefs.h >>conftest.$ac_ext
35833 cat >>conftest.$ac_ext <<_ACEOF
35834 /* end confdefs.h.  */
35835 $ac_includes_default
35836    typedef int ac__type_sizeof_;
35837 int
35838 main ()
35839 {
35840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35841 test_array [0] = 0
35842
35843   ;
35844   return 0;
35845 }
35846 _ACEOF
35847 rm -f conftest.$ac_objext
35848 if { (ac_try="$ac_compile"
35849 case "(($ac_try" in
35850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35851   *) ac_try_echo=$ac_try;;
35852 esac
35853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35854   (eval "$ac_compile") 2>conftest.er1
35855   ac_status=$?
35856   grep -v '^ *+' conftest.er1 >conftest.err
35857   rm -f conftest.er1
35858   cat conftest.err >&5
35859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35860   (exit $ac_status); } && {
35861          test -z "$ac_c_werror_flag" ||
35862          test ! -s conftest.err
35863        } && test -s conftest.$ac_objext; then
35864   ac_hi=$ac_mid; break
35865 else
35866   echo "$as_me: failed program was:" >&5
35867 sed 's/^/| /' conftest.$ac_ext >&5
35868
35869         ac_lo=`expr $ac_mid + 1`
35870                         if test $ac_lo -le $ac_mid; then
35871                           ac_lo= ac_hi=
35872                           break
35873                         fi
35874                         ac_mid=`expr 2 '*' $ac_mid + 1`
35875 fi
35876
35877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35878   done
35879 else
35880   echo "$as_me: failed program was:" >&5
35881 sed 's/^/| /' conftest.$ac_ext >&5
35882
35883         cat >conftest.$ac_ext <<_ACEOF
35884 /* confdefs.h.  */
35885 _ACEOF
35886 cat confdefs.h >>conftest.$ac_ext
35887 cat >>conftest.$ac_ext <<_ACEOF
35888 /* end confdefs.h.  */
35889 $ac_includes_default
35890    typedef int ac__type_sizeof_;
35891 int
35892 main ()
35893 {
35894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35895 test_array [0] = 0
35896
35897   ;
35898   return 0;
35899 }
35900 _ACEOF
35901 rm -f conftest.$ac_objext
35902 if { (ac_try="$ac_compile"
35903 case "(($ac_try" in
35904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35905   *) ac_try_echo=$ac_try;;
35906 esac
35907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35908   (eval "$ac_compile") 2>conftest.er1
35909   ac_status=$?
35910   grep -v '^ *+' conftest.er1 >conftest.err
35911   rm -f conftest.er1
35912   cat conftest.err >&5
35913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914   (exit $ac_status); } && {
35915          test -z "$ac_c_werror_flag" ||
35916          test ! -s conftest.err
35917        } && test -s conftest.$ac_objext; then
35918   ac_hi=-1 ac_mid=-1
35919   while :; do
35920     cat >conftest.$ac_ext <<_ACEOF
35921 /* confdefs.h.  */
35922 _ACEOF
35923 cat confdefs.h >>conftest.$ac_ext
35924 cat >>conftest.$ac_ext <<_ACEOF
35925 /* end confdefs.h.  */
35926 $ac_includes_default
35927    typedef int ac__type_sizeof_;
35928 int
35929 main ()
35930 {
35931 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35932 test_array [0] = 0
35933
35934   ;
35935   return 0;
35936 }
35937 _ACEOF
35938 rm -f conftest.$ac_objext
35939 if { (ac_try="$ac_compile"
35940 case "(($ac_try" in
35941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35942   *) ac_try_echo=$ac_try;;
35943 esac
35944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35945   (eval "$ac_compile") 2>conftest.er1
35946   ac_status=$?
35947   grep -v '^ *+' conftest.er1 >conftest.err
35948   rm -f conftest.er1
35949   cat conftest.err >&5
35950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35951   (exit $ac_status); } && {
35952          test -z "$ac_c_werror_flag" ||
35953          test ! -s conftest.err
35954        } && test -s conftest.$ac_objext; then
35955   ac_lo=$ac_mid; break
35956 else
35957   echo "$as_me: failed program was:" >&5
35958 sed 's/^/| /' conftest.$ac_ext >&5
35959
35960         ac_hi=`expr '(' $ac_mid ')' - 1`
35961                         if test $ac_mid -le $ac_hi; then
35962                           ac_lo= ac_hi=
35963                           break
35964                         fi
35965                         ac_mid=`expr 2 '*' $ac_mid`
35966 fi
35967
35968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35969   done
35970 else
35971   echo "$as_me: failed program was:" >&5
35972 sed 's/^/| /' conftest.$ac_ext >&5
35973
35974         ac_lo= ac_hi=
35975 fi
35976
35977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35978 fi
35979
35980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35981 # Binary search between lo and hi bounds.
35982 while test "x$ac_lo" != "x$ac_hi"; do
35983   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35984   cat >conftest.$ac_ext <<_ACEOF
35985 /* confdefs.h.  */
35986 _ACEOF
35987 cat confdefs.h >>conftest.$ac_ext
35988 cat >>conftest.$ac_ext <<_ACEOF
35989 /* end confdefs.h.  */
35990 $ac_includes_default
35991    typedef int ac__type_sizeof_;
35992 int
35993 main ()
35994 {
35995 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35996 test_array [0] = 0
35997
35998   ;
35999   return 0;
36000 }
36001 _ACEOF
36002 rm -f conftest.$ac_objext
36003 if { (ac_try="$ac_compile"
36004 case "(($ac_try" in
36005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36006   *) ac_try_echo=$ac_try;;
36007 esac
36008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36009   (eval "$ac_compile") 2>conftest.er1
36010   ac_status=$?
36011   grep -v '^ *+' conftest.er1 >conftest.err
36012   rm -f conftest.er1
36013   cat conftest.err >&5
36014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015   (exit $ac_status); } && {
36016          test -z "$ac_c_werror_flag" ||
36017          test ! -s conftest.err
36018        } && test -s conftest.$ac_objext; then
36019   ac_hi=$ac_mid
36020 else
36021   echo "$as_me: failed program was:" >&5
36022 sed 's/^/| /' conftest.$ac_ext >&5
36023
36024         ac_lo=`expr '(' $ac_mid ')' + 1`
36025 fi
36026
36027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36028 done
36029 case $ac_lo in
36030 ?*) ac_cv_sizeof_int=$ac_lo;;
36031 '') if test "$ac_cv_type_int" = yes; then
36032      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36033 See \`config.log' for more details." >&5
36034 echo "$as_me: error: cannot compute sizeof (int)
36035 See \`config.log' for more details." >&2;}
36036    { (exit 77); exit 77; }; }
36037    else
36038      ac_cv_sizeof_int=0
36039    fi ;;
36040 esac
36041 else
36042   cat >conftest.$ac_ext <<_ACEOF
36043 /* confdefs.h.  */
36044 _ACEOF
36045 cat confdefs.h >>conftest.$ac_ext
36046 cat >>conftest.$ac_ext <<_ACEOF
36047 /* end confdefs.h.  */
36048 $ac_includes_default
36049    typedef int ac__type_sizeof_;
36050 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36051 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36052 #include <stdio.h>
36053 #include <stdlib.h>
36054 int
36055 main ()
36056 {
36057
36058   FILE *f = fopen ("conftest.val", "w");
36059   if (! f)
36060     return 1;
36061   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36062     {
36063       long int i = longval ();
36064       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36065         return 1;
36066       fprintf (f, "%ld\n", i);
36067     }
36068   else
36069     {
36070       unsigned long int i = ulongval ();
36071       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36072         return 1;
36073       fprintf (f, "%lu\n", i);
36074     }
36075   return ferror (f) || fclose (f) != 0;
36076
36077   ;
36078   return 0;
36079 }
36080 _ACEOF
36081 rm -f conftest$ac_exeext
36082 if { (ac_try="$ac_link"
36083 case "(($ac_try" in
36084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36085   *) ac_try_echo=$ac_try;;
36086 esac
36087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36088   (eval "$ac_link") 2>&5
36089   ac_status=$?
36090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36091   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36092   { (case "(($ac_try" in
36093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36094   *) ac_try_echo=$ac_try;;
36095 esac
36096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36097   (eval "$ac_try") 2>&5
36098   ac_status=$?
36099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36100   (exit $ac_status); }; }; then
36101   ac_cv_sizeof_int=`cat conftest.val`
36102 else
36103   echo "$as_me: program exited with status $ac_status" >&5
36104 echo "$as_me: failed program was:" >&5
36105 sed 's/^/| /' conftest.$ac_ext >&5
36106
36107 ( exit $ac_status )
36108 if test "$ac_cv_type_int" = yes; then
36109      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36110 See \`config.log' for more details." >&5
36111 echo "$as_me: error: cannot compute sizeof (int)
36112 See \`config.log' for more details." >&2;}
36113    { (exit 77); exit 77; }; }
36114    else
36115      ac_cv_sizeof_int=0
36116    fi
36117 fi
36118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36119 fi
36120 rm -f conftest.val
36121 fi
36122 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36123 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36124
36125
36126
36127 cat >>confdefs.h <<_ACEOF
36128 #define SIZEOF_INT $ac_cv_sizeof_int
36129 _ACEOF
36130
36131
36132 { echo "$as_me:$LINENO: checking for long int" >&5
36133 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36134 if test "${ac_cv_type_long_int+set}" = set; then
36135   echo $ECHO_N "(cached) $ECHO_C" >&6
36136 else
36137   cat >conftest.$ac_ext <<_ACEOF
36138 /* confdefs.h.  */
36139 _ACEOF
36140 cat confdefs.h >>conftest.$ac_ext
36141 cat >>conftest.$ac_ext <<_ACEOF
36142 /* end confdefs.h.  */
36143 $ac_includes_default
36144 typedef long int ac__type_new_;
36145 int
36146 main ()
36147 {
36148 if ((ac__type_new_ *) 0)
36149   return 0;
36150 if (sizeof (ac__type_new_))
36151   return 0;
36152   ;
36153   return 0;
36154 }
36155 _ACEOF
36156 rm -f conftest.$ac_objext
36157 if { (ac_try="$ac_compile"
36158 case "(($ac_try" in
36159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36160   *) ac_try_echo=$ac_try;;
36161 esac
36162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36163   (eval "$ac_compile") 2>conftest.er1
36164   ac_status=$?
36165   grep -v '^ *+' conftest.er1 >conftest.err
36166   rm -f conftest.er1
36167   cat conftest.err >&5
36168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36169   (exit $ac_status); } && {
36170          test -z "$ac_c_werror_flag" ||
36171          test ! -s conftest.err
36172        } && test -s conftest.$ac_objext; then
36173   ac_cv_type_long_int=yes
36174 else
36175   echo "$as_me: failed program was:" >&5
36176 sed 's/^/| /' conftest.$ac_ext >&5
36177
36178         ac_cv_type_long_int=no
36179 fi
36180
36181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36182 fi
36183 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36184 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36185
36186 # The cast to long int works around a bug in the HP C Compiler
36187 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36188 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36189 # This bug is HP SR number 8606223364.
36190 { echo "$as_me:$LINENO: checking size of long int" >&5
36191 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36192 if test "${ac_cv_sizeof_long_int+set}" = set; then
36193   echo $ECHO_N "(cached) $ECHO_C" >&6
36194 else
36195   if test "$cross_compiling" = yes; then
36196   # Depending upon the size, compute the lo and hi bounds.
36197 cat >conftest.$ac_ext <<_ACEOF
36198 /* confdefs.h.  */
36199 _ACEOF
36200 cat confdefs.h >>conftest.$ac_ext
36201 cat >>conftest.$ac_ext <<_ACEOF
36202 /* end confdefs.h.  */
36203 $ac_includes_default
36204    typedef long int ac__type_sizeof_;
36205 int
36206 main ()
36207 {
36208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36209 test_array [0] = 0
36210
36211   ;
36212   return 0;
36213 }
36214 _ACEOF
36215 rm -f conftest.$ac_objext
36216 if { (ac_try="$ac_compile"
36217 case "(($ac_try" in
36218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36219   *) ac_try_echo=$ac_try;;
36220 esac
36221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36222   (eval "$ac_compile") 2>conftest.er1
36223   ac_status=$?
36224   grep -v '^ *+' conftest.er1 >conftest.err
36225   rm -f conftest.er1
36226   cat conftest.err >&5
36227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228   (exit $ac_status); } && {
36229          test -z "$ac_c_werror_flag" ||
36230          test ! -s conftest.err
36231        } && test -s conftest.$ac_objext; then
36232   ac_lo=0 ac_mid=0
36233   while :; do
36234     cat >conftest.$ac_ext <<_ACEOF
36235 /* confdefs.h.  */
36236 _ACEOF
36237 cat confdefs.h >>conftest.$ac_ext
36238 cat >>conftest.$ac_ext <<_ACEOF
36239 /* end confdefs.h.  */
36240 $ac_includes_default
36241    typedef long int ac__type_sizeof_;
36242 int
36243 main ()
36244 {
36245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36246 test_array [0] = 0
36247
36248   ;
36249   return 0;
36250 }
36251 _ACEOF
36252 rm -f conftest.$ac_objext
36253 if { (ac_try="$ac_compile"
36254 case "(($ac_try" in
36255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36256   *) ac_try_echo=$ac_try;;
36257 esac
36258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36259   (eval "$ac_compile") 2>conftest.er1
36260   ac_status=$?
36261   grep -v '^ *+' conftest.er1 >conftest.err
36262   rm -f conftest.er1
36263   cat conftest.err >&5
36264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36265   (exit $ac_status); } && {
36266          test -z "$ac_c_werror_flag" ||
36267          test ! -s conftest.err
36268        } && test -s conftest.$ac_objext; then
36269   ac_hi=$ac_mid; break
36270 else
36271   echo "$as_me: failed program was:" >&5
36272 sed 's/^/| /' conftest.$ac_ext >&5
36273
36274         ac_lo=`expr $ac_mid + 1`
36275                         if test $ac_lo -le $ac_mid; then
36276                           ac_lo= ac_hi=
36277                           break
36278                         fi
36279                         ac_mid=`expr 2 '*' $ac_mid + 1`
36280 fi
36281
36282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36283   done
36284 else
36285   echo "$as_me: failed program was:" >&5
36286 sed 's/^/| /' conftest.$ac_ext >&5
36287
36288         cat >conftest.$ac_ext <<_ACEOF
36289 /* confdefs.h.  */
36290 _ACEOF
36291 cat confdefs.h >>conftest.$ac_ext
36292 cat >>conftest.$ac_ext <<_ACEOF
36293 /* end confdefs.h.  */
36294 $ac_includes_default
36295    typedef long int ac__type_sizeof_;
36296 int
36297 main ()
36298 {
36299 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36300 test_array [0] = 0
36301
36302   ;
36303   return 0;
36304 }
36305 _ACEOF
36306 rm -f conftest.$ac_objext
36307 if { (ac_try="$ac_compile"
36308 case "(($ac_try" in
36309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36310   *) ac_try_echo=$ac_try;;
36311 esac
36312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36313   (eval "$ac_compile") 2>conftest.er1
36314   ac_status=$?
36315   grep -v '^ *+' conftest.er1 >conftest.err
36316   rm -f conftest.er1
36317   cat conftest.err >&5
36318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36319   (exit $ac_status); } && {
36320          test -z "$ac_c_werror_flag" ||
36321          test ! -s conftest.err
36322        } && test -s conftest.$ac_objext; then
36323   ac_hi=-1 ac_mid=-1
36324   while :; do
36325     cat >conftest.$ac_ext <<_ACEOF
36326 /* confdefs.h.  */
36327 _ACEOF
36328 cat confdefs.h >>conftest.$ac_ext
36329 cat >>conftest.$ac_ext <<_ACEOF
36330 /* end confdefs.h.  */
36331 $ac_includes_default
36332    typedef long int ac__type_sizeof_;
36333 int
36334 main ()
36335 {
36336 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36337 test_array [0] = 0
36338
36339   ;
36340   return 0;
36341 }
36342 _ACEOF
36343 rm -f conftest.$ac_objext
36344 if { (ac_try="$ac_compile"
36345 case "(($ac_try" in
36346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36347   *) ac_try_echo=$ac_try;;
36348 esac
36349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36350   (eval "$ac_compile") 2>conftest.er1
36351   ac_status=$?
36352   grep -v '^ *+' conftest.er1 >conftest.err
36353   rm -f conftest.er1
36354   cat conftest.err >&5
36355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36356   (exit $ac_status); } && {
36357          test -z "$ac_c_werror_flag" ||
36358          test ! -s conftest.err
36359        } && test -s conftest.$ac_objext; then
36360   ac_lo=$ac_mid; break
36361 else
36362   echo "$as_me: failed program was:" >&5
36363 sed 's/^/| /' conftest.$ac_ext >&5
36364
36365         ac_hi=`expr '(' $ac_mid ')' - 1`
36366                         if test $ac_mid -le $ac_hi; then
36367                           ac_lo= ac_hi=
36368                           break
36369                         fi
36370                         ac_mid=`expr 2 '*' $ac_mid`
36371 fi
36372
36373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36374   done
36375 else
36376   echo "$as_me: failed program was:" >&5
36377 sed 's/^/| /' conftest.$ac_ext >&5
36378
36379         ac_lo= ac_hi=
36380 fi
36381
36382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36383 fi
36384
36385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36386 # Binary search between lo and hi bounds.
36387 while test "x$ac_lo" != "x$ac_hi"; do
36388   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36389   cat >conftest.$ac_ext <<_ACEOF
36390 /* confdefs.h.  */
36391 _ACEOF
36392 cat confdefs.h >>conftest.$ac_ext
36393 cat >>conftest.$ac_ext <<_ACEOF
36394 /* end confdefs.h.  */
36395 $ac_includes_default
36396    typedef long int ac__type_sizeof_;
36397 int
36398 main ()
36399 {
36400 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36401 test_array [0] = 0
36402
36403   ;
36404   return 0;
36405 }
36406 _ACEOF
36407 rm -f conftest.$ac_objext
36408 if { (ac_try="$ac_compile"
36409 case "(($ac_try" in
36410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36411   *) ac_try_echo=$ac_try;;
36412 esac
36413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36414   (eval "$ac_compile") 2>conftest.er1
36415   ac_status=$?
36416   grep -v '^ *+' conftest.er1 >conftest.err
36417   rm -f conftest.er1
36418   cat conftest.err >&5
36419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420   (exit $ac_status); } && {
36421          test -z "$ac_c_werror_flag" ||
36422          test ! -s conftest.err
36423        } && test -s conftest.$ac_objext; then
36424   ac_hi=$ac_mid
36425 else
36426   echo "$as_me: failed program was:" >&5
36427 sed 's/^/| /' conftest.$ac_ext >&5
36428
36429         ac_lo=`expr '(' $ac_mid ')' + 1`
36430 fi
36431
36432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36433 done
36434 case $ac_lo in
36435 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36436 '') if test "$ac_cv_type_long_int" = yes; then
36437      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36438 See \`config.log' for more details." >&5
36439 echo "$as_me: error: cannot compute sizeof (long int)
36440 See \`config.log' for more details." >&2;}
36441    { (exit 77); exit 77; }; }
36442    else
36443      ac_cv_sizeof_long_int=0
36444    fi ;;
36445 esac
36446 else
36447   cat >conftest.$ac_ext <<_ACEOF
36448 /* confdefs.h.  */
36449 _ACEOF
36450 cat confdefs.h >>conftest.$ac_ext
36451 cat >>conftest.$ac_ext <<_ACEOF
36452 /* end confdefs.h.  */
36453 $ac_includes_default
36454    typedef long int ac__type_sizeof_;
36455 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36456 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36457 #include <stdio.h>
36458 #include <stdlib.h>
36459 int
36460 main ()
36461 {
36462
36463   FILE *f = fopen ("conftest.val", "w");
36464   if (! f)
36465     return 1;
36466   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36467     {
36468       long int i = longval ();
36469       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36470         return 1;
36471       fprintf (f, "%ld\n", i);
36472     }
36473   else
36474     {
36475       unsigned long int i = ulongval ();
36476       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36477         return 1;
36478       fprintf (f, "%lu\n", i);
36479     }
36480   return ferror (f) || fclose (f) != 0;
36481
36482   ;
36483   return 0;
36484 }
36485 _ACEOF
36486 rm -f conftest$ac_exeext
36487 if { (ac_try="$ac_link"
36488 case "(($ac_try" in
36489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36490   *) ac_try_echo=$ac_try;;
36491 esac
36492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36493   (eval "$ac_link") 2>&5
36494   ac_status=$?
36495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36497   { (case "(($ac_try" in
36498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36499   *) ac_try_echo=$ac_try;;
36500 esac
36501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36502   (eval "$ac_try") 2>&5
36503   ac_status=$?
36504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36505   (exit $ac_status); }; }; then
36506   ac_cv_sizeof_long_int=`cat conftest.val`
36507 else
36508   echo "$as_me: program exited with status $ac_status" >&5
36509 echo "$as_me: failed program was:" >&5
36510 sed 's/^/| /' conftest.$ac_ext >&5
36511
36512 ( exit $ac_status )
36513 if test "$ac_cv_type_long_int" = yes; then
36514      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36515 See \`config.log' for more details." >&5
36516 echo "$as_me: error: cannot compute sizeof (long int)
36517 See \`config.log' for more details." >&2;}
36518    { (exit 77); exit 77; }; }
36519    else
36520      ac_cv_sizeof_long_int=0
36521    fi
36522 fi
36523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36524 fi
36525 rm -f conftest.val
36526 fi
36527 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36528 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36529
36530
36531
36532 cat >>confdefs.h <<_ACEOF
36533 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36534 _ACEOF
36535
36536
36537 { echo "$as_me:$LINENO: checking for long long int" >&5
36538 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36539 if test "${ac_cv_type_long_long_int+set}" = set; then
36540   echo $ECHO_N "(cached) $ECHO_C" >&6
36541 else
36542   cat >conftest.$ac_ext <<_ACEOF
36543 /* confdefs.h.  */
36544 _ACEOF
36545 cat confdefs.h >>conftest.$ac_ext
36546 cat >>conftest.$ac_ext <<_ACEOF
36547 /* end confdefs.h.  */
36548 $ac_includes_default
36549 typedef long long int ac__type_new_;
36550 int
36551 main ()
36552 {
36553 if ((ac__type_new_ *) 0)
36554   return 0;
36555 if (sizeof (ac__type_new_))
36556   return 0;
36557   ;
36558   return 0;
36559 }
36560 _ACEOF
36561 rm -f conftest.$ac_objext
36562 if { (ac_try="$ac_compile"
36563 case "(($ac_try" in
36564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36565   *) ac_try_echo=$ac_try;;
36566 esac
36567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36568   (eval "$ac_compile") 2>conftest.er1
36569   ac_status=$?
36570   grep -v '^ *+' conftest.er1 >conftest.err
36571   rm -f conftest.er1
36572   cat conftest.err >&5
36573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36574   (exit $ac_status); } && {
36575          test -z "$ac_c_werror_flag" ||
36576          test ! -s conftest.err
36577        } && test -s conftest.$ac_objext; then
36578   ac_cv_type_long_long_int=yes
36579 else
36580   echo "$as_me: failed program was:" >&5
36581 sed 's/^/| /' conftest.$ac_ext >&5
36582
36583         ac_cv_type_long_long_int=no
36584 fi
36585
36586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36587 fi
36588 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36589 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36590
36591 # The cast to long int works around a bug in the HP C Compiler
36592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36594 # This bug is HP SR number 8606223364.
36595 { echo "$as_me:$LINENO: checking size of long long int" >&5
36596 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36597 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36598   echo $ECHO_N "(cached) $ECHO_C" >&6
36599 else
36600   if test "$cross_compiling" = yes; then
36601   # Depending upon the size, compute the lo and hi bounds.
36602 cat >conftest.$ac_ext <<_ACEOF
36603 /* confdefs.h.  */
36604 _ACEOF
36605 cat confdefs.h >>conftest.$ac_ext
36606 cat >>conftest.$ac_ext <<_ACEOF
36607 /* end confdefs.h.  */
36608 $ac_includes_default
36609    typedef long long int ac__type_sizeof_;
36610 int
36611 main ()
36612 {
36613 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36614 test_array [0] = 0
36615
36616   ;
36617   return 0;
36618 }
36619 _ACEOF
36620 rm -f conftest.$ac_objext
36621 if { (ac_try="$ac_compile"
36622 case "(($ac_try" in
36623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36624   *) ac_try_echo=$ac_try;;
36625 esac
36626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36627   (eval "$ac_compile") 2>conftest.er1
36628   ac_status=$?
36629   grep -v '^ *+' conftest.er1 >conftest.err
36630   rm -f conftest.er1
36631   cat conftest.err >&5
36632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36633   (exit $ac_status); } && {
36634          test -z "$ac_c_werror_flag" ||
36635          test ! -s conftest.err
36636        } && test -s conftest.$ac_objext; then
36637   ac_lo=0 ac_mid=0
36638   while :; do
36639     cat >conftest.$ac_ext <<_ACEOF
36640 /* confdefs.h.  */
36641 _ACEOF
36642 cat confdefs.h >>conftest.$ac_ext
36643 cat >>conftest.$ac_ext <<_ACEOF
36644 /* end confdefs.h.  */
36645 $ac_includes_default
36646    typedef long long int ac__type_sizeof_;
36647 int
36648 main ()
36649 {
36650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36651 test_array [0] = 0
36652
36653   ;
36654   return 0;
36655 }
36656 _ACEOF
36657 rm -f conftest.$ac_objext
36658 if { (ac_try="$ac_compile"
36659 case "(($ac_try" in
36660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36661   *) ac_try_echo=$ac_try;;
36662 esac
36663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36664   (eval "$ac_compile") 2>conftest.er1
36665   ac_status=$?
36666   grep -v '^ *+' conftest.er1 >conftest.err
36667   rm -f conftest.er1
36668   cat conftest.err >&5
36669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36670   (exit $ac_status); } && {
36671          test -z "$ac_c_werror_flag" ||
36672          test ! -s conftest.err
36673        } && test -s conftest.$ac_objext; then
36674   ac_hi=$ac_mid; break
36675 else
36676   echo "$as_me: failed program was:" >&5
36677 sed 's/^/| /' conftest.$ac_ext >&5
36678
36679         ac_lo=`expr $ac_mid + 1`
36680                         if test $ac_lo -le $ac_mid; then
36681                           ac_lo= ac_hi=
36682                           break
36683                         fi
36684                         ac_mid=`expr 2 '*' $ac_mid + 1`
36685 fi
36686
36687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36688   done
36689 else
36690   echo "$as_me: failed program was:" >&5
36691 sed 's/^/| /' conftest.$ac_ext >&5
36692
36693         cat >conftest.$ac_ext <<_ACEOF
36694 /* confdefs.h.  */
36695 _ACEOF
36696 cat confdefs.h >>conftest.$ac_ext
36697 cat >>conftest.$ac_ext <<_ACEOF
36698 /* end confdefs.h.  */
36699 $ac_includes_default
36700    typedef long long int ac__type_sizeof_;
36701 int
36702 main ()
36703 {
36704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36705 test_array [0] = 0
36706
36707   ;
36708   return 0;
36709 }
36710 _ACEOF
36711 rm -f conftest.$ac_objext
36712 if { (ac_try="$ac_compile"
36713 case "(($ac_try" in
36714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36715   *) ac_try_echo=$ac_try;;
36716 esac
36717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36718   (eval "$ac_compile") 2>conftest.er1
36719   ac_status=$?
36720   grep -v '^ *+' conftest.er1 >conftest.err
36721   rm -f conftest.er1
36722   cat conftest.err >&5
36723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36724   (exit $ac_status); } && {
36725          test -z "$ac_c_werror_flag" ||
36726          test ! -s conftest.err
36727        } && test -s conftest.$ac_objext; then
36728   ac_hi=-1 ac_mid=-1
36729   while :; do
36730     cat >conftest.$ac_ext <<_ACEOF
36731 /* confdefs.h.  */
36732 _ACEOF
36733 cat confdefs.h >>conftest.$ac_ext
36734 cat >>conftest.$ac_ext <<_ACEOF
36735 /* end confdefs.h.  */
36736 $ac_includes_default
36737    typedef long long int ac__type_sizeof_;
36738 int
36739 main ()
36740 {
36741 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36742 test_array [0] = 0
36743
36744   ;
36745   return 0;
36746 }
36747 _ACEOF
36748 rm -f conftest.$ac_objext
36749 if { (ac_try="$ac_compile"
36750 case "(($ac_try" in
36751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36752   *) ac_try_echo=$ac_try;;
36753 esac
36754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36755   (eval "$ac_compile") 2>conftest.er1
36756   ac_status=$?
36757   grep -v '^ *+' conftest.er1 >conftest.err
36758   rm -f conftest.er1
36759   cat conftest.err >&5
36760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36761   (exit $ac_status); } && {
36762          test -z "$ac_c_werror_flag" ||
36763          test ! -s conftest.err
36764        } && test -s conftest.$ac_objext; then
36765   ac_lo=$ac_mid; break
36766 else
36767   echo "$as_me: failed program was:" >&5
36768 sed 's/^/| /' conftest.$ac_ext >&5
36769
36770         ac_hi=`expr '(' $ac_mid ')' - 1`
36771                         if test $ac_mid -le $ac_hi; then
36772                           ac_lo= ac_hi=
36773                           break
36774                         fi
36775                         ac_mid=`expr 2 '*' $ac_mid`
36776 fi
36777
36778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36779   done
36780 else
36781   echo "$as_me: failed program was:" >&5
36782 sed 's/^/| /' conftest.$ac_ext >&5
36783
36784         ac_lo= ac_hi=
36785 fi
36786
36787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36788 fi
36789
36790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36791 # Binary search between lo and hi bounds.
36792 while test "x$ac_lo" != "x$ac_hi"; do
36793   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36794   cat >conftest.$ac_ext <<_ACEOF
36795 /* confdefs.h.  */
36796 _ACEOF
36797 cat confdefs.h >>conftest.$ac_ext
36798 cat >>conftest.$ac_ext <<_ACEOF
36799 /* end confdefs.h.  */
36800 $ac_includes_default
36801    typedef long long int ac__type_sizeof_;
36802 int
36803 main ()
36804 {
36805 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36806 test_array [0] = 0
36807
36808   ;
36809   return 0;
36810 }
36811 _ACEOF
36812 rm -f conftest.$ac_objext
36813 if { (ac_try="$ac_compile"
36814 case "(($ac_try" in
36815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36816   *) ac_try_echo=$ac_try;;
36817 esac
36818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36819   (eval "$ac_compile") 2>conftest.er1
36820   ac_status=$?
36821   grep -v '^ *+' conftest.er1 >conftest.err
36822   rm -f conftest.er1
36823   cat conftest.err >&5
36824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825   (exit $ac_status); } && {
36826          test -z "$ac_c_werror_flag" ||
36827          test ! -s conftest.err
36828        } && test -s conftest.$ac_objext; then
36829   ac_hi=$ac_mid
36830 else
36831   echo "$as_me: failed program was:" >&5
36832 sed 's/^/| /' conftest.$ac_ext >&5
36833
36834         ac_lo=`expr '(' $ac_mid ')' + 1`
36835 fi
36836
36837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36838 done
36839 case $ac_lo in
36840 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36841 '') if test "$ac_cv_type_long_long_int" = yes; then
36842      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36843 See \`config.log' for more details." >&5
36844 echo "$as_me: error: cannot compute sizeof (long long int)
36845 See \`config.log' for more details." >&2;}
36846    { (exit 77); exit 77; }; }
36847    else
36848      ac_cv_sizeof_long_long_int=0
36849    fi ;;
36850 esac
36851 else
36852   cat >conftest.$ac_ext <<_ACEOF
36853 /* confdefs.h.  */
36854 _ACEOF
36855 cat confdefs.h >>conftest.$ac_ext
36856 cat >>conftest.$ac_ext <<_ACEOF
36857 /* end confdefs.h.  */
36858 $ac_includes_default
36859    typedef long long int ac__type_sizeof_;
36860 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36861 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36862 #include <stdio.h>
36863 #include <stdlib.h>
36864 int
36865 main ()
36866 {
36867
36868   FILE *f = fopen ("conftest.val", "w");
36869   if (! f)
36870     return 1;
36871   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36872     {
36873       long int i = longval ();
36874       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36875         return 1;
36876       fprintf (f, "%ld\n", i);
36877     }
36878   else
36879     {
36880       unsigned long int i = ulongval ();
36881       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36882         return 1;
36883       fprintf (f, "%lu\n", i);
36884     }
36885   return ferror (f) || fclose (f) != 0;
36886
36887   ;
36888   return 0;
36889 }
36890 _ACEOF
36891 rm -f conftest$ac_exeext
36892 if { (ac_try="$ac_link"
36893 case "(($ac_try" in
36894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36895   *) ac_try_echo=$ac_try;;
36896 esac
36897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36898   (eval "$ac_link") 2>&5
36899   ac_status=$?
36900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36902   { (case "(($ac_try" in
36903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36904   *) ac_try_echo=$ac_try;;
36905 esac
36906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36907   (eval "$ac_try") 2>&5
36908   ac_status=$?
36909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36910   (exit $ac_status); }; }; then
36911   ac_cv_sizeof_long_long_int=`cat conftest.val`
36912 else
36913   echo "$as_me: program exited with status $ac_status" >&5
36914 echo "$as_me: failed program was:" >&5
36915 sed 's/^/| /' conftest.$ac_ext >&5
36916
36917 ( exit $ac_status )
36918 if test "$ac_cv_type_long_long_int" = yes; then
36919      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36920 See \`config.log' for more details." >&5
36921 echo "$as_me: error: cannot compute sizeof (long long int)
36922 See \`config.log' for more details." >&2;}
36923    { (exit 77); exit 77; }; }
36924    else
36925      ac_cv_sizeof_long_long_int=0
36926    fi
36927 fi
36928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36929 fi
36930 rm -f conftest.val
36931 fi
36932 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36933 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36934
36935
36936
36937 cat >>confdefs.h <<_ACEOF
36938 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36939 _ACEOF
36940
36941
36942 { echo "$as_me:$LINENO: checking for int *" >&5
36943 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36944 if test "${ac_cv_type_int_p+set}" = set; then
36945   echo $ECHO_N "(cached) $ECHO_C" >&6
36946 else
36947   cat >conftest.$ac_ext <<_ACEOF
36948 /* confdefs.h.  */
36949 _ACEOF
36950 cat confdefs.h >>conftest.$ac_ext
36951 cat >>conftest.$ac_ext <<_ACEOF
36952 /* end confdefs.h.  */
36953 $ac_includes_default
36954 typedef int * ac__type_new_;
36955 int
36956 main ()
36957 {
36958 if ((ac__type_new_ *) 0)
36959   return 0;
36960 if (sizeof (ac__type_new_))
36961   return 0;
36962   ;
36963   return 0;
36964 }
36965 _ACEOF
36966 rm -f conftest.$ac_objext
36967 if { (ac_try="$ac_compile"
36968 case "(($ac_try" in
36969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36970   *) ac_try_echo=$ac_try;;
36971 esac
36972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36973   (eval "$ac_compile") 2>conftest.er1
36974   ac_status=$?
36975   grep -v '^ *+' conftest.er1 >conftest.err
36976   rm -f conftest.er1
36977   cat conftest.err >&5
36978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36979   (exit $ac_status); } && {
36980          test -z "$ac_c_werror_flag" ||
36981          test ! -s conftest.err
36982        } && test -s conftest.$ac_objext; then
36983   ac_cv_type_int_p=yes
36984 else
36985   echo "$as_me: failed program was:" >&5
36986 sed 's/^/| /' conftest.$ac_ext >&5
36987
36988         ac_cv_type_int_p=no
36989 fi
36990
36991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36992 fi
36993 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36994 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36995
36996 # The cast to long int works around a bug in the HP C Compiler
36997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36999 # This bug is HP SR number 8606223364.
37000 { echo "$as_me:$LINENO: checking size of int *" >&5
37001 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
37002 if test "${ac_cv_sizeof_int_p+set}" = set; then
37003   echo $ECHO_N "(cached) $ECHO_C" >&6
37004 else
37005   if test "$cross_compiling" = yes; then
37006   # Depending upon the size, compute the lo and hi bounds.
37007 cat >conftest.$ac_ext <<_ACEOF
37008 /* confdefs.h.  */
37009 _ACEOF
37010 cat confdefs.h >>conftest.$ac_ext
37011 cat >>conftest.$ac_ext <<_ACEOF
37012 /* end confdefs.h.  */
37013 $ac_includes_default
37014    typedef int * ac__type_sizeof_;
37015 int
37016 main ()
37017 {
37018 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
37019 test_array [0] = 0
37020
37021   ;
37022   return 0;
37023 }
37024 _ACEOF
37025 rm -f conftest.$ac_objext
37026 if { (ac_try="$ac_compile"
37027 case "(($ac_try" in
37028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37029   *) ac_try_echo=$ac_try;;
37030 esac
37031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37032   (eval "$ac_compile") 2>conftest.er1
37033   ac_status=$?
37034   grep -v '^ *+' conftest.er1 >conftest.err
37035   rm -f conftest.er1
37036   cat conftest.err >&5
37037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37038   (exit $ac_status); } && {
37039          test -z "$ac_c_werror_flag" ||
37040          test ! -s conftest.err
37041        } && test -s conftest.$ac_objext; then
37042   ac_lo=0 ac_mid=0
37043   while :; do
37044     cat >conftest.$ac_ext <<_ACEOF
37045 /* confdefs.h.  */
37046 _ACEOF
37047 cat confdefs.h >>conftest.$ac_ext
37048 cat >>conftest.$ac_ext <<_ACEOF
37049 /* end confdefs.h.  */
37050 $ac_includes_default
37051    typedef int * ac__type_sizeof_;
37052 int
37053 main ()
37054 {
37055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37056 test_array [0] = 0
37057
37058   ;
37059   return 0;
37060 }
37061 _ACEOF
37062 rm -f conftest.$ac_objext
37063 if { (ac_try="$ac_compile"
37064 case "(($ac_try" in
37065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37066   *) ac_try_echo=$ac_try;;
37067 esac
37068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37069   (eval "$ac_compile") 2>conftest.er1
37070   ac_status=$?
37071   grep -v '^ *+' conftest.er1 >conftest.err
37072   rm -f conftest.er1
37073   cat conftest.err >&5
37074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37075   (exit $ac_status); } && {
37076          test -z "$ac_c_werror_flag" ||
37077          test ! -s conftest.err
37078        } && test -s conftest.$ac_objext; then
37079   ac_hi=$ac_mid; break
37080 else
37081   echo "$as_me: failed program was:" >&5
37082 sed 's/^/| /' conftest.$ac_ext >&5
37083
37084         ac_lo=`expr $ac_mid + 1`
37085                         if test $ac_lo -le $ac_mid; then
37086                           ac_lo= ac_hi=
37087                           break
37088                         fi
37089                         ac_mid=`expr 2 '*' $ac_mid + 1`
37090 fi
37091
37092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37093   done
37094 else
37095   echo "$as_me: failed program was:" >&5
37096 sed 's/^/| /' conftest.$ac_ext >&5
37097
37098         cat >conftest.$ac_ext <<_ACEOF
37099 /* confdefs.h.  */
37100 _ACEOF
37101 cat confdefs.h >>conftest.$ac_ext
37102 cat >>conftest.$ac_ext <<_ACEOF
37103 /* end confdefs.h.  */
37104 $ac_includes_default
37105    typedef int * ac__type_sizeof_;
37106 int
37107 main ()
37108 {
37109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37110 test_array [0] = 0
37111
37112   ;
37113   return 0;
37114 }
37115 _ACEOF
37116 rm -f conftest.$ac_objext
37117 if { (ac_try="$ac_compile"
37118 case "(($ac_try" in
37119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37120   *) ac_try_echo=$ac_try;;
37121 esac
37122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37123   (eval "$ac_compile") 2>conftest.er1
37124   ac_status=$?
37125   grep -v '^ *+' conftest.er1 >conftest.err
37126   rm -f conftest.er1
37127   cat conftest.err >&5
37128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37129   (exit $ac_status); } && {
37130          test -z "$ac_c_werror_flag" ||
37131          test ! -s conftest.err
37132        } && test -s conftest.$ac_objext; then
37133   ac_hi=-1 ac_mid=-1
37134   while :; do
37135     cat >conftest.$ac_ext <<_ACEOF
37136 /* confdefs.h.  */
37137 _ACEOF
37138 cat confdefs.h >>conftest.$ac_ext
37139 cat >>conftest.$ac_ext <<_ACEOF
37140 /* end confdefs.h.  */
37141 $ac_includes_default
37142    typedef int * ac__type_sizeof_;
37143 int
37144 main ()
37145 {
37146 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37147 test_array [0] = 0
37148
37149   ;
37150   return 0;
37151 }
37152 _ACEOF
37153 rm -f conftest.$ac_objext
37154 if { (ac_try="$ac_compile"
37155 case "(($ac_try" in
37156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37157   *) ac_try_echo=$ac_try;;
37158 esac
37159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37160   (eval "$ac_compile") 2>conftest.er1
37161   ac_status=$?
37162   grep -v '^ *+' conftest.er1 >conftest.err
37163   rm -f conftest.er1
37164   cat conftest.err >&5
37165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37166   (exit $ac_status); } && {
37167          test -z "$ac_c_werror_flag" ||
37168          test ! -s conftest.err
37169        } && test -s conftest.$ac_objext; then
37170   ac_lo=$ac_mid; break
37171 else
37172   echo "$as_me: failed program was:" >&5
37173 sed 's/^/| /' conftest.$ac_ext >&5
37174
37175         ac_hi=`expr '(' $ac_mid ')' - 1`
37176                         if test $ac_mid -le $ac_hi; then
37177                           ac_lo= ac_hi=
37178                           break
37179                         fi
37180                         ac_mid=`expr 2 '*' $ac_mid`
37181 fi
37182
37183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37184   done
37185 else
37186   echo "$as_me: failed program was:" >&5
37187 sed 's/^/| /' conftest.$ac_ext >&5
37188
37189         ac_lo= ac_hi=
37190 fi
37191
37192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37193 fi
37194
37195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37196 # Binary search between lo and hi bounds.
37197 while test "x$ac_lo" != "x$ac_hi"; do
37198   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37199   cat >conftest.$ac_ext <<_ACEOF
37200 /* confdefs.h.  */
37201 _ACEOF
37202 cat confdefs.h >>conftest.$ac_ext
37203 cat >>conftest.$ac_ext <<_ACEOF
37204 /* end confdefs.h.  */
37205 $ac_includes_default
37206    typedef int * ac__type_sizeof_;
37207 int
37208 main ()
37209 {
37210 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37211 test_array [0] = 0
37212
37213   ;
37214   return 0;
37215 }
37216 _ACEOF
37217 rm -f conftest.$ac_objext
37218 if { (ac_try="$ac_compile"
37219 case "(($ac_try" in
37220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37221   *) ac_try_echo=$ac_try;;
37222 esac
37223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37224   (eval "$ac_compile") 2>conftest.er1
37225   ac_status=$?
37226   grep -v '^ *+' conftest.er1 >conftest.err
37227   rm -f conftest.er1
37228   cat conftest.err >&5
37229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230   (exit $ac_status); } && {
37231          test -z "$ac_c_werror_flag" ||
37232          test ! -s conftest.err
37233        } && test -s conftest.$ac_objext; then
37234   ac_hi=$ac_mid
37235 else
37236   echo "$as_me: failed program was:" >&5
37237 sed 's/^/| /' conftest.$ac_ext >&5
37238
37239         ac_lo=`expr '(' $ac_mid ')' + 1`
37240 fi
37241
37242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37243 done
37244 case $ac_lo in
37245 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37246 '') if test "$ac_cv_type_int_p" = yes; then
37247      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37248 See \`config.log' for more details." >&5
37249 echo "$as_me: error: cannot compute sizeof (int *)
37250 See \`config.log' for more details." >&2;}
37251    { (exit 77); exit 77; }; }
37252    else
37253      ac_cv_sizeof_int_p=0
37254    fi ;;
37255 esac
37256 else
37257   cat >conftest.$ac_ext <<_ACEOF
37258 /* confdefs.h.  */
37259 _ACEOF
37260 cat confdefs.h >>conftest.$ac_ext
37261 cat >>conftest.$ac_ext <<_ACEOF
37262 /* end confdefs.h.  */
37263 $ac_includes_default
37264    typedef int * ac__type_sizeof_;
37265 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37266 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37267 #include <stdio.h>
37268 #include <stdlib.h>
37269 int
37270 main ()
37271 {
37272
37273   FILE *f = fopen ("conftest.val", "w");
37274   if (! f)
37275     return 1;
37276   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37277     {
37278       long int i = longval ();
37279       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37280         return 1;
37281       fprintf (f, "%ld\n", i);
37282     }
37283   else
37284     {
37285       unsigned long int i = ulongval ();
37286       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37287         return 1;
37288       fprintf (f, "%lu\n", i);
37289     }
37290   return ferror (f) || fclose (f) != 0;
37291
37292   ;
37293   return 0;
37294 }
37295 _ACEOF
37296 rm -f conftest$ac_exeext
37297 if { (ac_try="$ac_link"
37298 case "(($ac_try" in
37299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37300   *) ac_try_echo=$ac_try;;
37301 esac
37302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37303   (eval "$ac_link") 2>&5
37304   ac_status=$?
37305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37307   { (case "(($ac_try" in
37308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37309   *) ac_try_echo=$ac_try;;
37310 esac
37311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37312   (eval "$ac_try") 2>&5
37313   ac_status=$?
37314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37315   (exit $ac_status); }; }; then
37316   ac_cv_sizeof_int_p=`cat conftest.val`
37317 else
37318   echo "$as_me: program exited with status $ac_status" >&5
37319 echo "$as_me: failed program was:" >&5
37320 sed 's/^/| /' conftest.$ac_ext >&5
37321
37322 ( exit $ac_status )
37323 if test "$ac_cv_type_int_p" = yes; then
37324      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37325 See \`config.log' for more details." >&5
37326 echo "$as_me: error: cannot compute sizeof (int *)
37327 See \`config.log' for more details." >&2;}
37328    { (exit 77); exit 77; }; }
37329    else
37330      ac_cv_sizeof_int_p=0
37331    fi
37332 fi
37333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37334 fi
37335 rm -f conftest.val
37336 fi
37337 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37338 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37339
37340
37341
37342 cat >>confdefs.h <<_ACEOF
37343 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37344 _ACEOF
37345
37346
37347
37348 { echo "$as_me:$LINENO: checking for u_int type" >&5
37349 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37350 if test "${ac_cv_have_u_int+set}" = set; then
37351   echo $ECHO_N "(cached) $ECHO_C" >&6
37352 else
37353
37354        cat >conftest.$ac_ext <<_ACEOF
37355 /* confdefs.h.  */
37356 _ACEOF
37357 cat confdefs.h >>conftest.$ac_ext
37358 cat >>conftest.$ac_ext <<_ACEOF
37359 /* end confdefs.h.  */
37360
37361               #include <sys/types.h>
37362
37363 int
37364 main ()
37365 {
37366
37367               u_int a; a = 1;
37368
37369   ;
37370   return 0;
37371 }
37372 _ACEOF
37373 rm -f conftest.$ac_objext
37374 if { (ac_try="$ac_compile"
37375 case "(($ac_try" in
37376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37377   *) ac_try_echo=$ac_try;;
37378 esac
37379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37380   (eval "$ac_compile") 2>conftest.er1
37381   ac_status=$?
37382   grep -v '^ *+' conftest.er1 >conftest.err
37383   rm -f conftest.er1
37384   cat conftest.err >&5
37385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37386   (exit $ac_status); } && {
37387          test -z "$ac_c_werror_flag" ||
37388          test ! -s conftest.err
37389        } && test -s conftest.$ac_objext; then
37390
37391               ac_cv_have_u_int="yes"
37392
37393 else
37394   echo "$as_me: failed program was:" >&5
37395 sed 's/^/| /' conftest.$ac_ext >&5
37396
37397
37398               ac_cv_have_u_int="no"
37399
37400
37401 fi
37402
37403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37404
37405
37406 fi
37407 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37408 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37409 if test "x$ac_cv_have_u_int" = "xyes" ; then
37410    cat >>confdefs.h <<\_ACEOF
37411 #define HAVE_U_INT 1
37412 _ACEOF
37413
37414    have_u_int=1
37415 fi
37416
37417 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37418 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37419 if test "${ac_cv_have_intmax_t+set}" = set; then
37420   echo $ECHO_N "(cached) $ECHO_C" >&6
37421 else
37422
37423        cat >conftest.$ac_ext <<_ACEOF
37424 /* confdefs.h.  */
37425 _ACEOF
37426 cat confdefs.h >>conftest.$ac_ext
37427 cat >>conftest.$ac_ext <<_ACEOF
37428 /* end confdefs.h.  */
37429
37430               #include <sys/types.h>
37431
37432 int
37433 main ()
37434 {
37435
37436               intmax_t a; a = 1;
37437
37438   ;
37439   return 0;
37440 }
37441 _ACEOF
37442 rm -f conftest.$ac_objext
37443 if { (ac_try="$ac_compile"
37444 case "(($ac_try" in
37445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37446   *) ac_try_echo=$ac_try;;
37447 esac
37448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37449   (eval "$ac_compile") 2>conftest.er1
37450   ac_status=$?
37451   grep -v '^ *+' conftest.er1 >conftest.err
37452   rm -f conftest.er1
37453   cat conftest.err >&5
37454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37455   (exit $ac_status); } && {
37456          test -z "$ac_c_werror_flag" ||
37457          test ! -s conftest.err
37458        } && test -s conftest.$ac_objext; then
37459
37460               ac_cv_have_intmax_t="yes"
37461
37462 else
37463   echo "$as_me: failed program was:" >&5
37464 sed 's/^/| /' conftest.$ac_ext >&5
37465
37466
37467               cat >conftest.$ac_ext <<_ACEOF
37468 /* confdefs.h.  */
37469 _ACEOF
37470 cat confdefs.h >>conftest.$ac_ext
37471 cat >>conftest.$ac_ext <<_ACEOF
37472 /* end confdefs.h.  */
37473
37474                      #include <stdint.h>
37475
37476 int
37477 main ()
37478 {
37479
37480                      intmax_t a; a = 1;
37481
37482   ;
37483   return 0;
37484 }
37485 _ACEOF
37486 rm -f conftest.$ac_objext
37487 if { (ac_try="$ac_compile"
37488 case "(($ac_try" in
37489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37490   *) ac_try_echo=$ac_try;;
37491 esac
37492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37493   (eval "$ac_compile") 2>conftest.er1
37494   ac_status=$?
37495   grep -v '^ *+' conftest.er1 >conftest.err
37496   rm -f conftest.er1
37497   cat conftest.err >&5
37498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37499   (exit $ac_status); } && {
37500          test -z "$ac_c_werror_flag" ||
37501          test ! -s conftest.err
37502        } && test -s conftest.$ac_objext; then
37503
37504                      ac_cv_have_intmax_t="yes"
37505
37506 else
37507   echo "$as_me: failed program was:" >&5
37508 sed 's/^/| /' conftest.$ac_ext >&5
37509
37510
37511                      ac_cv_have_intmax_t="no"
37512
37513
37514 fi
37515
37516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37517
37518
37519 fi
37520
37521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37522
37523
37524 fi
37525 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37526 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37527 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37528    cat >>confdefs.h <<\_ACEOF
37529 #define HAVE_INTMAX_T 1
37530 _ACEOF
37531
37532    have_intmax_t=1
37533 fi
37534
37535 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37536 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37537 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37538   echo $ECHO_N "(cached) $ECHO_C" >&6
37539 else
37540
37541        cat >conftest.$ac_ext <<_ACEOF
37542 /* confdefs.h.  */
37543 _ACEOF
37544 cat confdefs.h >>conftest.$ac_ext
37545 cat >>conftest.$ac_ext <<_ACEOF
37546 /* end confdefs.h.  */
37547
37548               #include <sys/types.h>
37549
37550 int
37551 main ()
37552 {
37553
37554               u_intmax_t a; a = 1;
37555
37556   ;
37557   return 0;
37558 }
37559 _ACEOF
37560 rm -f conftest.$ac_objext
37561 if { (ac_try="$ac_compile"
37562 case "(($ac_try" in
37563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37564   *) ac_try_echo=$ac_try;;
37565 esac
37566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37567   (eval "$ac_compile") 2>conftest.er1
37568   ac_status=$?
37569   grep -v '^ *+' conftest.er1 >conftest.err
37570   rm -f conftest.er1
37571   cat conftest.err >&5
37572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37573   (exit $ac_status); } && {
37574          test -z "$ac_c_werror_flag" ||
37575          test ! -s conftest.err
37576        } && test -s conftest.$ac_objext; then
37577
37578               ac_cv_have_u_intmax_t="yes"
37579
37580 else
37581   echo "$as_me: failed program was:" >&5
37582 sed 's/^/| /' conftest.$ac_ext >&5
37583
37584
37585               cat >conftest.$ac_ext <<_ACEOF
37586 /* confdefs.h.  */
37587 _ACEOF
37588 cat confdefs.h >>conftest.$ac_ext
37589 cat >>conftest.$ac_ext <<_ACEOF
37590 /* end confdefs.h.  */
37591
37592                      #include <stdint.h>
37593
37594 int
37595 main ()
37596 {
37597
37598                     u_intmax_t a; a = 1;
37599
37600   ;
37601   return 0;
37602 }
37603 _ACEOF
37604 rm -f conftest.$ac_objext
37605 if { (ac_try="$ac_compile"
37606 case "(($ac_try" in
37607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37608   *) ac_try_echo=$ac_try;;
37609 esac
37610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37611   (eval "$ac_compile") 2>conftest.er1
37612   ac_status=$?
37613   grep -v '^ *+' conftest.er1 >conftest.err
37614   rm -f conftest.er1
37615   cat conftest.err >&5
37616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37617   (exit $ac_status); } && {
37618          test -z "$ac_c_werror_flag" ||
37619          test ! -s conftest.err
37620        } && test -s conftest.$ac_objext; then
37621
37622                     ac_cv_have_u_intmax_t="yes"
37623
37624 else
37625   echo "$as_me: failed program was:" >&5
37626 sed 's/^/| /' conftest.$ac_ext >&5
37627
37628
37629                     ac_cv_have_u_intmax_t="no"
37630
37631
37632 fi
37633
37634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37635
37636
37637 fi
37638
37639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37640
37641
37642 fi
37643 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37644 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37645 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37646    cat >>confdefs.h <<\_ACEOF
37647 #define HAVE_U_INTMAX_T 1
37648 _ACEOF
37649
37650    have_u_intmax_t=1
37651 fi
37652
37653 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37654 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37655 if test "${ac_cv_have_intxx_t+set}" = set; then
37656   echo $ECHO_N "(cached) $ECHO_C" >&6
37657 else
37658
37659        cat >conftest.$ac_ext <<_ACEOF
37660 /* confdefs.h.  */
37661 _ACEOF
37662 cat confdefs.h >>conftest.$ac_ext
37663 cat >>conftest.$ac_ext <<_ACEOF
37664 /* end confdefs.h.  */
37665
37666               #include <sys/types.h>
37667
37668 int
37669 main ()
37670 {
37671
37672               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37673
37674   ;
37675   return 0;
37676 }
37677 _ACEOF
37678 rm -f conftest.$ac_objext
37679 if { (ac_try="$ac_compile"
37680 case "(($ac_try" in
37681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37682   *) ac_try_echo=$ac_try;;
37683 esac
37684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37685   (eval "$ac_compile") 2>conftest.er1
37686   ac_status=$?
37687   grep -v '^ *+' conftest.er1 >conftest.err
37688   rm -f conftest.er1
37689   cat conftest.err >&5
37690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37691   (exit $ac_status); } && {
37692          test -z "$ac_c_werror_flag" ||
37693          test ! -s conftest.err
37694        } && test -s conftest.$ac_objext; then
37695
37696               ac_cv_have_intxx_t="yes"
37697
37698 else
37699   echo "$as_me: failed program was:" >&5
37700 sed 's/^/| /' conftest.$ac_ext >&5
37701
37702
37703               ac_cv_have_intxx_t="no"
37704
37705
37706 fi
37707
37708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37709
37710
37711 fi
37712 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37713 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37714 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37715    cat >>confdefs.h <<\_ACEOF
37716 #define HAVE_INTXX_T 1
37717 _ACEOF
37718
37719    have_intxx_t=1
37720 fi
37721
37722 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37723 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37724 if test "${ac_cv_have_int64_t+set}" = set; then
37725   echo $ECHO_N "(cached) $ECHO_C" >&6
37726 else
37727
37728        cat >conftest.$ac_ext <<_ACEOF
37729 /* confdefs.h.  */
37730 _ACEOF
37731 cat confdefs.h >>conftest.$ac_ext
37732 cat >>conftest.$ac_ext <<_ACEOF
37733 /* end confdefs.h.  */
37734
37735               #include <sys/types.h>
37736
37737 int
37738 main ()
37739 {
37740
37741               int64_t a; a = 1;
37742
37743   ;
37744   return 0;
37745 }
37746 _ACEOF
37747 rm -f conftest.$ac_objext
37748 if { (ac_try="$ac_compile"
37749 case "(($ac_try" in
37750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37751   *) ac_try_echo=$ac_try;;
37752 esac
37753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37754   (eval "$ac_compile") 2>conftest.er1
37755   ac_status=$?
37756   grep -v '^ *+' conftest.er1 >conftest.err
37757   rm -f conftest.er1
37758   cat conftest.err >&5
37759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37760   (exit $ac_status); } && {
37761          test -z "$ac_c_werror_flag" ||
37762          test ! -s conftest.err
37763        } && test -s conftest.$ac_objext; then
37764
37765               ac_cv_have_int64_t="yes"
37766
37767 else
37768   echo "$as_me: failed program was:" >&5
37769 sed 's/^/| /' conftest.$ac_ext >&5
37770
37771
37772               ac_cv_have_int64_t="no"
37773
37774
37775 fi
37776
37777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37778
37779
37780 fi
37781 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37782 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37783 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37784    cat >>confdefs.h <<\_ACEOF
37785 #define HAVE_INT64_T 1
37786 _ACEOF
37787
37788    have_int64_t=1
37789 fi
37790
37791 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37792 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37793 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37794   echo $ECHO_N "(cached) $ECHO_C" >&6
37795 else
37796
37797        cat >conftest.$ac_ext <<_ACEOF
37798 /* confdefs.h.  */
37799 _ACEOF
37800 cat confdefs.h >>conftest.$ac_ext
37801 cat >>conftest.$ac_ext <<_ACEOF
37802 /* end confdefs.h.  */
37803
37804               #include <sys/types.h>
37805
37806 int
37807 main ()
37808 {
37809
37810               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37811
37812   ;
37813   return 0;
37814 }
37815 _ACEOF
37816 rm -f conftest.$ac_objext
37817 if { (ac_try="$ac_compile"
37818 case "(($ac_try" in
37819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37820   *) ac_try_echo=$ac_try;;
37821 esac
37822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37823   (eval "$ac_compile") 2>conftest.er1
37824   ac_status=$?
37825   grep -v '^ *+' conftest.er1 >conftest.err
37826   rm -f conftest.er1
37827   cat conftest.err >&5
37828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829   (exit $ac_status); } && {
37830          test -z "$ac_c_werror_flag" ||
37831          test ! -s conftest.err
37832        } && test -s conftest.$ac_objext; then
37833
37834              ac_cv_have_u_intxx_t="yes"
37835
37836 else
37837   echo "$as_me: failed program was:" >&5
37838 sed 's/^/| /' conftest.$ac_ext >&5
37839
37840
37841              ac_cv_have_u_intxx_t="no"
37842
37843
37844 fi
37845
37846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37847
37848
37849 fi
37850 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37851 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37852 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37853    cat >>confdefs.h <<\_ACEOF
37854 #define HAVE_U_INTXX_T 1
37855 _ACEOF
37856
37857    have_u_intxx_t=1
37858 fi
37859
37860 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37861 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37862 if test "${ac_cv_have_u_int64_t+set}" = set; then
37863   echo $ECHO_N "(cached) $ECHO_C" >&6
37864 else
37865
37866        cat >conftest.$ac_ext <<_ACEOF
37867 /* confdefs.h.  */
37868 _ACEOF
37869 cat confdefs.h >>conftest.$ac_ext
37870 cat >>conftest.$ac_ext <<_ACEOF
37871 /* end confdefs.h.  */
37872
37873               #include <sys/types.h>
37874
37875 int
37876 main ()
37877 {
37878
37879               u_int64_t a; a = 1;
37880
37881   ;
37882   return 0;
37883 }
37884 _ACEOF
37885 rm -f conftest.$ac_objext
37886 if { (ac_try="$ac_compile"
37887 case "(($ac_try" in
37888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37889   *) ac_try_echo=$ac_try;;
37890 esac
37891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37892   (eval "$ac_compile") 2>conftest.er1
37893   ac_status=$?
37894   grep -v '^ *+' conftest.er1 >conftest.err
37895   rm -f conftest.er1
37896   cat conftest.err >&5
37897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37898   (exit $ac_status); } && {
37899          test -z "$ac_c_werror_flag" ||
37900          test ! -s conftest.err
37901        } && test -s conftest.$ac_objext; then
37902
37903              ac_cv_have_u_int64_t="yes"
37904
37905 else
37906   echo "$as_me: failed program was:" >&5
37907 sed 's/^/| /' conftest.$ac_ext >&5
37908
37909
37910              ac_cv_have_u_int64_t="no"
37911
37912
37913 fi
37914
37915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37916
37917
37918 fi
37919 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37920 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37921 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37922    cat >>confdefs.h <<\_ACEOF
37923 #define HAVE_U_INT64_T 1
37924 _ACEOF
37925
37926    have_u_int64_t=1
37927 fi
37928
37929 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37930     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37931 then
37932    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37933 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37934    cat >conftest.$ac_ext <<_ACEOF
37935 /* confdefs.h.  */
37936 _ACEOF
37937 cat confdefs.h >>conftest.$ac_ext
37938 cat >>conftest.$ac_ext <<_ACEOF
37939 /* end confdefs.h.  */
37940
37941           #include <sys/bitypes.h>
37942
37943 int
37944 main ()
37945 {
37946
37947           int8_t a; int16_t b; int32_t c;
37948           u_int8_t e; u_int16_t f; u_int32_t g;
37949           a = b = c = e = f = g = 1;
37950
37951   ;
37952   return 0;
37953 }
37954 _ACEOF
37955 rm -f conftest.$ac_objext
37956 if { (ac_try="$ac_compile"
37957 case "(($ac_try" in
37958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37959   *) ac_try_echo=$ac_try;;
37960 esac
37961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37962   (eval "$ac_compile") 2>conftest.er1
37963   ac_status=$?
37964   grep -v '^ *+' conftest.er1 >conftest.err
37965   rm -f conftest.er1
37966   cat conftest.err >&5
37967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37968   (exit $ac_status); } && {
37969          test -z "$ac_c_werror_flag" ||
37970          test ! -s conftest.err
37971        } && test -s conftest.$ac_objext; then
37972
37973           cat >>confdefs.h <<\_ACEOF
37974 #define HAVE_U_INTXX_T 1
37975 _ACEOF
37976
37977           cat >>confdefs.h <<\_ACEOF
37978 #define HAVE_INTXX_T 1
37979 _ACEOF
37980
37981           cat >>confdefs.h <<\_ACEOF
37982 #define HAVE_SYS_BITYPES_H 1
37983 _ACEOF
37984
37985           { echo "$as_me:$LINENO: result: yes" >&5
37986 echo "${ECHO_T}yes" >&6; }
37987
37988 else
37989   echo "$as_me: failed program was:" >&5
37990 sed 's/^/| /' conftest.$ac_ext >&5
37991
37992
37993           { echo "$as_me:$LINENO: result: no" >&5
37994 echo "${ECHO_T}no" >&6; }
37995
37996
37997 fi
37998
37999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38000 fi
38001
38002 if test -z "$have_u_intxx_t" ; then
38003    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
38004 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
38005 if test "${ac_cv_have_uintxx_t+set}" = set; then
38006   echo $ECHO_N "(cached) $ECHO_C" >&6
38007 else
38008
38009           cat >conftest.$ac_ext <<_ACEOF
38010 /* confdefs.h.  */
38011 _ACEOF
38012 cat confdefs.h >>conftest.$ac_ext
38013 cat >>conftest.$ac_ext <<_ACEOF
38014 /* end confdefs.h.  */
38015
38016                  #include <sys/types.h>
38017
38018 int
38019 main ()
38020 {
38021
38022                  uint8_t a; uint16_t b;
38023                  uint32_t c; a = b = c = 1;
38024
38025   ;
38026   return 0;
38027 }
38028 _ACEOF
38029 rm -f conftest.$ac_objext
38030 if { (ac_try="$ac_compile"
38031 case "(($ac_try" in
38032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38033   *) ac_try_echo=$ac_try;;
38034 esac
38035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38036   (eval "$ac_compile") 2>conftest.er1
38037   ac_status=$?
38038   grep -v '^ *+' conftest.er1 >conftest.err
38039   rm -f conftest.er1
38040   cat conftest.err >&5
38041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38042   (exit $ac_status); } && {
38043          test -z "$ac_c_werror_flag" ||
38044          test ! -s conftest.err
38045        } && test -s conftest.$ac_objext; then
38046
38047                 ac_cv_have_uintxx_t="yes"
38048
38049 else
38050   echo "$as_me: failed program was:" >&5
38051 sed 's/^/| /' conftest.$ac_ext >&5
38052
38053
38054                 ac_cv_have_uintxx_t="no"
38055
38056
38057 fi
38058
38059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38060
38061
38062 fi
38063 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
38064 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
38065    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
38066       cat >>confdefs.h <<\_ACEOF
38067 #define HAVE_UINTXX_T 1
38068 _ACEOF
38069
38070    fi
38071 fi
38072
38073 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
38074     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38075 then
38076    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
38077 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
38078    cat >conftest.$ac_ext <<_ACEOF
38079 /* confdefs.h.  */
38080 _ACEOF
38081 cat confdefs.h >>conftest.$ac_ext
38082 cat >>conftest.$ac_ext <<_ACEOF
38083 /* end confdefs.h.  */
38084
38085           #include <sys/bitypes.h>
38086
38087 int
38088 main ()
38089 {
38090
38091           int64_t a; u_int64_t b;
38092           a = b = 1;
38093
38094   ;
38095   return 0;
38096 }
38097 _ACEOF
38098 rm -f conftest.$ac_objext
38099 if { (ac_try="$ac_compile"
38100 case "(($ac_try" in
38101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38102   *) ac_try_echo=$ac_try;;
38103 esac
38104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38105   (eval "$ac_compile") 2>conftest.er1
38106   ac_status=$?
38107   grep -v '^ *+' conftest.er1 >conftest.err
38108   rm -f conftest.er1
38109   cat conftest.err >&5
38110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38111   (exit $ac_status); } && {
38112          test -z "$ac_c_werror_flag" ||
38113          test ! -s conftest.err
38114        } && test -s conftest.$ac_objext; then
38115
38116           cat >>confdefs.h <<\_ACEOF
38117 #define HAVE_U_INT64_T 1
38118 _ACEOF
38119
38120           cat >>confdefs.h <<\_ACEOF
38121 #define HAVE_INT64_T 1
38122 _ACEOF
38123
38124           { echo "$as_me:$LINENO: result: yes" >&5
38125 echo "${ECHO_T}yes" >&6; }
38126
38127 else
38128   echo "$as_me: failed program was:" >&5
38129 sed 's/^/| /' conftest.$ac_ext >&5
38130
38131
38132           { echo "$as_me:$LINENO: result: no" >&5
38133 echo "${ECHO_T}no" >&6; }
38134
38135
38136 fi
38137
38138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38139 fi
38140
38141 if (test -z "$have_uintxx_t" && \
38142     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38143 then
38144    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38145 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38146    cat >conftest.$ac_ext <<_ACEOF
38147 /* confdefs.h.  */
38148 _ACEOF
38149 cat confdefs.h >>conftest.$ac_ext
38150 cat >>conftest.$ac_ext <<_ACEOF
38151 /* end confdefs.h.  */
38152
38153           #include <sys/bitypes.h>
38154
38155 int
38156 main ()
38157 {
38158
38159           uint8_t a; uint16_t b;
38160           uint32_t c; a = b = c = 1;
38161
38162   ;
38163   return 0;
38164 }
38165 _ACEOF
38166 rm -f conftest.$ac_objext
38167 if { (ac_try="$ac_compile"
38168 case "(($ac_try" in
38169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38170   *) ac_try_echo=$ac_try;;
38171 esac
38172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38173   (eval "$ac_compile") 2>conftest.er1
38174   ac_status=$?
38175   grep -v '^ *+' conftest.er1 >conftest.err
38176   rm -f conftest.er1
38177   cat conftest.err >&5
38178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38179   (exit $ac_status); } && {
38180          test -z "$ac_c_werror_flag" ||
38181          test ! -s conftest.err
38182        } && test -s conftest.$ac_objext; then
38183
38184           cat >>confdefs.h <<\_ACEOF
38185 #define HAVE_UINTXX_T 1
38186 _ACEOF
38187
38188           { echo "$as_me:$LINENO: result: yes" >&5
38189 echo "${ECHO_T}yes" >&6; }
38190
38191 else
38192   echo "$as_me: failed program was:" >&5
38193 sed 's/^/| /' conftest.$ac_ext >&5
38194
38195
38196           { echo "$as_me:$LINENO: result: no" >&5
38197 echo "${ECHO_T}no" >&6; }
38198
38199
38200 fi
38201
38202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38203 fi
38204
38205
38206
38207
38208
38209
38210
38211
38212
38213
38214
38215
38216
38217
38218 for ac_func in \
38219    fork \
38220    getcwd \
38221    gethostname \
38222    getpid \
38223    gettimeofday \
38224    setpgid \
38225    setpgrp \
38226    setsid \
38227    signal \
38228    strerror \
38229    strncmp \
38230    strncpy \
38231    vfprintf \
38232
38233 do
38234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38238   echo $ECHO_N "(cached) $ECHO_C" >&6
38239 else
38240   cat >conftest.$ac_ext <<_ACEOF
38241 /* confdefs.h.  */
38242 _ACEOF
38243 cat confdefs.h >>conftest.$ac_ext
38244 cat >>conftest.$ac_ext <<_ACEOF
38245 /* end confdefs.h.  */
38246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38248 #define $ac_func innocuous_$ac_func
38249
38250 /* System header to define __stub macros and hopefully few prototypes,
38251     which can conflict with char $ac_func (); below.
38252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38253     <limits.h> exists even on freestanding compilers.  */
38254
38255 #ifdef __STDC__
38256 # include <limits.h>
38257 #else
38258 # include <assert.h>
38259 #endif
38260
38261 #undef $ac_func
38262
38263 /* Override any GCC internal prototype to avoid an error.
38264    Use char because int might match the return type of a GCC
38265    builtin and then its argument prototype would still apply.  */
38266 #ifdef __cplusplus
38267 extern "C"
38268 #endif
38269 char $ac_func ();
38270 /* The GNU C library defines this for functions which it implements
38271     to always fail with ENOSYS.  Some functions are actually named
38272     something starting with __ and the normal name is an alias.  */
38273 #if defined __stub_$ac_func || defined __stub___$ac_func
38274 choke me
38275 #endif
38276
38277 int
38278 main ()
38279 {
38280 return $ac_func ();
38281   ;
38282   return 0;
38283 }
38284 _ACEOF
38285 rm -f conftest.$ac_objext conftest$ac_exeext
38286 if { (ac_try="$ac_link"
38287 case "(($ac_try" in
38288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38289   *) ac_try_echo=$ac_try;;
38290 esac
38291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38292   (eval "$ac_link") 2>conftest.er1
38293   ac_status=$?
38294   grep -v '^ *+' conftest.er1 >conftest.err
38295   rm -f conftest.er1
38296   cat conftest.err >&5
38297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298   (exit $ac_status); } && {
38299          test -z "$ac_c_werror_flag" ||
38300          test ! -s conftest.err
38301        } && test -s conftest$ac_exeext &&
38302        $as_test_x conftest$ac_exeext; then
38303   eval "$as_ac_var=yes"
38304 else
38305   echo "$as_me: failed program was:" >&5
38306 sed 's/^/| /' conftest.$ac_ext >&5
38307
38308         eval "$as_ac_var=no"
38309 fi
38310
38311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38312       conftest$ac_exeext conftest.$ac_ext
38313 fi
38314 ac_res=`eval echo '${'$as_ac_var'}'`
38315                { echo "$as_me:$LINENO: result: $ac_res" >&5
38316 echo "${ECHO_T}$ac_res" >&6; }
38317 if test `eval echo '${'$as_ac_var'}'` = yes; then
38318   cat >>confdefs.h <<_ACEOF
38319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38320 _ACEOF
38321
38322 else
38323   echo 'configure: cannot find needed function.'; exit 1
38324
38325 fi
38326 done
38327
38328
38329
38330 for ac_func in fchdir
38331 do
38332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38336   echo $ECHO_N "(cached) $ECHO_C" >&6
38337 else
38338   cat >conftest.$ac_ext <<_ACEOF
38339 /* confdefs.h.  */
38340 _ACEOF
38341 cat confdefs.h >>conftest.$ac_ext
38342 cat >>conftest.$ac_ext <<_ACEOF
38343 /* end confdefs.h.  */
38344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38346 #define $ac_func innocuous_$ac_func
38347
38348 /* System header to define __stub macros and hopefully few prototypes,
38349     which can conflict with char $ac_func (); below.
38350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38351     <limits.h> exists even on freestanding compilers.  */
38352
38353 #ifdef __STDC__
38354 # include <limits.h>
38355 #else
38356 # include <assert.h>
38357 #endif
38358
38359 #undef $ac_func
38360
38361 /* Override any GCC internal prototype to avoid an error.
38362    Use char because int might match the return type of a GCC
38363    builtin and then its argument prototype would still apply.  */
38364 #ifdef __cplusplus
38365 extern "C"
38366 #endif
38367 char $ac_func ();
38368 /* The GNU C library defines this for functions which it implements
38369     to always fail with ENOSYS.  Some functions are actually named
38370     something starting with __ and the normal name is an alias.  */
38371 #if defined __stub_$ac_func || defined __stub___$ac_func
38372 choke me
38373 #endif
38374
38375 int
38376 main ()
38377 {
38378 return $ac_func ();
38379   ;
38380   return 0;
38381 }
38382 _ACEOF
38383 rm -f conftest.$ac_objext conftest$ac_exeext
38384 if { (ac_try="$ac_link"
38385 case "(($ac_try" in
38386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38387   *) ac_try_echo=$ac_try;;
38388 esac
38389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38390   (eval "$ac_link") 2>conftest.er1
38391   ac_status=$?
38392   grep -v '^ *+' conftest.er1 >conftest.err
38393   rm -f conftest.er1
38394   cat conftest.err >&5
38395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38396   (exit $ac_status); } && {
38397          test -z "$ac_c_werror_flag" ||
38398          test ! -s conftest.err
38399        } && test -s conftest$ac_exeext &&
38400        $as_test_x conftest$ac_exeext; then
38401   eval "$as_ac_var=yes"
38402 else
38403   echo "$as_me: failed program was:" >&5
38404 sed 's/^/| /' conftest.$ac_ext >&5
38405
38406         eval "$as_ac_var=no"
38407 fi
38408
38409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38410       conftest$ac_exeext conftest.$ac_ext
38411 fi
38412 ac_res=`eval echo '${'$as_ac_var'}'`
38413                { echo "$as_me:$LINENO: result: $ac_res" >&5
38414 echo "${ECHO_T}$ac_res" >&6; }
38415 if test `eval echo '${'$as_ac_var'}'` = yes; then
38416   cat >>confdefs.h <<_ACEOF
38417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38418 _ACEOF
38419  cat >>confdefs.h <<\_ACEOF
38420 #define HAVE_FCHDIR 1
38421 _ACEOF
38422
38423 fi
38424 done
38425
38426
38427 for ac_func in strtoll
38428 do
38429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38430 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38433   echo $ECHO_N "(cached) $ECHO_C" >&6
38434 else
38435   cat >conftest.$ac_ext <<_ACEOF
38436 /* confdefs.h.  */
38437 _ACEOF
38438 cat confdefs.h >>conftest.$ac_ext
38439 cat >>conftest.$ac_ext <<_ACEOF
38440 /* end confdefs.h.  */
38441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38443 #define $ac_func innocuous_$ac_func
38444
38445 /* System header to define __stub macros and hopefully few prototypes,
38446     which can conflict with char $ac_func (); below.
38447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38448     <limits.h> exists even on freestanding compilers.  */
38449
38450 #ifdef __STDC__
38451 # include <limits.h>
38452 #else
38453 # include <assert.h>
38454 #endif
38455
38456 #undef $ac_func
38457
38458 /* Override any GCC internal prototype to avoid an error.
38459    Use char because int might match the return type of a GCC
38460    builtin and then its argument prototype would still apply.  */
38461 #ifdef __cplusplus
38462 extern "C"
38463 #endif
38464 char $ac_func ();
38465 /* The GNU C library defines this for functions which it implements
38466     to always fail with ENOSYS.  Some functions are actually named
38467     something starting with __ and the normal name is an alias.  */
38468 #if defined __stub_$ac_func || defined __stub___$ac_func
38469 choke me
38470 #endif
38471
38472 int
38473 main ()
38474 {
38475 return $ac_func ();
38476   ;
38477   return 0;
38478 }
38479 _ACEOF
38480 rm -f conftest.$ac_objext conftest$ac_exeext
38481 if { (ac_try="$ac_link"
38482 case "(($ac_try" in
38483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38484   *) ac_try_echo=$ac_try;;
38485 esac
38486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38487   (eval "$ac_link") 2>conftest.er1
38488   ac_status=$?
38489   grep -v '^ *+' conftest.er1 >conftest.err
38490   rm -f conftest.er1
38491   cat conftest.err >&5
38492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38493   (exit $ac_status); } && {
38494          test -z "$ac_c_werror_flag" ||
38495          test ! -s conftest.err
38496        } && test -s conftest$ac_exeext &&
38497        $as_test_x conftest$ac_exeext; then
38498   eval "$as_ac_var=yes"
38499 else
38500   echo "$as_me: failed program was:" >&5
38501 sed 's/^/| /' conftest.$ac_ext >&5
38502
38503         eval "$as_ac_var=no"
38504 fi
38505
38506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38507       conftest$ac_exeext conftest.$ac_ext
38508 fi
38509 ac_res=`eval echo '${'$as_ac_var'}'`
38510                { echo "$as_me:$LINENO: result: $ac_res" >&5
38511 echo "${ECHO_T}$ac_res" >&6; }
38512 if test `eval echo '${'$as_ac_var'}'` = yes; then
38513   cat >>confdefs.h <<_ACEOF
38514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38515 _ACEOF
38516  cat >>confdefs.h <<\_ACEOF
38517 #define HAVE_STRTOLL 1
38518 _ACEOF
38519
38520 fi
38521 done
38522
38523
38524 for ac_func in posix_fadvise
38525 do
38526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38530   echo $ECHO_N "(cached) $ECHO_C" >&6
38531 else
38532   cat >conftest.$ac_ext <<_ACEOF
38533 /* confdefs.h.  */
38534 _ACEOF
38535 cat confdefs.h >>conftest.$ac_ext
38536 cat >>conftest.$ac_ext <<_ACEOF
38537 /* end confdefs.h.  */
38538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38540 #define $ac_func innocuous_$ac_func
38541
38542 /* System header to define __stub macros and hopefully few prototypes,
38543     which can conflict with char $ac_func (); below.
38544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38545     <limits.h> exists even on freestanding compilers.  */
38546
38547 #ifdef __STDC__
38548 # include <limits.h>
38549 #else
38550 # include <assert.h>
38551 #endif
38552
38553 #undef $ac_func
38554
38555 /* Override any GCC internal prototype to avoid an error.
38556    Use char because int might match the return type of a GCC
38557    builtin and then its argument prototype would still apply.  */
38558 #ifdef __cplusplus
38559 extern "C"
38560 #endif
38561 char $ac_func ();
38562 /* The GNU C library defines this for functions which it implements
38563     to always fail with ENOSYS.  Some functions are actually named
38564     something starting with __ and the normal name is an alias.  */
38565 #if defined __stub_$ac_func || defined __stub___$ac_func
38566 choke me
38567 #endif
38568
38569 int
38570 main ()
38571 {
38572 return $ac_func ();
38573   ;
38574   return 0;
38575 }
38576 _ACEOF
38577 rm -f conftest.$ac_objext conftest$ac_exeext
38578 if { (ac_try="$ac_link"
38579 case "(($ac_try" in
38580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38581   *) ac_try_echo=$ac_try;;
38582 esac
38583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38584   (eval "$ac_link") 2>conftest.er1
38585   ac_status=$?
38586   grep -v '^ *+' conftest.er1 >conftest.err
38587   rm -f conftest.er1
38588   cat conftest.err >&5
38589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38590   (exit $ac_status); } && {
38591          test -z "$ac_c_werror_flag" ||
38592          test ! -s conftest.err
38593        } && test -s conftest$ac_exeext &&
38594        $as_test_x conftest$ac_exeext; then
38595   eval "$as_ac_var=yes"
38596 else
38597   echo "$as_me: failed program was:" >&5
38598 sed 's/^/| /' conftest.$ac_ext >&5
38599
38600         eval "$as_ac_var=no"
38601 fi
38602
38603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38604       conftest$ac_exeext conftest.$ac_ext
38605 fi
38606 ac_res=`eval echo '${'$as_ac_var'}'`
38607                { echo "$as_me:$LINENO: result: $ac_res" >&5
38608 echo "${ECHO_T}$ac_res" >&6; }
38609 if test `eval echo '${'$as_ac_var'}'` = yes; then
38610   cat >>confdefs.h <<_ACEOF
38611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38612 _ACEOF
38613
38614 fi
38615 done
38616
38617
38618 for ac_func in fdatasync
38619 do
38620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38624   echo $ECHO_N "(cached) $ECHO_C" >&6
38625 else
38626   cat >conftest.$ac_ext <<_ACEOF
38627 /* confdefs.h.  */
38628 _ACEOF
38629 cat confdefs.h >>conftest.$ac_ext
38630 cat >>conftest.$ac_ext <<_ACEOF
38631 /* end confdefs.h.  */
38632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38634 #define $ac_func innocuous_$ac_func
38635
38636 /* System header to define __stub macros and hopefully few prototypes,
38637     which can conflict with char $ac_func (); below.
38638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38639     <limits.h> exists even on freestanding compilers.  */
38640
38641 #ifdef __STDC__
38642 # include <limits.h>
38643 #else
38644 # include <assert.h>
38645 #endif
38646
38647 #undef $ac_func
38648
38649 /* Override any GCC internal prototype to avoid an error.
38650    Use char because int might match the return type of a GCC
38651    builtin and then its argument prototype would still apply.  */
38652 #ifdef __cplusplus
38653 extern "C"
38654 #endif
38655 char $ac_func ();
38656 /* The GNU C library defines this for functions which it implements
38657     to always fail with ENOSYS.  Some functions are actually named
38658     something starting with __ and the normal name is an alias.  */
38659 #if defined __stub_$ac_func || defined __stub___$ac_func
38660 choke me
38661 #endif
38662
38663 int
38664 main ()
38665 {
38666 return $ac_func ();
38667   ;
38668   return 0;
38669 }
38670 _ACEOF
38671 rm -f conftest.$ac_objext conftest$ac_exeext
38672 if { (ac_try="$ac_link"
38673 case "(($ac_try" in
38674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38675   *) ac_try_echo=$ac_try;;
38676 esac
38677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38678   (eval "$ac_link") 2>conftest.er1
38679   ac_status=$?
38680   grep -v '^ *+' conftest.er1 >conftest.err
38681   rm -f conftest.er1
38682   cat conftest.err >&5
38683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38684   (exit $ac_status); } && {
38685          test -z "$ac_c_werror_flag" ||
38686          test ! -s conftest.err
38687        } && test -s conftest$ac_exeext &&
38688        $as_test_x conftest$ac_exeext; then
38689   eval "$as_ac_var=yes"
38690 else
38691   echo "$as_me: failed program was:" >&5
38692 sed 's/^/| /' conftest.$ac_ext >&5
38693
38694         eval "$as_ac_var=no"
38695 fi
38696
38697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38698       conftest$ac_exeext conftest.$ac_ext
38699 fi
38700 ac_res=`eval echo '${'$as_ac_var'}'`
38701                { echo "$as_me:$LINENO: result: $ac_res" >&5
38702 echo "${ECHO_T}$ac_res" >&6; }
38703 if test `eval echo '${'$as_ac_var'}'` = yes; then
38704   cat >>confdefs.h <<_ACEOF
38705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38706 _ACEOF
38707
38708 fi
38709 done
38710
38711
38712
38713 for ac_func in chflags
38714 do
38715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38719   echo $ECHO_N "(cached) $ECHO_C" >&6
38720 else
38721   cat >conftest.$ac_ext <<_ACEOF
38722 /* confdefs.h.  */
38723 _ACEOF
38724 cat confdefs.h >>conftest.$ac_ext
38725 cat >>conftest.$ac_ext <<_ACEOF
38726 /* end confdefs.h.  */
38727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38729 #define $ac_func innocuous_$ac_func
38730
38731 /* System header to define __stub macros and hopefully few prototypes,
38732     which can conflict with char $ac_func (); below.
38733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38734     <limits.h> exists even on freestanding compilers.  */
38735
38736 #ifdef __STDC__
38737 # include <limits.h>
38738 #else
38739 # include <assert.h>
38740 #endif
38741
38742 #undef $ac_func
38743
38744 /* Override any GCC internal prototype to avoid an error.
38745    Use char because int might match the return type of a GCC
38746    builtin and then its argument prototype would still apply.  */
38747 #ifdef __cplusplus
38748 extern "C"
38749 #endif
38750 char $ac_func ();
38751 /* The GNU C library defines this for functions which it implements
38752     to always fail with ENOSYS.  Some functions are actually named
38753     something starting with __ and the normal name is an alias.  */
38754 #if defined __stub_$ac_func || defined __stub___$ac_func
38755 choke me
38756 #endif
38757
38758 int
38759 main ()
38760 {
38761 return $ac_func ();
38762   ;
38763   return 0;
38764 }
38765 _ACEOF
38766 rm -f conftest.$ac_objext conftest$ac_exeext
38767 if { (ac_try="$ac_link"
38768 case "(($ac_try" in
38769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38770   *) ac_try_echo=$ac_try;;
38771 esac
38772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38773   (eval "$ac_link") 2>conftest.er1
38774   ac_status=$?
38775   grep -v '^ *+' conftest.er1 >conftest.err
38776   rm -f conftest.er1
38777   cat conftest.err >&5
38778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38779   (exit $ac_status); } && {
38780          test -z "$ac_c_werror_flag" ||
38781          test ! -s conftest.err
38782        } && test -s conftest$ac_exeext &&
38783        $as_test_x conftest$ac_exeext; then
38784   eval "$as_ac_var=yes"
38785 else
38786   echo "$as_me: failed program was:" >&5
38787 sed 's/^/| /' conftest.$ac_ext >&5
38788
38789         eval "$as_ac_var=no"
38790 fi
38791
38792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38793       conftest$ac_exeext conftest.$ac_ext
38794 fi
38795 ac_res=`eval echo '${'$as_ac_var'}'`
38796                { echo "$as_me:$LINENO: result: $ac_res" >&5
38797 echo "${ECHO_T}$ac_res" >&6; }
38798 if test `eval echo '${'$as_ac_var'}'` = yes; then
38799   cat >>confdefs.h <<_ACEOF
38800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38801 _ACEOF
38802
38803 fi
38804 done
38805
38806
38807
38808
38809
38810
38811 for ac_func in snprintf vsnprintf gethostid fseeko
38812 do
38813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38817   echo $ECHO_N "(cached) $ECHO_C" >&6
38818 else
38819   cat >conftest.$ac_ext <<_ACEOF
38820 /* confdefs.h.  */
38821 _ACEOF
38822 cat confdefs.h >>conftest.$ac_ext
38823 cat >>conftest.$ac_ext <<_ACEOF
38824 /* end confdefs.h.  */
38825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38827 #define $ac_func innocuous_$ac_func
38828
38829 /* System header to define __stub macros and hopefully few prototypes,
38830     which can conflict with char $ac_func (); below.
38831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38832     <limits.h> exists even on freestanding compilers.  */
38833
38834 #ifdef __STDC__
38835 # include <limits.h>
38836 #else
38837 # include <assert.h>
38838 #endif
38839
38840 #undef $ac_func
38841
38842 /* Override any GCC internal prototype to avoid an error.
38843    Use char because int might match the return type of a GCC
38844    builtin and then its argument prototype would still apply.  */
38845 #ifdef __cplusplus
38846 extern "C"
38847 #endif
38848 char $ac_func ();
38849 /* The GNU C library defines this for functions which it implements
38850     to always fail with ENOSYS.  Some functions are actually named
38851     something starting with __ and the normal name is an alias.  */
38852 #if defined __stub_$ac_func || defined __stub___$ac_func
38853 choke me
38854 #endif
38855
38856 int
38857 main ()
38858 {
38859 return $ac_func ();
38860   ;
38861   return 0;
38862 }
38863 _ACEOF
38864 rm -f conftest.$ac_objext conftest$ac_exeext
38865 if { (ac_try="$ac_link"
38866 case "(($ac_try" in
38867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38868   *) ac_try_echo=$ac_try;;
38869 esac
38870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38871   (eval "$ac_link") 2>conftest.er1
38872   ac_status=$?
38873   grep -v '^ *+' conftest.er1 >conftest.err
38874   rm -f conftest.er1
38875   cat conftest.err >&5
38876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38877   (exit $ac_status); } && {
38878          test -z "$ac_c_werror_flag" ||
38879          test ! -s conftest.err
38880        } && test -s conftest$ac_exeext &&
38881        $as_test_x conftest$ac_exeext; then
38882   eval "$as_ac_var=yes"
38883 else
38884   echo "$as_me: failed program was:" >&5
38885 sed 's/^/| /' conftest.$ac_ext >&5
38886
38887         eval "$as_ac_var=no"
38888 fi
38889
38890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38891       conftest$ac_exeext conftest.$ac_ext
38892 fi
38893 ac_res=`eval echo '${'$as_ac_var'}'`
38894                { echo "$as_me:$LINENO: result: $ac_res" >&5
38895 echo "${ECHO_T}$ac_res" >&6; }
38896 if test `eval echo '${'$as_ac_var'}'` = yes; then
38897   cat >>confdefs.h <<_ACEOF
38898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38899 _ACEOF
38900
38901 fi
38902 done
38903
38904
38905 { echo "$as_me:$LINENO: checking for va_copy" >&5
38906 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38907 if test "${ba_cv_va_copy+set}" = set; then
38908   echo $ECHO_N "(cached) $ECHO_C" >&6
38909 else
38910
38911        cat >conftest.$ac_ext <<_ACEOF
38912 /* confdefs.h.  */
38913 _ACEOF
38914 cat confdefs.h >>conftest.$ac_ext
38915 cat >>conftest.$ac_ext <<_ACEOF
38916 /* end confdefs.h.  */
38917
38918               #include <stdarg.h>
38919               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38920               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38921
38922 int
38923 main ()
38924 {
38925
38926               call_use_va_copy(1,2,3)
38927
38928   ;
38929   return 0;
38930 }
38931 _ACEOF
38932 rm -f conftest.$ac_objext conftest$ac_exeext
38933 if { (ac_try="$ac_link"
38934 case "(($ac_try" in
38935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38936   *) ac_try_echo=$ac_try;;
38937 esac
38938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38939   (eval "$ac_link") 2>conftest.er1
38940   ac_status=$?
38941   grep -v '^ *+' conftest.er1 >conftest.err
38942   rm -f conftest.er1
38943   cat conftest.err >&5
38944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38945   (exit $ac_status); } && {
38946          test -z "$ac_c_werror_flag" ||
38947          test ! -s conftest.err
38948        } && test -s conftest$ac_exeext &&
38949        $as_test_x conftest$ac_exeext; then
38950
38951               ba_cv_va_copy=yes,
38952
38953 else
38954   echo "$as_me: failed program was:" >&5
38955 sed 's/^/| /' conftest.$ac_ext >&5
38956
38957
38958               ba_cv_va_copy=no
38959
38960
38961 fi
38962
38963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38964       conftest$ac_exeext conftest.$ac_ext
38965
38966
38967 fi
38968 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38969 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38970 test $ba_cv_va_copy = yes &&
38971 cat >>confdefs.h <<\_ACEOF
38972 #define HAVE_VA_COPY 1
38973 _ACEOF
38974
38975
38976
38977
38978
38979
38980 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38981 do
38982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38986   echo $ECHO_N "(cached) $ECHO_C" >&6
38987 else
38988   cat >conftest.$ac_ext <<_ACEOF
38989 /* confdefs.h.  */
38990 _ACEOF
38991 cat confdefs.h >>conftest.$ac_ext
38992 cat >>conftest.$ac_ext <<_ACEOF
38993 /* end confdefs.h.  */
38994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38996 #define $ac_func innocuous_$ac_func
38997
38998 /* System header to define __stub macros and hopefully few prototypes,
38999     which can conflict with char $ac_func (); below.
39000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39001     <limits.h> exists even on freestanding compilers.  */
39002
39003 #ifdef __STDC__
39004 # include <limits.h>
39005 #else
39006 # include <assert.h>
39007 #endif
39008
39009 #undef $ac_func
39010
39011 /* Override any GCC internal prototype to avoid an error.
39012    Use char because int might match the return type of a GCC
39013    builtin and then its argument prototype would still apply.  */
39014 #ifdef __cplusplus
39015 extern "C"
39016 #endif
39017 char $ac_func ();
39018 /* The GNU C library defines this for functions which it implements
39019     to always fail with ENOSYS.  Some functions are actually named
39020     something starting with __ and the normal name is an alias.  */
39021 #if defined __stub_$ac_func || defined __stub___$ac_func
39022 choke me
39023 #endif
39024
39025 int
39026 main ()
39027 {
39028 return $ac_func ();
39029   ;
39030   return 0;
39031 }
39032 _ACEOF
39033 rm -f conftest.$ac_objext conftest$ac_exeext
39034 if { (ac_try="$ac_link"
39035 case "(($ac_try" in
39036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39037   *) ac_try_echo=$ac_try;;
39038 esac
39039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39040   (eval "$ac_link") 2>conftest.er1
39041   ac_status=$?
39042   grep -v '^ *+' conftest.er1 >conftest.err
39043   rm -f conftest.er1
39044   cat conftest.err >&5
39045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39046   (exit $ac_status); } && {
39047          test -z "$ac_c_werror_flag" ||
39048          test ! -s conftest.err
39049        } && test -s conftest$ac_exeext &&
39050        $as_test_x conftest$ac_exeext; then
39051   eval "$as_ac_var=yes"
39052 else
39053   echo "$as_me: failed program was:" >&5
39054 sed 's/^/| /' conftest.$ac_ext >&5
39055
39056         eval "$as_ac_var=no"
39057 fi
39058
39059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39060       conftest$ac_exeext conftest.$ac_ext
39061 fi
39062 ac_res=`eval echo '${'$as_ac_var'}'`
39063                { echo "$as_me:$LINENO: result: $ac_res" >&5
39064 echo "${ECHO_T}$ac_res" >&6; }
39065 if test `eval echo '${'$as_ac_var'}'` = yes; then
39066   cat >>confdefs.h <<_ACEOF
39067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39068 _ACEOF
39069
39070 fi
39071 done
39072
39073
39074 # If resolver functions are not in libc check for -lnsl or -lresolv.
39075 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
39076 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
39077 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
39078   echo $ECHO_N "(cached) $ECHO_C" >&6
39079 else
39080   cat >conftest.$ac_ext <<_ACEOF
39081 /* confdefs.h.  */
39082 _ACEOF
39083 cat confdefs.h >>conftest.$ac_ext
39084 cat >>conftest.$ac_ext <<_ACEOF
39085 /* end confdefs.h.  */
39086 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39088 #define gethostbyname_r innocuous_gethostbyname_r
39089
39090 /* System header to define __stub macros and hopefully few prototypes,
39091     which can conflict with char gethostbyname_r (); below.
39092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39093     <limits.h> exists even on freestanding compilers.  */
39094
39095 #ifdef __STDC__
39096 # include <limits.h>
39097 #else
39098 # include <assert.h>
39099 #endif
39100
39101 #undef gethostbyname_r
39102
39103 /* Override any GCC internal prototype to avoid an error.
39104    Use char because int might match the return type of a GCC
39105    builtin and then its argument prototype would still apply.  */
39106 #ifdef __cplusplus
39107 extern "C"
39108 #endif
39109 char gethostbyname_r ();
39110 /* The GNU C library defines this for functions which it implements
39111     to always fail with ENOSYS.  Some functions are actually named
39112     something starting with __ and the normal name is an alias.  */
39113 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39114 choke me
39115 #endif
39116
39117 int
39118 main ()
39119 {
39120 return gethostbyname_r ();
39121   ;
39122   return 0;
39123 }
39124 _ACEOF
39125 rm -f conftest.$ac_objext conftest$ac_exeext
39126 if { (ac_try="$ac_link"
39127 case "(($ac_try" in
39128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39129   *) ac_try_echo=$ac_try;;
39130 esac
39131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39132   (eval "$ac_link") 2>conftest.er1
39133   ac_status=$?
39134   grep -v '^ *+' conftest.er1 >conftest.err
39135   rm -f conftest.er1
39136   cat conftest.err >&5
39137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39138   (exit $ac_status); } && {
39139          test -z "$ac_c_werror_flag" ||
39140          test ! -s conftest.err
39141        } && test -s conftest$ac_exeext &&
39142        $as_test_x conftest$ac_exeext; then
39143   ac_cv_func_gethostbyname_r=yes
39144 else
39145   echo "$as_me: failed program was:" >&5
39146 sed 's/^/| /' conftest.$ac_ext >&5
39147
39148         ac_cv_func_gethostbyname_r=no
39149 fi
39150
39151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39152       conftest$ac_exeext conftest.$ac_ext
39153 fi
39154 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39155 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39156 if test $ac_cv_func_gethostbyname_r = yes; then
39157   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39158 echo "${ECHO_T}using libc's resolver" >&6; }
39159 else
39160
39161 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39162 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39163 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39164   echo $ECHO_N "(cached) $ECHO_C" >&6
39165 else
39166   ac_check_lib_save_LIBS=$LIBS
39167 LIBS="-lnsl  $LIBS"
39168 cat >conftest.$ac_ext <<_ACEOF
39169 /* confdefs.h.  */
39170 _ACEOF
39171 cat confdefs.h >>conftest.$ac_ext
39172 cat >>conftest.$ac_ext <<_ACEOF
39173 /* end confdefs.h.  */
39174
39175 /* Override any GCC internal prototype to avoid an error.
39176    Use char because int might match the return type of a GCC
39177    builtin and then its argument prototype would still apply.  */
39178 #ifdef __cplusplus
39179 extern "C"
39180 #endif
39181 char gethostbyname_r ();
39182 int
39183 main ()
39184 {
39185 return gethostbyname_r ();
39186   ;
39187   return 0;
39188 }
39189 _ACEOF
39190 rm -f conftest.$ac_objext conftest$ac_exeext
39191 if { (ac_try="$ac_link"
39192 case "(($ac_try" in
39193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39194   *) ac_try_echo=$ac_try;;
39195 esac
39196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39197   (eval "$ac_link") 2>conftest.er1
39198   ac_status=$?
39199   grep -v '^ *+' conftest.er1 >conftest.err
39200   rm -f conftest.er1
39201   cat conftest.err >&5
39202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39203   (exit $ac_status); } && {
39204          test -z "$ac_c_werror_flag" ||
39205          test ! -s conftest.err
39206        } && test -s conftest$ac_exeext &&
39207        $as_test_x conftest$ac_exeext; then
39208   ac_cv_lib_nsl_gethostbyname_r=yes
39209 else
39210   echo "$as_me: failed program was:" >&5
39211 sed 's/^/| /' conftest.$ac_ext >&5
39212
39213         ac_cv_lib_nsl_gethostbyname_r=no
39214 fi
39215
39216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39217       conftest$ac_exeext conftest.$ac_ext
39218 LIBS=$ac_check_lib_save_LIBS
39219 fi
39220 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39221 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39222 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39223   cat >>confdefs.h <<_ACEOF
39224 #define HAVE_LIBNSL 1
39225 _ACEOF
39226
39227   LIBS="-lnsl $LIBS"
39228
39229 fi
39230
39231
39232 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39233 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39234 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39235   echo $ECHO_N "(cached) $ECHO_C" >&6
39236 else
39237   ac_check_lib_save_LIBS=$LIBS
39238 LIBS="-lresolv  $LIBS"
39239 cat >conftest.$ac_ext <<_ACEOF
39240 /* confdefs.h.  */
39241 _ACEOF
39242 cat confdefs.h >>conftest.$ac_ext
39243 cat >>conftest.$ac_ext <<_ACEOF
39244 /* end confdefs.h.  */
39245
39246 /* Override any GCC internal prototype to avoid an error.
39247    Use char because int might match the return type of a GCC
39248    builtin and then its argument prototype would still apply.  */
39249 #ifdef __cplusplus
39250 extern "C"
39251 #endif
39252 char gethostbyname_r ();
39253 int
39254 main ()
39255 {
39256 return gethostbyname_r ();
39257   ;
39258   return 0;
39259 }
39260 _ACEOF
39261 rm -f conftest.$ac_objext conftest$ac_exeext
39262 if { (ac_try="$ac_link"
39263 case "(($ac_try" in
39264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39265   *) ac_try_echo=$ac_try;;
39266 esac
39267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39268   (eval "$ac_link") 2>conftest.er1
39269   ac_status=$?
39270   grep -v '^ *+' conftest.er1 >conftest.err
39271   rm -f conftest.er1
39272   cat conftest.err >&5
39273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39274   (exit $ac_status); } && {
39275          test -z "$ac_c_werror_flag" ||
39276          test ! -s conftest.err
39277        } && test -s conftest$ac_exeext &&
39278        $as_test_x conftest$ac_exeext; then
39279   ac_cv_lib_resolv_gethostbyname_r=yes
39280 else
39281   echo "$as_me: failed program was:" >&5
39282 sed 's/^/| /' conftest.$ac_ext >&5
39283
39284         ac_cv_lib_resolv_gethostbyname_r=no
39285 fi
39286
39287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39288       conftest$ac_exeext conftest.$ac_ext
39289 LIBS=$ac_check_lib_save_LIBS
39290 fi
39291 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39292 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39293 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39294   cat >>confdefs.h <<_ACEOF
39295 #define HAVE_LIBRESOLV 1
39296 _ACEOF
39297
39298   LIBS="-lresolv $LIBS"
39299
39300 fi
39301
39302 fi
39303
39304
39305
39306 for ac_func in inet_pton
39307 do
39308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39312   echo $ECHO_N "(cached) $ECHO_C" >&6
39313 else
39314   cat >conftest.$ac_ext <<_ACEOF
39315 /* confdefs.h.  */
39316 _ACEOF
39317 cat confdefs.h >>conftest.$ac_ext
39318 cat >>conftest.$ac_ext <<_ACEOF
39319 /* end confdefs.h.  */
39320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39322 #define $ac_func innocuous_$ac_func
39323
39324 /* System header to define __stub macros and hopefully few prototypes,
39325     which can conflict with char $ac_func (); below.
39326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39327     <limits.h> exists even on freestanding compilers.  */
39328
39329 #ifdef __STDC__
39330 # include <limits.h>
39331 #else
39332 # include <assert.h>
39333 #endif
39334
39335 #undef $ac_func
39336
39337 /* Override any GCC internal prototype to avoid an error.
39338    Use char because int might match the return type of a GCC
39339    builtin and then its argument prototype would still apply.  */
39340 #ifdef __cplusplus
39341 extern "C"
39342 #endif
39343 char $ac_func ();
39344 /* The GNU C library defines this for functions which it implements
39345     to always fail with ENOSYS.  Some functions are actually named
39346     something starting with __ and the normal name is an alias.  */
39347 #if defined __stub_$ac_func || defined __stub___$ac_func
39348 choke me
39349 #endif
39350
39351 int
39352 main ()
39353 {
39354 return $ac_func ();
39355   ;
39356   return 0;
39357 }
39358 _ACEOF
39359 rm -f conftest.$ac_objext conftest$ac_exeext
39360 if { (ac_try="$ac_link"
39361 case "(($ac_try" in
39362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39363   *) ac_try_echo=$ac_try;;
39364 esac
39365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39366   (eval "$ac_link") 2>conftest.er1
39367   ac_status=$?
39368   grep -v '^ *+' conftest.er1 >conftest.err
39369   rm -f conftest.er1
39370   cat conftest.err >&5
39371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39372   (exit $ac_status); } && {
39373          test -z "$ac_c_werror_flag" ||
39374          test ! -s conftest.err
39375        } && test -s conftest$ac_exeext &&
39376        $as_test_x conftest$ac_exeext; then
39377   eval "$as_ac_var=yes"
39378 else
39379   echo "$as_me: failed program was:" >&5
39380 sed 's/^/| /' conftest.$ac_ext >&5
39381
39382         eval "$as_ac_var=no"
39383 fi
39384
39385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39386       conftest$ac_exeext conftest.$ac_ext
39387 fi
39388 ac_res=`eval echo '${'$as_ac_var'}'`
39389                { echo "$as_me:$LINENO: result: $ac_res" >&5
39390 echo "${ECHO_T}$ac_res" >&6; }
39391 if test `eval echo '${'$as_ac_var'}'` = yes; then
39392   cat >>confdefs.h <<_ACEOF
39393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39394 _ACEOF
39395  cat >>confdefs.h <<\_ACEOF
39396 #define HAVE_INET_PTON 1
39397 _ACEOF
39398
39399 fi
39400 done
39401
39402
39403 for ac_func in inet_ntop
39404 do
39405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39409   echo $ECHO_N "(cached) $ECHO_C" >&6
39410 else
39411   cat >conftest.$ac_ext <<_ACEOF
39412 /* confdefs.h.  */
39413 _ACEOF
39414 cat confdefs.h >>conftest.$ac_ext
39415 cat >>conftest.$ac_ext <<_ACEOF
39416 /* end confdefs.h.  */
39417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39419 #define $ac_func innocuous_$ac_func
39420
39421 /* System header to define __stub macros and hopefully few prototypes,
39422     which can conflict with char $ac_func (); below.
39423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39424     <limits.h> exists even on freestanding compilers.  */
39425
39426 #ifdef __STDC__
39427 # include <limits.h>
39428 #else
39429 # include <assert.h>
39430 #endif
39431
39432 #undef $ac_func
39433
39434 /* Override any GCC internal prototype to avoid an error.
39435    Use char because int might match the return type of a GCC
39436    builtin and then its argument prototype would still apply.  */
39437 #ifdef __cplusplus
39438 extern "C"
39439 #endif
39440 char $ac_func ();
39441 /* The GNU C library defines this for functions which it implements
39442     to always fail with ENOSYS.  Some functions are actually named
39443     something starting with __ and the normal name is an alias.  */
39444 #if defined __stub_$ac_func || defined __stub___$ac_func
39445 choke me
39446 #endif
39447
39448 int
39449 main ()
39450 {
39451 return $ac_func ();
39452   ;
39453   return 0;
39454 }
39455 _ACEOF
39456 rm -f conftest.$ac_objext conftest$ac_exeext
39457 if { (ac_try="$ac_link"
39458 case "(($ac_try" in
39459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39460   *) ac_try_echo=$ac_try;;
39461 esac
39462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39463   (eval "$ac_link") 2>conftest.er1
39464   ac_status=$?
39465   grep -v '^ *+' conftest.er1 >conftest.err
39466   rm -f conftest.er1
39467   cat conftest.err >&5
39468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39469   (exit $ac_status); } && {
39470          test -z "$ac_c_werror_flag" ||
39471          test ! -s conftest.err
39472        } && test -s conftest$ac_exeext &&
39473        $as_test_x conftest$ac_exeext; then
39474   eval "$as_ac_var=yes"
39475 else
39476   echo "$as_me: failed program was:" >&5
39477 sed 's/^/| /' conftest.$ac_ext >&5
39478
39479         eval "$as_ac_var=no"
39480 fi
39481
39482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39483       conftest$ac_exeext conftest.$ac_ext
39484 fi
39485 ac_res=`eval echo '${'$as_ac_var'}'`
39486                { echo "$as_me:$LINENO: result: $ac_res" >&5
39487 echo "${ECHO_T}$ac_res" >&6; }
39488 if test `eval echo '${'$as_ac_var'}'` = yes; then
39489   cat >>confdefs.h <<_ACEOF
39490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39491 _ACEOF
39492  cat >>confdefs.h <<\_ACEOF
39493 #define HAVE_INET_NTOP 1
39494 _ACEOF
39495
39496 fi
39497 done
39498
39499
39500 for ac_func in gethostbyname2
39501 do
39502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39506   echo $ECHO_N "(cached) $ECHO_C" >&6
39507 else
39508   cat >conftest.$ac_ext <<_ACEOF
39509 /* confdefs.h.  */
39510 _ACEOF
39511 cat confdefs.h >>conftest.$ac_ext
39512 cat >>conftest.$ac_ext <<_ACEOF
39513 /* end confdefs.h.  */
39514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39516 #define $ac_func innocuous_$ac_func
39517
39518 /* System header to define __stub macros and hopefully few prototypes,
39519     which can conflict with char $ac_func (); below.
39520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39521     <limits.h> exists even on freestanding compilers.  */
39522
39523 #ifdef __STDC__
39524 # include <limits.h>
39525 #else
39526 # include <assert.h>
39527 #endif
39528
39529 #undef $ac_func
39530
39531 /* Override any GCC internal prototype to avoid an error.
39532    Use char because int might match the return type of a GCC
39533    builtin and then its argument prototype would still apply.  */
39534 #ifdef __cplusplus
39535 extern "C"
39536 #endif
39537 char $ac_func ();
39538 /* The GNU C library defines this for functions which it implements
39539     to always fail with ENOSYS.  Some functions are actually named
39540     something starting with __ and the normal name is an alias.  */
39541 #if defined __stub_$ac_func || defined __stub___$ac_func
39542 choke me
39543 #endif
39544
39545 int
39546 main ()
39547 {
39548 return $ac_func ();
39549   ;
39550   return 0;
39551 }
39552 _ACEOF
39553 rm -f conftest.$ac_objext conftest$ac_exeext
39554 if { (ac_try="$ac_link"
39555 case "(($ac_try" in
39556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39557   *) ac_try_echo=$ac_try;;
39558 esac
39559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39560   (eval "$ac_link") 2>conftest.er1
39561   ac_status=$?
39562   grep -v '^ *+' conftest.er1 >conftest.err
39563   rm -f conftest.er1
39564   cat conftest.err >&5
39565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39566   (exit $ac_status); } && {
39567          test -z "$ac_c_werror_flag" ||
39568          test ! -s conftest.err
39569        } && test -s conftest$ac_exeext &&
39570        $as_test_x conftest$ac_exeext; then
39571   eval "$as_ac_var=yes"
39572 else
39573   echo "$as_me: failed program was:" >&5
39574 sed 's/^/| /' conftest.$ac_ext >&5
39575
39576         eval "$as_ac_var=no"
39577 fi
39578
39579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39580       conftest$ac_exeext conftest.$ac_ext
39581 fi
39582 ac_res=`eval echo '${'$as_ac_var'}'`
39583                { echo "$as_me:$LINENO: result: $ac_res" >&5
39584 echo "${ECHO_T}$ac_res" >&6; }
39585 if test `eval echo '${'$as_ac_var'}'` = yes; then
39586   cat >>confdefs.h <<_ACEOF
39587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39588 _ACEOF
39589  cat >>confdefs.h <<\_ACEOF
39590 #define HAVE_GETHOSTBYNAME2 1
39591 _ACEOF
39592
39593 fi
39594 done
39595
39596
39597 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39598 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39599 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39600   echo $ECHO_N "(cached) $ECHO_C" >&6
39601 else
39602
39603        cat >conftest.$ac_ext <<_ACEOF
39604 /* confdefs.h.  */
39605 _ACEOF
39606 cat confdefs.h >>conftest.$ac_ext
39607 cat >>conftest.$ac_ext <<_ACEOF
39608 /* end confdefs.h.  */
39609
39610               #include <sys/socket.h>
39611
39612 int
39613 main ()
39614 {
39615
39616               struct sockaddr s; s.sa_len;
39617
39618   ;
39619   return 0;
39620 }
39621 _ACEOF
39622 rm -f conftest.$ac_objext
39623 if { (ac_try="$ac_compile"
39624 case "(($ac_try" in
39625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39626   *) ac_try_echo=$ac_try;;
39627 esac
39628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39629   (eval "$ac_compile") 2>conftest.er1
39630   ac_status=$?
39631   grep -v '^ *+' conftest.er1 >conftest.err
39632   rm -f conftest.er1
39633   cat conftest.err >&5
39634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39635   (exit $ac_status); } && {
39636          test -z "$ac_c_werror_flag" ||
39637          test ! -s conftest.err
39638        } && test -s conftest.$ac_objext; then
39639
39640              ac_cv_struct_sockaddr_sa_len=yes
39641
39642 else
39643   echo "$as_me: failed program was:" >&5
39644 sed 's/^/| /' conftest.$ac_ext >&5
39645
39646         ac_cv_struct_sockaddr_sa_len=no
39647
39648
39649 fi
39650
39651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39652
39653
39654 fi
39655 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39656 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39657
39658 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39659
39660 cat >>confdefs.h <<\_ACEOF
39661 #define HAVE_SA_LEN 1
39662 _ACEOF
39663
39664 fi
39665
39666
39667 for ac_func in strftime
39668 do
39669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39673   echo $ECHO_N "(cached) $ECHO_C" >&6
39674 else
39675   cat >conftest.$ac_ext <<_ACEOF
39676 /* confdefs.h.  */
39677 _ACEOF
39678 cat confdefs.h >>conftest.$ac_ext
39679 cat >>conftest.$ac_ext <<_ACEOF
39680 /* end confdefs.h.  */
39681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39683 #define $ac_func innocuous_$ac_func
39684
39685 /* System header to define __stub macros and hopefully few prototypes,
39686     which can conflict with char $ac_func (); below.
39687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39688     <limits.h> exists even on freestanding compilers.  */
39689
39690 #ifdef __STDC__
39691 # include <limits.h>
39692 #else
39693 # include <assert.h>
39694 #endif
39695
39696 #undef $ac_func
39697
39698 /* Override any GCC internal prototype to avoid an error.
39699    Use char because int might match the return type of a GCC
39700    builtin and then its argument prototype would still apply.  */
39701 #ifdef __cplusplus
39702 extern "C"
39703 #endif
39704 char $ac_func ();
39705 /* The GNU C library defines this for functions which it implements
39706     to always fail with ENOSYS.  Some functions are actually named
39707     something starting with __ and the normal name is an alias.  */
39708 #if defined __stub_$ac_func || defined __stub___$ac_func
39709 choke me
39710 #endif
39711
39712 int
39713 main ()
39714 {
39715 return $ac_func ();
39716   ;
39717   return 0;
39718 }
39719 _ACEOF
39720 rm -f conftest.$ac_objext conftest$ac_exeext
39721 if { (ac_try="$ac_link"
39722 case "(($ac_try" in
39723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39724   *) ac_try_echo=$ac_try;;
39725 esac
39726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39727   (eval "$ac_link") 2>conftest.er1
39728   ac_status=$?
39729   grep -v '^ *+' conftest.er1 >conftest.err
39730   rm -f conftest.er1
39731   cat conftest.err >&5
39732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39733   (exit $ac_status); } && {
39734          test -z "$ac_c_werror_flag" ||
39735          test ! -s conftest.err
39736        } && test -s conftest$ac_exeext &&
39737        $as_test_x conftest$ac_exeext; then
39738   eval "$as_ac_var=yes"
39739 else
39740   echo "$as_me: failed program was:" >&5
39741 sed 's/^/| /' conftest.$ac_ext >&5
39742
39743         eval "$as_ac_var=no"
39744 fi
39745
39746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39747       conftest$ac_exeext conftest.$ac_ext
39748 fi
39749 ac_res=`eval echo '${'$as_ac_var'}'`
39750                { echo "$as_me:$LINENO: result: $ac_res" >&5
39751 echo "${ECHO_T}$ac_res" >&6; }
39752 if test `eval echo '${'$as_ac_var'}'` = yes; then
39753   cat >>confdefs.h <<_ACEOF
39754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39755 _ACEOF
39756
39757 else
39758   # strftime is in -lintl on SCO UNIX.
39759 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39760 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39761 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39762   echo $ECHO_N "(cached) $ECHO_C" >&6
39763 else
39764   ac_check_lib_save_LIBS=$LIBS
39765 LIBS="-lintl  $LIBS"
39766 cat >conftest.$ac_ext <<_ACEOF
39767 /* confdefs.h.  */
39768 _ACEOF
39769 cat confdefs.h >>conftest.$ac_ext
39770 cat >>conftest.$ac_ext <<_ACEOF
39771 /* end confdefs.h.  */
39772
39773 /* Override any GCC internal prototype to avoid an error.
39774    Use char because int might match the return type of a GCC
39775    builtin and then its argument prototype would still apply.  */
39776 #ifdef __cplusplus
39777 extern "C"
39778 #endif
39779 char strftime ();
39780 int
39781 main ()
39782 {
39783 return strftime ();
39784   ;
39785   return 0;
39786 }
39787 _ACEOF
39788 rm -f conftest.$ac_objext conftest$ac_exeext
39789 if { (ac_try="$ac_link"
39790 case "(($ac_try" in
39791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39792   *) ac_try_echo=$ac_try;;
39793 esac
39794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39795   (eval "$ac_link") 2>conftest.er1
39796   ac_status=$?
39797   grep -v '^ *+' conftest.er1 >conftest.err
39798   rm -f conftest.er1
39799   cat conftest.err >&5
39800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39801   (exit $ac_status); } && {
39802          test -z "$ac_c_werror_flag" ||
39803          test ! -s conftest.err
39804        } && test -s conftest$ac_exeext &&
39805        $as_test_x conftest$ac_exeext; then
39806   ac_cv_lib_intl_strftime=yes
39807 else
39808   echo "$as_me: failed program was:" >&5
39809 sed 's/^/| /' conftest.$ac_ext >&5
39810
39811         ac_cv_lib_intl_strftime=no
39812 fi
39813
39814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39815       conftest$ac_exeext conftest.$ac_ext
39816 LIBS=$ac_check_lib_save_LIBS
39817 fi
39818 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39819 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39820 if test $ac_cv_lib_intl_strftime = yes; then
39821   cat >>confdefs.h <<\_ACEOF
39822 #define HAVE_STRFTIME 1
39823 _ACEOF
39824
39825 LIBS="-lintl $LIBS"
39826 fi
39827
39828 fi
39829 done
39830
39831
39832 for ac_func in vprintf
39833 do
39834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39838   echo $ECHO_N "(cached) $ECHO_C" >&6
39839 else
39840   cat >conftest.$ac_ext <<_ACEOF
39841 /* confdefs.h.  */
39842 _ACEOF
39843 cat confdefs.h >>conftest.$ac_ext
39844 cat >>conftest.$ac_ext <<_ACEOF
39845 /* end confdefs.h.  */
39846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39848 #define $ac_func innocuous_$ac_func
39849
39850 /* System header to define __stub macros and hopefully few prototypes,
39851     which can conflict with char $ac_func (); below.
39852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39853     <limits.h> exists even on freestanding compilers.  */
39854
39855 #ifdef __STDC__
39856 # include <limits.h>
39857 #else
39858 # include <assert.h>
39859 #endif
39860
39861 #undef $ac_func
39862
39863 /* Override any GCC internal prototype to avoid an error.
39864    Use char because int might match the return type of a GCC
39865    builtin and then its argument prototype would still apply.  */
39866 #ifdef __cplusplus
39867 extern "C"
39868 #endif
39869 char $ac_func ();
39870 /* The GNU C library defines this for functions which it implements
39871     to always fail with ENOSYS.  Some functions are actually named
39872     something starting with __ and the normal name is an alias.  */
39873 #if defined __stub_$ac_func || defined __stub___$ac_func
39874 choke me
39875 #endif
39876
39877 int
39878 main ()
39879 {
39880 return $ac_func ();
39881   ;
39882   return 0;
39883 }
39884 _ACEOF
39885 rm -f conftest.$ac_objext 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>conftest.er1
39893   ac_status=$?
39894   grep -v '^ *+' conftest.er1 >conftest.err
39895   rm -f conftest.er1
39896   cat conftest.err >&5
39897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39898   (exit $ac_status); } && {
39899          test -z "$ac_c_werror_flag" ||
39900          test ! -s conftest.err
39901        } && test -s conftest$ac_exeext &&
39902        $as_test_x conftest$ac_exeext; then
39903   eval "$as_ac_var=yes"
39904 else
39905   echo "$as_me: failed program was:" >&5
39906 sed 's/^/| /' conftest.$ac_ext >&5
39907
39908         eval "$as_ac_var=no"
39909 fi
39910
39911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39912       conftest$ac_exeext conftest.$ac_ext
39913 fi
39914 ac_res=`eval echo '${'$as_ac_var'}'`
39915                { echo "$as_me:$LINENO: result: $ac_res" >&5
39916 echo "${ECHO_T}$ac_res" >&6; }
39917 if test `eval echo '${'$as_ac_var'}'` = yes; then
39918   cat >>confdefs.h <<_ACEOF
39919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39920 _ACEOF
39921
39922 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39923 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39924 if test "${ac_cv_func__doprnt+set}" = set; then
39925   echo $ECHO_N "(cached) $ECHO_C" >&6
39926 else
39927   cat >conftest.$ac_ext <<_ACEOF
39928 /* confdefs.h.  */
39929 _ACEOF
39930 cat confdefs.h >>conftest.$ac_ext
39931 cat >>conftest.$ac_ext <<_ACEOF
39932 /* end confdefs.h.  */
39933 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39935 #define _doprnt innocuous__doprnt
39936
39937 /* System header to define __stub macros and hopefully few prototypes,
39938     which can conflict with char _doprnt (); below.
39939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39940     <limits.h> exists even on freestanding compilers.  */
39941
39942 #ifdef __STDC__
39943 # include <limits.h>
39944 #else
39945 # include <assert.h>
39946 #endif
39947
39948 #undef _doprnt
39949
39950 /* Override any GCC internal prototype to avoid an error.
39951    Use char because int might match the return type of a GCC
39952    builtin and then its argument prototype would still apply.  */
39953 #ifdef __cplusplus
39954 extern "C"
39955 #endif
39956 char _doprnt ();
39957 /* The GNU C library defines this for functions which it implements
39958     to always fail with ENOSYS.  Some functions are actually named
39959     something starting with __ and the normal name is an alias.  */
39960 #if defined __stub__doprnt || defined __stub____doprnt
39961 choke me
39962 #endif
39963
39964 int
39965 main ()
39966 {
39967 return _doprnt ();
39968   ;
39969   return 0;
39970 }
39971 _ACEOF
39972 rm -f conftest.$ac_objext conftest$ac_exeext
39973 if { (ac_try="$ac_link"
39974 case "(($ac_try" in
39975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39976   *) ac_try_echo=$ac_try;;
39977 esac
39978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39979   (eval "$ac_link") 2>conftest.er1
39980   ac_status=$?
39981   grep -v '^ *+' conftest.er1 >conftest.err
39982   rm -f conftest.er1
39983   cat conftest.err >&5
39984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39985   (exit $ac_status); } && {
39986          test -z "$ac_c_werror_flag" ||
39987          test ! -s conftest.err
39988        } && test -s conftest$ac_exeext &&
39989        $as_test_x conftest$ac_exeext; then
39990   ac_cv_func__doprnt=yes
39991 else
39992   echo "$as_me: failed program was:" >&5
39993 sed 's/^/| /' conftest.$ac_ext >&5
39994
39995         ac_cv_func__doprnt=no
39996 fi
39997
39998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39999       conftest$ac_exeext conftest.$ac_ext
40000 fi
40001 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
40002 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
40003 if test $ac_cv_func__doprnt = yes; then
40004
40005 cat >>confdefs.h <<\_ACEOF
40006 #define HAVE_DOPRNT 1
40007 _ACEOF
40008
40009 fi
40010
40011 fi
40012 done
40013
40014
40015 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
40016 # for constant arguments.  Useless!
40017 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
40018 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
40019 if test "${ac_cv_working_alloca_h+set}" = set; then
40020   echo $ECHO_N "(cached) $ECHO_C" >&6
40021 else
40022   cat >conftest.$ac_ext <<_ACEOF
40023 /* confdefs.h.  */
40024 _ACEOF
40025 cat confdefs.h >>conftest.$ac_ext
40026 cat >>conftest.$ac_ext <<_ACEOF
40027 /* end confdefs.h.  */
40028 #include <alloca.h>
40029 int
40030 main ()
40031 {
40032 char *p = (char *) alloca (2 * sizeof (int));
40033                           if (p) return 0;
40034   ;
40035   return 0;
40036 }
40037 _ACEOF
40038 rm -f conftest.$ac_objext conftest$ac_exeext
40039 if { (ac_try="$ac_link"
40040 case "(($ac_try" in
40041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40042   *) ac_try_echo=$ac_try;;
40043 esac
40044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40045   (eval "$ac_link") 2>conftest.er1
40046   ac_status=$?
40047   grep -v '^ *+' conftest.er1 >conftest.err
40048   rm -f conftest.er1
40049   cat conftest.err >&5
40050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40051   (exit $ac_status); } && {
40052          test -z "$ac_c_werror_flag" ||
40053          test ! -s conftest.err
40054        } && test -s conftest$ac_exeext &&
40055        $as_test_x conftest$ac_exeext; then
40056   ac_cv_working_alloca_h=yes
40057 else
40058   echo "$as_me: failed program was:" >&5
40059 sed 's/^/| /' conftest.$ac_ext >&5
40060
40061         ac_cv_working_alloca_h=no
40062 fi
40063
40064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40065       conftest$ac_exeext conftest.$ac_ext
40066 fi
40067 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
40068 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
40069 if test $ac_cv_working_alloca_h = yes; then
40070
40071 cat >>confdefs.h <<\_ACEOF
40072 #define HAVE_ALLOCA_H 1
40073 _ACEOF
40074
40075 fi
40076
40077 { echo "$as_me:$LINENO: checking for alloca" >&5
40078 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
40079 if test "${ac_cv_func_alloca_works+set}" = set; then
40080   echo $ECHO_N "(cached) $ECHO_C" >&6
40081 else
40082   cat >conftest.$ac_ext <<_ACEOF
40083 /* confdefs.h.  */
40084 _ACEOF
40085 cat confdefs.h >>conftest.$ac_ext
40086 cat >>conftest.$ac_ext <<_ACEOF
40087 /* end confdefs.h.  */
40088 #ifdef __GNUC__
40089 # define alloca __builtin_alloca
40090 #else
40091 # ifdef _MSC_VER
40092 #  include <malloc.h>
40093 #  define alloca _alloca
40094 # else
40095 #  ifdef HAVE_ALLOCA_H
40096 #   include <alloca.h>
40097 #  else
40098 #   ifdef _AIX
40099  #pragma alloca
40100 #   else
40101 #    ifndef alloca /* predefined by HP cc +Olibcalls */
40102 char *alloca ();
40103 #    endif
40104 #   endif
40105 #  endif
40106 # endif
40107 #endif
40108
40109 int
40110 main ()
40111 {
40112 char *p = (char *) alloca (1);
40113                                     if (p) return 0;
40114   ;
40115   return 0;
40116 }
40117 _ACEOF
40118 rm -f conftest.$ac_objext conftest$ac_exeext
40119 if { (ac_try="$ac_link"
40120 case "(($ac_try" in
40121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40122   *) ac_try_echo=$ac_try;;
40123 esac
40124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40125   (eval "$ac_link") 2>conftest.er1
40126   ac_status=$?
40127   grep -v '^ *+' conftest.er1 >conftest.err
40128   rm -f conftest.er1
40129   cat conftest.err >&5
40130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40131   (exit $ac_status); } && {
40132          test -z "$ac_c_werror_flag" ||
40133          test ! -s conftest.err
40134        } && test -s conftest$ac_exeext &&
40135        $as_test_x conftest$ac_exeext; then
40136   ac_cv_func_alloca_works=yes
40137 else
40138   echo "$as_me: failed program was:" >&5
40139 sed 's/^/| /' conftest.$ac_ext >&5
40140
40141         ac_cv_func_alloca_works=no
40142 fi
40143
40144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40145       conftest$ac_exeext conftest.$ac_ext
40146 fi
40147 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40148 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40149
40150 if test $ac_cv_func_alloca_works = yes; then
40151
40152 cat >>confdefs.h <<\_ACEOF
40153 #define HAVE_ALLOCA 1
40154 _ACEOF
40155
40156 else
40157   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40158 # that cause trouble.  Some versions do not even contain alloca or
40159 # contain a buggy version.  If you still want to use their alloca,
40160 # use ar to extract alloca.o from them instead of compiling alloca.c.
40161
40162 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40163
40164 cat >>confdefs.h <<\_ACEOF
40165 #define C_ALLOCA 1
40166 _ACEOF
40167
40168
40169 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40170 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40171 if test "${ac_cv_os_cray+set}" = set; then
40172   echo $ECHO_N "(cached) $ECHO_C" >&6
40173 else
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 #if defined CRAY && ! defined CRAY2
40181 webecray
40182 #else
40183 wenotbecray
40184 #endif
40185
40186 _ACEOF
40187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40188   $EGREP "webecray" >/dev/null 2>&1; then
40189   ac_cv_os_cray=yes
40190 else
40191   ac_cv_os_cray=no
40192 fi
40193 rm -f conftest*
40194
40195 fi
40196 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40197 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40198 if test $ac_cv_os_cray = yes; then
40199   for ac_func in _getb67 GETB67 getb67; do
40200     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40201 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40203 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40204   echo $ECHO_N "(cached) $ECHO_C" >&6
40205 else
40206   cat >conftest.$ac_ext <<_ACEOF
40207 /* confdefs.h.  */
40208 _ACEOF
40209 cat confdefs.h >>conftest.$ac_ext
40210 cat >>conftest.$ac_ext <<_ACEOF
40211 /* end confdefs.h.  */
40212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40214 #define $ac_func innocuous_$ac_func
40215
40216 /* System header to define __stub macros and hopefully few prototypes,
40217     which can conflict with char $ac_func (); below.
40218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40219     <limits.h> exists even on freestanding compilers.  */
40220
40221 #ifdef __STDC__
40222 # include <limits.h>
40223 #else
40224 # include <assert.h>
40225 #endif
40226
40227 #undef $ac_func
40228
40229 /* Override any GCC internal prototype to avoid an error.
40230    Use char because int might match the return type of a GCC
40231    builtin and then its argument prototype would still apply.  */
40232 #ifdef __cplusplus
40233 extern "C"
40234 #endif
40235 char $ac_func ();
40236 /* The GNU C library defines this for functions which it implements
40237     to always fail with ENOSYS.  Some functions are actually named
40238     something starting with __ and the normal name is an alias.  */
40239 #if defined __stub_$ac_func || defined __stub___$ac_func
40240 choke me
40241 #endif
40242
40243 int
40244 main ()
40245 {
40246 return $ac_func ();
40247   ;
40248   return 0;
40249 }
40250 _ACEOF
40251 rm -f conftest.$ac_objext conftest$ac_exeext
40252 if { (ac_try="$ac_link"
40253 case "(($ac_try" in
40254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40255   *) ac_try_echo=$ac_try;;
40256 esac
40257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40258   (eval "$ac_link") 2>conftest.er1
40259   ac_status=$?
40260   grep -v '^ *+' conftest.er1 >conftest.err
40261   rm -f conftest.er1
40262   cat conftest.err >&5
40263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40264   (exit $ac_status); } && {
40265          test -z "$ac_c_werror_flag" ||
40266          test ! -s conftest.err
40267        } && test -s conftest$ac_exeext &&
40268        $as_test_x conftest$ac_exeext; then
40269   eval "$as_ac_var=yes"
40270 else
40271   echo "$as_me: failed program was:" >&5
40272 sed 's/^/| /' conftest.$ac_ext >&5
40273
40274         eval "$as_ac_var=no"
40275 fi
40276
40277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40278       conftest$ac_exeext conftest.$ac_ext
40279 fi
40280 ac_res=`eval echo '${'$as_ac_var'}'`
40281                { echo "$as_me:$LINENO: result: $ac_res" >&5
40282 echo "${ECHO_T}$ac_res" >&6; }
40283 if test `eval echo '${'$as_ac_var'}'` = yes; then
40284
40285 cat >>confdefs.h <<_ACEOF
40286 #define CRAY_STACKSEG_END $ac_func
40287 _ACEOF
40288
40289     break
40290 fi
40291
40292   done
40293 fi
40294
40295 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40296 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40297 if test "${ac_cv_c_stack_direction+set}" = set; then
40298   echo $ECHO_N "(cached) $ECHO_C" >&6
40299 else
40300   if test "$cross_compiling" = yes; then
40301   ac_cv_c_stack_direction=0
40302 else
40303   cat >conftest.$ac_ext <<_ACEOF
40304 /* confdefs.h.  */
40305 _ACEOF
40306 cat confdefs.h >>conftest.$ac_ext
40307 cat >>conftest.$ac_ext <<_ACEOF
40308 /* end confdefs.h.  */
40309 $ac_includes_default
40310 int
40311 find_stack_direction ()
40312 {
40313   static char *addr = 0;
40314   auto char dummy;
40315   if (addr == 0)
40316     {
40317       addr = &dummy;
40318       return find_stack_direction ();
40319     }
40320   else
40321     return (&dummy > addr) ? 1 : -1;
40322 }
40323
40324 int
40325 main ()
40326 {
40327   return find_stack_direction () < 0;
40328 }
40329 _ACEOF
40330 rm -f conftest$ac_exeext
40331 if { (ac_try="$ac_link"
40332 case "(($ac_try" in
40333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40334   *) ac_try_echo=$ac_try;;
40335 esac
40336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40337   (eval "$ac_link") 2>&5
40338   ac_status=$?
40339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40341   { (case "(($ac_try" in
40342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40343   *) ac_try_echo=$ac_try;;
40344 esac
40345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40346   (eval "$ac_try") 2>&5
40347   ac_status=$?
40348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40349   (exit $ac_status); }; }; then
40350   ac_cv_c_stack_direction=1
40351 else
40352   echo "$as_me: program exited with status $ac_status" >&5
40353 echo "$as_me: failed program was:" >&5
40354 sed 's/^/| /' conftest.$ac_ext >&5
40355
40356 ( exit $ac_status )
40357 ac_cv_c_stack_direction=-1
40358 fi
40359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40360 fi
40361
40362
40363 fi
40364 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40365 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40366
40367 cat >>confdefs.h <<_ACEOF
40368 #define STACK_DIRECTION $ac_cv_c_stack_direction
40369 _ACEOF
40370
40371
40372 fi
40373
40374 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40375 # -lseq on Dynix/PTX, -lgen on Unixware.
40376 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40377 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40378 if test "${ac_cv_search_getmntent+set}" = set; then
40379   echo $ECHO_N "(cached) $ECHO_C" >&6
40380 else
40381   ac_func_search_save_LIBS=$LIBS
40382 cat >conftest.$ac_ext <<_ACEOF
40383 /* confdefs.h.  */
40384 _ACEOF
40385 cat confdefs.h >>conftest.$ac_ext
40386 cat >>conftest.$ac_ext <<_ACEOF
40387 /* end confdefs.h.  */
40388
40389 /* Override any GCC internal prototype to avoid an error.
40390    Use char because int might match the return type of a GCC
40391    builtin and then its argument prototype would still apply.  */
40392 #ifdef __cplusplus
40393 extern "C"
40394 #endif
40395 char getmntent ();
40396 int
40397 main ()
40398 {
40399 return getmntent ();
40400   ;
40401   return 0;
40402 }
40403 _ACEOF
40404 for ac_lib in '' sun seq gen; do
40405   if test -z "$ac_lib"; then
40406     ac_res="none required"
40407   else
40408     ac_res=-l$ac_lib
40409     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40410   fi
40411   rm -f conftest.$ac_objext conftest$ac_exeext
40412 if { (ac_try="$ac_link"
40413 case "(($ac_try" in
40414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40415   *) ac_try_echo=$ac_try;;
40416 esac
40417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40418   (eval "$ac_link") 2>conftest.er1
40419   ac_status=$?
40420   grep -v '^ *+' conftest.er1 >conftest.err
40421   rm -f conftest.er1
40422   cat conftest.err >&5
40423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40424   (exit $ac_status); } && {
40425          test -z "$ac_c_werror_flag" ||
40426          test ! -s conftest.err
40427        } && test -s conftest$ac_exeext &&
40428        $as_test_x conftest$ac_exeext; then
40429   ac_cv_search_getmntent=$ac_res
40430 else
40431   echo "$as_me: failed program was:" >&5
40432 sed 's/^/| /' conftest.$ac_ext >&5
40433
40434
40435 fi
40436
40437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40438       conftest$ac_exeext
40439   if test "${ac_cv_search_getmntent+set}" = set; then
40440   break
40441 fi
40442 done
40443 if test "${ac_cv_search_getmntent+set}" = set; then
40444   :
40445 else
40446   ac_cv_search_getmntent=no
40447 fi
40448 rm conftest.$ac_ext
40449 LIBS=$ac_func_search_save_LIBS
40450 fi
40451 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40452 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40453 ac_res=$ac_cv_search_getmntent
40454 if test "$ac_res" != no; then
40455   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40456   ac_cv_func_getmntent=yes
40457
40458 cat >>confdefs.h <<\_ACEOF
40459 #define HAVE_GETMNTENT 1
40460 _ACEOF
40461
40462 else
40463   ac_cv_func_getmntent=no
40464 fi
40465
40466
40467 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40468 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40469 if test "${ac_cv_func_closedir_void+set}" = set; then
40470   echo $ECHO_N "(cached) $ECHO_C" >&6
40471 else
40472   if test "$cross_compiling" = yes; then
40473   ac_cv_func_closedir_void=yes
40474 else
40475   cat >conftest.$ac_ext <<_ACEOF
40476 /* confdefs.h.  */
40477 _ACEOF
40478 cat confdefs.h >>conftest.$ac_ext
40479 cat >>conftest.$ac_ext <<_ACEOF
40480 /* end confdefs.h.  */
40481 $ac_includes_default
40482 #include <$ac_header_dirent>
40483 #ifndef __cplusplus
40484 int closedir ();
40485 #endif
40486
40487 int
40488 main ()
40489 {
40490 return closedir (opendir (".")) != 0;
40491   ;
40492   return 0;
40493 }
40494 _ACEOF
40495 rm -f conftest$ac_exeext
40496 if { (ac_try="$ac_link"
40497 case "(($ac_try" in
40498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40499   *) ac_try_echo=$ac_try;;
40500 esac
40501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40502   (eval "$ac_link") 2>&5
40503   ac_status=$?
40504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40506   { (case "(($ac_try" in
40507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40508   *) ac_try_echo=$ac_try;;
40509 esac
40510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40511   (eval "$ac_try") 2>&5
40512   ac_status=$?
40513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40514   (exit $ac_status); }; }; then
40515   ac_cv_func_closedir_void=no
40516 else
40517   echo "$as_me: program exited with status $ac_status" >&5
40518 echo "$as_me: failed program was:" >&5
40519 sed 's/^/| /' conftest.$ac_ext >&5
40520
40521 ( exit $ac_status )
40522 ac_cv_func_closedir_void=yes
40523 fi
40524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40525 fi
40526
40527
40528 fi
40529 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40530 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40531 if test $ac_cv_func_closedir_void = yes; then
40532
40533 cat >>confdefs.h <<\_ACEOF
40534 #define CLOSEDIR_VOID 1
40535 _ACEOF
40536
40537 fi
40538
40539 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40540 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40541 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40542   echo $ECHO_N "(cached) $ECHO_C" >&6
40543 else
40544   if test "$cross_compiling" = yes; then
40545   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40546 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40547    { (exit 1); exit 1; }; }
40548 else
40549   cat >conftest.$ac_ext <<_ACEOF
40550 /* confdefs.h.  */
40551 _ACEOF
40552 cat confdefs.h >>conftest.$ac_ext
40553 cat >>conftest.$ac_ext <<_ACEOF
40554 /* end confdefs.h.  */
40555 $ac_includes_default
40556 int
40557 main ()
40558 {
40559 /* If this system has a BSD-style setpgrp which takes arguments,
40560   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40561   exit successfully. */
40562   return setpgrp (1,1) != -1;
40563   ;
40564   return 0;
40565 }
40566 _ACEOF
40567 rm -f conftest$ac_exeext
40568 if { (ac_try="$ac_link"
40569 case "(($ac_try" in
40570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40571   *) ac_try_echo=$ac_try;;
40572 esac
40573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40574   (eval "$ac_link") 2>&5
40575   ac_status=$?
40576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40578   { (case "(($ac_try" in
40579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40580   *) ac_try_echo=$ac_try;;
40581 esac
40582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40583   (eval "$ac_try") 2>&5
40584   ac_status=$?
40585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40586   (exit $ac_status); }; }; then
40587   ac_cv_func_setpgrp_void=no
40588 else
40589   echo "$as_me: program exited with status $ac_status" >&5
40590 echo "$as_me: failed program was:" >&5
40591 sed 's/^/| /' conftest.$ac_ext >&5
40592
40593 ( exit $ac_status )
40594 ac_cv_func_setpgrp_void=yes
40595 fi
40596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40597 fi
40598
40599
40600 fi
40601 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40602 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40603 if test $ac_cv_func_setpgrp_void = yes; then
40604
40605 cat >>confdefs.h <<\_ACEOF
40606 #define SETPGRP_VOID 1
40607 _ACEOF
40608
40609 fi
40610             # AC_FUNC_FNMATCH    dnl use local version
40611
40612 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40613 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40614 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40615   echo $ECHO_N "(cached) $ECHO_C" >&6
40616 else
40617   ac_check_lib_save_LIBS=$LIBS
40618 LIBS="-lintl  $LIBS"
40619 cat >conftest.$ac_ext <<_ACEOF
40620 /* confdefs.h.  */
40621 _ACEOF
40622 cat confdefs.h >>conftest.$ac_ext
40623 cat >>conftest.$ac_ext <<_ACEOF
40624 /* end confdefs.h.  */
40625
40626 /* Override any GCC internal prototype to avoid an error.
40627    Use char because int might match the return type of a GCC
40628    builtin and then its argument prototype would still apply.  */
40629 #ifdef __cplusplus
40630 extern "C"
40631 #endif
40632 char gettext ();
40633 int
40634 main ()
40635 {
40636 return gettext ();
40637   ;
40638   return 0;
40639 }
40640 _ACEOF
40641 rm -f conftest.$ac_objext conftest$ac_exeext
40642 if { (ac_try="$ac_link"
40643 case "(($ac_try" in
40644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40645   *) ac_try_echo=$ac_try;;
40646 esac
40647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40648   (eval "$ac_link") 2>conftest.er1
40649   ac_status=$?
40650   grep -v '^ *+' conftest.er1 >conftest.err
40651   rm -f conftest.er1
40652   cat conftest.err >&5
40653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40654   (exit $ac_status); } && {
40655          test -z "$ac_c_werror_flag" ||
40656          test ! -s conftest.err
40657        } && test -s conftest$ac_exeext &&
40658        $as_test_x conftest$ac_exeext; then
40659   ac_cv_lib_intl_gettext=yes
40660 else
40661   echo "$as_me: failed program was:" >&5
40662 sed 's/^/| /' conftest.$ac_ext >&5
40663
40664         ac_cv_lib_intl_gettext=no
40665 fi
40666
40667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40668       conftest$ac_exeext conftest.$ac_ext
40669 LIBS=$ac_check_lib_save_LIBS
40670 fi
40671 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40672 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40673 if test $ac_cv_lib_intl_gettext = yes; then
40674   LIBS="$LIBS -lintl"
40675 fi
40676
40677
40678
40679 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40680 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40681 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40682   echo $ECHO_N "(cached) $ECHO_C" >&6
40683 else
40684   ac_check_lib_save_LIBS=$LIBS
40685 LIBS="-lsun  $LIBS"
40686 cat >conftest.$ac_ext <<_ACEOF
40687 /* confdefs.h.  */
40688 _ACEOF
40689 cat confdefs.h >>conftest.$ac_ext
40690 cat >>conftest.$ac_ext <<_ACEOF
40691 /* end confdefs.h.  */
40692
40693 /* Override any GCC internal prototype to avoid an error.
40694    Use char because int might match the return type of a GCC
40695    builtin and then its argument prototype would still apply.  */
40696 #ifdef __cplusplus
40697 extern "C"
40698 #endif
40699 char getpwnam ();
40700 int
40701 main ()
40702 {
40703 return getpwnam ();
40704   ;
40705   return 0;
40706 }
40707 _ACEOF
40708 rm -f conftest.$ac_objext conftest$ac_exeext
40709 if { (ac_try="$ac_link"
40710 case "(($ac_try" in
40711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40712   *) ac_try_echo=$ac_try;;
40713 esac
40714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40715   (eval "$ac_link") 2>conftest.er1
40716   ac_status=$?
40717   grep -v '^ *+' conftest.er1 >conftest.err
40718   rm -f conftest.er1
40719   cat conftest.err >&5
40720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40721   (exit $ac_status); } && {
40722          test -z "$ac_c_werror_flag" ||
40723          test ! -s conftest.err
40724        } && test -s conftest$ac_exeext &&
40725        $as_test_x conftest$ac_exeext; then
40726   ac_cv_lib_sun_getpwnam=yes
40727 else
40728   echo "$as_me: failed program was:" >&5
40729 sed 's/^/| /' conftest.$ac_ext >&5
40730
40731         ac_cv_lib_sun_getpwnam=no
40732 fi
40733
40734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40735       conftest$ac_exeext conftest.$ac_ext
40736 LIBS=$ac_check_lib_save_LIBS
40737 fi
40738 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40739 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40740 if test $ac_cv_lib_sun_getpwnam = yes; then
40741   cat >>confdefs.h <<_ACEOF
40742 #define HAVE_LIBSUN 1
40743 _ACEOF
40744
40745   LIBS="-lsun $LIBS"
40746
40747 fi
40748
40749
40750
40751 for ac_header in zlib.h
40752 do
40753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40755   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40758   echo $ECHO_N "(cached) $ECHO_C" >&6
40759 fi
40760 ac_res=`eval echo '${'$as_ac_Header'}'`
40761                { echo "$as_me:$LINENO: result: $ac_res" >&5
40762 echo "${ECHO_T}$ac_res" >&6; }
40763 else
40764   # Is the header compilable?
40765 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40767 cat >conftest.$ac_ext <<_ACEOF
40768 /* confdefs.h.  */
40769 _ACEOF
40770 cat confdefs.h >>conftest.$ac_ext
40771 cat >>conftest.$ac_ext <<_ACEOF
40772 /* end confdefs.h.  */
40773 $ac_includes_default
40774 #include <$ac_header>
40775 _ACEOF
40776 rm -f conftest.$ac_objext
40777 if { (ac_try="$ac_compile"
40778 case "(($ac_try" in
40779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40780   *) ac_try_echo=$ac_try;;
40781 esac
40782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40783   (eval "$ac_compile") 2>conftest.er1
40784   ac_status=$?
40785   grep -v '^ *+' conftest.er1 >conftest.err
40786   rm -f conftest.er1
40787   cat conftest.err >&5
40788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40789   (exit $ac_status); } && {
40790          test -z "$ac_c_werror_flag" ||
40791          test ! -s conftest.err
40792        } && test -s conftest.$ac_objext; then
40793   ac_header_compiler=yes
40794 else
40795   echo "$as_me: failed program was:" >&5
40796 sed 's/^/| /' conftest.$ac_ext >&5
40797
40798         ac_header_compiler=no
40799 fi
40800
40801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40803 echo "${ECHO_T}$ac_header_compiler" >&6; }
40804
40805 # Is the header present?
40806 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40808 cat >conftest.$ac_ext <<_ACEOF
40809 /* confdefs.h.  */
40810 _ACEOF
40811 cat confdefs.h >>conftest.$ac_ext
40812 cat >>conftest.$ac_ext <<_ACEOF
40813 /* end confdefs.h.  */
40814 #include <$ac_header>
40815 _ACEOF
40816 if { (ac_try="$ac_cpp conftest.$ac_ext"
40817 case "(($ac_try" in
40818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40819   *) ac_try_echo=$ac_try;;
40820 esac
40821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40823   ac_status=$?
40824   grep -v '^ *+' conftest.er1 >conftest.err
40825   rm -f conftest.er1
40826   cat conftest.err >&5
40827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40828   (exit $ac_status); } >/dev/null && {
40829          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40830          test ! -s conftest.err
40831        }; then
40832   ac_header_preproc=yes
40833 else
40834   echo "$as_me: failed program was:" >&5
40835 sed 's/^/| /' conftest.$ac_ext >&5
40836
40837   ac_header_preproc=no
40838 fi
40839
40840 rm -f conftest.err conftest.$ac_ext
40841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40842 echo "${ECHO_T}$ac_header_preproc" >&6; }
40843
40844 # So?  What about this header?
40845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40846   yes:no: )
40847     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40851     ac_header_preproc=yes
40852     ;;
40853   no:yes:* )
40854     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40856     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40857 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40858     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40860     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40861 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40864     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40866
40867     ;;
40868 esac
40869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40872   echo $ECHO_N "(cached) $ECHO_C" >&6
40873 else
40874   eval "$as_ac_Header=\$ac_header_preproc"
40875 fi
40876 ac_res=`eval echo '${'$as_ac_Header'}'`
40877                { echo "$as_me:$LINENO: result: $ac_res" >&5
40878 echo "${ECHO_T}$ac_res" >&6; }
40879
40880 fi
40881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40882   cat >>confdefs.h <<_ACEOF
40883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40884 _ACEOF
40885
40886 fi
40887
40888 done
40889
40890 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40891 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40892 if test "${ac_cv_lib_z_deflate+set}" = set; then
40893   echo $ECHO_N "(cached) $ECHO_C" >&6
40894 else
40895   ac_check_lib_save_LIBS=$LIBS
40896 LIBS="-lz  $LIBS"
40897 cat >conftest.$ac_ext <<_ACEOF
40898 /* confdefs.h.  */
40899 _ACEOF
40900 cat confdefs.h >>conftest.$ac_ext
40901 cat >>conftest.$ac_ext <<_ACEOF
40902 /* end confdefs.h.  */
40903
40904 /* Override any GCC internal prototype to avoid an error.
40905    Use char because int might match the return type of a GCC
40906    builtin and then its argument prototype would still apply.  */
40907 #ifdef __cplusplus
40908 extern "C"
40909 #endif
40910 char deflate ();
40911 int
40912 main ()
40913 {
40914 return deflate ();
40915   ;
40916   return 0;
40917 }
40918 _ACEOF
40919 rm -f conftest.$ac_objext conftest$ac_exeext
40920 if { (ac_try="$ac_link"
40921 case "(($ac_try" in
40922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40923   *) ac_try_echo=$ac_try;;
40924 esac
40925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40926   (eval "$ac_link") 2>conftest.er1
40927   ac_status=$?
40928   grep -v '^ *+' conftest.er1 >conftest.err
40929   rm -f conftest.er1
40930   cat conftest.err >&5
40931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40932   (exit $ac_status); } && {
40933          test -z "$ac_c_werror_flag" ||
40934          test ! -s conftest.err
40935        } && test -s conftest$ac_exeext &&
40936        $as_test_x conftest$ac_exeext; then
40937   ac_cv_lib_z_deflate=yes
40938 else
40939   echo "$as_me: failed program was:" >&5
40940 sed 's/^/| /' conftest.$ac_ext >&5
40941
40942         ac_cv_lib_z_deflate=no
40943 fi
40944
40945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40946       conftest$ac_exeext conftest.$ac_ext
40947 LIBS=$ac_check_lib_save_LIBS
40948 fi
40949 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40950 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40951 if test $ac_cv_lib_z_deflate = yes; then
40952   FDLIBS="-lz"
40953 fi
40954
40955 have_zlib=no
40956 if test x$FDLIBS = x-lz; then
40957    cat >>confdefs.h <<\_ACEOF
40958 #define HAVE_LIBZ 1
40959 _ACEOF
40960
40961    have_zlib=yes
40962 fi
40963
40964 support_acl=auto
40965 # Check whether --enable-acl was given.
40966 if test "${enable_acl+set}" = set; then
40967   enableval=$enable_acl;
40968        if test x$enableval = xyes; then
40969           support_acl=yes
40970        elif test x$enableval = xno; then
40971           support_acl=no
40972        fi
40973
40974
40975 fi
40976
40977
40978 have_acl=no
40979 have_extended_acl=no
40980 if test x$support_acl = xyes -o x$support_acl = xauto; then
40981    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40982   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40983 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40984 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40985   echo $ECHO_N "(cached) $ECHO_C" >&6
40986 fi
40987 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40988 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40989 else
40990   # Is the header compilable?
40991 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40992 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40993 cat >conftest.$ac_ext <<_ACEOF
40994 /* confdefs.h.  */
40995 _ACEOF
40996 cat confdefs.h >>conftest.$ac_ext
40997 cat >>conftest.$ac_ext <<_ACEOF
40998 /* end confdefs.h.  */
40999 $ac_includes_default
41000 #include <sys/acl.h>
41001 _ACEOF
41002 rm -f conftest.$ac_objext
41003 if { (ac_try="$ac_compile"
41004 case "(($ac_try" in
41005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41006   *) ac_try_echo=$ac_try;;
41007 esac
41008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41009   (eval "$ac_compile") 2>conftest.er1
41010   ac_status=$?
41011   grep -v '^ *+' conftest.er1 >conftest.err
41012   rm -f conftest.er1
41013   cat conftest.err >&5
41014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41015   (exit $ac_status); } && {
41016          test -z "$ac_c_werror_flag" ||
41017          test ! -s conftest.err
41018        } && test -s conftest.$ac_objext; then
41019   ac_header_compiler=yes
41020 else
41021   echo "$as_me: failed program was:" >&5
41022 sed 's/^/| /' conftest.$ac_ext >&5
41023
41024         ac_header_compiler=no
41025 fi
41026
41027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41029 echo "${ECHO_T}$ac_header_compiler" >&6; }
41030
41031 # Is the header present?
41032 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
41033 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
41034 cat >conftest.$ac_ext <<_ACEOF
41035 /* confdefs.h.  */
41036 _ACEOF
41037 cat confdefs.h >>conftest.$ac_ext
41038 cat >>conftest.$ac_ext <<_ACEOF
41039 /* end confdefs.h.  */
41040 #include <sys/acl.h>
41041 _ACEOF
41042 if { (ac_try="$ac_cpp conftest.$ac_ext"
41043 case "(($ac_try" in
41044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41045   *) ac_try_echo=$ac_try;;
41046 esac
41047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41049   ac_status=$?
41050   grep -v '^ *+' conftest.er1 >conftest.err
41051   rm -f conftest.er1
41052   cat conftest.err >&5
41053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41054   (exit $ac_status); } >/dev/null && {
41055          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41056          test ! -s conftest.err
41057        }; then
41058   ac_header_preproc=yes
41059 else
41060   echo "$as_me: failed program was:" >&5
41061 sed 's/^/| /' conftest.$ac_ext >&5
41062
41063   ac_header_preproc=no
41064 fi
41065
41066 rm -f conftest.err conftest.$ac_ext
41067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41068 echo "${ECHO_T}$ac_header_preproc" >&6; }
41069
41070 # So?  What about this header?
41071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41072   yes:no: )
41073     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
41074 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41075     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
41076 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
41077     ac_header_preproc=yes
41078     ;;
41079   no:yes:* )
41080     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
41081 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
41082     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
41083 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
41084     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41085 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41086     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
41087 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41088     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41089 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41090     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41091 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41092
41093     ;;
41094 esac
41095 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41096 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41097 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41098   echo $ECHO_N "(cached) $ECHO_C" >&6
41099 else
41100   ac_cv_header_sys_acl_h=$ac_header_preproc
41101 fi
41102 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41103 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41104
41105 fi
41106 if test $ac_cv_header_sys_acl_h = yes; then
41107
41108 cat >>confdefs.h <<\_ACEOF
41109 #define HAVE_SYS_ACL_H 1
41110 _ACEOF
41111
41112 fi
41113
41114
41115    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41116 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41117 if test "${ac_cv_func_acl_get_file+set}" = set; then
41118   echo $ECHO_N "(cached) $ECHO_C" >&6
41119 else
41120   cat >conftest.$ac_ext <<_ACEOF
41121 /* confdefs.h.  */
41122 _ACEOF
41123 cat confdefs.h >>conftest.$ac_ext
41124 cat >>conftest.$ac_ext <<_ACEOF
41125 /* end confdefs.h.  */
41126 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41128 #define acl_get_file innocuous_acl_get_file
41129
41130 /* System header to define __stub macros and hopefully few prototypes,
41131     which can conflict with char acl_get_file (); below.
41132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41133     <limits.h> exists even on freestanding compilers.  */
41134
41135 #ifdef __STDC__
41136 # include <limits.h>
41137 #else
41138 # include <assert.h>
41139 #endif
41140
41141 #undef acl_get_file
41142
41143 /* Override any GCC internal prototype to avoid an error.
41144    Use char because int might match the return type of a GCC
41145    builtin and then its argument prototype would still apply.  */
41146 #ifdef __cplusplus
41147 extern "C"
41148 #endif
41149 char acl_get_file ();
41150 /* The GNU C library defines this for functions which it implements
41151     to always fail with ENOSYS.  Some functions are actually named
41152     something starting with __ and the normal name is an alias.  */
41153 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41154 choke me
41155 #endif
41156
41157 int
41158 main ()
41159 {
41160 return acl_get_file ();
41161   ;
41162   return 0;
41163 }
41164 _ACEOF
41165 rm -f conftest.$ac_objext conftest$ac_exeext
41166 if { (ac_try="$ac_link"
41167 case "(($ac_try" in
41168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41169   *) ac_try_echo=$ac_try;;
41170 esac
41171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41172   (eval "$ac_link") 2>conftest.er1
41173   ac_status=$?
41174   grep -v '^ *+' conftest.er1 >conftest.err
41175   rm -f conftest.er1
41176   cat conftest.err >&5
41177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41178   (exit $ac_status); } && {
41179          test -z "$ac_c_werror_flag" ||
41180          test ! -s conftest.err
41181        } && test -s conftest$ac_exeext &&
41182        $as_test_x conftest$ac_exeext; then
41183   ac_cv_func_acl_get_file=yes
41184 else
41185   echo "$as_me: failed program was:" >&5
41186 sed 's/^/| /' conftest.$ac_ext >&5
41187
41188         ac_cv_func_acl_get_file=no
41189 fi
41190
41191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41192       conftest$ac_exeext conftest.$ac_ext
41193 fi
41194 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41195 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41196 if test $ac_cv_func_acl_get_file = yes; then
41197
41198           have_acl=yes
41199
41200 else
41201
41202           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41203 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41204 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41205   echo $ECHO_N "(cached) $ECHO_C" >&6
41206 else
41207   ac_check_lib_save_LIBS=$LIBS
41208 LIBS="-lacl  $LIBS"
41209 cat >conftest.$ac_ext <<_ACEOF
41210 /* confdefs.h.  */
41211 _ACEOF
41212 cat confdefs.h >>conftest.$ac_ext
41213 cat >>conftest.$ac_ext <<_ACEOF
41214 /* end confdefs.h.  */
41215
41216 /* Override any GCC internal prototype to avoid an error.
41217    Use char because int might match the return type of a GCC
41218    builtin and then its argument prototype would still apply.  */
41219 #ifdef __cplusplus
41220 extern "C"
41221 #endif
41222 char acl_get_file ();
41223 int
41224 main ()
41225 {
41226 return acl_get_file ();
41227   ;
41228   return 0;
41229 }
41230 _ACEOF
41231 rm -f conftest.$ac_objext conftest$ac_exeext
41232 if { (ac_try="$ac_link"
41233 case "(($ac_try" in
41234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41235   *) ac_try_echo=$ac_try;;
41236 esac
41237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41238   (eval "$ac_link") 2>conftest.er1
41239   ac_status=$?
41240   grep -v '^ *+' conftest.er1 >conftest.err
41241   rm -f conftest.er1
41242   cat conftest.err >&5
41243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41244   (exit $ac_status); } && {
41245          test -z "$ac_c_werror_flag" ||
41246          test ! -s conftest.err
41247        } && test -s conftest$ac_exeext &&
41248        $as_test_x conftest$ac_exeext; then
41249   ac_cv_lib_acl_acl_get_file=yes
41250 else
41251   echo "$as_me: failed program was:" >&5
41252 sed 's/^/| /' conftest.$ac_ext >&5
41253
41254         ac_cv_lib_acl_acl_get_file=no
41255 fi
41256
41257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41258       conftest$ac_exeext conftest.$ac_ext
41259 LIBS=$ac_check_lib_save_LIBS
41260 fi
41261 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41262 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41263 if test $ac_cv_lib_acl_acl_get_file = yes; then
41264
41265                  have_acl=yes;
41266                  FDLIBS="-lacl $FDLIBS"
41267
41268 else
41269
41270                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41271 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41272 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41273   echo $ECHO_N "(cached) $ECHO_C" >&6
41274 else
41275   ac_check_lib_save_LIBS=$LIBS
41276 LIBS="-lpacl  $LIBS"
41277 cat >conftest.$ac_ext <<_ACEOF
41278 /* confdefs.h.  */
41279 _ACEOF
41280 cat confdefs.h >>conftest.$ac_ext
41281 cat >>conftest.$ac_ext <<_ACEOF
41282 /* end confdefs.h.  */
41283
41284 /* Override any GCC internal prototype to avoid an error.
41285    Use char because int might match the return type of a GCC
41286    builtin and then its argument prototype would still apply.  */
41287 #ifdef __cplusplus
41288 extern "C"
41289 #endif
41290 char acl_get_file ();
41291 int
41292 main ()
41293 {
41294 return acl_get_file ();
41295   ;
41296   return 0;
41297 }
41298 _ACEOF
41299 rm -f conftest.$ac_objext conftest$ac_exeext
41300 if { (ac_try="$ac_link"
41301 case "(($ac_try" in
41302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41303   *) ac_try_echo=$ac_try;;
41304 esac
41305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41306   (eval "$ac_link") 2>conftest.er1
41307   ac_status=$?
41308   grep -v '^ *+' conftest.er1 >conftest.err
41309   rm -f conftest.er1
41310   cat conftest.err >&5
41311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41312   (exit $ac_status); } && {
41313          test -z "$ac_c_werror_flag" ||
41314          test ! -s conftest.err
41315        } && test -s conftest$ac_exeext &&
41316        $as_test_x conftest$ac_exeext; then
41317   ac_cv_lib_pacl_acl_get_file=yes
41318 else
41319   echo "$as_me: failed program was:" >&5
41320 sed 's/^/| /' conftest.$ac_ext >&5
41321
41322         ac_cv_lib_pacl_acl_get_file=no
41323 fi
41324
41325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41326       conftest$ac_exeext conftest.$ac_ext
41327 LIBS=$ac_check_lib_save_LIBS
41328 fi
41329 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41330 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41331 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41332
41333                         have_acl=yes;
41334                         FDLIBS="-lpacl $FDLIBS"
41335
41336 else
41337
41338                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41339 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41340 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41341   echo $ECHO_N "(cached) $ECHO_C" >&6
41342 else
41343   ac_check_lib_save_LIBS=$LIBS
41344 LIBS="-lsec  $LIBS"
41345 cat >conftest.$ac_ext <<_ACEOF
41346 /* confdefs.h.  */
41347 _ACEOF
41348 cat confdefs.h >>conftest.$ac_ext
41349 cat >>conftest.$ac_ext <<_ACEOF
41350 /* end confdefs.h.  */
41351
41352 /* Override any GCC internal prototype to avoid an error.
41353    Use char because int might match the return type of a GCC
41354    builtin and then its argument prototype would still apply.  */
41355 #ifdef __cplusplus
41356 extern "C"
41357 #endif
41358 char acltotext ();
41359 int
41360 main ()
41361 {
41362 return acltotext ();
41363   ;
41364   return 0;
41365 }
41366 _ACEOF
41367 rm -f conftest.$ac_objext conftest$ac_exeext
41368 if { (ac_try="$ac_link"
41369 case "(($ac_try" in
41370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41371   *) ac_try_echo=$ac_try;;
41372 esac
41373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41374   (eval "$ac_link") 2>conftest.er1
41375   ac_status=$?
41376   grep -v '^ *+' conftest.er1 >conftest.err
41377   rm -f conftest.er1
41378   cat conftest.err >&5
41379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41380   (exit $ac_status); } && {
41381          test -z "$ac_c_werror_flag" ||
41382          test ! -s conftest.err
41383        } && test -s conftest$ac_exeext &&
41384        $as_test_x conftest$ac_exeext; then
41385   ac_cv_lib_sec_acltotext=yes
41386 else
41387   echo "$as_me: failed program was:" >&5
41388 sed 's/^/| /' conftest.$ac_ext >&5
41389
41390         ac_cv_lib_sec_acltotext=no
41391 fi
41392
41393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41394       conftest$ac_exeext conftest.$ac_ext
41395 LIBS=$ac_check_lib_save_LIBS
41396 fi
41397 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41398 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41399 if test $ac_cv_lib_sec_acltotext = yes; then
41400
41401                                have_acl=yes;
41402                                FDLIBS="-lsec $FDLIBS"
41403
41404                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41405 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41406 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41407   echo $ECHO_N "(cached) $ECHO_C" >&6
41408 else
41409   ac_check_lib_save_LIBS=$LIBS
41410 LIBS="-lsec  $LIBS"
41411 cat >conftest.$ac_ext <<_ACEOF
41412 /* confdefs.h.  */
41413 _ACEOF
41414 cat confdefs.h >>conftest.$ac_ext
41415 cat >>conftest.$ac_ext <<_ACEOF
41416 /* end confdefs.h.  */
41417
41418 /* Override any GCC internal prototype to avoid an error.
41419    Use char because int might match the return type of a GCC
41420    builtin and then its argument prototype would still apply.  */
41421 #ifdef __cplusplus
41422 extern "C"
41423 #endif
41424 char acl_totext ();
41425 int
41426 main ()
41427 {
41428 return acl_totext ();
41429   ;
41430   return 0;
41431 }
41432 _ACEOF
41433 rm -f conftest.$ac_objext conftest$ac_exeext
41434 if { (ac_try="$ac_link"
41435 case "(($ac_try" in
41436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41437   *) ac_try_echo=$ac_try;;
41438 esac
41439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41440   (eval "$ac_link") 2>conftest.er1
41441   ac_status=$?
41442   grep -v '^ *+' conftest.er1 >conftest.err
41443   rm -f conftest.er1
41444   cat conftest.err >&5
41445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41446   (exit $ac_status); } && {
41447          test -z "$ac_c_werror_flag" ||
41448          test ! -s conftest.err
41449        } && test -s conftest$ac_exeext &&
41450        $as_test_x conftest$ac_exeext; then
41451   ac_cv_lib_sec_acl_totext=yes
41452 else
41453   echo "$as_me: failed program was:" >&5
41454 sed 's/^/| /' conftest.$ac_ext >&5
41455
41456         ac_cv_lib_sec_acl_totext=no
41457 fi
41458
41459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41460       conftest$ac_exeext conftest.$ac_ext
41461 LIBS=$ac_check_lib_save_LIBS
41462 fi
41463 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41464 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41465 if test $ac_cv_lib_sec_acl_totext = yes; then
41466
41467                                       have_extended_acl=yes
41468
41469
41470 fi
41471
41472
41473
41474 fi
41475
41476
41477
41478 fi
41479
41480
41481
41482 fi
41483
41484
41485
41486 fi
41487
41488
41489    if test x$support_acl = xyes -a $have_acl != yes; then
41490       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41491   please either load the acl libraries or rerun configure without --enable-acl" >&5
41492 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41493   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41494    { (exit 1); exit 1; }; }
41495    else
41496       if test $have_acl = yes; then
41497
41498 cat >>confdefs.h <<\_ACEOF
41499 #define HAVE_ACL 1
41500 _ACEOF
41501
41502       fi
41503
41504       if test $have_extended_acl = yes; then
41505
41506 cat >>confdefs.h <<\_ACEOF
41507 #define HAVE_EXTENDED_ACL 1
41508 _ACEOF
41509
41510       fi
41511    fi
41512 fi
41513
41514 support_xattr=auto
41515 # Check whether --enable-xattr was given.
41516 if test "${enable_xattr+set}" = set; then
41517   enableval=$enable_xattr;
41518        if test x$enableval = xyes; then
41519           support_xattr=yes
41520        elif test x$enableval = xno; then
41521           support_xattr=no
41522        fi
41523
41524
41525 fi
41526
41527
41528 have_xattr=no
41529 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41530             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41531   { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41532 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41533 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41534   echo $ECHO_N "(cached) $ECHO_C" >&6
41535 fi
41536 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41537 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41538 else
41539   # Is the header compilable?
41540 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41541 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41542 cat >conftest.$ac_ext <<_ACEOF
41543 /* confdefs.h.  */
41544 _ACEOF
41545 cat confdefs.h >>conftest.$ac_ext
41546 cat >>conftest.$ac_ext <<_ACEOF
41547 /* end confdefs.h.  */
41548 $ac_includes_default
41549 #include <sys/extattr.h>
41550 _ACEOF
41551 rm -f conftest.$ac_objext
41552 if { (ac_try="$ac_compile"
41553 case "(($ac_try" in
41554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41555   *) ac_try_echo=$ac_try;;
41556 esac
41557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41558   (eval "$ac_compile") 2>conftest.er1
41559   ac_status=$?
41560   grep -v '^ *+' conftest.er1 >conftest.err
41561   rm -f conftest.er1
41562   cat conftest.err >&5
41563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41564   (exit $ac_status); } && {
41565          test -z "$ac_c_werror_flag" ||
41566          test ! -s conftest.err
41567        } && test -s conftest.$ac_objext; then
41568   ac_header_compiler=yes
41569 else
41570   echo "$as_me: failed program was:" >&5
41571 sed 's/^/| /' conftest.$ac_ext >&5
41572
41573         ac_header_compiler=no
41574 fi
41575
41576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41578 echo "${ECHO_T}$ac_header_compiler" >&6; }
41579
41580 # Is the header present?
41581 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41582 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41583 cat >conftest.$ac_ext <<_ACEOF
41584 /* confdefs.h.  */
41585 _ACEOF
41586 cat confdefs.h >>conftest.$ac_ext
41587 cat >>conftest.$ac_ext <<_ACEOF
41588 /* end confdefs.h.  */
41589 #include <sys/extattr.h>
41590 _ACEOF
41591 if { (ac_try="$ac_cpp conftest.$ac_ext"
41592 case "(($ac_try" in
41593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41594   *) ac_try_echo=$ac_try;;
41595 esac
41596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41597   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41598   ac_status=$?
41599   grep -v '^ *+' conftest.er1 >conftest.err
41600   rm -f conftest.er1
41601   cat conftest.err >&5
41602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41603   (exit $ac_status); } >/dev/null && {
41604          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41605          test ! -s conftest.err
41606        }; then
41607   ac_header_preproc=yes
41608 else
41609   echo "$as_me: failed program was:" >&5
41610 sed 's/^/| /' conftest.$ac_ext >&5
41611
41612   ac_header_preproc=no
41613 fi
41614
41615 rm -f conftest.err conftest.$ac_ext
41616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41617 echo "${ECHO_T}$ac_header_preproc" >&6; }
41618
41619 # So?  What about this header?
41620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41621   yes:no: )
41622     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41623 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41624     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41625 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41626     ac_header_preproc=yes
41627     ;;
41628   no:yes:* )
41629     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41630 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41631     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
41632 echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
41633     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41634 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41635     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41636 echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41637     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41638 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41639     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41640 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41641
41642     ;;
41643 esac
41644 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41645 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41646 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41647   echo $ECHO_N "(cached) $ECHO_C" >&6
41648 else
41649   ac_cv_header_sys_extattr_h=$ac_header_preproc
41650 fi
41651 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41652 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41653
41654 fi
41655 if test $ac_cv_header_sys_extattr_h = yes; then
41656
41657 cat >>confdefs.h <<\_ACEOF
41658 #define HAVE_SYS_EXTATTR_H 1
41659 _ACEOF
41660
41661 fi
41662
41663
41664    if test "${ac_cv_header_libutil_h+set}" = set; then
41665   { echo "$as_me:$LINENO: checking for libutil.h" >&5
41666 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41667 if test "${ac_cv_header_libutil_h+set}" = set; then
41668   echo $ECHO_N "(cached) $ECHO_C" >&6
41669 fi
41670 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41671 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41672 else
41673   # Is the header compilable?
41674 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41675 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41676 cat >conftest.$ac_ext <<_ACEOF
41677 /* confdefs.h.  */
41678 _ACEOF
41679 cat confdefs.h >>conftest.$ac_ext
41680 cat >>conftest.$ac_ext <<_ACEOF
41681 /* end confdefs.h.  */
41682 $ac_includes_default
41683 #include <libutil.h>
41684 _ACEOF
41685 rm -f conftest.$ac_objext
41686 if { (ac_try="$ac_compile"
41687 case "(($ac_try" in
41688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41689   *) ac_try_echo=$ac_try;;
41690 esac
41691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41692   (eval "$ac_compile") 2>conftest.er1
41693   ac_status=$?
41694   grep -v '^ *+' conftest.er1 >conftest.err
41695   rm -f conftest.er1
41696   cat conftest.err >&5
41697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41698   (exit $ac_status); } && {
41699          test -z "$ac_c_werror_flag" ||
41700          test ! -s conftest.err
41701        } && test -s conftest.$ac_objext; then
41702   ac_header_compiler=yes
41703 else
41704   echo "$as_me: failed program was:" >&5
41705 sed 's/^/| /' conftest.$ac_ext >&5
41706
41707         ac_header_compiler=no
41708 fi
41709
41710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41712 echo "${ECHO_T}$ac_header_compiler" >&6; }
41713
41714 # Is the header present?
41715 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41716 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41717 cat >conftest.$ac_ext <<_ACEOF
41718 /* confdefs.h.  */
41719 _ACEOF
41720 cat confdefs.h >>conftest.$ac_ext
41721 cat >>conftest.$ac_ext <<_ACEOF
41722 /* end confdefs.h.  */
41723 #include <libutil.h>
41724 _ACEOF
41725 if { (ac_try="$ac_cpp conftest.$ac_ext"
41726 case "(($ac_try" in
41727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41728   *) ac_try_echo=$ac_try;;
41729 esac
41730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41732   ac_status=$?
41733   grep -v '^ *+' conftest.er1 >conftest.err
41734   rm -f conftest.er1
41735   cat conftest.err >&5
41736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41737   (exit $ac_status); } >/dev/null && {
41738          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41739          test ! -s conftest.err
41740        }; then
41741   ac_header_preproc=yes
41742 else
41743   echo "$as_me: failed program was:" >&5
41744 sed 's/^/| /' conftest.$ac_ext >&5
41745
41746   ac_header_preproc=no
41747 fi
41748
41749 rm -f conftest.err conftest.$ac_ext
41750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41751 echo "${ECHO_T}$ac_header_preproc" >&6; }
41752
41753 # So?  What about this header?
41754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41755   yes:no: )
41756     { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41757 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41758     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41759 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41760     ac_header_preproc=yes
41761     ;;
41762   no:yes:* )
41763     { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41764 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41765     { echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
41766 echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
41767     { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41768 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41769     { echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
41770 echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41771     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41772 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41773     { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41774 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41775
41776     ;;
41777 esac
41778 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41779 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41780 if test "${ac_cv_header_libutil_h+set}" = set; then
41781   echo $ECHO_N "(cached) $ECHO_C" >&6
41782 else
41783   ac_cv_header_libutil_h=$ac_header_preproc
41784 fi
41785 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41786 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41787
41788 fi
41789 if test $ac_cv_header_libutil_h = yes; then
41790
41791 cat >>confdefs.h <<\_ACEOF
41792 #define HAVE_LIBUTIL_H 1
41793 _ACEOF
41794
41795 fi
41796
41797
41798
41799
41800
41801 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41802 do
41803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41807   echo $ECHO_N "(cached) $ECHO_C" >&6
41808 else
41809   cat >conftest.$ac_ext <<_ACEOF
41810 /* confdefs.h.  */
41811 _ACEOF
41812 cat confdefs.h >>conftest.$ac_ext
41813 cat >>conftest.$ac_ext <<_ACEOF
41814 /* end confdefs.h.  */
41815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41817 #define $ac_func innocuous_$ac_func
41818
41819 /* System header to define __stub macros and hopefully few prototypes,
41820     which can conflict with char $ac_func (); below.
41821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41822     <limits.h> exists even on freestanding compilers.  */
41823
41824 #ifdef __STDC__
41825 # include <limits.h>
41826 #else
41827 # include <assert.h>
41828 #endif
41829
41830 #undef $ac_func
41831
41832 /* Override any GCC internal prototype to avoid an error.
41833    Use char because int might match the return type of a GCC
41834    builtin and then its argument prototype would still apply.  */
41835 #ifdef __cplusplus
41836 extern "C"
41837 #endif
41838 char $ac_func ();
41839 /* The GNU C library defines this for functions which it implements
41840     to always fail with ENOSYS.  Some functions are actually named
41841     something starting with __ and the normal name is an alias.  */
41842 #if defined __stub_$ac_func || defined __stub___$ac_func
41843 choke me
41844 #endif
41845
41846 int
41847 main ()
41848 {
41849 return $ac_func ();
41850   ;
41851   return 0;
41852 }
41853 _ACEOF
41854 rm -f conftest.$ac_objext conftest$ac_exeext
41855 if { (ac_try="$ac_link"
41856 case "(($ac_try" in
41857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41858   *) ac_try_echo=$ac_try;;
41859 esac
41860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41861   (eval "$ac_link") 2>conftest.er1
41862   ac_status=$?
41863   grep -v '^ *+' conftest.er1 >conftest.err
41864   rm -f conftest.er1
41865   cat conftest.err >&5
41866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41867   (exit $ac_status); } && {
41868          test -z "$ac_c_werror_flag" ||
41869          test ! -s conftest.err
41870        } && test -s conftest$ac_exeext &&
41871        $as_test_x conftest$ac_exeext; then
41872   eval "$as_ac_var=yes"
41873 else
41874   echo "$as_me: failed program was:" >&5
41875 sed 's/^/| /' conftest.$ac_ext >&5
41876
41877         eval "$as_ac_var=no"
41878 fi
41879
41880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41881       conftest$ac_exeext conftest.$ac_ext
41882 fi
41883 ac_res=`eval echo '${'$as_ac_var'}'`
41884                { echo "$as_me:$LINENO: result: $ac_res" >&5
41885 echo "${ECHO_T}$ac_res" >&6; }
41886 if test `eval echo '${'$as_ac_var'}'` = yes; then
41887   cat >>confdefs.h <<_ACEOF
41888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41889 _ACEOF
41890
41891           have_xattr=yes
41892
41893 cat >>confdefs.h <<\_ACEOF
41894 #define HAVE_EXTATTR_GET_LINK 1
41895 _ACEOF
41896
41897
41898 cat >>confdefs.h <<\_ACEOF
41899 #define HAVE_EXTATTR_SET_LINK 1
41900 _ACEOF
41901
41902
41903 cat >>confdefs.h <<\_ACEOF
41904 #define HAVE_EXTATTR_LIST_LINK 1
41905 _ACEOF
41906
41907
41908
41909 fi
41910 done
41911
41912
41913    if test $have_xattr = no; then
41914
41915
41916
41917 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41918 do
41919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41923   echo $ECHO_N "(cached) $ECHO_C" >&6
41924 else
41925   cat >conftest.$ac_ext <<_ACEOF
41926 /* confdefs.h.  */
41927 _ACEOF
41928 cat confdefs.h >>conftest.$ac_ext
41929 cat >>conftest.$ac_ext <<_ACEOF
41930 /* end confdefs.h.  */
41931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41933 #define $ac_func innocuous_$ac_func
41934
41935 /* System header to define __stub macros and hopefully few prototypes,
41936     which can conflict with char $ac_func (); below.
41937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41938     <limits.h> exists even on freestanding compilers.  */
41939
41940 #ifdef __STDC__
41941 # include <limits.h>
41942 #else
41943 # include <assert.h>
41944 #endif
41945
41946 #undef $ac_func
41947
41948 /* Override any GCC internal prototype to avoid an error.
41949    Use char because int might match the return type of a GCC
41950    builtin and then its argument prototype would still apply.  */
41951 #ifdef __cplusplus
41952 extern "C"
41953 #endif
41954 char $ac_func ();
41955 /* The GNU C library defines this for functions which it implements
41956     to always fail with ENOSYS.  Some functions are actually named
41957     something starting with __ and the normal name is an alias.  */
41958 #if defined __stub_$ac_func || defined __stub___$ac_func
41959 choke me
41960 #endif
41961
41962 int
41963 main ()
41964 {
41965 return $ac_func ();
41966   ;
41967   return 0;
41968 }
41969 _ACEOF
41970 rm -f conftest.$ac_objext conftest$ac_exeext
41971 if { (ac_try="$ac_link"
41972 case "(($ac_try" in
41973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41974   *) ac_try_echo=$ac_try;;
41975 esac
41976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41977   (eval "$ac_link") 2>conftest.er1
41978   ac_status=$?
41979   grep -v '^ *+' conftest.er1 >conftest.err
41980   rm -f conftest.er1
41981   cat conftest.err >&5
41982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41983   (exit $ac_status); } && {
41984          test -z "$ac_c_werror_flag" ||
41985          test ! -s conftest.err
41986        } && test -s conftest$ac_exeext &&
41987        $as_test_x conftest$ac_exeext; then
41988   eval "$as_ac_var=yes"
41989 else
41990   echo "$as_me: failed program was:" >&5
41991 sed 's/^/| /' conftest.$ac_ext >&5
41992
41993         eval "$as_ac_var=no"
41994 fi
41995
41996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41997       conftest$ac_exeext conftest.$ac_ext
41998 fi
41999 ac_res=`eval echo '${'$as_ac_var'}'`
42000                { echo "$as_me:$LINENO: result: $ac_res" >&5
42001 echo "${ECHO_T}$ac_res" >&6; }
42002 if test `eval echo '${'$as_ac_var'}'` = yes; then
42003   cat >>confdefs.h <<_ACEOF
42004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42005 _ACEOF
42006
42007              have_xattr=yes
42008
42009 cat >>confdefs.h <<\_ACEOF
42010 #define HAVE_EXTATTR_GET_FILE 1
42011 _ACEOF
42012
42013
42014 cat >>confdefs.h <<\_ACEOF
42015 #define HAVE_EXTATTR_SET_FILE 1
42016 _ACEOF
42017
42018
42019 cat >>confdefs.h <<\_ACEOF
42020 #define HAVE_EXTATTR_LIST_FILE 1
42021 _ACEOF
42022
42023
42024
42025 fi
42026 done
42027
42028    fi
42029
42030    if test $have_xattr = yes; then
42031       have_extattr_string_in_libc=no
42032
42033
42034 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
42035 do
42036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42040   echo $ECHO_N "(cached) $ECHO_C" >&6
42041 else
42042   cat >conftest.$ac_ext <<_ACEOF
42043 /* confdefs.h.  */
42044 _ACEOF
42045 cat confdefs.h >>conftest.$ac_ext
42046 cat >>conftest.$ac_ext <<_ACEOF
42047 /* end confdefs.h.  */
42048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42050 #define $ac_func innocuous_$ac_func
42051
42052 /* System header to define __stub macros and hopefully few prototypes,
42053     which can conflict with char $ac_func (); below.
42054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42055     <limits.h> exists even on freestanding compilers.  */
42056
42057 #ifdef __STDC__
42058 # include <limits.h>
42059 #else
42060 # include <assert.h>
42061 #endif
42062
42063 #undef $ac_func
42064
42065 /* Override any GCC internal prototype to avoid an error.
42066    Use char because int might match the return type of a GCC
42067    builtin and then its argument prototype would still apply.  */
42068 #ifdef __cplusplus
42069 extern "C"
42070 #endif
42071 char $ac_func ();
42072 /* The GNU C library defines this for functions which it implements
42073     to always fail with ENOSYS.  Some functions are actually named
42074     something starting with __ and the normal name is an alias.  */
42075 #if defined __stub_$ac_func || defined __stub___$ac_func
42076 choke me
42077 #endif
42078
42079 int
42080 main ()
42081 {
42082 return $ac_func ();
42083   ;
42084   return 0;
42085 }
42086 _ACEOF
42087 rm -f conftest.$ac_objext conftest$ac_exeext
42088 if { (ac_try="$ac_link"
42089 case "(($ac_try" in
42090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42091   *) ac_try_echo=$ac_try;;
42092 esac
42093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42094   (eval "$ac_link") 2>conftest.er1
42095   ac_status=$?
42096   grep -v '^ *+' conftest.er1 >conftest.err
42097   rm -f conftest.er1
42098   cat conftest.err >&5
42099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42100   (exit $ac_status); } && {
42101          test -z "$ac_c_werror_flag" ||
42102          test ! -s conftest.err
42103        } && test -s conftest$ac_exeext &&
42104        $as_test_x conftest$ac_exeext; then
42105   eval "$as_ac_var=yes"
42106 else
42107   echo "$as_me: failed program was:" >&5
42108 sed 's/^/| /' conftest.$ac_ext >&5
42109
42110         eval "$as_ac_var=no"
42111 fi
42112
42113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42114       conftest$ac_exeext conftest.$ac_ext
42115 fi
42116 ac_res=`eval echo '${'$as_ac_var'}'`
42117                { echo "$as_me:$LINENO: result: $ac_res" >&5
42118 echo "${ECHO_T}$ac_res" >&6; }
42119 if test `eval echo '${'$as_ac_var'}'` = yes; then
42120   cat >>confdefs.h <<_ACEOF
42121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42122 _ACEOF
42123
42124              have_extattr_string_in_libc=yes
42125
42126 cat >>confdefs.h <<\_ACEOF
42127 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42128 _ACEOF
42129
42130
42131 cat >>confdefs.h <<\_ACEOF
42132 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42133 _ACEOF
42134
42135
42136
42137 fi
42138 done
42139
42140
42141                         if test $have_extattr_string_in_libc = no; then
42142          { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42143 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42144 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42145   echo $ECHO_N "(cached) $ECHO_C" >&6
42146 else
42147   ac_check_lib_save_LIBS=$LIBS
42148 LIBS="-lutil  $LIBS"
42149 cat >conftest.$ac_ext <<_ACEOF
42150 /* confdefs.h.  */
42151 _ACEOF
42152 cat confdefs.h >>conftest.$ac_ext
42153 cat >>conftest.$ac_ext <<_ACEOF
42154 /* end confdefs.h.  */
42155
42156 /* Override any GCC internal prototype to avoid an error.
42157    Use char because int might match the return type of a GCC
42158    builtin and then its argument prototype would still apply.  */
42159 #ifdef __cplusplus
42160 extern "C"
42161 #endif
42162 char extattr_namespace_to_string extattr_string_to_namespace ();
42163 int
42164 main ()
42165 {
42166 return extattr_namespace_to_string extattr_string_to_namespace ();
42167   ;
42168   return 0;
42169 }
42170 _ACEOF
42171 rm -f conftest.$ac_objext conftest$ac_exeext
42172 if { (ac_try="$ac_link"
42173 case "(($ac_try" in
42174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42175   *) ac_try_echo=$ac_try;;
42176 esac
42177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42178   (eval "$ac_link") 2>conftest.er1
42179   ac_status=$?
42180   grep -v '^ *+' conftest.er1 >conftest.err
42181   rm -f conftest.er1
42182   cat conftest.err >&5
42183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42184   (exit $ac_status); } && {
42185          test -z "$ac_c_werror_flag" ||
42186          test ! -s conftest.err
42187        } && test -s conftest$ac_exeext &&
42188        $as_test_x conftest$ac_exeext; then
42189   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42190 else
42191   echo "$as_me: failed program was:" >&5
42192 sed 's/^/| /' conftest.$ac_ext >&5
42193
42194         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42195 fi
42196
42197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42198       conftest$ac_exeext conftest.$ac_ext
42199 LIBS=$ac_check_lib_save_LIBS
42200 fi
42201 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42202 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42203 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42204
42205
42206 cat >>confdefs.h <<\_ACEOF
42207 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42208 _ACEOF
42209
42210
42211 cat >>confdefs.h <<\_ACEOF
42212 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42213 _ACEOF
42214
42215                 FDLIBS="-lutil $FDLIBS"
42216
42217
42218 fi
42219
42220       fi
42221    fi
42222
42223             if test $have_xattr = no; then
42224       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42225   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42226 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42227 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42228   echo $ECHO_N "(cached) $ECHO_C" >&6
42229 fi
42230 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42231 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42232 else
42233   # Is the header compilable?
42234 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42235 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42236 cat >conftest.$ac_ext <<_ACEOF
42237 /* confdefs.h.  */
42238 _ACEOF
42239 cat confdefs.h >>conftest.$ac_ext
42240 cat >>conftest.$ac_ext <<_ACEOF
42241 /* end confdefs.h.  */
42242 $ac_includes_default
42243 #include <sys/xattr.h>
42244 _ACEOF
42245 rm -f conftest.$ac_objext
42246 if { (ac_try="$ac_compile"
42247 case "(($ac_try" in
42248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42249   *) ac_try_echo=$ac_try;;
42250 esac
42251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42252   (eval "$ac_compile") 2>conftest.er1
42253   ac_status=$?
42254   grep -v '^ *+' conftest.er1 >conftest.err
42255   rm -f conftest.er1
42256   cat conftest.err >&5
42257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42258   (exit $ac_status); } && {
42259          test -z "$ac_c_werror_flag" ||
42260          test ! -s conftest.err
42261        } && test -s conftest.$ac_objext; then
42262   ac_header_compiler=yes
42263 else
42264   echo "$as_me: failed program was:" >&5
42265 sed 's/^/| /' conftest.$ac_ext >&5
42266
42267         ac_header_compiler=no
42268 fi
42269
42270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42272 echo "${ECHO_T}$ac_header_compiler" >&6; }
42273
42274 # Is the header present?
42275 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42276 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42277 cat >conftest.$ac_ext <<_ACEOF
42278 /* confdefs.h.  */
42279 _ACEOF
42280 cat confdefs.h >>conftest.$ac_ext
42281 cat >>conftest.$ac_ext <<_ACEOF
42282 /* end confdefs.h.  */
42283 #include <sys/xattr.h>
42284 _ACEOF
42285 if { (ac_try="$ac_cpp conftest.$ac_ext"
42286 case "(($ac_try" in
42287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42288   *) ac_try_echo=$ac_try;;
42289 esac
42290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42292   ac_status=$?
42293   grep -v '^ *+' conftest.er1 >conftest.err
42294   rm -f conftest.er1
42295   cat conftest.err >&5
42296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42297   (exit $ac_status); } >/dev/null && {
42298          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42299          test ! -s conftest.err
42300        }; then
42301   ac_header_preproc=yes
42302 else
42303   echo "$as_me: failed program was:" >&5
42304 sed 's/^/| /' conftest.$ac_ext >&5
42305
42306   ac_header_preproc=no
42307 fi
42308
42309 rm -f conftest.err conftest.$ac_ext
42310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42311 echo "${ECHO_T}$ac_header_preproc" >&6; }
42312
42313 # So?  What about this header?
42314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42315   yes:no: )
42316     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42317 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42318     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42319 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42320     ac_header_preproc=yes
42321     ;;
42322   no:yes:* )
42323     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42324 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42325     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
42326 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
42327     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42328 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42329     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
42330 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42331     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42332 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42333     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42334 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42335
42336     ;;
42337 esac
42338 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42339 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42340 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42341   echo $ECHO_N "(cached) $ECHO_C" >&6
42342 else
42343   ac_cv_header_sys_xattr_h=$ac_header_preproc
42344 fi
42345 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42346 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42347
42348 fi
42349 if test $ac_cv_header_sys_xattr_h = yes; then
42350
42351 cat >>confdefs.h <<\_ACEOF
42352 #define HAVE_SYS_XATTR_H 1
42353 _ACEOF
42354
42355 fi
42356
42357
42358
42359
42360
42361 for ac_func in llistxattr lgetxattr lsetxattr
42362 do
42363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42364 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42367   echo $ECHO_N "(cached) $ECHO_C" >&6
42368 else
42369   cat >conftest.$ac_ext <<_ACEOF
42370 /* confdefs.h.  */
42371 _ACEOF
42372 cat confdefs.h >>conftest.$ac_ext
42373 cat >>conftest.$ac_ext <<_ACEOF
42374 /* end confdefs.h.  */
42375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42377 #define $ac_func innocuous_$ac_func
42378
42379 /* System header to define __stub macros and hopefully few prototypes,
42380     which can conflict with char $ac_func (); below.
42381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42382     <limits.h> exists even on freestanding compilers.  */
42383
42384 #ifdef __STDC__
42385 # include <limits.h>
42386 #else
42387 # include <assert.h>
42388 #endif
42389
42390 #undef $ac_func
42391
42392 /* Override any GCC internal prototype to avoid an error.
42393    Use char because int might match the return type of a GCC
42394    builtin and then its argument prototype would still apply.  */
42395 #ifdef __cplusplus
42396 extern "C"
42397 #endif
42398 char $ac_func ();
42399 /* The GNU C library defines this for functions which it implements
42400     to always fail with ENOSYS.  Some functions are actually named
42401     something starting with __ and the normal name is an alias.  */
42402 #if defined __stub_$ac_func || defined __stub___$ac_func
42403 choke me
42404 #endif
42405
42406 int
42407 main ()
42408 {
42409 return $ac_func ();
42410   ;
42411   return 0;
42412 }
42413 _ACEOF
42414 rm -f conftest.$ac_objext conftest$ac_exeext
42415 if { (ac_try="$ac_link"
42416 case "(($ac_try" in
42417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42418   *) ac_try_echo=$ac_try;;
42419 esac
42420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42421   (eval "$ac_link") 2>conftest.er1
42422   ac_status=$?
42423   grep -v '^ *+' conftest.er1 >conftest.err
42424   rm -f conftest.er1
42425   cat conftest.err >&5
42426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42427   (exit $ac_status); } && {
42428          test -z "$ac_c_werror_flag" ||
42429          test ! -s conftest.err
42430        } && test -s conftest$ac_exeext &&
42431        $as_test_x conftest$ac_exeext; then
42432   eval "$as_ac_var=yes"
42433 else
42434   echo "$as_me: failed program was:" >&5
42435 sed 's/^/| /' conftest.$ac_ext >&5
42436
42437         eval "$as_ac_var=no"
42438 fi
42439
42440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42441       conftest$ac_exeext conftest.$ac_ext
42442 fi
42443 ac_res=`eval echo '${'$as_ac_var'}'`
42444                { echo "$as_me:$LINENO: result: $ac_res" >&5
42445 echo "${ECHO_T}$ac_res" >&6; }
42446 if test `eval echo '${'$as_ac_var'}'` = yes; then
42447   cat >>confdefs.h <<_ACEOF
42448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42449 _ACEOF
42450
42451              have_xattr=yes
42452
42453 cat >>confdefs.h <<\_ACEOF
42454 #define HAVE_LLISTXATTR 1
42455 _ACEOF
42456
42457
42458 cat >>confdefs.h <<\_ACEOF
42459 #define HAVE_LGETXATTR 1
42460 _ACEOF
42461
42462
42463 cat >>confdefs.h <<\_ACEOF
42464 #define HAVE_LSETXATTR 1
42465 _ACEOF
42466
42467
42468
42469 fi
42470 done
42471
42472
42473       if test $have_xattr = no; then
42474
42475
42476
42477 for ac_func in listxattr getxattr setxattr
42478 do
42479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42480 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42483   echo $ECHO_N "(cached) $ECHO_C" >&6
42484 else
42485   cat >conftest.$ac_ext <<_ACEOF
42486 /* confdefs.h.  */
42487 _ACEOF
42488 cat confdefs.h >>conftest.$ac_ext
42489 cat >>conftest.$ac_ext <<_ACEOF
42490 /* end confdefs.h.  */
42491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42493 #define $ac_func innocuous_$ac_func
42494
42495 /* System header to define __stub macros and hopefully few prototypes,
42496     which can conflict with char $ac_func (); below.
42497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42498     <limits.h> exists even on freestanding compilers.  */
42499
42500 #ifdef __STDC__
42501 # include <limits.h>
42502 #else
42503 # include <assert.h>
42504 #endif
42505
42506 #undef $ac_func
42507
42508 /* Override any GCC internal prototype to avoid an error.
42509    Use char because int might match the return type of a GCC
42510    builtin and then its argument prototype would still apply.  */
42511 #ifdef __cplusplus
42512 extern "C"
42513 #endif
42514 char $ac_func ();
42515 /* The GNU C library defines this for functions which it implements
42516     to always fail with ENOSYS.  Some functions are actually named
42517     something starting with __ and the normal name is an alias.  */
42518 #if defined __stub_$ac_func || defined __stub___$ac_func
42519 choke me
42520 #endif
42521
42522 int
42523 main ()
42524 {
42525 return $ac_func ();
42526   ;
42527   return 0;
42528 }
42529 _ACEOF
42530 rm -f conftest.$ac_objext conftest$ac_exeext
42531 if { (ac_try="$ac_link"
42532 case "(($ac_try" in
42533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42534   *) ac_try_echo=$ac_try;;
42535 esac
42536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42537   (eval "$ac_link") 2>conftest.er1
42538   ac_status=$?
42539   grep -v '^ *+' conftest.er1 >conftest.err
42540   rm -f conftest.er1
42541   cat conftest.err >&5
42542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42543   (exit $ac_status); } && {
42544          test -z "$ac_c_werror_flag" ||
42545          test ! -s conftest.err
42546        } && test -s conftest$ac_exeext &&
42547        $as_test_x conftest$ac_exeext; then
42548   eval "$as_ac_var=yes"
42549 else
42550   echo "$as_me: failed program was:" >&5
42551 sed 's/^/| /' conftest.$ac_ext >&5
42552
42553         eval "$as_ac_var=no"
42554 fi
42555
42556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42557       conftest$ac_exeext conftest.$ac_ext
42558 fi
42559 ac_res=`eval echo '${'$as_ac_var'}'`
42560                { echo "$as_me:$LINENO: result: $ac_res" >&5
42561 echo "${ECHO_T}$ac_res" >&6; }
42562 if test `eval echo '${'$as_ac_var'}'` = yes; then
42563   cat >>confdefs.h <<_ACEOF
42564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42565 _ACEOF
42566
42567                 have_xattr=yes
42568
42569 cat >>confdefs.h <<\_ACEOF
42570 #define HAVE_LISTXATTR 1
42571 _ACEOF
42572
42573
42574 cat >>confdefs.h <<\_ACEOF
42575 #define HAVE_GETXATTR 1
42576 _ACEOF
42577
42578
42579 cat >>confdefs.h <<\_ACEOF
42580 #define HAVE_SETXATTR 1
42581 _ACEOF
42582
42583
42584
42585 fi
42586 done
42587
42588       fi
42589    fi
42590
42591             if test $have_xattr = no; then
42592       if test "${ac_cv_header_sys_attr_h+set}" = set; then
42593   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42594 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42595 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42596   echo $ECHO_N "(cached) $ECHO_C" >&6
42597 fi
42598 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42599 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42600 else
42601   # Is the header compilable?
42602 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42603 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42604 cat >conftest.$ac_ext <<_ACEOF
42605 /* confdefs.h.  */
42606 _ACEOF
42607 cat confdefs.h >>conftest.$ac_ext
42608 cat >>conftest.$ac_ext <<_ACEOF
42609 /* end confdefs.h.  */
42610 $ac_includes_default
42611 #include <sys/attr.h>
42612 _ACEOF
42613 rm -f conftest.$ac_objext
42614 if { (ac_try="$ac_compile"
42615 case "(($ac_try" in
42616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42617   *) ac_try_echo=$ac_try;;
42618 esac
42619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42620   (eval "$ac_compile") 2>conftest.er1
42621   ac_status=$?
42622   grep -v '^ *+' conftest.er1 >conftest.err
42623   rm -f conftest.er1
42624   cat conftest.err >&5
42625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42626   (exit $ac_status); } && {
42627          test -z "$ac_c_werror_flag" ||
42628          test ! -s conftest.err
42629        } && test -s conftest.$ac_objext; then
42630   ac_header_compiler=yes
42631 else
42632   echo "$as_me: failed program was:" >&5
42633 sed 's/^/| /' conftest.$ac_ext >&5
42634
42635         ac_header_compiler=no
42636 fi
42637
42638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42640 echo "${ECHO_T}$ac_header_compiler" >&6; }
42641
42642 # Is the header present?
42643 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42644 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42645 cat >conftest.$ac_ext <<_ACEOF
42646 /* confdefs.h.  */
42647 _ACEOF
42648 cat confdefs.h >>conftest.$ac_ext
42649 cat >>conftest.$ac_ext <<_ACEOF
42650 /* end confdefs.h.  */
42651 #include <sys/attr.h>
42652 _ACEOF
42653 if { (ac_try="$ac_cpp conftest.$ac_ext"
42654 case "(($ac_try" in
42655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42656   *) ac_try_echo=$ac_try;;
42657 esac
42658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42659   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42660   ac_status=$?
42661   grep -v '^ *+' conftest.er1 >conftest.err
42662   rm -f conftest.er1
42663   cat conftest.err >&5
42664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42665   (exit $ac_status); } >/dev/null && {
42666          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42667          test ! -s conftest.err
42668        }; then
42669   ac_header_preproc=yes
42670 else
42671   echo "$as_me: failed program was:" >&5
42672 sed 's/^/| /' conftest.$ac_ext >&5
42673
42674   ac_header_preproc=no
42675 fi
42676
42677 rm -f conftest.err conftest.$ac_ext
42678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42679 echo "${ECHO_T}$ac_header_preproc" >&6; }
42680
42681 # So?  What about this header?
42682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42683   yes:no: )
42684     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42685 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42686     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42687 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42688     ac_header_preproc=yes
42689     ;;
42690   no:yes:* )
42691     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42692 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42693     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
42694 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
42695     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42696 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42697     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42698 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42699     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42700 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42701     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42702 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42703
42704     ;;
42705 esac
42706 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42707 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42708 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42709   echo $ECHO_N "(cached) $ECHO_C" >&6
42710 else
42711   ac_cv_header_sys_attr_h=$ac_header_preproc
42712 fi
42713 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42714 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42715
42716 fi
42717 if test $ac_cv_header_sys_attr_h = yes; then
42718
42719 cat >>confdefs.h <<\_ACEOF
42720 #define HAVE_SYS_ATTR_H 1
42721 _ACEOF
42722
42723 fi
42724
42725
42726       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42727   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42728 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42729 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42730   echo $ECHO_N "(cached) $ECHO_C" >&6
42731 fi
42732 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42733 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42734 else
42735   # Is the header compilable?
42736 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42737 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42738 cat >conftest.$ac_ext <<_ACEOF
42739 /* confdefs.h.  */
42740 _ACEOF
42741 cat confdefs.h >>conftest.$ac_ext
42742 cat >>conftest.$ac_ext <<_ACEOF
42743 /* end confdefs.h.  */
42744 $ac_includes_default
42745 #include <sys/nvpair.h>
42746 _ACEOF
42747 rm -f conftest.$ac_objext
42748 if { (ac_try="$ac_compile"
42749 case "(($ac_try" in
42750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42751   *) ac_try_echo=$ac_try;;
42752 esac
42753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42754   (eval "$ac_compile") 2>conftest.er1
42755   ac_status=$?
42756   grep -v '^ *+' conftest.er1 >conftest.err
42757   rm -f conftest.er1
42758   cat conftest.err >&5
42759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42760   (exit $ac_status); } && {
42761          test -z "$ac_c_werror_flag" ||
42762          test ! -s conftest.err
42763        } && test -s conftest.$ac_objext; then
42764   ac_header_compiler=yes
42765 else
42766   echo "$as_me: failed program was:" >&5
42767 sed 's/^/| /' conftest.$ac_ext >&5
42768
42769         ac_header_compiler=no
42770 fi
42771
42772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42774 echo "${ECHO_T}$ac_header_compiler" >&6; }
42775
42776 # Is the header present?
42777 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42778 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
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 #include <sys/nvpair.h>
42786 _ACEOF
42787 if { (ac_try="$ac_cpp conftest.$ac_ext"
42788 case "(($ac_try" in
42789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42790   *) ac_try_echo=$ac_try;;
42791 esac
42792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42794   ac_status=$?
42795   grep -v '^ *+' conftest.er1 >conftest.err
42796   rm -f conftest.er1
42797   cat conftest.err >&5
42798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42799   (exit $ac_status); } >/dev/null && {
42800          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42801          test ! -s conftest.err
42802        }; then
42803   ac_header_preproc=yes
42804 else
42805   echo "$as_me: failed program was:" >&5
42806 sed 's/^/| /' conftest.$ac_ext >&5
42807
42808   ac_header_preproc=no
42809 fi
42810
42811 rm -f conftest.err conftest.$ac_ext
42812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42813 echo "${ECHO_T}$ac_header_preproc" >&6; }
42814
42815 # So?  What about this header?
42816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42817   yes:no: )
42818     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42819 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42820     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42821 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42822     ac_header_preproc=yes
42823     ;;
42824   no:yes:* )
42825     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42826 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42827     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
42828 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
42829     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42830 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42831     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
42832 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42833     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42834 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42835     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42836 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42837
42838     ;;
42839 esac
42840 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42841 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42842 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42843   echo $ECHO_N "(cached) $ECHO_C" >&6
42844 else
42845   ac_cv_header_sys_nvpair_h=$ac_header_preproc
42846 fi
42847 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42848 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42849
42850 fi
42851 if test $ac_cv_header_sys_nvpair_h = yes; then
42852
42853 cat >>confdefs.h <<\_ACEOF
42854 #define HAVE_SYS_NVPAIR_H 1
42855 _ACEOF
42856
42857 fi
42858
42859
42860       if test "${ac_cv_header_attr_h+set}" = set; then
42861   { echo "$as_me:$LINENO: checking for attr.h" >&5
42862 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42863 if test "${ac_cv_header_attr_h+set}" = set; then
42864   echo $ECHO_N "(cached) $ECHO_C" >&6
42865 fi
42866 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42867 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42868 else
42869   # Is the header compilable?
42870 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42871 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42872 cat >conftest.$ac_ext <<_ACEOF
42873 /* confdefs.h.  */
42874 _ACEOF
42875 cat confdefs.h >>conftest.$ac_ext
42876 cat >>conftest.$ac_ext <<_ACEOF
42877 /* end confdefs.h.  */
42878 $ac_includes_default
42879 #include <attr.h>
42880 _ACEOF
42881 rm -f conftest.$ac_objext
42882 if { (ac_try="$ac_compile"
42883 case "(($ac_try" in
42884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42885   *) ac_try_echo=$ac_try;;
42886 esac
42887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42888   (eval "$ac_compile") 2>conftest.er1
42889   ac_status=$?
42890   grep -v '^ *+' conftest.er1 >conftest.err
42891   rm -f conftest.er1
42892   cat conftest.err >&5
42893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42894   (exit $ac_status); } && {
42895          test -z "$ac_c_werror_flag" ||
42896          test ! -s conftest.err
42897        } && test -s conftest.$ac_objext; then
42898   ac_header_compiler=yes
42899 else
42900   echo "$as_me: failed program was:" >&5
42901 sed 's/^/| /' conftest.$ac_ext >&5
42902
42903         ac_header_compiler=no
42904 fi
42905
42906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42908 echo "${ECHO_T}$ac_header_compiler" >&6; }
42909
42910 # Is the header present?
42911 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42912 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42913 cat >conftest.$ac_ext <<_ACEOF
42914 /* confdefs.h.  */
42915 _ACEOF
42916 cat confdefs.h >>conftest.$ac_ext
42917 cat >>conftest.$ac_ext <<_ACEOF
42918 /* end confdefs.h.  */
42919 #include <attr.h>
42920 _ACEOF
42921 if { (ac_try="$ac_cpp conftest.$ac_ext"
42922 case "(($ac_try" in
42923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42924   *) ac_try_echo=$ac_try;;
42925 esac
42926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42927   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42928   ac_status=$?
42929   grep -v '^ *+' conftest.er1 >conftest.err
42930   rm -f conftest.er1
42931   cat conftest.err >&5
42932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42933   (exit $ac_status); } >/dev/null && {
42934          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42935          test ! -s conftest.err
42936        }; then
42937   ac_header_preproc=yes
42938 else
42939   echo "$as_me: failed program was:" >&5
42940 sed 's/^/| /' conftest.$ac_ext >&5
42941
42942   ac_header_preproc=no
42943 fi
42944
42945 rm -f conftest.err conftest.$ac_ext
42946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42947 echo "${ECHO_T}$ac_header_preproc" >&6; }
42948
42949 # So?  What about this header?
42950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42951   yes:no: )
42952     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42953 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42954     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42955 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42956     ac_header_preproc=yes
42957     ;;
42958   no:yes:* )
42959     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42960 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42961     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
42962 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
42963     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42964 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42965     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42966 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42967     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42968 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42969     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42970 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42971
42972     ;;
42973 esac
42974 { echo "$as_me:$LINENO: checking for attr.h" >&5
42975 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42976 if test "${ac_cv_header_attr_h+set}" = set; then
42977   echo $ECHO_N "(cached) $ECHO_C" >&6
42978 else
42979   ac_cv_header_attr_h=$ac_header_preproc
42980 fi
42981 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42982 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42983
42984 fi
42985 if test $ac_cv_header_attr_h = yes; then
42986
42987 cat >>confdefs.h <<\_ACEOF
42988 #define HAVE_ATTR_H 1
42989 _ACEOF
42990
42991 fi
42992
42993
42994
42995
42996
42997
42998
42999
43000 for ac_func in openat fstatat unlinkat fchownat futimesat
43001 do
43002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43006   echo $ECHO_N "(cached) $ECHO_C" >&6
43007 else
43008   cat >conftest.$ac_ext <<_ACEOF
43009 /* confdefs.h.  */
43010 _ACEOF
43011 cat confdefs.h >>conftest.$ac_ext
43012 cat >>conftest.$ac_ext <<_ACEOF
43013 /* end confdefs.h.  */
43014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43016 #define $ac_func innocuous_$ac_func
43017
43018 /* System header to define __stub macros and hopefully few prototypes,
43019     which can conflict with char $ac_func (); below.
43020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43021     <limits.h> exists even on freestanding compilers.  */
43022
43023 #ifdef __STDC__
43024 # include <limits.h>
43025 #else
43026 # include <assert.h>
43027 #endif
43028
43029 #undef $ac_func
43030
43031 /* Override any GCC internal prototype to avoid an error.
43032    Use char because int might match the return type of a GCC
43033    builtin and then its argument prototype would still apply.  */
43034 #ifdef __cplusplus
43035 extern "C"
43036 #endif
43037 char $ac_func ();
43038 /* The GNU C library defines this for functions which it implements
43039     to always fail with ENOSYS.  Some functions are actually named
43040     something starting with __ and the normal name is an alias.  */
43041 #if defined __stub_$ac_func || defined __stub___$ac_func
43042 choke me
43043 #endif
43044
43045 int
43046 main ()
43047 {
43048 return $ac_func ();
43049   ;
43050   return 0;
43051 }
43052 _ACEOF
43053 rm -f conftest.$ac_objext conftest$ac_exeext
43054 if { (ac_try="$ac_link"
43055 case "(($ac_try" in
43056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43057   *) ac_try_echo=$ac_try;;
43058 esac
43059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43060   (eval "$ac_link") 2>conftest.er1
43061   ac_status=$?
43062   grep -v '^ *+' conftest.er1 >conftest.err
43063   rm -f conftest.er1
43064   cat conftest.err >&5
43065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43066   (exit $ac_status); } && {
43067          test -z "$ac_c_werror_flag" ||
43068          test ! -s conftest.err
43069        } && test -s conftest$ac_exeext &&
43070        $as_test_x conftest$ac_exeext; then
43071   eval "$as_ac_var=yes"
43072 else
43073   echo "$as_me: failed program was:" >&5
43074 sed 's/^/| /' conftest.$ac_ext >&5
43075
43076         eval "$as_ac_var=no"
43077 fi
43078
43079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43080       conftest$ac_exeext conftest.$ac_ext
43081 fi
43082 ac_res=`eval echo '${'$as_ac_var'}'`
43083                { echo "$as_me:$LINENO: result: $ac_res" >&5
43084 echo "${ECHO_T}$ac_res" >&6; }
43085 if test `eval echo '${'$as_ac_var'}'` = yes; then
43086   cat >>confdefs.h <<_ACEOF
43087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43088 _ACEOF
43089
43090              have_xattr=yes
43091
43092 cat >>confdefs.h <<\_ACEOF
43093 #define HAVE_OPENAT 1
43094 _ACEOF
43095
43096
43097 cat >>confdefs.h <<\_ACEOF
43098 #define HAVE_FSTATAT 1
43099 _ACEOF
43100
43101
43102 cat >>confdefs.h <<\_ACEOF
43103 #define HAVE_UNLINKAT 1
43104 _ACEOF
43105
43106
43107 cat >>confdefs.h <<\_ACEOF
43108 #define HAVE_FCHOWNAT 1
43109 _ACEOF
43110
43111
43112 cat >>confdefs.h <<\_ACEOF
43113 #define HAVE_FUTIMESAT 1
43114 _ACEOF
43115
43116
43117
43118 fi
43119 done
43120
43121
43122       if test $have_xattr = yes; then
43123          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43124 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43125 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43126   echo $ECHO_N "(cached) $ECHO_C" >&6
43127 else
43128   ac_check_lib_save_LIBS=$LIBS
43129 LIBS="-lnvpair  $LIBS"
43130 cat >conftest.$ac_ext <<_ACEOF
43131 /* confdefs.h.  */
43132 _ACEOF
43133 cat confdefs.h >>conftest.$ac_ext
43134 cat >>conftest.$ac_ext <<_ACEOF
43135 /* end confdefs.h.  */
43136
43137 /* Override any GCC internal prototype to avoid an error.
43138    Use char because int might match the return type of a GCC
43139    builtin and then its argument prototype would still apply.  */
43140 #ifdef __cplusplus
43141 extern "C"
43142 #endif
43143 char nvlist_next_nvpair ();
43144 int
43145 main ()
43146 {
43147 return nvlist_next_nvpair ();
43148   ;
43149   return 0;
43150 }
43151 _ACEOF
43152 rm -f conftest.$ac_objext conftest$ac_exeext
43153 if { (ac_try="$ac_link"
43154 case "(($ac_try" in
43155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43156   *) ac_try_echo=$ac_try;;
43157 esac
43158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43159   (eval "$ac_link") 2>conftest.er1
43160   ac_status=$?
43161   grep -v '^ *+' conftest.er1 >conftest.err
43162   rm -f conftest.er1
43163   cat conftest.err >&5
43164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43165   (exit $ac_status); } && {
43166          test -z "$ac_c_werror_flag" ||
43167          test ! -s conftest.err
43168        } && test -s conftest$ac_exeext &&
43169        $as_test_x conftest$ac_exeext; then
43170   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43171 else
43172   echo "$as_me: failed program was:" >&5
43173 sed 's/^/| /' conftest.$ac_ext >&5
43174
43175         ac_cv_lib_nvpair_nvlist_next_nvpair=no
43176 fi
43177
43178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43179       conftest$ac_exeext conftest.$ac_ext
43180 LIBS=$ac_check_lib_save_LIBS
43181 fi
43182 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43183 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43184 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43185
43186
43187 cat >>confdefs.h <<\_ACEOF
43188 #define HAVE_NVLIST_NEXT_NVPAIR 1
43189 _ACEOF
43190
43191                 FDLIBS="-lnvpair $FDLIBS"
43192
43193
43194 fi
43195
43196       fi
43197    fi
43198
43199    if test x$support_xattr = xyes -a $have_xattr != yes; then
43200       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43201   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43202 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43203   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43204    { (exit 1); exit 1; }; }
43205    else
43206       if test $have_xattr = yes; then
43207
43208 cat >>confdefs.h <<\_ACEOF
43209 #define HAVE_XATTR 1
43210 _ACEOF
43211
43212       fi
43213    fi
43214 fi
43215
43216 PTHREAD_LIB=""
43217 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43218 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43219 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43220   echo $ECHO_N "(cached) $ECHO_C" >&6
43221 else
43222   ac_check_lib_save_LIBS=$LIBS
43223 LIBS="-lpthread  $LIBS"
43224 cat >conftest.$ac_ext <<_ACEOF
43225 /* confdefs.h.  */
43226 _ACEOF
43227 cat confdefs.h >>conftest.$ac_ext
43228 cat >>conftest.$ac_ext <<_ACEOF
43229 /* end confdefs.h.  */
43230
43231 /* Override any GCC internal prototype to avoid an error.
43232    Use char because int might match the return type of a GCC
43233    builtin and then its argument prototype would still apply.  */
43234 #ifdef __cplusplus
43235 extern "C"
43236 #endif
43237 char pthread_create ();
43238 int
43239 main ()
43240 {
43241 return pthread_create ();
43242   ;
43243   return 0;
43244 }
43245 _ACEOF
43246 rm -f conftest.$ac_objext conftest$ac_exeext
43247 if { (ac_try="$ac_link"
43248 case "(($ac_try" in
43249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43250   *) ac_try_echo=$ac_try;;
43251 esac
43252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43253   (eval "$ac_link") 2>conftest.er1
43254   ac_status=$?
43255   grep -v '^ *+' conftest.er1 >conftest.err
43256   rm -f conftest.er1
43257   cat conftest.err >&5
43258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43259   (exit $ac_status); } && {
43260          test -z "$ac_c_werror_flag" ||
43261          test ! -s conftest.err
43262        } && test -s conftest$ac_exeext &&
43263        $as_test_x conftest$ac_exeext; then
43264   ac_cv_lib_pthread_pthread_create=yes
43265 else
43266   echo "$as_me: failed program was:" >&5
43267 sed 's/^/| /' conftest.$ac_ext >&5
43268
43269         ac_cv_lib_pthread_pthread_create=no
43270 fi
43271
43272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43273       conftest$ac_exeext conftest.$ac_ext
43274 LIBS=$ac_check_lib_save_LIBS
43275 fi
43276 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43277 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43278 if test $ac_cv_lib_pthread_pthread_create = yes; then
43279   PTHREAD_LIB="-lpthread"
43280 else
43281
43282        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43283 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43284 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43285   echo $ECHO_N "(cached) $ECHO_C" >&6
43286 else
43287   ac_check_lib_save_LIBS=$LIBS
43288 LIBS="-lpthreads  $LIBS"
43289 cat >conftest.$ac_ext <<_ACEOF
43290 /* confdefs.h.  */
43291 _ACEOF
43292 cat confdefs.h >>conftest.$ac_ext
43293 cat >>conftest.$ac_ext <<_ACEOF
43294 /* end confdefs.h.  */
43295
43296 /* Override any GCC internal prototype to avoid an error.
43297    Use char because int might match the return type of a GCC
43298    builtin and then its argument prototype would still apply.  */
43299 #ifdef __cplusplus
43300 extern "C"
43301 #endif
43302 char pthread_create ();
43303 int
43304 main ()
43305 {
43306 return pthread_create ();
43307   ;
43308   return 0;
43309 }
43310 _ACEOF
43311 rm -f conftest.$ac_objext conftest$ac_exeext
43312 if { (ac_try="$ac_link"
43313 case "(($ac_try" in
43314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43315   *) ac_try_echo=$ac_try;;
43316 esac
43317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43318   (eval "$ac_link") 2>conftest.er1
43319   ac_status=$?
43320   grep -v '^ *+' conftest.er1 >conftest.err
43321   rm -f conftest.er1
43322   cat conftest.err >&5
43323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43324   (exit $ac_status); } && {
43325          test -z "$ac_c_werror_flag" ||
43326          test ! -s conftest.err
43327        } && test -s conftest$ac_exeext &&
43328        $as_test_x conftest$ac_exeext; then
43329   ac_cv_lib_pthreads_pthread_create=yes
43330 else
43331   echo "$as_me: failed program was:" >&5
43332 sed 's/^/| /' conftest.$ac_ext >&5
43333
43334         ac_cv_lib_pthreads_pthread_create=no
43335 fi
43336
43337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43338       conftest$ac_exeext conftest.$ac_ext
43339 LIBS=$ac_check_lib_save_LIBS
43340 fi
43341 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43342 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43343 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43344   PTHREAD_LIB="-lpthreads"
43345 else
43346
43347               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43348 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43349 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43350   echo $ECHO_N "(cached) $ECHO_C" >&6
43351 else
43352   ac_check_lib_save_LIBS=$LIBS
43353 LIBS="-lc_r  $LIBS"
43354 cat >conftest.$ac_ext <<_ACEOF
43355 /* confdefs.h.  */
43356 _ACEOF
43357 cat confdefs.h >>conftest.$ac_ext
43358 cat >>conftest.$ac_ext <<_ACEOF
43359 /* end confdefs.h.  */
43360
43361 /* Override any GCC internal prototype to avoid an error.
43362    Use char because int might match the return type of a GCC
43363    builtin and then its argument prototype would still apply.  */
43364 #ifdef __cplusplus
43365 extern "C"
43366 #endif
43367 char pthread_create ();
43368 int
43369 main ()
43370 {
43371 return pthread_create ();
43372   ;
43373   return 0;
43374 }
43375 _ACEOF
43376 rm -f conftest.$ac_objext conftest$ac_exeext
43377 if { (ac_try="$ac_link"
43378 case "(($ac_try" in
43379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43380   *) ac_try_echo=$ac_try;;
43381 esac
43382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43383   (eval "$ac_link") 2>conftest.er1
43384   ac_status=$?
43385   grep -v '^ *+' conftest.er1 >conftest.err
43386   rm -f conftest.er1
43387   cat conftest.err >&5
43388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43389   (exit $ac_status); } && {
43390          test -z "$ac_c_werror_flag" ||
43391          test ! -s conftest.err
43392        } && test -s conftest$ac_exeext &&
43393        $as_test_x conftest$ac_exeext; then
43394   ac_cv_lib_c_r_pthread_create=yes
43395 else
43396   echo "$as_me: failed program was:" >&5
43397 sed 's/^/| /' conftest.$ac_ext >&5
43398
43399         ac_cv_lib_c_r_pthread_create=no
43400 fi
43401
43402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43403       conftest$ac_exeext conftest.$ac_ext
43404 LIBS=$ac_check_lib_save_LIBS
43405 fi
43406 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43407 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43408 if test $ac_cv_lib_c_r_pthread_create = yes; then
43409   PTHREAD_LIB="-lc_r"
43410 else
43411
43412                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
43413 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43414 if test "${ac_cv_func_pthread_create+set}" = set; then
43415   echo $ECHO_N "(cached) $ECHO_C" >&6
43416 else
43417   cat >conftest.$ac_ext <<_ACEOF
43418 /* confdefs.h.  */
43419 _ACEOF
43420 cat confdefs.h >>conftest.$ac_ext
43421 cat >>conftest.$ac_ext <<_ACEOF
43422 /* end confdefs.h.  */
43423 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43425 #define pthread_create innocuous_pthread_create
43426
43427 /* System header to define __stub macros and hopefully few prototypes,
43428     which can conflict with char pthread_create (); below.
43429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43430     <limits.h> exists even on freestanding compilers.  */
43431
43432 #ifdef __STDC__
43433 # include <limits.h>
43434 #else
43435 # include <assert.h>
43436 #endif
43437
43438 #undef pthread_create
43439
43440 /* Override any GCC internal prototype to avoid an error.
43441    Use char because int might match the return type of a GCC
43442    builtin and then its argument prototype would still apply.  */
43443 #ifdef __cplusplus
43444 extern "C"
43445 #endif
43446 char pthread_create ();
43447 /* The GNU C library defines this for functions which it implements
43448     to always fail with ENOSYS.  Some functions are actually named
43449     something starting with __ and the normal name is an alias.  */
43450 #if defined __stub_pthread_create || defined __stub___pthread_create
43451 choke me
43452 #endif
43453
43454 int
43455 main ()
43456 {
43457 return pthread_create ();
43458   ;
43459   return 0;
43460 }
43461 _ACEOF
43462 rm -f conftest.$ac_objext conftest$ac_exeext
43463 if { (ac_try="$ac_link"
43464 case "(($ac_try" in
43465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43466   *) ac_try_echo=$ac_try;;
43467 esac
43468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43469   (eval "$ac_link") 2>conftest.er1
43470   ac_status=$?
43471   grep -v '^ *+' conftest.er1 >conftest.err
43472   rm -f conftest.er1
43473   cat conftest.err >&5
43474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43475   (exit $ac_status); } && {
43476          test -z "$ac_c_werror_flag" ||
43477          test ! -s conftest.err
43478        } && test -s conftest$ac_exeext &&
43479        $as_test_x conftest$ac_exeext; then
43480   ac_cv_func_pthread_create=yes
43481 else
43482   echo "$as_me: failed program was:" >&5
43483 sed 's/^/| /' conftest.$ac_ext >&5
43484
43485         ac_cv_func_pthread_create=no
43486 fi
43487
43488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43489       conftest$ac_exeext conftest.$ac_ext
43490 fi
43491 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43492 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43493
43494
43495
43496 fi
43497
43498
43499
43500 fi
43501
43502
43503
43504 fi
43505
43506
43507
43508
43509 for ac_header in sys/prctl.h sys/capability.h
43510 do
43511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43513   { echo "$as_me:$LINENO: checking for $ac_header" >&5
43514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43516   echo $ECHO_N "(cached) $ECHO_C" >&6
43517 fi
43518 ac_res=`eval echo '${'$as_ac_Header'}'`
43519                { echo "$as_me:$LINENO: result: $ac_res" >&5
43520 echo "${ECHO_T}$ac_res" >&6; }
43521 else
43522   # Is the header compilable?
43523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43525 cat >conftest.$ac_ext <<_ACEOF
43526 /* confdefs.h.  */
43527 _ACEOF
43528 cat confdefs.h >>conftest.$ac_ext
43529 cat >>conftest.$ac_ext <<_ACEOF
43530 /* end confdefs.h.  */
43531 $ac_includes_default
43532 #include <$ac_header>
43533 _ACEOF
43534 rm -f conftest.$ac_objext
43535 if { (ac_try="$ac_compile"
43536 case "(($ac_try" in
43537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43538   *) ac_try_echo=$ac_try;;
43539 esac
43540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43541   (eval "$ac_compile") 2>conftest.er1
43542   ac_status=$?
43543   grep -v '^ *+' conftest.er1 >conftest.err
43544   rm -f conftest.er1
43545   cat conftest.err >&5
43546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43547   (exit $ac_status); } && {
43548          test -z "$ac_c_werror_flag" ||
43549          test ! -s conftest.err
43550        } && test -s conftest.$ac_objext; then
43551   ac_header_compiler=yes
43552 else
43553   echo "$as_me: failed program was:" >&5
43554 sed 's/^/| /' conftest.$ac_ext >&5
43555
43556         ac_header_compiler=no
43557 fi
43558
43559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43561 echo "${ECHO_T}$ac_header_compiler" >&6; }
43562
43563 # Is the header present?
43564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43566 cat >conftest.$ac_ext <<_ACEOF
43567 /* confdefs.h.  */
43568 _ACEOF
43569 cat confdefs.h >>conftest.$ac_ext
43570 cat >>conftest.$ac_ext <<_ACEOF
43571 /* end confdefs.h.  */
43572 #include <$ac_header>
43573 _ACEOF
43574 if { (ac_try="$ac_cpp conftest.$ac_ext"
43575 case "(($ac_try" in
43576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43577   *) ac_try_echo=$ac_try;;
43578 esac
43579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43580   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43581   ac_status=$?
43582   grep -v '^ *+' conftest.er1 >conftest.err
43583   rm -f conftest.er1
43584   cat conftest.err >&5
43585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43586   (exit $ac_status); } >/dev/null && {
43587          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43588          test ! -s conftest.err
43589        }; then
43590   ac_header_preproc=yes
43591 else
43592   echo "$as_me: failed program was:" >&5
43593 sed 's/^/| /' conftest.$ac_ext >&5
43594
43595   ac_header_preproc=no
43596 fi
43597
43598 rm -f conftest.err conftest.$ac_ext
43599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43600 echo "${ECHO_T}$ac_header_preproc" >&6; }
43601
43602 # So?  What about this header?
43603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43604   yes:no: )
43605     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43609     ac_header_preproc=yes
43610     ;;
43611   no:yes:* )
43612     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43614     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43615 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43616     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43618     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43619 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43622     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43624
43625     ;;
43626 esac
43627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43630   echo $ECHO_N "(cached) $ECHO_C" >&6
43631 else
43632   eval "$as_ac_Header=\$ac_header_preproc"
43633 fi
43634 ac_res=`eval echo '${'$as_ac_Header'}'`
43635                { echo "$as_me:$LINENO: result: $ac_res" >&5
43636 echo "${ECHO_T}$ac_res" >&6; }
43637
43638 fi
43639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43640   cat >>confdefs.h <<_ACEOF
43641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43642 _ACEOF
43643
43644 fi
43645
43646 done
43647
43648
43649
43650 for ac_func in prctl setreuid
43651 do
43652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43656   echo $ECHO_N "(cached) $ECHO_C" >&6
43657 else
43658   cat >conftest.$ac_ext <<_ACEOF
43659 /* confdefs.h.  */
43660 _ACEOF
43661 cat confdefs.h >>conftest.$ac_ext
43662 cat >>conftest.$ac_ext <<_ACEOF
43663 /* end confdefs.h.  */
43664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43666 #define $ac_func innocuous_$ac_func
43667
43668 /* System header to define __stub macros and hopefully few prototypes,
43669     which can conflict with char $ac_func (); below.
43670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43671     <limits.h> exists even on freestanding compilers.  */
43672
43673 #ifdef __STDC__
43674 # include <limits.h>
43675 #else
43676 # include <assert.h>
43677 #endif
43678
43679 #undef $ac_func
43680
43681 /* Override any GCC internal prototype to avoid an error.
43682    Use char because int might match the return type of a GCC
43683    builtin and then its argument prototype would still apply.  */
43684 #ifdef __cplusplus
43685 extern "C"
43686 #endif
43687 char $ac_func ();
43688 /* The GNU C library defines this for functions which it implements
43689     to always fail with ENOSYS.  Some functions are actually named
43690     something starting with __ and the normal name is an alias.  */
43691 #if defined __stub_$ac_func || defined __stub___$ac_func
43692 choke me
43693 #endif
43694
43695 int
43696 main ()
43697 {
43698 return $ac_func ();
43699   ;
43700   return 0;
43701 }
43702 _ACEOF
43703 rm -f conftest.$ac_objext conftest$ac_exeext
43704 if { (ac_try="$ac_link"
43705 case "(($ac_try" in
43706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43707   *) ac_try_echo=$ac_try;;
43708 esac
43709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43710   (eval "$ac_link") 2>conftest.er1
43711   ac_status=$?
43712   grep -v '^ *+' conftest.er1 >conftest.err
43713   rm -f conftest.er1
43714   cat conftest.err >&5
43715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43716   (exit $ac_status); } && {
43717          test -z "$ac_c_werror_flag" ||
43718          test ! -s conftest.err
43719        } && test -s conftest$ac_exeext &&
43720        $as_test_x conftest$ac_exeext; then
43721   eval "$as_ac_var=yes"
43722 else
43723   echo "$as_me: failed program was:" >&5
43724 sed 's/^/| /' conftest.$ac_ext >&5
43725
43726         eval "$as_ac_var=no"
43727 fi
43728
43729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43730       conftest$ac_exeext conftest.$ac_ext
43731 fi
43732 ac_res=`eval echo '${'$as_ac_var'}'`
43733                { echo "$as_me:$LINENO: result: $ac_res" >&5
43734 echo "${ECHO_T}$ac_res" >&6; }
43735 if test `eval echo '${'$as_ac_var'}'` = yes; then
43736   cat >>confdefs.h <<_ACEOF
43737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43738 _ACEOF
43739
43740 fi
43741 done
43742
43743 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43744 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43745 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43746   echo $ECHO_N "(cached) $ECHO_C" >&6
43747 else
43748   ac_check_lib_save_LIBS=$LIBS
43749 LIBS="-lcap  $LIBS"
43750 cat >conftest.$ac_ext <<_ACEOF
43751 /* confdefs.h.  */
43752 _ACEOF
43753 cat confdefs.h >>conftest.$ac_ext
43754 cat >>conftest.$ac_ext <<_ACEOF
43755 /* end confdefs.h.  */
43756
43757 /* Override any GCC internal prototype to avoid an error.
43758    Use char because int might match the return type of a GCC
43759    builtin and then its argument prototype would still apply.  */
43760 #ifdef __cplusplus
43761 extern "C"
43762 #endif
43763 char cap_set_proc ();
43764 int
43765 main ()
43766 {
43767 return cap_set_proc ();
43768   ;
43769   return 0;
43770 }
43771 _ACEOF
43772 rm -f conftest.$ac_objext conftest$ac_exeext
43773 if { (ac_try="$ac_link"
43774 case "(($ac_try" in
43775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43776   *) ac_try_echo=$ac_try;;
43777 esac
43778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43779   (eval "$ac_link") 2>conftest.er1
43780   ac_status=$?
43781   grep -v '^ *+' conftest.er1 >conftest.err
43782   rm -f conftest.er1
43783   cat conftest.err >&5
43784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43785   (exit $ac_status); } && {
43786          test -z "$ac_c_werror_flag" ||
43787          test ! -s conftest.err
43788        } && test -s conftest$ac_exeext &&
43789        $as_test_x conftest$ac_exeext; then
43790   ac_cv_lib_cap_cap_set_proc=yes
43791 else
43792   echo "$as_me: failed program was:" >&5
43793 sed 's/^/| /' conftest.$ac_ext >&5
43794
43795         ac_cv_lib_cap_cap_set_proc=no
43796 fi
43797
43798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43799       conftest$ac_exeext conftest.$ac_ext
43800 LIBS=$ac_check_lib_save_LIBS
43801 fi
43802 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43803 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43804 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43805   CAP_LIBS="-lcap"
43806 else
43807   CAP_LIBS=
43808 fi
43809
43810 if test x$CAP_LIBS = x-lcap; then
43811
43812 cat >>confdefs.h <<\_ACEOF
43813 #define HAVE_LIBCAP 1
43814 _ACEOF
43815
43816 fi
43817
43818
43819
43820 cat >>confdefs.h <<\_ACEOF
43821 #define FDLIBS 1
43822 _ACEOF
43823
43824
43825 CFLAGS=${CFLAGS--O}
43826
43827 if test x$have_gcc = xyes ; then
43828    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43829    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43830 fi
43831 LDFLAGS=${LDFLAGS--O}
43832 DB_LIBS="${SQL_LFLAGS}"
43833 CPPFLAGS="$CPPFLAGS"
43834 CFLAGS="$CFLAGS"
43835
43836
43837
43838
43839
43840
43841
43842
43843
43844
43845
43846
43847
43848
43849
43850
43851 OBJLIST=
43852
43853
43854 lld="lld"
43855 llu="llu"
43856
43857 WCFLAGS=
43858 WLDFLAGS=
43859
43860 PFILES="platforms/Makefile"
43861 PSCMD="ps -e"
43862 WIN32=
43863 MACOSX=
43864
43865 hostname=`uname -n | cut -d '.' -f 1`
43866 if test x${hostname} = x ; then
43867    hostname="localhost"
43868 fi
43869 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43870 if test ! $? = 0; then
43871   hostname="localhost"
43872 fi
43873
43874 case "$DISTNAME" in
43875 aix)
43876    DISTVER=`uname -r`
43877    PSCMD="ps -e -o pid,comm"
43878    PFILES="${PFILES} \
43879       platforms/aix/Makefile"
43880    TAPEDRIVE="/dev/rmt0.1"
43881   ;;
43882 alpha)
43883    DISTVER=`uname -r`
43884    PTHREAD_LIB="-lpthread -lexc"
43885    if test "${CC}" = "gcc" ; then
43886       lld="lld"
43887       llu="llu"
43888    else
43889       lld="ld"
43890       llu="lu"
43891    fi
43892    TAPEDRIVE="/dev/nrmt0"
43893   ;;
43894 bsdi)
43895    DISTVER=`uname -a |awk '{print $3}'`
43896    TAPEDRIVE="/dev/nrmt0"
43897    PTHREAD_LIB="-pthread"
43898    CFLAGS="${CFLAGS} -pthread"
43899    PSCMD="ps -ax -o pid,command"
43900    lld="qd"
43901    llu="qu"
43902    PFILES="${PFILES} \
43903        platforms/bsdi/Makefile \
43904        platforms/bsdi/bacula-fd \
43905        platforms/bsdi/bacula-sd \
43906        platforms/bsdi/bacula-dir"
43907    largefile_support="yes"
43908   ;;
43909 cygwin)
43910    DISTVER=`uname -a |awk '{print $3}'`
43911    TAPEDRIVE="/dev/nrst0"
43912    WIN32=win32
43913    WCFLAGS="-mwindows"
43914    WLDFLAGS="-mwindows"
43915   ;;
43916 darwin)
43917    DISTVER=`uname -r`
43918    TAPEDRIVE="/dev/nst0"
43919    PSCMD="ps -e -o pid,command"
43920    MACOSX=macosx
43921    PFILES="${PFILES} \
43922       platforms/darwin/Makefile"
43923   ;;
43924 osx)
43925    DISTVER=`uname -r`
43926    TAPEDRIVE="/dev/nst0"
43927    PSCMD="ps -e -o pid,command"
43928    MACOSX=macosx
43929    PFILES="${PFILES} \
43930       platforms/osx/Makefile"
43931   ;;
43932 debian)
43933    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43934       DISTNAME="ubuntu"
43935    fi
43936    DISTVER=`cat /etc/debian_version`
43937    if test -f /etc/lsb-release ; then
43938       . /etc/lsb-release
43939       if test "x$DISTRIB_ID" != "x" ; then
43940          DISTNAME=$DISTRIB_ID
43941       fi
43942       if test "x$DISTRIB_RELEASE" != "x" ; then
43943          DISTVER=$DISTRIB_RELEASE
43944       fi
43945    fi
43946    if test "$DISTNAME" = "Ubuntu" ; then
43947       DISTNAME="ubuntu"
43948    fi
43949    TAPEDRIVE="/dev/nst0"
43950    PSCMD="ps -e -o pid,command"
43951    if test "$DISTNAME" = "ubuntu" ; then
43952       PFILES="${PFILES} \
43953          platforms/ubuntu/Makefile \
43954          platforms/ubuntu/bacula-fd \
43955          platforms/ubuntu/bacula-sd \
43956          platforms/ubuntu/bacula-dir"
43957    else
43958       PFILES="${PFILES} \
43959          platforms/debian/Makefile \
43960          platforms/debian/bacula-fd \
43961          platforms/debian/bacula-sd \
43962          platforms/debian/bacula-dir"
43963    fi
43964   ;;
43965 freebsd)
43966    DISTVER=`uname -a |awk '{print $3}'`
43967    VER=`echo $DISTVER | cut -c 1`
43968    if test x$VER = x4 ; then
43969       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43970       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43971    fi
43972    lld="qd"
43973    llu="qu"
43974    TAPEDRIVE="/dev/nrsa0"
43975    PSCMD="ps -ax -o pid,command"
43976    PFILES="${PFILES} \
43977        platforms/freebsd/Makefile \
43978        platforms/freebsd/bacula-fd \
43979        platforms/freebsd/bacula-sd \
43980        platforms/freebsd/bacula-dir"
43981    largefile_support="yes"
43982   ;;
43983 hpux)
43984    PSCMD="UNIX95=1; ps -e -o pid,comm"
43985    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43986    DISTVER=`uname -r`
43987    TAPEDRIVE="/dev/rmt/0hnb"
43988    PTHREAD_LIB="-lpthread"
43989    cat >>confdefs.h <<\_ACEOF
43990 #define _INCLUDE_LONGLONG 1
43991 _ACEOF
43992
43993   ;;
43994 irix)
43995    DISTVER=`uname -r`
43996    TAPEDRIVE="/dev/rmt/0cbn"
43997    PSCMD="ps -e -o pid,comm"
43998    PFILES="${PFILES} \
43999        platforms/irix/Makefile \
44000        platforms/irix/bacula-fd \
44001        platforms/irix/bacula-sd \
44002        platforms/irix/bacula-dir"
44003   ;;
44004 netbsd)
44005    DISTVER=`uname -a |awk '{print $3}'`
44006    lld="qd"
44007    llu="qu"
44008    TAPEDRIVE="/dev/nrst0"
44009    PSCMD="ps -ax -o pid,command"
44010    PTHREAD_LIB="-pthread"
44011    CFLAGS="${CFLAGS} -pthread"
44012   ;;
44013 openbsd)
44014    DISTVER=`uname -a |awk '{print $3}'`
44015    lld="qd"
44016    llu="qu"
44017    TAPEDRIVE="/dev/nrst0"
44018    PSCMD="ps -ax -o pid,command"
44019    PTHREAD_LIB="-pthread"
44020    CFLAGS="${CFLAGS} -pthread"
44021    PFILES="${PFILES} \
44022        platforms/openbsd/Makefile \
44023        platforms/openbsd/bacula-fd \
44024        platforms/openbsd/bacula-sd \
44025        platforms/openbsd/bacula-dir"
44026   ;;
44027 redhat)
44028    if test -f /etc/whitebox-release ; then
44029       f=/etc/whitebox-release
44030    else
44031       f=/etc/redhat-release
44032    fi
44033    if test `cat $f | grep release |\
44034          cut -f 3 -d ' '`x = "Enterprise"x ; then
44035       DISTVER="Enterprise "`cat $f | grep release |\
44036           cut -f 6 -d ' '`
44037    else
44038        DISTVER=`cat /etc/redhat-release | grep release |\
44039            cut -f 5 -d ' '`
44040    fi
44041    TAPEDRIVE="/dev/nst0"
44042    PSCMD="ps -e -o pid,command"
44043    PFILES="${PFILES} \
44044        platforms/redhat/Makefile \
44045        platforms/redhat/bacula-fd \
44046        platforms/redhat/bacula-sd \
44047        platforms/redhat/bacula-dir
44048        "
44049   ;;
44050 mandrake)
44051    DISTVER=`cat /etc/mandrake-release | grep release |\
44052       cut -f 5 -d ' '`
44053    TAPEDRIVE="/dev/nst0"
44054    PSCMD="ps -e -o pid,command"
44055    PFILES="${PFILES} \
44056        platforms/mandrake/Makefile \
44057        platforms/mandrake/bacula-fd \
44058        platforms/mandrake/bacula-sd \
44059        platforms/mandrake/bacula-dir \
44060        "
44061   ;;
44062 gentoo)
44063    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
44064    TAPEDRIVE="/dev/nst0"
44065    PSCMD="ps -e -o pid,command"
44066    PFILES="${PFILES} \
44067        platforms/gentoo/Makefile \
44068     platforms/gentoo/bacula-init \
44069        platforms/gentoo/bacula-fd \
44070        platforms/gentoo/bacula-sd \
44071        platforms/gentoo/bacula-dir"
44072   ;;
44073 slackware)
44074    DISTVER=`cat /etc/slackware-version`
44075    TAPEDRIVE="/dev/nst0"
44076    PSCMD="ps -e -o pid,command"
44077    PFILES="${PFILES} \
44078        platforms/slackware/Makefile \
44079        platforms/slackware/rc.bacula-fd \
44080        platforms/slackware/rc.bacula-sd \
44081        platforms/slackware/rc.bacula-dir\
44082        platforms/slackware/functions.bacula"
44083   ;;
44084 solaris)
44085    DISTVER=`uname -r`
44086    TAPEDRIVE="/dev/rmt/0cbn"
44087    PSCMD="ps -e -o pid,comm"
44088    PFILES="${PFILES} \
44089        platforms/solaris/Makefile \
44090        platforms/solaris/bacula-fd \
44091        platforms/solaris/bacula-sd \
44092        platforms/solaris/bacula-dir"
44093    if test x$DISTVER = x5.6 ; then
44094        cat >>confdefs.h <<\_ACEOF
44095 #define HAVE_OLD_SOCKOPT 1
44096 _ACEOF
44097
44098    fi
44099    LIBS="$LIBS -lresolv"
44100   ;;
44101 suse)
44102    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44103        cut -f 3 -d ' '`
44104    TAPEDRIVE="/dev/nst0"
44105    PSCMD="ps -e -o pid,command"
44106    PFILES="${PFILES} \
44107        platforms/suse/Makefile \
44108        platforms/suse/bacula-fd \
44109        platforms/suse/bacula-sd \
44110        platforms/suse/bacula-dir \
44111        platforms/suse/bacula"
44112   ;;
44113 suse5)
44114    DISTNAME=suse
44115    DISTVER=5.x
44116    TAPEDRIVE="/dev/nst0"
44117    PSCMD="ps -e -o pid,command"
44118    PFILES="${PFILES} \
44119        platforms/suse/Makefile \
44120        platforms/suse/bacula-fd \
44121        platforms/suse/bacula-sd \
44122        platforms/suse/bacula-dir"
44123   ;;
44124 unknown)
44125    DISTVER=unknown
44126    TAPEDRIVE="/dev/nst0"
44127   ;;
44128 *)
44129   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44130   ;;
44131 esac
44132
44133
44134
44135 LIBS="$PTHREAD_LIB $LIBS"
44136
44137 cat >>confdefs.h <<_ACEOF
44138 #define lld "$lld"
44139 _ACEOF
44140
44141 cat >>confdefs.h <<_ACEOF
44142 #define llu "$llu"
44143 _ACEOF
44144
44145
44146
44147
44148
44149
44150
44151
44152 MCOMMON=./autoconf/Make.common
44153
44154
44155 if test "x${subsysdir}" = "x${sbindir}" ; then
44156    echo " "
44157    echo " "
44158    echo "You have set both --sbindir and --with-subsys-dir"
44159    echo "  equal to: ${subsysdir} "
44160    echo "This is not permitted. Please reconfigure."
44161    echo " "
44162    echo "Aborting configuration ..."
44163    echo " "
44164    echo " "
44165    exit 1
44166 fi
44167
44168 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
44169
44170 ac_config_commands="$ac_config_commands default"
44171
44172 cat >confcache <<\_ACEOF
44173 # This file is a shell script that caches the results of configure
44174 # tests run on this system so they can be shared between configure
44175 # scripts and configure runs, see configure's option --config-cache.
44176 # It is not useful on other systems.  If it contains results you don't
44177 # want to keep, you may remove or edit it.
44178 #
44179 # config.status only pays attention to the cache file if you give it
44180 # the --recheck option to rerun configure.
44181 #
44182 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44183 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44184 # following values.
44185
44186 _ACEOF
44187
44188 # The following way of writing the cache mishandles newlines in values,
44189 # but we know of no workaround that is simple, portable, and efficient.
44190 # So, we kill variables containing newlines.
44191 # Ultrix sh set writes to stderr and can't be redirected directly,
44192 # and sets the high bit in the cache file unless we assign to the vars.
44193 (
44194   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44195     eval ac_val=\$$ac_var
44196     case $ac_val in #(
44197     *${as_nl}*)
44198       case $ac_var in #(
44199       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44200 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44201       esac
44202       case $ac_var in #(
44203       _ | IFS | as_nl) ;; #(
44204       *) $as_unset $ac_var ;;
44205       esac ;;
44206     esac
44207   done
44208
44209   (set) 2>&1 |
44210     case $as_nl`(ac_space=' '; set) 2>&1` in #(
44211     *${as_nl}ac_space=\ *)
44212       # `set' does not quote correctly, so add quotes (double-quote
44213       # substitution turns \\\\ into \\, and sed turns \\ into \).
44214       sed -n \
44215         "s/'/'\\\\''/g;
44216           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44217       ;; #(
44218     *)
44219       # `set' quotes correctly as required by POSIX, so do not add quotes.
44220       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44221       ;;
44222     esac |
44223     sort
44224 ) |
44225   sed '
44226      /^ac_cv_env_/b end
44227      t clear
44228      :clear
44229      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44230      t end
44231      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44232      :end' >>confcache
44233 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44234   if test -w "$cache_file"; then
44235     test "x$cache_file" != "x/dev/null" &&
44236       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44237 echo "$as_me: updating cache $cache_file" >&6;}
44238     cat confcache >$cache_file
44239   else
44240     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44241 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44242   fi
44243 fi
44244 rm -f confcache
44245
44246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44247 # Let make expand exec_prefix.
44248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44249
44250 DEFS=-DHAVE_CONFIG_H
44251
44252 ac_libobjs=
44253 ac_ltlibobjs=
44254 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44255   # 1. Remove the extension, and $U if already installed.
44256   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44257   ac_i=`echo "$ac_i" | sed "$ac_script"`
44258   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
44259   #    will be set to the directory where LIBOBJS objects are built.
44260   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44261   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44262 done
44263 LIBOBJS=$ac_libobjs
44264
44265 LTLIBOBJS=$ac_ltlibobjs
44266
44267
44268
44269 : ${CONFIG_STATUS=./config.status}
44270 ac_clean_files_save=$ac_clean_files
44271 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44272 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44273 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44274 cat >$CONFIG_STATUS <<_ACEOF
44275 #! $SHELL
44276 # Generated by $as_me.
44277 # Run this file to recreate the current configuration.
44278 # Compiler output produced by configure, useful for debugging
44279 # configure, is in config.log if it exists.
44280
44281 debug=false
44282 ac_cs_recheck=false
44283 ac_cs_silent=false
44284 SHELL=\${CONFIG_SHELL-$SHELL}
44285 _ACEOF
44286
44287 cat >>$CONFIG_STATUS <<\_ACEOF
44288 ## --------------------- ##
44289 ## M4sh Initialization.  ##
44290 ## --------------------- ##
44291
44292 # Be more Bourne compatible
44293 DUALCASE=1; export DUALCASE # for MKS sh
44294 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44295   emulate sh
44296   NULLCMD=:
44297   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44298   # is contrary to our usage.  Disable this feature.
44299   alias -g '${1+"$@"}'='"$@"'
44300   setopt NO_GLOB_SUBST
44301 else
44302   case `(set -o) 2>/dev/null` in
44303   *posix*) set -o posix ;;
44304 esac
44305
44306 fi
44307
44308
44309
44310
44311 # PATH needs CR
44312 # Avoid depending upon Character Ranges.
44313 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44314 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44315 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44316 as_cr_digits='0123456789'
44317 as_cr_alnum=$as_cr_Letters$as_cr_digits
44318
44319 # The user is always right.
44320 if test "${PATH_SEPARATOR+set}" != set; then
44321   echo "#! /bin/sh" >conf$$.sh
44322   echo  "exit 0"   >>conf$$.sh
44323   chmod +x conf$$.sh
44324   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44325     PATH_SEPARATOR=';'
44326   else
44327     PATH_SEPARATOR=:
44328   fi
44329   rm -f conf$$.sh
44330 fi
44331
44332 # Support unset when possible.
44333 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44334   as_unset=unset
44335 else
44336   as_unset=false
44337 fi
44338
44339
44340 # IFS
44341 # We need space, tab and new line, in precisely that order.  Quoting is
44342 # there to prevent editors from complaining about space-tab.
44343 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44344 # splitting by setting IFS to empty value.)
44345 as_nl='
44346 '
44347 IFS=" ""        $as_nl"
44348
44349 # Find who we are.  Look in the path if we contain no directory separator.
44350 case $0 in
44351   *[\\/]* ) as_myself=$0 ;;
44352   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44353 for as_dir in $PATH
44354 do
44355   IFS=$as_save_IFS
44356   test -z "$as_dir" && as_dir=.
44357   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44358 done
44359 IFS=$as_save_IFS
44360
44361      ;;
44362 esac
44363 # We did not find ourselves, most probably we were run as `sh COMMAND'
44364 # in which case we are not to be found in the path.
44365 if test "x$as_myself" = x; then
44366   as_myself=$0
44367 fi
44368 if test ! -f "$as_myself"; then
44369   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44370   { (exit 1); exit 1; }
44371 fi
44372
44373 # Work around bugs in pre-3.0 UWIN ksh.
44374 for as_var in ENV MAIL MAILPATH
44375 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44376 done
44377 PS1='$ '
44378 PS2='> '
44379 PS4='+ '
44380
44381 # NLS nuisances.
44382 for as_var in \
44383   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44384   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44385   LC_TELEPHONE LC_TIME
44386 do
44387   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44388     eval $as_var=C; export $as_var
44389   else
44390     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44391   fi
44392 done
44393
44394 # Required to use basename.
44395 if expr a : '\(a\)' >/dev/null 2>&1 &&
44396    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44397   as_expr=expr
44398 else
44399   as_expr=false
44400 fi
44401
44402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44403   as_basename=basename
44404 else
44405   as_basename=false
44406 fi
44407
44408
44409 # Name of the executable.
44410 as_me=`$as_basename -- "$0" ||
44411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44412          X"$0" : 'X\(//\)$' \| \
44413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44414 echo X/"$0" |
44415     sed '/^.*\/\([^/][^/]*\)\/*$/{
44416             s//\1/
44417             q
44418           }
44419           /^X\/\(\/\/\)$/{
44420             s//\1/
44421             q
44422           }
44423           /^X\/\(\/\).*/{
44424             s//\1/
44425             q
44426           }
44427           s/.*/./; q'`
44428
44429 # CDPATH.
44430 $as_unset CDPATH
44431
44432
44433
44434   as_lineno_1=$LINENO
44435   as_lineno_2=$LINENO
44436   test "x$as_lineno_1" != "x$as_lineno_2" &&
44437   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44438
44439   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44440   # uniformly replaced by the line number.  The first 'sed' inserts a
44441   # line-number line after each line using $LINENO; the second 'sed'
44442   # does the real work.  The second script uses 'N' to pair each
44443   # line-number line with the line containing $LINENO, and appends
44444   # trailing '-' during substitution so that $LINENO is not a special
44445   # case at line end.
44446   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44447   # scripts with optimization help from Paolo Bonzini.  Blame Lee
44448   # E. McMahon (1931-1989) for sed's syntax.  :-)
44449   sed -n '
44450     p
44451     /[$]LINENO/=
44452   ' <$as_myself |
44453     sed '
44454       s/[$]LINENO.*/&-/
44455       t lineno
44456       b
44457       :lineno
44458       N
44459       :loop
44460       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44461       t loop
44462       s/-\n.*//
44463     ' >$as_me.lineno &&
44464   chmod +x "$as_me.lineno" ||
44465     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44466    { (exit 1); exit 1; }; }
44467
44468   # Don't try to exec as it changes $[0], causing all sort of problems
44469   # (the dirname of $[0] is not the place where we might find the
44470   # original and so on.  Autoconf is especially sensitive to this).
44471   . "./$as_me.lineno"
44472   # Exit status is that of the last command.
44473   exit
44474 }
44475
44476
44477 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44478   as_dirname=dirname
44479 else
44480   as_dirname=false
44481 fi
44482
44483 ECHO_C= ECHO_N= ECHO_T=
44484 case `echo -n x` in
44485 -n*)
44486   case `echo 'x\c'` in
44487   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
44488   *)   ECHO_C='\c';;
44489   esac;;
44490 *)
44491   ECHO_N='-n';;
44492 esac
44493
44494 if expr a : '\(a\)' >/dev/null 2>&1 &&
44495    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44496   as_expr=expr
44497 else
44498   as_expr=false
44499 fi
44500
44501 rm -f conf$$ conf$$.exe conf$$.file
44502 if test -d conf$$.dir; then
44503   rm -f conf$$.dir/conf$$.file
44504 else
44505   rm -f conf$$.dir
44506   mkdir conf$$.dir
44507 fi
44508 echo >conf$$.file
44509 if ln -s conf$$.file conf$$ 2>/dev/null; then
44510   as_ln_s='ln -s'
44511   # ... but there are two gotchas:
44512   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44513   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44514   # In both cases, we have to default to `cp -p'.
44515   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44516     as_ln_s='cp -p'
44517 elif ln conf$$.file conf$$ 2>/dev/null; then
44518   as_ln_s=ln
44519 else
44520   as_ln_s='cp -p'
44521 fi
44522 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44523 rmdir conf$$.dir 2>/dev/null
44524
44525 if mkdir -p . 2>/dev/null; then
44526   as_mkdir_p=:
44527 else
44528   test -d ./-p && rmdir ./-p
44529   as_mkdir_p=false
44530 fi
44531
44532 if test -x / >/dev/null 2>&1; then
44533   as_test_x='test -x'
44534 else
44535   if ls -dL / >/dev/null 2>&1; then
44536     as_ls_L_option=L
44537   else
44538     as_ls_L_option=
44539   fi
44540   as_test_x='
44541     eval sh -c '\''
44542       if test -d "$1"; then
44543         test -d "$1/.";
44544       else
44545         case $1 in
44546         -*)set "./$1";;
44547         esac;
44548         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44549         ???[sx]*):;;*)false;;esac;fi
44550     '\'' sh
44551   '
44552 fi
44553 as_executable_p=$as_test_x
44554
44555 # Sed expression to map a string onto a valid CPP name.
44556 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44557
44558 # Sed expression to map a string onto a valid variable name.
44559 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44560
44561
44562 exec 6>&1
44563
44564 # Save the log message, to keep $[0] and so on meaningful, and to
44565 # report actual input values of CONFIG_FILES etc. instead of their
44566 # values after options handling.
44567 ac_log="
44568 This file was extended by $as_me, which was
44569 generated by GNU Autoconf 2.61.  Invocation command line was
44570
44571   CONFIG_FILES    = $CONFIG_FILES
44572   CONFIG_HEADERS  = $CONFIG_HEADERS
44573   CONFIG_LINKS    = $CONFIG_LINKS
44574   CONFIG_COMMANDS = $CONFIG_COMMANDS
44575   $ $0 $@
44576
44577 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44578 "
44579
44580 _ACEOF
44581
44582 cat >>$CONFIG_STATUS <<_ACEOF
44583 # Files that config.status was made for.
44584 config_files="$ac_config_files"
44585 config_headers="$ac_config_headers"
44586 config_commands="$ac_config_commands"
44587
44588 _ACEOF
44589
44590 cat >>$CONFIG_STATUS <<\_ACEOF
44591 ac_cs_usage="\
44592 \`$as_me' instantiates files from templates according to the
44593 current configuration.
44594
44595 Usage: $0 [OPTIONS] [FILE]...
44596
44597   -h, --help       print this help, then exit
44598   -V, --version    print version number and configuration settings, then exit
44599   -q, --quiet      do not print progress messages
44600   -d, --debug      don't remove temporary files
44601       --recheck    update $as_me by reconfiguring in the same conditions
44602   --file=FILE[:TEMPLATE]
44603                    instantiate the configuration file FILE
44604   --header=FILE[:TEMPLATE]
44605                    instantiate the configuration header FILE
44606
44607 Configuration files:
44608 $config_files
44609
44610 Configuration headers:
44611 $config_headers
44612
44613 Configuration commands:
44614 $config_commands
44615
44616 Report bugs to <bug-autoconf@gnu.org>."
44617
44618 _ACEOF
44619 cat >>$CONFIG_STATUS <<_ACEOF
44620 ac_cs_version="\\
44621 config.status
44622 configured by $0, generated by GNU Autoconf 2.61,
44623   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44624
44625 Copyright (C) 2006 Free Software Foundation, Inc.
44626 This config.status script is free software; the Free Software Foundation
44627 gives unlimited permission to copy, distribute and modify it."
44628
44629 ac_pwd='$ac_pwd'
44630 srcdir='$srcdir'
44631 INSTALL='$INSTALL'
44632 _ACEOF
44633
44634 cat >>$CONFIG_STATUS <<\_ACEOF
44635 # If no file are specified by the user, then we need to provide default
44636 # value.  By we need to know if files were specified by the user.
44637 ac_need_defaults=:
44638 while test $# != 0
44639 do
44640   case $1 in
44641   --*=*)
44642     ac_option=`expr "X$1" : 'X\([^=]*\)='`
44643     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44644     ac_shift=:
44645     ;;
44646   *)
44647     ac_option=$1
44648     ac_optarg=$2
44649     ac_shift=shift
44650     ;;
44651   esac
44652
44653   case $ac_option in
44654   # Handling of the options.
44655   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44656     ac_cs_recheck=: ;;
44657   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44658     echo "$ac_cs_version"; exit ;;
44659   --debug | --debu | --deb | --de | --d | -d )
44660     debug=: ;;
44661   --file | --fil | --fi | --f )
44662     $ac_shift
44663     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44664     ac_need_defaults=false;;
44665   --header | --heade | --head | --hea )
44666     $ac_shift
44667     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44668     ac_need_defaults=false;;
44669   --he | --h)
44670     # Conflict between --help and --header
44671     { echo "$as_me: error: ambiguous option: $1
44672 Try \`$0 --help' for more information." >&2
44673    { (exit 1); exit 1; }; };;
44674   --help | --hel | -h )
44675     echo "$ac_cs_usage"; exit ;;
44676   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44677   | -silent | --silent | --silen | --sile | --sil | --si | --s)
44678     ac_cs_silent=: ;;
44679
44680   # This is an error.
44681   -*) { echo "$as_me: error: unrecognized option: $1
44682 Try \`$0 --help' for more information." >&2
44683    { (exit 1); exit 1; }; } ;;
44684
44685   *) ac_config_targets="$ac_config_targets $1"
44686      ac_need_defaults=false ;;
44687
44688   esac
44689   shift
44690 done
44691
44692 ac_configure_extra_args=
44693
44694 if $ac_cs_silent; then
44695   exec 6>/dev/null
44696   ac_configure_extra_args="$ac_configure_extra_args --silent"
44697 fi
44698
44699 _ACEOF
44700 cat >>$CONFIG_STATUS <<_ACEOF
44701 if \$ac_cs_recheck; then
44702   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44703   CONFIG_SHELL=$SHELL
44704   export CONFIG_SHELL
44705   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44706 fi
44707
44708 _ACEOF
44709 cat >>$CONFIG_STATUS <<\_ACEOF
44710 exec 5>>config.log
44711 {
44712   echo
44713   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44714 ## Running $as_me. ##
44715 _ASBOX
44716   echo "$ac_log"
44717 } >&5
44718
44719 _ACEOF
44720 cat >>$CONFIG_STATUS <<_ACEOF
44721 #
44722 # INIT-COMMANDS
44723 #
44724
44725
44726 # The HP-UX ksh and POSIX shell print the target directory to stdout
44727 # if CDPATH is set.
44728 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44729
44730 sed_quote_subst='$sed_quote_subst'
44731 double_quote_subst='$double_quote_subst'
44732 delay_variable_subst='$delay_variable_subst'
44733 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44734 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44735 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44736 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44737 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44738 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44739 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44740 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44741 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44742 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44743 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44744 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44745 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44746 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44747 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44748 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44749 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44750 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44751 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44752 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44753 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44754 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44755 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44756 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44757 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44758 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44759 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44760 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44761 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44762 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44763 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44764 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44765 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44766 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44767 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44768 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44769 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44770 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44771 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44772 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44773 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44774 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44775 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44776 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44777 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"`'
44778 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"`'
44779 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44780 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44781 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44782 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44783 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44784 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44785 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44786 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44787 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44788 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44789 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44790 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44791 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44792 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44793 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44794 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44795 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44796 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44797 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44798 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44799 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44800 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44801 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44802 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44803 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44804 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44805 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44806 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44807 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44808 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44809 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44810 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44811 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44812 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44813 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44814 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44815 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44816 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44817 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44818 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44819 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44820 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44821 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44822 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44823 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44824 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44825 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44826 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44827 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44828 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44829 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44830 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44831 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44832 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44833 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44834 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44835 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44836 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44837 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44838 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44839 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44840 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44841 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44842 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44843 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44844 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44845 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44846 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44847 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44848 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44849 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44850 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44851 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44852 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44853 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44854 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44855 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44856 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44857 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44858 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44859 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44860 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44861 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44862 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44863 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44864 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44865 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44866 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44867 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44868 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44869 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44870 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44871 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44872 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44873 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44874 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44875 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44876 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44877 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44878 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44879 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44880 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44881 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44882 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44883 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44884 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44885 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44886 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44887 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44888 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44889 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44890 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44891 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44892 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44893 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44894 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44895 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44896 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44897 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44898 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44899 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44900 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44901 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44902 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44903 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44904
44905 LTCC='$LTCC'
44906 LTCFLAGS='$LTCFLAGS'
44907 compiler='$compiler_DEFAULT'
44908
44909 # Quote evaled strings.
44910 for var in SED \
44911 GREP \
44912 EGREP \
44913 FGREP \
44914 LD \
44915 NM \
44916 LN_S \
44917 lt_SP2NL \
44918 lt_NL2SP \
44919 reload_flag \
44920 OBJDUMP \
44921 deplibs_check_method \
44922 file_magic_cmd \
44923 AR \
44924 AR_FLAGS \
44925 STRIP \
44926 RANLIB \
44927 CC \
44928 CFLAGS \
44929 compiler \
44930 lt_cv_sys_global_symbol_pipe \
44931 lt_cv_sys_global_symbol_to_cdecl \
44932 lt_cv_sys_global_symbol_to_c_name_address \
44933 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44934 SHELL \
44935 ECHO \
44936 lt_prog_compiler_no_builtin_flag \
44937 lt_prog_compiler_wl \
44938 lt_prog_compiler_pic \
44939 lt_prog_compiler_static \
44940 lt_cv_prog_compiler_c_o \
44941 need_locks \
44942 DSYMUTIL \
44943 NMEDIT \
44944 LIPO \
44945 OTOOL \
44946 OTOOL64 \
44947 shrext_cmds \
44948 export_dynamic_flag_spec \
44949 whole_archive_flag_spec \
44950 compiler_needs_object \
44951 with_gnu_ld \
44952 allow_undefined_flag \
44953 no_undefined_flag \
44954 hardcode_libdir_flag_spec \
44955 hardcode_libdir_flag_spec_ld \
44956 hardcode_libdir_separator \
44957 fix_srcfile_path \
44958 exclude_expsyms \
44959 include_expsyms \
44960 file_list_spec \
44961 variables_saved_for_relink \
44962 libname_spec \
44963 library_names_spec \
44964 soname_spec \
44965 finish_eval \
44966 old_striplib \
44967 striplib \
44968 compiler_lib_search_dirs \
44969 predep_objects \
44970 postdep_objects \
44971 predeps \
44972 postdeps \
44973 compiler_lib_search_path \
44974 LD_CXX \
44975 compiler_CXX \
44976 lt_prog_compiler_no_builtin_flag_CXX \
44977 lt_prog_compiler_wl_CXX \
44978 lt_prog_compiler_pic_CXX \
44979 lt_prog_compiler_static_CXX \
44980 lt_cv_prog_compiler_c_o_CXX \
44981 export_dynamic_flag_spec_CXX \
44982 whole_archive_flag_spec_CXX \
44983 compiler_needs_object_CXX \
44984 with_gnu_ld_CXX \
44985 allow_undefined_flag_CXX \
44986 no_undefined_flag_CXX \
44987 hardcode_libdir_flag_spec_CXX \
44988 hardcode_libdir_flag_spec_ld_CXX \
44989 hardcode_libdir_separator_CXX \
44990 fix_srcfile_path_CXX \
44991 exclude_expsyms_CXX \
44992 include_expsyms_CXX \
44993 file_list_spec_CXX \
44994 compiler_lib_search_dirs_CXX \
44995 predep_objects_CXX \
44996 postdep_objects_CXX \
44997 predeps_CXX \
44998 postdeps_CXX \
44999 compiler_lib_search_path_CXX; do
45000     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45001     *[\\\\\\\`\\"\\\$]*)
45002       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
45003       ;;
45004     *)
45005       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45006       ;;
45007     esac
45008 done
45009
45010 # Double-quote double-evaled strings.
45011 for var in reload_cmds \
45012 old_postinstall_cmds \
45013 old_postuninstall_cmds \
45014 old_archive_cmds \
45015 extract_expsyms_cmds \
45016 old_archive_from_new_cmds \
45017 old_archive_from_expsyms_cmds \
45018 archive_cmds \
45019 archive_expsym_cmds \
45020 module_cmds \
45021 module_expsym_cmds \
45022 export_symbols_cmds \
45023 prelink_cmds \
45024 postinstall_cmds \
45025 postuninstall_cmds \
45026 finish_cmds \
45027 sys_lib_search_path_spec \
45028 sys_lib_dlsearch_path_spec \
45029 old_archive_cmds_CXX \
45030 old_archive_from_new_cmds_CXX \
45031 old_archive_from_expsyms_cmds_CXX \
45032 archive_cmds_CXX \
45033 archive_expsym_cmds_CXX \
45034 module_cmds_CXX \
45035 module_expsym_cmds_CXX \
45036 export_symbols_cmds_CXX \
45037 prelink_cmds_CXX; do
45038     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45039     *[\\\\\\\`\\"\\\$]*)
45040       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
45041       ;;
45042     *)
45043       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45044       ;;
45045     esac
45046 done
45047
45048 # Fix-up fallback echo if it was mangled by the above quoting rules.
45049 case \$lt_ECHO in
45050 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
45051   ;;
45052 esac
45053
45054 ac_aux_dir='$ac_aux_dir'
45055 xsi_shell='$xsi_shell'
45056 lt_shell_append='$lt_shell_append'
45057
45058 # See if we are running on zsh, and set the options which allow our
45059 # commands through without removal of \ escapes INIT.
45060 if test -n "\${ZSH_VERSION+set}" ; then
45061    setopt NO_GLOB_SUBST
45062 fi
45063
45064
45065     PACKAGE='$PACKAGE'
45066     VERSION='$VERSION'
45067     TIMESTAMP='$TIMESTAMP'
45068     RM='$RM'
45069     ofile='$ofile'
45070
45071
45072
45073
45074
45075 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45076     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45077     # from automake.
45078     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45079     # Capture the value of LINGUAS because we need it to compute CATALOGS.
45080     LINGUAS="${LINGUAS-%UNSET%}"
45081
45082
45083 _ACEOF
45084
45085 cat >>$CONFIG_STATUS <<\_ACEOF
45086
45087 # Handling of arguments.
45088 for ac_config_target in $ac_config_targets
45089 do
45090   case $ac_config_target in
45091     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45092     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45093     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45094     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45095     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45096     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45097     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45098     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45099     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45100     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45101     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45102     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45103     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45104     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45105     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45106     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45107     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45108     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45109     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45110     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45111     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45112     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45113     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45114     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45115     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45116     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45117     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45118     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45119     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45120     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45121     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45122     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45123     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45124     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45125     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45126     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45127     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45128     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45129     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45130     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45131     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45132     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45133     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45134     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45135     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45136     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45137     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45138     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45139     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45140     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45141     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45142     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45143     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45144     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45145     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45146     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45147     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45148     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45149     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45150     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45151     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45152     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
45153     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45154     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45155     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45156     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45157     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45158     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45159     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45160     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45161     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45162     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45163     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45164     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45165     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45166     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45167     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45168     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45169     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45170     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45171     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45172     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45173     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
45174     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
45175     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
45176     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
45177     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
45178     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
45179     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45180     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45181     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
45182     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
45183     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
45184     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
45185     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
45186     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
45187     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45188     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45189     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45190     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45191     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45192     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45193     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45194     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45195     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45196     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45197     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45198     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45199     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45200     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45201     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45202     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45203     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45204     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45205     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45206     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45207     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45208     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45209
45210   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45211 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45212    { (exit 1); exit 1; }; };;
45213   esac
45214 done
45215
45216
45217 # If the user did not use the arguments to specify the items to instantiate,
45218 # then the envvar interface is used.  Set only those that are not.
45219 # We use the long form for the default assignment because of an extremely
45220 # bizarre bug on SunOS 4.1.3.
45221 if $ac_need_defaults; then
45222   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45223   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45224   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45225 fi
45226
45227 # Have a temporary directory for convenience.  Make it in the build tree
45228 # simply because there is no reason against having it here, and in addition,
45229 # creating and moving files from /tmp can sometimes cause problems.
45230 # Hook for its removal unless debugging.
45231 # Note that there is a small window in which the directory will not be cleaned:
45232 # after its creation but before its name has been assigned to `$tmp'.
45233 $debug ||
45234 {
45235   tmp=
45236   trap 'exit_status=$?
45237   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45238 ' 0
45239   trap '{ (exit 1); exit 1; }' 1 2 13 15
45240 }
45241 # Create a (secure) tmp directory for tmp files.
45242
45243 {
45244   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45245   test -n "$tmp" && test -d "$tmp"
45246 }  ||
45247 {
45248   tmp=./conf$$-$RANDOM
45249   (umask 077 && mkdir "$tmp")
45250 } ||
45251 {
45252    echo "$me: cannot create a temporary directory in ." >&2
45253    { (exit 1); exit 1; }
45254 }
45255
45256 #
45257 # Set up the sed scripts for CONFIG_FILES section.
45258 #
45259
45260 # No need to generate the scripts if there are no CONFIG_FILES.
45261 # This happens for instance when ./config.status config.h
45262 if test -n "$CONFIG_FILES"; then
45263
45264 _ACEOF
45265
45266 # Create sed commands to just substitute file output variables.
45267
45268 # Remaining file output variables are in a fragment that also has non-file
45269 # output varibles.
45270
45271
45272
45273 ac_delim='%!_!# '
45274 for ac_last_try in false false false false false :; do
45275   cat >conf$$subs.sed <<_ACEOF
45276 SHELL!$SHELL$ac_delim
45277 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45278 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45279 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45280 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45281 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45282 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45283 exec_prefix!$exec_prefix$ac_delim
45284 prefix!$prefix$ac_delim
45285 program_transform_name!$program_transform_name$ac_delim
45286 bindir!$bindir$ac_delim
45287 sbindir!$sbindir$ac_delim
45288 libexecdir!$libexecdir$ac_delim
45289 datarootdir!$datarootdir$ac_delim
45290 datadir!$datadir$ac_delim
45291 sysconfdir!$sysconfdir$ac_delim
45292 sharedstatedir!$sharedstatedir$ac_delim
45293 localstatedir!$localstatedir$ac_delim
45294 includedir!$includedir$ac_delim
45295 oldincludedir!$oldincludedir$ac_delim
45296 docdir!$docdir$ac_delim
45297 infodir!$infodir$ac_delim
45298 htmldir!$htmldir$ac_delim
45299 dvidir!$dvidir$ac_delim
45300 pdfdir!$pdfdir$ac_delim
45301 psdir!$psdir$ac_delim
45302 libdir!$libdir$ac_delim
45303 localedir!$localedir$ac_delim
45304 mandir!$mandir$ac_delim
45305 DEFS!$DEFS$ac_delim
45306 ECHO_C!$ECHO_C$ac_delim
45307 ECHO_N!$ECHO_N$ac_delim
45308 ECHO_T!$ECHO_T$ac_delim
45309 LIBS!$LIBS$ac_delim
45310 build_alias!$build_alias$ac_delim
45311 host_alias!$host_alias$ac_delim
45312 target_alias!$target_alias$ac_delim
45313 BUILD_DIR!$BUILD_DIR$ac_delim
45314 TOP_DIR!$TOP_DIR$ac_delim
45315 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45316 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45317 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45318 TRUEPRG!$TRUEPRG$ac_delim
45319 FALSEPRG!$FALSEPRG$ac_delim
45320 VERSION!$VERSION$ac_delim
45321 DATE!$DATE$ac_delim
45322 LSMDATE!$LSMDATE$ac_delim
45323 BACULA!$BACULA$ac_delim
45324 post_host!$post_host$ac_delim
45325 LIBBAC_LT_CURRENT!$LIBBAC_LT_CURRENT$ac_delim
45326 LIBBAC_LT_REVISION!$LIBBAC_LT_REVISION$ac_delim
45327 LIBBAC_LT_AGE!$LIBBAC_LT_AGE$ac_delim
45328 LIBBACCFG_LT_CURRENT!$LIBBACCFG_LT_CURRENT$ac_delim
45329 LIBBACCFG_LT_REVISION!$LIBBACCFG_LT_REVISION$ac_delim
45330 LIBBACCFG_LT_AGE!$LIBBACCFG_LT_AGE$ac_delim
45331 LIBBACPY_LT_CURRENT!$LIBBACPY_LT_CURRENT$ac_delim
45332 LIBBACPY_LT_REVISION!$LIBBACPY_LT_REVISION$ac_delim
45333 LIBBACPY_LT_AGE!$LIBBACPY_LT_AGE$ac_delim
45334 LIBBACSQL_LT_CURRENT!$LIBBACSQL_LT_CURRENT$ac_delim
45335 LIBBACSQL_LT_REVISION!$LIBBACSQL_LT_REVISION$ac_delim
45336 LIBBACSQL_LT_AGE!$LIBBACSQL_LT_AGE$ac_delim
45337 LIBBACFIND_LT_CURRENT!$LIBBACFIND_LT_CURRENT$ac_delim
45338 LIBBACFIND_LT_REVISION!$LIBBACFIND_LT_REVISION$ac_delim
45339 LIBBACFIND_LT_AGE!$LIBBACFIND_LT_AGE$ac_delim
45340 CC!$CC$ac_delim
45341 CFLAGS!$CFLAGS$ac_delim
45342 LDFLAGS!$LDFLAGS$ac_delim
45343 CPPFLAGS!$CPPFLAGS$ac_delim
45344 ac_ct_CC!$ac_ct_CC$ac_delim
45345 EXEEXT!$EXEEXT$ac_delim
45346 OBJEXT!$OBJEXT$ac_delim
45347 CXX!$CXX$ac_delim
45348 CXXFLAGS!$CXXFLAGS$ac_delim
45349 ac_ct_CXX!$ac_ct_CXX$ac_delim
45350 CPP!$CPP$ac_delim
45351 GREP!$GREP$ac_delim
45352 EGREP!$EGREP$ac_delim
45353 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45354 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45355 INSTALL_DATA!$INSTALL_DATA$ac_delim
45356 MV!$MV$ac_delim
45357 REMOVE!$REMOVE$ac_delim
45358 CP!$CP$ac_delim
45359 SED!$SED$ac_delim
45360 ECHO!$ECHO$ac_delim
45361 CMP!$CMP$ac_delim
45362 TBL!$TBL$ac_delim
45363 AR!$AR$ac_delim
45364 OPENSSL!$OPENSSL$ac_delim
45365 MTX!$MTX$ac_delim
45366 DD!$DD$ac_delim
45367 MKISOFS!$MKISOFS$ac_delim
45368 PYTHON!$PYTHON$ac_delim
45369 GROWISOFS!$GROWISOFS$ac_delim
45370 _ACEOF
45371
45372   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45373     break
45374   elif $ac_last_try; then
45375     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45376 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45377    { (exit 1); exit 1; }; }
45378   else
45379     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45380   fi
45381 done
45382
45383 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45384 if test -n "$ac_eof"; then
45385   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45386   ac_eof=`expr $ac_eof + 1`
45387 fi
45388
45389 cat >>$CONFIG_STATUS <<_ACEOF
45390 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45392 /^[      ]*@MCOMMON@[    ]*$/{
45393 r $MCOMMON
45394 d
45395 }
45396 _ACEOF
45397 sed '
45398 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45399 s/^/s,@/; s/!/@,|#_!!_#|/
45400 :n
45401 t n
45402 s/'"$ac_delim"'$/,g/; t
45403 s/$/\\/; p
45404 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45405 ' >>$CONFIG_STATUS <conf$$subs.sed
45406 rm -f conf$$subs.sed
45407 cat >>$CONFIG_STATUS <<_ACEOF
45408 CEOF$ac_eof
45409 _ACEOF
45410
45411
45412 ac_delim='%!_!# '
45413 for ac_last_try in false false false false false :; do
45414   cat >conf$$subs.sed <<_ACEOF
45415 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45416 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45417 PKGCONFIG!$PKGCONFIG$ac_delim
45418 QMAKE!$QMAKE$ac_delim
45419 GMAKE!$GMAKE$ac_delim
45420 WXCONFIG!$WXCONFIG$ac_delim
45421 WXFLAGS!$WXFLAGS$ac_delim
45422 CDRECORD!$CDRECORD$ac_delim
45423 PIDOF!$PIDOF$ac_delim
45424 AWK!$AWK$ac_delim
45425 ARFLAGS!$ARFLAGS$ac_delim
45426 MAKE_SHELL!$MAKE_SHELL$ac_delim
45427 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45428 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45429 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45430 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45431 LIBTOOL!$LIBTOOL$ac_delim
45432 build!$build$ac_delim
45433 build_cpu!$build_cpu$ac_delim
45434 build_vendor!$build_vendor$ac_delim
45435 build_os!$build_os$ac_delim
45436 host!$host$ac_delim
45437 host_cpu!$host_cpu$ac_delim
45438 host_vendor!$host_vendor$ac_delim
45439 host_os!$host_os$ac_delim
45440 FGREP!$FGREP$ac_delim
45441 LD!$LD$ac_delim
45442 DUMPBIN!$DUMPBIN$ac_delim
45443 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45444 NM!$NM$ac_delim
45445 LN_S!$LN_S$ac_delim
45446 OBJDUMP!$OBJDUMP$ac_delim
45447 STRIP!$STRIP$ac_delim
45448 RANLIB!$RANLIB$ac_delim
45449 lt_ECHO!$lt_ECHO$ac_delim
45450 DSYMUTIL!$DSYMUTIL$ac_delim
45451 NMEDIT!$NMEDIT$ac_delim
45452 LIPO!$LIPO$ac_delim
45453 OTOOL!$OTOOL$ac_delim
45454 OTOOL64!$OTOOL64$ac_delim
45455 CXXCPP!$CXXCPP$ac_delim
45456 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45457 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45458 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45459 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45460 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45461 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45462 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45463 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45464 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45465 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45466 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45467 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45468 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45469 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45470 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45471 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45472 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45473 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45474 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45475 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45476 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45477 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45478 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45479 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45480 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45481 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45482 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45483 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45484 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45485 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45486 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45487 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45488 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45489 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45490 SET_MAKE!$SET_MAKE$ac_delim
45491 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45492 USE_NLS!$USE_NLS$ac_delim
45493 MSGFMT!$MSGFMT$ac_delim
45494 GMSGFMT!$GMSGFMT$ac_delim
45495 XGETTEXT!$XGETTEXT$ac_delim
45496 MSGMERGE!$MSGMERGE$ac_delim
45497 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45498 LIBICONV!$LIBICONV$ac_delim
45499 LTLIBICONV!$LTLIBICONV$ac_delim
45500 INTLLIBS!$INTLLIBS$ac_delim
45501 LIBINTL!$LIBINTL$ac_delim
45502 LTLIBINTL!$LTLIBINTL$ac_delim
45503 POSUB!$POSUB$ac_delim
45504 GLIBC2!$GLIBC2$ac_delim
45505 ALLOCA!$ALLOCA$ac_delim
45506 GLIBC21!$GLIBC21$ac_delim
45507 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45508 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45509 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45510 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45511 INTLBISON!$INTLBISON$ac_delim
45512 _ACEOF
45513
45514   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45515     break
45516   elif $ac_last_try; then
45517     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45518 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45519    { (exit 1); exit 1; }; }
45520   else
45521     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45522   fi
45523 done
45524
45525 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45526 if test -n "$ac_eof"; then
45527   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45528   ac_eof=`expr $ac_eof + 1`
45529 fi
45530
45531 cat >>$CONFIG_STATUS <<_ACEOF
45532 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45534 _ACEOF
45535 sed '
45536 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45537 s/^/s,@/; s/!/@,|#_!!_#|/
45538 :n
45539 t n
45540 s/'"$ac_delim"'$/,g/; t
45541 s/$/\\/; p
45542 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45543 ' >>$CONFIG_STATUS <conf$$subs.sed
45544 rm -f conf$$subs.sed
45545 cat >>$CONFIG_STATUS <<_ACEOF
45546 CEOF$ac_eof
45547 _ACEOF
45548
45549
45550 ac_delim='%!_!# '
45551 for ac_last_try in false false false false false :; do
45552   cat >conf$$subs.sed <<_ACEOF
45553 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45554 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45555 CATOBJEXT!$CATOBJEXT$ac_delim
45556 DATADIRNAME!$DATADIRNAME$ac_delim
45557 INSTOBJEXT!$INSTOBJEXT$ac_delim
45558 GENCAT!$GENCAT$ac_delim
45559 INTLOBJS!$INTLOBJS$ac_delim
45560 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45561 BAT_DIR!$BAT_DIR$ac_delim
45562 QWT_INC!$QWT_INC$ac_delim
45563 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45564 QWT_LIB!$QWT_LIB$ac_delim
45565 QWT!$QWT$ac_delim
45566 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45567 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45568 WX_DIR!$WX_DIR$ac_delim
45569 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45570 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45571 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45572 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45573 STATIC_FD!$STATIC_FD$ac_delim
45574 STATIC_SD!$STATIC_SD$ac_delim
45575 STATIC_DIR!$STATIC_DIR$ac_delim
45576 STATIC_CONS!$STATIC_CONS$ac_delim
45577 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45578 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45579 ALL_DIRS!$ALL_DIRS$ac_delim
45580 DIRD_DIR!$DIRD_DIR$ac_delim
45581 DIR_TOOLS!$DIR_TOOLS$ac_delim
45582 STORED_DIR!$STORED_DIR$ac_delim
45583 CONS_INC!$CONS_INC$ac_delim
45584 CONS_OBJ!$CONS_OBJ$ac_delim
45585 CONS_SRC!$CONS_SRC$ac_delim
45586 CONS_LIBS!$CONS_LIBS$ac_delim
45587 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45588 READLINE_SRC!$READLINE_SRC$ac_delim
45589 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45590 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45591 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45592 OPENSSL_INC!$OPENSSL_INC$ac_delim
45593 working_dir!$working_dir$ac_delim
45594 archivedir!$archivedir$ac_delim
45595 basename!$basename$ac_delim
45596 hostname!$hostname$ac_delim
45597 scriptdir!$scriptdir$ac_delim
45598 bsrdir!$bsrdir$ac_delim
45599 logdir!$logdir$ac_delim
45600 plugindir!$plugindir$ac_delim
45601 dump_email!$dump_email$ac_delim
45602 job_email!$job_email$ac_delim
45603 smtp_host!$smtp_host$ac_delim
45604 piddir!$piddir$ac_delim
45605 subsysdir!$subsysdir$ac_delim
45606 baseport!$baseport$ac_delim
45607 dir_port!$dir_port$ac_delim
45608 fd_port!$fd_port$ac_delim
45609 sd_port!$sd_port$ac_delim
45610 dir_password!$dir_password$ac_delim
45611 fd_password!$fd_password$ac_delim
45612 sd_password!$sd_password$ac_delim
45613 mon_dir_password!$mon_dir_password$ac_delim
45614 mon_fd_password!$mon_fd_password$ac_delim
45615 mon_sd_password!$mon_sd_password$ac_delim
45616 db_name!$db_name$ac_delim
45617 db_user!$db_user$ac_delim
45618 db_password!$db_password$ac_delim
45619 db_port!$db_port$ac_delim
45620 dir_user!$dir_user$ac_delim
45621 dir_group!$dir_group$ac_delim
45622 sd_user!$sd_user$ac_delim
45623 sd_group!$sd_group$ac_delim
45624 fd_user!$fd_user$ac_delim
45625 fd_group!$fd_group$ac_delim
45626 SBINPERM!$SBINPERM$ac_delim
45627 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45628 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45629 SQL_BINDIR!$SQL_BINDIR$ac_delim
45630 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45631 uncomment_dbi!$uncomment_dbi$ac_delim
45632 DB_PROG!$DB_PROG$ac_delim
45633 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45634 cats!$cats$ac_delim
45635 DB_TYPE!$DB_TYPE$ac_delim
45636 GETCONF!$GETCONF$ac_delim
45637 XMKMF!$XMKMF$ac_delim
45638 X_CFLAGS!$X_CFLAGS$ac_delim
45639 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45640 X_LIBS!$X_LIBS$ac_delim
45641 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45642 LIBOBJS!$LIBOBJS$ac_delim
45643 CAP_LIBS!$CAP_LIBS$ac_delim
45644 FDLIBS!$FDLIBS$ac_delim
45645 DEBUG!$DEBUG$ac_delim
45646 DINCLUDE!$DINCLUDE$ac_delim
45647 DLIB!$DLIB$ac_delim
45648 DB_LIBS!$DB_LIBS$ac_delim
45649 WCFLAGS!$WCFLAGS$ac_delim
45650 _ACEOF
45651
45652   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45653     break
45654   elif $ac_last_try; then
45655     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45656 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45657    { (exit 1); exit 1; }; }
45658   else
45659     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45660   fi
45661 done
45662
45663 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45664 if test -n "$ac_eof"; then
45665   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45666   ac_eof=`expr $ac_eof + 1`
45667 fi
45668
45669 cat >>$CONFIG_STATUS <<_ACEOF
45670 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45671 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45672 _ACEOF
45673 sed '
45674 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45675 s/^/s,@/; s/!/@,|#_!!_#|/
45676 :n
45677 t n
45678 s/'"$ac_delim"'$/,g/; t
45679 s/$/\\/; p
45680 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45681 ' >>$CONFIG_STATUS <conf$$subs.sed
45682 rm -f conf$$subs.sed
45683 cat >>$CONFIG_STATUS <<_ACEOF
45684 CEOF$ac_eof
45685 _ACEOF
45686
45687
45688 ac_delim='%!_!# '
45689 for ac_last_try in false false false false false :; do
45690   cat >conf$$subs.sed <<_ACEOF
45691 WLDFLAGS!$WLDFLAGS$ac_delim
45692 WRAPLIBS!$WRAPLIBS$ac_delim
45693 OBJLIST!$OBJLIST$ac_delim
45694 TAPEDRIVE!$TAPEDRIVE$ac_delim
45695 PSCMD!$PSCMD$ac_delim
45696 WIN32!$WIN32$ac_delim
45697 MACOSX!$MACOSX$ac_delim
45698 DISTNAME!$DISTNAME$ac_delim
45699 DISTVER!$DISTVER$ac_delim
45700 LTLIBOBJS!$LTLIBOBJS$ac_delim
45701 _ACEOF
45702
45703   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
45704     break
45705   elif $ac_last_try; then
45706     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45707 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45708    { (exit 1); exit 1; }; }
45709   else
45710     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45711   fi
45712 done
45713
45714 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45715 if test -n "$ac_eof"; then
45716   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45717   ac_eof=`expr $ac_eof + 1`
45718 fi
45719
45720 cat >>$CONFIG_STATUS <<_ACEOF
45721 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
45722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45723 _ACEOF
45724 sed '
45725 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45726 s/^/s,@/; s/!/@,|#_!!_#|/
45727 :n
45728 t n
45729 s/'"$ac_delim"'$/,g/; t
45730 s/$/\\/; p
45731 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45732 ' >>$CONFIG_STATUS <conf$$subs.sed
45733 rm -f conf$$subs.sed
45734 cat >>$CONFIG_STATUS <<_ACEOF
45735 :end
45736 s/|#_!!_#|//g
45737 CEOF$ac_eof
45738 _ACEOF
45739
45740
45741 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45742 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45743 # trailing colons and then remove the whole line if VPATH becomes empty
45744 # (actually we leave an empty line to preserve line numbers).
45745 if test "x$srcdir" = x.; then
45746   ac_vpsub='/^[  ]*VPATH[        ]*=/{
45747 s/:*\$(srcdir):*/:/
45748 s/:*\${srcdir}:*/:/
45749 s/:*@srcdir@:*/:/
45750 s/^\([^=]*=[     ]*\):*/\1/
45751 s/:*$//
45752 s/^[^=]*=[       ]*$//
45753 }'
45754 fi
45755
45756 cat >>$CONFIG_STATUS <<\_ACEOF
45757 fi # test -n "$CONFIG_FILES"
45758
45759
45760 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
45761 do
45762   case $ac_tag in
45763   :[FHLC]) ac_mode=$ac_tag; continue;;
45764   esac
45765   case $ac_mode$ac_tag in
45766   :[FHL]*:*);;
45767   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45768 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45769    { (exit 1); exit 1; }; };;
45770   :[FH]-) ac_tag=-:-;;
45771   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45772   esac
45773   ac_save_IFS=$IFS
45774   IFS=:
45775   set x $ac_tag
45776   IFS=$ac_save_IFS
45777   shift
45778   ac_file=$1
45779   shift
45780
45781   case $ac_mode in
45782   :L) ac_source=$1;;
45783   :[FH])
45784     ac_file_inputs=
45785     for ac_f
45786     do
45787       case $ac_f in
45788       -) ac_f="$tmp/stdin";;
45789       *) # Look for the file first in the build tree, then in the source tree
45790          # (if the path is not absolute).  The absolute path cannot be DOS-style,
45791          # because $ac_f cannot contain `:'.
45792          test -f "$ac_f" ||
45793            case $ac_f in
45794            [\\/$]*) false;;
45795            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45796            esac ||
45797            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45798 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45799    { (exit 1); exit 1; }; };;
45800       esac
45801       ac_file_inputs="$ac_file_inputs $ac_f"
45802     done
45803
45804     # Let's still pretend it is `configure' which instantiates (i.e., don't
45805     # use $as_me), people would be surprised to read:
45806     #    /* config.h.  Generated by config.status.  */
45807     configure_input="Generated from "`IFS=:
45808           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45809     if test x"$ac_file" != x-; then
45810       configure_input="$ac_file.  $configure_input"
45811       { echo "$as_me:$LINENO: creating $ac_file" >&5
45812 echo "$as_me: creating $ac_file" >&6;}
45813     fi
45814
45815     case $ac_tag in
45816     *:-:* | *:-) cat >"$tmp/stdin";;
45817     esac
45818     ;;
45819   esac
45820
45821   ac_dir=`$as_dirname -- "$ac_file" ||
45822 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45823          X"$ac_file" : 'X\(//\)[^/]' \| \
45824          X"$ac_file" : 'X\(//\)$' \| \
45825          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45826 echo X"$ac_file" |
45827     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45828             s//\1/
45829             q
45830           }
45831           /^X\(\/\/\)[^/].*/{
45832             s//\1/
45833             q
45834           }
45835           /^X\(\/\/\)$/{
45836             s//\1/
45837             q
45838           }
45839           /^X\(\/\).*/{
45840             s//\1/
45841             q
45842           }
45843           s/.*/./; q'`
45844   { as_dir="$ac_dir"
45845   case $as_dir in #(
45846   -*) as_dir=./$as_dir;;
45847   esac
45848   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45849     as_dirs=
45850     while :; do
45851       case $as_dir in #(
45852       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45853       *) as_qdir=$as_dir;;
45854       esac
45855       as_dirs="'$as_qdir' $as_dirs"
45856       as_dir=`$as_dirname -- "$as_dir" ||
45857 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45858          X"$as_dir" : 'X\(//\)[^/]' \| \
45859          X"$as_dir" : 'X\(//\)$' \| \
45860          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45861 echo X"$as_dir" |
45862     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45863             s//\1/
45864             q
45865           }
45866           /^X\(\/\/\)[^/].*/{
45867             s//\1/
45868             q
45869           }
45870           /^X\(\/\/\)$/{
45871             s//\1/
45872             q
45873           }
45874           /^X\(\/\).*/{
45875             s//\1/
45876             q
45877           }
45878           s/.*/./; q'`
45879       test -d "$as_dir" && break
45880     done
45881     test -z "$as_dirs" || eval "mkdir $as_dirs"
45882   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45883 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45884    { (exit 1); exit 1; }; }; }
45885   ac_builddir=.
45886
45887 case "$ac_dir" in
45888 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45889 *)
45890   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45891   # A ".." for each directory in $ac_dir_suffix.
45892   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45893   case $ac_top_builddir_sub in
45894   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45895   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45896   esac ;;
45897 esac
45898 ac_abs_top_builddir=$ac_pwd
45899 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45900 # for backward compatibility:
45901 ac_top_builddir=$ac_top_build_prefix
45902
45903 case $srcdir in
45904   .)  # We are building in place.
45905     ac_srcdir=.
45906     ac_top_srcdir=$ac_top_builddir_sub
45907     ac_abs_top_srcdir=$ac_pwd ;;
45908   [\\/]* | ?:[\\/]* )  # Absolute name.
45909     ac_srcdir=$srcdir$ac_dir_suffix;
45910     ac_top_srcdir=$srcdir
45911     ac_abs_top_srcdir=$srcdir ;;
45912   *) # Relative name.
45913     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45914     ac_top_srcdir=$ac_top_build_prefix$srcdir
45915     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45916 esac
45917 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45918
45919
45920   case $ac_mode in
45921   :F)
45922   #
45923   # CONFIG_FILE
45924   #
45925
45926   case $INSTALL in
45927   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45928   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45929   esac
45930 _ACEOF
45931
45932 cat >>$CONFIG_STATUS <<\_ACEOF
45933 # If the template does not know about datarootdir, expand it.
45934 # FIXME: This hack should be removed a few years after 2.60.
45935 ac_datarootdir_hack=; ac_datarootdir_seen=
45936
45937 case `sed -n '/datarootdir/ {
45938   p
45939   q
45940 }
45941 /@datadir@/p
45942 /@docdir@/p
45943 /@infodir@/p
45944 /@localedir@/p
45945 /@mandir@/p
45946 ' $ac_file_inputs` in
45947 *datarootdir*) ac_datarootdir_seen=yes;;
45948 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45949   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45950 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45951 _ACEOF
45952 cat >>$CONFIG_STATUS <<_ACEOF
45953   ac_datarootdir_hack='
45954   s&@datadir@&$datadir&g
45955   s&@docdir@&$docdir&g
45956   s&@infodir@&$infodir&g
45957   s&@localedir@&$localedir&g
45958   s&@mandir@&$mandir&g
45959     s&\\\${datarootdir}&$datarootdir&g' ;;
45960 esac
45961 _ACEOF
45962
45963 # Neutralize VPATH when `$srcdir' = `.'.
45964 # Shell code in configure.ac might set extrasub.
45965 # FIXME: do we really want to maintain this feature?
45966 cat >>$CONFIG_STATUS <<_ACEOF
45967   sed "$ac_vpsub
45968 $extrasub
45969 _ACEOF
45970 cat >>$CONFIG_STATUS <<\_ACEOF
45971 :t
45972 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45973 s&@configure_input@&$configure_input&;t t
45974 s&@top_builddir@&$ac_top_builddir_sub&;t t
45975 s&@srcdir@&$ac_srcdir&;t t
45976 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45977 s&@top_srcdir@&$ac_top_srcdir&;t t
45978 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45979 s&@builddir@&$ac_builddir&;t t
45980 s&@abs_builddir@&$ac_abs_builddir&;t t
45981 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45982 s&@INSTALL@&$ac_INSTALL&;t t
45983 $ac_datarootdir_hack
45984 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" >$tmp/out
45985
45986 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45987   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45988   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45989   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45990 which seems to be undefined.  Please make sure it is defined." >&5
45991 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45992 which seems to be undefined.  Please make sure it is defined." >&2;}
45993
45994   rm -f "$tmp/stdin"
45995   case $ac_file in
45996   -) cat "$tmp/out"; rm -f "$tmp/out";;
45997   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45998   esac
45999  ;;
46000   :H)
46001   #
46002   # CONFIG_HEADER
46003   #
46004 _ACEOF
46005
46006 # Transform confdefs.h into a sed script `conftest.defines', that
46007 # substitutes the proper values into config.h.in to produce config.h.
46008 rm -f conftest.defines conftest.tail
46009 # First, append a space to every undef/define line, to ease matching.
46010 echo 's/$/ /' >conftest.defines
46011 # Then, protect against being on the right side of a sed subst, or in
46012 # an unquoted here document, in config.status.  If some macros were
46013 # called several times there might be several #defines for the same
46014 # symbol, which is useless.  But do not sort them, since the last
46015 # AC_DEFINE must be honored.
46016 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46017 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
46018 # NAME is the cpp macro being defined, VALUE is the value it is being given.
46019 # PARAMS is the parameter list in the macro definition--in most cases, it's
46020 # just an empty string.
46021 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
46022 ac_dB='\\)[      (].*,\\1define\\2'
46023 ac_dC=' '
46024 ac_dD=' ,'
46025
46026 uniq confdefs.h |
46027   sed -n '
46028         t rset
46029         :rset
46030         s/^[     ]*#[    ]*define[       ][      ]*//
46031         t ok
46032         d
46033         :ok
46034         s/[\\&,]/\\&/g
46035         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
46036         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
46037   ' >>conftest.defines
46038
46039 # Remove the space that was appended to ease matching.
46040 # Then replace #undef with comments.  This is necessary, for
46041 # example, in the case of _POSIX_SOURCE, which is predefined and required
46042 # on some systems where configure will not decide to define it.
46043 # (The regexp can be short, since the line contains either #define or #undef.)
46044 echo 's/ $//
46045 s,^[     #]*u.*,/* & */,' >>conftest.defines
46046
46047 # Break up conftest.defines:
46048 ac_max_sed_lines=50
46049
46050 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
46051 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
46052 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
46053 # et cetera.
46054 ac_in='$ac_file_inputs'
46055 ac_out='"$tmp/out1"'
46056 ac_nxt='"$tmp/out2"'
46057
46058 while :
46059 do
46060   # Write a here document:
46061     cat >>$CONFIG_STATUS <<_ACEOF
46062     # First, check the format of the line:
46063     cat >"\$tmp/defines.sed" <<\\CEOF
46064 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
46065 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
46066 b
46067 :def
46068 _ACEOF
46069   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
46070   echo 'CEOF
46071     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
46072   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
46073   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
46074   grep . conftest.tail >/dev/null || break
46075   rm -f conftest.defines
46076   mv conftest.tail conftest.defines
46077 done
46078 rm -f conftest.defines conftest.tail
46079
46080 echo "ac_result=$ac_in" >>$CONFIG_STATUS
46081 cat >>$CONFIG_STATUS <<\_ACEOF
46082   if test x"$ac_file" != x-; then
46083     echo "/* $configure_input  */" >"$tmp/config.h"
46084     cat "$ac_result" >>"$tmp/config.h"
46085     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
46086       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46087 echo "$as_me: $ac_file is unchanged" >&6;}
46088     else
46089       rm -f $ac_file
46090       mv "$tmp/config.h" $ac_file
46091     fi
46092   else
46093     echo "/* $configure_input  */"
46094     cat "$ac_result"
46095   fi
46096   rm -f "$tmp/out12"
46097  ;;
46098
46099   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
46100 echo "$as_me: executing $ac_file commands" >&6;}
46101  ;;
46102   esac
46103
46104
46105   case $ac_file$ac_mode in
46106     "libtool":C)
46107
46108     # See if we are running on zsh, and set the options which allow our
46109     # commands through without removal of \ escapes.
46110     if test -n "${ZSH_VERSION+set}" ; then
46111       setopt NO_GLOB_SUBST
46112     fi
46113
46114     cfgfile="${ofile}T"
46115     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46116     $RM "$cfgfile"
46117
46118     cat <<_LT_EOF >> "$cfgfile"
46119 #! $SHELL
46120
46121 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
46122 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
46123 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46124 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
46125 #
46126 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
46127 #                 2006, 2007, 2008 Free Software Foundation, Inc.
46128 #   Written by Gordon Matzigkeit, 1996
46129 #
46130 #   This file is part of GNU Libtool.
46131 #
46132 # GNU Libtool is free software; you can redistribute it and/or
46133 # modify it under the terms of the GNU General Public License as
46134 # published by the Free Software Foundation; either version 2 of
46135 # the License, or (at your option) any later version.
46136 #
46137 # As a special exception to the GNU General Public License,
46138 # if you distribute this file as part of a program or library that
46139 # is built using GNU Libtool, you may include this file under the
46140 # same distribution terms that you use for the rest of that program.
46141 #
46142 # GNU Libtool is distributed in the hope that it will be useful,
46143 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46144 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
46145 # GNU General Public License for more details.
46146 #
46147 # You should have received a copy of the GNU General Public License
46148 # along with GNU Libtool; see the file COPYING.  If not, a copy
46149 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46150 # obtained by writing to the Free Software Foundation, Inc.,
46151 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46152
46153
46154 # The names of the tagged configurations supported by this script.
46155 available_tags="CXX "
46156
46157 # ### BEGIN LIBTOOL CONFIG
46158
46159 # Which release of libtool.m4 was used?
46160 macro_version=$macro_version
46161 macro_revision=$macro_revision
46162
46163 # Whether or not to build shared libraries.
46164 build_libtool_libs=$enable_shared
46165
46166 # Whether or not to build static libraries.
46167 build_old_libs=$enable_static
46168
46169 # What type of objects to build.
46170 pic_mode=$pic_mode
46171
46172 # Whether or not to optimize for fast installation.
46173 fast_install=$enable_fast_install
46174
46175 # The host system.
46176 host_alias=$host_alias
46177 host=$host
46178 host_os=$host_os
46179
46180 # The build system.
46181 build_alias=$build_alias
46182 build=$build
46183 build_os=$build_os
46184
46185 # A sed program that does not truncate output.
46186 SED=$lt_SED
46187
46188 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46189 Xsed="\$SED -e 1s/^X//"
46190
46191 # A grep program that handles long lines.
46192 GREP=$lt_GREP
46193
46194 # An ERE matcher.
46195 EGREP=$lt_EGREP
46196
46197 # A literal string matcher.
46198 FGREP=$lt_FGREP
46199
46200 # A BSD- or MS-compatible name lister.
46201 NM=$lt_NM
46202
46203 # Whether we need soft or hard links.
46204 LN_S=$lt_LN_S
46205
46206 # What is the maximum length of a command?
46207 max_cmd_len=$max_cmd_len
46208
46209 # Object file suffix (normally "o").
46210 objext=$ac_objext
46211
46212 # Executable file suffix (normally "").
46213 exeext=$exeext
46214
46215 # whether the shell understands "unset".
46216 lt_unset=$lt_unset
46217
46218 # turn spaces into newlines.
46219 SP2NL=$lt_lt_SP2NL
46220
46221 # turn newlines into spaces.
46222 NL2SP=$lt_lt_NL2SP
46223
46224 # How to create reloadable object files.
46225 reload_flag=$lt_reload_flag
46226 reload_cmds=$lt_reload_cmds
46227
46228 # An object symbol dumper.
46229 OBJDUMP=$lt_OBJDUMP
46230
46231 # Method to check whether dependent libraries are shared objects.
46232 deplibs_check_method=$lt_deplibs_check_method
46233
46234 # Command to use when deplibs_check_method == "file_magic".
46235 file_magic_cmd=$lt_file_magic_cmd
46236
46237 # The archiver.
46238 AR=$lt_AR
46239 AR_FLAGS=$lt_AR_FLAGS
46240
46241 # A symbol stripping program.
46242 STRIP=$lt_STRIP
46243
46244 # Commands used to install an old-style archive.
46245 RANLIB=$lt_RANLIB
46246 old_postinstall_cmds=$lt_old_postinstall_cmds
46247 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46248
46249 # A C compiler.
46250 LTCC=$lt_CC
46251
46252 # LTCC compiler flags.
46253 LTCFLAGS=$lt_CFLAGS
46254
46255 # Take the output of nm and produce a listing of raw symbols and C names.
46256 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46257
46258 # Transform the output of nm in a proper C declaration.
46259 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46260
46261 # Transform the output of nm in a C name address pair.
46262 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46263
46264 # Transform the output of nm in a C name address pair when lib prefix is needed.
46265 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46266
46267 # The name of the directory that contains temporary libtool files.
46268 objdir=$objdir
46269
46270 # Shell to use when invoking shell scripts.
46271 SHELL=$lt_SHELL
46272
46273 # An echo program that does not interpret backslashes.
46274 ECHO=$lt_ECHO
46275
46276 # Used to examine libraries when file_magic_cmd begins with "file".
46277 MAGIC_CMD=$MAGIC_CMD
46278
46279 # Must we lock files when doing compilation?
46280 need_locks=$lt_need_locks
46281
46282 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46283 DSYMUTIL=$lt_DSYMUTIL
46284
46285 # Tool to change global to local symbols on Mac OS X.
46286 NMEDIT=$lt_NMEDIT
46287
46288 # Tool to manipulate fat objects and archives on Mac OS X.
46289 LIPO=$lt_LIPO
46290
46291 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46292 OTOOL=$lt_OTOOL
46293
46294 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46295 OTOOL64=$lt_OTOOL64
46296
46297 # Old archive suffix (normally "a").
46298 libext=$libext
46299
46300 # Shared library suffix (normally ".so").
46301 shrext_cmds=$lt_shrext_cmds
46302
46303 # The commands to extract the exported symbol list from a shared archive.
46304 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46305
46306 # Variables whose values should be saved in libtool wrapper scripts and
46307 # restored at link time.
46308 variables_saved_for_relink=$lt_variables_saved_for_relink
46309
46310 # Do we need the "lib" prefix for modules?
46311 need_lib_prefix=$need_lib_prefix
46312
46313 # Do we need a version for libraries?
46314 need_version=$need_version
46315
46316 # Library versioning type.
46317 version_type=$version_type
46318
46319 # Shared library runtime path variable.
46320 runpath_var=$runpath_var
46321
46322 # Shared library path variable.
46323 shlibpath_var=$shlibpath_var
46324
46325 # Is shlibpath searched before the hard-coded library search path?
46326 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46327
46328 # Format of library name prefix.
46329 libname_spec=$lt_libname_spec
46330
46331 # List of archive names.  First name is the real one, the rest are links.
46332 # The last name is the one that the linker finds with -lNAME
46333 library_names_spec=$lt_library_names_spec
46334
46335 # The coded name of the library, if different from the real name.
46336 soname_spec=$lt_soname_spec
46337
46338 # Command to use after installation of a shared archive.
46339 postinstall_cmds=$lt_postinstall_cmds
46340
46341 # Command to use after uninstallation of a shared archive.
46342 postuninstall_cmds=$lt_postuninstall_cmds
46343
46344 # Commands used to finish a libtool library installation in a directory.
46345 finish_cmds=$lt_finish_cmds
46346
46347 # As "finish_cmds", except a single script fragment to be evaled but
46348 # not shown.
46349 finish_eval=$lt_finish_eval
46350
46351 # Whether we should hardcode library paths into libraries.
46352 hardcode_into_libs=$hardcode_into_libs
46353
46354 # Compile-time system search path for libraries.
46355 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46356
46357 # Run-time system search path for libraries.
46358 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46359
46360 # Whether dlopen is supported.
46361 dlopen_support=$enable_dlopen
46362
46363 # Whether dlopen of programs is supported.
46364 dlopen_self=$enable_dlopen_self
46365
46366 # Whether dlopen of statically linked programs is supported.
46367 dlopen_self_static=$enable_dlopen_self_static
46368
46369 # Commands to strip libraries.
46370 old_striplib=$lt_old_striplib
46371 striplib=$lt_striplib
46372
46373
46374 # The linker used to build libraries.
46375 LD=$lt_LD
46376
46377 # Commands used to build an old-style archive.
46378 old_archive_cmds=$lt_old_archive_cmds
46379
46380 # A language specific compiler.
46381 CC=$lt_compiler
46382
46383 # Is the compiler the GNU compiler?
46384 with_gcc=$GCC
46385
46386 # Compiler flag to turn off builtin functions.
46387 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46388
46389 # How to pass a linker flag through the compiler.
46390 wl=$lt_lt_prog_compiler_wl
46391
46392 # Additional compiler flags for building library objects.
46393 pic_flag=$lt_lt_prog_compiler_pic
46394
46395 # Compiler flag to prevent dynamic linking.
46396 link_static_flag=$lt_lt_prog_compiler_static
46397
46398 # Does compiler simultaneously support -c and -o options?
46399 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46400
46401 # Whether or not to add -lc for building shared libraries.
46402 build_libtool_need_lc=$archive_cmds_need_lc
46403
46404 # Whether or not to disallow shared libs when runtime libs are static.
46405 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46406
46407 # Compiler flag to allow reflexive dlopens.
46408 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46409
46410 # Compiler flag to generate shared objects directly from archives.
46411 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46412
46413 # Whether the compiler copes with passing no objects directly.
46414 compiler_needs_object=$lt_compiler_needs_object
46415
46416 # Create an old-style archive from a shared archive.
46417 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46418
46419 # Create a temporary old-style archive to link instead of a shared archive.
46420 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46421
46422 # Commands used to build a shared archive.
46423 archive_cmds=$lt_archive_cmds
46424 archive_expsym_cmds=$lt_archive_expsym_cmds
46425
46426 # Commands used to build a loadable module if different from building
46427 # a shared archive.
46428 module_cmds=$lt_module_cmds
46429 module_expsym_cmds=$lt_module_expsym_cmds
46430
46431 # Whether we are building with GNU ld or not.
46432 with_gnu_ld=$lt_with_gnu_ld
46433
46434 # Flag that allows shared libraries with undefined symbols to be built.
46435 allow_undefined_flag=$lt_allow_undefined_flag
46436
46437 # Flag that enforces no undefined symbols.
46438 no_undefined_flag=$lt_no_undefined_flag
46439
46440 # Flag to hardcode \$libdir into a binary during linking.
46441 # This must work even if \$libdir does not exist
46442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46443
46444 # If ld is used when linking, flag to hardcode \$libdir into a binary
46445 # during linking.  This must work even if \$libdir does not exist.
46446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46447
46448 # Whether we need a single "-rpath" flag with a separated argument.
46449 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46450
46451 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46452 # DIR into the resulting binary.
46453 hardcode_direct=$hardcode_direct
46454
46455 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46456 # DIR into the resulting binary and the resulting library dependency is
46457 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46458 # library is relocated.
46459 hardcode_direct_absolute=$hardcode_direct_absolute
46460
46461 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46462 # into the resulting binary.
46463 hardcode_minus_L=$hardcode_minus_L
46464
46465 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46466 # into the resulting binary.
46467 hardcode_shlibpath_var=$hardcode_shlibpath_var
46468
46469 # Set to "yes" if building a shared library automatically hardcodes DIR
46470 # into the library and all subsequent libraries and executables linked
46471 # against it.
46472 hardcode_automatic=$hardcode_automatic
46473
46474 # Set to yes if linker adds runtime paths of dependent libraries
46475 # to runtime path list.
46476 inherit_rpath=$inherit_rpath
46477
46478 # Whether libtool must link a program against all its dependency libraries.
46479 link_all_deplibs=$link_all_deplibs
46480
46481 # Fix the shell variable \$srcfile for the compiler.
46482 fix_srcfile_path=$lt_fix_srcfile_path
46483
46484 # Set to "yes" if exported symbols are required.
46485 always_export_symbols=$always_export_symbols
46486
46487 # The commands to list exported symbols.
46488 export_symbols_cmds=$lt_export_symbols_cmds
46489
46490 # Symbols that should not be listed in the preloaded symbols.
46491 exclude_expsyms=$lt_exclude_expsyms
46492
46493 # Symbols that must always be exported.
46494 include_expsyms=$lt_include_expsyms
46495
46496 # Commands necessary for linking programs (against libraries) with templates.
46497 prelink_cmds=$lt_prelink_cmds
46498
46499 # Specify filename containing input files.
46500 file_list_spec=$lt_file_list_spec
46501
46502 # How to hardcode a shared library path into an executable.
46503 hardcode_action=$hardcode_action
46504
46505 # The directories searched by this compiler when creating a shared library.
46506 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46507
46508 # Dependencies to place before and after the objects being linked to
46509 # create a shared library.
46510 predep_objects=$lt_predep_objects
46511 postdep_objects=$lt_postdep_objects
46512 predeps=$lt_predeps
46513 postdeps=$lt_postdeps
46514
46515 # The library search path used internally by the compiler when linking
46516 # a shared library.
46517 compiler_lib_search_path=$lt_compiler_lib_search_path
46518
46519 # ### END LIBTOOL CONFIG
46520
46521 _LT_EOF
46522
46523   case $host_os in
46524   aix3*)
46525     cat <<\_LT_EOF >> "$cfgfile"
46526 # AIX sometimes has problems with the GCC collect2 program.  For some
46527 # reason, if we set the COLLECT_NAMES environment variable, the problems
46528 # vanish in a puff of smoke.
46529 if test "X${COLLECT_NAMES+set}" != Xset; then
46530   COLLECT_NAMES=
46531   export COLLECT_NAMES
46532 fi
46533 _LT_EOF
46534     ;;
46535   esac
46536
46537
46538 ltmain="$ac_aux_dir/ltmain.sh"
46539
46540
46541   # We use sed instead of cat because bash on DJGPP gets confused if
46542   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
46543   # text mode, it properly converts lines to CR/LF.  This bash problem
46544   # is reportedly fixed, but why not run on old versions too?
46545   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46546     || (rm -f "$cfgfile"; exit 1)
46547
46548   case $xsi_shell in
46549   yes)
46550     cat << \_LT_EOF >> "$cfgfile"
46551
46552 # func_dirname file append nondir_replacement
46553 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46554 # otherwise set result to NONDIR_REPLACEMENT.
46555 func_dirname ()
46556 {
46557   case ${1} in
46558     */*) func_dirname_result="${1%/*}${2}" ;;
46559     *  ) func_dirname_result="${3}" ;;
46560   esac
46561 }
46562
46563 # func_basename file
46564 func_basename ()
46565 {
46566   func_basename_result="${1##*/}"
46567 }
46568
46569 # func_dirname_and_basename file append nondir_replacement
46570 # perform func_basename and func_dirname in a single function
46571 # call:
46572 #   dirname:  Compute the dirname of FILE.  If nonempty,
46573 #             add APPEND to the result, otherwise set result
46574 #             to NONDIR_REPLACEMENT.
46575 #             value returned in "$func_dirname_result"
46576 #   basename: Compute filename of FILE.
46577 #             value retuned in "$func_basename_result"
46578 # Implementation must be kept synchronized with func_dirname
46579 # and func_basename. For efficiency, we do not delegate to
46580 # those functions but instead duplicate the functionality here.
46581 func_dirname_and_basename ()
46582 {
46583   case ${1} in
46584     */*) func_dirname_result="${1%/*}${2}" ;;
46585     *  ) func_dirname_result="${3}" ;;
46586   esac
46587   func_basename_result="${1##*/}"
46588 }
46589
46590 # func_stripname prefix suffix name
46591 # strip PREFIX and SUFFIX off of NAME.
46592 # PREFIX and SUFFIX must not contain globbing or regex special
46593 # characters, hashes, percent signs, but SUFFIX may contain a leading
46594 # dot (in which case that matches only a dot).
46595 func_stripname ()
46596 {
46597   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46598   # positional parameters, so assign one to ordinary parameter first.
46599   func_stripname_result=${3}
46600   func_stripname_result=${func_stripname_result#"${1}"}
46601   func_stripname_result=${func_stripname_result%"${2}"}
46602 }
46603
46604 # func_opt_split
46605 func_opt_split ()
46606 {
46607   func_opt_split_opt=${1%%=*}
46608   func_opt_split_arg=${1#*=}
46609 }
46610
46611 # func_lo2o object
46612 func_lo2o ()
46613 {
46614   case ${1} in
46615     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46616     *)    func_lo2o_result=${1} ;;
46617   esac
46618 }
46619
46620 # func_xform libobj-or-source
46621 func_xform ()
46622 {
46623   func_xform_result=${1%.*}.lo
46624 }
46625
46626 # func_arith arithmetic-term...
46627 func_arith ()
46628 {
46629   func_arith_result=$(( $* ))
46630 }
46631
46632 # func_len string
46633 # STRING may not start with a hyphen.
46634 func_len ()
46635 {
46636   func_len_result=${#1}
46637 }
46638
46639 _LT_EOF
46640     ;;
46641   *) # Bourne compatible functions.
46642     cat << \_LT_EOF >> "$cfgfile"
46643
46644 # func_dirname file append nondir_replacement
46645 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46646 # otherwise set result to NONDIR_REPLACEMENT.
46647 func_dirname ()
46648 {
46649   # Extract subdirectory from the argument.
46650   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46651   if test "X$func_dirname_result" = "X${1}"; then
46652     func_dirname_result="${3}"
46653   else
46654     func_dirname_result="$func_dirname_result${2}"
46655   fi
46656 }
46657
46658 # func_basename file
46659 func_basename ()
46660 {
46661   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46662 }
46663
46664
46665 # func_stripname prefix suffix name
46666 # strip PREFIX and SUFFIX off of NAME.
46667 # PREFIX and SUFFIX must not contain globbing or regex special
46668 # characters, hashes, percent signs, but SUFFIX may contain a leading
46669 # dot (in which case that matches only a dot).
46670 # func_strip_suffix prefix name
46671 func_stripname ()
46672 {
46673   case ${2} in
46674     .*) func_stripname_result=`$ECHO "X${3}" \
46675            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46676     *)  func_stripname_result=`$ECHO "X${3}" \
46677            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46678   esac
46679 }
46680
46681 # sed scripts:
46682 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46683 my_sed_long_arg='1s/^-[^=]*=//'
46684
46685 # func_opt_split
46686 func_opt_split ()
46687 {
46688   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46689   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46690 }
46691
46692 # func_lo2o object
46693 func_lo2o ()
46694 {
46695   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46696 }
46697
46698 # func_xform libobj-or-source
46699 func_xform ()
46700 {
46701   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46702 }
46703
46704 # func_arith arithmetic-term...
46705 func_arith ()
46706 {
46707   func_arith_result=`expr "$@"`
46708 }
46709
46710 # func_len string
46711 # STRING may not start with a hyphen.
46712 func_len ()
46713 {
46714   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46715 }
46716
46717 _LT_EOF
46718 esac
46719
46720 case $lt_shell_append in
46721   yes)
46722     cat << \_LT_EOF >> "$cfgfile"
46723
46724 # func_append var value
46725 # Append VALUE to the end of shell variable VAR.
46726 func_append ()
46727 {
46728   eval "$1+=\$2"
46729 }
46730 _LT_EOF
46731     ;;
46732   *)
46733     cat << \_LT_EOF >> "$cfgfile"
46734
46735 # func_append var value
46736 # Append VALUE to the end of shell variable VAR.
46737 func_append ()
46738 {
46739   eval "$1=\$$1\$2"
46740 }
46741
46742 _LT_EOF
46743     ;;
46744   esac
46745
46746
46747   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46748     || (rm -f "$cfgfile"; exit 1)
46749
46750   mv -f "$cfgfile" "$ofile" ||
46751     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46752   chmod +x "$ofile"
46753
46754
46755     cat <<_LT_EOF >> "$ofile"
46756
46757 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46758
46759 # The linker used to build libraries.
46760 LD=$lt_LD_CXX
46761
46762 # Commands used to build an old-style archive.
46763 old_archive_cmds=$lt_old_archive_cmds_CXX
46764
46765 # A language specific compiler.
46766 CC=$lt_compiler_CXX
46767
46768 # Is the compiler the GNU compiler?
46769 with_gcc=$GCC_CXX
46770
46771 # Compiler flag to turn off builtin functions.
46772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46773
46774 # How to pass a linker flag through the compiler.
46775 wl=$lt_lt_prog_compiler_wl_CXX
46776
46777 # Additional compiler flags for building library objects.
46778 pic_flag=$lt_lt_prog_compiler_pic_CXX
46779
46780 # Compiler flag to prevent dynamic linking.
46781 link_static_flag=$lt_lt_prog_compiler_static_CXX
46782
46783 # Does compiler simultaneously support -c and -o options?
46784 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46785
46786 # Whether or not to add -lc for building shared libraries.
46787 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46788
46789 # Whether or not to disallow shared libs when runtime libs are static.
46790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46791
46792 # Compiler flag to allow reflexive dlopens.
46793 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46794
46795 # Compiler flag to generate shared objects directly from archives.
46796 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46797
46798 # Whether the compiler copes with passing no objects directly.
46799 compiler_needs_object=$lt_compiler_needs_object_CXX
46800
46801 # Create an old-style archive from a shared archive.
46802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46803
46804 # Create a temporary old-style archive to link instead of a shared archive.
46805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46806
46807 # Commands used to build a shared archive.
46808 archive_cmds=$lt_archive_cmds_CXX
46809 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46810
46811 # Commands used to build a loadable module if different from building
46812 # a shared archive.
46813 module_cmds=$lt_module_cmds_CXX
46814 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46815
46816 # Whether we are building with GNU ld or not.
46817 with_gnu_ld=$lt_with_gnu_ld_CXX
46818
46819 # Flag that allows shared libraries with undefined symbols to be built.
46820 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46821
46822 # Flag that enforces no undefined symbols.
46823 no_undefined_flag=$lt_no_undefined_flag_CXX
46824
46825 # Flag to hardcode \$libdir into a binary during linking.
46826 # This must work even if \$libdir does not exist
46827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46828
46829 # If ld is used when linking, flag to hardcode \$libdir into a binary
46830 # during linking.  This must work even if \$libdir does not exist.
46831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46832
46833 # Whether we need a single "-rpath" flag with a separated argument.
46834 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46835
46836 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46837 # DIR into the resulting binary.
46838 hardcode_direct=$hardcode_direct_CXX
46839
46840 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46841 # DIR into the resulting binary and the resulting library dependency is
46842 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46843 # library is relocated.
46844 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46845
46846 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46847 # into the resulting binary.
46848 hardcode_minus_L=$hardcode_minus_L_CXX
46849
46850 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46851 # into the resulting binary.
46852 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46853
46854 # Set to "yes" if building a shared library automatically hardcodes DIR
46855 # into the library and all subsequent libraries and executables linked
46856 # against it.
46857 hardcode_automatic=$hardcode_automatic_CXX
46858
46859 # Set to yes if linker adds runtime paths of dependent libraries
46860 # to runtime path list.
46861 inherit_rpath=$inherit_rpath_CXX
46862
46863 # Whether libtool must link a program against all its dependency libraries.
46864 link_all_deplibs=$link_all_deplibs_CXX
46865
46866 # Fix the shell variable \$srcfile for the compiler.
46867 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46868
46869 # Set to "yes" if exported symbols are required.
46870 always_export_symbols=$always_export_symbols_CXX
46871
46872 # The commands to list exported symbols.
46873 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46874
46875 # Symbols that should not be listed in the preloaded symbols.
46876 exclude_expsyms=$lt_exclude_expsyms_CXX
46877
46878 # Symbols that must always be exported.
46879 include_expsyms=$lt_include_expsyms_CXX
46880
46881 # Commands necessary for linking programs (against libraries) with templates.
46882 prelink_cmds=$lt_prelink_cmds_CXX
46883
46884 # Specify filename containing input files.
46885 file_list_spec=$lt_file_list_spec_CXX
46886
46887 # How to hardcode a shared library path into an executable.
46888 hardcode_action=$hardcode_action_CXX
46889
46890 # The directories searched by this compiler when creating a shared library.
46891 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46892
46893 # Dependencies to place before and after the objects being linked to
46894 # create a shared library.
46895 predep_objects=$lt_predep_objects_CXX
46896 postdep_objects=$lt_postdep_objects_CXX
46897 predeps=$lt_predeps_CXX
46898 postdeps=$lt_postdeps_CXX
46899
46900 # The library search path used internally by the compiler when linking
46901 # a shared library.
46902 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46903
46904 # ### END LIBTOOL TAG CONFIG: CXX
46905 _LT_EOF
46906
46907  ;;
46908     "default-1":C)
46909     for ac_file in $CONFIG_FILES; do
46910       # Support "outfile[:infile[:infile...]]"
46911       case "$ac_file" in
46912         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46913       esac
46914       # PO directories have a Makefile.in generated from Makefile.in.in.
46915       case "$ac_file" in */Makefile.in)
46916         # Adjust a relative srcdir.
46917         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46918         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46919         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46920         # In autoconf-2.13 it is called $ac_given_srcdir.
46921         # In autoconf-2.50 it is called $srcdir.
46922         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46923         case "$ac_given_srcdir" in
46924           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46925           /*) top_srcdir="$ac_given_srcdir" ;;
46926           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
46927         esac
46928         # Treat a directory as a PO directory if and only if it has a
46929         # POTFILES.in file. This allows packages to have multiple PO
46930         # directories under different names or in different locations.
46931         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46932           rm -f "$ac_dir/POTFILES"
46933           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46934           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46935           POMAKEFILEDEPS="POTFILES.in"
46936           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46937           # on $ac_dir but don't depend on user-specified configuration
46938           # parameters.
46939           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46940             # The LINGUAS file contains the set of available languages.
46941             if test -n "$OBSOLETE_ALL_LINGUAS"; then
46942               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46943             fi
46944             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46945             # Hide the ALL_LINGUAS assigment from automake.
46946             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46947             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46948           else
46949             # The set of available languages was given in configure.in.
46950             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46951           fi
46952           # Compute POFILES
46953           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46954           # Compute UPDATEPOFILES
46955           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46956           # Compute DUMMYPOFILES
46957           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46958           # Compute GMOFILES
46959           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46960           case "$ac_given_srcdir" in
46961             .) srcdirpre= ;;
46962             *) srcdirpre='$(srcdir)/' ;;
46963           esac
46964           POFILES=
46965           UPDATEPOFILES=
46966           DUMMYPOFILES=
46967           GMOFILES=
46968           for lang in $ALL_LINGUAS; do
46969             POFILES="$POFILES $srcdirpre$lang.po"
46970             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46971             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46972             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46973           done
46974           # CATALOGS depends on both $ac_dir and the user's LINGUAS
46975           # environment variable.
46976           INST_LINGUAS=
46977           if test -n "$ALL_LINGUAS"; then
46978             for presentlang in $ALL_LINGUAS; do
46979               useit=no
46980               if test "%UNSET%" != "$LINGUAS"; then
46981                 desiredlanguages="$LINGUAS"
46982               else
46983                 desiredlanguages="$ALL_LINGUAS"
46984               fi
46985               for desiredlang in $desiredlanguages; do
46986                 # Use the presentlang catalog if desiredlang is
46987                 #   a. equal to presentlang, or
46988                 #   b. a variant of presentlang (because in this case,
46989                 #      presentlang can be used as a fallback for messages
46990                 #      which are not translated in the desiredlang catalog).
46991                 case "$desiredlang" in
46992                   "$presentlang"*) useit=yes;;
46993                 esac
46994               done
46995               if test $useit = yes; then
46996                 INST_LINGUAS="$INST_LINGUAS $presentlang"
46997               fi
46998             done
46999           fi
47000           CATALOGS=
47001           if test -n "$INST_LINGUAS"; then
47002             for lang in $INST_LINGUAS; do
47003               CATALOGS="$CATALOGS $lang.gmo"
47004             done
47005           fi
47006           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
47007           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"
47008           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
47009             if test -f "$f"; then
47010               case "$f" in
47011                 *.orig | *.bak | *~) ;;
47012                 *) cat "$f" >> "$ac_dir/Makefile" ;;
47013               esac
47014             fi
47015           done
47016         fi
47017         ;;
47018       esac
47019     done ;;
47020     "default":C)
47021  ;;
47022
47023   esac
47024 done # for ac_tag
47025
47026
47027 { (exit 0); exit 0; }
47028 _ACEOF
47029 chmod +x $CONFIG_STATUS
47030 ac_clean_files=$ac_clean_files_save
47031
47032
47033 # configure is writing to config.log, and then calls config.status.
47034 # config.status does its own redirection, appending to config.log.
47035 # Unfortunately, on DOS this fails, as config.log is still kept open
47036 # by configure, so config.status won't be able to write to it; its
47037 # output is simply discarded.  So we exec the FD to /dev/null,
47038 # effectively closing config.log, so it can be properly (re)opened and
47039 # appended to by config.status.  When coming back to configure, we
47040 # need to make the FD available again.
47041 if test "$no_create" != yes; then
47042   ac_cs_success=:
47043   ac_config_status_args=
47044   test "$silent" = yes &&
47045     ac_config_status_args="$ac_config_status_args --quiet"
47046   exec 5>/dev/null
47047   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47048   exec 5>>config.log
47049   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47050   # would make configure fail if this is the last instruction.
47051   $ac_cs_success || { (exit 1); exit 1; }
47052 fi
47053
47054
47055 if test "${support_bat}" = "yes" ; then
47056    if test "x$QMAKE" = "xnone"; then
47057       { { echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
47058 echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
47059    { (exit 1); exit 1; }; }
47060    fi
47061
47062    QMAKEBIN="qmake"
47063    cd src/qt-console
47064    echo "Creating bat Makefile"
47065    touch bat
47066    chmod 755 bat
47067    rm -f Makefile
47068    $QMAKEBIN
47069    ${MAKE:-make} clean
47070    cd ${BUILD_DIR}
47071 fi
47072
47073 if test X"$GCC" = "Xyes" ; then
47074   echo "Doing make of dependencies"
47075   ${MAKE:-make} depend
47076 fi
47077
47078 cd src/qt-console
47079 chmod 755 install_conf_file build-depkgs-qt-console
47080 cd ${BUILD_DIR}
47081
47082 cd scripts
47083 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
47084 chmod 755 dvd-handler dvd-simulator
47085 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
47086 cd ..
47087
47088 c=updatedb
47089 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
47090 chmod 755 $c/update_postgresql_tables_10_to_11
47091
47092 c=src/cats
47093
47094 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
47095 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
47096
47097 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
47098 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
47099
47100 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
47101 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
47102
47103 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
47104 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
47105
47106 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
47107 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
47108
47109 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
47110 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
47111
47112
47113 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
47114 chmod 755 $c/sqlite
47115 chmod 755 $c/mysql
47116
47117 chmod 755 src/win32/build-depkgs-mingw32
47118
47119 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
47120    largefile_support="yes"
47121 fi
47122
47123 if test X"$GCC" = "Xyes" ; then
47124                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47125    if test "x${CCVERSION}" = "x" ; then
47126       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47127    fi
47128    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47129    if test x"${CXXVERSION}" = x ; then
47130       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47131    fi
47132 fi
47133
47134 # clean up any old junk
47135 echo " "
47136 echo "Cleaning up"
47137 echo " "
47138 ${MAKE:-make} clean
47139
47140 if test "x${db_type}" = "xInternal" ; then
47141    echo " "
47142    echo " "
47143    echo "You have not specified either --enable-client-only or one of the"
47144    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
47145    echo "  This is not permitted. Please reconfigure."
47146    echo " "
47147    echo "Aborting the configuration ..."
47148    echo " "
47149    echo " "
47150    exit 1
47151 fi
47152
47153 echo "
47154 Configuration on `date`:
47155
47156    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47157    Bacula version:          ${BACULA} ${VERSION} (${DATE})
47158    Source code location:    ${srcdir}
47159    Install binaries:        ${sbindir}
47160    Install libraries:       ${libdir}
47161    Install config files:    ${sysconfdir}
47162    Scripts directory:       ${scriptdir}
47163    Archive directory:       ${archivedir}
47164    Working directory:       ${working_dir}
47165    PID directory:           ${piddir}
47166    Subsys directory:        ${subsysdir}
47167    Man directory:           ${mandir}
47168    Data directory:          ${datarootdir}
47169    Plugin directory:        ${plugindir}
47170    C Compiler:              ${CC} ${CCVERSION}
47171    C++ Compiler:            ${CXX} ${CXXVERSION}
47172    Compiler flags:          ${WCFLAGS} ${CFLAGS}
47173    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
47174    Libraries:               ${LIBS}
47175    Statically Linked Tools: ${support_static_tools}
47176    Statically Linked FD:    ${support_static_fd}
47177    Statically Linked SD:    ${support_static_sd}
47178    Statically Linked DIR:   ${support_static_dir}
47179    Statically Linked CONS:  ${support_static_cons}
47180    Database type:           ${db_type}
47181    Database port:           ${db_port}
47182    Database lib:            ${DB_LIBS}
47183    Database name:           ${db_name}
47184    Database user:           ${db_user}
47185
47186    Job Output Email:        ${job_email}
47187    Traceback Email:         ${dump_email}
47188    SMTP Host Address:       ${smtp_host}
47189
47190    Director Port:           ${dir_port}
47191    File daemon Port:        ${fd_port}
47192    Storage daemon Port:     ${sd_port}
47193
47194    Director User:           ${dir_user}
47195    Director Group:          ${dir_group}
47196    Storage Daemon User:     ${sd_user}
47197    Storage DaemonGroup:     ${sd_group}
47198    File Daemon User:        ${fd_user}
47199    File Daemon Group:       ${fd_group}
47200
47201    SQL binaries Directory   ${SQL_BINDIR}
47202
47203    Large file support:      $largefile_support
47204    Bacula conio support:    ${got_conio} ${CONS_LIBS}
47205    readline support:        ${got_readline} ${PRTREADLINE_SRC}
47206    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
47207    TLS support:             ${support_tls}
47208    Encryption support:      ${support_crypto}
47209    ZLIB support:            ${have_zlib}
47210    enable-smartalloc:       ${support_smartalloc}
47211    enable-lockmgr:          ${support_lockmgr}
47212    bat support:             ${support_bat}
47213    enable-gnome:            ${support_gnome} ${gnome_version}
47214    enable-bwx-console:      ${support_wx_console} ${wx_version}
47215    enable-tray-monitor:     ${support_tray_monitor}
47216    client-only:             ${build_client_only}
47217    build-dird:              ${build_dird}
47218    build-stored:            ${build_stored}
47219    Plugin support:          ${have_plugins}
47220    ACL support:             ${have_acl}
47221    XATTR support:           ${have_xattr}
47222    Python support:          ${support_python} ${PYTHON_LIBS}
47223    Batch insert enabled:    ${support_batch_insert}
47224
47225   " > config.out
47226
47227 # create a small shell script useful for support with
47228 # configure options and config.out info
47229 cat > scripts/bacula_config << EOF
47230 #!/bin/sh
47231 cat << __EOC__
47232 $ $0 $ac_configure_args
47233 EOF
47234 cat config.out >> scripts/bacula_config
47235 echo __EOC__ >> scripts/bacula_config
47236 chmod 755 scripts/bacula_config
47237
47238 cat config.out
47239
47240 # Display a warning message if postgresql client lib is <= 8.1
47241 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47242         -a x$support_batch_insert = xyes
47243 then
47244         echo "WARNING: Your PostgreSQL client library is too old to detect "
47245         echo " if it was compiled with --enable-thread-safety, consider to"
47246         echo " upgrade it in order to avoid problems with Batch insert mode"
47247         echo
47248 fi