]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Tweak: rebuild configure
[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 ZLIBS
1047 AFS_CFLAGS
1048 AFS_LIBS
1049 CAP_LIBS
1050 FDLIBS
1051 DEBUG
1052 DINCLUDE
1053 DLIB
1054 DB_LIBS
1055 WCFLAGS
1056 WLDFLAGS
1057 WRAPLIBS
1058 OBJLIST
1059 TAPEDRIVE
1060 PSCMD
1061 WIN32
1062 MACOSX
1063 DISTNAME
1064 DISTVER
1065 LTLIBOBJS'
1066 ac_subst_files='MCOMMON'
1067       ac_precious_vars='build_alias
1068 host_alias
1069 target_alias
1070 CC
1071 CFLAGS
1072 LDFLAGS
1073 LIBS
1074 CPPFLAGS
1075 CXX
1076 CXXFLAGS
1077 CCC
1078 CPP
1079 WXCONFIG
1080 WXFLAGS
1081 CXXCPP
1082 XMKMF'
1083
1084
1085 # Initialize some variables set by options.
1086 ac_init_help=
1087 ac_init_version=false
1088 # The variables have the same names as the options, with
1089 # dashes changed to underlines.
1090 cache_file=/dev/null
1091 exec_prefix=NONE
1092 no_create=
1093 no_recursion=
1094 prefix=NONE
1095 program_prefix=NONE
1096 program_suffix=NONE
1097 program_transform_name=s,x,x,
1098 silent=
1099 site=
1100 srcdir=
1101 verbose=
1102 x_includes=NONE
1103 x_libraries=NONE
1104
1105 # Installation directory options.
1106 # These are left unexpanded so users can "make install exec_prefix=/foo"
1107 # and all the variables that are supposed to be based on exec_prefix
1108 # by default will actually change.
1109 # Use braces instead of parens because sh, perl, etc. also accept them.
1110 # (The list follows the same order as the GNU Coding Standards.)
1111 bindir='${exec_prefix}/bin'
1112 sbindir='${exec_prefix}/sbin'
1113 libexecdir='${exec_prefix}/libexec'
1114 datarootdir='${prefix}/share'
1115 datadir='${datarootdir}'
1116 sysconfdir='${prefix}/etc'
1117 sharedstatedir='${prefix}/com'
1118 localstatedir='${prefix}/var'
1119 includedir='${prefix}/include'
1120 oldincludedir='/usr/include'
1121 docdir='${datarootdir}/doc/${PACKAGE}'
1122 infodir='${datarootdir}/info'
1123 htmldir='${docdir}'
1124 dvidir='${docdir}'
1125 pdfdir='${docdir}'
1126 psdir='${docdir}'
1127 libdir='${exec_prefix}/lib'
1128 localedir='${datarootdir}/locale'
1129 mandir='${datarootdir}/man'
1130
1131 ac_prev=
1132 ac_dashdash=
1133 for ac_option
1134 do
1135   # If the previous option needs an argument, assign it.
1136   if test -n "$ac_prev"; then
1137     eval $ac_prev=\$ac_option
1138     ac_prev=
1139     continue
1140   fi
1141
1142   case $ac_option in
1143   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1144   *)    ac_optarg=yes ;;
1145   esac
1146
1147   # Accept the important Cygnus configure options, so we can diagnose typos.
1148
1149   case $ac_dashdash$ac_option in
1150   --)
1151     ac_dashdash=yes ;;
1152
1153   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1154     ac_prev=bindir ;;
1155   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1156     bindir=$ac_optarg ;;
1157
1158   -build | --build | --buil | --bui | --bu)
1159     ac_prev=build_alias ;;
1160   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1161     build_alias=$ac_optarg ;;
1162
1163   -cache-file | --cache-file | --cache-fil | --cache-fi \
1164   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1165     ac_prev=cache_file ;;
1166   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1167   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1168     cache_file=$ac_optarg ;;
1169
1170   --config-cache | -C)
1171     cache_file=config.cache ;;
1172
1173   -datadir | --datadir | --datadi | --datad)
1174     ac_prev=datadir ;;
1175   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1176     datadir=$ac_optarg ;;
1177
1178   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1179   | --dataroo | --dataro | --datar)
1180     ac_prev=datarootdir ;;
1181   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1182   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1183     datarootdir=$ac_optarg ;;
1184
1185   -disable-* | --disable-*)
1186     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1187     # Reject names that are not valid shell variable names.
1188     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1190    { (exit 1); exit 1; }; }
1191     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1192     eval enable_$ac_feature=no ;;
1193
1194   -docdir | --docdir | --docdi | --doc | --do)
1195     ac_prev=docdir ;;
1196   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1197     docdir=$ac_optarg ;;
1198
1199   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1200     ac_prev=dvidir ;;
1201   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1202     dvidir=$ac_optarg ;;
1203
1204   -enable-* | --enable-*)
1205     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1206     # Reject names that are not valid shell variable names.
1207     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1209    { (exit 1); exit 1; }; }
1210     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1211     eval enable_$ac_feature=\$ac_optarg ;;
1212
1213   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1214   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1215   | --exec | --exe | --ex)
1216     ac_prev=exec_prefix ;;
1217   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1218   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1219   | --exec=* | --exe=* | --ex=*)
1220     exec_prefix=$ac_optarg ;;
1221
1222   -gas | --gas | --ga | --g)
1223     # Obsolete; use --with-gas.
1224     with_gas=yes ;;
1225
1226   -help | --help | --hel | --he | -h)
1227     ac_init_help=long ;;
1228   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1229     ac_init_help=recursive ;;
1230   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1231     ac_init_help=short ;;
1232
1233   -host | --host | --hos | --ho)
1234     ac_prev=host_alias ;;
1235   -host=* | --host=* | --hos=* | --ho=*)
1236     host_alias=$ac_optarg ;;
1237
1238   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1239     ac_prev=htmldir ;;
1240   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1241   | --ht=*)
1242     htmldir=$ac_optarg ;;
1243
1244   -includedir | --includedir | --includedi | --included | --include \
1245   | --includ | --inclu | --incl | --inc)
1246     ac_prev=includedir ;;
1247   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1248   | --includ=* | --inclu=* | --incl=* | --inc=*)
1249     includedir=$ac_optarg ;;
1250
1251   -infodir | --infodir | --infodi | --infod | --info | --inf)
1252     ac_prev=infodir ;;
1253   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1254     infodir=$ac_optarg ;;
1255
1256   -libdir | --libdir | --libdi | --libd)
1257     ac_prev=libdir ;;
1258   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1259     libdir=$ac_optarg ;;
1260
1261   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1262   | --libexe | --libex | --libe)
1263     ac_prev=libexecdir ;;
1264   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1265   | --libexe=* | --libex=* | --libe=*)
1266     libexecdir=$ac_optarg ;;
1267
1268   -localedir | --localedir | --localedi | --localed | --locale)
1269     ac_prev=localedir ;;
1270   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1271     localedir=$ac_optarg ;;
1272
1273   -localstatedir | --localstatedir | --localstatedi | --localstated \
1274   | --localstate | --localstat | --localsta | --localst | --locals)
1275     ac_prev=localstatedir ;;
1276   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1277   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1278     localstatedir=$ac_optarg ;;
1279
1280   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1281     ac_prev=mandir ;;
1282   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1283     mandir=$ac_optarg ;;
1284
1285   -nfp | --nfp | --nf)
1286     # Obsolete; use --without-fp.
1287     with_fp=no ;;
1288
1289   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1290   | --no-cr | --no-c | -n)
1291     no_create=yes ;;
1292
1293   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1294   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1295     no_recursion=yes ;;
1296
1297   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1298   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1299   | --oldin | --oldi | --old | --ol | --o)
1300     ac_prev=oldincludedir ;;
1301   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1302   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1303   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1304     oldincludedir=$ac_optarg ;;
1305
1306   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1307     ac_prev=prefix ;;
1308   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1309     prefix=$ac_optarg ;;
1310
1311   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1312   | --program-pre | --program-pr | --program-p)
1313     ac_prev=program_prefix ;;
1314   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1315   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1316     program_prefix=$ac_optarg ;;
1317
1318   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1319   | --program-suf | --program-su | --program-s)
1320     ac_prev=program_suffix ;;
1321   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1322   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1323     program_suffix=$ac_optarg ;;
1324
1325   -program-transform-name | --program-transform-name \
1326   | --program-transform-nam | --program-transform-na \
1327   | --program-transform-n | --program-transform- \
1328   | --program-transform | --program-transfor \
1329   | --program-transfo | --program-transf \
1330   | --program-trans | --program-tran \
1331   | --progr-tra | --program-tr | --program-t)
1332     ac_prev=program_transform_name ;;
1333   -program-transform-name=* | --program-transform-name=* \
1334   | --program-transform-nam=* | --program-transform-na=* \
1335   | --program-transform-n=* | --program-transform-=* \
1336   | --program-transform=* | --program-transfor=* \
1337   | --program-transfo=* | --program-transf=* \
1338   | --program-trans=* | --program-tran=* \
1339   | --progr-tra=* | --program-tr=* | --program-t=*)
1340     program_transform_name=$ac_optarg ;;
1341
1342   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1343     ac_prev=pdfdir ;;
1344   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1345     pdfdir=$ac_optarg ;;
1346
1347   -psdir | --psdir | --psdi | --psd | --ps)
1348     ac_prev=psdir ;;
1349   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1350     psdir=$ac_optarg ;;
1351
1352   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1353   | -silent | --silent | --silen | --sile | --sil)
1354     silent=yes ;;
1355
1356   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1357     ac_prev=sbindir ;;
1358   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1359   | --sbi=* | --sb=*)
1360     sbindir=$ac_optarg ;;
1361
1362   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1363   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1364   | --sharedst | --shareds | --shared | --share | --shar \
1365   | --sha | --sh)
1366     ac_prev=sharedstatedir ;;
1367   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1368   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1369   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1370   | --sha=* | --sh=*)
1371     sharedstatedir=$ac_optarg ;;
1372
1373   -site | --site | --sit)
1374     ac_prev=site ;;
1375   -site=* | --site=* | --sit=*)
1376     site=$ac_optarg ;;
1377
1378   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1379     ac_prev=srcdir ;;
1380   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1381     srcdir=$ac_optarg ;;
1382
1383   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1384   | --syscon | --sysco | --sysc | --sys | --sy)
1385     ac_prev=sysconfdir ;;
1386   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1387   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1388     sysconfdir=$ac_optarg ;;
1389
1390   -target | --target | --targe | --targ | --tar | --ta | --t)
1391     ac_prev=target_alias ;;
1392   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1393     target_alias=$ac_optarg ;;
1394
1395   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1396     verbose=yes ;;
1397
1398   -version | --version | --versio | --versi | --vers | -V)
1399     ac_init_version=: ;;
1400
1401   -with-* | --with-*)
1402     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1403     # Reject names that are not valid shell variable names.
1404     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1405       { echo "$as_me: error: invalid package name: $ac_package" >&2
1406    { (exit 1); exit 1; }; }
1407     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1408     eval with_$ac_package=\$ac_optarg ;;
1409
1410   -without-* | --without-*)
1411     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1412     # Reject names that are not valid shell variable names.
1413     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1414       { echo "$as_me: error: invalid package name: $ac_package" >&2
1415    { (exit 1); exit 1; }; }
1416     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1417     eval with_$ac_package=no ;;
1418
1419   --x)
1420     # Obsolete; use --with-x.
1421     with_x=yes ;;
1422
1423   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1424   | --x-incl | --x-inc | --x-in | --x-i)
1425     ac_prev=x_includes ;;
1426   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1427   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1428     x_includes=$ac_optarg ;;
1429
1430   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1431   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1432     ac_prev=x_libraries ;;
1433   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1434   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1435     x_libraries=$ac_optarg ;;
1436
1437   -*) { echo "$as_me: error: unrecognized option: $ac_option
1438 Try \`$0 --help' for more information." >&2
1439    { (exit 1); exit 1; }; }
1440     ;;
1441
1442   *=*)
1443     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1444     # Reject names that are not valid shell variable names.
1445     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1446       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1447    { (exit 1); exit 1; }; }
1448     eval $ac_envvar=\$ac_optarg
1449     export $ac_envvar ;;
1450
1451   *)
1452     # FIXME: should be removed in autoconf 3.0.
1453     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1454     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1455       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1456     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1457     ;;
1458
1459   esac
1460 done
1461
1462 if test -n "$ac_prev"; then
1463   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1464   { echo "$as_me: error: missing argument to $ac_option" >&2
1465    { (exit 1); exit 1; }; }
1466 fi
1467
1468 # Be sure to have absolute directory names.
1469 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1470                 datadir sysconfdir sharedstatedir localstatedir includedir \
1471                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1472                 libdir localedir mandir
1473 do
1474   eval ac_val=\$$ac_var
1475   case $ac_val in
1476     [\\/$]* | ?:[\\/]* )  continue;;
1477     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1478   esac
1479   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1480    { (exit 1); exit 1; }; }
1481 done
1482
1483 # There might be people who depend on the old broken behavior: `$host'
1484 # used to hold the argument of --host etc.
1485 # FIXME: To remove some day.
1486 build=$build_alias
1487 host=$host_alias
1488 target=$target_alias
1489
1490 # FIXME: To remove some day.
1491 if test "x$host_alias" != x; then
1492   if test "x$build_alias" = x; then
1493     cross_compiling=maybe
1494     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1495     If a cross compiler is detected then cross compile mode will be used." >&2
1496   elif test "x$build_alias" != "x$host_alias"; then
1497     cross_compiling=yes
1498   fi
1499 fi
1500
1501 ac_tool_prefix=
1502 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1503
1504 test "$silent" = yes && exec 6>/dev/null
1505
1506
1507 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1508 ac_ls_di=`ls -di .` &&
1509 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1510   { echo "$as_me: error: Working directory cannot be determined" >&2
1511    { (exit 1); exit 1; }; }
1512 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1513   { echo "$as_me: error: pwd does not report name of working directory" >&2
1514    { (exit 1); exit 1; }; }
1515
1516
1517 # Find the source files, if location was not specified.
1518 if test -z "$srcdir"; then
1519   ac_srcdir_defaulted=yes
1520   # Try the directory containing this script, then the parent directory.
1521   ac_confdir=`$as_dirname -- "$0" ||
1522 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1523          X"$0" : 'X\(//\)[^/]' \| \
1524          X"$0" : 'X\(//\)$' \| \
1525          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1526 echo X"$0" |
1527     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1528             s//\1/
1529             q
1530           }
1531           /^X\(\/\/\)[^/].*/{
1532             s//\1/
1533             q
1534           }
1535           /^X\(\/\/\)$/{
1536             s//\1/
1537             q
1538           }
1539           /^X\(\/\).*/{
1540             s//\1/
1541             q
1542           }
1543           s/.*/./; q'`
1544   srcdir=$ac_confdir
1545   if test ! -r "$srcdir/$ac_unique_file"; then
1546     srcdir=..
1547   fi
1548 else
1549   ac_srcdir_defaulted=no
1550 fi
1551 if test ! -r "$srcdir/$ac_unique_file"; then
1552   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1553   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1554    { (exit 1); exit 1; }; }
1555 fi
1556 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1557 ac_abs_confdir=`(
1558         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1559    { (exit 1); exit 1; }; }
1560         pwd)`
1561 # When building in place, set srcdir=.
1562 if test "$ac_abs_confdir" = "$ac_pwd"; then
1563   srcdir=.
1564 fi
1565 # Remove unnecessary trailing slashes from srcdir.
1566 # Double slashes in file names in object file debugging info
1567 # mess up M-x gdb in Emacs.
1568 case $srcdir in
1569 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1570 esac
1571 for ac_var in $ac_precious_vars; do
1572   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1573   eval ac_env_${ac_var}_value=\$${ac_var}
1574   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1575   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1576 done
1577
1578 #
1579 # Report the --help message.
1580 #
1581 if test "$ac_init_help" = "long"; then
1582   # Omit some internal or obsolete options to make the list less imposing.
1583   # This message is too long to be a string in the A/UX 3.1 sh.
1584   cat <<_ACEOF
1585 \`configure' configures this package to adapt to many kinds of systems.
1586
1587 Usage: $0 [OPTION]... [VAR=VALUE]...
1588
1589 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1590 VAR=VALUE.  See below for descriptions of some of the useful variables.
1591
1592 Defaults for the options are specified in brackets.
1593
1594 Configuration:
1595   -h, --help              display this help and exit
1596       --help=short        display options specific to this package
1597       --help=recursive    display the short help of all the included packages
1598   -V, --version           display version information and exit
1599   -q, --quiet, --silent   do not print \`checking...' messages
1600       --cache-file=FILE   cache test results in FILE [disabled]
1601   -C, --config-cache      alias for \`--cache-file=config.cache'
1602   -n, --no-create         do not create output files
1603       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1604
1605 Installation directories:
1606   --prefix=PREFIX         install architecture-independent files in PREFIX
1607                           [$ac_default_prefix]
1608   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1609                           [PREFIX]
1610
1611 By default, \`make install' will install all the files in
1612 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1613 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1614 for instance \`--prefix=\$HOME'.
1615
1616 For better control, use the options below.
1617
1618 Fine tuning of the installation directories:
1619   --bindir=DIR           user executables [EPREFIX/bin]
1620   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1621   --libexecdir=DIR       program executables [EPREFIX/libexec]
1622   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1623   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1624   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1625   --libdir=DIR           object code libraries [EPREFIX/lib]
1626   --includedir=DIR       C header files [PREFIX/include]
1627   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1628   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1629   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1630   --infodir=DIR          info documentation [DATAROOTDIR/info]
1631   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1632   --mandir=DIR           man documentation [DATAROOTDIR/man]
1633   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1634   --htmldir=DIR          html documentation [DOCDIR]
1635   --dvidir=DIR           dvi documentation [DOCDIR]
1636   --pdfdir=DIR           pdf documentation [DOCDIR]
1637   --psdir=DIR            ps documentation [DOCDIR]
1638 _ACEOF
1639
1640   cat <<\_ACEOF
1641
1642 X features:
1643   --x-includes=DIR    X include files are in DIR
1644   --x-libraries=DIR   X library files are in DIR
1645
1646 System types:
1647   --build=BUILD     configure for building on BUILD [guessed]
1648   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1649 _ACEOF
1650 fi
1651
1652 if test -n "$ac_init_help"; then
1653
1654   cat <<\_ACEOF
1655
1656 Optional Features:
1657   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1658   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1659   --enable-libtool        enable building using GNU libtool [default=yes]
1660   --enable-shared[=PKGS]  build shared libraries [default=yes]
1661   --enable-static[=PKGS]  build static libraries [default=no]
1662   --enable-fast-install[=PKGS]
1663                           optimize for fast installation [default=yes]
1664   --disable-libtool-lock  avoid locking (might break parallel builds)
1665   --enable-includes       enable installing of include files [default=no]
1666   --disable-nls           do not use Native Language Support
1667   --disable-rpath         do not hardcode runtime library paths
1668   --enable-gnome          enable build of bgnome-console GUI [default=no]
1669   --enable-bat            enable build of bat Qt4 GUI [default=no]
1670   --enable-bwx-console    enable build of wxWidgets console [default=no]
1671   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1672                           KDE [default=no]
1673   --enable-smartalloc     enable smartalloc debugging support [default=no]
1674   --enable-lockmgr        enable lock manager support [default=no]
1675   --enable-static-tools   enable static tape tools [default=no]
1676   --enable-static-fd      enable static File daemon [default=no]
1677   --enable-static-sd      enable static Storage daemon [default=no]
1678   --enable-static-dir     enable static Director [default=no]
1679   --enable-static-cons    enable static Console [default=no]
1680   --enable-client-only    build client (File daemon) only [default=no]
1681   --enable-build-dird     enable building of dird (Director) [default=yes]
1682   --enable-build-stored   enable building of stored (Storage daemon)
1683                           [default=yes]
1684   --disable-conio         disable conio support [default=no]
1685   --enable-ipv6           enable ipv6 support [default=yes]
1686   --disable-readline      disable readline support [default=yes]
1687   --enable-batch-insert   enable the DB batch insert code [default=no]
1688   --disable-largefile     omit support for large files
1689   --disable-afs           disable afs support [default=auto]
1690   --disable-acl           disable acl support [default=auto]
1691   --disable-xattr         disable xattr support [default=auto]
1692
1693 Optional Packages:
1694   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1695   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1696   --with-pic              try to use only PIC/non-PIC objects [default=use
1697                           both]
1698   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1699   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1700   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1701   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1702   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1703   --without-libintl-prefix     don't search for libintl in includedir and libdir
1704   --with-included-gettext use the GNU gettext library included here
1705   --with-readline[=DIR]   specify readline library directory
1706   --with-python[=DIR]     Include Python support. DIR is the Python base
1707                           install directory, default is to search through a
1708                           number of common places for the Python files.
1709   --with-tcp-wrappers[=DIR]
1710                           enable tcpwrappers support
1711   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1712   --with-working-dir=PATH specify path of Bacula working directory
1713   --with-archivedir=PATH  specify path of SD archive directory
1714   --with-basename=RESNAME specify base resource name for daemons
1715   --with-hostname=RESNAME specify host name for daemons
1716   --with-scriptdir=PATH   specify path of Bacula scripts directory
1717   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1718   --with-logdir=PATH      specify path of Bacula logs directory
1719   --with-plugindir=PATH   specify path of Bacula plugins directory
1720   --with-dump-email=EMAIL dump email address
1721   --with-job-email=EMAIL  job output email address
1722   --with-smtp-host=HOST   SMTP mail host address
1723   --with-pid-dir=PATH     specify location of Bacula pid files
1724   --with-subsys-dir=PATH  specify location of Bacula subsys file
1725   --with-baseport=PORT    specify base port address for daemons
1726   --with-dir-password=PASSWORD
1727                           specify Director's password
1728   --with-fd-password=PASSWORD
1729                           specify Client's password
1730   --with-sd-password=PASSWORD
1731                           specify Storage daemon's password
1732   --with-mon-dir-password=PASSWORD
1733                           specify Director's password used by the monitor
1734   --with-mon-fd-password=PASSWORD
1735                           specify Client's password used by the monitor
1736   --with-mon-sd-password=PASSWORD
1737                           specify Storage daemon's password used by the
1738                           monitor
1739   --with-db-name=DBNAME   specify database name [default=bacula]
1740   --with-db-user=UNAME    specify database user [default=bacula]
1741   --with-db-password=PWD  specify database password [default=*none*]
1742   --with-db-port=DBPORT   specify a database port [default=null]
1743   --with-dir-user=USER    specify user for Director daemon
1744   --with-dir-group=GROUP  specify group for Director daemon
1745   --with-sd-user=USER     specify user for Storage daemon
1746   --with-sd-group=GROUP   specify group for Storage daemon
1747   --with-fd-user=USER     specify user for File daemon
1748   --with-fd-group=GROUP   specify group for File daemon
1749   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1750   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1751                           base install directory, [default=/usr/local/pgsql]
1752   --with-mysql[=DIR]      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-embedded-mysql[=DIR]
1756                           Include MySQL support. DIR is the MySQL base install
1757                           directory, default is to search through a number of
1758                           common places for the MySQL files.
1759   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1760                           install directory, default is to search through a
1761                           number of common places for the Ingres files.
1762   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1763                           install directory, default is to search through a
1764                           number of common places for the SQLite3 files.
1765   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1766                           directory, default is to search through a number of
1767                           common places for the DBI files.
1768   --with-dbi-driver[=DRIVER]
1769                           Suport for DBI driver. DRIVER is the one DBI driver
1770                           like Mysql, Postgresql, others. Default is to not
1771                           configure any driver.
1772   --with-x                use the X Window System
1773   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1774
1775 Some influential environment variables:
1776   CC          C compiler command
1777   CFLAGS      C compiler flags
1778   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1779               nonstandard directory <lib dir>
1780   LIBS        libraries to pass to the linker, e.g. -l<library>
1781   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1782               you have headers in a nonstandard directory <include dir>
1783   CXX         C++ compiler command
1784   CXXFLAGS    C++ compiler flags
1785   CPP         C preprocessor
1786   WXCONFIG    wx-config command. On some systems, you must set it to
1787               wx-config-2.6 to use wxWidgets 2.6.
1788   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1789   CXXCPP      C++ preprocessor
1790   XMKMF       Path to xmkmf, Makefile generator for X Window System
1791
1792 Use these variables to override the choices made by `configure' or to help
1793 it to find libraries and programs with nonstandard names/locations.
1794
1795 _ACEOF
1796 ac_status=$?
1797 fi
1798
1799 if test "$ac_init_help" = "recursive"; then
1800   # If there are subdirs, report their specific --help.
1801   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1802     test -d "$ac_dir" || continue
1803     ac_builddir=.
1804
1805 case "$ac_dir" in
1806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1807 *)
1808   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1809   # A ".." for each directory in $ac_dir_suffix.
1810   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1811   case $ac_top_builddir_sub in
1812   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1813   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1814   esac ;;
1815 esac
1816 ac_abs_top_builddir=$ac_pwd
1817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1818 # for backward compatibility:
1819 ac_top_builddir=$ac_top_build_prefix
1820
1821 case $srcdir in
1822   .)  # We are building in place.
1823     ac_srcdir=.
1824     ac_top_srcdir=$ac_top_builddir_sub
1825     ac_abs_top_srcdir=$ac_pwd ;;
1826   [\\/]* | ?:[\\/]* )  # Absolute name.
1827     ac_srcdir=$srcdir$ac_dir_suffix;
1828     ac_top_srcdir=$srcdir
1829     ac_abs_top_srcdir=$srcdir ;;
1830   *) # Relative name.
1831     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1832     ac_top_srcdir=$ac_top_build_prefix$srcdir
1833     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1834 esac
1835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1836
1837     cd "$ac_dir" || { ac_status=$?; continue; }
1838     # Check for guested configure.
1839     if test -f "$ac_srcdir/configure.gnu"; then
1840       echo &&
1841       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1842     elif test -f "$ac_srcdir/configure"; then
1843       echo &&
1844       $SHELL "$ac_srcdir/configure" --help=recursive
1845     else
1846       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1847     fi || ac_status=$?
1848     cd "$ac_pwd" || { ac_status=$?; break; }
1849   done
1850 fi
1851
1852 test -n "$ac_init_help" && exit $ac_status
1853 if $ac_init_version; then
1854   cat <<\_ACEOF
1855 configure
1856 generated by GNU Autoconf 2.61
1857
1858 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1859 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1860 This configure script is free software; the Free Software Foundation
1861 gives unlimited permission to copy, distribute and modify it.
1862 _ACEOF
1863   exit
1864 fi
1865 cat >config.log <<_ACEOF
1866 This file contains any messages produced by compilers while
1867 running configure, to aid debugging if configure makes a mistake.
1868
1869 It was created by $as_me, which was
1870 generated by GNU Autoconf 2.61.  Invocation command line was
1871
1872   $ $0 $@
1873
1874 _ACEOF
1875 exec 5>>config.log
1876 {
1877 cat <<_ASUNAME
1878 ## --------- ##
1879 ## Platform. ##
1880 ## --------- ##
1881
1882 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1883 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1884 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1885 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1886 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1887
1888 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1889 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1890
1891 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1892 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1893 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1894 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1895 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1896 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1897 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1898
1899 _ASUNAME
1900
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 for as_dir in $PATH
1903 do
1904   IFS=$as_save_IFS
1905   test -z "$as_dir" && as_dir=.
1906   echo "PATH: $as_dir"
1907 done
1908 IFS=$as_save_IFS
1909
1910 } >&5
1911
1912 cat >&5 <<_ACEOF
1913
1914
1915 ## ----------- ##
1916 ## Core tests. ##
1917 ## ----------- ##
1918
1919 _ACEOF
1920
1921
1922 # Keep a trace of the command line.
1923 # Strip out --no-create and --no-recursion so they do not pile up.
1924 # Strip out --silent because we don't want to record it for future runs.
1925 # Also quote any args containing shell meta-characters.
1926 # Make two passes to allow for proper duplicate-argument suppression.
1927 ac_configure_args=
1928 ac_configure_args0=
1929 ac_configure_args1=
1930 ac_must_keep_next=false
1931 for ac_pass in 1 2
1932 do
1933   for ac_arg
1934   do
1935     case $ac_arg in
1936     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1937     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1938     | -silent | --silent | --silen | --sile | --sil)
1939       continue ;;
1940     *\'*)
1941       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1942     esac
1943     case $ac_pass in
1944     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1945     2)
1946       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1947       if test $ac_must_keep_next = true; then
1948         ac_must_keep_next=false # Got value, back to normal.
1949       else
1950         case $ac_arg in
1951           *=* | --config-cache | -C | -disable-* | --disable-* \
1952           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1953           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1954           | -with-* | --with-* | -without-* | --without-* | --x)
1955             case "$ac_configure_args0 " in
1956               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1957             esac
1958             ;;
1959           -* ) ac_must_keep_next=true ;;
1960         esac
1961       fi
1962       ac_configure_args="$ac_configure_args '$ac_arg'"
1963       ;;
1964     esac
1965   done
1966 done
1967 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1968 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1969
1970 # When interrupted or exit'd, cleanup temporary files, and complete
1971 # config.log.  We remove comments because anyway the quotes in there
1972 # would cause problems or look ugly.
1973 # WARNING: Use '\'' to represent an apostrophe within the trap.
1974 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1975 trap 'exit_status=$?
1976   # Save into config.log some information that might help in debugging.
1977   {
1978     echo
1979
1980     cat <<\_ASBOX
1981 ## ---------------- ##
1982 ## Cache variables. ##
1983 ## ---------------- ##
1984 _ASBOX
1985     echo
1986     # The following way of writing the cache mishandles newlines in values,
1987 (
1988   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989     eval ac_val=\$$ac_var
1990     case $ac_val in #(
1991     *${as_nl}*)
1992       case $ac_var in #(
1993       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1994 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1995       esac
1996       case $ac_var in #(
1997       _ | IFS | as_nl) ;; #(
1998       *) $as_unset $ac_var ;;
1999       esac ;;
2000     esac
2001   done
2002   (set) 2>&1 |
2003     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2004     *${as_nl}ac_space=\ *)
2005       sed -n \
2006         "s/'\''/'\''\\\\'\'''\''/g;
2007           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2008       ;; #(
2009     *)
2010       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2011       ;;
2012     esac |
2013     sort
2014 )
2015     echo
2016
2017     cat <<\_ASBOX
2018 ## ----------------- ##
2019 ## Output variables. ##
2020 ## ----------------- ##
2021 _ASBOX
2022     echo
2023     for ac_var in $ac_subst_vars
2024     do
2025       eval ac_val=\$$ac_var
2026       case $ac_val in
2027       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028       esac
2029       echo "$ac_var='\''$ac_val'\''"
2030     done | sort
2031     echo
2032
2033     if test -n "$ac_subst_files"; then
2034       cat <<\_ASBOX
2035 ## ------------------- ##
2036 ## File substitutions. ##
2037 ## ------------------- ##
2038 _ASBOX
2039       echo
2040       for ac_var in $ac_subst_files
2041       do
2042         eval ac_val=\$$ac_var
2043         case $ac_val in
2044         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045         esac
2046         echo "$ac_var='\''$ac_val'\''"
2047       done | sort
2048       echo
2049     fi
2050
2051     if test -s confdefs.h; then
2052       cat <<\_ASBOX
2053 ## ----------- ##
2054 ## confdefs.h. ##
2055 ## ----------- ##
2056 _ASBOX
2057       echo
2058       cat confdefs.h
2059       echo
2060     fi
2061     test "$ac_signal" != 0 &&
2062       echo "$as_me: caught signal $ac_signal"
2063     echo "$as_me: exit $exit_status"
2064   } >&5
2065   rm -f core *.core core.conftest.* &&
2066     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2067     exit $exit_status
2068 ' 0
2069 for ac_signal in 1 2 13 15; do
2070   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2071 done
2072 ac_signal=0
2073
2074 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2075 rm -f -r conftest* confdefs.h
2076
2077 # Predefined preprocessor variables.
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_NAME "$PACKAGE_NAME"
2081 _ACEOF
2082
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2086 _ACEOF
2087
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2091 _ACEOF
2092
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_STRING "$PACKAGE_STRING"
2096 _ACEOF
2097
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2101 _ACEOF
2102
2103
2104 # Let the site file select an alternate cache file if it wants to.
2105 # Prefer explicitly selected file to automatically selected ones.
2106 if test -n "$CONFIG_SITE"; then
2107   set x "$CONFIG_SITE"
2108 elif test "x$prefix" != xNONE; then
2109   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2110 else
2111   set x "$ac_default_prefix/share/config.site" \
2112         "$ac_default_prefix/etc/config.site"
2113 fi
2114 shift
2115 for ac_site_file
2116 do
2117   if test -r "$ac_site_file"; then
2118     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2119 echo "$as_me: loading site script $ac_site_file" >&6;}
2120     sed 's/^/| /' "$ac_site_file" >&5
2121     . "$ac_site_file"
2122   fi
2123 done
2124
2125 if test -r "$cache_file"; then
2126   # Some versions of bash will fail to source /dev/null (special
2127   # files actually), so we avoid doing that.
2128   if test -f "$cache_file"; then
2129     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2130 echo "$as_me: loading cache $cache_file" >&6;}
2131     case $cache_file in
2132       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2133       *)                      . "./$cache_file";;
2134     esac
2135   fi
2136 else
2137   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2138 echo "$as_me: creating cache $cache_file" >&6;}
2139   >$cache_file
2140 fi
2141
2142 # Check that the precious variables saved in the cache have kept the same
2143 # value.
2144 ac_cache_corrupted=false
2145 for ac_var in $ac_precious_vars; do
2146   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2147   eval ac_new_set=\$ac_env_${ac_var}_set
2148   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2149   eval ac_new_val=\$ac_env_${ac_var}_value
2150   case $ac_old_set,$ac_new_set in
2151     set,)
2152       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2153 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2154       ac_cache_corrupted=: ;;
2155     ,set)
2156       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2157 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2158       ac_cache_corrupted=: ;;
2159     ,);;
2160     *)
2161       if test "x$ac_old_val" != "x$ac_new_val"; then
2162         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2163 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2164         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2165 echo "$as_me:   former value:  $ac_old_val" >&2;}
2166         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2167 echo "$as_me:   current value: $ac_new_val" >&2;}
2168         ac_cache_corrupted=:
2169       fi;;
2170   esac
2171   # Pass precious variables to config.status.
2172   if test "$ac_new_set" = set; then
2173     case $ac_new_val in
2174     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2175     *) ac_arg=$ac_var=$ac_new_val ;;
2176     esac
2177     case " $ac_configure_args " in
2178       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2179       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2180     esac
2181   fi
2182 done
2183 if $ac_cache_corrupted; then
2184   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2185 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2186   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2187 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2188    { (exit 1); exit 1; }; }
2189 fi
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207 ac_ext=c
2208 ac_cpp='$CPP $CPPFLAGS'
2209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212
2213
2214 BUILD_DIR=`pwd`
2215 cd ..
2216 TOP_DIR=`pwd`
2217 cd ${BUILD_DIR}
2218
2219
2220 ac_aux_dir=
2221 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2222   if test -f "$ac_dir/install-sh"; then
2223     ac_aux_dir=$ac_dir
2224     ac_install_sh="$ac_aux_dir/install-sh -c"
2225     break
2226   elif test -f "$ac_dir/install.sh"; then
2227     ac_aux_dir=$ac_dir
2228     ac_install_sh="$ac_aux_dir/install.sh -c"
2229     break
2230   elif test -f "$ac_dir/shtool"; then
2231     ac_aux_dir=$ac_dir
2232     ac_install_sh="$ac_aux_dir/shtool install -c"
2233     break
2234   fi
2235 done
2236 if test -z "$ac_aux_dir"; then
2237   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2238 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2239    { (exit 1); exit 1; }; }
2240 fi
2241
2242 # These three variables are undocumented and unsupported,
2243 # and are intended to be withdrawn in a future Autoconf release.
2244 # They can cause serious problems if a builder's source tree is in a directory
2245 # whose full name contains unusual characters.
2246 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2247 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2248 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2249
2250
2251 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2252
2253
2254 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2255 WIN32MAINDIR=${BUILD_DIR}
2256 WIN32TOPDIR=${TOP_DIR}
2257
2258
2259
2260
2261 for ac_prog in true
2262 do
2263   # Extract the first word of "$ac_prog", so it can be a program name with args.
2264 set dummy $ac_prog; ac_word=$2
2265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2267 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2268   echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270   case $TRUEPRG in
2271   [\\/]* | ?:[\\/]*)
2272   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2273   ;;
2274   *)
2275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278   IFS=$as_save_IFS
2279   test -z "$as_dir" && as_dir=.
2280   for ac_exec_ext in '' $ac_executable_extensions; do
2281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2282     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284     break 2
2285   fi
2286 done
2287 done
2288 IFS=$as_save_IFS
2289
2290   ;;
2291 esac
2292 fi
2293 TRUEPRG=$ac_cv_path_TRUEPRG
2294 if test -n "$TRUEPRG"; then
2295   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2296 echo "${ECHO_T}$TRUEPRG" >&6; }
2297 else
2298   { echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6; }
2300 fi
2301
2302
2303   test -n "$TRUEPRG" && break
2304 done
2305 test -n "$TRUEPRG" || TRUEPRG=":"
2306
2307 for ac_prog in false
2308 do
2309   # Extract the first word of "$ac_prog", so it can be a program name with args.
2310 set dummy $ac_prog; ac_word=$2
2311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2313 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2314   echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316   case $FALSEPRG in
2317   [\\/]* | ?:[\\/]*)
2318   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2319   ;;
2320   *)
2321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 for as_dir in $PATH
2323 do
2324   IFS=$as_save_IFS
2325   test -z "$as_dir" && as_dir=.
2326   for ac_exec_ext in '' $ac_executable_extensions; do
2327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330     break 2
2331   fi
2332 done
2333 done
2334 IFS=$as_save_IFS
2335
2336   ;;
2337 esac
2338 fi
2339 FALSEPRG=$ac_cv_path_FALSEPRG
2340 if test -n "$FALSEPRG"; then
2341   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2342 echo "${ECHO_T}$FALSEPRG" >&6; }
2343 else
2344   { echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6; }
2346 fi
2347
2348
2349   test -n "$FALSEPRG" && break
2350 done
2351 test -n "$FALSEPRG" || FALSEPRG=":"
2352
2353
2354
2355 post_host=
2356 if test "x$BACULA" != x; then
2357    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2358 fi
2359 BACULA=${BACULA:-Bacula}
2360 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2361 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2362 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2363
2364 LIBBAC_LT_CURRENT=`sed -n -e 's/^.*LIBBAC_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2365 LIBBAC_LT_REVISION=`sed -n -e 's/^.*LIBBAC_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2366 LIBBAC_LT_AGE=`sed -n -e 's/^.*LIBBAC_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2367 LIBBACCFG_LT_CURRENT=`sed -n -e 's/^.*LIBBACCFG_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2368 LIBBACCFG_LT_REVISION=`sed -n -e 's/^.*LIBBACCFG_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2369 LIBBACCFG_LT_AGE=`sed -n -e 's/^.*LIBBACCFG_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2370 LIBBACPY_LT_CURRENT=`sed -n -e 's/^.*LIBBACPY_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2371 LIBBACPY_LT_REVISION=`sed -n -e 's/^.*LIBBACPY_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2372 LIBBACPY_LT_AGE=`sed -n -e 's/^.*LIBBACPY_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2373
2374
2375 LIBBACSQL_LT_CURRENT=`sed -n -e 's/^.*LIBBACSQL_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2376 LIBBACSQL_LT_REVISION=`sed -n -e 's/^.*LIBBACSQL_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2377 LIBBACSQL_LT_AGE=`sed -n -e 's/^.*LIBBACSQL_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2378
2379 LIBBACFIND_LT_CURRENT=`sed -n -e 's/^.*LIBBACFIND_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2380 LIBBACFIND_LT_REVISION=`sed -n -e 's/^.*LIBBACFIND_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2381 LIBBACFIND_LT_AGE=`sed -n -e 's/^.*LIBBACFIND_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2382
2383 echo "configuring for ${BACULA} $VERSION ($DATE)"
2384
2385
2386
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_CC+set}" = set; then
2398   echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400   if test -n "$CC"; then
2401   ac_cv_prog_CC="$CC" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408   for ac_exec_ext in '' $ac_executable_extensions; do
2409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412     break 2
2413   fi
2414 done
2415 done
2416 IFS=$as_save_IFS
2417
2418 fi
2419 fi
2420 CC=$ac_cv_prog_CC
2421 if test -n "$CC"; then
2422   { echo "$as_me:$LINENO: result: $CC" >&5
2423 echo "${ECHO_T}$CC" >&6; }
2424 else
2425   { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2427 fi
2428
2429
2430 fi
2431 if test -z "$ac_cv_prog_CC"; then
2432   ac_ct_CC=$CC
2433   # Extract the first word of "gcc", so it can be a program name with args.
2434 set dummy gcc; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438   echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440   if test -n "$ac_ct_CC"; then
2441   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446   IFS=$as_save_IFS
2447   test -z "$as_dir" && as_dir=.
2448   for ac_exec_ext in '' $ac_executable_extensions; do
2449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450     ac_cv_prog_ac_ct_CC="gcc"
2451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452     break 2
2453   fi
2454 done
2455 done
2456 IFS=$as_save_IFS
2457
2458 fi
2459 fi
2460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461 if test -n "$ac_ct_CC"; then
2462   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463 echo "${ECHO_T}$ac_ct_CC" >&6; }
2464 else
2465   { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2467 fi
2468
2469   if test "x$ac_ct_CC" = x; then
2470     CC=""
2471   else
2472     case $cross_compiling:$ac_tool_warned in
2473 yes:)
2474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet.  If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&5
2477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet.  If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480 ac_tool_warned=yes ;;
2481 esac
2482     CC=$ac_ct_CC
2483   fi
2484 else
2485   CC="$ac_cv_prog_CC"
2486 fi
2487
2488 if test -z "$CC"; then
2489           if test -n "$ac_tool_prefix"; then
2490     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2491 set dummy ${ac_tool_prefix}cc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495   echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497   if test -n "$CC"; then
2498   ac_cv_prog_CC="$CC" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503   IFS=$as_save_IFS
2504   test -z "$as_dir" && as_dir=.
2505   for ac_exec_ext in '' $ac_executable_extensions; do
2506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507     ac_cv_prog_CC="${ac_tool_prefix}cc"
2508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509     break 2
2510   fi
2511 done
2512 done
2513 IFS=$as_save_IFS
2514
2515 fi
2516 fi
2517 CC=$ac_cv_prog_CC
2518 if test -n "$CC"; then
2519   { echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6; }
2521 else
2522   { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2524 fi
2525
2526
2527   fi
2528 fi
2529 if test -z "$CC"; then
2530   # Extract the first word of "cc", so it can be a program name with args.
2531 set dummy cc; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535   echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537   if test -n "$CC"; then
2538   ac_cv_prog_CC="$CC" # Let the user override the test.
2539 else
2540   ac_prog_rejected=no
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2543 do
2544   IFS=$as_save_IFS
2545   test -z "$as_dir" && as_dir=.
2546   for ac_exec_ext in '' $ac_executable_extensions; do
2547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2548     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549        ac_prog_rejected=yes
2550        continue
2551      fi
2552     ac_cv_prog_CC="cc"
2553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554     break 2
2555   fi
2556 done
2557 done
2558 IFS=$as_save_IFS
2559
2560 if test $ac_prog_rejected = yes; then
2561   # We found a bogon in the path, so make sure we never use it.
2562   set dummy $ac_cv_prog_CC
2563   shift
2564   if test $# != 0; then
2565     # We chose a different compiler from the bogus one.
2566     # However, it has the same basename, so the bogon will be chosen
2567     # first if we set CC to just the basename; use the full file name.
2568     shift
2569     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2570   fi
2571 fi
2572 fi
2573 fi
2574 CC=$ac_cv_prog_CC
2575 if test -n "$CC"; then
2576   { echo "$as_me:$LINENO: result: $CC" >&5
2577 echo "${ECHO_T}$CC" >&6; }
2578 else
2579   { echo "$as_me:$LINENO: result: no" >&5
2580 echo "${ECHO_T}no" >&6; }
2581 fi
2582
2583
2584 fi
2585 if test -z "$CC"; then
2586   if test -n "$ac_tool_prefix"; then
2587   for ac_prog in cl.exe
2588   do
2589     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594   echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596   if test -n "$CC"; then
2597   ac_cv_prog_CC="$CC" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602   IFS=$as_save_IFS
2603   test -z "$as_dir" && as_dir=.
2604   for ac_exec_ext in '' $ac_executable_extensions; do
2605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2606     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608     break 2
2609   fi
2610 done
2611 done
2612 IFS=$as_save_IFS
2613
2614 fi
2615 fi
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618   { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2620 else
2621   { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2623 fi
2624
2625
2626     test -n "$CC" && break
2627   done
2628 fi
2629 if test -z "$CC"; then
2630   ac_ct_CC=$CC
2631   for ac_prog in cl.exe
2632 do
2633   # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy $ac_prog; ac_word=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   if test -n "$ac_ct_CC"; then
2641   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646   IFS=$as_save_IFS
2647   test -z "$as_dir" && as_dir=.
2648   for ac_exec_ext in '' $ac_executable_extensions; do
2649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650     ac_cv_prog_ac_ct_CC="$ac_prog"
2651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652     break 2
2653   fi
2654 done
2655 done
2656 IFS=$as_save_IFS
2657
2658 fi
2659 fi
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 echo "${ECHO_T}$ac_ct_CC" >&6; }
2664 else
2665   { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2667 fi
2668
2669
2670   test -n "$ac_ct_CC" && break
2671 done
2672
2673   if test "x$ac_ct_CC" = x; then
2674     CC=""
2675   else
2676     case $cross_compiling:$ac_tool_warned in
2677 yes:)
2678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet.  If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&5
2681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet.  If you think this
2683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684 ac_tool_warned=yes ;;
2685 esac
2686     CC=$ac_ct_CC
2687   fi
2688 fi
2689
2690 fi
2691
2692
2693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&5
2695 echo "$as_me: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&2;}
2697    { (exit 1); exit 1; }; }
2698
2699 # Provide some information about the compiler.
2700 echo "$as_me:$LINENO: checking for C compiler version" >&5
2701 ac_compiler=`set X $ac_compile; echo $2`
2702 { (ac_try="$ac_compiler --version >&5"
2703 case "(($ac_try" in
2704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705   *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708   (eval "$ac_compiler --version >&5") 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }
2712 { (ac_try="$ac_compiler -v >&5"
2713 case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_compiler -v >&5") 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }
2722 { (ac_try="$ac_compiler -V >&5"
2723 case "(($ac_try" in
2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725   *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728   (eval "$ac_compiler -V >&5") 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }
2732
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h.  */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h.  */
2739
2740 int
2741 main ()
2742 {
2743
2744   ;
2745   return 0;
2746 }
2747 _ACEOF
2748 ac_clean_files_save=$ac_clean_files
2749 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2750 # Try to create an executable without -o first, disregard a.out.
2751 # It will help us diagnose broken compilers, and finding out an intuition
2752 # of exeext.
2753 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756 #
2757 # List of possible output files, starting from the most likely.
2758 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759 # only as a last resort.  b.out is created by i960 compilers.
2760 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761 #
2762 # The IRIX 6 linker writes into existing files which may not be
2763 # executable, retaining their permissions.  Remove them first so a
2764 # subsequent execution test works.
2765 ac_rmfiles=
2766 for ac_file in $ac_files
2767 do
2768   case $ac_file in
2769     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771   esac
2772 done
2773 rm -f $ac_rmfiles
2774
2775 if { (ac_try="$ac_link_default"
2776 case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781   (eval "$ac_link_default") 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; then
2785   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2788 # so that the user can short-circuit this test for compilers unknown to
2789 # Autoconf.
2790 for ac_file in $ac_files ''
2791 do
2792   test -f "$ac_file" || continue
2793   case $ac_file in
2794     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2795         ;;
2796     [ab].out )
2797         # We found the default executable, but exeext='' is most
2798         # certainly right.
2799         break;;
2800     *.* )
2801         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2802         then :; else
2803            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804         fi
2805         # We set ac_cv_exeext here because the later test for it is not
2806         # safe: cross compilers may not add the suffix if given an `-o'
2807         # argument, so we may need to know it at that point already.
2808         # Even if this section looks crufty: it has the advantage of
2809         # actually working.
2810         break;;
2811     * )
2812         break;;
2813   esac
2814 done
2815 test "$ac_cv_exeext" = no && ac_cv_exeext=
2816
2817 else
2818   ac_file=''
2819 fi
2820
2821 { echo "$as_me:$LINENO: result: $ac_file" >&5
2822 echo "${ECHO_T}$ac_file" >&6; }
2823 if test -z "$ac_file"; then
2824   echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2826
2827 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2828 See \`config.log' for more details." >&5
2829 echo "$as_me: error: C compiler cannot create executables
2830 See \`config.log' for more details." >&2;}
2831    { (exit 77); exit 77; }; }
2832 fi
2833
2834 ac_exeext=$ac_cv_exeext
2835
2836 # Check that the compiler produces executables we can run.  If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2841 # If not cross compiling, check that we can run a simple program.
2842 if test "$cross_compiling" != yes; then
2843   if { ac_try='./$ac_file'
2844   { (case "(($ac_try" in
2845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846   *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849   (eval "$ac_try") 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; }; then
2853     cross_compiling=no
2854   else
2855     if test "$cross_compiling" = maybe; then
2856         cross_compiling=yes
2857     else
2858         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2859 If you meant to cross compile, use \`--host'.
2860 See \`config.log' for more details." >&5
2861 echo "$as_me: error: cannot run C compiled programs.
2862 If you meant to cross compile, use \`--host'.
2863 See \`config.log' for more details." >&2;}
2864    { (exit 1); exit 1; }; }
2865     fi
2866   fi
2867 fi
2868 { echo "$as_me:$LINENO: result: yes" >&5
2869 echo "${ECHO_T}yes" >&6; }
2870
2871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2872 ac_clean_files=$ac_clean_files_save
2873 # Check that the compiler produces executables we can run.  If not, either
2874 # the compiler is broken, or we cross compile.
2875 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2877 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878 echo "${ECHO_T}$cross_compiling" >&6; }
2879
2880 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2882 if { (ac_try="$ac_link"
2883 case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888   (eval "$ac_link") 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }; then
2892   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2894 # work properly (i.e., refer to `conftest.exe'), while it won't with
2895 # `rm'.
2896 for ac_file in conftest.exe conftest conftest.*; do
2897   test -f "$ac_file" || continue
2898   case $ac_file in
2899     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2900     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901           break;;
2902     * ) break;;
2903   esac
2904 done
2905 else
2906   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details." >&2;}
2910    { (exit 1); exit 1; }; }
2911 fi
2912
2913 rm -f conftest$ac_cv_exeext
2914 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2916
2917 rm -f conftest.$ac_ext
2918 EXEEXT=$ac_cv_exeext
2919 ac_exeext=$EXEEXT
2920 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2922 if test "${ac_cv_objext+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931
2932 int
2933 main ()
2934 {
2935
2936   ;
2937   return 0;
2938 }
2939 _ACEOF
2940 rm -f conftest.o conftest.obj
2941 if { (ac_try="$ac_compile"
2942 case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947   (eval "$ac_compile") 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }; then
2951   for ac_file in conftest.o conftest.obj conftest.*; do
2952   test -f "$ac_file" || continue;
2953   case $ac_file in
2954     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2955     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2956        break;;
2957   esac
2958 done
2959 else
2960   echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2962
2963 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2966 See \`config.log' for more details." >&2;}
2967    { (exit 1); exit 1; }; }
2968 fi
2969
2970 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2971 fi
2972 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2973 echo "${ECHO_T}$ac_cv_objext" >&6; }
2974 OBJEXT=$ac_cv_objext
2975 ac_objext=$OBJEXT
2976 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2977 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2978 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2979   echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981   cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h.  */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h.  */
2987
2988 int
2989 main ()
2990 {
2991 #ifndef __GNUC__
2992        choke me
2993 #endif
2994
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003   *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006   (eval "$ac_compile") 2>conftest.er1
3007   ac_status=$?
3008   grep -v '^ *+' conftest.er1 >conftest.err
3009   rm -f conftest.er1
3010   cat conftest.err >&5
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); } && {
3013          test -z "$ac_c_werror_flag" ||
3014          test ! -s conftest.err
3015        } && test -s conftest.$ac_objext; then
3016   ac_compiler_gnu=yes
3017 else
3018   echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3020
3021         ac_compiler_gnu=no
3022 fi
3023
3024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3026
3027 fi
3028 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3029 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3030 GCC=`test $ac_compiler_gnu = yes && echo yes`
3031 ac_test_CFLAGS=${CFLAGS+set}
3032 ac_save_CFLAGS=$CFLAGS
3033 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3034 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3035 if test "${ac_cv_prog_cc_g+set}" = set; then
3036   echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038   ac_save_c_werror_flag=$ac_c_werror_flag
3039    ac_c_werror_flag=yes
3040    ac_cv_prog_cc_g=no
3041    CFLAGS="-g"
3042    cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h.  */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h.  */
3048
3049 int
3050 main ()
3051 {
3052
3053   ;
3054   return 0;
3055 }
3056 _ACEOF
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3059 case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_compile") 2>conftest.er1
3065   ac_status=$?
3066   grep -v '^ *+' conftest.er1 >conftest.err
3067   rm -f conftest.er1
3068   cat conftest.err >&5
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } && {
3071          test -z "$ac_c_werror_flag" ||
3072          test ! -s conftest.err
3073        } && test -s conftest.$ac_objext; then
3074   ac_cv_prog_cc_g=yes
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079         CFLAGS=""
3080       cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086
3087 int
3088 main ()
3089 {
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3097 case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_compile") 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } && {
3109          test -z "$ac_c_werror_flag" ||
3110          test ! -s conftest.err
3111        } && test -s conftest.$ac_objext; then
3112   :
3113 else
3114   echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117         ac_c_werror_flag=$ac_save_c_werror_flag
3118          CFLAGS="-g"
3119          cat >conftest.$ac_ext <<_ACEOF
3120 /* confdefs.h.  */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h.  */
3125
3126 int
3127 main ()
3128 {
3129
3130   ;
3131   return 0;
3132 }
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3136 case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_compile") 2>conftest.er1
3142   ac_status=$?
3143   grep -v '^ *+' conftest.er1 >conftest.err
3144   rm -f conftest.er1
3145   cat conftest.err >&5
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); } && {
3148          test -z "$ac_c_werror_flag" ||
3149          test ! -s conftest.err
3150        } && test -s conftest.$ac_objext; then
3151   ac_cv_prog_cc_g=yes
3152 else
3153   echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156
3157 fi
3158
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 fi
3161
3162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 fi
3164
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166    ac_c_werror_flag=$ac_save_c_werror_flag
3167 fi
3168 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3169 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3170 if test "$ac_test_CFLAGS" = set; then
3171   CFLAGS=$ac_save_CFLAGS
3172 elif test $ac_cv_prog_cc_g = yes; then
3173   if test "$GCC" = yes; then
3174     CFLAGS="-g -O2"
3175   else
3176     CFLAGS="-g"
3177   fi
3178 else
3179   if test "$GCC" = yes; then
3180     CFLAGS="-O2"
3181   else
3182     CFLAGS=
3183   fi
3184 fi
3185 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3186 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3187 if test "${ac_cv_prog_cc_c89+set}" = set; then
3188   echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190   ac_cv_prog_cc_c89=no
3191 ac_save_CC=$CC
3192 cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h.  */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h.  */
3198 #include <stdarg.h>
3199 #include <stdio.h>
3200 #include <sys/types.h>
3201 #include <sys/stat.h>
3202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3203 struct buf { int x; };
3204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3205 static char *e (p, i)
3206      char **p;
3207      int i;
3208 {
3209   return p[i];
3210 }
3211 static char *f (char * (*g) (char **, int), char **p, ...)
3212 {
3213   char *s;
3214   va_list v;
3215   va_start (v,p);
3216   s = g (p, va_arg (v,int));
3217   va_end (v);
3218   return s;
3219 }
3220
3221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3222    function prototypes and stuff, but not '\xHH' hex character constants.
3223    These don't provoke an error unfortunately, instead are silently treated
3224    as 'x'.  The following induces an error, until -std is added to get
3225    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3226    array size at least.  It's necessary to write '\x00'==0 to get something
3227    that's true only with -std.  */
3228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3229
3230 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3231    inside strings and character constants.  */
3232 #define FOO(x) 'x'
3233 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3234
3235 int test (int i, double x);
3236 struct s1 {int (*f) (int a);};
3237 struct s2 {int (*f) (double a);};
3238 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3239 int argc;
3240 char **argv;
3241 int
3242 main ()
3243 {
3244 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3245   ;
3246   return 0;
3247 }
3248 _ACEOF
3249 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3250         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3251 do
3252   CC="$ac_save_CC $ac_arg"
3253   rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260   (eval "$ac_compile") 2>conftest.er1
3261   ac_status=$?
3262   grep -v '^ *+' conftest.er1 >conftest.err
3263   rm -f conftest.er1
3264   cat conftest.err >&5
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); } && {
3267          test -z "$ac_c_werror_flag" ||
3268          test ! -s conftest.err
3269        } && test -s conftest.$ac_objext; then
3270   ac_cv_prog_cc_c89=$ac_arg
3271 else
3272   echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275
3276 fi
3277
3278 rm -f core conftest.err conftest.$ac_objext
3279   test "x$ac_cv_prog_cc_c89" != "xno" && break
3280 done
3281 rm -f conftest.$ac_ext
3282 CC=$ac_save_CC
3283
3284 fi
3285 # AC_CACHE_VAL
3286 case "x$ac_cv_prog_cc_c89" in
3287   x)
3288     { echo "$as_me:$LINENO: result: none needed" >&5
3289 echo "${ECHO_T}none needed" >&6; } ;;
3290   xno)
3291     { echo "$as_me:$LINENO: result: unsupported" >&5
3292 echo "${ECHO_T}unsupported" >&6; } ;;
3293   *)
3294     CC="$CC $ac_cv_prog_cc_c89"
3295     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3296 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3297 esac
3298
3299
3300 ac_ext=c
3301 ac_cpp='$CPP $CPPFLAGS'
3302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305
3306 ac_ext=cpp
3307 ac_cpp='$CXXCPP $CPPFLAGS'
3308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3311 if test -z "$CXX"; then
3312   if test -n "$CCC"; then
3313     CXX=$CCC
3314   else
3315     if test -n "$ac_tool_prefix"; then
3316   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3317   do
3318     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3322 if test "${ac_cv_prog_CXX+set}" = set; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   if test -n "$CXX"; then
3326   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331   IFS=$as_save_IFS
3332   test -z "$as_dir" && as_dir=.
3333   for ac_exec_ext in '' $ac_executable_extensions; do
3334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337     break 2
3338   fi
3339 done
3340 done
3341 IFS=$as_save_IFS
3342
3343 fi
3344 fi
3345 CXX=$ac_cv_prog_CXX
3346 if test -n "$CXX"; then
3347   { echo "$as_me:$LINENO: result: $CXX" >&5
3348 echo "${ECHO_T}$CXX" >&6; }
3349 else
3350   { echo "$as_me:$LINENO: result: no" >&5
3351 echo "${ECHO_T}no" >&6; }
3352 fi
3353
3354
3355     test -n "$CXX" && break
3356   done
3357 fi
3358 if test -z "$CXX"; then
3359   ac_ct_CXX=$CXX
3360   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3361 do
3362   # Extract the first word of "$ac_prog", so it can be a program name with args.
3363 set dummy $ac_prog; ac_word=$2
3364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3366 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3367   echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369   if test -n "$ac_ct_CXX"; then
3370   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375   IFS=$as_save_IFS
3376   test -z "$as_dir" && as_dir=.
3377   for ac_exec_ext in '' $ac_executable_extensions; do
3378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379     ac_cv_prog_ac_ct_CXX="$ac_prog"
3380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3381     break 2
3382   fi
3383 done
3384 done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3390 if test -n "$ac_ct_CXX"; then
3391   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3392 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3393 else
3394   { echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6; }
3396 fi
3397
3398
3399   test -n "$ac_ct_CXX" && break
3400 done
3401
3402   if test "x$ac_ct_CXX" = x; then
3403     CXX="g++"
3404   else
3405     case $cross_compiling:$ac_tool_warned in
3406 yes:)
3407 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3408 whose name does not start with the host triplet.  If you think this
3409 configuration is useful to you, please write to autoconf@gnu.org." >&5
3410 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3411 whose name does not start with the host triplet.  If you think this
3412 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3413 ac_tool_warned=yes ;;
3414 esac
3415     CXX=$ac_ct_CXX
3416   fi
3417 fi
3418
3419   fi
3420 fi
3421 # Provide some information about the compiler.
3422 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3423 ac_compiler=`set X $ac_compile; echo $2`
3424 { (ac_try="$ac_compiler --version >&5"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430   (eval "$ac_compiler --version >&5") 2>&5
3431   ac_status=$?
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); }
3434 { (ac_try="$ac_compiler -v >&5"
3435 case "(($ac_try" in
3436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437   *) ac_try_echo=$ac_try;;
3438 esac
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440   (eval "$ac_compiler -v >&5") 2>&5
3441   ac_status=$?
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); }
3444 { (ac_try="$ac_compiler -V >&5"
3445 case "(($ac_try" in
3446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447   *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450   (eval "$ac_compiler -V >&5") 2>&5
3451   ac_status=$?
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); }
3454
3455 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3456 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3457 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3458   echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460   cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h.  */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h.  */
3466
3467 int
3468 main ()
3469 {
3470 #ifndef __GNUC__
3471        choke me
3472 #endif
3473
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (ac_try="$ac_compile"
3480 case "(($ac_try" in
3481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482   *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485   (eval "$ac_compile") 2>conftest.er1
3486   ac_status=$?
3487   grep -v '^ *+' conftest.er1 >conftest.err
3488   rm -f conftest.er1
3489   cat conftest.err >&5
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); } && {
3492          test -z "$ac_cxx_werror_flag" ||
3493          test ! -s conftest.err
3494        } && test -s conftest.$ac_objext; then
3495   ac_compiler_gnu=yes
3496 else
3497   echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500         ac_compiler_gnu=no
3501 fi
3502
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3505
3506 fi
3507 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3508 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3509 GXX=`test $ac_compiler_gnu = yes && echo yes`
3510 ac_test_CXXFLAGS=${CXXFLAGS+set}
3511 ac_save_CXXFLAGS=$CXXFLAGS
3512 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3513 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3514 if test "${ac_cv_prog_cxx_g+set}" = set; then
3515   echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3518    ac_cxx_werror_flag=yes
3519    ac_cv_prog_cxx_g=no
3520    CXXFLAGS="-g"
3521    cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h.  */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h.  */
3527
3528 int
3529 main ()
3530 {
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest.$ac_objext
3537 if { (ac_try="$ac_compile"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543   (eval "$ac_compile") 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } && {
3550          test -z "$ac_cxx_werror_flag" ||
3551          test ! -s conftest.err
3552        } && test -s conftest.$ac_objext; then
3553   ac_cv_prog_cxx_g=yes
3554 else
3555   echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558         CXXFLAGS=""
3559       cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h.  */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h.  */
3565
3566 int
3567 main ()
3568 {
3569
3570   ;
3571   return 0;
3572 }
3573 _ACEOF
3574 rm -f conftest.$ac_objext
3575 if { (ac_try="$ac_compile"
3576 case "(($ac_try" in
3577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578   *) ac_try_echo=$ac_try;;
3579 esac
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581   (eval "$ac_compile") 2>conftest.er1
3582   ac_status=$?
3583   grep -v '^ *+' conftest.er1 >conftest.err
3584   rm -f conftest.er1
3585   cat conftest.err >&5
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); } && {
3588          test -z "$ac_cxx_werror_flag" ||
3589          test ! -s conftest.err
3590        } && test -s conftest.$ac_objext; then
3591   :
3592 else
3593   echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3597          CXXFLAGS="-g"
3598          cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604
3605 int
3606 main ()
3607 {
3608
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620   (eval "$ac_compile") 2>conftest.er1
3621   ac_status=$?
3622   grep -v '^ *+' conftest.er1 >conftest.err
3623   rm -f conftest.er1
3624   cat conftest.err >&5
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); } && {
3627          test -z "$ac_cxx_werror_flag" ||
3628          test ! -s conftest.err
3629        } && test -s conftest.$ac_objext; then
3630   ac_cv_prog_cxx_g=yes
3631 else
3632   echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635
3636 fi
3637
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 fi
3640
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 fi
3643
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3646 fi
3647 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3648 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3649 if test "$ac_test_CXXFLAGS" = set; then
3650   CXXFLAGS=$ac_save_CXXFLAGS
3651 elif test $ac_cv_prog_cxx_g = yes; then
3652   if test "$GXX" = yes; then
3653     CXXFLAGS="-g -O2"
3654   else
3655     CXXFLAGS="-g"
3656   fi
3657 else
3658   if test "$GXX" = yes; then
3659     CXXFLAGS="-O2"
3660   else
3661     CXXFLAGS=
3662   fi
3663 fi
3664 ac_ext=c
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669
3670 if test "x$CC" != xcc; then
3671   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3672 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3673 else
3674   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3675 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3676 fi
3677 set dummy $CC; ac_cc=`echo $2 |
3678                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3679 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3680   echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682   cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h.  */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h.  */
3688
3689 int
3690 main ()
3691 {
3692
3693   ;
3694   return 0;
3695 }
3696 _ACEOF
3697 # Make sure it works both with $CC and with simple cc.
3698 # We do the test twice because some compilers refuse to overwrite an
3699 # existing .o file with -o, though they will create one.
3700 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3701 rm -f conftest2.*
3702 if { (case "(($ac_try" in
3703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704   *) ac_try_echo=$ac_try;;
3705 esac
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707   (eval "$ac_try") 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } &&
3711    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713   *) ac_try_echo=$ac_try;;
3714 esac
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716   (eval "$ac_try") 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); };
3720 then
3721   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3722   if test "x$CC" != xcc; then
3723     # Test first that cc exists at all.
3724     if { ac_try='cc -c conftest.$ac_ext >&5'
3725   { (case "(($ac_try" in
3726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727   *) ac_try_echo=$ac_try;;
3728 esac
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730   (eval "$ac_try") 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); }; }; then
3734       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3735       rm -f conftest2.*
3736       if { (case "(($ac_try" in
3737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738   *) ac_try_echo=$ac_try;;
3739 esac
3740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3741   (eval "$ac_try") 2>&5
3742   ac_status=$?
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); } &&
3745          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747   *) ac_try_echo=$ac_try;;
3748 esac
3749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750   (eval "$ac_try") 2>&5
3751   ac_status=$?
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); };
3754       then
3755         # cc works too.
3756         :
3757       else
3758         # cc exists but doesn't like -o.
3759         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3760       fi
3761     fi
3762   fi
3763 else
3764   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3765 fi
3766 rm -f core conftest*
3767
3768 fi
3769 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3770   { echo "$as_me:$LINENO: result: yes" >&5
3771 echo "${ECHO_T}yes" >&6; }
3772 else
3773   { echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6; }
3775
3776 cat >>confdefs.h <<\_ACEOF
3777 #define NO_MINUS_C_MINUS_O 1
3778 _ACEOF
3779
3780 fi
3781
3782 ac_ext=c
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3788 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3789 # On Suns, sometimes $CPP names a directory.
3790 if test -n "$CPP" && test -d "$CPP"; then
3791   CPP=
3792 fi
3793 if test -z "$CPP"; then
3794   if test "${ac_cv_prog_CPP+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797       # Double quotes because CPP needs to be expanded
3798     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3799     do
3800       ac_preproc_ok=false
3801 for ac_c_preproc_warn_flag in '' yes
3802 do
3803   # Use a header file that comes with gcc, so configuring glibc
3804   # with a fresh cross-compiler works.
3805   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3806   # <limits.h> exists even on freestanding compilers.
3807   # On the NeXT, cc -E runs the code through the compiler's parser,
3808   # not just through cpp. "Syntax error" is here to catch this case.
3809   cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h.  */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h.  */
3815 #ifdef __STDC__
3816 # include <limits.h>
3817 #else
3818 # include <assert.h>
3819 #endif
3820                      Syntax error
3821 _ACEOF
3822 if { (ac_try="$ac_cpp conftest.$ac_ext"
3823 case "(($ac_try" in
3824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825   *) ac_try_echo=$ac_try;;
3826 esac
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3829   ac_status=$?
3830   grep -v '^ *+' conftest.er1 >conftest.err
3831   rm -f conftest.er1
3832   cat conftest.err >&5
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); } >/dev/null && {
3835          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836          test ! -s conftest.err
3837        }; then
3838   :
3839 else
3840   echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843   # Broken: fails on valid input.
3844 continue
3845 fi
3846
3847 rm -f conftest.err conftest.$ac_ext
3848
3849   # OK, works on sane cases.  Now check whether nonexistent headers
3850   # can be detected and how.
3851   cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h.  */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h.  */
3857 #include <ac_nonexistent.h>
3858 _ACEOF
3859 if { (ac_try="$ac_cpp conftest.$ac_ext"
3860 case "(($ac_try" in
3861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862   *) ac_try_echo=$ac_try;;
3863 esac
3864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3865   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3866   ac_status=$?
3867   grep -v '^ *+' conftest.er1 >conftest.err
3868   rm -f conftest.er1
3869   cat conftest.err >&5
3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); } >/dev/null && {
3872          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3873          test ! -s conftest.err
3874        }; then
3875   # Broken: success on invalid input.
3876 continue
3877 else
3878   echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3880
3881   # Passes both tests.
3882 ac_preproc_ok=:
3883 break
3884 fi
3885
3886 rm -f conftest.err conftest.$ac_ext
3887
3888 done
3889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3890 rm -f conftest.err conftest.$ac_ext
3891 if $ac_preproc_ok; then
3892   break
3893 fi
3894
3895     done
3896     ac_cv_prog_CPP=$CPP
3897
3898 fi
3899   CPP=$ac_cv_prog_CPP
3900 else
3901   ac_cv_prog_CPP=$CPP
3902 fi
3903 { echo "$as_me:$LINENO: result: $CPP" >&5
3904 echo "${ECHO_T}$CPP" >&6; }
3905 ac_preproc_ok=false
3906 for ac_c_preproc_warn_flag in '' yes
3907 do
3908   # Use a header file that comes with gcc, so configuring glibc
3909   # with a fresh cross-compiler works.
3910   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911   # <limits.h> exists even on freestanding compilers.
3912   # On the NeXT, cc -E runs the code through the compiler's parser,
3913   # not just through cpp. "Syntax error" is here to catch this case.
3914   cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h.  */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h.  */
3920 #ifdef __STDC__
3921 # include <limits.h>
3922 #else
3923 # include <assert.h>
3924 #endif
3925                      Syntax error
3926 _ACEOF
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3928 case "(($ac_try" in
3929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930   *) ac_try_echo=$ac_try;;
3931 esac
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3934   ac_status=$?
3935   grep -v '^ *+' conftest.er1 >conftest.err
3936   rm -f conftest.er1
3937   cat conftest.err >&5
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); } >/dev/null && {
3940          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3941          test ! -s conftest.err
3942        }; then
3943   :
3944 else
3945   echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948   # Broken: fails on valid input.
3949 continue
3950 fi
3951
3952 rm -f conftest.err conftest.$ac_ext
3953
3954   # OK, works on sane cases.  Now check whether nonexistent headers
3955   # can be detected and how.
3956   cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h.  */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h.  */
3962 #include <ac_nonexistent.h>
3963 _ACEOF
3964 if { (ac_try="$ac_cpp conftest.$ac_ext"
3965 case "(($ac_try" in
3966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967   *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3971   ac_status=$?
3972   grep -v '^ *+' conftest.er1 >conftest.err
3973   rm -f conftest.er1
3974   cat conftest.err >&5
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); } >/dev/null && {
3977          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3978          test ! -s conftest.err
3979        }; then
3980   # Broken: success on invalid input.
3981 continue
3982 else
3983   echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3985
3986   # Passes both tests.
3987 ac_preproc_ok=:
3988 break
3989 fi
3990
3991 rm -f conftest.err conftest.$ac_ext
3992
3993 done
3994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3995 rm -f conftest.err conftest.$ac_ext
3996 if $ac_preproc_ok; then
3997   :
3998 else
3999   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4000 See \`config.log' for more details." >&5
4001 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4002 See \`config.log' for more details." >&2;}
4003    { (exit 1); exit 1; }; }
4004 fi
4005
4006 ac_ext=c
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011
4012
4013 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4014 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4015 if test "${ac_cv_path_GREP+set}" = set; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   # Extract the first word of "grep ggrep" to use in msg output
4019 if test -z "$GREP"; then
4020 set dummy grep ggrep; ac_prog_name=$2
4021 if test "${ac_cv_path_GREP+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   ac_path_GREP_found=false
4025 # Loop through the user's path and test for each of PROGNAME-LIST
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4028 do
4029   IFS=$as_save_IFS
4030   test -z "$as_dir" && as_dir=.
4031   for ac_prog in grep ggrep; do
4032   for ac_exec_ext in '' $ac_executable_extensions; do
4033     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4034     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4035     # Check for GNU ac_path_GREP and select it if it is found.
4036   # Check for GNU $ac_path_GREP
4037 case `"$ac_path_GREP" --version 2>&1` in
4038 *GNU*)
4039   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4040 *)
4041   ac_count=0
4042   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4043   while :
4044   do
4045     cat "conftest.in" "conftest.in" >"conftest.tmp"
4046     mv "conftest.tmp" "conftest.in"
4047     cp "conftest.in" "conftest.nl"
4048     echo 'GREP' >> "conftest.nl"
4049     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051     ac_count=`expr $ac_count + 1`
4052     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4053       # Best one so far, save it but keep looking for a better one
4054       ac_cv_path_GREP="$ac_path_GREP"
4055       ac_path_GREP_max=$ac_count
4056     fi
4057     # 10*(2^10) chars as input seems more than enough
4058     test $ac_count -gt 10 && break
4059   done
4060   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4061 esac
4062
4063
4064     $ac_path_GREP_found && break 3
4065   done
4066 done
4067
4068 done
4069 IFS=$as_save_IFS
4070
4071
4072 fi
4073
4074 GREP="$ac_cv_path_GREP"
4075 if test -z "$GREP"; then
4076   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4077 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4078    { (exit 1); exit 1; }; }
4079 fi
4080
4081 else
4082   ac_cv_path_GREP=$GREP
4083 fi
4084
4085
4086 fi
4087 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4088 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4089  GREP="$ac_cv_path_GREP"
4090
4091
4092 { echo "$as_me:$LINENO: checking for egrep" >&5
4093 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4094 if test "${ac_cv_path_EGREP+set}" = set; then
4095   echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4098    then ac_cv_path_EGREP="$GREP -E"
4099    else
4100      # Extract the first word of "egrep" to use in msg output
4101 if test -z "$EGREP"; then
4102 set dummy egrep; ac_prog_name=$2
4103 if test "${ac_cv_path_EGREP+set}" = set; then
4104   echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106   ac_path_EGREP_found=false
4107 # Loop through the user's path and test for each of PROGNAME-LIST
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4110 do
4111   IFS=$as_save_IFS
4112   test -z "$as_dir" && as_dir=.
4113   for ac_prog in egrep; do
4114   for ac_exec_ext in '' $ac_executable_extensions; do
4115     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4116     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4117     # Check for GNU ac_path_EGREP and select it if it is found.
4118   # Check for GNU $ac_path_EGREP
4119 case `"$ac_path_EGREP" --version 2>&1` in
4120 *GNU*)
4121   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4122 *)
4123   ac_count=0
4124   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4125   while :
4126   do
4127     cat "conftest.in" "conftest.in" >"conftest.tmp"
4128     mv "conftest.tmp" "conftest.in"
4129     cp "conftest.in" "conftest.nl"
4130     echo 'EGREP' >> "conftest.nl"
4131     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4132     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4133     ac_count=`expr $ac_count + 1`
4134     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4135       # Best one so far, save it but keep looking for a better one
4136       ac_cv_path_EGREP="$ac_path_EGREP"
4137       ac_path_EGREP_max=$ac_count
4138     fi
4139     # 10*(2^10) chars as input seems more than enough
4140     test $ac_count -gt 10 && break
4141   done
4142   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4143 esac
4144
4145
4146     $ac_path_EGREP_found && break 3
4147   done
4148 done
4149
4150 done
4151 IFS=$as_save_IFS
4152
4153
4154 fi
4155
4156 EGREP="$ac_cv_path_EGREP"
4157 if test -z "$EGREP"; then
4158   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4159 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4160    { (exit 1); exit 1; }; }
4161 fi
4162
4163 else
4164   ac_cv_path_EGREP=$EGREP
4165 fi
4166
4167
4168    fi
4169 fi
4170 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4171 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4172  EGREP="$ac_cv_path_EGREP"
4173
4174
4175 if test $ac_cv_c_compiler_gnu = yes; then
4176     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4177 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4178 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181     ac_pattern="Autoconf.*'x'"
4182   cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h.  */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h.  */
4188 #include <sgtty.h>
4189 Autoconf TIOCGETP
4190 _ACEOF
4191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4192   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4193   ac_cv_prog_gcc_traditional=yes
4194 else
4195   ac_cv_prog_gcc_traditional=no
4196 fi
4197 rm -f conftest*
4198
4199
4200   if test $ac_cv_prog_gcc_traditional = no; then
4201     cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h.  */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h.  */
4207 #include <termio.h>
4208 Autoconf TCGETA
4209 _ACEOF
4210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4212   ac_cv_prog_gcc_traditional=yes
4213 fi
4214 rm -f conftest*
4215
4216   fi
4217 fi
4218 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4219 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4220   if test $ac_cv_prog_gcc_traditional = yes; then
4221     CC="$CC -traditional"
4222   fi
4223 fi
4224
4225 BASECC=`basename $CC`
4226 have_gcc=no
4227 if test "x$BASECC" = xgcc; then
4228    cat >>confdefs.h <<\_ACEOF
4229 #define HAVE_GCC 1
4230 _ACEOF
4231
4232    have_gcc=yes
4233 fi
4234 # Extract the first word of "$CXX", so it can be a program name with args.
4235 set dummy $CXX; ac_word=$2
4236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4238 if test "${ac_cv_path_CXX+set}" = set; then
4239   echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241   case $CXX in
4242   [\\/]* | ?:[\\/]*)
4243   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4244   ;;
4245   *)
4246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249   IFS=$as_save_IFS
4250   test -z "$as_dir" && as_dir=.
4251   for ac_exec_ext in '' $ac_executable_extensions; do
4252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255     break 2
4256   fi
4257 done
4258 done
4259 IFS=$as_save_IFS
4260
4261   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4262   ;;
4263 esac
4264 fi
4265 CXX=$ac_cv_path_CXX
4266 if test -n "$CXX"; then
4267   { echo "$as_me:$LINENO: result: $CXX" >&5
4268 echo "${ECHO_T}$CXX" >&6; }
4269 else
4270   { echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6; }
4272 fi
4273
4274
4275 if test ! -e $CXX; then
4276    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4277 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4278    { (exit 1); exit 1; }; }
4279 fi
4280
4281 # Find a good install program.  We prefer a C program (faster),
4282 # so one script is as good as another.  But avoid the broken or
4283 # incompatible versions:
4284 # SysV /etc/install, /usr/sbin/install
4285 # SunOS /usr/etc/install
4286 # IRIX /sbin/install
4287 # AIX /bin/install
4288 # AmigaOS /C/install, which installs bootblocks on floppy discs
4289 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4290 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4291 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4292 # OS/2's system install, which has a completely different semantic
4293 # ./install, which can be erroneously created by make from ./install.sh.
4294 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4295 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4296 if test -z "$INSTALL"; then
4297 if test "${ac_cv_path_install+set}" = set; then
4298   echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH
4302 do
4303   IFS=$as_save_IFS
4304   test -z "$as_dir" && as_dir=.
4305   # Account for people who put trailing slashes in PATH elements.
4306 case $as_dir/ in
4307   ./ | .// | /cC/* | \
4308   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4309   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4310   /usr/ucb/* ) ;;
4311   *)
4312     # OSF1 and SCO ODT 3.0 have their own names for install.
4313     # Don't use installbsd from OSF since it installs stuff as root
4314     # by default.
4315     for ac_prog in ginstall scoinst install; do
4316       for ac_exec_ext in '' $ac_executable_extensions; do
4317         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4318           if test $ac_prog = install &&
4319             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4320             # AIX install.  It has an incompatible calling convention.
4321             :
4322           elif test $ac_prog = install &&
4323             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4324             # program-specific install script used by HP pwplus--don't use.
4325             :
4326           else
4327             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4328             break 3
4329           fi
4330         fi
4331       done
4332     done
4333     ;;
4334 esac
4335 done
4336 IFS=$as_save_IFS
4337
4338
4339 fi
4340   if test "${ac_cv_path_install+set}" = set; then
4341     INSTALL=$ac_cv_path_install
4342   else
4343     # As a last resort, use the slow shell script.  Don't cache a
4344     # value for INSTALL within a source directory, because that will
4345     # break other packages using the cache if that directory is
4346     # removed, or if the value is a relative name.
4347     INSTALL=$ac_install_sh
4348   fi
4349 fi
4350 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4351 echo "${ECHO_T}$INSTALL" >&6; }
4352
4353 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4354 # It thinks the first close brace ends the variable substitution.
4355 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4356
4357 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4358
4359 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4360
4361 # Extract the first word of "mv", so it can be a program name with args.
4362 set dummy mv; ac_word=$2
4363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365 if test "${ac_cv_path_MV+set}" = set; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368   case $MV in
4369   [\\/]* | ?:[\\/]*)
4370   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4371   ;;
4372   *)
4373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376   IFS=$as_save_IFS
4377   test -z "$as_dir" && as_dir=.
4378   for ac_exec_ext in '' $ac_executable_extensions; do
4379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382     break 2
4383   fi
4384 done
4385 done
4386 IFS=$as_save_IFS
4387
4388   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4389   ;;
4390 esac
4391 fi
4392 MV=$ac_cv_path_MV
4393 if test -n "$MV"; then
4394   { echo "$as_me:$LINENO: result: $MV" >&5
4395 echo "${ECHO_T}$MV" >&6; }
4396 else
4397   { echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6; }
4399 fi
4400
4401
4402 # Extract the first word of "rm", so it can be a program name with args.
4403 set dummy rm; ac_word=$2
4404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4406 if test "${ac_cv_path_REMOVE+set}" = set; then
4407   echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409   case $REMOVE in
4410   [\\/]* | ?:[\\/]*)
4411   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4412   ;;
4413   *)
4414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4416 do
4417   IFS=$as_save_IFS
4418   test -z "$as_dir" && as_dir=.
4419   for ac_exec_ext in '' $ac_executable_extensions; do
4420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423     break 2
4424   fi
4425 done
4426 done
4427 IFS=$as_save_IFS
4428
4429   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4430   ;;
4431 esac
4432 fi
4433 REMOVE=$ac_cv_path_REMOVE
4434 if test -n "$REMOVE"; then
4435   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4436 echo "${ECHO_T}$REMOVE" >&6; }
4437 else
4438   { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4440 fi
4441
4442
4443 # Extract the first word of "cp", so it can be a program name with args.
4444 set dummy cp; ac_word=$2
4445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447 if test "${ac_cv_path_CP+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   case $CP in
4451   [\\/]* | ?:[\\/]*)
4452   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4453   ;;
4454   *)
4455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460   for ac_exec_ext in '' $ac_executable_extensions; do
4461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464     break 2
4465   fi
4466 done
4467 done
4468 IFS=$as_save_IFS
4469
4470   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4471   ;;
4472 esac
4473 fi
4474 CP=$ac_cv_path_CP
4475 if test -n "$CP"; then
4476   { echo "$as_me:$LINENO: result: $CP" >&5
4477 echo "${ECHO_T}$CP" >&6; }
4478 else
4479   { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4481 fi
4482
4483
4484 # Extract the first word of "sed", so it can be a program name with args.
4485 set dummy sed; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_path_SED+set}" = set; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491   case $SED in
4492   [\\/]* | ?:[\\/]*)
4493   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4494   ;;
4495   *)
4496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4498 do
4499   IFS=$as_save_IFS
4500   test -z "$as_dir" && as_dir=.
4501   for ac_exec_ext in '' $ac_executable_extensions; do
4502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505     break 2
4506   fi
4507 done
4508 done
4509 IFS=$as_save_IFS
4510
4511   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4512   ;;
4513 esac
4514 fi
4515 SED=$ac_cv_path_SED
4516 if test -n "$SED"; then
4517   { echo "$as_me:$LINENO: result: $SED" >&5
4518 echo "${ECHO_T}$SED" >&6; }
4519 else
4520   { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4522 fi
4523
4524
4525 # Extract the first word of "echo", so it can be a program name with args.
4526 set dummy echo; ac_word=$2
4527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4529 if test "${ac_cv_path_ECHO+set}" = set; then
4530   echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532   case $ECHO in
4533   [\\/]* | ?:[\\/]*)
4534   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4535   ;;
4536   *)
4537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540   IFS=$as_save_IFS
4541   test -z "$as_dir" && as_dir=.
4542   for ac_exec_ext in '' $ac_executable_extensions; do
4543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546     break 2
4547   fi
4548 done
4549 done
4550 IFS=$as_save_IFS
4551
4552   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4553   ;;
4554 esac
4555 fi
4556 ECHO=$ac_cv_path_ECHO
4557 if test -n "$ECHO"; then
4558   { echo "$as_me:$LINENO: result: $ECHO" >&5
4559 echo "${ECHO_T}$ECHO" >&6; }
4560 else
4561   { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4563 fi
4564
4565
4566 # Extract the first word of "cmp", so it can be a program name with args.
4567 set dummy cmp; ac_word=$2
4568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4570 if test "${ac_cv_path_CMP+set}" = set; then
4571   echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573   case $CMP in
4574   [\\/]* | ?:[\\/]*)
4575   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4576   ;;
4577   *)
4578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581   IFS=$as_save_IFS
4582   test -z "$as_dir" && as_dir=.
4583   for ac_exec_ext in '' $ac_executable_extensions; do
4584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587     break 2
4588   fi
4589 done
4590 done
4591 IFS=$as_save_IFS
4592
4593   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4594   ;;
4595 esac
4596 fi
4597 CMP=$ac_cv_path_CMP
4598 if test -n "$CMP"; then
4599   { echo "$as_me:$LINENO: result: $CMP" >&5
4600 echo "${ECHO_T}$CMP" >&6; }
4601 else
4602   { echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6; }
4604 fi
4605
4606
4607 # Extract the first word of "tbl", so it can be a program name with args.
4608 set dummy tbl; ac_word=$2
4609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4611 if test "${ac_cv_path_TBL+set}" = set; then
4612   echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614   case $TBL in
4615   [\\/]* | ?:[\\/]*)
4616   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4617   ;;
4618   *)
4619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622   IFS=$as_save_IFS
4623   test -z "$as_dir" && as_dir=.
4624   for ac_exec_ext in '' $ac_executable_extensions; do
4625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628     break 2
4629   fi
4630 done
4631 done
4632 IFS=$as_save_IFS
4633
4634   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4635   ;;
4636 esac
4637 fi
4638 TBL=$ac_cv_path_TBL
4639 if test -n "$TBL"; then
4640   { echo "$as_me:$LINENO: result: $TBL" >&5
4641 echo "${ECHO_T}$TBL" >&6; }
4642 else
4643   { echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6; }
4645 fi
4646
4647
4648 # Extract the first word of "ar", so it can be a program name with args.
4649 set dummy ar; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_path_AR+set}" = set; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655   case $AR in
4656   [\\/]* | ?:[\\/]*)
4657   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4658   ;;
4659   *)
4660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665   for ac_exec_ext in '' $ac_executable_extensions; do
4666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672 done
4673 IFS=$as_save_IFS
4674
4675   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4676   ;;
4677 esac
4678 fi
4679 AR=$ac_cv_path_AR
4680 if test -n "$AR"; then
4681   { echo "$as_me:$LINENO: result: $AR" >&5
4682 echo "${ECHO_T}$AR" >&6; }
4683 else
4684   { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4686 fi
4687
4688
4689 # Extract the first word of "openssl", so it can be a program name with args.
4690 set dummy openssl; ac_word=$2
4691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693 if test "${ac_cv_path_OPENSSL+set}" = set; then
4694   echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696   case $OPENSSL in
4697   [\\/]* | ?:[\\/]*)
4698   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4699   ;;
4700   *)
4701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706   for ac_exec_ext in '' $ac_executable_extensions; do
4707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713 done
4714 IFS=$as_save_IFS
4715
4716   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4717   ;;
4718 esac
4719 fi
4720 OPENSSL=$ac_cv_path_OPENSSL
4721 if test -n "$OPENSSL"; then
4722   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4723 echo "${ECHO_T}$OPENSSL" >&6; }
4724 else
4725   { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4727 fi
4728
4729
4730 # Extract the first word of "mtx", so it can be a program name with args.
4731 set dummy mtx; ac_word=$2
4732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4734 if test "${ac_cv_path_MTX+set}" = set; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737   case $MTX in
4738   [\\/]* | ?:[\\/]*)
4739   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4740   ;;
4741   *)
4742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745   IFS=$as_save_IFS
4746   test -z "$as_dir" && as_dir=.
4747   for ac_exec_ext in '' $ac_executable_extensions; do
4748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751     break 2
4752   fi
4753 done
4754 done
4755 IFS=$as_save_IFS
4756
4757   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4758   ;;
4759 esac
4760 fi
4761 MTX=$ac_cv_path_MTX
4762 if test -n "$MTX"; then
4763   { echo "$as_me:$LINENO: result: $MTX" >&5
4764 echo "${ECHO_T}$MTX" >&6; }
4765 else
4766   { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4768 fi
4769
4770
4771 # Extract the first word of "dd", so it can be a program name with args.
4772 set dummy dd; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_path_DD+set}" = set; then
4776   echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778   case $DD in
4779   [\\/]* | ?:[\\/]*)
4780   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4781   ;;
4782   *)
4783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786   IFS=$as_save_IFS
4787   test -z "$as_dir" && as_dir=.
4788   for ac_exec_ext in '' $ac_executable_extensions; do
4789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792     break 2
4793   fi
4794 done
4795 done
4796 IFS=$as_save_IFS
4797
4798   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4799   ;;
4800 esac
4801 fi
4802 DD=$ac_cv_path_DD
4803 if test -n "$DD"; then
4804   { echo "$as_me:$LINENO: result: $DD" >&5
4805 echo "${ECHO_T}$DD" >&6; }
4806 else
4807   { echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6; }
4809 fi
4810
4811
4812 # Extract the first word of "mkisofs", so it can be a program name with args.
4813 set dummy mkisofs; ac_word=$2
4814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4816 if test "${ac_cv_path_MKISOFS+set}" = set; then
4817   echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819   case $MKISOFS in
4820   [\\/]* | ?:[\\/]*)
4821   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4822   ;;
4823   *)
4824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827   IFS=$as_save_IFS
4828   test -z "$as_dir" && as_dir=.
4829   for ac_exec_ext in '' $ac_executable_extensions; do
4830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833     break 2
4834   fi
4835 done
4836 done
4837 IFS=$as_save_IFS
4838
4839   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4840   ;;
4841 esac
4842 fi
4843 MKISOFS=$ac_cv_path_MKISOFS
4844 if test -n "$MKISOFS"; then
4845   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4846 echo "${ECHO_T}$MKISOFS" >&6; }
4847 else
4848   { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4850 fi
4851
4852
4853 # Extract the first word of "python", so it can be a program name with args.
4854 set dummy python; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_path_PYTHON+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   case $PYTHON in
4861   [\\/]* | ?:[\\/]*)
4862   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4863   ;;
4864   *)
4865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868   IFS=$as_save_IFS
4869   test -z "$as_dir" && as_dir=.
4870   for ac_exec_ext in '' $ac_executable_extensions; do
4871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4874     break 2
4875   fi
4876 done
4877 done
4878 IFS=$as_save_IFS
4879
4880   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4881   ;;
4882 esac
4883 fi
4884 PYTHON=$ac_cv_path_PYTHON
4885 if test -n "$PYTHON"; then
4886   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4887 echo "${ECHO_T}$PYTHON" >&6; }
4888 else
4889   { echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6; }
4891 fi
4892
4893
4894 # Extract the first word of "growisofs", so it can be a program name with args.
4895 set dummy growisofs; ac_word=$2
4896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4898 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4899   echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901   case $GROWISOFS in
4902   [\\/]* | ?:[\\/]*)
4903   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4904   ;;
4905   *)
4906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909   IFS=$as_save_IFS
4910   test -z "$as_dir" && as_dir=.
4911   for ac_exec_ext in '' $ac_executable_extensions; do
4912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4922   ;;
4923 esac
4924 fi
4925 GROWISOFS=$ac_cv_path_GROWISOFS
4926 if test -n "$GROWISOFS"; then
4927   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4928 echo "${ECHO_T}$GROWISOFS" >&6; }
4929 else
4930   { echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6; }
4932 fi
4933
4934
4935 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4936 set dummy dvd+rw-mediainfo; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4940   echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942   case $DVDRWMEDIAINFO in
4943   [\\/]* | ?:[\\/]*)
4944   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4945   ;;
4946   *)
4947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4949 do
4950   IFS=$as_save_IFS
4951   test -z "$as_dir" && as_dir=.
4952   for ac_exec_ext in '' $ac_executable_extensions; do
4953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956     break 2
4957   fi
4958 done
4959 done
4960 IFS=$as_save_IFS
4961
4962   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4963   ;;
4964 esac
4965 fi
4966 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4967 if test -n "$DVDRWMEDIAINFO"; then
4968   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4969 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4970 else
4971   { echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6; }
4973 fi
4974
4975
4976 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4977 set dummy dvd+rw-format; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4981   echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983   case $DVDRWFORMAT in
4984   [\\/]* | ?:[\\/]*)
4985   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4986   ;;
4987   *)
4988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991   IFS=$as_save_IFS
4992   test -z "$as_dir" && as_dir=.
4993   for ac_exec_ext in '' $ac_executable_extensions; do
4994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997     break 2
4998   fi
4999 done
5000 done
5001 IFS=$as_save_IFS
5002
5003   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5004   ;;
5005 esac
5006 fi
5007 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5008 if test -n "$DVDRWFORMAT"; then
5009   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5010 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
5011 else
5012   { echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6; }
5014 fi
5015
5016
5017 # Extract the first word of "pkg-config", so it can be a program name with args.
5018 set dummy pkg-config; ac_word=$2
5019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5021 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   case $PKGCONFIG in
5025   [\\/]* | ?:[\\/]*)
5026   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5027   ;;
5028   *)
5029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034   for ac_exec_ext in '' $ac_executable_extensions; do
5035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041 done
5042 IFS=$as_save_IFS
5043
5044   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5045   ;;
5046 esac
5047 fi
5048 PKGCONFIG=$ac_cv_path_PKGCONFIG
5049 if test -n "$PKGCONFIG"; then
5050   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5051 echo "${ECHO_T}$PKGCONFIG" >&6; }
5052 else
5053   { echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6; }
5055 fi
5056
5057
5058 # Extract the first word of "qmake", so it can be a program name with args.
5059 set dummy qmake; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_path_QMAKE+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   case $QMAKE in
5066   [\\/]* | ?:[\\/]*)
5067   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5068   ;;
5069   *)
5070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075   for ac_exec_ext in '' $ac_executable_extensions; do
5076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079     break 2
5080   fi
5081 done
5082 done
5083 IFS=$as_save_IFS
5084
5085   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5086   ;;
5087 esac
5088 fi
5089 QMAKE=$ac_cv_path_QMAKE
5090 if test -n "$QMAKE"; then
5091   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5092 echo "${ECHO_T}$QMAKE" >&6; }
5093 else
5094   { echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6; }
5096 fi
5097
5098
5099 # Extract the first word of "gmake", so it can be a program name with args.
5100 set dummy gmake; ac_word=$2
5101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5103 if test "${ac_cv_path_GMAKE+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   case $GMAKE in
5107   [\\/]* | ?:[\\/]*)
5108   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5109   ;;
5110   *)
5111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114   IFS=$as_save_IFS
5115   test -z "$as_dir" && as_dir=.
5116   for ac_exec_ext in '' $ac_executable_extensions; do
5117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120     break 2
5121   fi
5122 done
5123 done
5124 IFS=$as_save_IFS
5125
5126   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5127   ;;
5128 esac
5129 fi
5130 GMAKE=$ac_cv_path_GMAKE
5131 if test -n "$GMAKE"; then
5132   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5133 echo "${ECHO_T}$GMAKE" >&6; }
5134 else
5135   { echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6; }
5137 fi
5138
5139
5140
5141 if test "x$WXCONFIG" = x; then
5142    WXCONFIG=wx-config
5143 fi
5144 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5145 set dummy ${WXCONFIG}; ac_word=$2
5146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5148 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   case $WXCONFIG in
5152   [\\/]* | ?:[\\/]*)
5153   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5154   ;;
5155   *)
5156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159   IFS=$as_save_IFS
5160   test -z "$as_dir" && as_dir=.
5161   for ac_exec_ext in '' $ac_executable_extensions; do
5162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165     break 2
5166   fi
5167 done
5168 done
5169 IFS=$as_save_IFS
5170
5171   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5172   ;;
5173 esac
5174 fi
5175 WXCONFIG=$ac_cv_path_WXCONFIG
5176 if test -n "$WXCONFIG"; then
5177   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5178 echo "${ECHO_T}$WXCONFIG" >&6; }
5179 else
5180   { echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6; }
5182 fi
5183
5184
5185
5186 # Extract the first word of "cdrecord", so it can be a program name with args.
5187 set dummy cdrecord; ac_word=$2
5188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5190 if test "${ac_cv_path_CDRECORD+set}" = set; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   case $CDRECORD in
5194   [\\/]* | ?:[\\/]*)
5195   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5196   ;;
5197   *)
5198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201   IFS=$as_save_IFS
5202   test -z "$as_dir" && as_dir=.
5203   for ac_exec_ext in '' $ac_executable_extensions; do
5204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207     break 2
5208   fi
5209 done
5210 done
5211 IFS=$as_save_IFS
5212
5213   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5214   ;;
5215 esac
5216 fi
5217 CDRECORD=$ac_cv_path_CDRECORD
5218 if test -n "$CDRECORD"; then
5219   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5220 echo "${ECHO_T}$CDRECORD" >&6; }
5221 else
5222   { echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6; }
5224 fi
5225
5226
5227 # Extract the first word of "pidof", so it can be a program name with args.
5228 set dummy pidof; ac_word=$2
5229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5231 if test "${ac_cv_path_PIDOF+set}" = set; then
5232   echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234   case $PIDOF in
5235   [\\/]* | ?:[\\/]*)
5236   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5237   ;;
5238   *)
5239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242   IFS=$as_save_IFS
5243   test -z "$as_dir" && as_dir=.
5244   for ac_exec_ext in '' $ac_executable_extensions; do
5245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248     break 2
5249   fi
5250 done
5251 done
5252 IFS=$as_save_IFS
5253
5254   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5255   ;;
5256 esac
5257 fi
5258 PIDOF=$ac_cv_path_PIDOF
5259 if test -n "$PIDOF"; then
5260   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5261 echo "${ECHO_T}$PIDOF" >&6; }
5262 else
5263   { echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6; }
5265 fi
5266
5267
5268 for ac_prog in gawk mawk nawk awk
5269 do
5270   # Extract the first word of "$ac_prog", so it can be a program name with args.
5271 set dummy $ac_prog; ac_word=$2
5272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5274 if test "${ac_cv_prog_AWK+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277   if test -n "$AWK"; then
5278   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5282 do
5283   IFS=$as_save_IFS
5284   test -z "$as_dir" && as_dir=.
5285   for ac_exec_ext in '' $ac_executable_extensions; do
5286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287     ac_cv_prog_AWK="$ac_prog"
5288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289     break 2
5290   fi
5291 done
5292 done
5293 IFS=$as_save_IFS
5294
5295 fi
5296 fi
5297 AWK=$ac_cv_prog_AWK
5298 if test -n "$AWK"; then
5299   { echo "$as_me:$LINENO: result: $AWK" >&5
5300 echo "${ECHO_T}$AWK" >&6; }
5301 else
5302   { echo "$as_me:$LINENO: result: no" >&5
5303 echo "${ECHO_T}no" >&6; }
5304 fi
5305
5306
5307   test -n "$AWK" && break
5308 done
5309
5310 # Some AWK programs fail, so test it and warn the user
5311 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5312       { if ((prog == $2) || (("(" prog ")") == $2) ||
5313       (("" prog "") == $2) ||
5314       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5315 else
5316   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5317    The regex engine of $AWK is too broken to be used you
5318    might want to install GNU AWK.
5319    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5320 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5321    The regex engine of $AWK is too broken to be used you
5322    might want to install GNU AWK.
5323    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5324    { (exit 1); exit 1; }; }
5325 fi
5326 THE_AWK=$AWK
5327 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5328 set dummy $THE_AWK; ac_word=$2
5329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5331 if test "${ac_cv_path_AWK+set}" = set; then
5332   echo $ECHO_N "(cached) $ECHO_C" >&6
5333 else
5334   case $AWK in
5335   [\\/]* | ?:[\\/]*)
5336   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5337   ;;
5338   *)
5339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5341 do
5342   IFS=$as_save_IFS
5343   test -z "$as_dir" && as_dir=.
5344   for ac_exec_ext in '' $ac_executable_extensions; do
5345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348     break 2
5349   fi
5350 done
5351 done
5352 IFS=$as_save_IFS
5353
5354   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5355   ;;
5356 esac
5357 fi
5358 AWK=$ac_cv_path_AWK
5359 if test -n "$AWK"; then
5360   { echo "$as_me:$LINENO: result: $AWK" >&5
5361 echo "${ECHO_T}$AWK" >&6; }
5362 else
5363   { echo "$as_me:$LINENO: result: no" >&5
5364 echo "${ECHO_T}no" >&6; }
5365 fi
5366
5367
5368
5369
5370 test -n "$ARFLAG" || ARFLAGS="cr"
5371
5372
5373 MAKE_SHELL=/bin/sh
5374
5375
5376
5377
5378
5379
5380
5381 use_libtool=yes
5382 # Check whether --enable-libtool was given.
5383 if test "${enable_libtool+set}" = set; then
5384   enableval=$enable_libtool;
5385        if test x$enableval = xno; then
5386           use_libtool=no
5387        fi
5388
5389
5390 fi
5391
5392 case `pwd` in
5393   *\ * | *\     *)
5394     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5395 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5396 esac
5397
5398
5399
5400 macro_version='2.2.6'
5401 macro_revision='1.3012'
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415 ltmain="$ac_aux_dir/ltmain.sh"
5416
5417 # Make sure we can run config.sub.
5418 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5419   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5420 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5421    { (exit 1); exit 1; }; }
5422
5423 { echo "$as_me:$LINENO: checking build system type" >&5
5424 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5425 if test "${ac_cv_build+set}" = set; then
5426   echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428   ac_build_alias=$build_alias
5429 test "x$ac_build_alias" = x &&
5430   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5431 test "x$ac_build_alias" = x &&
5432   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5433 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5434    { (exit 1); exit 1; }; }
5435 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5436   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5437 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5438    { (exit 1); exit 1; }; }
5439
5440 fi
5441 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5442 echo "${ECHO_T}$ac_cv_build" >&6; }
5443 case $ac_cv_build in
5444 *-*-*) ;;
5445 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5446 echo "$as_me: error: invalid value of canonical build" >&2;}
5447    { (exit 1); exit 1; }; };;
5448 esac
5449 build=$ac_cv_build
5450 ac_save_IFS=$IFS; IFS='-'
5451 set x $ac_cv_build
5452 shift
5453 build_cpu=$1
5454 build_vendor=$2
5455 shift; shift
5456 # Remember, the first character of IFS is used to create $*,
5457 # except with old shells:
5458 build_os=$*
5459 IFS=$ac_save_IFS
5460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5461
5462
5463 { echo "$as_me:$LINENO: checking host system type" >&5
5464 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5465 if test "${ac_cv_host+set}" = set; then
5466   echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468   if test "x$host_alias" = x; then
5469   ac_cv_host=$ac_cv_build
5470 else
5471   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5472     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5473 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5474    { (exit 1); exit 1; }; }
5475 fi
5476
5477 fi
5478 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5479 echo "${ECHO_T}$ac_cv_host" >&6; }
5480 case $ac_cv_host in
5481 *-*-*) ;;
5482 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5483 echo "$as_me: error: invalid value of canonical host" >&2;}
5484    { (exit 1); exit 1; }; };;
5485 esac
5486 host=$ac_cv_host
5487 ac_save_IFS=$IFS; IFS='-'
5488 set x $ac_cv_host
5489 shift
5490 host_cpu=$1
5491 host_vendor=$2
5492 shift; shift
5493 # Remember, the first character of IFS is used to create $*,
5494 # except with old shells:
5495 host_os=$*
5496 IFS=$ac_save_IFS
5497 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5498
5499
5500 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5501 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5502 if test "${ac_cv_path_SED+set}" = set; then
5503   echo $ECHO_N "(cached) $ECHO_C" >&6
5504 else
5505             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5506      for ac_i in 1 2 3 4 5 6 7; do
5507        ac_script="$ac_script$as_nl$ac_script"
5508      done
5509      echo "$ac_script" | sed 99q >conftest.sed
5510      $as_unset ac_script || ac_script=
5511      # Extract the first word of "sed gsed" to use in msg output
5512 if test -z "$SED"; then
5513 set dummy sed gsed; ac_prog_name=$2
5514 if test "${ac_cv_path_SED+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   ac_path_SED_found=false
5518 # Loop through the user's path and test for each of PROGNAME-LIST
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5521 do
5522   IFS=$as_save_IFS
5523   test -z "$as_dir" && as_dir=.
5524   for ac_prog in sed gsed; do
5525   for ac_exec_ext in '' $ac_executable_extensions; do
5526     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5527     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5528     # Check for GNU ac_path_SED and select it if it is found.
5529   # Check for GNU $ac_path_SED
5530 case `"$ac_path_SED" --version 2>&1` in
5531 *GNU*)
5532   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5533 *)
5534   ac_count=0
5535   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5536   while :
5537   do
5538     cat "conftest.in" "conftest.in" >"conftest.tmp"
5539     mv "conftest.tmp" "conftest.in"
5540     cp "conftest.in" "conftest.nl"
5541     echo '' >> "conftest.nl"
5542     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5543     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5544     ac_count=`expr $ac_count + 1`
5545     if test $ac_count -gt ${ac_path_SED_max-0}; then
5546       # Best one so far, save it but keep looking for a better one
5547       ac_cv_path_SED="$ac_path_SED"
5548       ac_path_SED_max=$ac_count
5549     fi
5550     # 10*(2^10) chars as input seems more than enough
5551     test $ac_count -gt 10 && break
5552   done
5553   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5554 esac
5555
5556
5557     $ac_path_SED_found && break 3
5558   done
5559 done
5560
5561 done
5562 IFS=$as_save_IFS
5563
5564
5565 fi
5566
5567 SED="$ac_cv_path_SED"
5568 if test -z "$SED"; then
5569   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5570 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5571    { (exit 1); exit 1; }; }
5572 fi
5573
5574 else
5575   ac_cv_path_SED=$SED
5576 fi
5577
5578 fi
5579 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5580 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5581  SED="$ac_cv_path_SED"
5582   rm -f conftest.sed
5583
5584 test -z "$SED" && SED=sed
5585 Xsed="$SED -e 1s/^X//"
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597 { echo "$as_me:$LINENO: checking for fgrep" >&5
5598 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5599 if test "${ac_cv_path_FGREP+set}" = set; then
5600   echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5603    then ac_cv_path_FGREP="$GREP -F"
5604    else
5605      # Extract the first word of "fgrep" to use in msg output
5606 if test -z "$FGREP"; then
5607 set dummy fgrep; ac_prog_name=$2
5608 if test "${ac_cv_path_FGREP+set}" = set; then
5609   echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611   ac_path_FGREP_found=false
5612 # Loop through the user's path and test for each of PROGNAME-LIST
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5615 do
5616   IFS=$as_save_IFS
5617   test -z "$as_dir" && as_dir=.
5618   for ac_prog in fgrep; do
5619   for ac_exec_ext in '' $ac_executable_extensions; do
5620     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5621     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5622     # Check for GNU ac_path_FGREP and select it if it is found.
5623   # Check for GNU $ac_path_FGREP
5624 case `"$ac_path_FGREP" --version 2>&1` in
5625 *GNU*)
5626   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5627 *)
5628   ac_count=0
5629   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5630   while :
5631   do
5632     cat "conftest.in" "conftest.in" >"conftest.tmp"
5633     mv "conftest.tmp" "conftest.in"
5634     cp "conftest.in" "conftest.nl"
5635     echo 'FGREP' >> "conftest.nl"
5636     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5637     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5638     ac_count=`expr $ac_count + 1`
5639     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5640       # Best one so far, save it but keep looking for a better one
5641       ac_cv_path_FGREP="$ac_path_FGREP"
5642       ac_path_FGREP_max=$ac_count
5643     fi
5644     # 10*(2^10) chars as input seems more than enough
5645     test $ac_count -gt 10 && break
5646   done
5647   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5648 esac
5649
5650
5651     $ac_path_FGREP_found && break 3
5652   done
5653 done
5654
5655 done
5656 IFS=$as_save_IFS
5657
5658
5659 fi
5660
5661 FGREP="$ac_cv_path_FGREP"
5662 if test -z "$FGREP"; then
5663   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5664 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5665    { (exit 1); exit 1; }; }
5666 fi
5667
5668 else
5669   ac_cv_path_FGREP=$FGREP
5670 fi
5671
5672
5673    fi
5674 fi
5675 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5676 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5677  FGREP="$ac_cv_path_FGREP"
5678
5679
5680 test -z "$GREP" && GREP=grep
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700 # Check whether --with-gnu-ld was given.
5701 if test "${with_gnu_ld+set}" = set; then
5702   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5703 else
5704   with_gnu_ld=no
5705 fi
5706
5707 ac_prog=ld
5708 if test "$GCC" = yes; then
5709   # Check if gcc -print-prog-name=ld gives a path.
5710   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5711 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5712   case $host in
5713   *-*-mingw*)
5714     # gcc leaves a trailing carriage return which upsets mingw
5715     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5716   *)
5717     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5718   esac
5719   case $ac_prog in
5720     # Accept absolute paths.
5721     [\\/]* | ?:[\\/]*)
5722       re_direlt='/[^/][^/]*/\.\./'
5723       # Canonicalize the pathname of ld
5724       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5725       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5726         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5727       done
5728       test -z "$LD" && LD="$ac_prog"
5729       ;;
5730   "")
5731     # If it fails, then pretend we aren't using GCC.
5732     ac_prog=ld
5733     ;;
5734   *)
5735     # If it is relative, then search for the first ld in PATH.
5736     with_gnu_ld=unknown
5737     ;;
5738   esac
5739 elif test "$with_gnu_ld" = yes; then
5740   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5741 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5742 else
5743   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5744 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5745 fi
5746 if test "${lt_cv_path_LD+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749   if test -z "$LD"; then
5750   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5751   for ac_dir in $PATH; do
5752     IFS="$lt_save_ifs"
5753     test -z "$ac_dir" && ac_dir=.
5754     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5755       lt_cv_path_LD="$ac_dir/$ac_prog"
5756       # Check to see if the program is GNU ld.  I'd rather use --version,
5757       # but apparently some variants of GNU ld only accept -v.
5758       # Break only if it was the GNU/non-GNU ld that we prefer.
5759       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5760       *GNU* | *'with BFD'*)
5761         test "$with_gnu_ld" != no && break
5762         ;;
5763       *)
5764         test "$with_gnu_ld" != yes && break
5765         ;;
5766       esac
5767     fi
5768   done
5769   IFS="$lt_save_ifs"
5770 else
5771   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5772 fi
5773 fi
5774
5775 LD="$lt_cv_path_LD"
5776 if test -n "$LD"; then
5777   { echo "$as_me:$LINENO: result: $LD" >&5
5778 echo "${ECHO_T}$LD" >&6; }
5779 else
5780   { echo "$as_me:$LINENO: result: no" >&5
5781 echo "${ECHO_T}no" >&6; }
5782 fi
5783 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5784 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5785    { (exit 1); exit 1; }; }
5786 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5787 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5788 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5792 case `$LD -v 2>&1 </dev/null` in
5793 *GNU* | *'with BFD'*)
5794   lt_cv_prog_gnu_ld=yes
5795   ;;
5796 *)
5797   lt_cv_prog_gnu_ld=no
5798   ;;
5799 esac
5800 fi
5801 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5802 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5803 with_gnu_ld=$lt_cv_prog_gnu_ld
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5814 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5815 if test "${lt_cv_path_NM+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   if test -n "$NM"; then
5819   # Let the user override the test.
5820   lt_cv_path_NM="$NM"
5821 else
5822   lt_nm_to_check="${ac_tool_prefix}nm"
5823   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5824     lt_nm_to_check="$lt_nm_to_check nm"
5825   fi
5826   for lt_tmp_nm in $lt_nm_to_check; do
5827     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5828     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5829       IFS="$lt_save_ifs"
5830       test -z "$ac_dir" && ac_dir=.
5831       tmp_nm="$ac_dir/$lt_tmp_nm"
5832       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5833         # Check to see if the nm accepts a BSD-compat flag.
5834         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5835         #   nm: unknown option "B" ignored
5836         # Tru64's nm complains that /dev/null is an invalid object file
5837         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5838         */dev/null* | *'Invalid file or object type'*)
5839           lt_cv_path_NM="$tmp_nm -B"
5840           break
5841           ;;
5842         *)
5843           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5844           */dev/null*)
5845             lt_cv_path_NM="$tmp_nm -p"
5846             break
5847             ;;
5848           *)
5849             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5850             continue # so that we can try to find one that supports BSD flags
5851             ;;
5852           esac
5853           ;;
5854         esac
5855       fi
5856     done
5857     IFS="$lt_save_ifs"
5858   done
5859   : ${lt_cv_path_NM=no}
5860 fi
5861 fi
5862 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5863 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5864 if test "$lt_cv_path_NM" != "no"; then
5865   NM="$lt_cv_path_NM"
5866 else
5867   # Didn't find any BSD compatible name lister, look for dumpbin.
5868   if test -n "$ac_tool_prefix"; then
5869   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5870   do
5871     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5875 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   if test -n "$DUMPBIN"; then
5879   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884   IFS=$as_save_IFS
5885   test -z "$as_dir" && as_dir=.
5886   for ac_exec_ext in '' $ac_executable_extensions; do
5887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890     break 2
5891   fi
5892 done
5893 done
5894 IFS=$as_save_IFS
5895
5896 fi
5897 fi
5898 DUMPBIN=$ac_cv_prog_DUMPBIN
5899 if test -n "$DUMPBIN"; then
5900   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5901 echo "${ECHO_T}$DUMPBIN" >&6; }
5902 else
5903   { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5905 fi
5906
5907
5908     test -n "$DUMPBIN" && break
5909   done
5910 fi
5911 if test -z "$DUMPBIN"; then
5912   ac_ct_DUMPBIN=$DUMPBIN
5913   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5914 do
5915   # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy $ac_prog; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   if test -n "$ac_ct_DUMPBIN"; then
5923   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928   IFS=$as_save_IFS
5929   test -z "$as_dir" && as_dir=.
5930   for ac_exec_ext in '' $ac_executable_extensions; do
5931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934     break 2
5935   fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5943 if test -n "$ac_ct_DUMPBIN"; then
5944   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5945 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5946 else
5947   { echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6; }
5949 fi
5950
5951
5952   test -n "$ac_ct_DUMPBIN" && break
5953 done
5954
5955   if test "x$ac_ct_DUMPBIN" = x; then
5956     DUMPBIN=":"
5957   else
5958     case $cross_compiling:$ac_tool_warned in
5959 yes:)
5960 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5961 whose name does not start with the host triplet.  If you think this
5962 configuration is useful to you, please write to autoconf@gnu.org." >&5
5963 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5964 whose name does not start with the host triplet.  If you think this
5965 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5966 ac_tool_warned=yes ;;
5967 esac
5968     DUMPBIN=$ac_ct_DUMPBIN
5969   fi
5970 fi
5971
5972
5973   if test "$DUMPBIN" != ":"; then
5974     NM="$DUMPBIN"
5975   fi
5976 fi
5977 test -z "$NM" && NM=nm
5978
5979
5980
5981
5982
5983
5984 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5985 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5986 if test "${lt_cv_nm_interface+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   lt_cv_nm_interface="BSD nm"
5990   echo "int some_variable = 0;" > conftest.$ac_ext
5991   (eval echo "\"\$as_me:5991: $ac_compile\"" >&5)
5992   (eval "$ac_compile" 2>conftest.err)
5993   cat conftest.err >&5
5994   (eval echo "\"\$as_me:5994: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5995   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5996   cat conftest.err >&5
5997   (eval echo "\"\$as_me:5997: output\"" >&5)
5998   cat conftest.out >&5
5999   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6000     lt_cv_nm_interface="MS dumpbin"
6001   fi
6002   rm -f conftest*
6003 fi
6004 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6005 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6006
6007 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6008 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6009 LN_S=$as_ln_s
6010 if test "$LN_S" = "ln -s"; then
6011   { echo "$as_me:$LINENO: result: yes" >&5
6012 echo "${ECHO_T}yes" >&6; }
6013 else
6014   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6015 echo "${ECHO_T}no, using $LN_S" >&6; }
6016 fi
6017
6018 # find the maximum length of command line arguments
6019 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6020 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6021 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6022   echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024     i=0
6025   teststring="ABCD"
6026
6027   case $build_os in
6028   msdosdjgpp*)
6029     # On DJGPP, this test can blow up pretty badly due to problems in libc
6030     # (any single argument exceeding 2000 bytes causes a buffer overrun
6031     # during glob expansion).  Even if it were fixed, the result of this
6032     # check would be larger than it should be.
6033     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6034     ;;
6035
6036   gnu*)
6037     # Under GNU Hurd, this test is not required because there is
6038     # no limit to the length of command line arguments.
6039     # Libtool will interpret -1 as no limit whatsoever
6040     lt_cv_sys_max_cmd_len=-1;
6041     ;;
6042
6043   cygwin* | mingw* | cegcc*)
6044     # On Win9x/ME, this test blows up -- it succeeds, but takes
6045     # about 5 minutes as the teststring grows exponentially.
6046     # Worse, since 9x/ME are not pre-emptively multitasking,
6047     # you end up with a "frozen" computer, even though with patience
6048     # the test eventually succeeds (with a max line length of 256k).
6049     # Instead, let's just punt: use the minimum linelength reported by
6050     # all of the supported platforms: 8192 (on NT/2K/XP).
6051     lt_cv_sys_max_cmd_len=8192;
6052     ;;
6053
6054   amigaos*)
6055     # On AmigaOS with pdksh, this test takes hours, literally.
6056     # So we just punt and use a minimum line length of 8192.
6057     lt_cv_sys_max_cmd_len=8192;
6058     ;;
6059
6060   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6061     # This has been around since 386BSD, at least.  Likely further.
6062     if test -x /sbin/sysctl; then
6063       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6064     elif test -x /usr/sbin/sysctl; then
6065       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6066     else
6067       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6068     fi
6069     # And add a safety zone
6070     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6071     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6072     ;;
6073
6074   interix*)
6075     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6076     lt_cv_sys_max_cmd_len=196608
6077     ;;
6078
6079   osf*)
6080     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6081     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6082     # nice to cause kernel panics so lets avoid the loop below.
6083     # First set a reasonable default.
6084     lt_cv_sys_max_cmd_len=16384
6085     #
6086     if test -x /sbin/sysconfig; then
6087       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6088         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6089       esac
6090     fi
6091     ;;
6092   sco3.2v5*)
6093     lt_cv_sys_max_cmd_len=102400
6094     ;;
6095   sysv5* | sco5v6* | sysv4.2uw2*)
6096     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6097     if test -n "$kargmax"; then
6098       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6099     else
6100       lt_cv_sys_max_cmd_len=32768
6101     fi
6102     ;;
6103   *)
6104     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6105     if test -n "$lt_cv_sys_max_cmd_len"; then
6106       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6107       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6108     else
6109       # Make teststring a little bigger before we do anything with it.
6110       # a 1K string should be a reasonable start.
6111       for i in 1 2 3 4 5 6 7 8 ; do
6112         teststring=$teststring$teststring
6113       done
6114       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6115       # If test is not a shell built-in, we'll probably end up computing a
6116       # maximum length that is only half of the actual maximum length, but
6117       # we can't tell.
6118       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6119                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6120               test $i != 17 # 1/2 MB should be enough
6121       do
6122         i=`expr $i + 1`
6123         teststring=$teststring$teststring
6124       done
6125       # Only check the string length outside the loop.
6126       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6127       teststring=
6128       # Add a significant safety factor because C++ compilers can tack on
6129       # massive amounts of additional arguments before passing them to the
6130       # linker.  It appears as though 1/2 is a usable value.
6131       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6132     fi
6133     ;;
6134   esac
6135
6136 fi
6137
6138 if test -n $lt_cv_sys_max_cmd_len ; then
6139   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6140 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6141 else
6142   { echo "$as_me:$LINENO: result: none" >&5
6143 echo "${ECHO_T}none" >&6; }
6144 fi
6145 max_cmd_len=$lt_cv_sys_max_cmd_len
6146
6147
6148
6149
6150
6151
6152 : ${CP="cp -f"}
6153 : ${MV="mv -f"}
6154 : ${RM="rm -f"}
6155
6156 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6157 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6158 # Try some XSI features
6159 xsi_shell=no
6160 ( _lt_dummy="a/b/c"
6161   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6162       = c,a/b,, \
6163     && eval 'test $(( 1 + 1 )) -eq 2 \
6164     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6165   && xsi_shell=yes
6166 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6167 echo "${ECHO_T}$xsi_shell" >&6; }
6168
6169
6170 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6171 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6172 lt_shell_append=no
6173 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6174     >/dev/null 2>&1 \
6175   && lt_shell_append=yes
6176 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6177 echo "${ECHO_T}$lt_shell_append" >&6; }
6178
6179
6180 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6181   lt_unset=unset
6182 else
6183   lt_unset=false
6184 fi
6185
6186
6187
6188
6189
6190 # test EBCDIC or ASCII
6191 case `echo X|tr X '\101'` in
6192  A) # ASCII based system
6193     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6194   lt_SP2NL='tr \040 \012'
6195   lt_NL2SP='tr \015\012 \040\040'
6196   ;;
6197  *) # EBCDIC based system
6198   lt_SP2NL='tr \100 \n'
6199   lt_NL2SP='tr \r\n \100\100'
6200   ;;
6201 esac
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6212 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6213 if test "${lt_cv_ld_reload_flag+set}" = set; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216   lt_cv_ld_reload_flag='-r'
6217 fi
6218 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6219 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6220 reload_flag=$lt_cv_ld_reload_flag
6221 case $reload_flag in
6222 "" | " "*) ;;
6223 *) reload_flag=" $reload_flag" ;;
6224 esac
6225 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6226 case $host_os in
6227   darwin*)
6228     if test "$GCC" = yes; then
6229       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6230     else
6231       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6232     fi
6233     ;;
6234 esac
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244 if test -n "$ac_tool_prefix"; then
6245   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6249 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6250   echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252   if test -n "$OBJDUMP"; then
6253   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258   IFS=$as_save_IFS
6259   test -z "$as_dir" && as_dir=.
6260   for ac_exec_ext in '' $ac_executable_extensions; do
6261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264     break 2
6265   fi
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 OBJDUMP=$ac_cv_prog_OBJDUMP
6273 if test -n "$OBJDUMP"; then
6274   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6275 echo "${ECHO_T}$OBJDUMP" >&6; }
6276 else
6277   { echo "$as_me:$LINENO: result: no" >&5
6278 echo "${ECHO_T}no" >&6; }
6279 fi
6280
6281
6282 fi
6283 if test -z "$ac_cv_prog_OBJDUMP"; then
6284   ac_ct_OBJDUMP=$OBJDUMP
6285   # Extract the first word of "objdump", so it can be a program name with args.
6286 set dummy objdump; ac_word=$2
6287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6289 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   if test -n "$ac_ct_OBJDUMP"; then
6293   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298   IFS=$as_save_IFS
6299   test -z "$as_dir" && as_dir=.
6300   for ac_exec_ext in '' $ac_executable_extensions; do
6301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304     break 2
6305   fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6313 if test -n "$ac_ct_OBJDUMP"; then
6314   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6315 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6316 else
6317   { echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6; }
6319 fi
6320
6321   if test "x$ac_ct_OBJDUMP" = x; then
6322     OBJDUMP="false"
6323   else
6324     case $cross_compiling:$ac_tool_warned in
6325 yes:)
6326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6327 whose name does not start with the host triplet.  If you think this
6328 configuration is useful to you, please write to autoconf@gnu.org." >&5
6329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6330 whose name does not start with the host triplet.  If you think this
6331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6332 ac_tool_warned=yes ;;
6333 esac
6334     OBJDUMP=$ac_ct_OBJDUMP
6335   fi
6336 else
6337   OBJDUMP="$ac_cv_prog_OBJDUMP"
6338 fi
6339
6340 test -z "$OBJDUMP" && OBJDUMP=objdump
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6351 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6352 if test "${lt_cv_deplibs_check_method+set}" = set; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   lt_cv_file_magic_cmd='$MAGIC_CMD'
6356 lt_cv_file_magic_test_file=
6357 lt_cv_deplibs_check_method='unknown'
6358 # Need to set the preceding variable on all platforms that support
6359 # interlibrary dependencies.
6360 # 'none' -- dependencies not supported.
6361 # `unknown' -- same as none, but documents that we really don't know.
6362 # 'pass_all' -- all dependencies passed with no checks.
6363 # 'test_compile' -- check by making test program.
6364 # 'file_magic [[regex]]' -- check by looking for files in library path
6365 # which responds to the $file_magic_cmd with a given extended regex.
6366 # If you have `file' or equivalent on your system and you're not sure
6367 # whether `pass_all' will *always* work, you probably want this one.
6368
6369 case $host_os in
6370 aix[4-9]*)
6371   lt_cv_deplibs_check_method=pass_all
6372   ;;
6373
6374 beos*)
6375   lt_cv_deplibs_check_method=pass_all
6376   ;;
6377
6378 bsdi[45]*)
6379   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6380   lt_cv_file_magic_cmd='/usr/bin/file -L'
6381   lt_cv_file_magic_test_file=/shlib/libc.so
6382   ;;
6383
6384 cygwin*)
6385   # func_win32_libid is a shell function defined in ltmain.sh
6386   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6387   lt_cv_file_magic_cmd='func_win32_libid'
6388   ;;
6389
6390 mingw* | pw32*)
6391   # Base MSYS/MinGW do not provide the 'file' command needed by
6392   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6393   # unless we find 'file', for example because we are cross-compiling.
6394   if ( file / ) >/dev/null 2>&1; then
6395     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6396     lt_cv_file_magic_cmd='func_win32_libid'
6397   else
6398     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6399     lt_cv_file_magic_cmd='$OBJDUMP -f'
6400   fi
6401   ;;
6402
6403 cegcc)
6404   # use the weaker test based on 'objdump'. See mingw*.
6405   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6406   lt_cv_file_magic_cmd='$OBJDUMP -f'
6407   ;;
6408
6409 darwin* | rhapsody*)
6410   lt_cv_deplibs_check_method=pass_all
6411   ;;
6412
6413 freebsd* | dragonfly*)
6414   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6415     case $host_cpu in
6416     i*86 )
6417       # Not sure whether the presence of OpenBSD here was a mistake.
6418       # Let's accept both of them until this is cleared up.
6419       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6420       lt_cv_file_magic_cmd=/usr/bin/file
6421       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6422       ;;
6423     esac
6424   else
6425     lt_cv_deplibs_check_method=pass_all
6426   fi
6427   ;;
6428
6429 gnu*)
6430   lt_cv_deplibs_check_method=pass_all
6431   ;;
6432
6433 hpux10.20* | hpux11*)
6434   lt_cv_file_magic_cmd=/usr/bin/file
6435   case $host_cpu in
6436   ia64*)
6437     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6438     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6439     ;;
6440   hppa*64*)
6441     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]'
6442     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6443     ;;
6444   *)
6445     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6446     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6447     ;;
6448   esac
6449   ;;
6450
6451 interix[3-9]*)
6452   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6453   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6454   ;;
6455
6456 irix5* | irix6* | nonstopux*)
6457   case $LD in
6458   *-32|*"-32 ") libmagic=32-bit;;
6459   *-n32|*"-n32 ") libmagic=N32;;
6460   *-64|*"-64 ") libmagic=64-bit;;
6461   *) libmagic=never-match;;
6462   esac
6463   lt_cv_deplibs_check_method=pass_all
6464   ;;
6465
6466 # This must be Linux ELF.
6467 linux* | k*bsd*-gnu)
6468   lt_cv_deplibs_check_method=pass_all
6469   ;;
6470
6471 netbsd*)
6472   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6473     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6474   else
6475     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6476   fi
6477   ;;
6478
6479 newos6*)
6480   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6481   lt_cv_file_magic_cmd=/usr/bin/file
6482   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6483   ;;
6484
6485 *nto* | *qnx*)
6486   lt_cv_deplibs_check_method=pass_all
6487   ;;
6488
6489 openbsd*)
6490   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6491     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6492   else
6493     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6494   fi
6495   ;;
6496
6497 osf3* | osf4* | osf5*)
6498   lt_cv_deplibs_check_method=pass_all
6499   ;;
6500
6501 rdos*)
6502   lt_cv_deplibs_check_method=pass_all
6503   ;;
6504
6505 solaris*)
6506   lt_cv_deplibs_check_method=pass_all
6507   ;;
6508
6509 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6510   lt_cv_deplibs_check_method=pass_all
6511   ;;
6512
6513 sysv4 | sysv4.3*)
6514   case $host_vendor in
6515   motorola)
6516     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]'
6517     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6518     ;;
6519   ncr)
6520     lt_cv_deplibs_check_method=pass_all
6521     ;;
6522   sequent)
6523     lt_cv_file_magic_cmd='/bin/file'
6524     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6525     ;;
6526   sni)
6527     lt_cv_file_magic_cmd='/bin/file'
6528     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6529     lt_cv_file_magic_test_file=/lib/libc.so
6530     ;;
6531   siemens)
6532     lt_cv_deplibs_check_method=pass_all
6533     ;;
6534   pc)
6535     lt_cv_deplibs_check_method=pass_all
6536     ;;
6537   esac
6538   ;;
6539
6540 tpf*)
6541   lt_cv_deplibs_check_method=pass_all
6542   ;;
6543 esac
6544
6545 fi
6546 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6547 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6548 file_magic_cmd=$lt_cv_file_magic_cmd
6549 deplibs_check_method=$lt_cv_deplibs_check_method
6550 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563 if test -n "$ac_tool_prefix"; then
6564   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}ar; ac_word=$2
6566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568 if test "${ac_cv_prog_AR+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   if test -n "$AR"; then
6572   ac_cv_prog_AR="$AR" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579   for ac_exec_ext in '' $ac_executable_extensions; do
6580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581     ac_cv_prog_AR="${ac_tool_prefix}ar"
6582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 AR=$ac_cv_prog_AR
6592 if test -n "$AR"; then
6593   { echo "$as_me:$LINENO: result: $AR" >&5
6594 echo "${ECHO_T}$AR" >&6; }
6595 else
6596   { echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6; }
6598 fi
6599
6600
6601 fi
6602 if test -z "$ac_cv_prog_AR"; then
6603   ac_ct_AR=$AR
6604   # Extract the first word of "ar", so it can be a program name with args.
6605 set dummy ar; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   if test -n "$ac_ct_AR"; then
6612   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619   for ac_exec_ext in '' $ac_executable_extensions; do
6620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621     ac_cv_prog_ac_ct_AR="ar"
6622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626 done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6632 if test -n "$ac_ct_AR"; then
6633   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6634 echo "${ECHO_T}$ac_ct_AR" >&6; }
6635 else
6636   { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6638 fi
6639
6640   if test "x$ac_ct_AR" = x; then
6641     AR="false"
6642   else
6643     case $cross_compiling:$ac_tool_warned in
6644 yes:)
6645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6646 whose name does not start with the host triplet.  If you think this
6647 configuration is useful to you, please write to autoconf@gnu.org." >&5
6648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6649 whose name does not start with the host triplet.  If you think this
6650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6651 ac_tool_warned=yes ;;
6652 esac
6653     AR=$ac_ct_AR
6654   fi
6655 else
6656   AR="$ac_cv_prog_AR"
6657 fi
6658
6659 test -z "$AR" && AR=ar
6660 test -z "$AR_FLAGS" && AR_FLAGS=cru
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672 if test -n "$ac_tool_prefix"; then
6673   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}strip; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_prog_STRIP+set}" = set; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   if test -n "$STRIP"; then
6681   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688   for ac_exec_ext in '' $ac_executable_extensions; do
6689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 STRIP=$ac_cv_prog_STRIP
6701 if test -n "$STRIP"; then
6702   { echo "$as_me:$LINENO: result: $STRIP" >&5
6703 echo "${ECHO_T}$STRIP" >&6; }
6704 else
6705   { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6707 fi
6708
6709
6710 fi
6711 if test -z "$ac_cv_prog_STRIP"; then
6712   ac_ct_STRIP=$STRIP
6713   # Extract the first word of "strip", so it can be a program name with args.
6714 set dummy strip; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6718   echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720   if test -n "$ac_ct_STRIP"; then
6721   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726   IFS=$as_save_IFS
6727   test -z "$as_dir" && as_dir=.
6728   for ac_exec_ext in '' $ac_executable_extensions; do
6729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730     ac_cv_prog_ac_ct_STRIP="strip"
6731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732     break 2
6733   fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6741 if test -n "$ac_ct_STRIP"; then
6742   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6743 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6744 else
6745   { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6747 fi
6748
6749   if test "x$ac_ct_STRIP" = x; then
6750     STRIP=":"
6751   else
6752     case $cross_compiling:$ac_tool_warned in
6753 yes:)
6754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6755 whose name does not start with the host triplet.  If you think this
6756 configuration is useful to you, please write to autoconf@gnu.org." >&5
6757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6758 whose name does not start with the host triplet.  If you think this
6759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762     STRIP=$ac_ct_STRIP
6763   fi
6764 else
6765   STRIP="$ac_cv_prog_STRIP"
6766 fi
6767
6768 test -z "$STRIP" && STRIP=:
6769
6770
6771
6772
6773
6774
6775 if test -n "$ac_tool_prefix"; then
6776   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_prog_RANLIB+set}" = set; then
6781   echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783   if test -n "$RANLIB"; then
6784   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789   IFS=$as_save_IFS
6790   test -z "$as_dir" && as_dir=.
6791   for ac_exec_ext in '' $ac_executable_extensions; do
6792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795     break 2
6796   fi
6797 done
6798 done
6799 IFS=$as_save_IFS
6800
6801 fi
6802 fi
6803 RANLIB=$ac_cv_prog_RANLIB
6804 if test -n "$RANLIB"; then
6805   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6806 echo "${ECHO_T}$RANLIB" >&6; }
6807 else
6808   { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6810 fi
6811
6812
6813 fi
6814 if test -z "$ac_cv_prog_RANLIB"; then
6815   ac_ct_RANLIB=$RANLIB
6816   # Extract the first word of "ranlib", so it can be a program name with args.
6817 set dummy ranlib; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   if test -n "$ac_ct_RANLIB"; then
6824   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829   IFS=$as_save_IFS
6830   test -z "$as_dir" && as_dir=.
6831   for ac_exec_ext in '' $ac_executable_extensions; do
6832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833     ac_cv_prog_ac_ct_RANLIB="ranlib"
6834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835     break 2
6836   fi
6837 done
6838 done
6839 IFS=$as_save_IFS
6840
6841 fi
6842 fi
6843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6844 if test -n "$ac_ct_RANLIB"; then
6845   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6846 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6847 else
6848   { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6850 fi
6851
6852   if test "x$ac_ct_RANLIB" = x; then
6853     RANLIB=":"
6854   else
6855     case $cross_compiling:$ac_tool_warned in
6856 yes:)
6857 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6858 whose name does not start with the host triplet.  If you think this
6859 configuration is useful to you, please write to autoconf@gnu.org." >&5
6860 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6861 whose name does not start with the host triplet.  If you think this
6862 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6863 ac_tool_warned=yes ;;
6864 esac
6865     RANLIB=$ac_ct_RANLIB
6866   fi
6867 else
6868   RANLIB="$ac_cv_prog_RANLIB"
6869 fi
6870
6871 test -z "$RANLIB" && RANLIB=:
6872
6873
6874
6875
6876
6877
6878 # Determine commands to create old-style static archives.
6879 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6880 old_postinstall_cmds='chmod 644 $oldlib'
6881 old_postuninstall_cmds=
6882
6883 if test -n "$RANLIB"; then
6884   case $host_os in
6885   openbsd*)
6886     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6887     ;;
6888   *)
6889     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6890     ;;
6891   esac
6892   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6893 fi
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
6924
6925
6926
6927
6928 # If no C compiler was specified, use CC.
6929 LTCC=${LTCC-"$CC"}
6930
6931 # If no C compiler flags were specified, use CFLAGS.
6932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6933
6934 # Allow CC to be a program name with arguments.
6935 compiler=$CC
6936
6937
6938 # Check for command to grab the raw symbol name followed by C symbol from nm.
6939 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6940 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6941 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6942   echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944
6945 # These are sane defaults that work on at least a few old systems.
6946 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6947
6948 # Character class describing NM global symbol codes.
6949 symcode='[BCDEGRST]'
6950
6951 # Regexp to match symbols that can be accessed directly from C.
6952 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6953
6954 # Define system-specific variables.
6955 case $host_os in
6956 aix*)
6957   symcode='[BCDT]'
6958   ;;
6959 cygwin* | mingw* | pw32* | cegcc*)
6960   symcode='[ABCDGISTW]'
6961   ;;
6962 hpux*)
6963   if test "$host_cpu" = ia64; then
6964     symcode='[ABCDEGRST]'
6965   fi
6966   ;;
6967 irix* | nonstopux*)
6968   symcode='[BCDEGRST]'
6969   ;;
6970 osf*)
6971   symcode='[BCDEGQRST]'
6972   ;;
6973 solaris*)
6974   symcode='[BDRT]'
6975   ;;
6976 sco3.2v5*)
6977   symcode='[DT]'
6978   ;;
6979 sysv4.2uw2*)
6980   symcode='[DT]'
6981   ;;
6982 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6983   symcode='[ABDT]'
6984   ;;
6985 sysv4)
6986   symcode='[DFNSTU]'
6987   ;;
6988 esac
6989
6990 # If we're using GNU nm, then use its standard symbol codes.
6991 case `$NM -V 2>&1` in
6992 *GNU* | *'with BFD'*)
6993   symcode='[ABCDGIRSTW]' ;;
6994 esac
6995
6996 # Transform an extracted symbol line into a proper C declaration.
6997 # Some systems (esp. on ia64) link data and code symbols differently,
6998 # so use this general approach.
6999 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7000
7001 # Transform an extracted symbol line into symbol name and symbol address
7002 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7003 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'"
7004
7005 # Handle CRLF in mingw tool chain
7006 opt_cr=
7007 case $build_os in
7008 mingw*)
7009   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7010   ;;
7011 esac
7012
7013 # Try without a prefix underscore, then with it.
7014 for ac_symprfx in "" "_"; do
7015
7016   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7017   symxfrm="\\1 $ac_symprfx\\2 \\2"
7018
7019   # Write the raw and C identifiers.
7020   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7021     # Fake it for dumpbin and say T for any non-static function
7022     # and D for any global variable.
7023     # Also find C++ and __fastcall symbols from MSVC++,
7024     # which start with @ or ?.
7025     lt_cv_sys_global_symbol_pipe="$AWK '"\
7026 "     {last_section=section; section=\$ 3};"\
7027 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7028 "     \$ 0!~/External *\|/{next};"\
7029 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7030 "     {if(hide[section]) next};"\
7031 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7032 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7033 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7034 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7035 "     ' prfx=^$ac_symprfx"
7036   else
7037     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7038   fi
7039
7040   # Check to see that the pipe works correctly.
7041   pipe_works=no
7042
7043   rm -f conftest*
7044   cat > conftest.$ac_ext <<_LT_EOF
7045 #ifdef __cplusplus
7046 extern "C" {
7047 #endif
7048 char nm_test_var;
7049 void nm_test_func(void);
7050 void nm_test_func(void){}
7051 #ifdef __cplusplus
7052 }
7053 #endif
7054 int main(){nm_test_var='a';nm_test_func();return(0);}
7055 _LT_EOF
7056
7057   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7058   (eval $ac_compile) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); }; then
7062     # Now try to grab the symbols.
7063     nlist=conftest.nm
7064     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7065   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); } && test -s "$nlist"; then
7069       # Try sorting and uniquifying the output.
7070       if sort "$nlist" | uniq > "$nlist"T; then
7071         mv -f "$nlist"T "$nlist"
7072       else
7073         rm -f "$nlist"T
7074       fi
7075
7076       # Make sure that we snagged all the symbols we need.
7077       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7078         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7079           cat <<_LT_EOF > conftest.$ac_ext
7080 #ifdef __cplusplus
7081 extern "C" {
7082 #endif
7083
7084 _LT_EOF
7085           # Now generate the symbol file.
7086           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7087
7088           cat <<_LT_EOF >> conftest.$ac_ext
7089
7090 /* The mapping between symbol names and symbols.  */
7091 const struct {
7092   const char *name;
7093   void       *address;
7094 }
7095 lt__PROGRAM__LTX_preloaded_symbols[] =
7096 {
7097   { "@PROGRAM@", (void *) 0 },
7098 _LT_EOF
7099           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7100           cat <<\_LT_EOF >> conftest.$ac_ext
7101   {0, (void *) 0}
7102 };
7103
7104 /* This works around a problem in FreeBSD linker */
7105 #ifdef FREEBSD_WORKAROUND
7106 static const void *lt_preloaded_setup() {
7107   return lt__PROGRAM__LTX_preloaded_symbols;
7108 }
7109 #endif
7110
7111 #ifdef __cplusplus
7112 }
7113 #endif
7114 _LT_EOF
7115           # Now try linking the two files.
7116           mv conftest.$ac_objext conftstm.$ac_objext
7117           lt_save_LIBS="$LIBS"
7118           lt_save_CFLAGS="$CFLAGS"
7119           LIBS="conftstm.$ac_objext"
7120           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7121           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122   (eval $ac_link) 2>&5
7123   ac_status=$?
7124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7126             pipe_works=yes
7127           fi
7128           LIBS="$lt_save_LIBS"
7129           CFLAGS="$lt_save_CFLAGS"
7130         else
7131           echo "cannot find nm_test_func in $nlist" >&5
7132         fi
7133       else
7134         echo "cannot find nm_test_var in $nlist" >&5
7135       fi
7136     else
7137       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7138     fi
7139   else
7140     echo "$progname: failed program was:" >&5
7141     cat conftest.$ac_ext >&5
7142   fi
7143   rm -rf conftest* conftst*
7144
7145   # Do not use the global_symbol_pipe unless it works.
7146   if test "$pipe_works" = yes; then
7147     break
7148   else
7149     lt_cv_sys_global_symbol_pipe=
7150   fi
7151 done
7152
7153 fi
7154
7155 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7156   lt_cv_sys_global_symbol_to_cdecl=
7157 fi
7158 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7159   { echo "$as_me:$LINENO: result: failed" >&5
7160 echo "${ECHO_T}failed" >&6; }
7161 else
7162   { echo "$as_me:$LINENO: result: ok" >&5
7163 echo "${ECHO_T}ok" >&6; }
7164 fi
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187 # Check whether --enable-libtool-lock was given.
7188 if test "${enable_libtool_lock+set}" = set; then
7189   enableval=$enable_libtool_lock;
7190 fi
7191
7192 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7193
7194 # Some flags need to be propagated to the compiler or linker for good
7195 # libtool support.
7196 case $host in
7197 ia64-*-hpux*)
7198   # Find out which ABI we are using.
7199   echo 'int i;' > conftest.$ac_ext
7200   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201   (eval $ac_compile) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); }; then
7205     case `/usr/bin/file conftest.$ac_objext` in
7206       *ELF-32*)
7207         HPUX_IA64_MODE="32"
7208         ;;
7209       *ELF-64*)
7210         HPUX_IA64_MODE="64"
7211         ;;
7212     esac
7213   fi
7214   rm -rf conftest*
7215   ;;
7216 *-*-irix6*)
7217   # Find out which ABI we are using.
7218   echo '#line 7218 "configure"' > conftest.$ac_ext
7219   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7220   (eval $ac_compile) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); }; then
7224     if test "$lt_cv_prog_gnu_ld" = yes; then
7225       case `/usr/bin/file conftest.$ac_objext` in
7226         *32-bit*)
7227           LD="${LD-ld} -melf32bsmip"
7228           ;;
7229         *N32*)
7230           LD="${LD-ld} -melf32bmipn32"
7231           ;;
7232         *64-bit*)
7233           LD="${LD-ld} -melf64bmip"
7234         ;;
7235       esac
7236     else
7237       case `/usr/bin/file conftest.$ac_objext` in
7238         *32-bit*)
7239           LD="${LD-ld} -32"
7240           ;;
7241         *N32*)
7242           LD="${LD-ld} -n32"
7243           ;;
7244         *64-bit*)
7245           LD="${LD-ld} -64"
7246           ;;
7247       esac
7248     fi
7249   fi
7250   rm -rf conftest*
7251   ;;
7252
7253 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7254 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7255   # Find out which ABI we are using.
7256   echo 'int i;' > conftest.$ac_ext
7257   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258   (eval $ac_compile) 2>&5
7259   ac_status=$?
7260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261   (exit $ac_status); }; then
7262     case `/usr/bin/file conftest.o` in
7263       *32-bit*)
7264         case $host in
7265           x86_64-*kfreebsd*-gnu)
7266             LD="${LD-ld} -m elf_i386_fbsd"
7267             ;;
7268           x86_64-*linux*)
7269             LD="${LD-ld} -m elf_i386"
7270             ;;
7271           ppc64-*linux*|powerpc64-*linux*)
7272             LD="${LD-ld} -m elf32ppclinux"
7273             ;;
7274           s390x-*linux*)
7275             LD="${LD-ld} -m elf_s390"
7276             ;;
7277           sparc64-*linux*)
7278             LD="${LD-ld} -m elf32_sparc"
7279             ;;
7280         esac
7281         ;;
7282       *64-bit*)
7283         case $host in
7284           x86_64-*kfreebsd*-gnu)
7285             LD="${LD-ld} -m elf_x86_64_fbsd"
7286             ;;
7287           x86_64-*linux*)
7288             LD="${LD-ld} -m elf_x86_64"
7289             ;;
7290           ppc*-*linux*|powerpc*-*linux*)
7291             LD="${LD-ld} -m elf64ppc"
7292             ;;
7293           s390*-*linux*|s390*-*tpf*)
7294             LD="${LD-ld} -m elf64_s390"
7295             ;;
7296           sparc*-*linux*)
7297             LD="${LD-ld} -m elf64_sparc"
7298             ;;
7299         esac
7300         ;;
7301     esac
7302   fi
7303   rm -rf conftest*
7304   ;;
7305
7306 *-*-sco3.2v5*)
7307   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7308   SAVE_CFLAGS="$CFLAGS"
7309   CFLAGS="$CFLAGS -belf"
7310   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7311 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7312 if test "${lt_cv_cc_needs_belf+set}" = set; then
7313   echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315   ac_ext=c
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7320
7321      cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h.  */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h.  */
7327
7328 int
7329 main ()
7330 {
7331
7332   ;
7333   return 0;
7334 }
7335 _ACEOF
7336 rm -f conftest.$ac_objext conftest$ac_exeext
7337 if { (ac_try="$ac_link"
7338 case "(($ac_try" in
7339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340   *) ac_try_echo=$ac_try;;
7341 esac
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343   (eval "$ac_link") 2>conftest.er1
7344   ac_status=$?
7345   grep -v '^ *+' conftest.er1 >conftest.err
7346   rm -f conftest.er1
7347   cat conftest.err >&5
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); } && {
7350          test -z "$ac_c_werror_flag" ||
7351          test ! -s conftest.err
7352        } && test -s conftest$ac_exeext &&
7353        $as_test_x conftest$ac_exeext; then
7354   lt_cv_cc_needs_belf=yes
7355 else
7356   echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7358
7359         lt_cv_cc_needs_belf=no
7360 fi
7361
7362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7363       conftest$ac_exeext conftest.$ac_ext
7364      ac_ext=c
7365 ac_cpp='$CPP $CPPFLAGS'
7366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7369
7370 fi
7371 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7372 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7373   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7374     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7375     CFLAGS="$SAVE_CFLAGS"
7376   fi
7377   ;;
7378 sparc*-*solaris*)
7379   # Find out which ABI we are using.
7380   echo 'int i;' > conftest.$ac_ext
7381   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7382   (eval $ac_compile) 2>&5
7383   ac_status=$?
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); }; then
7386     case `/usr/bin/file conftest.o` in
7387     *64-bit*)
7388       case $lt_cv_prog_gnu_ld in
7389       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7390       *)
7391         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7392           LD="${LD-ld} -64"
7393         fi
7394         ;;
7395       esac
7396       ;;
7397     esac
7398   fi
7399   rm -rf conftest*
7400   ;;
7401 esac
7402
7403 need_locks="$enable_libtool_lock"
7404
7405
7406   case $host_os in
7407     rhapsody* | darwin*)
7408     if test -n "$ac_tool_prefix"; then
7409   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7410 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   if test -n "$DSYMUTIL"; then
7417   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422   IFS=$as_save_IFS
7423   test -z "$as_dir" && as_dir=.
7424   for ac_exec_ext in '' $ac_executable_extensions; do
7425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428     break 2
7429   fi
7430 done
7431 done
7432 IFS=$as_save_IFS
7433
7434 fi
7435 fi
7436 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7437 if test -n "$DSYMUTIL"; then
7438   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7439 echo "${ECHO_T}$DSYMUTIL" >&6; }
7440 else
7441   { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7443 fi
7444
7445
7446 fi
7447 if test -z "$ac_cv_prog_DSYMUTIL"; then
7448   ac_ct_DSYMUTIL=$DSYMUTIL
7449   # Extract the first word of "dsymutil", so it can be a program name with args.
7450 set dummy dsymutil; ac_word=$2
7451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7454   echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456   if test -n "$ac_ct_DSYMUTIL"; then
7457   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464   for ac_exec_ext in '' $ac_executable_extensions; do
7465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7466     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471 done
7472 IFS=$as_save_IFS
7473
7474 fi
7475 fi
7476 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7477 if test -n "$ac_ct_DSYMUTIL"; then
7478   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7479 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7480 else
7481   { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7483 fi
7484
7485   if test "x$ac_ct_DSYMUTIL" = x; then
7486     DSYMUTIL=":"
7487   else
7488     case $cross_compiling:$ac_tool_warned in
7489 yes:)
7490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7491 whose name does not start with the host triplet.  If you think this
7492 configuration is useful to you, please write to autoconf@gnu.org." >&5
7493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7494 whose name does not start with the host triplet.  If you think this
7495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7496 ac_tool_warned=yes ;;
7497 esac
7498     DSYMUTIL=$ac_ct_DSYMUTIL
7499   fi
7500 else
7501   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7502 fi
7503
7504     if test -n "$ac_tool_prefix"; then
7505   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7506 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7510   echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512   if test -n "$NMEDIT"; then
7513   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520   for ac_exec_ext in '' $ac_executable_extensions; do
7521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530 fi
7531 fi
7532 NMEDIT=$ac_cv_prog_NMEDIT
7533 if test -n "$NMEDIT"; then
7534   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7535 echo "${ECHO_T}$NMEDIT" >&6; }
7536 else
7537   { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7539 fi
7540
7541
7542 fi
7543 if test -z "$ac_cv_prog_NMEDIT"; then
7544   ac_ct_NMEDIT=$NMEDIT
7545   # Extract the first word of "nmedit", so it can be a program name with args.
7546 set dummy nmedit; ac_word=$2
7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7550   echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552   if test -n "$ac_ct_NMEDIT"; then
7553   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560   for ac_exec_ext in '' $ac_executable_extensions; do
7561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567 done
7568 IFS=$as_save_IFS
7569
7570 fi
7571 fi
7572 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7573 if test -n "$ac_ct_NMEDIT"; then
7574   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7575 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7576 else
7577   { echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6; }
7579 fi
7580
7581   if test "x$ac_ct_NMEDIT" = x; then
7582     NMEDIT=":"
7583   else
7584     case $cross_compiling:$ac_tool_warned in
7585 yes:)
7586 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7587 whose name does not start with the host triplet.  If you think this
7588 configuration is useful to you, please write to autoconf@gnu.org." >&5
7589 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7590 whose name does not start with the host triplet.  If you think this
7591 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7592 ac_tool_warned=yes ;;
7593 esac
7594     NMEDIT=$ac_ct_NMEDIT
7595   fi
7596 else
7597   NMEDIT="$ac_cv_prog_NMEDIT"
7598 fi
7599
7600     if test -n "$ac_tool_prefix"; then
7601   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7602 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7605 if test "${ac_cv_prog_LIPO+set}" = set; then
7606   echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608   if test -n "$LIPO"; then
7609   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7613 do
7614   IFS=$as_save_IFS
7615   test -z "$as_dir" && as_dir=.
7616   for ac_exec_ext in '' $ac_executable_extensions; do
7617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620     break 2
7621   fi
7622 done
7623 done
7624 IFS=$as_save_IFS
7625
7626 fi
7627 fi
7628 LIPO=$ac_cv_prog_LIPO
7629 if test -n "$LIPO"; then
7630   { echo "$as_me:$LINENO: result: $LIPO" >&5
7631 echo "${ECHO_T}$LIPO" >&6; }
7632 else
7633   { echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6; }
7635 fi
7636
7637
7638 fi
7639 if test -z "$ac_cv_prog_LIPO"; then
7640   ac_ct_LIPO=$LIPO
7641   # Extract the first word of "lipo", so it can be a program name with args.
7642 set dummy lipo; ac_word=$2
7643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7646   echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648   if test -n "$ac_ct_LIPO"; then
7649   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654   IFS=$as_save_IFS
7655   test -z "$as_dir" && as_dir=.
7656   for ac_exec_ext in '' $ac_executable_extensions; do
7657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658     ac_cv_prog_ac_ct_LIPO="lipo"
7659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660     break 2
7661   fi
7662 done
7663 done
7664 IFS=$as_save_IFS
7665
7666 fi
7667 fi
7668 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7669 if test -n "$ac_ct_LIPO"; then
7670   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7671 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7672 else
7673   { echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6; }
7675 fi
7676
7677   if test "x$ac_ct_LIPO" = x; then
7678     LIPO=":"
7679   else
7680     case $cross_compiling:$ac_tool_warned in
7681 yes:)
7682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7683 whose name does not start with the host triplet.  If you think this
7684 configuration is useful to you, please write to autoconf@gnu.org." >&5
7685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7686 whose name does not start with the host triplet.  If you think this
7687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7688 ac_tool_warned=yes ;;
7689 esac
7690     LIPO=$ac_ct_LIPO
7691   fi
7692 else
7693   LIPO="$ac_cv_prog_LIPO"
7694 fi
7695
7696     if test -n "$ac_tool_prefix"; then
7697   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7698 set dummy ${ac_tool_prefix}otool; ac_word=$2
7699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701 if test "${ac_cv_prog_OTOOL+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704   if test -n "$OTOOL"; then
7705   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710   IFS=$as_save_IFS
7711   test -z "$as_dir" && as_dir=.
7712   for ac_exec_ext in '' $ac_executable_extensions; do
7713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7714     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716     break 2
7717   fi
7718 done
7719 done
7720 IFS=$as_save_IFS
7721
7722 fi
7723 fi
7724 OTOOL=$ac_cv_prog_OTOOL
7725 if test -n "$OTOOL"; then
7726   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7727 echo "${ECHO_T}$OTOOL" >&6; }
7728 else
7729   { echo "$as_me:$LINENO: result: no" >&5
7730 echo "${ECHO_T}no" >&6; }
7731 fi
7732
7733
7734 fi
7735 if test -z "$ac_cv_prog_OTOOL"; then
7736   ac_ct_OTOOL=$OTOOL
7737   # Extract the first word of "otool", so it can be a program name with args.
7738 set dummy otool; ac_word=$2
7739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7741 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7742   echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744   if test -n "$ac_ct_OTOOL"; then
7745   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750   IFS=$as_save_IFS
7751   test -z "$as_dir" && as_dir=.
7752   for ac_exec_ext in '' $ac_executable_extensions; do
7753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7754     ac_cv_prog_ac_ct_OTOOL="otool"
7755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756     break 2
7757   fi
7758 done
7759 done
7760 IFS=$as_save_IFS
7761
7762 fi
7763 fi
7764 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7765 if test -n "$ac_ct_OTOOL"; then
7766   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7767 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7768 else
7769   { echo "$as_me:$LINENO: result: no" >&5
7770 echo "${ECHO_T}no" >&6; }
7771 fi
7772
7773   if test "x$ac_ct_OTOOL" = x; then
7774     OTOOL=":"
7775   else
7776     case $cross_compiling:$ac_tool_warned in
7777 yes:)
7778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7779 whose name does not start with the host triplet.  If you think this
7780 configuration is useful to you, please write to autoconf@gnu.org." >&5
7781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7782 whose name does not start with the host triplet.  If you think this
7783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7784 ac_tool_warned=yes ;;
7785 esac
7786     OTOOL=$ac_ct_OTOOL
7787   fi
7788 else
7789   OTOOL="$ac_cv_prog_OTOOL"
7790 fi
7791
7792     if test -n "$ac_tool_prefix"; then
7793   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7794 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7797 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7798   echo $ECHO_N "(cached) $ECHO_C" >&6
7799 else
7800   if test -n "$OTOOL64"; then
7801   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7802 else
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7805 do
7806   IFS=$as_save_IFS
7807   test -z "$as_dir" && as_dir=.
7808   for ac_exec_ext in '' $ac_executable_extensions; do
7809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7810     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812     break 2
7813   fi
7814 done
7815 done
7816 IFS=$as_save_IFS
7817
7818 fi
7819 fi
7820 OTOOL64=$ac_cv_prog_OTOOL64
7821 if test -n "$OTOOL64"; then
7822   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7823 echo "${ECHO_T}$OTOOL64" >&6; }
7824 else
7825   { echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6; }
7827 fi
7828
7829
7830 fi
7831 if test -z "$ac_cv_prog_OTOOL64"; then
7832   ac_ct_OTOOL64=$OTOOL64
7833   # Extract the first word of "otool64", so it can be a program name with args.
7834 set dummy otool64; ac_word=$2
7835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7837 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7838   echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840   if test -n "$ac_ct_OTOOL64"; then
7841   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7842 else
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7845 do
7846   IFS=$as_save_IFS
7847   test -z "$as_dir" && as_dir=.
7848   for ac_exec_ext in '' $ac_executable_extensions; do
7849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7850     ac_cv_prog_ac_ct_OTOOL64="otool64"
7851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852     break 2
7853   fi
7854 done
7855 done
7856 IFS=$as_save_IFS
7857
7858 fi
7859 fi
7860 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7861 if test -n "$ac_ct_OTOOL64"; then
7862   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7863 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7864 else
7865   { echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6; }
7867 fi
7868
7869   if test "x$ac_ct_OTOOL64" = x; then
7870     OTOOL64=":"
7871   else
7872     case $cross_compiling:$ac_tool_warned in
7873 yes:)
7874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7875 whose name does not start with the host triplet.  If you think this
7876 configuration is useful to you, please write to autoconf@gnu.org." >&5
7877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7878 whose name does not start with the host triplet.  If you think this
7879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7880 ac_tool_warned=yes ;;
7881 esac
7882     OTOOL64=$ac_ct_OTOOL64
7883   fi
7884 else
7885   OTOOL64="$ac_cv_prog_OTOOL64"
7886 fi
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7915 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7916 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7917   echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919   lt_cv_apple_cc_single_mod=no
7920       if test -z "${LT_MULTI_MODULE}"; then
7921         # By default we will add the -single_module flag. You can override
7922         # by either setting the environment variable LT_MULTI_MODULE
7923         # non-empty at configure time, or by adding -multi_module to the
7924         # link flags.
7925         rm -rf libconftest.dylib*
7926         echo "int foo(void){return 1;}" > conftest.c
7927         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7928 -dynamiclib -Wl,-single_module conftest.c" >&5
7929         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7930           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7931         _lt_result=$?
7932         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7933           lt_cv_apple_cc_single_mod=yes
7934         else
7935           cat conftest.err >&5
7936         fi
7937         rm -rf libconftest.dylib*
7938         rm -f conftest.*
7939       fi
7940 fi
7941 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7942 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7943     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7944 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7945 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7946   echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948   lt_cv_ld_exported_symbols_list=no
7949       save_LDFLAGS=$LDFLAGS
7950       echo "_main" > conftest.sym
7951       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7952       cat >conftest.$ac_ext <<_ACEOF
7953 /* confdefs.h.  */
7954 _ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h.  */
7958
7959 int
7960 main ()
7961 {
7962
7963   ;
7964   return 0;
7965 }
7966 _ACEOF
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (ac_try="$ac_link"
7969 case "(($ac_try" in
7970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971   *) ac_try_echo=$ac_try;;
7972 esac
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974   (eval "$ac_link") 2>conftest.er1
7975   ac_status=$?
7976   grep -v '^ *+' conftest.er1 >conftest.err
7977   rm -f conftest.er1
7978   cat conftest.err >&5
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); } && {
7981          test -z "$ac_c_werror_flag" ||
7982          test ! -s conftest.err
7983        } && test -s conftest$ac_exeext &&
7984        $as_test_x conftest$ac_exeext; then
7985   lt_cv_ld_exported_symbols_list=yes
7986 else
7987   echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990         lt_cv_ld_exported_symbols_list=no
7991 fi
7992
7993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7994       conftest$ac_exeext conftest.$ac_ext
7995         LDFLAGS="$save_LDFLAGS"
7996
7997 fi
7998 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7999 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8000     case $host_os in
8001     rhapsody* | darwin1.[012])
8002       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8003     darwin1.*)
8004       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8005     darwin*) # darwin 5.x on
8006       # if running on 10.5 or later, the deployment target defaults
8007       # to the OS version, if on x86, and 10.4, the deployment
8008       # target defaults to 10.4. Don't you love it?
8009       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8010         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8011           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8012         10.[012]*)
8013           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8014         10.*)
8015           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8016       esac
8017     ;;
8018   esac
8019     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8020       _lt_dar_single_mod='$single_module'
8021     fi
8022     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8023       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8024     else
8025       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8026     fi
8027     if test "$DSYMUTIL" != ":"; then
8028       _lt_dsymutil='~$DSYMUTIL $lib || :'
8029     else
8030       _lt_dsymutil=
8031     fi
8032     ;;
8033   esac
8034
8035 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8036 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8037 if test "${ac_cv_header_stdc+set}" = set; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040   cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h.  */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h.  */
8046 #include <stdlib.h>
8047 #include <stdarg.h>
8048 #include <string.h>
8049 #include <float.h>
8050
8051 int
8052 main ()
8053 {
8054
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 rm -f conftest.$ac_objext
8060 if { (ac_try="$ac_compile"
8061 case "(($ac_try" in
8062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063   *) ac_try_echo=$ac_try;;
8064 esac
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066   (eval "$ac_compile") 2>conftest.er1
8067   ac_status=$?
8068   grep -v '^ *+' conftest.er1 >conftest.err
8069   rm -f conftest.er1
8070   cat conftest.err >&5
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); } && {
8073          test -z "$ac_c_werror_flag" ||
8074          test ! -s conftest.err
8075        } && test -s conftest.$ac_objext; then
8076   ac_cv_header_stdc=yes
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081         ac_cv_header_stdc=no
8082 fi
8083
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085
8086 if test $ac_cv_header_stdc = yes; then
8087   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8088   cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094 #include <string.h>
8095
8096 _ACEOF
8097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8098   $EGREP "memchr" >/dev/null 2>&1; then
8099   :
8100 else
8101   ac_cv_header_stdc=no
8102 fi
8103 rm -f conftest*
8104
8105 fi
8106
8107 if test $ac_cv_header_stdc = yes; then
8108   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8109   cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h.  */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h.  */
8115 #include <stdlib.h>
8116
8117 _ACEOF
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8119   $EGREP "free" >/dev/null 2>&1; then
8120   :
8121 else
8122   ac_cv_header_stdc=no
8123 fi
8124 rm -f conftest*
8125
8126 fi
8127
8128 if test $ac_cv_header_stdc = yes; then
8129   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8130   if test "$cross_compiling" = yes; then
8131   :
8132 else
8133   cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h.  */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h.  */
8139 #include <ctype.h>
8140 #include <stdlib.h>
8141 #if ((' ' & 0x0FF) == 0x020)
8142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8144 #else
8145 # define ISLOWER(c) \
8146                    (('a' <= (c) && (c) <= 'i') \
8147                      || ('j' <= (c) && (c) <= 'r') \
8148                      || ('s' <= (c) && (c) <= 'z'))
8149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8150 #endif
8151
8152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8153 int
8154 main ()
8155 {
8156   int i;
8157   for (i = 0; i < 256; i++)
8158     if (XOR (islower (i), ISLOWER (i))
8159         || toupper (i) != TOUPPER (i))
8160       return 2;
8161   return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8166 case "(($ac_try" in
8167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168   *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171   (eval "$ac_link") 2>&5
8172   ac_status=$?
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8175   { (case "(($ac_try" in
8176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177   *) ac_try_echo=$ac_try;;
8178 esac
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180   (eval "$ac_try") 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; }; then
8184   :
8185 else
8186   echo "$as_me: program exited with status $ac_status" >&5
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8189
8190 ( exit $ac_status )
8191 ac_cv_header_stdc=no
8192 fi
8193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8194 fi
8195
8196
8197 fi
8198 fi
8199 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8200 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8201 if test $ac_cv_header_stdc = yes; then
8202
8203 cat >>confdefs.h <<\_ACEOF
8204 #define STDC_HEADERS 1
8205 _ACEOF
8206
8207 fi
8208
8209 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8220                   inttypes.h stdint.h unistd.h
8221 do
8222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8226   echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228   cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h.  */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h.  */
8234 $ac_includes_default
8235
8236 #include <$ac_header>
8237 _ACEOF
8238 rm -f conftest.$ac_objext
8239 if { (ac_try="$ac_compile"
8240 case "(($ac_try" in
8241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242   *) ac_try_echo=$ac_try;;
8243 esac
8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245   (eval "$ac_compile") 2>conftest.er1
8246   ac_status=$?
8247   grep -v '^ *+' conftest.er1 >conftest.err
8248   rm -f conftest.er1
8249   cat conftest.err >&5
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); } && {
8252          test -z "$ac_c_werror_flag" ||
8253          test ! -s conftest.err
8254        } && test -s conftest.$ac_objext; then
8255   eval "$as_ac_Header=yes"
8256 else
8257   echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8259
8260         eval "$as_ac_Header=no"
8261 fi
8262
8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8264 fi
8265 ac_res=`eval echo '${'$as_ac_Header'}'`
8266                { echo "$as_me:$LINENO: result: $ac_res" >&5
8267 echo "${ECHO_T}$ac_res" >&6; }
8268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8269   cat >>confdefs.h <<_ACEOF
8270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8271 _ACEOF
8272
8273 fi
8274
8275 done
8276
8277
8278
8279 for ac_header in dlfcn.h
8280 do
8281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8285   echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287   cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h.  */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h.  */
8293 $ac_includes_default
8294
8295 #include <$ac_header>
8296 _ACEOF
8297 rm -f conftest.$ac_objext
8298 if { (ac_try="$ac_compile"
8299 case "(($ac_try" in
8300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301   *) ac_try_echo=$ac_try;;
8302 esac
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304   (eval "$ac_compile") 2>conftest.er1
8305   ac_status=$?
8306   grep -v '^ *+' conftest.er1 >conftest.err
8307   rm -f conftest.er1
8308   cat conftest.err >&5
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } && {
8311          test -z "$ac_c_werror_flag" ||
8312          test ! -s conftest.err
8313        } && test -s conftest.$ac_objext; then
8314   eval "$as_ac_Header=yes"
8315 else
8316   echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319         eval "$as_ac_Header=no"
8320 fi
8321
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 fi
8324 ac_res=`eval echo '${'$as_ac_Header'}'`
8325                { echo "$as_me:$LINENO: result: $ac_res" >&5
8326 echo "${ECHO_T}$ac_res" >&6; }
8327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8328   cat >>confdefs.h <<_ACEOF
8329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8330 _ACEOF
8331
8332 fi
8333
8334 done
8335
8336
8337
8338 ac_ext=cpp
8339 ac_cpp='$CXXCPP $CPPFLAGS'
8340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8343 if test -z "$CXX"; then
8344   if test -n "$CCC"; then
8345     CXX=$CCC
8346   else
8347     if test -n "$ac_tool_prefix"; then
8348   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8349   do
8350     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8354 if test "${ac_cv_prog_CXX+set}" = set; then
8355   echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357   if test -n "$CXX"; then
8358   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8359 else
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8362 do
8363   IFS=$as_save_IFS
8364   test -z "$as_dir" && as_dir=.
8365   for ac_exec_ext in '' $ac_executable_extensions; do
8366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8367     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8369     break 2
8370   fi
8371 done
8372 done
8373 IFS=$as_save_IFS
8374
8375 fi
8376 fi
8377 CXX=$ac_cv_prog_CXX
8378 if test -n "$CXX"; then
8379   { echo "$as_me:$LINENO: result: $CXX" >&5
8380 echo "${ECHO_T}$CXX" >&6; }
8381 else
8382   { echo "$as_me:$LINENO: result: no" >&5
8383 echo "${ECHO_T}no" >&6; }
8384 fi
8385
8386
8387     test -n "$CXX" && break
8388   done
8389 fi
8390 if test -z "$CXX"; then
8391   ac_ct_CXX=$CXX
8392   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8393 do
8394   # Extract the first word of "$ac_prog", so it can be a program name with args.
8395 set dummy $ac_prog; ac_word=$2
8396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8398 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8399   echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401   if test -n "$ac_ct_CXX"; then
8402   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8406 do
8407   IFS=$as_save_IFS
8408   test -z "$as_dir" && as_dir=.
8409   for ac_exec_ext in '' $ac_executable_extensions; do
8410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8411     ac_cv_prog_ac_ct_CXX="$ac_prog"
8412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8413     break 2
8414   fi
8415 done
8416 done
8417 IFS=$as_save_IFS
8418
8419 fi
8420 fi
8421 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8422 if test -n "$ac_ct_CXX"; then
8423   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8424 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8425 else
8426   { echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6; }
8428 fi
8429
8430
8431   test -n "$ac_ct_CXX" && break
8432 done
8433
8434   if test "x$ac_ct_CXX" = x; then
8435     CXX="g++"
8436   else
8437     case $cross_compiling:$ac_tool_warned in
8438 yes:)
8439 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8440 whose name does not start with the host triplet.  If you think this
8441 configuration is useful to you, please write to autoconf@gnu.org." >&5
8442 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8443 whose name does not start with the host triplet.  If you think this
8444 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8445 ac_tool_warned=yes ;;
8446 esac
8447     CXX=$ac_ct_CXX
8448   fi
8449 fi
8450
8451   fi
8452 fi
8453 # Provide some information about the compiler.
8454 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8455 ac_compiler=`set X $ac_compile; echo $2`
8456 { (ac_try="$ac_compiler --version >&5"
8457 case "(($ac_try" in
8458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459   *) ac_try_echo=$ac_try;;
8460 esac
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462   (eval "$ac_compiler --version >&5") 2>&5
8463   ac_status=$?
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); }
8466 { (ac_try="$ac_compiler -v >&5"
8467 case "(($ac_try" in
8468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469   *) ac_try_echo=$ac_try;;
8470 esac
8471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472   (eval "$ac_compiler -v >&5") 2>&5
8473   ac_status=$?
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); }
8476 { (ac_try="$ac_compiler -V >&5"
8477 case "(($ac_try" in
8478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479   *) ac_try_echo=$ac_try;;
8480 esac
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482   (eval "$ac_compiler -V >&5") 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }
8486
8487 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8488 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8489 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8490   echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492   cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h.  */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h.  */
8498
8499 int
8500 main ()
8501 {
8502 #ifndef __GNUC__
8503        choke me
8504 #endif
8505
8506   ;
8507   return 0;
8508 }
8509 _ACEOF
8510 rm -f conftest.$ac_objext
8511 if { (ac_try="$ac_compile"
8512 case "(($ac_try" in
8513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514   *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517   (eval "$ac_compile") 2>conftest.er1
8518   ac_status=$?
8519   grep -v '^ *+' conftest.er1 >conftest.err
8520   rm -f conftest.er1
8521   cat conftest.err >&5
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); } && {
8524          test -z "$ac_cxx_werror_flag" ||
8525          test ! -s conftest.err
8526        } && test -s conftest.$ac_objext; then
8527   ac_compiler_gnu=yes
8528 else
8529   echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8531
8532         ac_compiler_gnu=no
8533 fi
8534
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8537
8538 fi
8539 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8540 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8541 GXX=`test $ac_compiler_gnu = yes && echo yes`
8542 ac_test_CXXFLAGS=${CXXFLAGS+set}
8543 ac_save_CXXFLAGS=$CXXFLAGS
8544 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8545 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8546 if test "${ac_cv_prog_cxx_g+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8550    ac_cxx_werror_flag=yes
8551    ac_cv_prog_cxx_g=no
8552    CXXFLAGS="-g"
8553    cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h.  */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h.  */
8559
8560 int
8561 main ()
8562 {
8563
8564   ;
8565   return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8570 case "(($ac_try" in
8571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572   *) ac_try_echo=$ac_try;;
8573 esac
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575   (eval "$ac_compile") 2>conftest.er1
8576   ac_status=$?
8577   grep -v '^ *+' conftest.er1 >conftest.err
8578   rm -f conftest.er1
8579   cat conftest.err >&5
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); } && {
8582          test -z "$ac_cxx_werror_flag" ||
8583          test ! -s conftest.err
8584        } && test -s conftest.$ac_objext; then
8585   ac_cv_prog_cxx_g=yes
8586 else
8587   echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590         CXXFLAGS=""
8591       cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h.  */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h.  */
8597
8598 int
8599 main ()
8600 {
8601
8602   ;
8603   return 0;
8604 }
8605 _ACEOF
8606 rm -f conftest.$ac_objext
8607 if { (ac_try="$ac_compile"
8608 case "(($ac_try" in
8609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610   *) ac_try_echo=$ac_try;;
8611 esac
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613   (eval "$ac_compile") 2>conftest.er1
8614   ac_status=$?
8615   grep -v '^ *+' conftest.er1 >conftest.err
8616   rm -f conftest.er1
8617   cat conftest.err >&5
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); } && {
8620          test -z "$ac_cxx_werror_flag" ||
8621          test ! -s conftest.err
8622        } && test -s conftest.$ac_objext; then
8623   :
8624 else
8625   echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8627
8628         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8629          CXXFLAGS="-g"
8630          cat >conftest.$ac_ext <<_ACEOF
8631 /* confdefs.h.  */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h.  */
8636
8637 int
8638 main ()
8639 {
8640
8641   ;
8642   return 0;
8643 }
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8647 case "(($ac_try" in
8648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649   *) ac_try_echo=$ac_try;;
8650 esac
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652   (eval "$ac_compile") 2>conftest.er1
8653   ac_status=$?
8654   grep -v '^ *+' conftest.er1 >conftest.err
8655   rm -f conftest.er1
8656   cat conftest.err >&5
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } && {
8659          test -z "$ac_cxx_werror_flag" ||
8660          test ! -s conftest.err
8661        } && test -s conftest.$ac_objext; then
8662   ac_cv_prog_cxx_g=yes
8663 else
8664   echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8666
8667
8668 fi
8669
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 fi
8672
8673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8674 fi
8675
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8678 fi
8679 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8680 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8681 if test "$ac_test_CXXFLAGS" = set; then
8682   CXXFLAGS=$ac_save_CXXFLAGS
8683 elif test $ac_cv_prog_cxx_g = yes; then
8684   if test "$GXX" = yes; then
8685     CXXFLAGS="-g -O2"
8686   else
8687     CXXFLAGS="-g"
8688   fi
8689 else
8690   if test "$GXX" = yes; then
8691     CXXFLAGS="-O2"
8692   else
8693     CXXFLAGS=
8694   fi
8695 fi
8696 ac_ext=c
8697 ac_cpp='$CPP $CPPFLAGS'
8698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8701
8702 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8703     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8704     (test "X$CXX" != "Xg++"))) ; then
8705   ac_ext=cpp
8706 ac_cpp='$CXXCPP $CPPFLAGS'
8707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8710 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8711 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8712 if test -z "$CXXCPP"; then
8713   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8714   echo $ECHO_N "(cached) $ECHO_C" >&6
8715 else
8716       # Double quotes because CXXCPP needs to be expanded
8717     for CXXCPP in "$CXX -E" "/lib/cpp"
8718     do
8719       ac_preproc_ok=false
8720 for ac_cxx_preproc_warn_flag in '' yes
8721 do
8722   # Use a header file that comes with gcc, so configuring glibc
8723   # with a fresh cross-compiler works.
8724   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8725   # <limits.h> exists even on freestanding compilers.
8726   # On the NeXT, cc -E runs the code through the compiler's parser,
8727   # not just through cpp. "Syntax error" is here to catch this case.
8728   cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h.  */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h.  */
8734 #ifdef __STDC__
8735 # include <limits.h>
8736 #else
8737 # include <assert.h>
8738 #endif
8739                      Syntax error
8740 _ACEOF
8741 if { (ac_try="$ac_cpp conftest.$ac_ext"
8742 case "(($ac_try" in
8743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744   *) ac_try_echo=$ac_try;;
8745 esac
8746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8748   ac_status=$?
8749   grep -v '^ *+' conftest.er1 >conftest.err
8750   rm -f conftest.er1
8751   cat conftest.err >&5
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); } >/dev/null && {
8754          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8755          test ! -s conftest.err
8756        }; then
8757   :
8758 else
8759   echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762   # Broken: fails on valid input.
8763 continue
8764 fi
8765
8766 rm -f conftest.err conftest.$ac_ext
8767
8768   # OK, works on sane cases.  Now check whether nonexistent headers
8769   # can be detected and how.
8770   cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h.  */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h.  */
8776 #include <ac_nonexistent.h>
8777 _ACEOF
8778 if { (ac_try="$ac_cpp conftest.$ac_ext"
8779 case "(($ac_try" in
8780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781   *) ac_try_echo=$ac_try;;
8782 esac
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8785   ac_status=$?
8786   grep -v '^ *+' conftest.er1 >conftest.err
8787   rm -f conftest.er1
8788   cat conftest.err >&5
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); } >/dev/null && {
8791          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8792          test ! -s conftest.err
8793        }; then
8794   # Broken: success on invalid input.
8795 continue
8796 else
8797   echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8799
8800   # Passes both tests.
8801 ac_preproc_ok=:
8802 break
8803 fi
8804
8805 rm -f conftest.err conftest.$ac_ext
8806
8807 done
8808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8809 rm -f conftest.err conftest.$ac_ext
8810 if $ac_preproc_ok; then
8811   break
8812 fi
8813
8814     done
8815     ac_cv_prog_CXXCPP=$CXXCPP
8816
8817 fi
8818   CXXCPP=$ac_cv_prog_CXXCPP
8819 else
8820   ac_cv_prog_CXXCPP=$CXXCPP
8821 fi
8822 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8823 echo "${ECHO_T}$CXXCPP" >&6; }
8824 ac_preproc_ok=false
8825 for ac_cxx_preproc_warn_flag in '' yes
8826 do
8827   # Use a header file that comes with gcc, so configuring glibc
8828   # with a fresh cross-compiler works.
8829   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8830   # <limits.h> exists even on freestanding compilers.
8831   # On the NeXT, cc -E runs the code through the compiler's parser,
8832   # not just through cpp. "Syntax error" is here to catch this case.
8833   cat >conftest.$ac_ext <<_ACEOF
8834 /* confdefs.h.  */
8835 _ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h.  */
8839 #ifdef __STDC__
8840 # include <limits.h>
8841 #else
8842 # include <assert.h>
8843 #endif
8844                      Syntax error
8845 _ACEOF
8846 if { (ac_try="$ac_cpp conftest.$ac_ext"
8847 case "(($ac_try" in
8848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849   *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8853   ac_status=$?
8854   grep -v '^ *+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } >/dev/null && {
8859          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8860          test ! -s conftest.err
8861        }; then
8862   :
8863 else
8864   echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867   # Broken: fails on valid input.
8868 continue
8869 fi
8870
8871 rm -f conftest.err conftest.$ac_ext
8872
8873   # OK, works on sane cases.  Now check whether nonexistent headers
8874   # can be detected and how.
8875   cat >conftest.$ac_ext <<_ACEOF
8876 /* confdefs.h.  */
8877 _ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h.  */
8881 #include <ac_nonexistent.h>
8882 _ACEOF
8883 if { (ac_try="$ac_cpp conftest.$ac_ext"
8884 case "(($ac_try" in
8885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886   *) ac_try_echo=$ac_try;;
8887 esac
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8890   ac_status=$?
8891   grep -v '^ *+' conftest.er1 >conftest.err
8892   rm -f conftest.er1
8893   cat conftest.err >&5
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); } >/dev/null && {
8896          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8897          test ! -s conftest.err
8898        }; then
8899   # Broken: success on invalid input.
8900 continue
8901 else
8902   echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8904
8905   # Passes both tests.
8906 ac_preproc_ok=:
8907 break
8908 fi
8909
8910 rm -f conftest.err conftest.$ac_ext
8911
8912 done
8913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8914 rm -f conftest.err conftest.$ac_ext
8915 if $ac_preproc_ok; then
8916   :
8917 else
8918   _lt_caught_CXX_error=yes
8919 fi
8920
8921 ac_ext=c
8922 ac_cpp='$CPP $CPPFLAGS'
8923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8926
8927 else
8928   _lt_caught_CXX_error=yes
8929 fi
8930
8931
8932
8933
8934
8935 # Set options
8936 # Check whether --enable-shared was given.
8937 if test "${enable_shared+set}" = set; then
8938   enableval=$enable_shared; p=${PACKAGE-default}
8939     case $enableval in
8940     yes) enable_shared=yes ;;
8941     no) enable_shared=no ;;
8942     *)
8943       enable_shared=no
8944       # Look at the argument we got.  We use all the common list separators.
8945       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8946       for pkg in $enableval; do
8947         IFS="$lt_save_ifs"
8948         if test "X$pkg" = "X$p"; then
8949           enable_shared=yes
8950         fi
8951       done
8952       IFS="$lt_save_ifs"
8953       ;;
8954     esac
8955 else
8956   enable_shared=yes
8957 fi
8958
8959
8960
8961
8962
8963
8964
8965 # Check whether --enable-static was given.
8966 if test "${enable_static+set}" = set; then
8967   enableval=$enable_static; p=${PACKAGE-default}
8968     case $enableval in
8969     yes) enable_static=yes ;;
8970     no) enable_static=no ;;
8971     *)
8972      enable_static=no
8973       # Look at the argument we got.  We use all the common list separators.
8974       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8975       for pkg in $enableval; do
8976         IFS="$lt_save_ifs"
8977         if test "X$pkg" = "X$p"; then
8978           enable_static=yes
8979         fi
8980       done
8981       IFS="$lt_save_ifs"
8982       ;;
8983     esac
8984 else
8985   enable_static=no
8986 fi
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997         enable_dlopen=no
8998
8999
9000   enable_win32_dll=no
9001
9002
9003
9004
9005
9006 # Check whether --with-pic was given.
9007 if test "${with_pic+set}" = set; then
9008   withval=$with_pic; pic_mode="$withval"
9009 else
9010   pic_mode=default
9011 fi
9012
9013
9014 test -z "$pic_mode" && pic_mode=default
9015
9016
9017
9018
9019
9020
9021
9022   # Check whether --enable-fast-install was given.
9023 if test "${enable_fast_install+set}" = set; then
9024   enableval=$enable_fast_install; p=${PACKAGE-default}
9025     case $enableval in
9026     yes) enable_fast_install=yes ;;
9027     no) enable_fast_install=no ;;
9028     *)
9029       enable_fast_install=no
9030       # Look at the argument we got.  We use all the common list separators.
9031       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9032       for pkg in $enableval; do
9033         IFS="$lt_save_ifs"
9034         if test "X$pkg" = "X$p"; then
9035           enable_fast_install=yes
9036         fi
9037       done
9038       IFS="$lt_save_ifs"
9039       ;;
9040     esac
9041 else
9042   enable_fast_install=yes
9043 fi
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055 # This can be used to rebuild libtool when needed
9056 LIBTOOL_DEPS="$ltmain"
9057
9058 # Always use our own libtool.
9059 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085 test -z "$LN_S" && LN_S="ln -s"
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100 if test -n "${ZSH_VERSION+set}" ; then
9101    setopt NO_GLOB_SUBST
9102 fi
9103
9104 { echo "$as_me:$LINENO: checking for objdir" >&5
9105 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9106 if test "${lt_cv_objdir+set}" = set; then
9107   echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109   rm -f .libs 2>/dev/null
9110 mkdir .libs 2>/dev/null
9111 if test -d .libs; then
9112   lt_cv_objdir=.libs
9113 else
9114   # MS-DOS does not allow filenames that begin with a dot.
9115   lt_cv_objdir=_libs
9116 fi
9117 rmdir .libs 2>/dev/null
9118 fi
9119 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9120 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9121 objdir=$lt_cv_objdir
9122
9123
9124
9125
9126
9127 cat >>confdefs.h <<_ACEOF
9128 #define LT_OBJDIR "$lt_cv_objdir/"
9129 _ACEOF
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147 case $host_os in
9148 aix3*)
9149   # AIX sometimes has problems with the GCC collect2 program.  For some
9150   # reason, if we set the COLLECT_NAMES environment variable, the problems
9151   # vanish in a puff of smoke.
9152   if test "X${COLLECT_NAMES+set}" != Xset; then
9153     COLLECT_NAMES=
9154     export COLLECT_NAMES
9155   fi
9156   ;;
9157 esac
9158
9159 # Sed substitution that helps us do robust quoting.  It backslashifies
9160 # metacharacters that are still active within double-quoted strings.
9161 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9162
9163 # Same as above, but do not quote variable references.
9164 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9165
9166 # Sed substitution to delay expansion of an escaped shell variable in a
9167 # double_quote_subst'ed string.
9168 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9169
9170 # Sed substitution to delay expansion of an escaped single quote.
9171 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9172
9173 # Sed substitution to avoid accidental globbing in evaled expressions
9174 no_glob_subst='s/\*/\\\*/g'
9175
9176 # Global variables:
9177 ofile=libtool
9178 can_build_shared=yes
9179
9180 # All known linkers require a `.a' archive for static linking (except MSVC,
9181 # which needs '.lib').
9182 libext=a
9183
9184 with_gnu_ld="$lt_cv_prog_gnu_ld"
9185
9186 old_CC="$CC"
9187 old_CFLAGS="$CFLAGS"
9188
9189 # Set sane defaults for various variables
9190 test -z "$CC" && CC=cc
9191 test -z "$LTCC" && LTCC=$CC
9192 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9193 test -z "$LD" && LD=ld
9194 test -z "$ac_objext" && ac_objext=o
9195
9196 for cc_temp in $compiler""; do
9197   case $cc_temp in
9198     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9199     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9200     \-*) ;;
9201     *) break;;
9202   esac
9203 done
9204 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9205
9206
9207 # Only perform the check for file, if the check method requires it
9208 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9209 case $deplibs_check_method in
9210 file_magic*)
9211   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9212     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9213 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9214 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217   case $MAGIC_CMD in
9218 [\\/*] |  ?:[\\/]*)
9219   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9220   ;;
9221 *)
9222   lt_save_MAGIC_CMD="$MAGIC_CMD"
9223   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9224   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9225   for ac_dir in $ac_dummy; do
9226     IFS="$lt_save_ifs"
9227     test -z "$ac_dir" && ac_dir=.
9228     if test -f $ac_dir/${ac_tool_prefix}file; then
9229       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9230       if test -n "$file_magic_test_file"; then
9231         case $deplibs_check_method in
9232         "file_magic "*)
9233           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9234           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9235           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9236             $EGREP "$file_magic_regex" > /dev/null; then
9237             :
9238           else
9239             cat <<_LT_EOF 1>&2
9240
9241 *** Warning: the command libtool uses to detect shared libraries,
9242 *** $file_magic_cmd, produces output that libtool cannot recognize.
9243 *** The result is that libtool may fail to recognize shared libraries
9244 *** as such.  This will affect the creation of libtool libraries that
9245 *** depend on shared libraries, but programs linked with such libtool
9246 *** libraries will work regardless of this problem.  Nevertheless, you
9247 *** may want to report the problem to your system manager and/or to
9248 *** bug-libtool@gnu.org
9249
9250 _LT_EOF
9251           fi ;;
9252         esac
9253       fi
9254       break
9255     fi
9256   done
9257   IFS="$lt_save_ifs"
9258   MAGIC_CMD="$lt_save_MAGIC_CMD"
9259   ;;
9260 esac
9261 fi
9262
9263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9264 if test -n "$MAGIC_CMD"; then
9265   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9266 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9267 else
9268   { echo "$as_me:$LINENO: result: no" >&5
9269 echo "${ECHO_T}no" >&6; }
9270 fi
9271
9272
9273
9274
9275
9276 if test -z "$lt_cv_path_MAGIC_CMD"; then
9277   if test -n "$ac_tool_prefix"; then
9278     { echo "$as_me:$LINENO: checking for file" >&5
9279 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9280 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9281   echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283   case $MAGIC_CMD in
9284 [\\/*] |  ?:[\\/]*)
9285   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9286   ;;
9287 *)
9288   lt_save_MAGIC_CMD="$MAGIC_CMD"
9289   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9290   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9291   for ac_dir in $ac_dummy; do
9292     IFS="$lt_save_ifs"
9293     test -z "$ac_dir" && ac_dir=.
9294     if test -f $ac_dir/file; then
9295       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9296       if test -n "$file_magic_test_file"; then
9297         case $deplibs_check_method in
9298         "file_magic "*)
9299           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9300           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9301           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9302             $EGREP "$file_magic_regex" > /dev/null; then
9303             :
9304           else
9305             cat <<_LT_EOF 1>&2
9306
9307 *** Warning: the command libtool uses to detect shared libraries,
9308 *** $file_magic_cmd, produces output that libtool cannot recognize.
9309 *** The result is that libtool may fail to recognize shared libraries
9310 *** as such.  This will affect the creation of libtool libraries that
9311 *** depend on shared libraries, but programs linked with such libtool
9312 *** libraries will work regardless of this problem.  Nevertheless, you
9313 *** may want to report the problem to your system manager and/or to
9314 *** bug-libtool@gnu.org
9315
9316 _LT_EOF
9317           fi ;;
9318         esac
9319       fi
9320       break
9321     fi
9322   done
9323   IFS="$lt_save_ifs"
9324   MAGIC_CMD="$lt_save_MAGIC_CMD"
9325   ;;
9326 esac
9327 fi
9328
9329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9330 if test -n "$MAGIC_CMD"; then
9331   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9332 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9333 else
9334   { echo "$as_me:$LINENO: result: no" >&5
9335 echo "${ECHO_T}no" >&6; }
9336 fi
9337
9338
9339   else
9340     MAGIC_CMD=:
9341   fi
9342 fi
9343
9344   fi
9345   ;;
9346 esac
9347
9348 # Use C for the default configuration in the libtool script
9349
9350 lt_save_CC="$CC"
9351 ac_ext=c
9352 ac_cpp='$CPP $CPPFLAGS'
9353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9356
9357
9358 # Source file extension for C test sources.
9359 ac_ext=c
9360
9361 # Object file extension for compiled C test sources.
9362 objext=o
9363 objext=$objext
9364
9365 # Code to be used in simple compile tests
9366 lt_simple_compile_test_code="int some_variable = 0;"
9367
9368 # Code to be used in simple link tests
9369 lt_simple_link_test_code='int main(){return(0);}'
9370
9371
9372
9373
9374
9375
9376
9377 # If no C compiler was specified, use CC.
9378 LTCC=${LTCC-"$CC"}
9379
9380 # If no C compiler flags were specified, use CFLAGS.
9381 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9382
9383 # Allow CC to be a program name with arguments.
9384 compiler=$CC
9385
9386 # Save the default compiler, since it gets overwritten when the other
9387 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9388 compiler_DEFAULT=$CC
9389
9390 # save warnings/boilerplate of simple test code
9391 ac_outfile=conftest.$ac_objext
9392 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9393 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9394 _lt_compiler_boilerplate=`cat conftest.err`
9395 $RM conftest*
9396
9397 ac_outfile=conftest.$ac_objext
9398 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9399 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9400 _lt_linker_boilerplate=`cat conftest.err`
9401 $RM -r conftest*
9402
9403
9404 ## CAVEAT EMPTOR:
9405 ## There is no encapsulation within the following macros, do not change
9406 ## the running order or otherwise move them around unless you know exactly
9407 ## what you are doing...
9408 if test -n "$compiler"; then
9409
9410 lt_prog_compiler_no_builtin_flag=
9411
9412 if test "$GCC" = yes; then
9413   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9414
9415   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9416 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9417 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9418   echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420   lt_cv_prog_compiler_rtti_exceptions=no
9421    ac_outfile=conftest.$ac_objext
9422    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9423    lt_compiler_flag="-fno-rtti -fno-exceptions"
9424    # Insert the option either (1) after the last *FLAGS variable, or
9425    # (2) before a word containing "conftest.", or (3) at the end.
9426    # Note that $ac_compile itself does not contain backslashes and begins
9427    # with a dollar sign (not a hyphen), so the echo should work correctly.
9428    # The option is referenced via a variable to avoid confusing sed.
9429    lt_compile=`echo "$ac_compile" | $SED \
9430    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9431    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9432    -e 's:$: $lt_compiler_flag:'`
9433    (eval echo "\"\$as_me:9433: $lt_compile\"" >&5)
9434    (eval "$lt_compile" 2>conftest.err)
9435    ac_status=$?
9436    cat conftest.err >&5
9437    echo "$as_me:9437: \$? = $ac_status" >&5
9438    if (exit $ac_status) && test -s "$ac_outfile"; then
9439      # The compiler can only warn and ignore the option if not recognized
9440      # So say no if there are warnings other than the usual output.
9441      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9442      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9443      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9444        lt_cv_prog_compiler_rtti_exceptions=yes
9445      fi
9446    fi
9447    $RM conftest*
9448
9449 fi
9450 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9451 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9452
9453 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9454     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9455 else
9456     :
9457 fi
9458
9459 fi
9460
9461
9462
9463
9464
9465
9466   lt_prog_compiler_wl=
9467 lt_prog_compiler_pic=
9468 lt_prog_compiler_static=
9469
9470 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9471 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9472
9473   if test "$GCC" = yes; then
9474     lt_prog_compiler_wl='-Wl,'
9475     lt_prog_compiler_static='-static'
9476
9477     case $host_os in
9478       aix*)
9479       # All AIX code is PIC.
9480       if test "$host_cpu" = ia64; then
9481         # AIX 5 now supports IA64 processor
9482         lt_prog_compiler_static='-Bstatic'
9483       fi
9484       ;;
9485
9486     amigaos*)
9487       case $host_cpu in
9488       powerpc)
9489             # see comment about AmigaOS4 .so support
9490             lt_prog_compiler_pic='-fPIC'
9491         ;;
9492       m68k)
9493             # FIXME: we need at least 68020 code to build shared libraries, but
9494             # adding the `-m68020' flag to GCC prevents building anything better,
9495             # like `-m68040'.
9496             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9497         ;;
9498       esac
9499       ;;
9500
9501     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9502       # PIC is the default for these OSes.
9503       ;;
9504
9505     mingw* | cygwin* | pw32* | os2* | cegcc*)
9506       # This hack is so that the source file can tell whether it is being
9507       # built for inclusion in a dll (and should export symbols for example).
9508       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9509       # (--disable-auto-import) libraries
9510       lt_prog_compiler_pic='-DDLL_EXPORT'
9511       ;;
9512
9513     darwin* | rhapsody*)
9514       # PIC is the default on this platform
9515       # Common symbols not allowed in MH_DYLIB files
9516       lt_prog_compiler_pic='-fno-common'
9517       ;;
9518
9519     hpux*)
9520       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9521       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9522       # sets the default TLS model and affects inlining.
9523       case $host_cpu in
9524       hppa*64*)
9525         # +Z the default
9526         ;;
9527       *)
9528         lt_prog_compiler_pic='-fPIC'
9529         ;;
9530       esac
9531       ;;
9532
9533     interix[3-9]*)
9534       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9535       # Instead, we relocate shared libraries at runtime.
9536       ;;
9537
9538     msdosdjgpp*)
9539       # Just because we use GCC doesn't mean we suddenly get shared libraries
9540       # on systems that don't support them.
9541       lt_prog_compiler_can_build_shared=no
9542       enable_shared=no
9543       ;;
9544
9545     *nto* | *qnx*)
9546       # QNX uses GNU C++, but need to define -shared option too, otherwise
9547       # it will coredump.
9548       lt_prog_compiler_pic='-fPIC -shared'
9549       ;;
9550
9551     sysv4*MP*)
9552       if test -d /usr/nec; then
9553         lt_prog_compiler_pic=-Kconform_pic
9554       fi
9555       ;;
9556
9557     *)
9558       lt_prog_compiler_pic='-fPIC'
9559       ;;
9560     esac
9561   else
9562     # PORTME Check for flag to pass linker flags through the system compiler.
9563     case $host_os in
9564     aix*)
9565       lt_prog_compiler_wl='-Wl,'
9566       if test "$host_cpu" = ia64; then
9567         # AIX 5 now supports IA64 processor
9568         lt_prog_compiler_static='-Bstatic'
9569       else
9570         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9571       fi
9572       ;;
9573
9574     mingw* | cygwin* | pw32* | os2* | cegcc*)
9575       # This hack is so that the source file can tell whether it is being
9576       # built for inclusion in a dll (and should export symbols for example).
9577       lt_prog_compiler_pic='-DDLL_EXPORT'
9578       ;;
9579
9580     hpux9* | hpux10* | hpux11*)
9581       lt_prog_compiler_wl='-Wl,'
9582       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9583       # not for PA HP-UX.
9584       case $host_cpu in
9585       hppa*64*|ia64*)
9586         # +Z the default
9587         ;;
9588       *)
9589         lt_prog_compiler_pic='+Z'
9590         ;;
9591       esac
9592       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9593       lt_prog_compiler_static='${wl}-a ${wl}archive'
9594       ;;
9595
9596     irix5* | irix6* | nonstopux*)
9597       lt_prog_compiler_wl='-Wl,'
9598       # PIC (with -KPIC) is the default.
9599       lt_prog_compiler_static='-non_shared'
9600       ;;
9601
9602     linux* | k*bsd*-gnu)
9603       case $cc_basename in
9604       # old Intel for x86_64 which still supported -KPIC.
9605       ecc*)
9606         lt_prog_compiler_wl='-Wl,'
9607         lt_prog_compiler_pic='-KPIC'
9608         lt_prog_compiler_static='-static'
9609         ;;
9610       # icc used to be incompatible with GCC.
9611       # ICC 10 doesn't accept -KPIC any more.
9612       icc* | ifort*)
9613         lt_prog_compiler_wl='-Wl,'
9614         lt_prog_compiler_pic='-fPIC'
9615         lt_prog_compiler_static='-static'
9616         ;;
9617       # Lahey Fortran 8.1.
9618       lf95*)
9619         lt_prog_compiler_wl='-Wl,'
9620         lt_prog_compiler_pic='--shared'
9621         lt_prog_compiler_static='--static'
9622         ;;
9623       pgcc* | pgf77* | pgf90* | pgf95*)
9624         # Portland Group compilers (*not* the Pentium gcc compiler,
9625         # which looks to be a dead project)
9626         lt_prog_compiler_wl='-Wl,'
9627         lt_prog_compiler_pic='-fpic'
9628         lt_prog_compiler_static='-Bstatic'
9629         ;;
9630       ccc*)
9631         lt_prog_compiler_wl='-Wl,'
9632         # All Alpha code is PIC.
9633         lt_prog_compiler_static='-non_shared'
9634         ;;
9635       xl*)
9636         # IBM XL C 8.0/Fortran 10.1 on PPC
9637         lt_prog_compiler_wl='-Wl,'
9638         lt_prog_compiler_pic='-qpic'
9639         lt_prog_compiler_static='-qstaticlink'
9640         ;;
9641       *)
9642         case `$CC -V 2>&1 | sed 5q` in
9643         *Sun\ C*)
9644           # Sun C 5.9
9645           lt_prog_compiler_pic='-KPIC'
9646           lt_prog_compiler_static='-Bstatic'
9647           lt_prog_compiler_wl='-Wl,'
9648           ;;
9649         *Sun\ F*)
9650           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9651           lt_prog_compiler_pic='-KPIC'
9652           lt_prog_compiler_static='-Bstatic'
9653           lt_prog_compiler_wl=''
9654           ;;
9655         esac
9656         ;;
9657       esac
9658       ;;
9659
9660     newsos6)
9661       lt_prog_compiler_pic='-KPIC'
9662       lt_prog_compiler_static='-Bstatic'
9663       ;;
9664
9665     *nto* | *qnx*)
9666       # QNX uses GNU C++, but need to define -shared option too, otherwise
9667       # it will coredump.
9668       lt_prog_compiler_pic='-fPIC -shared'
9669       ;;
9670
9671     osf3* | osf4* | osf5*)
9672       lt_prog_compiler_wl='-Wl,'
9673       # All OSF/1 code is PIC.
9674       lt_prog_compiler_static='-non_shared'
9675       ;;
9676
9677     rdos*)
9678       lt_prog_compiler_static='-non_shared'
9679       ;;
9680
9681     solaris*)
9682       lt_prog_compiler_pic='-KPIC'
9683       lt_prog_compiler_static='-Bstatic'
9684       case $cc_basename in
9685       f77* | f90* | f95*)
9686         lt_prog_compiler_wl='-Qoption ld ';;
9687       *)
9688         lt_prog_compiler_wl='-Wl,';;
9689       esac
9690       ;;
9691
9692     sunos4*)
9693       lt_prog_compiler_wl='-Qoption ld '
9694       lt_prog_compiler_pic='-PIC'
9695       lt_prog_compiler_static='-Bstatic'
9696       ;;
9697
9698     sysv4 | sysv4.2uw2* | sysv4.3*)
9699       lt_prog_compiler_wl='-Wl,'
9700       lt_prog_compiler_pic='-KPIC'
9701       lt_prog_compiler_static='-Bstatic'
9702       ;;
9703
9704     sysv4*MP*)
9705       if test -d /usr/nec ;then
9706         lt_prog_compiler_pic='-Kconform_pic'
9707         lt_prog_compiler_static='-Bstatic'
9708       fi
9709       ;;
9710
9711     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9712       lt_prog_compiler_wl='-Wl,'
9713       lt_prog_compiler_pic='-KPIC'
9714       lt_prog_compiler_static='-Bstatic'
9715       ;;
9716
9717     unicos*)
9718       lt_prog_compiler_wl='-Wl,'
9719       lt_prog_compiler_can_build_shared=no
9720       ;;
9721
9722     uts4*)
9723       lt_prog_compiler_pic='-pic'
9724       lt_prog_compiler_static='-Bstatic'
9725       ;;
9726
9727     *)
9728       lt_prog_compiler_can_build_shared=no
9729       ;;
9730     esac
9731   fi
9732
9733 case $host_os in
9734   # For platforms which do not support PIC, -DPIC is meaningless:
9735   *djgpp*)
9736     lt_prog_compiler_pic=
9737     ;;
9738   *)
9739     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9740     ;;
9741 esac
9742 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9743 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9744
9745
9746
9747
9748
9749
9750 #
9751 # Check to make sure the PIC flag actually works.
9752 #
9753 if test -n "$lt_prog_compiler_pic"; then
9754   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9755 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9756 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759   lt_cv_prog_compiler_pic_works=no
9760    ac_outfile=conftest.$ac_objext
9761    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9762    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9763    # Insert the option either (1) after the last *FLAGS variable, or
9764    # (2) before a word containing "conftest.", or (3) at the end.
9765    # Note that $ac_compile itself does not contain backslashes and begins
9766    # with a dollar sign (not a hyphen), so the echo should work correctly.
9767    # The option is referenced via a variable to avoid confusing sed.
9768    lt_compile=`echo "$ac_compile" | $SED \
9769    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9770    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9771    -e 's:$: $lt_compiler_flag:'`
9772    (eval echo "\"\$as_me:9772: $lt_compile\"" >&5)
9773    (eval "$lt_compile" 2>conftest.err)
9774    ac_status=$?
9775    cat conftest.err >&5
9776    echo "$as_me:9776: \$? = $ac_status" >&5
9777    if (exit $ac_status) && test -s "$ac_outfile"; then
9778      # The compiler can only warn and ignore the option if not recognized
9779      # So say no if there are warnings other than the usual output.
9780      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9781      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9782      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9783        lt_cv_prog_compiler_pic_works=yes
9784      fi
9785    fi
9786    $RM conftest*
9787
9788 fi
9789 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9790 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9791
9792 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9793     case $lt_prog_compiler_pic in
9794      "" | " "*) ;;
9795      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9796      esac
9797 else
9798     lt_prog_compiler_pic=
9799      lt_prog_compiler_can_build_shared=no
9800 fi
9801
9802 fi
9803
9804
9805
9806
9807
9808
9809 #
9810 # Check to make sure the static flag actually works.
9811 #
9812 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9813 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9814 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9815 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9816   echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818   lt_cv_prog_compiler_static_works=no
9819    save_LDFLAGS="$LDFLAGS"
9820    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9821    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9822    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9823      # The linker can only warn and ignore the option if not recognized
9824      # So say no if there are warnings
9825      if test -s conftest.err; then
9826        # Append any errors to the config.log.
9827        cat conftest.err 1>&5
9828        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9829        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9830        if diff conftest.exp conftest.er2 >/dev/null; then
9831          lt_cv_prog_compiler_static_works=yes
9832        fi
9833      else
9834        lt_cv_prog_compiler_static_works=yes
9835      fi
9836    fi
9837    $RM -r conftest*
9838    LDFLAGS="$save_LDFLAGS"
9839
9840 fi
9841 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9842 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9843
9844 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9845     :
9846 else
9847     lt_prog_compiler_static=
9848 fi
9849
9850
9851
9852
9853
9854
9855
9856   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9857 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9858 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   lt_cv_prog_compiler_c_o=no
9862    $RM -r conftest 2>/dev/null
9863    mkdir conftest
9864    cd conftest
9865    mkdir out
9866    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9867
9868    lt_compiler_flag="-o out/conftest2.$ac_objext"
9869    # Insert the option either (1) after the last *FLAGS variable, or
9870    # (2) before a word containing "conftest.", or (3) at the end.
9871    # Note that $ac_compile itself does not contain backslashes and begins
9872    # with a dollar sign (not a hyphen), so the echo should work correctly.
9873    lt_compile=`echo "$ac_compile" | $SED \
9874    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9875    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9876    -e 's:$: $lt_compiler_flag:'`
9877    (eval echo "\"\$as_me:9877: $lt_compile\"" >&5)
9878    (eval "$lt_compile" 2>out/conftest.err)
9879    ac_status=$?
9880    cat out/conftest.err >&5
9881    echo "$as_me:9881: \$? = $ac_status" >&5
9882    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9883    then
9884      # The compiler can only warn and ignore the option if not recognized
9885      # So say no if there are warnings
9886      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9887      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9888      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9889        lt_cv_prog_compiler_c_o=yes
9890      fi
9891    fi
9892    chmod u+w . 2>&5
9893    $RM conftest*
9894    # SGI C++ compiler will create directory out/ii_files/ for
9895    # template instantiation
9896    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9897    $RM out/* && rmdir out
9898    cd ..
9899    $RM -r conftest
9900    $RM conftest*
9901
9902 fi
9903 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9904 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9905
9906
9907
9908
9909
9910
9911   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9912 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9913 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9914   echo $ECHO_N "(cached) $ECHO_C" >&6
9915 else
9916   lt_cv_prog_compiler_c_o=no
9917    $RM -r conftest 2>/dev/null
9918    mkdir conftest
9919    cd conftest
9920    mkdir out
9921    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9922
9923    lt_compiler_flag="-o out/conftest2.$ac_objext"
9924    # Insert the option either (1) after the last *FLAGS variable, or
9925    # (2) before a word containing "conftest.", or (3) at the end.
9926    # Note that $ac_compile itself does not contain backslashes and begins
9927    # with a dollar sign (not a hyphen), so the echo should work correctly.
9928    lt_compile=`echo "$ac_compile" | $SED \
9929    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9930    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9931    -e 's:$: $lt_compiler_flag:'`
9932    (eval echo "\"\$as_me:9932: $lt_compile\"" >&5)
9933    (eval "$lt_compile" 2>out/conftest.err)
9934    ac_status=$?
9935    cat out/conftest.err >&5
9936    echo "$as_me:9936: \$? = $ac_status" >&5
9937    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9938    then
9939      # The compiler can only warn and ignore the option if not recognized
9940      # So say no if there are warnings
9941      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9942      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9943      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9944        lt_cv_prog_compiler_c_o=yes
9945      fi
9946    fi
9947    chmod u+w . 2>&5
9948    $RM conftest*
9949    # SGI C++ compiler will create directory out/ii_files/ for
9950    # template instantiation
9951    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9952    $RM out/* && rmdir out
9953    cd ..
9954    $RM -r conftest
9955    $RM conftest*
9956
9957 fi
9958 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9959 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9960
9961
9962
9963
9964 hard_links="nottested"
9965 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9966   # do not overwrite the value of need_locks provided by the user
9967   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9968 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9969   hard_links=yes
9970   $RM conftest*
9971   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9972   touch conftest.a
9973   ln conftest.a conftest.b 2>&5 || hard_links=no
9974   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9975   { echo "$as_me:$LINENO: result: $hard_links" >&5
9976 echo "${ECHO_T}$hard_links" >&6; }
9977   if test "$hard_links" = no; then
9978     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9979 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9980     need_locks=warn
9981   fi
9982 else
9983   need_locks=no
9984 fi
9985
9986
9987
9988
9989
9990
9991   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9992 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9993
9994   runpath_var=
9995   allow_undefined_flag=
9996   always_export_symbols=no
9997   archive_cmds=
9998   archive_expsym_cmds=
9999   compiler_needs_object=no
10000   enable_shared_with_static_runtimes=no
10001   export_dynamic_flag_spec=
10002   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10003   hardcode_automatic=no
10004   hardcode_direct=no
10005   hardcode_direct_absolute=no
10006   hardcode_libdir_flag_spec=
10007   hardcode_libdir_flag_spec_ld=
10008   hardcode_libdir_separator=
10009   hardcode_minus_L=no
10010   hardcode_shlibpath_var=unsupported
10011   inherit_rpath=no
10012   link_all_deplibs=unknown
10013   module_cmds=
10014   module_expsym_cmds=
10015   old_archive_from_new_cmds=
10016   old_archive_from_expsyms_cmds=
10017   thread_safe_flag_spec=
10018   whole_archive_flag_spec=
10019   # include_expsyms should be a list of space-separated symbols to be *always*
10020   # included in the symbol list
10021   include_expsyms=
10022   # exclude_expsyms can be an extended regexp of symbols to exclude
10023   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10024   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10025   # as well as any symbol that contains `d'.
10026   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10027   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10028   # platforms (ab)use it in PIC code, but their linkers get confused if
10029   # the symbol is explicitly referenced.  Since portable code cannot
10030   # rely on this symbol name, it's probably fine to never include it in
10031   # preloaded symbol tables.
10032   # Exclude shared library initialization/finalization symbols.
10033   extract_expsyms_cmds=
10034
10035   case $host_os in
10036   cygwin* | mingw* | pw32* | cegcc*)
10037     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10038     # When not using gcc, we currently assume that we are using
10039     # Microsoft Visual C++.
10040     if test "$GCC" != yes; then
10041       with_gnu_ld=no
10042     fi
10043     ;;
10044   interix*)
10045     # we just hope/assume this is gcc and not c89 (= MSVC++)
10046     with_gnu_ld=yes
10047     ;;
10048   openbsd*)
10049     with_gnu_ld=no
10050     ;;
10051   esac
10052
10053   ld_shlibs=yes
10054   if test "$with_gnu_ld" = yes; then
10055     # If archive_cmds runs LD, not CC, wlarc should be empty
10056     wlarc='${wl}'
10057
10058     # Set some defaults for GNU ld with shared library support. These
10059     # are reset later if shared libraries are not supported. Putting them
10060     # here allows them to be overridden if necessary.
10061     runpath_var=LD_RUN_PATH
10062     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10063     export_dynamic_flag_spec='${wl}--export-dynamic'
10064     # ancient GNU ld didn't support --whole-archive et. al.
10065     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10066       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10067     else
10068       whole_archive_flag_spec=
10069     fi
10070     supports_anon_versioning=no
10071     case `$LD -v 2>&1` in
10072       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10073       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10074       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10075       *\ 2.11.*) ;; # other 2.11 versions
10076       *) supports_anon_versioning=yes ;;
10077     esac
10078
10079     # See if GNU ld supports shared libraries.
10080     case $host_os in
10081     aix[3-9]*)
10082       # On AIX/PPC, the GNU linker is very broken
10083       if test "$host_cpu" != ia64; then
10084         ld_shlibs=no
10085         cat <<_LT_EOF 1>&2
10086
10087 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10088 *** to be unable to reliably create shared libraries on AIX.
10089 *** Therefore, libtool is disabling shared libraries support.  If you
10090 *** really care for shared libraries, you may want to modify your PATH
10091 *** so that a non-GNU linker is found, and then restart.
10092
10093 _LT_EOF
10094       fi
10095       ;;
10096
10097     amigaos*)
10098       case $host_cpu in
10099       powerpc)
10100             # see comment about AmigaOS4 .so support
10101             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102             archive_expsym_cmds=''
10103         ;;
10104       m68k)
10105             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)'
10106             hardcode_libdir_flag_spec='-L$libdir'
10107             hardcode_minus_L=yes
10108         ;;
10109       esac
10110       ;;
10111
10112     beos*)
10113       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10114         allow_undefined_flag=unsupported
10115         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10116         # support --undefined.  This deserves some investigation.  FIXME
10117         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10118       else
10119         ld_shlibs=no
10120       fi
10121       ;;
10122
10123     cygwin* | mingw* | pw32* | cegcc*)
10124       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10125       # as there is no search path for DLLs.
10126       hardcode_libdir_flag_spec='-L$libdir'
10127       allow_undefined_flag=unsupported
10128       always_export_symbols=no
10129       enable_shared_with_static_runtimes=yes
10130       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10131
10132       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10133         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10134         # If the export-symbols file already is a .def file (1st line
10135         # is EXPORTS), use it as is; otherwise, prepend...
10136         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10137           cp $export_symbols $output_objdir/$soname.def;
10138         else
10139           echo EXPORTS > $output_objdir/$soname.def;
10140           cat $export_symbols >> $output_objdir/$soname.def;
10141         fi~
10142         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10143       else
10144         ld_shlibs=no
10145       fi
10146       ;;
10147
10148     interix[3-9]*)
10149       hardcode_direct=no
10150       hardcode_shlibpath_var=no
10151       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10152       export_dynamic_flag_spec='${wl}-E'
10153       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10154       # Instead, shared libraries are loaded at an image base (0x10000000 by
10155       # default) and relocated if they conflict, which is a slow very memory
10156       # consuming and fragmenting process.  To avoid this, we pick a random,
10157       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10158       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10159       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10160       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'
10161       ;;
10162
10163     gnu* | linux* | tpf* | k*bsd*-gnu)
10164       tmp_diet=no
10165       if test "$host_os" = linux-dietlibc; then
10166         case $cc_basename in
10167           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10168         esac
10169       fi
10170       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10171          && test "$tmp_diet" = no
10172       then
10173         tmp_addflag=
10174         tmp_sharedflag='-shared'
10175         case $cc_basename,$host_cpu in
10176         pgcc*)                          # Portland Group C compiler
10177           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'
10178           tmp_addflag=' $pic_flag'
10179           ;;
10180         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10181           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10182           tmp_addflag=' $pic_flag -Mnomain' ;;
10183         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10184           tmp_addflag=' -i_dynamic' ;;
10185         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10186           tmp_addflag=' -i_dynamic -nofor_main' ;;
10187         ifc* | ifort*)                  # Intel Fortran compiler
10188           tmp_addflag=' -nofor_main' ;;
10189         lf95*)                          # Lahey Fortran 8.1
10190           whole_archive_flag_spec=
10191           tmp_sharedflag='--shared' ;;
10192         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10193           tmp_sharedflag='-qmkshrobj'
10194           tmp_addflag= ;;
10195         esac
10196         case `$CC -V 2>&1 | sed 5q` in
10197         *Sun\ C*)                       # Sun C 5.9
10198           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'
10199           compiler_needs_object=yes
10200           tmp_sharedflag='-G' ;;
10201         *Sun\ F*)                       # Sun Fortran 8.3
10202           tmp_sharedflag='-G' ;;
10203         esac
10204         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10205
10206         if test "x$supports_anon_versioning" = xyes; then
10207           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10208             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10209             echo "local: *; };" >> $output_objdir/$libname.ver~
10210             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10211         fi
10212
10213         case $cc_basename in
10214         xlf*)
10215           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10216           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10217           hardcode_libdir_flag_spec=
10218           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10219           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10220           if test "x$supports_anon_versioning" = xyes; then
10221             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10222               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10223               echo "local: *; };" >> $output_objdir/$libname.ver~
10224               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10225           fi
10226           ;;
10227         esac
10228       else
10229         ld_shlibs=no
10230       fi
10231       ;;
10232
10233     netbsd*)
10234       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10235         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10236         wlarc=
10237       else
10238         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10239         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10240       fi
10241       ;;
10242
10243     solaris*)
10244       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10245         ld_shlibs=no
10246         cat <<_LT_EOF 1>&2
10247
10248 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10249 *** create shared libraries on Solaris systems.  Therefore, libtool
10250 *** is disabling shared libraries support.  We urge you to upgrade GNU
10251 *** binutils to release 2.9.1 or newer.  Another option is to modify
10252 *** your PATH or compiler configuration so that the native linker is
10253 *** used, and then restart.
10254
10255 _LT_EOF
10256       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10257         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10258         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10259       else
10260         ld_shlibs=no
10261       fi
10262       ;;
10263
10264     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10265       case `$LD -v 2>&1` in
10266         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10267         ld_shlibs=no
10268         cat <<_LT_EOF 1>&2
10269
10270 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10271 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10272 *** is disabling shared libraries support.  We urge you to upgrade GNU
10273 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10274 *** your PATH or compiler configuration so that the native linker is
10275 *** used, and then restart.
10276
10277 _LT_EOF
10278         ;;
10279         *)
10280           # For security reasons, it is highly recommended that you always
10281           # use absolute paths for naming shared libraries, and exclude the
10282           # DT_RUNPATH tag from executables and libraries.  But doing so
10283           # requires that you compile everything twice, which is a pain.
10284           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10285             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10286             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10287             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10288           else
10289             ld_shlibs=no
10290           fi
10291         ;;
10292       esac
10293       ;;
10294
10295     sunos4*)
10296       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10297       wlarc=
10298       hardcode_direct=yes
10299       hardcode_shlibpath_var=no
10300       ;;
10301
10302     *)
10303       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10304         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10305         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10306       else
10307         ld_shlibs=no
10308       fi
10309       ;;
10310     esac
10311
10312     if test "$ld_shlibs" = no; then
10313       runpath_var=
10314       hardcode_libdir_flag_spec=
10315       export_dynamic_flag_spec=
10316       whole_archive_flag_spec=
10317     fi
10318   else
10319     # PORTME fill in a description of your system's linker (not GNU ld)
10320     case $host_os in
10321     aix3*)
10322       allow_undefined_flag=unsupported
10323       always_export_symbols=yes
10324       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'
10325       # Note: this linker hardcodes the directories in LIBPATH if there
10326       # are no directories specified by -L.
10327       hardcode_minus_L=yes
10328       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10329         # Neither direct hardcoding nor static linking is supported with a
10330         # broken collect2.
10331         hardcode_direct=unsupported
10332       fi
10333       ;;
10334
10335     aix[4-9]*)
10336       if test "$host_cpu" = ia64; then
10337         # On IA64, the linker does run time linking by default, so we don't
10338         # have to do anything special.
10339         aix_use_runtimelinking=no
10340         exp_sym_flag='-Bexport'
10341         no_entry_flag=""
10342       else
10343         # If we're using GNU nm, then we don't want the "-C" option.
10344         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10345         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10346           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'
10347         else
10348           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'
10349         fi
10350         aix_use_runtimelinking=no
10351
10352         # Test if we are trying to use run time linking or normal
10353         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10354         # need to do runtime linking.
10355         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10356           for ld_flag in $LDFLAGS; do
10357           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10358             aix_use_runtimelinking=yes
10359             break
10360           fi
10361           done
10362           ;;
10363         esac
10364
10365         exp_sym_flag='-bexport'
10366         no_entry_flag='-bnoentry'
10367       fi
10368
10369       # When large executables or shared objects are built, AIX ld can
10370       # have problems creating the table of contents.  If linking a library
10371       # or program results in "error TOC overflow" add -mminimal-toc to
10372       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10373       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10374
10375       archive_cmds=''
10376       hardcode_direct=yes
10377       hardcode_direct_absolute=yes
10378       hardcode_libdir_separator=':'
10379       link_all_deplibs=yes
10380       file_list_spec='${wl}-f,'
10381
10382       if test "$GCC" = yes; then
10383         case $host_os in aix4.[012]|aix4.[012].*)
10384         # We only want to do this on AIX 4.2 and lower, the check
10385         # below for broken collect2 doesn't work under 4.3+
10386           collect2name=`${CC} -print-prog-name=collect2`
10387           if test -f "$collect2name" &&
10388            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10389           then
10390           # We have reworked collect2
10391           :
10392           else
10393           # We have old collect2
10394           hardcode_direct=unsupported
10395           # It fails to find uninstalled libraries when the uninstalled
10396           # path is not listed in the libpath.  Setting hardcode_minus_L
10397           # to unsupported forces relinking
10398           hardcode_minus_L=yes
10399           hardcode_libdir_flag_spec='-L$libdir'
10400           hardcode_libdir_separator=
10401           fi
10402           ;;
10403         esac
10404         shared_flag='-shared'
10405         if test "$aix_use_runtimelinking" = yes; then
10406           shared_flag="$shared_flag "'${wl}-G'
10407         fi
10408       else
10409         # not using gcc
10410         if test "$host_cpu" = ia64; then
10411         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10412         # chokes on -Wl,-G. The following line is correct:
10413           shared_flag='-G'
10414         else
10415           if test "$aix_use_runtimelinking" = yes; then
10416             shared_flag='${wl}-G'
10417           else
10418             shared_flag='${wl}-bM:SRE'
10419           fi
10420         fi
10421       fi
10422
10423       export_dynamic_flag_spec='${wl}-bexpall'
10424       # It seems that -bexpall does not export symbols beginning with
10425       # underscore (_), so it is better to generate a list of symbols to export.
10426       always_export_symbols=yes
10427       if test "$aix_use_runtimelinking" = yes; then
10428         # Warning - without using the other runtime loading flags (-brtl),
10429         # -berok will link without error, but may produce a broken library.
10430         allow_undefined_flag='-berok'
10431         # Determine the default libpath from the value encoded in an
10432         # empty executable.
10433         cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h.  */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h.  */
10439
10440 int
10441 main ()
10442 {
10443
10444   ;
10445   return 0;
10446 }
10447 _ACEOF
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (ac_try="$ac_link"
10450 case "(($ac_try" in
10451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452   *) ac_try_echo=$ac_try;;
10453 esac
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455   (eval "$ac_link") 2>conftest.er1
10456   ac_status=$?
10457   grep -v '^ *+' conftest.er1 >conftest.err
10458   rm -f conftest.er1
10459   cat conftest.err >&5
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); } && {
10462          test -z "$ac_c_werror_flag" ||
10463          test ! -s conftest.err
10464        } && test -s conftest$ac_exeext &&
10465        $as_test_x conftest$ac_exeext; then
10466
10467 lt_aix_libpath_sed='
10468     /Import File Strings/,/^$/ {
10469         /^0/ {
10470             s/^0  *\(.*\)$/\1/
10471             p
10472         }
10473     }'
10474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10475 # Check for a 64-bit object if we didn't find anything.
10476 if test -z "$aix_libpath"; then
10477   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478 fi
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483
10484 fi
10485
10486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10487       conftest$ac_exeext conftest.$ac_ext
10488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10489
10490         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10491         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"
10492       else
10493         if test "$host_cpu" = ia64; then
10494           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10495           allow_undefined_flag="-z nodefs"
10496           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"
10497         else
10498          # Determine the default libpath from the value encoded in an
10499          # empty executable.
10500          cat >conftest.$ac_ext <<_ACEOF
10501 /* confdefs.h.  */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h.  */
10506
10507 int
10508 main ()
10509 {
10510
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 rm -f conftest.$ac_objext conftest$ac_exeext
10516 if { (ac_try="$ac_link"
10517 case "(($ac_try" in
10518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519   *) ac_try_echo=$ac_try;;
10520 esac
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522   (eval "$ac_link") 2>conftest.er1
10523   ac_status=$?
10524   grep -v '^ *+' conftest.er1 >conftest.err
10525   rm -f conftest.er1
10526   cat conftest.err >&5
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); } && {
10529          test -z "$ac_c_werror_flag" ||
10530          test ! -s conftest.err
10531        } && test -s conftest$ac_exeext &&
10532        $as_test_x conftest$ac_exeext; then
10533
10534 lt_aix_libpath_sed='
10535     /Import File Strings/,/^$/ {
10536         /^0/ {
10537             s/^0  *\(.*\)$/\1/
10538             p
10539         }
10540     }'
10541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10542 # Check for a 64-bit object if we didn't find anything.
10543 if test -z "$aix_libpath"; then
10544   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 fi
10546 else
10547   echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550
10551 fi
10552
10553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10554       conftest$ac_exeext conftest.$ac_ext
10555 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10556
10557          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10558           # Warning - without using the other run time loading flags,
10559           # -berok will link without error, but may produce a broken library.
10560           no_undefined_flag=' ${wl}-bernotok'
10561           allow_undefined_flag=' ${wl}-berok'
10562           # Exported symbols can be pulled into shared objects from archives
10563           whole_archive_flag_spec='$convenience'
10564           archive_cmds_need_lc=yes
10565           # This is similar to how AIX traditionally builds its shared libraries.
10566           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'
10567         fi
10568       fi
10569       ;;
10570
10571     amigaos*)
10572       case $host_cpu in
10573       powerpc)
10574             # see comment about AmigaOS4 .so support
10575             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10576             archive_expsym_cmds=''
10577         ;;
10578       m68k)
10579             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)'
10580             hardcode_libdir_flag_spec='-L$libdir'
10581             hardcode_minus_L=yes
10582         ;;
10583       esac
10584       ;;
10585
10586     bsdi[45]*)
10587       export_dynamic_flag_spec=-rdynamic
10588       ;;
10589
10590     cygwin* | mingw* | pw32* | cegcc*)
10591       # When not using gcc, we currently assume that we are using
10592       # Microsoft Visual C++.
10593       # hardcode_libdir_flag_spec is actually meaningless, as there is
10594       # no search path for DLLs.
10595       hardcode_libdir_flag_spec=' '
10596       allow_undefined_flag=unsupported
10597       # Tell ltmain to make .lib files, not .a files.
10598       libext=lib
10599       # Tell ltmain to make .dll files, not .so files.
10600       shrext_cmds=".dll"
10601       # FIXME: Setting linknames here is a bad hack.
10602       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10603       # The linker will automatically build a .lib file if we build a DLL.
10604       old_archive_from_new_cmds='true'
10605       # FIXME: Should let the user specify the lib program.
10606       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10607       fix_srcfile_path='`cygpath -w "$srcfile"`'
10608       enable_shared_with_static_runtimes=yes
10609       ;;
10610
10611     darwin* | rhapsody*)
10612
10613
10614   archive_cmds_need_lc=no
10615   hardcode_direct=no
10616   hardcode_automatic=yes
10617   hardcode_shlibpath_var=unsupported
10618   whole_archive_flag_spec=''
10619   link_all_deplibs=yes
10620   allow_undefined_flag="$_lt_dar_allow_undefined"
10621   case $cc_basename in
10622      ifort*) _lt_dar_can_shared=yes ;;
10623      *) _lt_dar_can_shared=$GCC ;;
10624   esac
10625   if test "$_lt_dar_can_shared" = "yes"; then
10626     output_verbose_link_cmd=echo
10627     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10628     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10629     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}"
10630     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}"
10631
10632   else
10633   ld_shlibs=no
10634   fi
10635
10636       ;;
10637
10638     dgux*)
10639       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10640       hardcode_libdir_flag_spec='-L$libdir'
10641       hardcode_shlibpath_var=no
10642       ;;
10643
10644     freebsd1*)
10645       ld_shlibs=no
10646       ;;
10647
10648     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10649     # support.  Future versions do this automatically, but an explicit c++rt0.o
10650     # does not break anything, and helps significantly (at the cost of a little
10651     # extra space).
10652     freebsd2.2*)
10653       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10654       hardcode_libdir_flag_spec='-R$libdir'
10655       hardcode_direct=yes
10656       hardcode_shlibpath_var=no
10657       ;;
10658
10659     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10660     freebsd2*)
10661       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10662       hardcode_direct=yes
10663       hardcode_minus_L=yes
10664       hardcode_shlibpath_var=no
10665       ;;
10666
10667     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10668     freebsd* | dragonfly*)
10669       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10670       hardcode_libdir_flag_spec='-R$libdir'
10671       hardcode_direct=yes
10672       hardcode_shlibpath_var=no
10673       ;;
10674
10675     hpux9*)
10676       if test "$GCC" = yes; then
10677         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'
10678       else
10679         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'
10680       fi
10681       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10682       hardcode_libdir_separator=:
10683       hardcode_direct=yes
10684
10685       # hardcode_minus_L: Not really in the search PATH,
10686       # but as the default location of the library.
10687       hardcode_minus_L=yes
10688       export_dynamic_flag_spec='${wl}-E'
10689       ;;
10690
10691     hpux10*)
10692       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10693         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10694       else
10695         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10696       fi
10697       if test "$with_gnu_ld" = no; then
10698         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10699         hardcode_libdir_flag_spec_ld='+b $libdir'
10700         hardcode_libdir_separator=:
10701         hardcode_direct=yes
10702         hardcode_direct_absolute=yes
10703         export_dynamic_flag_spec='${wl}-E'
10704         # hardcode_minus_L: Not really in the search PATH,
10705         # but as the default location of the library.
10706         hardcode_minus_L=yes
10707       fi
10708       ;;
10709
10710     hpux11*)
10711       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10712         case $host_cpu in
10713         hppa*64*)
10714           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10715           ;;
10716         ia64*)
10717           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10718           ;;
10719         *)
10720           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10721           ;;
10722         esac
10723       else
10724         case $host_cpu in
10725         hppa*64*)
10726           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10727           ;;
10728         ia64*)
10729           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10730           ;;
10731         *)
10732           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10733           ;;
10734         esac
10735       fi
10736       if test "$with_gnu_ld" = no; then
10737         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10738         hardcode_libdir_separator=:
10739
10740         case $host_cpu in
10741         hppa*64*|ia64*)
10742           hardcode_direct=no
10743           hardcode_shlibpath_var=no
10744           ;;
10745         *)
10746           hardcode_direct=yes
10747           hardcode_direct_absolute=yes
10748           export_dynamic_flag_spec='${wl}-E'
10749
10750           # hardcode_minus_L: Not really in the search PATH,
10751           # but as the default location of the library.
10752           hardcode_minus_L=yes
10753           ;;
10754         esac
10755       fi
10756       ;;
10757
10758     irix5* | irix6* | nonstopux*)
10759       if test "$GCC" = yes; then
10760         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'
10761         # Try to use the -exported_symbol ld option, if it does not
10762         # work, assume that -exports_file does not work either and
10763         # implicitly export all symbols.
10764         save_LDFLAGS="$LDFLAGS"
10765         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10766         cat >conftest.$ac_ext <<_ACEOF
10767 int foo(void) {}
10768 _ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773   *) ac_try_echo=$ac_try;;
10774 esac
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776   (eval "$ac_link") 2>conftest.er1
10777   ac_status=$?
10778   grep -v '^ *+' conftest.er1 >conftest.err
10779   rm -f conftest.er1
10780   cat conftest.err >&5
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); } && {
10783          test -z "$ac_c_werror_flag" ||
10784          test ! -s conftest.err
10785        } && test -s conftest$ac_exeext &&
10786        $as_test_x conftest$ac_exeext; then
10787   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'
10788
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793
10794 fi
10795
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797       conftest$ac_exeext conftest.$ac_ext
10798         LDFLAGS="$save_LDFLAGS"
10799       else
10800         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'
10801         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'
10802       fi
10803       archive_cmds_need_lc='no'
10804       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10805       hardcode_libdir_separator=:
10806       inherit_rpath=yes
10807       link_all_deplibs=yes
10808       ;;
10809
10810     netbsd*)
10811       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10812         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10813       else
10814         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10815       fi
10816       hardcode_libdir_flag_spec='-R$libdir'
10817       hardcode_direct=yes
10818       hardcode_shlibpath_var=no
10819       ;;
10820
10821     newsos6)
10822       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10823       hardcode_direct=yes
10824       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10825       hardcode_libdir_separator=:
10826       hardcode_shlibpath_var=no
10827       ;;
10828
10829     *nto* | *qnx*)
10830       ;;
10831
10832     openbsd*)
10833       if test -f /usr/libexec/ld.so; then
10834         hardcode_direct=yes
10835         hardcode_shlibpath_var=no
10836         hardcode_direct_absolute=yes
10837         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10838           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10839           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10840           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10841           export_dynamic_flag_spec='${wl}-E'
10842         else
10843           case $host_os in
10844            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10845              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10846              hardcode_libdir_flag_spec='-R$libdir'
10847              ;;
10848            *)
10849              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10850              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10851              ;;
10852           esac
10853         fi
10854       else
10855         ld_shlibs=no
10856       fi
10857       ;;
10858
10859     os2*)
10860       hardcode_libdir_flag_spec='-L$libdir'
10861       hardcode_minus_L=yes
10862       allow_undefined_flag=unsupported
10863       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'
10864       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10865       ;;
10866
10867     osf3*)
10868       if test "$GCC" = yes; then
10869         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10870         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'
10871       else
10872         allow_undefined_flag=' -expect_unresolved \*'
10873         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'
10874       fi
10875       archive_cmds_need_lc='no'
10876       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10877       hardcode_libdir_separator=:
10878       ;;
10879
10880     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10881       if test "$GCC" = yes; then
10882         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10883         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'
10884         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10885       else
10886         allow_undefined_flag=' -expect_unresolved \*'
10887         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'
10888         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~
10889         $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'
10890
10891         # Both c and cxx compiler support -rpath directly
10892         hardcode_libdir_flag_spec='-rpath $libdir'
10893       fi
10894       archive_cmds_need_lc='no'
10895       hardcode_libdir_separator=:
10896       ;;
10897
10898     solaris*)
10899       no_undefined_flag=' -z defs'
10900       if test "$GCC" = yes; then
10901         wlarc='${wl}'
10902         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10903         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10904           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10905       else
10906         case `$CC -V 2>&1` in
10907         *"Compilers 5.0"*)
10908           wlarc=''
10909           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10910           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10911           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10912           ;;
10913         *)
10914           wlarc='${wl}'
10915           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10916           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10917           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10918           ;;
10919         esac
10920       fi
10921       hardcode_libdir_flag_spec='-R$libdir'
10922       hardcode_shlibpath_var=no
10923       case $host_os in
10924       solaris2.[0-5] | solaris2.[0-5].*) ;;
10925       *)
10926         # The compiler driver will combine and reorder linker options,
10927         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10928         # but is careful enough not to reorder.
10929         # Supported since Solaris 2.6 (maybe 2.5.1?)
10930         if test "$GCC" = yes; then
10931           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10932         else
10933           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10934         fi
10935         ;;
10936       esac
10937       link_all_deplibs=yes
10938       ;;
10939
10940     sunos4*)
10941       if test "x$host_vendor" = xsequent; then
10942         # Use $CC to link under sequent, because it throws in some extra .o
10943         # files that make .init and .fini sections work.
10944         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10945       else
10946         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10947       fi
10948       hardcode_libdir_flag_spec='-L$libdir'
10949       hardcode_direct=yes
10950       hardcode_minus_L=yes
10951       hardcode_shlibpath_var=no
10952       ;;
10953
10954     sysv4)
10955       case $host_vendor in
10956         sni)
10957           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10958           hardcode_direct=yes # is this really true???
10959         ;;
10960         siemens)
10961           ## LD is ld it makes a PLAMLIB
10962           ## CC just makes a GrossModule.
10963           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10964           reload_cmds='$CC -r -o $output$reload_objs'
10965           hardcode_direct=no
10966         ;;
10967         motorola)
10968           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10969           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10970         ;;
10971       esac
10972       runpath_var='LD_RUN_PATH'
10973       hardcode_shlibpath_var=no
10974       ;;
10975
10976     sysv4.3*)
10977       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978       hardcode_shlibpath_var=no
10979       export_dynamic_flag_spec='-Bexport'
10980       ;;
10981
10982     sysv4*MP*)
10983       if test -d /usr/nec; then
10984         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10985         hardcode_shlibpath_var=no
10986         runpath_var=LD_RUN_PATH
10987         hardcode_runpath_var=yes
10988         ld_shlibs=yes
10989       fi
10990       ;;
10991
10992     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10993       no_undefined_flag='${wl}-z,text'
10994       archive_cmds_need_lc=no
10995       hardcode_shlibpath_var=no
10996       runpath_var='LD_RUN_PATH'
10997
10998       if test "$GCC" = yes; then
10999         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11000         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11001       else
11002         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004       fi
11005       ;;
11006
11007     sysv5* | sco3.2v5* | sco5v6*)
11008       # Note: We can NOT use -z defs as we might desire, because we do not
11009       # link with -lc, and that would cause any symbols used from libc to
11010       # always be unresolved, which means just about no library would
11011       # ever link correctly.  If we're not using GNU ld we use -z text
11012       # though, which does catch some bad symbols but isn't as heavy-handed
11013       # as -z defs.
11014       no_undefined_flag='${wl}-z,text'
11015       allow_undefined_flag='${wl}-z,nodefs'
11016       archive_cmds_need_lc=no
11017       hardcode_shlibpath_var=no
11018       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11019       hardcode_libdir_separator=':'
11020       link_all_deplibs=yes
11021       export_dynamic_flag_spec='${wl}-Bexport'
11022       runpath_var='LD_RUN_PATH'
11023
11024       if test "$GCC" = yes; then
11025         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11026         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11027       else
11028         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030       fi
11031       ;;
11032
11033     uts4*)
11034       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11035       hardcode_libdir_flag_spec='-L$libdir'
11036       hardcode_shlibpath_var=no
11037       ;;
11038
11039     *)
11040       ld_shlibs=no
11041       ;;
11042     esac
11043
11044     if test x$host_vendor = xsni; then
11045       case $host in
11046       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11047         export_dynamic_flag_spec='${wl}-Blargedynsym'
11048         ;;
11049       esac
11050     fi
11051   fi
11052
11053 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11054 echo "${ECHO_T}$ld_shlibs" >&6; }
11055 test "$ld_shlibs" = no && can_build_shared=no
11056
11057 with_gnu_ld=$with_gnu_ld
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073 #
11074 # Do we need to explicitly link libc?
11075 #
11076 case "x$archive_cmds_need_lc" in
11077 x|xyes)
11078   # Assume -lc should be added
11079   archive_cmds_need_lc=yes
11080
11081   if test "$enable_shared" = yes && test "$GCC" = yes; then
11082     case $archive_cmds in
11083     *'~'*)
11084       # FIXME: we may have to deal with multi-command sequences.
11085       ;;
11086     '$CC '*)
11087       # Test whether the compiler implicitly links with -lc since on some
11088       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11089       # to ld, don't add -lc before -lgcc.
11090       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11091 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11092       $RM conftest*
11093       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11094
11095       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11096   (eval $ac_compile) 2>&5
11097   ac_status=$?
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); } 2>conftest.err; then
11100         soname=conftest
11101         lib=conftest
11102         libobjs=conftest.$ac_objext
11103         deplibs=
11104         wl=$lt_prog_compiler_wl
11105         pic_flag=$lt_prog_compiler_pic
11106         compiler_flags=-v
11107         linker_flags=-v
11108         verstring=
11109         output_objdir=.
11110         libname=conftest
11111         lt_save_allow_undefined_flag=$allow_undefined_flag
11112         allow_undefined_flag=
11113         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11114   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); }
11118         then
11119           archive_cmds_need_lc=no
11120         else
11121           archive_cmds_need_lc=yes
11122         fi
11123         allow_undefined_flag=$lt_save_allow_undefined_flag
11124       else
11125         cat conftest.err 1>&5
11126       fi
11127       $RM conftest*
11128       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11129 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11130       ;;
11131     esac
11132   fi
11133   ;;
11134 esac
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
11288
11289
11290
11291
11292   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11293 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11294
11295 if test "$GCC" = yes; then
11296   case $host_os in
11297     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11298     *) lt_awk_arg="/^libraries:/" ;;
11299   esac
11300   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11301   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11302     # if the path contains ";" then we assume it to be the separator
11303     # otherwise default to the standard path separator (i.e. ":") - it is
11304     # assumed that no part of a normal pathname contains ";" but that should
11305     # okay in the real world where ";" in dirpaths is itself problematic.
11306     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11307   else
11308     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11309   fi
11310   # Ok, now we have the path, separated by spaces, we can step through it
11311   # and add multilib dir if necessary.
11312   lt_tmp_lt_search_path_spec=
11313   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11314   for lt_sys_path in $lt_search_path_spec; do
11315     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11316       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11317     else
11318       test -d "$lt_sys_path" && \
11319         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11320     fi
11321   done
11322   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11323 BEGIN {RS=" "; FS="/|\n";} {
11324   lt_foo="";
11325   lt_count=0;
11326   for (lt_i = NF; lt_i > 0; lt_i--) {
11327     if ($lt_i != "" && $lt_i != ".") {
11328       if ($lt_i == "..") {
11329         lt_count++;
11330       } else {
11331         if (lt_count == 0) {
11332           lt_foo="/" $lt_i lt_foo;
11333         } else {
11334           lt_count--;
11335         }
11336       }
11337     }
11338   }
11339   if (lt_foo != "") { lt_freq[lt_foo]++; }
11340   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11341 }'`
11342   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11343 else
11344   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11345 fi
11346 library_names_spec=
11347 libname_spec='lib$name'
11348 soname_spec=
11349 shrext_cmds=".so"
11350 postinstall_cmds=
11351 postuninstall_cmds=
11352 finish_cmds=
11353 finish_eval=
11354 shlibpath_var=
11355 shlibpath_overrides_runpath=unknown
11356 version_type=none
11357 dynamic_linker="$host_os ld.so"
11358 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11359 need_lib_prefix=unknown
11360 hardcode_into_libs=no
11361
11362 # when you set need_version to no, make sure it does not cause -set_version
11363 # flags to be left without arguments
11364 need_version=unknown
11365
11366 case $host_os in
11367 aix3*)
11368   version_type=linux
11369   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11370   shlibpath_var=LIBPATH
11371
11372   # AIX 3 has no versioning support, so we append a major version to the name.
11373   soname_spec='${libname}${release}${shared_ext}$major'
11374   ;;
11375
11376 aix[4-9]*)
11377   version_type=linux
11378   need_lib_prefix=no
11379   need_version=no
11380   hardcode_into_libs=yes
11381   if test "$host_cpu" = ia64; then
11382     # AIX 5 supports IA64
11383     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11384     shlibpath_var=LD_LIBRARY_PATH
11385   else
11386     # With GCC up to 2.95.x, collect2 would create an import file
11387     # for dependence libraries.  The import file would start with
11388     # the line `#! .'.  This would cause the generated library to
11389     # depend on `.', always an invalid library.  This was fixed in
11390     # development snapshots of GCC prior to 3.0.
11391     case $host_os in
11392       aix4 | aix4.[01] | aix4.[01].*)
11393       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11394            echo ' yes '
11395            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11396         :
11397       else
11398         can_build_shared=no
11399       fi
11400       ;;
11401     esac
11402     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11403     # soname into executable. Probably we can add versioning support to
11404     # collect2, so additional links can be useful in future.
11405     if test "$aix_use_runtimelinking" = yes; then
11406       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11407       # instead of lib<name>.a to let people know that these are not
11408       # typical AIX shared libraries.
11409       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11410     else
11411       # We preserve .a as extension for shared libraries through AIX4.2
11412       # and later when we are not doing run time linking.
11413       library_names_spec='${libname}${release}.a $libname.a'
11414       soname_spec='${libname}${release}${shared_ext}$major'
11415     fi
11416     shlibpath_var=LIBPATH
11417   fi
11418   ;;
11419
11420 amigaos*)
11421   case $host_cpu in
11422   powerpc)
11423     # Since July 2007 AmigaOS4 officially supports .so libraries.
11424     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11426     ;;
11427   m68k)
11428     library_names_spec='$libname.ixlibrary $libname.a'
11429     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11430     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'
11431     ;;
11432   esac
11433   ;;
11434
11435 beos*)
11436   library_names_spec='${libname}${shared_ext}'
11437   dynamic_linker="$host_os ld.so"
11438   shlibpath_var=LIBRARY_PATH
11439   ;;
11440
11441 bsdi[45]*)
11442   version_type=linux
11443   need_version=no
11444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11445   soname_spec='${libname}${release}${shared_ext}$major'
11446   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11447   shlibpath_var=LD_LIBRARY_PATH
11448   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11449   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11450   # the default ld.so.conf also contains /usr/contrib/lib and
11451   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11452   # libtool to hard-code these into programs
11453   ;;
11454
11455 cygwin* | mingw* | pw32* | cegcc*)
11456   version_type=windows
11457   shrext_cmds=".dll"
11458   need_version=no
11459   need_lib_prefix=no
11460
11461   case $GCC,$host_os in
11462   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11463     library_names_spec='$libname.dll.a'
11464     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11465     postinstall_cmds='base_file=`basename \${file}`~
11466       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11467       dldir=$destdir/`dirname \$dlpath`~
11468       test -d \$dldir || mkdir -p \$dldir~
11469       $install_prog $dir/$dlname \$dldir/$dlname~
11470       chmod a+x \$dldir/$dlname~
11471       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11472         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11473       fi'
11474     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11475       dlpath=$dir/\$dldll~
11476        $RM \$dlpath'
11477     shlibpath_overrides_runpath=yes
11478
11479     case $host_os in
11480     cygwin*)
11481       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11482       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11483       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11484       ;;
11485     mingw* | cegcc*)
11486       # MinGW DLLs use traditional 'lib' prefix
11487       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11488       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11489       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11490         # It is most probably a Windows format PATH printed by
11491         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11492         # path with ; separators, and with drive letters. We can handle the
11493         # drive letters (cygwin fileutils understands them), so leave them,
11494         # especially as we might pass files found there to a mingw objdump,
11495         # which wouldn't understand a cygwinified path. Ahh.
11496         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11497       else
11498         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11499       fi
11500       ;;
11501     pw32*)
11502       # pw32 DLLs use 'pw' prefix rather than 'lib'
11503       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11504       ;;
11505     esac
11506     ;;
11507
11508   *)
11509     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11510     ;;
11511   esac
11512   dynamic_linker='Win32 ld.exe'
11513   # FIXME: first we should search . and the directory the executable is in
11514   shlibpath_var=PATH
11515   ;;
11516
11517 darwin* | rhapsody*)
11518   dynamic_linker="$host_os dyld"
11519   version_type=darwin
11520   need_lib_prefix=no
11521   need_version=no
11522   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11523   soname_spec='${libname}${release}${major}$shared_ext'
11524   shlibpath_overrides_runpath=yes
11525   shlibpath_var=DYLD_LIBRARY_PATH
11526   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11527
11528   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11529   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11530   ;;
11531
11532 dgux*)
11533   version_type=linux
11534   need_lib_prefix=no
11535   need_version=no
11536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11537   soname_spec='${libname}${release}${shared_ext}$major'
11538   shlibpath_var=LD_LIBRARY_PATH
11539   ;;
11540
11541 freebsd1*)
11542   dynamic_linker=no
11543   ;;
11544
11545 freebsd* | dragonfly*)
11546   # DragonFly does not have aout.  When/if they implement a new
11547   # versioning mechanism, adjust this.
11548   if test -x /usr/bin/objformat; then
11549     objformat=`/usr/bin/objformat`
11550   else
11551     case $host_os in
11552     freebsd[123]*) objformat=aout ;;
11553     *) objformat=elf ;;
11554     esac
11555   fi
11556   version_type=freebsd-$objformat
11557   case $version_type in
11558     freebsd-elf*)
11559       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11560       need_version=no
11561       need_lib_prefix=no
11562       ;;
11563     freebsd-*)
11564       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11565       need_version=yes
11566       ;;
11567   esac
11568   shlibpath_var=LD_LIBRARY_PATH
11569   case $host_os in
11570   freebsd2*)
11571     shlibpath_overrides_runpath=yes
11572     ;;
11573   freebsd3.[01]* | freebsdelf3.[01]*)
11574     shlibpath_overrides_runpath=yes
11575     hardcode_into_libs=yes
11576     ;;
11577   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11578   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11579     shlibpath_overrides_runpath=no
11580     hardcode_into_libs=yes
11581     ;;
11582   *) # from 4.6 on, and DragonFly
11583     shlibpath_overrides_runpath=yes
11584     hardcode_into_libs=yes
11585     ;;
11586   esac
11587   ;;
11588
11589 gnu*)
11590   version_type=linux
11591   need_lib_prefix=no
11592   need_version=no
11593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11594   soname_spec='${libname}${release}${shared_ext}$major'
11595   shlibpath_var=LD_LIBRARY_PATH
11596   hardcode_into_libs=yes
11597   ;;
11598
11599 hpux9* | hpux10* | hpux11*)
11600   # Give a soname corresponding to the major version so that dld.sl refuses to
11601   # link against other versions.
11602   version_type=sunos
11603   need_lib_prefix=no
11604   need_version=no
11605   case $host_cpu in
11606   ia64*)
11607     shrext_cmds='.so'
11608     hardcode_into_libs=yes
11609     dynamic_linker="$host_os dld.so"
11610     shlibpath_var=LD_LIBRARY_PATH
11611     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11612     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613     soname_spec='${libname}${release}${shared_ext}$major'
11614     if test "X$HPUX_IA64_MODE" = X32; then
11615       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11616     else
11617       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11618     fi
11619     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11620     ;;
11621   hppa*64*)
11622     shrext_cmds='.sl'
11623     hardcode_into_libs=yes
11624     dynamic_linker="$host_os dld.sl"
11625     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11626     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628     soname_spec='${libname}${release}${shared_ext}$major'
11629     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11630     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11631     ;;
11632   *)
11633     shrext_cmds='.sl'
11634     dynamic_linker="$host_os dld.sl"
11635     shlibpath_var=SHLIB_PATH
11636     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638     soname_spec='${libname}${release}${shared_ext}$major'
11639     ;;
11640   esac
11641   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11642   postinstall_cmds='chmod 555 $lib'
11643   ;;
11644
11645 interix[3-9]*)
11646   version_type=linux
11647   need_lib_prefix=no
11648   need_version=no
11649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11650   soname_spec='${libname}${release}${shared_ext}$major'
11651   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11652   shlibpath_var=LD_LIBRARY_PATH
11653   shlibpath_overrides_runpath=no
11654   hardcode_into_libs=yes
11655   ;;
11656
11657 irix5* | irix6* | nonstopux*)
11658   case $host_os in
11659     nonstopux*) version_type=nonstopux ;;
11660     *)
11661         if test "$lt_cv_prog_gnu_ld" = yes; then
11662                 version_type=linux
11663         else
11664                 version_type=irix
11665         fi ;;
11666   esac
11667   need_lib_prefix=no
11668   need_version=no
11669   soname_spec='${libname}${release}${shared_ext}$major'
11670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11671   case $host_os in
11672   irix5* | nonstopux*)
11673     libsuff= shlibsuff=
11674     ;;
11675   *)
11676     case $LD in # libtool.m4 will add one of these switches to LD
11677     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11678       libsuff= shlibsuff= libmagic=32-bit;;
11679     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11680       libsuff=32 shlibsuff=N32 libmagic=N32;;
11681     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11682       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11683     *) libsuff= shlibsuff= libmagic=never-match;;
11684     esac
11685     ;;
11686   esac
11687   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11688   shlibpath_overrides_runpath=no
11689   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11690   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11691   hardcode_into_libs=yes
11692   ;;
11693
11694 # No shared lib support for Linux oldld, aout, or coff.
11695 linux*oldld* | linux*aout* | linux*coff*)
11696   dynamic_linker=no
11697   ;;
11698
11699 # This must be Linux ELF.
11700 linux* | k*bsd*-gnu)
11701   version_type=linux
11702   need_lib_prefix=no
11703   need_version=no
11704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11705   soname_spec='${libname}${release}${shared_ext}$major'
11706   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11707   shlibpath_var=LD_LIBRARY_PATH
11708   shlibpath_overrides_runpath=no
11709   # Some binutils ld are patched to set DT_RUNPATH
11710   save_LDFLAGS=$LDFLAGS
11711   save_libdir=$libdir
11712   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11713        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11714   cat >conftest.$ac_ext <<_ACEOF
11715 /* confdefs.h.  */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h.  */
11720
11721 int
11722 main ()
11723 {
11724
11725   ;
11726   return 0;
11727 }
11728 _ACEOF
11729 rm -f conftest.$ac_objext conftest$ac_exeext
11730 if { (ac_try="$ac_link"
11731 case "(($ac_try" in
11732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733   *) ac_try_echo=$ac_try;;
11734 esac
11735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736   (eval "$ac_link") 2>conftest.er1
11737   ac_status=$?
11738   grep -v '^ *+' conftest.er1 >conftest.err
11739   rm -f conftest.er1
11740   cat conftest.err >&5
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); } && {
11743          test -z "$ac_c_werror_flag" ||
11744          test ! -s conftest.err
11745        } && test -s conftest$ac_exeext &&
11746        $as_test_x conftest$ac_exeext; then
11747   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11748   shlibpath_overrides_runpath=yes
11749 fi
11750
11751 else
11752   echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11754
11755
11756 fi
11757
11758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11759       conftest$ac_exeext conftest.$ac_ext
11760   LDFLAGS=$save_LDFLAGS
11761   libdir=$save_libdir
11762
11763   # This implies no fast_install, which is unacceptable.
11764   # Some rework will be needed to allow for fast_install
11765   # before this can be enabled.
11766   hardcode_into_libs=yes
11767
11768   # Append ld.so.conf contents to the search path
11769   if test -f /etc/ld.so.conf; then
11770     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' ' '`
11771     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11772   fi
11773
11774   # We used to test for /lib/ld.so.1 and disable shared libraries on
11775   # powerpc, because MkLinux only supported shared libraries with the
11776   # GNU dynamic linker.  Since this was broken with cross compilers,
11777   # most powerpc-linux boxes support dynamic linking these days and
11778   # people can always --disable-shared, the test was removed, and we
11779   # assume the GNU/Linux dynamic linker is in use.
11780   dynamic_linker='GNU/Linux ld.so'
11781   ;;
11782
11783 netbsd*)
11784   version_type=sunos
11785   need_lib_prefix=no
11786   need_version=no
11787   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11789     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11790     dynamic_linker='NetBSD (a.out) ld.so'
11791   else
11792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11793     soname_spec='${libname}${release}${shared_ext}$major'
11794     dynamic_linker='NetBSD ld.elf_so'
11795   fi
11796   shlibpath_var=LD_LIBRARY_PATH
11797   shlibpath_overrides_runpath=yes
11798   hardcode_into_libs=yes
11799   ;;
11800
11801 newsos6)
11802   version_type=linux
11803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804   shlibpath_var=LD_LIBRARY_PATH
11805   shlibpath_overrides_runpath=yes
11806   ;;
11807
11808 *nto* | *qnx*)
11809   version_type=qnx
11810   need_lib_prefix=no
11811   need_version=no
11812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813   soname_spec='${libname}${release}${shared_ext}$major'
11814   shlibpath_var=LD_LIBRARY_PATH
11815   shlibpath_overrides_runpath=no
11816   hardcode_into_libs=yes
11817   dynamic_linker='ldqnx.so'
11818   ;;
11819
11820 openbsd*)
11821   version_type=sunos
11822   sys_lib_dlsearch_path_spec="/usr/lib"
11823   need_lib_prefix=no
11824   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11825   case $host_os in
11826     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11827     *)                          need_version=no  ;;
11828   esac
11829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11830   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11831   shlibpath_var=LD_LIBRARY_PATH
11832   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11833     case $host_os in
11834       openbsd2.[89] | openbsd2.[89].*)
11835         shlibpath_overrides_runpath=no
11836         ;;
11837       *)
11838         shlibpath_overrides_runpath=yes
11839         ;;
11840       esac
11841   else
11842     shlibpath_overrides_runpath=yes
11843   fi
11844   ;;
11845
11846 os2*)
11847   libname_spec='$name'
11848   shrext_cmds=".dll"
11849   need_lib_prefix=no
11850   library_names_spec='$libname${shared_ext} $libname.a'
11851   dynamic_linker='OS/2 ld.exe'
11852   shlibpath_var=LIBPATH
11853   ;;
11854
11855 osf3* | osf4* | osf5*)
11856   version_type=osf
11857   need_lib_prefix=no
11858   need_version=no
11859   soname_spec='${libname}${release}${shared_ext}$major'
11860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861   shlibpath_var=LD_LIBRARY_PATH
11862   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11863   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11864   ;;
11865
11866 rdos*)
11867   dynamic_linker=no
11868   ;;
11869
11870 solaris*)
11871   version_type=linux
11872   need_lib_prefix=no
11873   need_version=no
11874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875   soname_spec='${libname}${release}${shared_ext}$major'
11876   shlibpath_var=LD_LIBRARY_PATH
11877   shlibpath_overrides_runpath=yes
11878   hardcode_into_libs=yes
11879   # ldd complains unless libraries are executable
11880   postinstall_cmds='chmod +x $lib'
11881   ;;
11882
11883 sunos4*)
11884   version_type=sunos
11885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11886   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11887   shlibpath_var=LD_LIBRARY_PATH
11888   shlibpath_overrides_runpath=yes
11889   if test "$with_gnu_ld" = yes; then
11890     need_lib_prefix=no
11891   fi
11892   need_version=yes
11893   ;;
11894
11895 sysv4 | sysv4.3*)
11896   version_type=linux
11897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11898   soname_spec='${libname}${release}${shared_ext}$major'
11899   shlibpath_var=LD_LIBRARY_PATH
11900   case $host_vendor in
11901     sni)
11902       shlibpath_overrides_runpath=no
11903       need_lib_prefix=no
11904       runpath_var=LD_RUN_PATH
11905       ;;
11906     siemens)
11907       need_lib_prefix=no
11908       ;;
11909     motorola)
11910       need_lib_prefix=no
11911       need_version=no
11912       shlibpath_overrides_runpath=no
11913       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11914       ;;
11915   esac
11916   ;;
11917
11918 sysv4*MP*)
11919   if test -d /usr/nec ;then
11920     version_type=linux
11921     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11922     soname_spec='$libname${shared_ext}.$major'
11923     shlibpath_var=LD_LIBRARY_PATH
11924   fi
11925   ;;
11926
11927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11928   version_type=freebsd-elf
11929   need_lib_prefix=no
11930   need_version=no
11931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11932   soname_spec='${libname}${release}${shared_ext}$major'
11933   shlibpath_var=LD_LIBRARY_PATH
11934   shlibpath_overrides_runpath=yes
11935   hardcode_into_libs=yes
11936   if test "$with_gnu_ld" = yes; then
11937     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11938   else
11939     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11940     case $host_os in
11941       sco3.2v5*)
11942         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11943         ;;
11944     esac
11945   fi
11946   sys_lib_dlsearch_path_spec='/usr/lib'
11947   ;;
11948
11949 tpf*)
11950   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11951   version_type=linux
11952   need_lib_prefix=no
11953   need_version=no
11954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955   shlibpath_var=LD_LIBRARY_PATH
11956   shlibpath_overrides_runpath=no
11957   hardcode_into_libs=yes
11958   ;;
11959
11960 uts4*)
11961   version_type=linux
11962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11963   soname_spec='${libname}${release}${shared_ext}$major'
11964   shlibpath_var=LD_LIBRARY_PATH
11965   ;;
11966
11967 *)
11968   dynamic_linker=no
11969   ;;
11970 esac
11971 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11972 echo "${ECHO_T}$dynamic_linker" >&6; }
11973 test "$dynamic_linker" = no && can_build_shared=no
11974
11975 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11976 if test "$GCC" = yes; then
11977   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11978 fi
11979
11980 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11981   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11982 fi
11983 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11984   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11985 fi
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
12069
12070
12071
12072
12073   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12074 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12075 hardcode_action=
12076 if test -n "$hardcode_libdir_flag_spec" ||
12077    test -n "$runpath_var" ||
12078    test "X$hardcode_automatic" = "Xyes" ; then
12079
12080   # We can hardcode non-existent directories.
12081   if test "$hardcode_direct" != no &&
12082      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12083      # have to relink, otherwise we might link with an installed library
12084      # when we should be linking with a yet-to-be-installed one
12085      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12086      test "$hardcode_minus_L" != no; then
12087     # Linking always hardcodes the temporary library directory.
12088     hardcode_action=relink
12089   else
12090     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12091     hardcode_action=immediate
12092   fi
12093 else
12094   # We cannot hardcode anything, or else we can only hardcode existing
12095   # directories.
12096   hardcode_action=unsupported
12097 fi
12098 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12099 echo "${ECHO_T}$hardcode_action" >&6; }
12100
12101 if test "$hardcode_action" = relink ||
12102    test "$inherit_rpath" = yes; then
12103   # Fast installation is not supported
12104   enable_fast_install=no
12105 elif test "$shlibpath_overrides_runpath" = yes ||
12106      test "$enable_shared" = no; then
12107   # Fast installation is not necessary
12108   enable_fast_install=needless
12109 fi
12110
12111
12112
12113
12114
12115
12116   if test "x$enable_dlopen" != xyes; then
12117   enable_dlopen=unknown
12118   enable_dlopen_self=unknown
12119   enable_dlopen_self_static=unknown
12120 else
12121   lt_cv_dlopen=no
12122   lt_cv_dlopen_libs=
12123
12124   case $host_os in
12125   beos*)
12126     lt_cv_dlopen="load_add_on"
12127     lt_cv_dlopen_libs=
12128     lt_cv_dlopen_self=yes
12129     ;;
12130
12131   mingw* | pw32* | cegcc*)
12132     lt_cv_dlopen="LoadLibrary"
12133     lt_cv_dlopen_libs=
12134     ;;
12135
12136   cygwin*)
12137     lt_cv_dlopen="dlopen"
12138     lt_cv_dlopen_libs=
12139     ;;
12140
12141   darwin*)
12142   # if libdl is installed we need to link against it
12143     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12144 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12146   echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148   ac_check_lib_save_LIBS=$LIBS
12149 LIBS="-ldl  $LIBS"
12150 cat >conftest.$ac_ext <<_ACEOF
12151 /* confdefs.h.  */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h.  */
12156
12157 /* Override any GCC internal prototype to avoid an error.
12158    Use char because int might match the return type of a GCC
12159    builtin and then its argument prototype would still apply.  */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 char dlopen ();
12164 int
12165 main ()
12166 {
12167 return dlopen ();
12168   ;
12169   return 0;
12170 }
12171 _ACEOF
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (ac_try="$ac_link"
12174 case "(($ac_try" in
12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176   *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179   (eval "$ac_link") 2>conftest.er1
12180   ac_status=$?
12181   grep -v '^ *+' conftest.er1 >conftest.err
12182   rm -f conftest.er1
12183   cat conftest.err >&5
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); } && {
12186          test -z "$ac_c_werror_flag" ||
12187          test ! -s conftest.err
12188        } && test -s conftest$ac_exeext &&
12189        $as_test_x conftest$ac_exeext; then
12190   ac_cv_lib_dl_dlopen=yes
12191 else
12192   echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12194
12195         ac_cv_lib_dl_dlopen=no
12196 fi
12197
12198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12199       conftest$ac_exeext conftest.$ac_ext
12200 LIBS=$ac_check_lib_save_LIBS
12201 fi
12202 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12203 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12204 if test $ac_cv_lib_dl_dlopen = yes; then
12205   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12206 else
12207
12208     lt_cv_dlopen="dyld"
12209     lt_cv_dlopen_libs=
12210     lt_cv_dlopen_self=yes
12211
12212 fi
12213
12214     ;;
12215
12216   *)
12217     { echo "$as_me:$LINENO: checking for shl_load" >&5
12218 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12219 if test "${ac_cv_func_shl_load+set}" = set; then
12220   echo $ECHO_N "(cached) $ECHO_C" >&6
12221 else
12222   cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h.  */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h.  */
12228 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12230 #define shl_load innocuous_shl_load
12231
12232 /* System header to define __stub macros and hopefully few prototypes,
12233     which can conflict with char shl_load (); below.
12234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12235     <limits.h> exists even on freestanding compilers.  */
12236
12237 #ifdef __STDC__
12238 # include <limits.h>
12239 #else
12240 # include <assert.h>
12241 #endif
12242
12243 #undef shl_load
12244
12245 /* Override any GCC internal prototype to avoid an error.
12246    Use char because int might match the return type of a GCC
12247    builtin and then its argument prototype would still apply.  */
12248 #ifdef __cplusplus
12249 extern "C"
12250 #endif
12251 char shl_load ();
12252 /* The GNU C library defines this for functions which it implements
12253     to always fail with ENOSYS.  Some functions are actually named
12254     something starting with __ and the normal name is an alias.  */
12255 #if defined __stub_shl_load || defined __stub___shl_load
12256 choke me
12257 #endif
12258
12259 int
12260 main ()
12261 {
12262 return shl_load ();
12263   ;
12264   return 0;
12265 }
12266 _ACEOF
12267 rm -f conftest.$ac_objext conftest$ac_exeext
12268 if { (ac_try="$ac_link"
12269 case "(($ac_try" in
12270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271   *) ac_try_echo=$ac_try;;
12272 esac
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274   (eval "$ac_link") 2>conftest.er1
12275   ac_status=$?
12276   grep -v '^ *+' conftest.er1 >conftest.err
12277   rm -f conftest.er1
12278   cat conftest.err >&5
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); } && {
12281          test -z "$ac_c_werror_flag" ||
12282          test ! -s conftest.err
12283        } && test -s conftest$ac_exeext &&
12284        $as_test_x conftest$ac_exeext; then
12285   ac_cv_func_shl_load=yes
12286 else
12287   echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12289
12290         ac_cv_func_shl_load=no
12291 fi
12292
12293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12294       conftest$ac_exeext conftest.$ac_ext
12295 fi
12296 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12297 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12298 if test $ac_cv_func_shl_load = yes; then
12299   lt_cv_dlopen="shl_load"
12300 else
12301   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12302 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12303 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12304   echo $ECHO_N "(cached) $ECHO_C" >&6
12305 else
12306   ac_check_lib_save_LIBS=$LIBS
12307 LIBS="-ldld  $LIBS"
12308 cat >conftest.$ac_ext <<_ACEOF
12309 /* confdefs.h.  */
12310 _ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h.  */
12314
12315 /* Override any GCC internal prototype to avoid an error.
12316    Use char because int might match the return type of a GCC
12317    builtin and then its argument prototype would still apply.  */
12318 #ifdef __cplusplus
12319 extern "C"
12320 #endif
12321 char shl_load ();
12322 int
12323 main ()
12324 {
12325 return shl_load ();
12326   ;
12327   return 0;
12328 }
12329 _ACEOF
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (ac_try="$ac_link"
12332 case "(($ac_try" in
12333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334   *) ac_try_echo=$ac_try;;
12335 esac
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337   (eval "$ac_link") 2>conftest.er1
12338   ac_status=$?
12339   grep -v '^ *+' conftest.er1 >conftest.err
12340   rm -f conftest.er1
12341   cat conftest.err >&5
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); } && {
12344          test -z "$ac_c_werror_flag" ||
12345          test ! -s conftest.err
12346        } && test -s conftest$ac_exeext &&
12347        $as_test_x conftest$ac_exeext; then
12348   ac_cv_lib_dld_shl_load=yes
12349 else
12350   echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12352
12353         ac_cv_lib_dld_shl_load=no
12354 fi
12355
12356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12357       conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12359 fi
12360 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12361 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12362 if test $ac_cv_lib_dld_shl_load = yes; then
12363   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12364 else
12365   { echo "$as_me:$LINENO: checking for dlopen" >&5
12366 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12367 if test "${ac_cv_func_dlopen+set}" = set; then
12368   echo $ECHO_N "(cached) $ECHO_C" >&6
12369 else
12370   cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h.  */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h.  */
12376 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12378 #define dlopen innocuous_dlopen
12379
12380 /* System header to define __stub macros and hopefully few prototypes,
12381     which can conflict with char dlopen (); below.
12382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12383     <limits.h> exists even on freestanding compilers.  */
12384
12385 #ifdef __STDC__
12386 # include <limits.h>
12387 #else
12388 # include <assert.h>
12389 #endif
12390
12391 #undef dlopen
12392
12393 /* Override any GCC internal prototype to avoid an error.
12394    Use char because int might match the return type of a GCC
12395    builtin and then its argument prototype would still apply.  */
12396 #ifdef __cplusplus
12397 extern "C"
12398 #endif
12399 char dlopen ();
12400 /* The GNU C library defines this for functions which it implements
12401     to always fail with ENOSYS.  Some functions are actually named
12402     something starting with __ and the normal name is an alias.  */
12403 #if defined __stub_dlopen || defined __stub___dlopen
12404 choke me
12405 #endif
12406
12407 int
12408 main ()
12409 {
12410 return dlopen ();
12411   ;
12412   return 0;
12413 }
12414 _ACEOF
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (ac_try="$ac_link"
12417 case "(($ac_try" in
12418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419   *) ac_try_echo=$ac_try;;
12420 esac
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422   (eval "$ac_link") 2>conftest.er1
12423   ac_status=$?
12424   grep -v '^ *+' conftest.er1 >conftest.err
12425   rm -f conftest.er1
12426   cat conftest.err >&5
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); } && {
12429          test -z "$ac_c_werror_flag" ||
12430          test ! -s conftest.err
12431        } && test -s conftest$ac_exeext &&
12432        $as_test_x conftest$ac_exeext; then
12433   ac_cv_func_dlopen=yes
12434 else
12435   echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12437
12438         ac_cv_func_dlopen=no
12439 fi
12440
12441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12442       conftest$ac_exeext conftest.$ac_ext
12443 fi
12444 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12445 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12446 if test $ac_cv_func_dlopen = yes; then
12447   lt_cv_dlopen="dlopen"
12448 else
12449   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12450 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12451 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12452   echo $ECHO_N "(cached) $ECHO_C" >&6
12453 else
12454   ac_check_lib_save_LIBS=$LIBS
12455 LIBS="-ldl  $LIBS"
12456 cat >conftest.$ac_ext <<_ACEOF
12457 /* confdefs.h.  */
12458 _ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h.  */
12462
12463 /* Override any GCC internal prototype to avoid an error.
12464    Use char because int might match the return type of a GCC
12465    builtin and then its argument prototype would still apply.  */
12466 #ifdef __cplusplus
12467 extern "C"
12468 #endif
12469 char dlopen ();
12470 int
12471 main ()
12472 {
12473 return dlopen ();
12474   ;
12475   return 0;
12476 }
12477 _ACEOF
12478 rm -f conftest.$ac_objext conftest$ac_exeext
12479 if { (ac_try="$ac_link"
12480 case "(($ac_try" in
12481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482   *) ac_try_echo=$ac_try;;
12483 esac
12484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485   (eval "$ac_link") 2>conftest.er1
12486   ac_status=$?
12487   grep -v '^ *+' conftest.er1 >conftest.err
12488   rm -f conftest.er1
12489   cat conftest.err >&5
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); } && {
12492          test -z "$ac_c_werror_flag" ||
12493          test ! -s conftest.err
12494        } && test -s conftest$ac_exeext &&
12495        $as_test_x conftest$ac_exeext; then
12496   ac_cv_lib_dl_dlopen=yes
12497 else
12498   echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12500
12501         ac_cv_lib_dl_dlopen=no
12502 fi
12503
12504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12505       conftest$ac_exeext conftest.$ac_ext
12506 LIBS=$ac_check_lib_save_LIBS
12507 fi
12508 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12509 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12510 if test $ac_cv_lib_dl_dlopen = yes; then
12511   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12512 else
12513   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12514 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12515 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12516   echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518   ac_check_lib_save_LIBS=$LIBS
12519 LIBS="-lsvld  $LIBS"
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h.  */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h.  */
12526
12527 /* Override any GCC internal prototype to avoid an error.
12528    Use char because int might match the return type of a GCC
12529    builtin and then its argument prototype would still apply.  */
12530 #ifdef __cplusplus
12531 extern "C"
12532 #endif
12533 char dlopen ();
12534 int
12535 main ()
12536 {
12537 return dlopen ();
12538   ;
12539   return 0;
12540 }
12541 _ACEOF
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (ac_try="$ac_link"
12544 case "(($ac_try" in
12545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546   *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549   (eval "$ac_link") 2>conftest.er1
12550   ac_status=$?
12551   grep -v '^ *+' conftest.er1 >conftest.err
12552   rm -f conftest.er1
12553   cat conftest.err >&5
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); } && {
12556          test -z "$ac_c_werror_flag" ||
12557          test ! -s conftest.err
12558        } && test -s conftest$ac_exeext &&
12559        $as_test_x conftest$ac_exeext; then
12560   ac_cv_lib_svld_dlopen=yes
12561 else
12562   echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565         ac_cv_lib_svld_dlopen=no
12566 fi
12567
12568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12569       conftest$ac_exeext conftest.$ac_ext
12570 LIBS=$ac_check_lib_save_LIBS
12571 fi
12572 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12573 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12574 if test $ac_cv_lib_svld_dlopen = yes; then
12575   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12576 else
12577   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12578 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12579 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12580   echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12582   ac_check_lib_save_LIBS=$LIBS
12583 LIBS="-ldld  $LIBS"
12584 cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h.  */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h.  */
12590
12591 /* Override any GCC internal prototype to avoid an error.
12592    Use char because int might match the return type of a GCC
12593    builtin and then its argument prototype would still apply.  */
12594 #ifdef __cplusplus
12595 extern "C"
12596 #endif
12597 char dld_link ();
12598 int
12599 main ()
12600 {
12601 return dld_link ();
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (ac_try="$ac_link"
12608 case "(($ac_try" in
12609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610   *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613   (eval "$ac_link") 2>conftest.er1
12614   ac_status=$?
12615   grep -v '^ *+' conftest.er1 >conftest.err
12616   rm -f conftest.er1
12617   cat conftest.err >&5
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); } && {
12620          test -z "$ac_c_werror_flag" ||
12621          test ! -s conftest.err
12622        } && test -s conftest$ac_exeext &&
12623        $as_test_x conftest$ac_exeext; then
12624   ac_cv_lib_dld_dld_link=yes
12625 else
12626   echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12628
12629         ac_cv_lib_dld_dld_link=no
12630 fi
12631
12632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12633       conftest$ac_exeext conftest.$ac_ext
12634 LIBS=$ac_check_lib_save_LIBS
12635 fi
12636 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12637 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12638 if test $ac_cv_lib_dld_dld_link = yes; then
12639   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12640 fi
12641
12642
12643 fi
12644
12645
12646 fi
12647
12648
12649 fi
12650
12651
12652 fi
12653
12654
12655 fi
12656
12657     ;;
12658   esac
12659
12660   if test "x$lt_cv_dlopen" != xno; then
12661     enable_dlopen=yes
12662   else
12663     enable_dlopen=no
12664   fi
12665
12666   case $lt_cv_dlopen in
12667   dlopen)
12668     save_CPPFLAGS="$CPPFLAGS"
12669     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12670
12671     save_LDFLAGS="$LDFLAGS"
12672     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12673
12674     save_LIBS="$LIBS"
12675     LIBS="$lt_cv_dlopen_libs $LIBS"
12676
12677     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12678 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12679 if test "${lt_cv_dlopen_self+set}" = set; then
12680   echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682           if test "$cross_compiling" = yes; then :
12683   lt_cv_dlopen_self=cross
12684 else
12685   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12686   lt_status=$lt_dlunknown
12687   cat > conftest.$ac_ext <<_LT_EOF
12688 #line 12688 "configure"
12689 #include "confdefs.h"
12690
12691 #if HAVE_DLFCN_H
12692 #include <dlfcn.h>
12693 #endif
12694
12695 #include <stdio.h>
12696
12697 #ifdef RTLD_GLOBAL
12698 #  define LT_DLGLOBAL           RTLD_GLOBAL
12699 #else
12700 #  ifdef DL_GLOBAL
12701 #    define LT_DLGLOBAL         DL_GLOBAL
12702 #  else
12703 #    define LT_DLGLOBAL         0
12704 #  endif
12705 #endif
12706
12707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12708    find out it does not work in some platform. */
12709 #ifndef LT_DLLAZY_OR_NOW
12710 #  ifdef RTLD_LAZY
12711 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12712 #  else
12713 #    ifdef DL_LAZY
12714 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12715 #    else
12716 #      ifdef RTLD_NOW
12717 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12718 #      else
12719 #        ifdef DL_NOW
12720 #          define LT_DLLAZY_OR_NOW      DL_NOW
12721 #        else
12722 #          define LT_DLLAZY_OR_NOW      0
12723 #        endif
12724 #      endif
12725 #    endif
12726 #  endif
12727 #endif
12728
12729 void fnord() { int i=42;}
12730 int main ()
12731 {
12732   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12733   int status = $lt_dlunknown;
12734
12735   if (self)
12736     {
12737       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12738       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12739       /* dlclose (self); */
12740     }
12741   else
12742     puts (dlerror ());
12743
12744   return status;
12745 }
12746 _LT_EOF
12747   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748   (eval $ac_link) 2>&5
12749   ac_status=$?
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12752     (./conftest; exit; ) >&5 2>/dev/null
12753     lt_status=$?
12754     case x$lt_status in
12755       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12756       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12757       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12758     esac
12759   else :
12760     # compilation failed
12761     lt_cv_dlopen_self=no
12762   fi
12763 fi
12764 rm -fr conftest*
12765
12766
12767 fi
12768 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12769 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12770
12771     if test "x$lt_cv_dlopen_self" = xyes; then
12772       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12773       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12774 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12775 if test "${lt_cv_dlopen_self_static+set}" = set; then
12776   echo $ECHO_N "(cached) $ECHO_C" >&6
12777 else
12778           if test "$cross_compiling" = yes; then :
12779   lt_cv_dlopen_self_static=cross
12780 else
12781   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12782   lt_status=$lt_dlunknown
12783   cat > conftest.$ac_ext <<_LT_EOF
12784 #line 12784 "configure"
12785 #include "confdefs.h"
12786
12787 #if HAVE_DLFCN_H
12788 #include <dlfcn.h>
12789 #endif
12790
12791 #include <stdio.h>
12792
12793 #ifdef RTLD_GLOBAL
12794 #  define LT_DLGLOBAL           RTLD_GLOBAL
12795 #else
12796 #  ifdef DL_GLOBAL
12797 #    define LT_DLGLOBAL         DL_GLOBAL
12798 #  else
12799 #    define LT_DLGLOBAL         0
12800 #  endif
12801 #endif
12802
12803 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12804    find out it does not work in some platform. */
12805 #ifndef LT_DLLAZY_OR_NOW
12806 #  ifdef RTLD_LAZY
12807 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12808 #  else
12809 #    ifdef DL_LAZY
12810 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12811 #    else
12812 #      ifdef RTLD_NOW
12813 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12814 #      else
12815 #        ifdef DL_NOW
12816 #          define LT_DLLAZY_OR_NOW      DL_NOW
12817 #        else
12818 #          define LT_DLLAZY_OR_NOW      0
12819 #        endif
12820 #      endif
12821 #    endif
12822 #  endif
12823 #endif
12824
12825 void fnord() { int i=42;}
12826 int main ()
12827 {
12828   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12829   int status = $lt_dlunknown;
12830
12831   if (self)
12832     {
12833       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12834       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12835       /* dlclose (self); */
12836     }
12837   else
12838     puts (dlerror ());
12839
12840   return status;
12841 }
12842 _LT_EOF
12843   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12844   (eval $ac_link) 2>&5
12845   ac_status=$?
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12848     (./conftest; exit; ) >&5 2>/dev/null
12849     lt_status=$?
12850     case x$lt_status in
12851       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12852       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12853       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12854     esac
12855   else :
12856     # compilation failed
12857     lt_cv_dlopen_self_static=no
12858   fi
12859 fi
12860 rm -fr conftest*
12861
12862
12863 fi
12864 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12865 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12866     fi
12867
12868     CPPFLAGS="$save_CPPFLAGS"
12869     LDFLAGS="$save_LDFLAGS"
12870     LIBS="$save_LIBS"
12871     ;;
12872   esac
12873
12874   case $lt_cv_dlopen_self in
12875   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12876   *) enable_dlopen_self=unknown ;;
12877   esac
12878
12879   case $lt_cv_dlopen_self_static in
12880   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12881   *) enable_dlopen_self_static=unknown ;;
12882   esac
12883 fi
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901 striplib=
12902 old_striplib=
12903 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12904 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12905 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12906   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12907   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12908   { echo "$as_me:$LINENO: result: yes" >&5
12909 echo "${ECHO_T}yes" >&6; }
12910 else
12911 # FIXME - insert some real tests, host_os isn't really good enough
12912   case $host_os in
12913   darwin*)
12914     if test -n "$STRIP" ; then
12915       striplib="$STRIP -x"
12916       old_striplib="$STRIP -S"
12917       { echo "$as_me:$LINENO: result: yes" >&5
12918 echo "${ECHO_T}yes" >&6; }
12919     else
12920       { echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6; }
12922     fi
12923     ;;
12924   *)
12925     { echo "$as_me:$LINENO: result: no" >&5
12926 echo "${ECHO_T}no" >&6; }
12927     ;;
12928   esac
12929 fi
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942   # Report which library types will actually be built
12943   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12944 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12945   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12946 echo "${ECHO_T}$can_build_shared" >&6; }
12947
12948   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12949 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12950   test "$can_build_shared" = "no" && enable_shared=no
12951
12952   # On AIX, shared libraries and static libraries use the same namespace, and
12953   # are all built from PIC.
12954   case $host_os in
12955   aix3*)
12956     test "$enable_shared" = yes && enable_static=no
12957     if test -n "$RANLIB"; then
12958       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12959       postinstall_cmds='$RANLIB $lib'
12960     fi
12961     ;;
12962
12963   aix[4-9]*)
12964     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12965       test "$enable_shared" = yes && enable_static=no
12966     fi
12967     ;;
12968   esac
12969   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12970 echo "${ECHO_T}$enable_shared" >&6; }
12971
12972   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12973 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12974   # Make sure either enable_shared or enable_static is yes.
12975   test "$enable_shared" = yes || enable_static=yes
12976   { echo "$as_me:$LINENO: result: $enable_static" >&5
12977 echo "${ECHO_T}$enable_static" >&6; }
12978
12979
12980
12981
12982 fi
12983 ac_ext=c
12984 ac_cpp='$CPP $CPPFLAGS'
12985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12988
12989 CC="$lt_save_CC"
12990
12991
12992 ac_ext=cpp
12993 ac_cpp='$CXXCPP $CPPFLAGS'
12994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12997
12998 archive_cmds_need_lc_CXX=no
12999 allow_undefined_flag_CXX=
13000 always_export_symbols_CXX=no
13001 archive_expsym_cmds_CXX=
13002 compiler_needs_object_CXX=no
13003 export_dynamic_flag_spec_CXX=
13004 hardcode_direct_CXX=no
13005 hardcode_direct_absolute_CXX=no
13006 hardcode_libdir_flag_spec_CXX=
13007 hardcode_libdir_flag_spec_ld_CXX=
13008 hardcode_libdir_separator_CXX=
13009 hardcode_minus_L_CXX=no
13010 hardcode_shlibpath_var_CXX=unsupported
13011 hardcode_automatic_CXX=no
13012 inherit_rpath_CXX=no
13013 module_cmds_CXX=
13014 module_expsym_cmds_CXX=
13015 link_all_deplibs_CXX=unknown
13016 old_archive_cmds_CXX=$old_archive_cmds
13017 no_undefined_flag_CXX=
13018 whole_archive_flag_spec_CXX=
13019 enable_shared_with_static_runtimes_CXX=no
13020
13021 # Source file extension for C++ test sources.
13022 ac_ext=cpp
13023
13024 # Object file extension for compiled C++ test sources.
13025 objext=o
13026 objext_CXX=$objext
13027
13028 # No sense in running all these tests if we already determined that
13029 # the CXX compiler isn't working.  Some variables (like enable_shared)
13030 # are currently assumed to apply to all compilers on this platform,
13031 # and will be corrupted by setting them based on a non-working compiler.
13032 if test "$_lt_caught_CXX_error" != yes; then
13033   # Code to be used in simple compile tests
13034   lt_simple_compile_test_code="int some_variable = 0;"
13035
13036   # Code to be used in simple link tests
13037   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13038
13039   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13040
13041
13042
13043
13044
13045
13046 # If no C compiler was specified, use CC.
13047 LTCC=${LTCC-"$CC"}
13048
13049 # If no C compiler flags were specified, use CFLAGS.
13050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13051
13052 # Allow CC to be a program name with arguments.
13053 compiler=$CC
13054
13055
13056   # save warnings/boilerplate of simple test code
13057   ac_outfile=conftest.$ac_objext
13058 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13059 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13060 _lt_compiler_boilerplate=`cat conftest.err`
13061 $RM conftest*
13062
13063   ac_outfile=conftest.$ac_objext
13064 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13065 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13066 _lt_linker_boilerplate=`cat conftest.err`
13067 $RM -r conftest*
13068
13069
13070   # Allow CC to be a program name with arguments.
13071   lt_save_CC=$CC
13072   lt_save_LD=$LD
13073   lt_save_GCC=$GCC
13074   GCC=$GXX
13075   lt_save_with_gnu_ld=$with_gnu_ld
13076   lt_save_path_LD=$lt_cv_path_LD
13077   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13078     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13079   else
13080     $as_unset lt_cv_prog_gnu_ld
13081   fi
13082   if test -n "${lt_cv_path_LDCXX+set}"; then
13083     lt_cv_path_LD=$lt_cv_path_LDCXX
13084   else
13085     $as_unset lt_cv_path_LD
13086   fi
13087   test -z "${LDCXX+set}" || LD=$LDCXX
13088   CC=${CXX-"c++"}
13089   compiler=$CC
13090   compiler_CXX=$CC
13091   for cc_temp in $compiler""; do
13092   case $cc_temp in
13093     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13094     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13095     \-*) ;;
13096     *) break;;
13097   esac
13098 done
13099 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13100
13101
13102   if test -n "$compiler"; then
13103     # We don't want -fno-exception when compiling C++ code, so set the
13104     # no_builtin_flag separately
13105     if test "$GXX" = yes; then
13106       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13107     else
13108       lt_prog_compiler_no_builtin_flag_CXX=
13109     fi
13110
13111     if test "$GXX" = yes; then
13112       # Set up default GNU C++ configuration
13113
13114
13115
13116 # Check whether --with-gnu-ld was given.
13117 if test "${with_gnu_ld+set}" = set; then
13118   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13119 else
13120   with_gnu_ld=no
13121 fi
13122
13123 ac_prog=ld
13124 if test "$GCC" = yes; then
13125   # Check if gcc -print-prog-name=ld gives a path.
13126   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13127 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13128   case $host in
13129   *-*-mingw*)
13130     # gcc leaves a trailing carriage return which upsets mingw
13131     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13132   *)
13133     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13134   esac
13135   case $ac_prog in
13136     # Accept absolute paths.
13137     [\\/]* | ?:[\\/]*)
13138       re_direlt='/[^/][^/]*/\.\./'
13139       # Canonicalize the pathname of ld
13140       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13141       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13142         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13143       done
13144       test -z "$LD" && LD="$ac_prog"
13145       ;;
13146   "")
13147     # If it fails, then pretend we aren't using GCC.
13148     ac_prog=ld
13149     ;;
13150   *)
13151     # If it is relative, then search for the first ld in PATH.
13152     with_gnu_ld=unknown
13153     ;;
13154   esac
13155 elif test "$with_gnu_ld" = yes; then
13156   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13157 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13158 else
13159   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13160 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13161 fi
13162 if test "${lt_cv_path_LD+set}" = set; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165   if test -z "$LD"; then
13166   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13167   for ac_dir in $PATH; do
13168     IFS="$lt_save_ifs"
13169     test -z "$ac_dir" && ac_dir=.
13170     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13171       lt_cv_path_LD="$ac_dir/$ac_prog"
13172       # Check to see if the program is GNU ld.  I'd rather use --version,
13173       # but apparently some variants of GNU ld only accept -v.
13174       # Break only if it was the GNU/non-GNU ld that we prefer.
13175       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13176       *GNU* | *'with BFD'*)
13177         test "$with_gnu_ld" != no && break
13178         ;;
13179       *)
13180         test "$with_gnu_ld" != yes && break
13181         ;;
13182       esac
13183     fi
13184   done
13185   IFS="$lt_save_ifs"
13186 else
13187   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13188 fi
13189 fi
13190
13191 LD="$lt_cv_path_LD"
13192 if test -n "$LD"; then
13193   { echo "$as_me:$LINENO: result: $LD" >&5
13194 echo "${ECHO_T}$LD" >&6; }
13195 else
13196   { echo "$as_me:$LINENO: result: no" >&5
13197 echo "${ECHO_T}no" >&6; }
13198 fi
13199 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13200 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13201    { (exit 1); exit 1; }; }
13202 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13203 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13204 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13205   echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13208 case `$LD -v 2>&1 </dev/null` in
13209 *GNU* | *'with BFD'*)
13210   lt_cv_prog_gnu_ld=yes
13211   ;;
13212 *)
13213   lt_cv_prog_gnu_ld=no
13214   ;;
13215 esac
13216 fi
13217 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13218 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13219 with_gnu_ld=$lt_cv_prog_gnu_ld
13220
13221
13222
13223
13224
13225
13226
13227       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13228       # archiving commands below assume that GNU ld is being used.
13229       if test "$with_gnu_ld" = yes; then
13230         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13231         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'
13232
13233         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13234         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13235
13236         # If archive_cmds runs LD, not CC, wlarc should be empty
13237         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13238         #     investigate it a little bit more. (MM)
13239         wlarc='${wl}'
13240
13241         # ancient GNU ld didn't support --whole-archive et. al.
13242         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13243           $GREP 'no-whole-archive' > /dev/null; then
13244           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13245         else
13246           whole_archive_flag_spec_CXX=
13247         fi
13248       else
13249         with_gnu_ld=no
13250         wlarc=
13251
13252         # A generic and very simple default shared library creation
13253         # command for GNU C++ for the case where it uses the native
13254         # linker, instead of GNU ld.  If possible, this setting should
13255         # overridden to take advantage of the native linker features on
13256         # the platform it is being used on.
13257         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13258       fi
13259
13260       # Commands to make compiler produce verbose output that lists
13261       # what "hidden" libraries, object files and flags are used when
13262       # linking a shared library.
13263       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13264
13265     else
13266       GXX=no
13267       with_gnu_ld=no
13268       wlarc=
13269     fi
13270
13271     # PORTME: fill in a description of your system's C++ link characteristics
13272     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13273 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13274     ld_shlibs_CXX=yes
13275     case $host_os in
13276       aix3*)
13277         # FIXME: insert proper C++ library support
13278         ld_shlibs_CXX=no
13279         ;;
13280       aix[4-9]*)
13281         if test "$host_cpu" = ia64; then
13282           # On IA64, the linker does run time linking by default, so we don't
13283           # have to do anything special.
13284           aix_use_runtimelinking=no
13285           exp_sym_flag='-Bexport'
13286           no_entry_flag=""
13287         else
13288           aix_use_runtimelinking=no
13289
13290           # Test if we are trying to use run time linking or normal
13291           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13292           # need to do runtime linking.
13293           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13294             for ld_flag in $LDFLAGS; do
13295               case $ld_flag in
13296               *-brtl*)
13297                 aix_use_runtimelinking=yes
13298                 break
13299                 ;;
13300               esac
13301             done
13302             ;;
13303           esac
13304
13305           exp_sym_flag='-bexport'
13306           no_entry_flag='-bnoentry'
13307         fi
13308
13309         # When large executables or shared objects are built, AIX ld can
13310         # have problems creating the table of contents.  If linking a library
13311         # or program results in "error TOC overflow" add -mminimal-toc to
13312         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13313         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13314
13315         archive_cmds_CXX=''
13316         hardcode_direct_CXX=yes
13317         hardcode_direct_absolute_CXX=yes
13318         hardcode_libdir_separator_CXX=':'
13319         link_all_deplibs_CXX=yes
13320         file_list_spec_CXX='${wl}-f,'
13321
13322         if test "$GXX" = yes; then
13323           case $host_os in aix4.[012]|aix4.[012].*)
13324           # We only want to do this on AIX 4.2 and lower, the check
13325           # below for broken collect2 doesn't work under 4.3+
13326           collect2name=`${CC} -print-prog-name=collect2`
13327           if test -f "$collect2name" &&
13328              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13329           then
13330             # We have reworked collect2
13331             :
13332           else
13333             # We have old collect2
13334             hardcode_direct_CXX=unsupported
13335             # It fails to find uninstalled libraries when the uninstalled
13336             # path is not listed in the libpath.  Setting hardcode_minus_L
13337             # to unsupported forces relinking
13338             hardcode_minus_L_CXX=yes
13339             hardcode_libdir_flag_spec_CXX='-L$libdir'
13340             hardcode_libdir_separator_CXX=
13341           fi
13342           esac
13343           shared_flag='-shared'
13344           if test "$aix_use_runtimelinking" = yes; then
13345             shared_flag="$shared_flag "'${wl}-G'
13346           fi
13347         else
13348           # not using gcc
13349           if test "$host_cpu" = ia64; then
13350           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13351           # chokes on -Wl,-G. The following line is correct:
13352           shared_flag='-G'
13353           else
13354             if test "$aix_use_runtimelinking" = yes; then
13355               shared_flag='${wl}-G'
13356             else
13357               shared_flag='${wl}-bM:SRE'
13358             fi
13359           fi
13360         fi
13361
13362         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13363         # It seems that -bexpall does not export symbols beginning with
13364         # underscore (_), so it is better to generate a list of symbols to
13365         # export.
13366         always_export_symbols_CXX=yes
13367         if test "$aix_use_runtimelinking" = yes; then
13368           # Warning - without using the other runtime loading flags (-brtl),
13369           # -berok will link without error, but may produce a broken library.
13370           allow_undefined_flag_CXX='-berok'
13371           # Determine the default libpath from the value encoded in an empty
13372           # executable.
13373           cat >conftest.$ac_ext <<_ACEOF
13374 /* confdefs.h.  */
13375 _ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h.  */
13379
13380 int
13381 main ()
13382 {
13383
13384   ;
13385   return 0;
13386 }
13387 _ACEOF
13388 rm -f conftest.$ac_objext conftest$ac_exeext
13389 if { (ac_try="$ac_link"
13390 case "(($ac_try" in
13391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392   *) ac_try_echo=$ac_try;;
13393 esac
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395   (eval "$ac_link") 2>conftest.er1
13396   ac_status=$?
13397   grep -v '^ *+' conftest.er1 >conftest.err
13398   rm -f conftest.er1
13399   cat conftest.err >&5
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); } && {
13402          test -z "$ac_cxx_werror_flag" ||
13403          test ! -s conftest.err
13404        } && test -s conftest$ac_exeext &&
13405        $as_test_x conftest$ac_exeext; then
13406
13407 lt_aix_libpath_sed='
13408     /Import File Strings/,/^$/ {
13409         /^0/ {
13410             s/^0  *\(.*\)$/\1/
13411             p
13412         }
13413     }'
13414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13415 # Check for a 64-bit object if we didn't find anything.
13416 if test -z "$aix_libpath"; then
13417   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13418 fi
13419 else
13420   echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13422
13423
13424 fi
13425
13426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13427       conftest$ac_exeext conftest.$ac_ext
13428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13429
13430           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13431
13432           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"
13433         else
13434           if test "$host_cpu" = ia64; then
13435             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13436             allow_undefined_flag_CXX="-z nodefs"
13437             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"
13438           else
13439             # Determine the default libpath from the value encoded in an
13440             # empty executable.
13441             cat >conftest.$ac_ext <<_ACEOF
13442 /* confdefs.h.  */
13443 _ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h.  */
13447
13448 int
13449 main ()
13450 {
13451
13452   ;
13453   return 0;
13454 }
13455 _ACEOF
13456 rm -f conftest.$ac_objext conftest$ac_exeext
13457 if { (ac_try="$ac_link"
13458 case "(($ac_try" in
13459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460   *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463   (eval "$ac_link") 2>conftest.er1
13464   ac_status=$?
13465   grep -v '^ *+' conftest.er1 >conftest.err
13466   rm -f conftest.er1
13467   cat conftest.err >&5
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); } && {
13470          test -z "$ac_cxx_werror_flag" ||
13471          test ! -s conftest.err
13472        } && test -s conftest$ac_exeext &&
13473        $as_test_x conftest$ac_exeext; then
13474
13475 lt_aix_libpath_sed='
13476     /Import File Strings/,/^$/ {
13477         /^0/ {
13478             s/^0  *\(.*\)$/\1/
13479             p
13480         }
13481     }'
13482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13483 # Check for a 64-bit object if we didn't find anything.
13484 if test -z "$aix_libpath"; then
13485   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13486 fi
13487 else
13488   echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13490
13491
13492 fi
13493
13494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13495       conftest$ac_exeext conftest.$ac_ext
13496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13497
13498             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13499             # Warning - without using the other run time loading flags,
13500             # -berok will link without error, but may produce a broken library.
13501             no_undefined_flag_CXX=' ${wl}-bernotok'
13502             allow_undefined_flag_CXX=' ${wl}-berok'
13503             # Exported symbols can be pulled into shared objects from archives
13504             whole_archive_flag_spec_CXX='$convenience'
13505             archive_cmds_need_lc_CXX=yes
13506             # This is similar to how AIX traditionally builds its shared
13507             # libraries.
13508             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'
13509           fi
13510         fi
13511         ;;
13512
13513       beos*)
13514         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13515           allow_undefined_flag_CXX=unsupported
13516           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13517           # support --undefined.  This deserves some investigation.  FIXME
13518           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13519         else
13520           ld_shlibs_CXX=no
13521         fi
13522         ;;
13523
13524       chorus*)
13525         case $cc_basename in
13526           *)
13527           # FIXME: insert proper C++ library support
13528           ld_shlibs_CXX=no
13529           ;;
13530         esac
13531         ;;
13532
13533       cygwin* | mingw* | pw32* | cegcc*)
13534         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13535         # as there is no search path for DLLs.
13536         hardcode_libdir_flag_spec_CXX='-L$libdir'
13537         allow_undefined_flag_CXX=unsupported
13538         always_export_symbols_CXX=no
13539         enable_shared_with_static_runtimes_CXX=yes
13540
13541         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13542           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'
13543           # If the export-symbols file already is a .def file (1st line
13544           # is EXPORTS), use it as is; otherwise, prepend...
13545           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13546             cp $export_symbols $output_objdir/$soname.def;
13547           else
13548             echo EXPORTS > $output_objdir/$soname.def;
13549             cat $export_symbols >> $output_objdir/$soname.def;
13550           fi~
13551           $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'
13552         else
13553           ld_shlibs_CXX=no
13554         fi
13555         ;;
13556       darwin* | rhapsody*)
13557
13558
13559   archive_cmds_need_lc_CXX=no
13560   hardcode_direct_CXX=no
13561   hardcode_automatic_CXX=yes
13562   hardcode_shlibpath_var_CXX=unsupported
13563   whole_archive_flag_spec_CXX=''
13564   link_all_deplibs_CXX=yes
13565   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13566   case $cc_basename in
13567      ifort*) _lt_dar_can_shared=yes ;;
13568      *) _lt_dar_can_shared=$GCC ;;
13569   esac
13570   if test "$_lt_dar_can_shared" = "yes"; then
13571     output_verbose_link_cmd=echo
13572     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}"
13573     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13574     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}"
13575     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}"
13576        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13577       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}"
13578       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}"
13579     fi
13580
13581   else
13582   ld_shlibs_CXX=no
13583   fi
13584
13585         ;;
13586
13587       dgux*)
13588         case $cc_basename in
13589           ec++*)
13590             # FIXME: insert proper C++ library support
13591             ld_shlibs_CXX=no
13592             ;;
13593           ghcx*)
13594             # Green Hills C++ Compiler
13595             # FIXME: insert proper C++ library support
13596             ld_shlibs_CXX=no
13597             ;;
13598           *)
13599             # FIXME: insert proper C++ library support
13600             ld_shlibs_CXX=no
13601             ;;
13602         esac
13603         ;;
13604
13605       freebsd[12]*)
13606         # C++ shared libraries reported to be fairly broken before
13607         # switch to ELF
13608         ld_shlibs_CXX=no
13609         ;;
13610
13611       freebsd-elf*)
13612         archive_cmds_need_lc_CXX=no
13613         ;;
13614
13615       freebsd* | dragonfly*)
13616         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13617         # conventions
13618         ld_shlibs_CXX=yes
13619         ;;
13620
13621       gnu*)
13622         ;;
13623
13624       hpux9*)
13625         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13626         hardcode_libdir_separator_CXX=:
13627         export_dynamic_flag_spec_CXX='${wl}-E'
13628         hardcode_direct_CXX=yes
13629         hardcode_minus_L_CXX=yes # Not in the search PATH,
13630                                              # but as the default
13631                                              # location of the library.
13632
13633         case $cc_basename in
13634           CC*)
13635             # FIXME: insert proper C++ library support
13636             ld_shlibs_CXX=no
13637             ;;
13638           aCC*)
13639             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'
13640             # Commands to make compiler produce verbose output that lists
13641             # what "hidden" libraries, object files and flags are used when
13642             # linking a shared library.
13643             #
13644             # There doesn't appear to be a way to prevent this compiler from
13645             # explicitly linking system object files so we need to strip them
13646             # from the output so that they don't get included in the library
13647             # dependencies.
13648             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'
13649             ;;
13650           *)
13651             if test "$GXX" = yes; then
13652               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'
13653             else
13654               # FIXME: insert proper C++ library support
13655               ld_shlibs_CXX=no
13656             fi
13657             ;;
13658         esac
13659         ;;
13660
13661       hpux10*|hpux11*)
13662         if test $with_gnu_ld = no; then
13663           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13664           hardcode_libdir_separator_CXX=:
13665
13666           case $host_cpu in
13667             hppa*64*|ia64*)
13668               ;;
13669             *)
13670               export_dynamic_flag_spec_CXX='${wl}-E'
13671               ;;
13672           esac
13673         fi
13674         case $host_cpu in
13675           hppa*64*|ia64*)
13676             hardcode_direct_CXX=no
13677             hardcode_shlibpath_var_CXX=no
13678             ;;
13679           *)
13680             hardcode_direct_CXX=yes
13681             hardcode_direct_absolute_CXX=yes
13682             hardcode_minus_L_CXX=yes # Not in the search PATH,
13683                                                  # but as the default
13684                                                  # location of the library.
13685             ;;
13686         esac
13687
13688         case $cc_basename in
13689           CC*)
13690             # FIXME: insert proper C++ library support
13691             ld_shlibs_CXX=no
13692             ;;
13693           aCC*)
13694             case $host_cpu in
13695               hppa*64*)
13696                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13697                 ;;
13698               ia64*)
13699                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13700                 ;;
13701               *)
13702                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13703                 ;;
13704             esac
13705             # Commands to make compiler produce verbose output that lists
13706             # what "hidden" libraries, object files and flags are used when
13707             # linking a shared library.
13708             #
13709             # There doesn't appear to be a way to prevent this compiler from
13710             # explicitly linking system object files so we need to strip them
13711             # from the output so that they don't get included in the library
13712             # dependencies.
13713             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'
13714             ;;
13715           *)
13716             if test "$GXX" = yes; then
13717               if test $with_gnu_ld = no; then
13718                 case $host_cpu in
13719                   hppa*64*)
13720                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13721                     ;;
13722                   ia64*)
13723                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13724                     ;;
13725                   *)
13726                     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'
13727                     ;;
13728                 esac
13729               fi
13730             else
13731               # FIXME: insert proper C++ library support
13732               ld_shlibs_CXX=no
13733             fi
13734             ;;
13735         esac
13736         ;;
13737
13738       interix[3-9]*)
13739         hardcode_direct_CXX=no
13740         hardcode_shlibpath_var_CXX=no
13741         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13742         export_dynamic_flag_spec_CXX='${wl}-E'
13743         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13744         # Instead, shared libraries are loaded at an image base (0x10000000 by
13745         # default) and relocated if they conflict, which is a slow very memory
13746         # consuming and fragmenting process.  To avoid this, we pick a random,
13747         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13748         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13749         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'
13750         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'
13751         ;;
13752       irix5* | irix6*)
13753         case $cc_basename in
13754           CC*)
13755             # SGI C++
13756             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'
13757
13758             # Archives containing C++ object files must be created using
13759             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13760             # necessary to make sure instantiated templates are included
13761             # in the archive.
13762             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13763             ;;
13764           *)
13765             if test "$GXX" = yes; then
13766               if test "$with_gnu_ld" = no; then
13767                 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'
13768               else
13769                 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'
13770               fi
13771             fi
13772             link_all_deplibs_CXX=yes
13773             ;;
13774         esac
13775         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13776         hardcode_libdir_separator_CXX=:
13777         inherit_rpath_CXX=yes
13778         ;;
13779
13780       linux* | k*bsd*-gnu)
13781         case $cc_basename in
13782           KCC*)
13783             # Kuck and Associates, Inc. (KAI) C++ Compiler
13784
13785             # KCC will only create a shared library if the output file
13786             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13787             # to its proper name (with version) after linking.
13788             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'
13789             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'
13790             # Commands to make compiler produce verbose output that lists
13791             # what "hidden" libraries, object files and flags are used when
13792             # linking a shared library.
13793             #
13794             # There doesn't appear to be a way to prevent this compiler from
13795             # explicitly linking system object files so we need to strip them
13796             # from the output so that they don't get included in the library
13797             # dependencies.
13798             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'
13799
13800             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13801             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13802
13803             # Archives containing C++ object files must be created using
13804             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13805             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13806             ;;
13807           icpc* | ecpc* )
13808             # Intel C++
13809             with_gnu_ld=yes
13810             # version 8.0 and above of icpc choke on multiply defined symbols
13811             # if we add $predep_objects and $postdep_objects, however 7.1 and
13812             # earlier do not add the objects themselves.
13813             case `$CC -V 2>&1` in
13814               *"Version 7."*)
13815                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816                 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'
13817                 ;;
13818               *)  # Version 8.0 or newer
13819                 tmp_idyn=
13820                 case $host_cpu in
13821                   ia64*) tmp_idyn=' -i_dynamic';;
13822                 esac
13823                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13824                 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'
13825                 ;;
13826             esac
13827             archive_cmds_need_lc_CXX=no
13828             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13829             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13830             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13831             ;;
13832           pgCC* | pgcpp*)
13833             # Portland Group C++ compiler
13834             case `$CC -V` in
13835             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13836               prelink_cmds_CXX='tpldir=Template.dir~
13837                 rm -rf $tpldir~
13838                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13839                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13840               old_archive_cmds_CXX='tpldir=Template.dir~
13841                 rm -rf $tpldir~
13842                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13843                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13844                 $RANLIB $oldlib'
13845               archive_cmds_CXX='tpldir=Template.dir~
13846                 rm -rf $tpldir~
13847                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13848                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13849               archive_expsym_cmds_CXX='tpldir=Template.dir~
13850                 rm -rf $tpldir~
13851                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13852                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13853               ;;
13854             *) # Version 6 will use weak symbols
13855               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13856               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'
13857               ;;
13858             esac
13859
13860             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13861             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13862             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'
13863             ;;
13864           cxx*)
13865             # Compaq C++
13866             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13867             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'
13868
13869             runpath_var=LD_RUN_PATH
13870             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13871             hardcode_libdir_separator_CXX=:
13872
13873             # Commands to make compiler produce verbose output that lists
13874             # what "hidden" libraries, object files and flags are used when
13875             # linking a shared library.
13876             #
13877             # There doesn't appear to be a way to prevent this compiler from
13878             # explicitly linking system object files so we need to strip them
13879             # from the output so that they don't get included in the library
13880             # dependencies.
13881             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'
13882             ;;
13883           xl*)
13884             # IBM XL 8.0 on PPC, with GNU ld
13885             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13886             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13887             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888             if test "x$supports_anon_versioning" = xyes; then
13889               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13890                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13891                 echo "local: *; };" >> $output_objdir/$libname.ver~
13892                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13893             fi
13894             ;;
13895           *)
13896             case `$CC -V 2>&1 | sed 5q` in
13897             *Sun\ C*)
13898               # Sun C++ 5.9
13899               no_undefined_flag_CXX=' -zdefs'
13900               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13901               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'
13902               hardcode_libdir_flag_spec_CXX='-R$libdir'
13903               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'
13904               compiler_needs_object_CXX=yes
13905
13906               # Not sure whether something based on
13907               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13908               # would be better.
13909               output_verbose_link_cmd='echo'
13910
13911               # Archives containing C++ object files must be created using
13912               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13913               # necessary to make sure instantiated templates are included
13914               # in the archive.
13915               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13916               ;;
13917             esac
13918             ;;
13919         esac
13920         ;;
13921
13922       lynxos*)
13923         # FIXME: insert proper C++ library support
13924         ld_shlibs_CXX=no
13925         ;;
13926
13927       m88k*)
13928         # FIXME: insert proper C++ library support
13929         ld_shlibs_CXX=no
13930         ;;
13931
13932       mvs*)
13933         case $cc_basename in
13934           cxx*)
13935             # FIXME: insert proper C++ library support
13936             ld_shlibs_CXX=no
13937             ;;
13938           *)
13939             # FIXME: insert proper C++ library support
13940             ld_shlibs_CXX=no
13941             ;;
13942         esac
13943         ;;
13944
13945       netbsd*)
13946         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13947           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13948           wlarc=
13949           hardcode_libdir_flag_spec_CXX='-R$libdir'
13950           hardcode_direct_CXX=yes
13951           hardcode_shlibpath_var_CXX=no
13952         fi
13953         # Workaround some broken pre-1.5 toolchains
13954         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13955         ;;
13956
13957       *nto* | *qnx*)
13958         ld_shlibs_CXX=yes
13959         ;;
13960
13961       openbsd2*)
13962         # C++ shared libraries are fairly broken
13963         ld_shlibs_CXX=no
13964         ;;
13965
13966       openbsd*)
13967         if test -f /usr/libexec/ld.so; then
13968           hardcode_direct_CXX=yes
13969           hardcode_shlibpath_var_CXX=no
13970           hardcode_direct_absolute_CXX=yes
13971           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13972           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13973           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13974             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13975             export_dynamic_flag_spec_CXX='${wl}-E'
13976             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13977           fi
13978           output_verbose_link_cmd=echo
13979         else
13980           ld_shlibs_CXX=no
13981         fi
13982         ;;
13983
13984       osf3* | osf4* | osf5*)
13985         case $cc_basename in
13986           KCC*)
13987             # Kuck and Associates, Inc. (KAI) C++ Compiler
13988
13989             # KCC will only create a shared library if the output file
13990             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13991             # to its proper name (with version) after linking.
13992             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'
13993
13994             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13995             hardcode_libdir_separator_CXX=:
13996
13997             # Archives containing C++ object files must be created using
13998             # the KAI C++ compiler.
13999             case $host in
14000               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14001               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14002             esac
14003             ;;
14004           RCC*)
14005             # Rational C++ 2.4.1
14006             # FIXME: insert proper C++ library support
14007             ld_shlibs_CXX=no
14008             ;;
14009           cxx*)
14010             case $host in
14011               osf3*)
14012                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14013                 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'
14014                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14015                 ;;
14016               *)
14017                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14018                 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'
14019                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14020                   echo "-hidden">> $lib.exp~
14021                   $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~
14022                   $RM $lib.exp'
14023                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14024                 ;;
14025             esac
14026
14027             hardcode_libdir_separator_CXX=:
14028
14029             # Commands to make compiler produce verbose output that lists
14030             # what "hidden" libraries, object files and flags are used when
14031             # linking a shared library.
14032             #
14033             # There doesn't appear to be a way to prevent this compiler from
14034             # explicitly linking system object files so we need to strip them
14035             # from the output so that they don't get included in the library
14036             # dependencies.
14037             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'
14038             ;;
14039           *)
14040             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14041               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14042               case $host in
14043                 osf3*)
14044                   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'
14045                   ;;
14046                 *)
14047                   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'
14048                   ;;
14049               esac
14050
14051               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14052               hardcode_libdir_separator_CXX=:
14053
14054               # Commands to make compiler produce verbose output that lists
14055               # what "hidden" libraries, object files and flags are used when
14056               # linking a shared library.
14057               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14058
14059             else
14060               # FIXME: insert proper C++ library support
14061               ld_shlibs_CXX=no
14062             fi
14063             ;;
14064         esac
14065         ;;
14066
14067       psos*)
14068         # FIXME: insert proper C++ library support
14069         ld_shlibs_CXX=no
14070         ;;
14071
14072       sunos4*)
14073         case $cc_basename in
14074           CC*)
14075             # Sun C++ 4.x
14076             # FIXME: insert proper C++ library support
14077             ld_shlibs_CXX=no
14078             ;;
14079           lcc*)
14080             # Lucid
14081             # FIXME: insert proper C++ library support
14082             ld_shlibs_CXX=no
14083             ;;
14084           *)
14085             # FIXME: insert proper C++ library support
14086             ld_shlibs_CXX=no
14087             ;;
14088         esac
14089         ;;
14090
14091       solaris*)
14092         case $cc_basename in
14093           CC*)
14094             # Sun C++ 4.2, 5.x and Centerline C++
14095             archive_cmds_need_lc_CXX=yes
14096             no_undefined_flag_CXX=' -zdefs'
14097             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14098             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14099               $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'
14100
14101             hardcode_libdir_flag_spec_CXX='-R$libdir'
14102             hardcode_shlibpath_var_CXX=no
14103             case $host_os in
14104               solaris2.[0-5] | solaris2.[0-5].*) ;;
14105               *)
14106                 # The compiler driver will combine and reorder linker options,
14107                 # but understands `-z linker_flag'.
14108                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14109                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14110                 ;;
14111             esac
14112             link_all_deplibs_CXX=yes
14113
14114             output_verbose_link_cmd='echo'
14115
14116             # Archives containing C++ object files must be created using
14117             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14118             # necessary to make sure instantiated templates are included
14119             # in the archive.
14120             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14121             ;;
14122           gcx*)
14123             # Green Hills C++ Compiler
14124             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14125
14126             # The C++ compiler must be used to create the archive.
14127             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14128             ;;
14129           *)
14130             # GNU C++ compiler with Solaris linker
14131             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14132               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14133               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14134                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14135                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14136                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14137
14138                 # Commands to make compiler produce verbose output that lists
14139                 # what "hidden" libraries, object files and flags are used when
14140                 # linking a shared library.
14141                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14142               else
14143                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14144                 # platform.
14145                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14146                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14147                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14148
14149                 # Commands to make compiler produce verbose output that lists
14150                 # what "hidden" libraries, object files and flags are used when
14151                 # linking a shared library.
14152                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14153               fi
14154
14155               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14156               case $host_os in
14157                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14158                 *)
14159                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14160                   ;;
14161               esac
14162             fi
14163             ;;
14164         esac
14165         ;;
14166
14167     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14168       no_undefined_flag_CXX='${wl}-z,text'
14169       archive_cmds_need_lc_CXX=no
14170       hardcode_shlibpath_var_CXX=no
14171       runpath_var='LD_RUN_PATH'
14172
14173       case $cc_basename in
14174         CC*)
14175           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14176           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14177           ;;
14178         *)
14179           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14181           ;;
14182       esac
14183       ;;
14184
14185       sysv5* | sco3.2v5* | sco5v6*)
14186         # Note: We can NOT use -z defs as we might desire, because we do not
14187         # link with -lc, and that would cause any symbols used from libc to
14188         # always be unresolved, which means just about no library would
14189         # ever link correctly.  If we're not using GNU ld we use -z text
14190         # though, which does catch some bad symbols but isn't as heavy-handed
14191         # as -z defs.
14192         no_undefined_flag_CXX='${wl}-z,text'
14193         allow_undefined_flag_CXX='${wl}-z,nodefs'
14194         archive_cmds_need_lc_CXX=no
14195         hardcode_shlibpath_var_CXX=no
14196         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14197         hardcode_libdir_separator_CXX=':'
14198         link_all_deplibs_CXX=yes
14199         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14200         runpath_var='LD_RUN_PATH'
14201
14202         case $cc_basename in
14203           CC*)
14204             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14205             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14206             ;;
14207           *)
14208             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14210             ;;
14211         esac
14212       ;;
14213
14214       tandem*)
14215         case $cc_basename in
14216           NCC*)
14217             # NonStop-UX NCC 3.20
14218             # FIXME: insert proper C++ library support
14219             ld_shlibs_CXX=no
14220             ;;
14221           *)
14222             # FIXME: insert proper C++ library support
14223             ld_shlibs_CXX=no
14224             ;;
14225         esac
14226         ;;
14227
14228       vxworks*)
14229         # FIXME: insert proper C++ library support
14230         ld_shlibs_CXX=no
14231         ;;
14232
14233       *)
14234         # FIXME: insert proper C++ library support
14235         ld_shlibs_CXX=no
14236         ;;
14237     esac
14238
14239     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14240 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14241     test "$ld_shlibs_CXX" = no && can_build_shared=no
14242
14243     GCC_CXX="$GXX"
14244     LD_CXX="$LD"
14245
14246     ## CAVEAT EMPTOR:
14247     ## There is no encapsulation within the following macros, do not change
14248     ## the running order or otherwise move them around unless you know exactly
14249     ## what you are doing...
14250     # Dependencies to place before and after the object being linked:
14251 predep_objects_CXX=
14252 postdep_objects_CXX=
14253 predeps_CXX=
14254 postdeps_CXX=
14255 compiler_lib_search_path_CXX=
14256
14257 cat > conftest.$ac_ext <<_LT_EOF
14258 class Foo
14259 {
14260 public:
14261   Foo (void) { a = 0; }
14262 private:
14263   int a;
14264 };
14265 _LT_EOF
14266
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268   (eval $ac_compile) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); }; then
14272   # Parse the compiler output and extract the necessary
14273   # objects, libraries and library flags.
14274
14275   # Sentinel used to keep track of whether or not we are before
14276   # the conftest object file.
14277   pre_test_object_deps_done=no
14278
14279   for p in `eval "$output_verbose_link_cmd"`; do
14280     case $p in
14281
14282     -L* | -R* | -l*)
14283        # Some compilers place space between "-{L,R}" and the path.
14284        # Remove the space.
14285        if test $p = "-L" ||
14286           test $p = "-R"; then
14287          prev=$p
14288          continue
14289        else
14290          prev=
14291        fi
14292
14293        if test "$pre_test_object_deps_done" = no; then
14294          case $p in
14295          -L* | -R*)
14296            # Internal compiler library paths should come after those
14297            # provided the user.  The postdeps already come after the
14298            # user supplied libs so there is no need to process them.
14299            if test -z "$compiler_lib_search_path_CXX"; then
14300              compiler_lib_search_path_CXX="${prev}${p}"
14301            else
14302              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14303            fi
14304            ;;
14305          # The "-l" case would never come before the object being
14306          # linked, so don't bother handling this case.
14307          esac
14308        else
14309          if test -z "$postdeps_CXX"; then
14310            postdeps_CXX="${prev}${p}"
14311          else
14312            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14313          fi
14314        fi
14315        ;;
14316
14317     *.$objext)
14318        # This assumes that the test object file only shows up
14319        # once in the compiler output.
14320        if test "$p" = "conftest.$objext"; then
14321          pre_test_object_deps_done=yes
14322          continue
14323        fi
14324
14325        if test "$pre_test_object_deps_done" = no; then
14326          if test -z "$predep_objects_CXX"; then
14327            predep_objects_CXX="$p"
14328          else
14329            predep_objects_CXX="$predep_objects_CXX $p"
14330          fi
14331        else
14332          if test -z "$postdep_objects_CXX"; then
14333            postdep_objects_CXX="$p"
14334          else
14335            postdep_objects_CXX="$postdep_objects_CXX $p"
14336          fi
14337        fi
14338        ;;
14339
14340     *) ;; # Ignore the rest.
14341
14342     esac
14343   done
14344
14345   # Clean up.
14346   rm -f a.out a.exe
14347 else
14348   echo "libtool.m4: error: problem compiling CXX test program"
14349 fi
14350
14351 $RM -f confest.$objext
14352
14353 # PORTME: override above test on systems where it is broken
14354 case $host_os in
14355 interix[3-9]*)
14356   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14357   # hack all around it, let's just trust "g++" to DTRT.
14358   predep_objects_CXX=
14359   postdep_objects_CXX=
14360   postdeps_CXX=
14361   ;;
14362
14363 linux*)
14364   case `$CC -V 2>&1 | sed 5q` in
14365   *Sun\ C*)
14366     # Sun C++ 5.9
14367
14368     # The more standards-conforming stlport4 library is
14369     # incompatible with the Cstd library. Avoid specifying
14370     # it if it's in CXXFLAGS. Ignore libCrun as
14371     # -library=stlport4 depends on it.
14372     case " $CXX $CXXFLAGS " in
14373     *" -library=stlport4 "*)
14374       solaris_use_stlport4=yes
14375       ;;
14376     esac
14377
14378     if test "$solaris_use_stlport4" != yes; then
14379       postdeps_CXX='-library=Cstd -library=Crun'
14380     fi
14381     ;;
14382   esac
14383   ;;
14384
14385 solaris*)
14386   case $cc_basename in
14387   CC*)
14388     # The more standards-conforming stlport4 library is
14389     # incompatible with the Cstd library. Avoid specifying
14390     # it if it's in CXXFLAGS. Ignore libCrun as
14391     # -library=stlport4 depends on it.
14392     case " $CXX $CXXFLAGS " in
14393     *" -library=stlport4 "*)
14394       solaris_use_stlport4=yes
14395       ;;
14396     esac
14397
14398     # Adding this requires a known-good setup of shared libraries for
14399     # Sun compiler versions before 5.6, else PIC objects from an old
14400     # archive will be linked into the output, leading to subtle bugs.
14401     if test "$solaris_use_stlport4" != yes; then
14402       postdeps_CXX='-library=Cstd -library=Crun'
14403     fi
14404     ;;
14405   esac
14406   ;;
14407 esac
14408
14409
14410 case " $postdeps_CXX " in
14411 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14412 esac
14413  compiler_lib_search_dirs_CXX=
14414 if test -n "${compiler_lib_search_path_CXX}"; then
14415  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14416 fi
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
14444
14445
14446
14447
14448     lt_prog_compiler_wl_CXX=
14449 lt_prog_compiler_pic_CXX=
14450 lt_prog_compiler_static_CXX=
14451
14452 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14453 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14454
14455   # C++ specific cases for pic, static, wl, etc.
14456   if test "$GXX" = yes; then
14457     lt_prog_compiler_wl_CXX='-Wl,'
14458     lt_prog_compiler_static_CXX='-static'
14459
14460     case $host_os in
14461     aix*)
14462       # All AIX code is PIC.
14463       if test "$host_cpu" = ia64; then
14464         # AIX 5 now supports IA64 processor
14465         lt_prog_compiler_static_CXX='-Bstatic'
14466       fi
14467       ;;
14468
14469     amigaos*)
14470       case $host_cpu in
14471       powerpc)
14472             # see comment about AmigaOS4 .so support
14473             lt_prog_compiler_pic_CXX='-fPIC'
14474         ;;
14475       m68k)
14476             # FIXME: we need at least 68020 code to build shared libraries, but
14477             # adding the `-m68020' flag to GCC prevents building anything better,
14478             # like `-m68040'.
14479             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14480         ;;
14481       esac
14482       ;;
14483
14484     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14485       # PIC is the default for these OSes.
14486       ;;
14487     mingw* | cygwin* | os2* | pw32* | cegcc*)
14488       # This hack is so that the source file can tell whether it is being
14489       # built for inclusion in a dll (and should export symbols for example).
14490       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14491       # (--disable-auto-import) libraries
14492       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14493       ;;
14494     darwin* | rhapsody*)
14495       # PIC is the default on this platform
14496       # Common symbols not allowed in MH_DYLIB files
14497       lt_prog_compiler_pic_CXX='-fno-common'
14498       ;;
14499     *djgpp*)
14500       # DJGPP does not support shared libraries at all
14501       lt_prog_compiler_pic_CXX=
14502       ;;
14503     interix[3-9]*)
14504       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14505       # Instead, we relocate shared libraries at runtime.
14506       ;;
14507     sysv4*MP*)
14508       if test -d /usr/nec; then
14509         lt_prog_compiler_pic_CXX=-Kconform_pic
14510       fi
14511       ;;
14512     hpux*)
14513       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14514       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14515       # sets the default TLS model and affects inlining.
14516       case $host_cpu in
14517       hppa*64*)
14518         ;;
14519       *)
14520         lt_prog_compiler_pic_CXX='-fPIC'
14521         ;;
14522       esac
14523       ;;
14524     *qnx* | *nto*)
14525       # QNX uses GNU C++, but need to define -shared option too, otherwise
14526       # it will coredump.
14527       lt_prog_compiler_pic_CXX='-fPIC -shared'
14528       ;;
14529     *)
14530       lt_prog_compiler_pic_CXX='-fPIC'
14531       ;;
14532     esac
14533   else
14534     case $host_os in
14535       aix[4-9]*)
14536         # All AIX code is PIC.
14537         if test "$host_cpu" = ia64; then
14538           # AIX 5 now supports IA64 processor
14539           lt_prog_compiler_static_CXX='-Bstatic'
14540         else
14541           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14542         fi
14543         ;;
14544       chorus*)
14545         case $cc_basename in
14546         cxch68*)
14547           # Green Hills C++ Compiler
14548           # _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"
14549           ;;
14550         esac
14551         ;;
14552       dgux*)
14553         case $cc_basename in
14554           ec++*)
14555             lt_prog_compiler_pic_CXX='-KPIC'
14556             ;;
14557           ghcx*)
14558             # Green Hills C++ Compiler
14559             lt_prog_compiler_pic_CXX='-pic'
14560             ;;
14561           *)
14562             ;;
14563         esac
14564         ;;
14565       freebsd* | dragonfly*)
14566         # FreeBSD uses GNU C++
14567         ;;
14568       hpux9* | hpux10* | hpux11*)
14569         case $cc_basename in
14570           CC*)
14571             lt_prog_compiler_wl_CXX='-Wl,'
14572             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14573             if test "$host_cpu" != ia64; then
14574               lt_prog_compiler_pic_CXX='+Z'
14575             fi
14576             ;;
14577           aCC*)
14578             lt_prog_compiler_wl_CXX='-Wl,'
14579             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14580             case $host_cpu in
14581             hppa*64*|ia64*)
14582               # +Z the default
14583               ;;
14584             *)
14585               lt_prog_compiler_pic_CXX='+Z'
14586               ;;
14587             esac
14588             ;;
14589           *)
14590             ;;
14591         esac
14592         ;;
14593       interix*)
14594         # This is c89, which is MS Visual C++ (no shared libs)
14595         # Anyone wants to do a port?
14596         ;;
14597       irix5* | irix6* | nonstopux*)
14598         case $cc_basename in
14599           CC*)
14600             lt_prog_compiler_wl_CXX='-Wl,'
14601             lt_prog_compiler_static_CXX='-non_shared'
14602             # CC pic flag -KPIC is the default.
14603             ;;
14604           *)
14605             ;;
14606         esac
14607         ;;
14608       linux* | k*bsd*-gnu)
14609         case $cc_basename in
14610           KCC*)
14611             # KAI C++ Compiler
14612             lt_prog_compiler_wl_CXX='--backend -Wl,'
14613             lt_prog_compiler_pic_CXX='-fPIC'
14614             ;;
14615           ecpc* )
14616             # old Intel C++ for x86_64 which still supported -KPIC.
14617             lt_prog_compiler_wl_CXX='-Wl,'
14618             lt_prog_compiler_pic_CXX='-KPIC'
14619             lt_prog_compiler_static_CXX='-static'
14620             ;;
14621           icpc* )
14622             # Intel C++, used to be incompatible with GCC.
14623             # ICC 10 doesn't accept -KPIC any more.
14624             lt_prog_compiler_wl_CXX='-Wl,'
14625             lt_prog_compiler_pic_CXX='-fPIC'
14626             lt_prog_compiler_static_CXX='-static'
14627             ;;
14628           pgCC* | pgcpp*)
14629             # Portland Group C++ compiler
14630             lt_prog_compiler_wl_CXX='-Wl,'
14631             lt_prog_compiler_pic_CXX='-fpic'
14632             lt_prog_compiler_static_CXX='-Bstatic'
14633             ;;
14634           cxx*)
14635             # Compaq C++
14636             # Make sure the PIC flag is empty.  It appears that all Alpha
14637             # Linux and Compaq Tru64 Unix objects are PIC.
14638             lt_prog_compiler_pic_CXX=
14639             lt_prog_compiler_static_CXX='-non_shared'
14640             ;;
14641           xlc* | xlC*)
14642             # IBM XL 8.0 on PPC
14643             lt_prog_compiler_wl_CXX='-Wl,'
14644             lt_prog_compiler_pic_CXX='-qpic'
14645             lt_prog_compiler_static_CXX='-qstaticlink'
14646             ;;
14647           *)
14648             case `$CC -V 2>&1 | sed 5q` in
14649             *Sun\ C*)
14650               # Sun C++ 5.9
14651               lt_prog_compiler_pic_CXX='-KPIC'
14652               lt_prog_compiler_static_CXX='-Bstatic'
14653               lt_prog_compiler_wl_CXX='-Qoption ld '
14654               ;;
14655             esac
14656             ;;
14657         esac
14658         ;;
14659       lynxos*)
14660         ;;
14661       m88k*)
14662         ;;
14663       mvs*)
14664         case $cc_basename in
14665           cxx*)
14666             lt_prog_compiler_pic_CXX='-W c,exportall'
14667             ;;
14668           *)
14669             ;;
14670         esac
14671         ;;
14672       netbsd*)
14673         ;;
14674       *qnx* | *nto*)
14675         # QNX uses GNU C++, but need to define -shared option too, otherwise
14676         # it will coredump.
14677         lt_prog_compiler_pic_CXX='-fPIC -shared'
14678         ;;
14679       osf3* | osf4* | osf5*)
14680         case $cc_basename in
14681           KCC*)
14682             lt_prog_compiler_wl_CXX='--backend -Wl,'
14683             ;;
14684           RCC*)
14685             # Rational C++ 2.4.1
14686             lt_prog_compiler_pic_CXX='-pic'
14687             ;;
14688           cxx*)
14689             # Digital/Compaq C++
14690             lt_prog_compiler_wl_CXX='-Wl,'
14691             # Make sure the PIC flag is empty.  It appears that all Alpha
14692             # Linux and Compaq Tru64 Unix objects are PIC.
14693             lt_prog_compiler_pic_CXX=
14694             lt_prog_compiler_static_CXX='-non_shared'
14695             ;;
14696           *)
14697             ;;
14698         esac
14699         ;;
14700       psos*)
14701         ;;
14702       solaris*)
14703         case $cc_basename in
14704           CC*)
14705             # Sun C++ 4.2, 5.x and Centerline C++
14706             lt_prog_compiler_pic_CXX='-KPIC'
14707             lt_prog_compiler_static_CXX='-Bstatic'
14708             lt_prog_compiler_wl_CXX='-Qoption ld '
14709             ;;
14710           gcx*)
14711             # Green Hills C++ Compiler
14712             lt_prog_compiler_pic_CXX='-PIC'
14713             ;;
14714           *)
14715             ;;
14716         esac
14717         ;;
14718       sunos4*)
14719         case $cc_basename in
14720           CC*)
14721             # Sun C++ 4.x
14722             lt_prog_compiler_pic_CXX='-pic'
14723             lt_prog_compiler_static_CXX='-Bstatic'
14724             ;;
14725           lcc*)
14726             # Lucid
14727             lt_prog_compiler_pic_CXX='-pic'
14728             ;;
14729           *)
14730             ;;
14731         esac
14732         ;;
14733       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14734         case $cc_basename in
14735           CC*)
14736             lt_prog_compiler_wl_CXX='-Wl,'
14737             lt_prog_compiler_pic_CXX='-KPIC'
14738             lt_prog_compiler_static_CXX='-Bstatic'
14739             ;;
14740         esac
14741         ;;
14742       tandem*)
14743         case $cc_basename in
14744           NCC*)
14745             # NonStop-UX NCC 3.20
14746             lt_prog_compiler_pic_CXX='-KPIC'
14747             ;;
14748           *)
14749             ;;
14750         esac
14751         ;;
14752       vxworks*)
14753         ;;
14754       *)
14755         lt_prog_compiler_can_build_shared_CXX=no
14756         ;;
14757     esac
14758   fi
14759
14760 case $host_os in
14761   # For platforms which do not support PIC, -DPIC is meaningless:
14762   *djgpp*)
14763     lt_prog_compiler_pic_CXX=
14764     ;;
14765   *)
14766     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14767     ;;
14768 esac
14769 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14770 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14771
14772
14773
14774 #
14775 # Check to make sure the PIC flag actually works.
14776 #
14777 if test -n "$lt_prog_compiler_pic_CXX"; then
14778   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14779 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14780 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14781   echo $ECHO_N "(cached) $ECHO_C" >&6
14782 else
14783   lt_cv_prog_compiler_pic_works_CXX=no
14784    ac_outfile=conftest.$ac_objext
14785    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14786    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14787    # Insert the option either (1) after the last *FLAGS variable, or
14788    # (2) before a word containing "conftest.", or (3) at the end.
14789    # Note that $ac_compile itself does not contain backslashes and begins
14790    # with a dollar sign (not a hyphen), so the echo should work correctly.
14791    # The option is referenced via a variable to avoid confusing sed.
14792    lt_compile=`echo "$ac_compile" | $SED \
14793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14795    -e 's:$: $lt_compiler_flag:'`
14796    (eval echo "\"\$as_me:14796: $lt_compile\"" >&5)
14797    (eval "$lt_compile" 2>conftest.err)
14798    ac_status=$?
14799    cat conftest.err >&5
14800    echo "$as_me:14800: \$? = $ac_status" >&5
14801    if (exit $ac_status) && test -s "$ac_outfile"; then
14802      # The compiler can only warn and ignore the option if not recognized
14803      # So say no if there are warnings other than the usual output.
14804      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14805      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14806      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14807        lt_cv_prog_compiler_pic_works_CXX=yes
14808      fi
14809    fi
14810    $RM conftest*
14811
14812 fi
14813 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14814 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14815
14816 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14817     case $lt_prog_compiler_pic_CXX in
14818      "" | " "*) ;;
14819      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14820      esac
14821 else
14822     lt_prog_compiler_pic_CXX=
14823      lt_prog_compiler_can_build_shared_CXX=no
14824 fi
14825
14826 fi
14827
14828
14829
14830 #
14831 # Check to make sure the static flag actually works.
14832 #
14833 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14834 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14835 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14836 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14837   echo $ECHO_N "(cached) $ECHO_C" >&6
14838 else
14839   lt_cv_prog_compiler_static_works_CXX=no
14840    save_LDFLAGS="$LDFLAGS"
14841    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14842    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14843    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14844      # The linker can only warn and ignore the option if not recognized
14845      # So say no if there are warnings
14846      if test -s conftest.err; then
14847        # Append any errors to the config.log.
14848        cat conftest.err 1>&5
14849        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14850        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14851        if diff conftest.exp conftest.er2 >/dev/null; then
14852          lt_cv_prog_compiler_static_works_CXX=yes
14853        fi
14854      else
14855        lt_cv_prog_compiler_static_works_CXX=yes
14856      fi
14857    fi
14858    $RM -r conftest*
14859    LDFLAGS="$save_LDFLAGS"
14860
14861 fi
14862 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14863 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14864
14865 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14866     :
14867 else
14868     lt_prog_compiler_static_CXX=
14869 fi
14870
14871
14872
14873
14874     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14875 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14876 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14877   echo $ECHO_N "(cached) $ECHO_C" >&6
14878 else
14879   lt_cv_prog_compiler_c_o_CXX=no
14880    $RM -r conftest 2>/dev/null
14881    mkdir conftest
14882    cd conftest
14883    mkdir out
14884    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14885
14886    lt_compiler_flag="-o out/conftest2.$ac_objext"
14887    # Insert the option either (1) after the last *FLAGS variable, or
14888    # (2) before a word containing "conftest.", or (3) at the end.
14889    # Note that $ac_compile itself does not contain backslashes and begins
14890    # with a dollar sign (not a hyphen), so the echo should work correctly.
14891    lt_compile=`echo "$ac_compile" | $SED \
14892    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14893    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14894    -e 's:$: $lt_compiler_flag:'`
14895    (eval echo "\"\$as_me:14895: $lt_compile\"" >&5)
14896    (eval "$lt_compile" 2>out/conftest.err)
14897    ac_status=$?
14898    cat out/conftest.err >&5
14899    echo "$as_me:14899: \$? = $ac_status" >&5
14900    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14901    then
14902      # The compiler can only warn and ignore the option if not recognized
14903      # So say no if there are warnings
14904      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14905      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14906      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14907        lt_cv_prog_compiler_c_o_CXX=yes
14908      fi
14909    fi
14910    chmod u+w . 2>&5
14911    $RM conftest*
14912    # SGI C++ compiler will create directory out/ii_files/ for
14913    # template instantiation
14914    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14915    $RM out/* && rmdir out
14916    cd ..
14917    $RM -r conftest
14918    $RM conftest*
14919
14920 fi
14921 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14922 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14923
14924
14925
14926     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14927 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14928 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14929   echo $ECHO_N "(cached) $ECHO_C" >&6
14930 else
14931   lt_cv_prog_compiler_c_o_CXX=no
14932    $RM -r conftest 2>/dev/null
14933    mkdir conftest
14934    cd conftest
14935    mkdir out
14936    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14937
14938    lt_compiler_flag="-o out/conftest2.$ac_objext"
14939    # Insert the option either (1) after the last *FLAGS variable, or
14940    # (2) before a word containing "conftest.", or (3) at the end.
14941    # Note that $ac_compile itself does not contain backslashes and begins
14942    # with a dollar sign (not a hyphen), so the echo should work correctly.
14943    lt_compile=`echo "$ac_compile" | $SED \
14944    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14945    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14946    -e 's:$: $lt_compiler_flag:'`
14947    (eval echo "\"\$as_me:14947: $lt_compile\"" >&5)
14948    (eval "$lt_compile" 2>out/conftest.err)
14949    ac_status=$?
14950    cat out/conftest.err >&5
14951    echo "$as_me:14951: \$? = $ac_status" >&5
14952    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14953    then
14954      # The compiler can only warn and ignore the option if not recognized
14955      # So say no if there are warnings
14956      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14957      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14958      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14959        lt_cv_prog_compiler_c_o_CXX=yes
14960      fi
14961    fi
14962    chmod u+w . 2>&5
14963    $RM conftest*
14964    # SGI C++ compiler will create directory out/ii_files/ for
14965    # template instantiation
14966    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14967    $RM out/* && rmdir out
14968    cd ..
14969    $RM -r conftest
14970    $RM conftest*
14971
14972 fi
14973 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14974 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14975
14976
14977
14978
14979 hard_links="nottested"
14980 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14981   # do not overwrite the value of need_locks provided by the user
14982   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14983 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14984   hard_links=yes
14985   $RM conftest*
14986   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14987   touch conftest.a
14988   ln conftest.a conftest.b 2>&5 || hard_links=no
14989   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14990   { echo "$as_me:$LINENO: result: $hard_links" >&5
14991 echo "${ECHO_T}$hard_links" >&6; }
14992   if test "$hard_links" = no; then
14993     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14994 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14995     need_locks=warn
14996   fi
14997 else
14998   need_locks=no
14999 fi
15000
15001
15002
15003     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15004 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15005
15006   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15007   case $host_os in
15008   aix[4-9]*)
15009     # If we're using GNU nm, then we don't want the "-C" option.
15010     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15011     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15012       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'
15013     else
15014       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'
15015     fi
15016     ;;
15017   pw32*)
15018     export_symbols_cmds_CXX="$ltdll_cmds"
15019   ;;
15020   cygwin* | mingw* | cegcc*)
15021     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'
15022   ;;
15023   *)
15024     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15025   ;;
15026   esac
15027   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15028
15029 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15030 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15031 test "$ld_shlibs_CXX" = no && can_build_shared=no
15032
15033 with_gnu_ld_CXX=$with_gnu_ld
15034
15035
15036
15037
15038
15039
15040 #
15041 # Do we need to explicitly link libc?
15042 #
15043 case "x$archive_cmds_need_lc_CXX" in
15044 x|xyes)
15045   # Assume -lc should be added
15046   archive_cmds_need_lc_CXX=yes
15047
15048   if test "$enable_shared" = yes && test "$GCC" = yes; then
15049     case $archive_cmds_CXX in
15050     *'~'*)
15051       # FIXME: we may have to deal with multi-command sequences.
15052       ;;
15053     '$CC '*)
15054       # Test whether the compiler implicitly links with -lc since on some
15055       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15056       # to ld, don't add -lc before -lgcc.
15057       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15058 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15059       $RM conftest*
15060       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15061
15062       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15063   (eval $ac_compile) 2>&5
15064   ac_status=$?
15065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066   (exit $ac_status); } 2>conftest.err; then
15067         soname=conftest
15068         lib=conftest
15069         libobjs=conftest.$ac_objext
15070         deplibs=
15071         wl=$lt_prog_compiler_wl_CXX
15072         pic_flag=$lt_prog_compiler_pic_CXX
15073         compiler_flags=-v
15074         linker_flags=-v
15075         verstring=
15076         output_objdir=.
15077         libname=conftest
15078         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15079         allow_undefined_flag_CXX=
15080         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15081   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15082   ac_status=$?
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); }
15085         then
15086           archive_cmds_need_lc_CXX=no
15087         else
15088           archive_cmds_need_lc_CXX=yes
15089         fi
15090         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15091       else
15092         cat conftest.err 1>&5
15093       fi
15094       $RM conftest*
15095       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15096 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15097       ;;
15098     esac
15099   fi
15100   ;;
15101 esac
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
15162
15163
15164
15165
15166     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15167 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15168
15169 library_names_spec=
15170 libname_spec='lib$name'
15171 soname_spec=
15172 shrext_cmds=".so"
15173 postinstall_cmds=
15174 postuninstall_cmds=
15175 finish_cmds=
15176 finish_eval=
15177 shlibpath_var=
15178 shlibpath_overrides_runpath=unknown
15179 version_type=none
15180 dynamic_linker="$host_os ld.so"
15181 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15182 need_lib_prefix=unknown
15183 hardcode_into_libs=no
15184
15185 # when you set need_version to no, make sure it does not cause -set_version
15186 # flags to be left without arguments
15187 need_version=unknown
15188
15189 case $host_os in
15190 aix3*)
15191   version_type=linux
15192   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15193   shlibpath_var=LIBPATH
15194
15195   # AIX 3 has no versioning support, so we append a major version to the name.
15196   soname_spec='${libname}${release}${shared_ext}$major'
15197   ;;
15198
15199 aix[4-9]*)
15200   version_type=linux
15201   need_lib_prefix=no
15202   need_version=no
15203   hardcode_into_libs=yes
15204   if test "$host_cpu" = ia64; then
15205     # AIX 5 supports IA64
15206     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15207     shlibpath_var=LD_LIBRARY_PATH
15208   else
15209     # With GCC up to 2.95.x, collect2 would create an import file
15210     # for dependence libraries.  The import file would start with
15211     # the line `#! .'.  This would cause the generated library to
15212     # depend on `.', always an invalid library.  This was fixed in
15213     # development snapshots of GCC prior to 3.0.
15214     case $host_os in
15215       aix4 | aix4.[01] | aix4.[01].*)
15216       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15217            echo ' yes '
15218            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15219         :
15220       else
15221         can_build_shared=no
15222       fi
15223       ;;
15224     esac
15225     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15226     # soname into executable. Probably we can add versioning support to
15227     # collect2, so additional links can be useful in future.
15228     if test "$aix_use_runtimelinking" = yes; then
15229       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15230       # instead of lib<name>.a to let people know that these are not
15231       # typical AIX shared libraries.
15232       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15233     else
15234       # We preserve .a as extension for shared libraries through AIX4.2
15235       # and later when we are not doing run time linking.
15236       library_names_spec='${libname}${release}.a $libname.a'
15237       soname_spec='${libname}${release}${shared_ext}$major'
15238     fi
15239     shlibpath_var=LIBPATH
15240   fi
15241   ;;
15242
15243 amigaos*)
15244   case $host_cpu in
15245   powerpc)
15246     # Since July 2007 AmigaOS4 officially supports .so libraries.
15247     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249     ;;
15250   m68k)
15251     library_names_spec='$libname.ixlibrary $libname.a'
15252     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15253     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'
15254     ;;
15255   esac
15256   ;;
15257
15258 beos*)
15259   library_names_spec='${libname}${shared_ext}'
15260   dynamic_linker="$host_os ld.so"
15261   shlibpath_var=LIBRARY_PATH
15262   ;;
15263
15264 bsdi[45]*)
15265   version_type=linux
15266   need_version=no
15267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268   soname_spec='${libname}${release}${shared_ext}$major'
15269   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15270   shlibpath_var=LD_LIBRARY_PATH
15271   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15272   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15273   # the default ld.so.conf also contains /usr/contrib/lib and
15274   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15275   # libtool to hard-code these into programs
15276   ;;
15277
15278 cygwin* | mingw* | pw32* | cegcc*)
15279   version_type=windows
15280   shrext_cmds=".dll"
15281   need_version=no
15282   need_lib_prefix=no
15283
15284   case $GCC,$host_os in
15285   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15286     library_names_spec='$libname.dll.a'
15287     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15288     postinstall_cmds='base_file=`basename \${file}`~
15289       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15290       dldir=$destdir/`dirname \$dlpath`~
15291       test -d \$dldir || mkdir -p \$dldir~
15292       $install_prog $dir/$dlname \$dldir/$dlname~
15293       chmod a+x \$dldir/$dlname~
15294       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15295         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15296       fi'
15297     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15298       dlpath=$dir/\$dldll~
15299        $RM \$dlpath'
15300     shlibpath_overrides_runpath=yes
15301
15302     case $host_os in
15303     cygwin*)
15304       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15305       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15306       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15307       ;;
15308     mingw* | cegcc*)
15309       # MinGW DLLs use traditional 'lib' prefix
15310       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15311       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15312       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15313         # It is most probably a Windows format PATH printed by
15314         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15315         # path with ; separators, and with drive letters. We can handle the
15316         # drive letters (cygwin fileutils understands them), so leave them,
15317         # especially as we might pass files found there to a mingw objdump,
15318         # which wouldn't understand a cygwinified path. Ahh.
15319         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15320       else
15321         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15322       fi
15323       ;;
15324     pw32*)
15325       # pw32 DLLs use 'pw' prefix rather than 'lib'
15326       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15327       ;;
15328     esac
15329     ;;
15330
15331   *)
15332     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15333     ;;
15334   esac
15335   dynamic_linker='Win32 ld.exe'
15336   # FIXME: first we should search . and the directory the executable is in
15337   shlibpath_var=PATH
15338   ;;
15339
15340 darwin* | rhapsody*)
15341   dynamic_linker="$host_os dyld"
15342   version_type=darwin
15343   need_lib_prefix=no
15344   need_version=no
15345   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15346   soname_spec='${libname}${release}${major}$shared_ext'
15347   shlibpath_overrides_runpath=yes
15348   shlibpath_var=DYLD_LIBRARY_PATH
15349   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15350
15351   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15352   ;;
15353
15354 dgux*)
15355   version_type=linux
15356   need_lib_prefix=no
15357   need_version=no
15358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15359   soname_spec='${libname}${release}${shared_ext}$major'
15360   shlibpath_var=LD_LIBRARY_PATH
15361   ;;
15362
15363 freebsd1*)
15364   dynamic_linker=no
15365   ;;
15366
15367 freebsd* | dragonfly*)
15368   # DragonFly does not have aout.  When/if they implement a new
15369   # versioning mechanism, adjust this.
15370   if test -x /usr/bin/objformat; then
15371     objformat=`/usr/bin/objformat`
15372   else
15373     case $host_os in
15374     freebsd[123]*) objformat=aout ;;
15375     *) objformat=elf ;;
15376     esac
15377   fi
15378   version_type=freebsd-$objformat
15379   case $version_type in
15380     freebsd-elf*)
15381       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15382       need_version=no
15383       need_lib_prefix=no
15384       ;;
15385     freebsd-*)
15386       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15387       need_version=yes
15388       ;;
15389   esac
15390   shlibpath_var=LD_LIBRARY_PATH
15391   case $host_os in
15392   freebsd2*)
15393     shlibpath_overrides_runpath=yes
15394     ;;
15395   freebsd3.[01]* | freebsdelf3.[01]*)
15396     shlibpath_overrides_runpath=yes
15397     hardcode_into_libs=yes
15398     ;;
15399   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15400   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15401     shlibpath_overrides_runpath=no
15402     hardcode_into_libs=yes
15403     ;;
15404   *) # from 4.6 on, and DragonFly
15405     shlibpath_overrides_runpath=yes
15406     hardcode_into_libs=yes
15407     ;;
15408   esac
15409   ;;
15410
15411 gnu*)
15412   version_type=linux
15413   need_lib_prefix=no
15414   need_version=no
15415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15416   soname_spec='${libname}${release}${shared_ext}$major'
15417   shlibpath_var=LD_LIBRARY_PATH
15418   hardcode_into_libs=yes
15419   ;;
15420
15421 hpux9* | hpux10* | hpux11*)
15422   # Give a soname corresponding to the major version so that dld.sl refuses to
15423   # link against other versions.
15424   version_type=sunos
15425   need_lib_prefix=no
15426   need_version=no
15427   case $host_cpu in
15428   ia64*)
15429     shrext_cmds='.so'
15430     hardcode_into_libs=yes
15431     dynamic_linker="$host_os dld.so"
15432     shlibpath_var=LD_LIBRARY_PATH
15433     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435     soname_spec='${libname}${release}${shared_ext}$major'
15436     if test "X$HPUX_IA64_MODE" = X32; then
15437       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15438     else
15439       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15440     fi
15441     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15442     ;;
15443   hppa*64*)
15444     shrext_cmds='.sl'
15445     hardcode_into_libs=yes
15446     dynamic_linker="$host_os dld.sl"
15447     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15448     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15449     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450     soname_spec='${libname}${release}${shared_ext}$major'
15451     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15452     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15453     ;;
15454   *)
15455     shrext_cmds='.sl'
15456     dynamic_linker="$host_os dld.sl"
15457     shlibpath_var=SHLIB_PATH
15458     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460     soname_spec='${libname}${release}${shared_ext}$major'
15461     ;;
15462   esac
15463   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15464   postinstall_cmds='chmod 555 $lib'
15465   ;;
15466
15467 interix[3-9]*)
15468   version_type=linux
15469   need_lib_prefix=no
15470   need_version=no
15471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15472   soname_spec='${libname}${release}${shared_ext}$major'
15473   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15474   shlibpath_var=LD_LIBRARY_PATH
15475   shlibpath_overrides_runpath=no
15476   hardcode_into_libs=yes
15477   ;;
15478
15479 irix5* | irix6* | nonstopux*)
15480   case $host_os in
15481     nonstopux*) version_type=nonstopux ;;
15482     *)
15483         if test "$lt_cv_prog_gnu_ld" = yes; then
15484                 version_type=linux
15485         else
15486                 version_type=irix
15487         fi ;;
15488   esac
15489   need_lib_prefix=no
15490   need_version=no
15491   soname_spec='${libname}${release}${shared_ext}$major'
15492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15493   case $host_os in
15494   irix5* | nonstopux*)
15495     libsuff= shlibsuff=
15496     ;;
15497   *)
15498     case $LD in # libtool.m4 will add one of these switches to LD
15499     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15500       libsuff= shlibsuff= libmagic=32-bit;;
15501     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15502       libsuff=32 shlibsuff=N32 libmagic=N32;;
15503     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15504       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15505     *) libsuff= shlibsuff= libmagic=never-match;;
15506     esac
15507     ;;
15508   esac
15509   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15510   shlibpath_overrides_runpath=no
15511   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15512   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15513   hardcode_into_libs=yes
15514   ;;
15515
15516 # No shared lib support for Linux oldld, aout, or coff.
15517 linux*oldld* | linux*aout* | linux*coff*)
15518   dynamic_linker=no
15519   ;;
15520
15521 # This must be Linux ELF.
15522 linux* | k*bsd*-gnu)
15523   version_type=linux
15524   need_lib_prefix=no
15525   need_version=no
15526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527   soname_spec='${libname}${release}${shared_ext}$major'
15528   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15529   shlibpath_var=LD_LIBRARY_PATH
15530   shlibpath_overrides_runpath=no
15531   # Some binutils ld are patched to set DT_RUNPATH
15532   save_LDFLAGS=$LDFLAGS
15533   save_libdir=$libdir
15534   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15535        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15536   cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h.  */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h.  */
15542
15543 int
15544 main ()
15545 {
15546
15547   ;
15548   return 0;
15549 }
15550 _ACEOF
15551 rm -f conftest.$ac_objext conftest$ac_exeext
15552 if { (ac_try="$ac_link"
15553 case "(($ac_try" in
15554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555   *) ac_try_echo=$ac_try;;
15556 esac
15557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558   (eval "$ac_link") 2>conftest.er1
15559   ac_status=$?
15560   grep -v '^ *+' conftest.er1 >conftest.err
15561   rm -f conftest.er1
15562   cat conftest.err >&5
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); } && {
15565          test -z "$ac_cxx_werror_flag" ||
15566          test ! -s conftest.err
15567        } && test -s conftest$ac_exeext &&
15568        $as_test_x conftest$ac_exeext; then
15569   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15570   shlibpath_overrides_runpath=yes
15571 fi
15572
15573 else
15574   echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15576
15577
15578 fi
15579
15580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15581       conftest$ac_exeext conftest.$ac_ext
15582   LDFLAGS=$save_LDFLAGS
15583   libdir=$save_libdir
15584
15585   # This implies no fast_install, which is unacceptable.
15586   # Some rework will be needed to allow for fast_install
15587   # before this can be enabled.
15588   hardcode_into_libs=yes
15589
15590   # Append ld.so.conf contents to the search path
15591   if test -f /etc/ld.so.conf; then
15592     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' ' '`
15593     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15594   fi
15595
15596   # We used to test for /lib/ld.so.1 and disable shared libraries on
15597   # powerpc, because MkLinux only supported shared libraries with the
15598   # GNU dynamic linker.  Since this was broken with cross compilers,
15599   # most powerpc-linux boxes support dynamic linking these days and
15600   # people can always --disable-shared, the test was removed, and we
15601   # assume the GNU/Linux dynamic linker is in use.
15602   dynamic_linker='GNU/Linux ld.so'
15603   ;;
15604
15605 netbsd*)
15606   version_type=sunos
15607   need_lib_prefix=no
15608   need_version=no
15609   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15611     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15612     dynamic_linker='NetBSD (a.out) ld.so'
15613   else
15614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15615     soname_spec='${libname}${release}${shared_ext}$major'
15616     dynamic_linker='NetBSD ld.elf_so'
15617   fi
15618   shlibpath_var=LD_LIBRARY_PATH
15619   shlibpath_overrides_runpath=yes
15620   hardcode_into_libs=yes
15621   ;;
15622
15623 newsos6)
15624   version_type=linux
15625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626   shlibpath_var=LD_LIBRARY_PATH
15627   shlibpath_overrides_runpath=yes
15628   ;;
15629
15630 *nto* | *qnx*)
15631   version_type=qnx
15632   need_lib_prefix=no
15633   need_version=no
15634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635   soname_spec='${libname}${release}${shared_ext}$major'
15636   shlibpath_var=LD_LIBRARY_PATH
15637   shlibpath_overrides_runpath=no
15638   hardcode_into_libs=yes
15639   dynamic_linker='ldqnx.so'
15640   ;;
15641
15642 openbsd*)
15643   version_type=sunos
15644   sys_lib_dlsearch_path_spec="/usr/lib"
15645   need_lib_prefix=no
15646   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15647   case $host_os in
15648     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15649     *)                          need_version=no  ;;
15650   esac
15651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15652   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15653   shlibpath_var=LD_LIBRARY_PATH
15654   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15655     case $host_os in
15656       openbsd2.[89] | openbsd2.[89].*)
15657         shlibpath_overrides_runpath=no
15658         ;;
15659       *)
15660         shlibpath_overrides_runpath=yes
15661         ;;
15662       esac
15663   else
15664     shlibpath_overrides_runpath=yes
15665   fi
15666   ;;
15667
15668 os2*)
15669   libname_spec='$name'
15670   shrext_cmds=".dll"
15671   need_lib_prefix=no
15672   library_names_spec='$libname${shared_ext} $libname.a'
15673   dynamic_linker='OS/2 ld.exe'
15674   shlibpath_var=LIBPATH
15675   ;;
15676
15677 osf3* | osf4* | osf5*)
15678   version_type=osf
15679   need_lib_prefix=no
15680   need_version=no
15681   soname_spec='${libname}${release}${shared_ext}$major'
15682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683   shlibpath_var=LD_LIBRARY_PATH
15684   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15685   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15686   ;;
15687
15688 rdos*)
15689   dynamic_linker=no
15690   ;;
15691
15692 solaris*)
15693   version_type=linux
15694   need_lib_prefix=no
15695   need_version=no
15696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697   soname_spec='${libname}${release}${shared_ext}$major'
15698   shlibpath_var=LD_LIBRARY_PATH
15699   shlibpath_overrides_runpath=yes
15700   hardcode_into_libs=yes
15701   # ldd complains unless libraries are executable
15702   postinstall_cmds='chmod +x $lib'
15703   ;;
15704
15705 sunos4*)
15706   version_type=sunos
15707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15708   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15709   shlibpath_var=LD_LIBRARY_PATH
15710   shlibpath_overrides_runpath=yes
15711   if test "$with_gnu_ld" = yes; then
15712     need_lib_prefix=no
15713   fi
15714   need_version=yes
15715   ;;
15716
15717 sysv4 | sysv4.3*)
15718   version_type=linux
15719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720   soname_spec='${libname}${release}${shared_ext}$major'
15721   shlibpath_var=LD_LIBRARY_PATH
15722   case $host_vendor in
15723     sni)
15724       shlibpath_overrides_runpath=no
15725       need_lib_prefix=no
15726       runpath_var=LD_RUN_PATH
15727       ;;
15728     siemens)
15729       need_lib_prefix=no
15730       ;;
15731     motorola)
15732       need_lib_prefix=no
15733       need_version=no
15734       shlibpath_overrides_runpath=no
15735       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15736       ;;
15737   esac
15738   ;;
15739
15740 sysv4*MP*)
15741   if test -d /usr/nec ;then
15742     version_type=linux
15743     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15744     soname_spec='$libname${shared_ext}.$major'
15745     shlibpath_var=LD_LIBRARY_PATH
15746   fi
15747   ;;
15748
15749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15750   version_type=freebsd-elf
15751   need_lib_prefix=no
15752   need_version=no
15753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15754   soname_spec='${libname}${release}${shared_ext}$major'
15755   shlibpath_var=LD_LIBRARY_PATH
15756   shlibpath_overrides_runpath=yes
15757   hardcode_into_libs=yes
15758   if test "$with_gnu_ld" = yes; then
15759     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15760   else
15761     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15762     case $host_os in
15763       sco3.2v5*)
15764         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15765         ;;
15766     esac
15767   fi
15768   sys_lib_dlsearch_path_spec='/usr/lib'
15769   ;;
15770
15771 tpf*)
15772   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15773   version_type=linux
15774   need_lib_prefix=no
15775   need_version=no
15776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777   shlibpath_var=LD_LIBRARY_PATH
15778   shlibpath_overrides_runpath=no
15779   hardcode_into_libs=yes
15780   ;;
15781
15782 uts4*)
15783   version_type=linux
15784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785   soname_spec='${libname}${release}${shared_ext}$major'
15786   shlibpath_var=LD_LIBRARY_PATH
15787   ;;
15788
15789 *)
15790   dynamic_linker=no
15791   ;;
15792 esac
15793 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15794 echo "${ECHO_T}$dynamic_linker" >&6; }
15795 test "$dynamic_linker" = no && can_build_shared=no
15796
15797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15798 if test "$GCC" = yes; then
15799   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15800 fi
15801
15802 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15803   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15804 fi
15805 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15806   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15807 fi
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
15840
15841
15842
15843
15844     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15845 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15846 hardcode_action_CXX=
15847 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15848    test -n "$runpath_var_CXX" ||
15849    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15850
15851   # We can hardcode non-existent directories.
15852   if test "$hardcode_direct_CXX" != no &&
15853      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15854      # have to relink, otherwise we might link with an installed library
15855      # when we should be linking with a yet-to-be-installed one
15856      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15857      test "$hardcode_minus_L_CXX" != no; then
15858     # Linking always hardcodes the temporary library directory.
15859     hardcode_action_CXX=relink
15860   else
15861     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15862     hardcode_action_CXX=immediate
15863   fi
15864 else
15865   # We cannot hardcode anything, or else we can only hardcode existing
15866   # directories.
15867   hardcode_action_CXX=unsupported
15868 fi
15869 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15870 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15871
15872 if test "$hardcode_action_CXX" = relink ||
15873    test "$inherit_rpath_CXX" = yes; then
15874   # Fast installation is not supported
15875   enable_fast_install=no
15876 elif test "$shlibpath_overrides_runpath" = yes ||
15877      test "$enable_shared" = no; then
15878   # Fast installation is not necessary
15879   enable_fast_install=needless
15880 fi
15881
15882
15883
15884
15885
15886
15887
15888   fi # test -n "$compiler"
15889
15890   CC=$lt_save_CC
15891   LDCXX=$LD
15892   LD=$lt_save_LD
15893   GCC=$lt_save_GCC
15894   with_gnu_ld=$lt_save_with_gnu_ld
15895   lt_cv_path_LDCXX=$lt_cv_path_LD
15896   lt_cv_path_LD=$lt_save_path_LD
15897   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15898   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15899 fi # test "$_lt_caught_CXX_error" != yes
15900
15901 ac_ext=c
15902 ac_cpp='$CPP $CPPFLAGS'
15903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919         ac_config_commands="$ac_config_commands libtool"
15920
15921
15922
15923
15924 # Only expand once:
15925
15926
15927
15928
15929 if test x$use_libtool != xno; then
15930    DEFAULT_OBJECT_TYPE=".lo"
15931    DEFAULT_ARCHIVE_TYPE=".la"
15932    DEFAULT_SHARED_OBJECT_TYPE=".la"
15933    LIBTOOL="\$(LIBTOOL)"
15934    LIBTOOL_INSTALL_TARGET="libtool-install"
15935    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15936    LIBTOOL_CLEAN_TARGET="libtool-clean"
15937    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15938    FD_PLUGIN_DIR="src/plugins/fd"
15939    have_plugins=yes
15940 else
15941    DEFAULT_OBJECT_TYPE=".o"
15942    DEFAULT_ARCHIVE_TYPE=".a"
15943    DEFAULT_SHARED_OBJECT_TYPE=".so"
15944    LIBTOOL="# \$(LIBTOOL)"
15945    LIBTOOL_INSTALL_TARGET=""
15946    LIBTOOL_UNINSTALL_TARGET=""
15947    LIBTOOL_CLEAN_TARGET=""
15948    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15949    FD_PLUGIN_DIR=""
15950    have_plugins=no
15951 fi
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963 # Check whether --enable-includes was given.
15964 if test "${enable_includes+set}" = set; then
15965   enableval=$enable_includes;
15966        if test x$enableval = xyes; then
15967           install_includes=yes
15968        fi
15969
15970
15971 fi
15972
15973
15974
15975 if test x$use_libtool != xno -a x$install_includes = xyes; then
15976    INCLUDE_INSTALL_TARGET="install-includes"
15977    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15978 else
15979    INCLUDE_INSTALL_TARGET=""
15980    INCLUDE_UNINSTALL_TARGET=""
15981 fi
15982
15983
15984
15985
15986 { echo "$as_me:$LINENO: checking host system type" >&5
15987 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15988 if test "${ac_cv_host+set}" = set; then
15989   echo $ECHO_N "(cached) $ECHO_C" >&6
15990 else
15991   if test "x$host_alias" = x; then
15992   ac_cv_host=$ac_cv_build
15993 else
15994   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15995     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15996 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15997    { (exit 1); exit 1; }; }
15998 fi
15999
16000 fi
16001 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16002 echo "${ECHO_T}$ac_cv_host" >&6; }
16003 case $ac_cv_host in
16004 *-*-*) ;;
16005 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16006 echo "$as_me: error: invalid value of canonical host" >&2;}
16007    { (exit 1); exit 1; }; };;
16008 esac
16009 host=$ac_cv_host
16010 ac_save_IFS=$IFS; IFS='-'
16011 set x $ac_cv_host
16012 shift
16013 host_cpu=$1
16014 host_vendor=$2
16015 shift; shift
16016 # Remember, the first character of IFS is used to create $*,
16017 # except with old shells:
16018 host_os=$*
16019 IFS=$ac_save_IFS
16020 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16021
16022
16023 case $host_os in
16024   *cygwin* ) CYGWIN=yes;;
16025          * ) CYGWIN=no;;
16026 esac
16027
16028 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16029 then
16030
16031
16032 if $TRUEPRG; then
16033   HAVE_SUN_OS_TRUE=
16034   HAVE_SUN_OS_FALSE='#'
16035 else
16036   HAVE_SUN_OS_TRUE='#'
16037   HAVE_SUN_OS_FALSE=
16038 fi
16039         cat >>confdefs.h <<\_ACEOF
16040 #define HAVE_SUN_OS 1
16041 _ACEOF
16042
16043 else
16044
16045
16046 if $FALSEPRG; then
16047   HAVE_SUN_OS_TRUE=
16048   HAVE_SUN_OS_FALSE='#'
16049 else
16050   HAVE_SUN_OS_TRUE='#'
16051   HAVE_SUN_OS_FALSE=
16052 fi
16053 fi
16054
16055 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16056 then
16057
16058
16059 if $TRUEPRG; then
16060   HAVE_OSF1_OS_TRUE=
16061   HAVE_OSF1_OS_FALSE='#'
16062 else
16063   HAVE_OSF1_OS_TRUE='#'
16064   HAVE_OSF1_OS_FALSE=
16065 fi
16066         cat >>confdefs.h <<\_ACEOF
16067 #define HAVE_OSF1_OS 1
16068 _ACEOF
16069
16070 else
16071
16072
16073 if $FALSEPRG; then
16074   HAVE_OSF1_OS_TRUE=
16075   HAVE_OSF1_OS_FALSE='#'
16076 else
16077   HAVE_OSF1_OS_TRUE='#'
16078   HAVE_OSF1_OS_FALSE=
16079 fi
16080 fi
16081
16082 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16083 then
16084
16085
16086 if $TRUEPRG; then
16087   HAVE_AIX_OS_TRUE=
16088   HAVE_AIX_OS_FALSE='#'
16089 else
16090   HAVE_AIX_OS_TRUE='#'
16091   HAVE_AIX_OS_FALSE=
16092 fi
16093         cat >>confdefs.h <<\_ACEOF
16094 #define HAVE_AIX_OS 1
16095 _ACEOF
16096
16097 else
16098
16099
16100 if $FALSEPRG; then
16101   HAVE_AIX_OS_TRUE=
16102   HAVE_AIX_OS_FALSE='#'
16103 else
16104   HAVE_AIX_OS_TRUE='#'
16105   HAVE_AIX_OS_FALSE=
16106 fi
16107 fi
16108
16109 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16110 then
16111
16112
16113 if $TRUEPRG; then
16114   HAVE_HPUX_OS_TRUE=
16115   HAVE_HPUX_OS_FALSE='#'
16116 else
16117   HAVE_HPUX_OS_TRUE='#'
16118   HAVE_HPUX_OS_FALSE=
16119 fi
16120         cat >>confdefs.h <<\_ACEOF
16121 #define HAVE_HPUX_OS 1
16122 _ACEOF
16123
16124 else
16125
16126
16127 if $FALSEPRG; then
16128   HAVE_HPUX_OS_TRUE=
16129   HAVE_HPUX_OS_FALSE='#'
16130 else
16131   HAVE_HPUX_OS_TRUE='#'
16132   HAVE_HPUX_OS_FALSE=
16133 fi
16134 fi
16135
16136 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16137 then
16138
16139
16140 if $TRUEPRG; then
16141   HAVE_LINUX_OS_TRUE=
16142   HAVE_LINUX_OS_FALSE='#'
16143 else
16144   HAVE_LINUX_OS_TRUE='#'
16145   HAVE_LINUX_OS_FALSE=
16146 fi
16147         cat >>confdefs.h <<\_ACEOF
16148 #define HAVE_LINUX_OS 1
16149 _ACEOF
16150
16151 else
16152
16153
16154 if $FALSEPRG; then
16155   HAVE_LINUX_OS_TRUE=
16156   HAVE_LINUX_OS_FALSE='#'
16157 else
16158   HAVE_LINUX_OS_TRUE='#'
16159   HAVE_LINUX_OS_FALSE=
16160 fi
16161 fi
16162
16163 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16164 then
16165
16166
16167 if $TRUEPRG; then
16168   HAVE_FREEBSD_OS_TRUE=
16169   HAVE_FREEBSD_OS_FALSE='#'
16170 else
16171   HAVE_FREEBSD_OS_TRUE='#'
16172   HAVE_FREEBSD_OS_FALSE=
16173 fi
16174         cat >>confdefs.h <<\_ACEOF
16175 #define HAVE_FREEBSD_OS 1
16176 _ACEOF
16177
16178 else
16179
16180
16181 if $FALSEPRG; then
16182   HAVE_FREEBSD_OS_TRUE=
16183   HAVE_FREEBSD_OS_FALSE='#'
16184 else
16185   HAVE_FREEBSD_OS_TRUE='#'
16186   HAVE_FREEBSD_OS_FALSE=
16187 fi
16188 fi
16189
16190 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16191 then
16192
16193
16194 if $TRUEPRG; then
16195   HAVE_NETBSD_OS_TRUE=
16196   HAVE_NETBSD_OS_FALSE='#'
16197 else
16198   HAVE_NETBSD_OS_TRUE='#'
16199   HAVE_NETBSD_OS_FALSE=
16200 fi
16201         cat >>confdefs.h <<\_ACEOF
16202 #define HAVE_NETBSD_OS 1
16203 _ACEOF
16204
16205 else
16206
16207
16208 if $FALSEPRG; then
16209   HAVE_NETBSD_OS_TRUE=
16210   HAVE_NETBSD_OS_FALSE='#'
16211 else
16212   HAVE_NETBSD_OS_TRUE='#'
16213   HAVE_NETBSD_OS_FALSE=
16214 fi
16215 fi
16216
16217 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16218 then
16219
16220
16221 if $TRUEPRG; then
16222   HAVE_OPENBSD_OS_TRUE=
16223   HAVE_OPENBSD_OS_FALSE='#'
16224 else
16225   HAVE_OPENBSD_OS_TRUE='#'
16226   HAVE_OPENBSD_OS_FALSE=
16227 fi
16228         cat >>confdefs.h <<\_ACEOF
16229 #define HAVE_OPENBSD_OS 1
16230 _ACEOF
16231
16232 else
16233
16234
16235 if $FALSEPRG; then
16236   HAVE_OPENBSD_OS_TRUE=
16237   HAVE_OPENBSD_OS_FALSE='#'
16238 else
16239   HAVE_OPENBSD_OS_TRUE='#'
16240   HAVE_OPENBSD_OS_FALSE=
16241 fi
16242 fi
16243
16244 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16245 then
16246
16247
16248 if $TRUEPRG; then
16249   HAVE_BSDI_OS_TRUE=
16250   HAVE_BSDI_OS_FALSE='#'
16251 else
16252   HAVE_BSDI_OS_TRUE='#'
16253   HAVE_BSDI_OS_FALSE=
16254 fi
16255         cat >>confdefs.h <<\_ACEOF
16256 #define HAVE_BSDI_OS 1
16257 _ACEOF
16258
16259 else
16260
16261
16262 if $FALSEPRG; then
16263   HAVE_BSDI_OS_TRUE=
16264   HAVE_BSDI_OS_FALSE='#'
16265 else
16266   HAVE_BSDI_OS_TRUE='#'
16267   HAVE_BSDI_OS_FALSE=
16268 fi
16269 fi
16270
16271 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16272 then
16273
16274
16275 if $TRUEPRG; then
16276   HAVE_SGI_OS_TRUE=
16277   HAVE_SGI_OS_FALSE='#'
16278 else
16279   HAVE_SGI_OS_TRUE='#'
16280   HAVE_SGI_OS_FALSE=
16281 fi
16282         cat >>confdefs.h <<\_ACEOF
16283 #define HAVE_SGI_OS 1
16284 _ACEOF
16285
16286 else
16287
16288
16289 if $FALSEPRG; then
16290   HAVE_SGI_OS_TRUE=
16291   HAVE_SGI_OS_FALSE='#'
16292 else
16293   HAVE_SGI_OS_TRUE='#'
16294   HAVE_SGI_OS_FALSE=
16295 fi
16296 fi
16297
16298 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16299 then
16300
16301
16302 if $TRUEPRG; then
16303   HAVE_IRIX_OS_TRUE=
16304   HAVE_IRIX_OS_FALSE='#'
16305 else
16306   HAVE_IRIX_OS_TRUE='#'
16307   HAVE_IRIX_OS_FALSE=
16308 fi
16309         cat >>confdefs.h <<\_ACEOF
16310 #define HAVE_IRIX_OS 1
16311 _ACEOF
16312
16313 else
16314
16315
16316 if $FALSEPRG; then
16317   HAVE_IRIX_OS_TRUE=
16318   HAVE_IRIX_OS_FALSE='#'
16319 else
16320   HAVE_IRIX_OS_TRUE='#'
16321   HAVE_IRIX_OS_FALSE=
16322 fi
16323 fi
16324
16325 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16326 then
16327
16328
16329 if $TRUEPRG; then
16330   HAVE_DARWIN_OS_TRUE=
16331   HAVE_DARWIN_OS_FALSE='#'
16332 else
16333   HAVE_DARWIN_OS_TRUE='#'
16334   HAVE_DARWIN_OS_FALSE=
16335 fi
16336     cat >>confdefs.h <<\_ACEOF
16337 #define HAVE_DARWIN_OS 1
16338 _ACEOF
16339
16340 else
16341
16342
16343 if $FALSEPRG; then
16344   HAVE_DARWIN_OS_TRUE=
16345   HAVE_DARWIN_OS_FALSE='#'
16346 else
16347   HAVE_DARWIN_OS_TRUE='#'
16348   HAVE_DARWIN_OS_FALSE=
16349 fi
16350 fi
16351
16352
16353 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16354 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16355 if test "x$DISTNAME" != "x"
16356 then
16357         echo "distname set to $DISTNAME"
16358 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16359 then
16360         DISTNAME=alpha
16361 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16362 then
16363         DISTNAME=aix
16364 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16365 then
16366         DISTNAME=hpux
16367 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16368 then
16369         DISTNAME=solaris
16370 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16371 then
16372         DISTNAME=freebsd
16373 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16374 then
16375         DISTNAME=netbsd
16376 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16377 then
16378         DISTNAME=openbsd
16379 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16380 then
16381         DISTNAME=irix
16382 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16383 then
16384         DISTNAME=bsdi
16385 elif test -f /etc/SuSE-release
16386 then
16387         DISTNAME=suse
16388 elif test -d /etc/SuSEconfig
16389 then
16390         DISTNAME=suse5
16391 elif test -f /etc/mandrake-release
16392 then
16393         DISTNAME=mandrake
16394 elif test -f /etc/whitebox-release
16395 then
16396        DISTNAME=redhat
16397 elif test -f /etc/redhat-release
16398 then
16399         DISTNAME=redhat
16400 elif test -f /etc/gentoo-release
16401 then
16402         DISTNAME=gentoo
16403 elif test -f /etc/debian_version
16404 then
16405         DISTNAME=debian
16406 elif test -f /etc/slackware-version
16407 then
16408         DISTNAME=slackware
16409 elif test x$host_vendor = xapple
16410 then
16411     DISTNAME=osx
16412 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16413 then
16414     DISTNAME=darwin
16415 elif test -f /etc/engarde-version
16416 then
16417         DISTNAME=engarde
16418 elif test "$CYGWIN" = yes
16419 then
16420         DISTNAME=cygwin
16421         cat >>confdefs.h <<\_ACEOF
16422 #define HAVE_CYGWIN 1
16423 _ACEOF
16424
16425 else
16426         DISTNAME=unknown
16427 fi
16428 { echo "$as_me:$LINENO: result: done" >&5
16429 echo "${ECHO_T}done" >&6; }
16430
16431
16432 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16433 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16434 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16435 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16436   echo $ECHO_N "(cached) $ECHO_C" >&6
16437 else
16438   cat >conftest.make <<\_ACEOF
16439 SHELL = /bin/sh
16440 all:
16441         @echo '@@@%%%=$(MAKE)=@@@%%%'
16442 _ACEOF
16443 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16444 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16445   *@@@%%%=?*=@@@%%%*)
16446     eval ac_cv_prog_make_${ac_make}_set=yes;;
16447   *)
16448     eval ac_cv_prog_make_${ac_make}_set=no;;
16449 esac
16450 rm -f conftest.make
16451 fi
16452 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16453   { echo "$as_me:$LINENO: result: yes" >&5
16454 echo "${ECHO_T}yes" >&6; }
16455   SET_MAKE=
16456 else
16457   { echo "$as_me:$LINENO: result: no" >&5
16458 echo "${ECHO_T}no" >&6; }
16459   SET_MAKE="MAKE=${MAKE-make}"
16460 fi
16461
16462
16463
16464         MKINSTALLDIRS=
16465   if test -n "$ac_aux_dir"; then
16466     case "$ac_aux_dir" in
16467       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16468       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16469     esac
16470   fi
16471   if test -z "$MKINSTALLDIRS"; then
16472     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16473   fi
16474
16475
16476
16477   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16478 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16479     # Check whether --enable-nls was given.
16480 if test "${enable_nls+set}" = set; then
16481   enableval=$enable_nls; USE_NLS=$enableval
16482 else
16483   USE_NLS=yes
16484 fi
16485
16486   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16487 echo "${ECHO_T}$USE_NLS" >&6; }
16488
16489
16490
16491
16492
16493
16494 # Prepare PATH_SEPARATOR.
16495 # The user is always right.
16496 if test "${PATH_SEPARATOR+set}" != set; then
16497   echo "#! /bin/sh" >conf$$.sh
16498   echo  "exit 0"   >>conf$$.sh
16499   chmod +x conf$$.sh
16500   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16501     PATH_SEPARATOR=';'
16502   else
16503     PATH_SEPARATOR=:
16504   fi
16505   rm -f conf$$.sh
16506 fi
16507
16508 # Find out how to test for executable files. Don't use a zero-byte file,
16509 # as systems may use methods other than mode bits to determine executability.
16510 cat >conf$$.file <<_ASEOF
16511 #! /bin/sh
16512 exit 0
16513 _ASEOF
16514 chmod +x conf$$.file
16515 if test -x conf$$.file >/dev/null 2>&1; then
16516   ac_executable_p="test -x"
16517 else
16518   ac_executable_p="test -f"
16519 fi
16520 rm -f conf$$.file
16521
16522 # Extract the first word of "msgfmt", so it can be a program name with args.
16523 set dummy msgfmt; ac_word=$2
16524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16526 if test "${ac_cv_path_MSGFMT+set}" = set; then
16527   echo $ECHO_N "(cached) $ECHO_C" >&6
16528 else
16529   case "$MSGFMT" in
16530   [\\/]* | ?:[\\/]*)
16531     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16532     ;;
16533   *)
16534     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16535     for ac_dir in $PATH; do
16536       IFS="$ac_save_IFS"
16537       test -z "$ac_dir" && ac_dir=.
16538       for ac_exec_ext in '' $ac_executable_extensions; do
16539         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16540           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16541           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16542      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16543             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16544             break 2
16545           fi
16546         fi
16547       done
16548     done
16549     IFS="$ac_save_IFS"
16550   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16551     ;;
16552 esac
16553 fi
16554 MSGFMT="$ac_cv_path_MSGFMT"
16555 if test "$MSGFMT" != ":"; then
16556   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16557 echo "${ECHO_T}$MSGFMT" >&6; }
16558 else
16559   { echo "$as_me:$LINENO: result: no" >&5
16560 echo "${ECHO_T}no" >&6; }
16561 fi
16562
16563   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16564 set dummy gmsgfmt; ac_word=$2
16565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16567 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16568   echo $ECHO_N "(cached) $ECHO_C" >&6
16569 else
16570   case $GMSGFMT in
16571   [\\/]* | ?:[\\/]*)
16572   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16573   ;;
16574   *)
16575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16576 for as_dir in $PATH
16577 do
16578   IFS=$as_save_IFS
16579   test -z "$as_dir" && as_dir=.
16580   for ac_exec_ext in '' $ac_executable_extensions; do
16581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16582     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16584     break 2
16585   fi
16586 done
16587 done
16588 IFS=$as_save_IFS
16589
16590   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16591   ;;
16592 esac
16593 fi
16594 GMSGFMT=$ac_cv_path_GMSGFMT
16595 if test -n "$GMSGFMT"; then
16596   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16597 echo "${ECHO_T}$GMSGFMT" >&6; }
16598 else
16599   { echo "$as_me:$LINENO: result: no" >&5
16600 echo "${ECHO_T}no" >&6; }
16601 fi
16602
16603
16604
16605
16606 # Prepare PATH_SEPARATOR.
16607 # The user is always right.
16608 if test "${PATH_SEPARATOR+set}" != set; then
16609   echo "#! /bin/sh" >conf$$.sh
16610   echo  "exit 0"   >>conf$$.sh
16611   chmod +x conf$$.sh
16612   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16613     PATH_SEPARATOR=';'
16614   else
16615     PATH_SEPARATOR=:
16616   fi
16617   rm -f conf$$.sh
16618 fi
16619
16620 # Find out how to test for executable files. Don't use a zero-byte file,
16621 # as systems may use methods other than mode bits to determine executability.
16622 cat >conf$$.file <<_ASEOF
16623 #! /bin/sh
16624 exit 0
16625 _ASEOF
16626 chmod +x conf$$.file
16627 if test -x conf$$.file >/dev/null 2>&1; then
16628   ac_executable_p="test -x"
16629 else
16630   ac_executable_p="test -f"
16631 fi
16632 rm -f conf$$.file
16633
16634 # Extract the first word of "xgettext", so it can be a program name with args.
16635 set dummy xgettext; ac_word=$2
16636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16638 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16639   echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641   case "$XGETTEXT" in
16642   [\\/]* | ?:[\\/]*)
16643     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16644     ;;
16645   *)
16646     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16647     for ac_dir in $PATH; do
16648       IFS="$ac_save_IFS"
16649       test -z "$ac_dir" && ac_dir=.
16650       for ac_exec_ext in '' $ac_executable_extensions; do
16651         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16652           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16653           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16654      (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
16655             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16656             break 2
16657           fi
16658         fi
16659       done
16660     done
16661     IFS="$ac_save_IFS"
16662   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16663     ;;
16664 esac
16665 fi
16666 XGETTEXT="$ac_cv_path_XGETTEXT"
16667 if test "$XGETTEXT" != ":"; then
16668   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16669 echo "${ECHO_T}$XGETTEXT" >&6; }
16670 else
16671   { echo "$as_me:$LINENO: result: no" >&5
16672 echo "${ECHO_T}no" >&6; }
16673 fi
16674
16675     rm -f messages.po
16676
16677
16678 # Prepare PATH_SEPARATOR.
16679 # The user is always right.
16680 if test "${PATH_SEPARATOR+set}" != set; then
16681   echo "#! /bin/sh" >conf$$.sh
16682   echo  "exit 0"   >>conf$$.sh
16683   chmod +x conf$$.sh
16684   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16685     PATH_SEPARATOR=';'
16686   else
16687     PATH_SEPARATOR=:
16688   fi
16689   rm -f conf$$.sh
16690 fi
16691
16692 # Find out how to test for executable files. Don't use a zero-byte file,
16693 # as systems may use methods other than mode bits to determine executability.
16694 cat >conf$$.file <<_ASEOF
16695 #! /bin/sh
16696 exit 0
16697 _ASEOF
16698 chmod +x conf$$.file
16699 if test -x conf$$.file >/dev/null 2>&1; then
16700   ac_executable_p="test -x"
16701 else
16702   ac_executable_p="test -f"
16703 fi
16704 rm -f conf$$.file
16705
16706 # Extract the first word of "msgmerge", so it can be a program name with args.
16707 set dummy msgmerge; ac_word=$2
16708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16710 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16711   echo $ECHO_N "(cached) $ECHO_C" >&6
16712 else
16713   case "$MSGMERGE" in
16714   [\\/]* | ?:[\\/]*)
16715     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16716     ;;
16717   *)
16718     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16719     for ac_dir in $PATH; do
16720       IFS="$ac_save_IFS"
16721       test -z "$ac_dir" && ac_dir=.
16722       for ac_exec_ext in '' $ac_executable_extensions; do
16723         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16724           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16725           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16726             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16727             break 2
16728           fi
16729         fi
16730       done
16731     done
16732     IFS="$ac_save_IFS"
16733   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16734     ;;
16735 esac
16736 fi
16737 MSGMERGE="$ac_cv_path_MSGMERGE"
16738 if test "$MSGMERGE" != ":"; then
16739   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16740 echo "${ECHO_T}$MSGMERGE" >&6; }
16741 else
16742   { echo "$as_me:$LINENO: result: no" >&5
16743 echo "${ECHO_T}no" >&6; }
16744 fi
16745
16746
16747       if test "$GMSGFMT" != ":"; then
16748             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16749        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16750       : ;
16751     else
16752       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16753       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16754 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16755       GMSGFMT=":"
16756     fi
16757   fi
16758
16759       if test "$XGETTEXT" != ":"; then
16760             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16761        (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
16762       : ;
16763     else
16764       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16765 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16766       XGETTEXT=":"
16767     fi
16768         rm -f messages.po
16769   fi
16770
16771   ac_config_commands="$ac_config_commands default-1"
16772
16773
16774
16775       if test "X$prefix" = "XNONE"; then
16776     acl_final_prefix="$ac_default_prefix"
16777   else
16778     acl_final_prefix="$prefix"
16779   fi
16780   if test "X$exec_prefix" = "XNONE"; then
16781     acl_final_exec_prefix='${prefix}'
16782   else
16783     acl_final_exec_prefix="$exec_prefix"
16784   fi
16785   acl_save_prefix="$prefix"
16786   prefix="$acl_final_prefix"
16787   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16788   prefix="$acl_save_prefix"
16789
16790
16791 # Check whether --with-gnu-ld was given.
16792 if test "${with_gnu_ld+set}" = set; then
16793   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16794 else
16795   with_gnu_ld=no
16796 fi
16797
16798 # Prepare PATH_SEPARATOR.
16799 # The user is always right.
16800 if test "${PATH_SEPARATOR+set}" != set; then
16801   echo "#! /bin/sh" >conf$$.sh
16802   echo  "exit 0"   >>conf$$.sh
16803   chmod +x conf$$.sh
16804   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16805     PATH_SEPARATOR=';'
16806   else
16807     PATH_SEPARATOR=:
16808   fi
16809   rm -f conf$$.sh
16810 fi
16811 ac_prog=ld
16812 if test "$GCC" = yes; then
16813   # Check if gcc -print-prog-name=ld gives a path.
16814   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16815 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16816   case $host in
16817   *-*-mingw*)
16818     # gcc leaves a trailing carriage return which upsets mingw
16819     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16820   *)
16821     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16822   esac
16823   case $ac_prog in
16824     # Accept absolute paths.
16825     [\\/]* | [A-Za-z]:[\\/]*)
16826       re_direlt='/[^/][^/]*/\.\./'
16827       # Canonicalize the path of ld
16828       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16829       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16830         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16831       done
16832       test -z "$LD" && LD="$ac_prog"
16833       ;;
16834   "")
16835     # If it fails, then pretend we aren't using GCC.
16836     ac_prog=ld
16837     ;;
16838   *)
16839     # If it is relative, then search for the first ld in PATH.
16840     with_gnu_ld=unknown
16841     ;;
16842   esac
16843 elif test "$with_gnu_ld" = yes; then
16844   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16845 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16846 else
16847   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16848 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16849 fi
16850 if test "${acl_cv_path_LD+set}" = set; then
16851   echo $ECHO_N "(cached) $ECHO_C" >&6
16852 else
16853   if test -z "$LD"; then
16854   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16855   for ac_dir in $PATH; do
16856     test -z "$ac_dir" && ac_dir=.
16857     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16858       acl_cv_path_LD="$ac_dir/$ac_prog"
16859       # Check to see if the program is GNU ld.  I'd rather use --version,
16860       # but apparently some GNU ld's only accept -v.
16861       # Break only if it was the GNU/non-GNU ld that we prefer.
16862       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16863       *GNU* | *'with BFD'*)
16864         test "$with_gnu_ld" != no && break ;;
16865       *)
16866         test "$with_gnu_ld" != yes && break ;;
16867       esac
16868     fi
16869   done
16870   IFS="$ac_save_ifs"
16871 else
16872   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16873 fi
16874 fi
16875
16876 LD="$acl_cv_path_LD"
16877 if test -n "$LD"; then
16878   { echo "$as_me:$LINENO: result: $LD" >&5
16879 echo "${ECHO_T}$LD" >&6; }
16880 else
16881   { echo "$as_me:$LINENO: result: no" >&5
16882 echo "${ECHO_T}no" >&6; }
16883 fi
16884 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16885 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16886    { (exit 1); exit 1; }; }
16887 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16888 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16889 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16890   echo $ECHO_N "(cached) $ECHO_C" >&6
16891 else
16892   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16893 case `$LD -v 2>&1 </dev/null` in
16894 *GNU* | *'with BFD'*)
16895   acl_cv_prog_gnu_ld=yes ;;
16896 *)
16897   acl_cv_prog_gnu_ld=no ;;
16898 esac
16899 fi
16900 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16901 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16902 with_gnu_ld=$acl_cv_prog_gnu_ld
16903
16904
16905
16906
16907                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16908 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16909 if test "${acl_cv_rpath+set}" = set; then
16910   echo $ECHO_N "(cached) $ECHO_C" >&6
16911 else
16912
16913     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16914     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16915     . ./conftest.sh
16916     rm -f ./conftest.sh
16917     acl_cv_rpath=done
16918
16919 fi
16920 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16921 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16922   wl="$acl_cv_wl"
16923   libext="$acl_cv_libext"
16924   shlibext="$acl_cv_shlibext"
16925   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16926   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16927   hardcode_direct="$acl_cv_hardcode_direct"
16928   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16929     # Check whether --enable-rpath was given.
16930 if test "${enable_rpath+set}" = set; then
16931   enableval=$enable_rpath; :
16932 else
16933   enable_rpath=yes
16934 fi
16935
16936
16937
16938
16939
16940
16941
16942
16943     use_additional=yes
16944
16945   acl_save_prefix="$prefix"
16946   prefix="$acl_final_prefix"
16947   acl_save_exec_prefix="$exec_prefix"
16948   exec_prefix="$acl_final_exec_prefix"
16949
16950     eval additional_includedir=\"$includedir\"
16951     eval additional_libdir=\"$libdir\"
16952
16953   exec_prefix="$acl_save_exec_prefix"
16954   prefix="$acl_save_prefix"
16955
16956
16957 # Check whether --with-libiconv-prefix was given.
16958 if test "${with_libiconv_prefix+set}" = set; then
16959   withval=$with_libiconv_prefix;
16960     if test "X$withval" = "Xno"; then
16961       use_additional=no
16962     else
16963       if test "X$withval" = "X"; then
16964
16965   acl_save_prefix="$prefix"
16966   prefix="$acl_final_prefix"
16967   acl_save_exec_prefix="$exec_prefix"
16968   exec_prefix="$acl_final_exec_prefix"
16969
16970           eval additional_includedir=\"$includedir\"
16971           eval additional_libdir=\"$libdir\"
16972
16973   exec_prefix="$acl_save_exec_prefix"
16974   prefix="$acl_save_prefix"
16975
16976       else
16977         additional_includedir="$withval/include"
16978         additional_libdir="$withval/lib"
16979       fi
16980     fi
16981
16982 fi
16983
16984       LIBICONV=
16985   LTLIBICONV=
16986   INCICONV=
16987   rpathdirs=
16988   ltrpathdirs=
16989   names_already_handled=
16990   names_next_round='iconv '
16991   while test -n "$names_next_round"; do
16992     names_this_round="$names_next_round"
16993     names_next_round=
16994     for name in $names_this_round; do
16995       already_handled=
16996       for n in $names_already_handled; do
16997         if test "$n" = "$name"; then
16998           already_handled=yes
16999           break
17000         fi
17001       done
17002       if test -z "$already_handled"; then
17003         names_already_handled="$names_already_handled $name"
17004                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17005         eval value=\"\$HAVE_LIB$uppername\"
17006         if test -n "$value"; then
17007           if test "$value" = yes; then
17008             eval value=\"\$LIB$uppername\"
17009             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17010             eval value=\"\$LTLIB$uppername\"
17011             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17012           else
17013                                     :
17014           fi
17015         else
17016                               found_dir=
17017           found_la=
17018           found_so=
17019           found_a=
17020           if test $use_additional = yes; then
17021             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17022               found_dir="$additional_libdir"
17023               found_so="$additional_libdir/lib$name.$shlibext"
17024               if test -f "$additional_libdir/lib$name.la"; then
17025                 found_la="$additional_libdir/lib$name.la"
17026               fi
17027             else
17028               if test -f "$additional_libdir/lib$name.$libext"; then
17029                 found_dir="$additional_libdir"
17030                 found_a="$additional_libdir/lib$name.$libext"
17031                 if test -f "$additional_libdir/lib$name.la"; then
17032                   found_la="$additional_libdir/lib$name.la"
17033                 fi
17034               fi
17035             fi
17036           fi
17037           if test "X$found_dir" = "X"; then
17038             for x in $LDFLAGS $LTLIBICONV; do
17039
17040   acl_save_prefix="$prefix"
17041   prefix="$acl_final_prefix"
17042   acl_save_exec_prefix="$exec_prefix"
17043   exec_prefix="$acl_final_exec_prefix"
17044   eval x=\"$x\"
17045   exec_prefix="$acl_save_exec_prefix"
17046   prefix="$acl_save_prefix"
17047
17048               case "$x" in
17049                 -L*)
17050                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17051                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17052                     found_dir="$dir"
17053                     found_so="$dir/lib$name.$shlibext"
17054                     if test -f "$dir/lib$name.la"; then
17055                       found_la="$dir/lib$name.la"
17056                     fi
17057                   else
17058                     if test -f "$dir/lib$name.$libext"; then
17059                       found_dir="$dir"
17060                       found_a="$dir/lib$name.$libext"
17061                       if test -f "$dir/lib$name.la"; then
17062                         found_la="$dir/lib$name.la"
17063                       fi
17064                     fi
17065                   fi
17066                   ;;
17067               esac
17068               if test "X$found_dir" != "X"; then
17069                 break
17070               fi
17071             done
17072           fi
17073           if test "X$found_dir" != "X"; then
17074                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17075             if test "X$found_so" != "X"; then
17076                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17077                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17078               else
17079                                                                                 haveit=
17080                 for x in $ltrpathdirs; do
17081                   if test "X$x" = "X$found_dir"; then
17082                     haveit=yes
17083                     break
17084                   fi
17085                 done
17086                 if test -z "$haveit"; then
17087                   ltrpathdirs="$ltrpathdirs $found_dir"
17088                 fi
17089                                 if test "$hardcode_direct" = yes; then
17090                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17091                 else
17092                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17093                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17094                                                             haveit=
17095                     for x in $rpathdirs; do
17096                       if test "X$x" = "X$found_dir"; then
17097                         haveit=yes
17098                         break
17099                       fi
17100                     done
17101                     if test -z "$haveit"; then
17102                       rpathdirs="$rpathdirs $found_dir"
17103                     fi
17104                   else
17105                                                                                 haveit=
17106                     for x in $LDFLAGS $LIBICONV; do
17107
17108   acl_save_prefix="$prefix"
17109   prefix="$acl_final_prefix"
17110   acl_save_exec_prefix="$exec_prefix"
17111   exec_prefix="$acl_final_exec_prefix"
17112   eval x=\"$x\"
17113   exec_prefix="$acl_save_exec_prefix"
17114   prefix="$acl_save_prefix"
17115
17116                       if test "X$x" = "X-L$found_dir"; then
17117                         haveit=yes
17118                         break
17119                       fi
17120                     done
17121                     if test -z "$haveit"; then
17122                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17123                     fi
17124                     if test "$hardcode_minus_L" != no; then
17125                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17126                     else
17127                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17128                     fi
17129                   fi
17130                 fi
17131               fi
17132             else
17133               if test "X$found_a" != "X"; then
17134                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17135               else
17136                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17137               fi
17138             fi
17139                         additional_includedir=
17140             case "$found_dir" in
17141               */lib | */lib/)
17142                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17143                 additional_includedir="$basedir/include"
17144                 ;;
17145             esac
17146             if test "X$additional_includedir" != "X"; then
17147                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17148                 haveit=
17149                 if test "X$additional_includedir" = "X/usr/local/include"; then
17150                   if test -n "$GCC"; then
17151                     case $host_os in
17152                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17153                     esac
17154                   fi
17155                 fi
17156                 if test -z "$haveit"; then
17157                   for x in $CPPFLAGS $INCICONV; do
17158
17159   acl_save_prefix="$prefix"
17160   prefix="$acl_final_prefix"
17161   acl_save_exec_prefix="$exec_prefix"
17162   exec_prefix="$acl_final_exec_prefix"
17163   eval x=\"$x\"
17164   exec_prefix="$acl_save_exec_prefix"
17165   prefix="$acl_save_prefix"
17166
17167                     if test "X$x" = "X-I$additional_includedir"; then
17168                       haveit=yes
17169                       break
17170                     fi
17171                   done
17172                   if test -z "$haveit"; then
17173                     if test -d "$additional_includedir"; then
17174                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17175                     fi
17176                   fi
17177                 fi
17178               fi
17179             fi
17180                         if test -n "$found_la"; then
17181                                                         save_libdir="$libdir"
17182               case "$found_la" in
17183                 */* | *\\*) . "$found_la" ;;
17184                 *) . "./$found_la" ;;
17185               esac
17186               libdir="$save_libdir"
17187                             for dep in $dependency_libs; do
17188                 case "$dep" in
17189                   -L*)
17190                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17191                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17192                       haveit=
17193                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17194                         if test -n "$GCC"; then
17195                           case $host_os in
17196                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17197                           esac
17198                         fi
17199                       fi
17200                       if test -z "$haveit"; then
17201                         haveit=
17202                         for x in $LDFLAGS $LIBICONV; do
17203
17204   acl_save_prefix="$prefix"
17205   prefix="$acl_final_prefix"
17206   acl_save_exec_prefix="$exec_prefix"
17207   exec_prefix="$acl_final_exec_prefix"
17208   eval x=\"$x\"
17209   exec_prefix="$acl_save_exec_prefix"
17210   prefix="$acl_save_prefix"
17211
17212                           if test "X$x" = "X-L$additional_libdir"; then
17213                             haveit=yes
17214                             break
17215                           fi
17216                         done
17217                         if test -z "$haveit"; then
17218                           if test -d "$additional_libdir"; then
17219                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17220                           fi
17221                         fi
17222                         haveit=
17223                         for x in $LDFLAGS $LTLIBICONV; do
17224
17225   acl_save_prefix="$prefix"
17226   prefix="$acl_final_prefix"
17227   acl_save_exec_prefix="$exec_prefix"
17228   exec_prefix="$acl_final_exec_prefix"
17229   eval x=\"$x\"
17230   exec_prefix="$acl_save_exec_prefix"
17231   prefix="$acl_save_prefix"
17232
17233                           if test "X$x" = "X-L$additional_libdir"; then
17234                             haveit=yes
17235                             break
17236                           fi
17237                         done
17238                         if test -z "$haveit"; then
17239                           if test -d "$additional_libdir"; then
17240                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17241                           fi
17242                         fi
17243                       fi
17244                     fi
17245                     ;;
17246                   -R*)
17247                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17248                     if test "$enable_rpath" != no; then
17249                                                                   haveit=
17250                       for x in $rpathdirs; do
17251                         if test "X$x" = "X$dir"; then
17252                           haveit=yes
17253                           break
17254                         fi
17255                       done
17256                       if test -z "$haveit"; then
17257                         rpathdirs="$rpathdirs $dir"
17258                       fi
17259                                                                   haveit=
17260                       for x in $ltrpathdirs; do
17261                         if test "X$x" = "X$dir"; then
17262                           haveit=yes
17263                           break
17264                         fi
17265                       done
17266                       if test -z "$haveit"; then
17267                         ltrpathdirs="$ltrpathdirs $dir"
17268                       fi
17269                     fi
17270                     ;;
17271                   -l*)
17272                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17273                     ;;
17274                   *.la)
17275                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17276                     ;;
17277                   *)
17278                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17279                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17280                     ;;
17281                 esac
17282               done
17283             fi
17284           else
17285                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17286             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17287           fi
17288         fi
17289       fi
17290     done
17291   done
17292   if test "X$rpathdirs" != "X"; then
17293     if test -n "$hardcode_libdir_separator"; then
17294                         alldirs=
17295       for found_dir in $rpathdirs; do
17296         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17297       done
17298             acl_save_libdir="$libdir"
17299       libdir="$alldirs"
17300       eval flag=\"$hardcode_libdir_flag_spec\"
17301       libdir="$acl_save_libdir"
17302       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17303     else
17304             for found_dir in $rpathdirs; do
17305         acl_save_libdir="$libdir"
17306         libdir="$found_dir"
17307         eval flag=\"$hardcode_libdir_flag_spec\"
17308         libdir="$acl_save_libdir"
17309         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17310       done
17311     fi
17312   fi
17313   if test "X$ltrpathdirs" != "X"; then
17314             for found_dir in $ltrpathdirs; do
17315       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17316     done
17317   fi
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17337 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17338 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17339   echo $ECHO_N "(cached) $ECHO_C" >&6
17340 else
17341   gt_save_CPPFLAGS="$CPPFLAGS"
17342      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17343      gt_save_LIBS="$LIBS"
17344      LIBS="$LIBS -framework CoreFoundation"
17345      cat >conftest.$ac_ext <<_ACEOF
17346 /* confdefs.h.  */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h.  */
17351 #include <CFPreferences.h>
17352 int
17353 main ()
17354 {
17355 CFPreferencesCopyAppValue(NULL, NULL)
17356   ;
17357   return 0;
17358 }
17359 _ACEOF
17360 rm -f conftest.$ac_objext conftest$ac_exeext
17361 if { (ac_try="$ac_link"
17362 case "(($ac_try" in
17363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364   *) ac_try_echo=$ac_try;;
17365 esac
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367   (eval "$ac_link") 2>conftest.er1
17368   ac_status=$?
17369   grep -v '^ *+' conftest.er1 >conftest.err
17370   rm -f conftest.er1
17371   cat conftest.err >&5
17372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373   (exit $ac_status); } && {
17374          test -z "$ac_c_werror_flag" ||
17375          test ! -s conftest.err
17376        } && test -s conftest$ac_exeext &&
17377        $as_test_x conftest$ac_exeext; then
17378   gt_cv_func_CFPreferencesCopyAppValue=yes
17379 else
17380   echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17382
17383         gt_cv_func_CFPreferencesCopyAppValue=no
17384 fi
17385
17386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17387       conftest$ac_exeext conftest.$ac_ext
17388      CPPFLAGS="$gt_save_CPPFLAGS"
17389      LIBS="$gt_save_LIBS"
17390 fi
17391 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17392 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17393   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17394
17395 cat >>confdefs.h <<\_ACEOF
17396 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17397 _ACEOF
17398
17399   fi
17400     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17401 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17402 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17403   echo $ECHO_N "(cached) $ECHO_C" >&6
17404 else
17405   gt_save_CPPFLAGS="$CPPFLAGS"
17406      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17407      gt_save_LIBS="$LIBS"
17408      LIBS="$LIBS -framework CoreFoundation"
17409      cat >conftest.$ac_ext <<_ACEOF
17410 /* confdefs.h.  */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h.  */
17415 #include <CFLocale.h>
17416 int
17417 main ()
17418 {
17419 CFLocaleCopyCurrent();
17420   ;
17421   return 0;
17422 }
17423 _ACEOF
17424 rm -f conftest.$ac_objext conftest$ac_exeext
17425 if { (ac_try="$ac_link"
17426 case "(($ac_try" in
17427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428   *) ac_try_echo=$ac_try;;
17429 esac
17430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431   (eval "$ac_link") 2>conftest.er1
17432   ac_status=$?
17433   grep -v '^ *+' conftest.er1 >conftest.err
17434   rm -f conftest.er1
17435   cat conftest.err >&5
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); } && {
17438          test -z "$ac_c_werror_flag" ||
17439          test ! -s conftest.err
17440        } && test -s conftest$ac_exeext &&
17441        $as_test_x conftest$ac_exeext; then
17442   gt_cv_func_CFLocaleCopyCurrent=yes
17443 else
17444   echo "$as_me: failed program was:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17446
17447         gt_cv_func_CFLocaleCopyCurrent=no
17448 fi
17449
17450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17451       conftest$ac_exeext conftest.$ac_ext
17452      CPPFLAGS="$gt_save_CPPFLAGS"
17453      LIBS="$gt_save_LIBS"
17454 fi
17455 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17456 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17457   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17458
17459 cat >>confdefs.h <<\_ACEOF
17460 #define HAVE_CFLOCALECOPYCURRENT 1
17461 _ACEOF
17462
17463   fi
17464   INTL_MACOSX_LIBS=
17465   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17466     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17467   fi
17468
17469
17470
17471
17472   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17473 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17474     # Check whether --enable-nls was given.
17475 if test "${enable_nls+set}" = set; then
17476   enableval=$enable_nls; USE_NLS=$enableval
17477 else
17478   USE_NLS=yes
17479 fi
17480
17481   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17482 echo "${ECHO_T}$USE_NLS" >&6; }
17483
17484
17485
17486
17487   LIBINTL=
17488   LTLIBINTL=
17489   POSUB=
17490
17491     if test "$USE_NLS" = "yes"; then
17492     gt_use_preinstalled_gnugettext=no
17493
17494
17495
17496
17497
17498
17499         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17500 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17501 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17502   echo $ECHO_N "(cached) $ECHO_C" >&6
17503 else
17504   cat >conftest.$ac_ext <<_ACEOF
17505 /* confdefs.h.  */
17506 _ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h.  */
17510 #include <libintl.h>
17511 extern int _nl_msg_cat_cntr;
17512 extern int *_nl_domain_bindings;
17513 int
17514 main ()
17515 {
17516 bindtextdomain ("", "");
17517 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17518   ;
17519   return 0;
17520 }
17521 _ACEOF
17522 rm -f conftest.$ac_objext conftest$ac_exeext
17523 if { (ac_try="$ac_link"
17524 case "(($ac_try" in
17525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526   *) ac_try_echo=$ac_try;;
17527 esac
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529   (eval "$ac_link") 2>conftest.er1
17530   ac_status=$?
17531   grep -v '^ *+' conftest.er1 >conftest.err
17532   rm -f conftest.er1
17533   cat conftest.err >&5
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); } && {
17536          test -z "$ac_c_werror_flag" ||
17537          test ! -s conftest.err
17538        } && test -s conftest$ac_exeext &&
17539        $as_test_x conftest$ac_exeext; then
17540   gt_cv_func_gnugettext1_libc=yes
17541 else
17542   echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17544
17545         gt_cv_func_gnugettext1_libc=no
17546 fi
17547
17548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17549       conftest$ac_exeext conftest.$ac_ext
17550 fi
17551 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17552 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17553
17554         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17555
17556
17557
17558
17559
17560           am_save_CPPFLAGS="$CPPFLAGS"
17561
17562   for element in $INCICONV; do
17563     haveit=
17564     for x in $CPPFLAGS; do
17565
17566   acl_save_prefix="$prefix"
17567   prefix="$acl_final_prefix"
17568   acl_save_exec_prefix="$exec_prefix"
17569   exec_prefix="$acl_final_exec_prefix"
17570   eval x=\"$x\"
17571   exec_prefix="$acl_save_exec_prefix"
17572   prefix="$acl_save_prefix"
17573
17574       if test "X$x" = "X$element"; then
17575         haveit=yes
17576         break
17577       fi
17578     done
17579     if test -z "$haveit"; then
17580       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17581     fi
17582   done
17583
17584
17585   { echo "$as_me:$LINENO: checking for iconv" >&5
17586 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17587 if test "${am_cv_func_iconv+set}" = set; then
17588   echo $ECHO_N "(cached) $ECHO_C" >&6
17589 else
17590
17591     am_cv_func_iconv="no, consider installing GNU libiconv"
17592     am_cv_lib_iconv=no
17593     cat >conftest.$ac_ext <<_ACEOF
17594 /* confdefs.h.  */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h.  */
17599 #include <stdlib.h>
17600 #include <iconv.h>
17601 int
17602 main ()
17603 {
17604 iconv_t cd = iconv_open("","");
17605        iconv(cd,NULL,NULL,NULL,NULL);
17606        iconv_close(cd);
17607   ;
17608   return 0;
17609 }
17610 _ACEOF
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (ac_try="$ac_link"
17613 case "(($ac_try" in
17614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615   *) ac_try_echo=$ac_try;;
17616 esac
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618   (eval "$ac_link") 2>conftest.er1
17619   ac_status=$?
17620   grep -v '^ *+' conftest.er1 >conftest.err
17621   rm -f conftest.er1
17622   cat conftest.err >&5
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); } && {
17625          test -z "$ac_c_werror_flag" ||
17626          test ! -s conftest.err
17627        } && test -s conftest$ac_exeext &&
17628        $as_test_x conftest$ac_exeext; then
17629   am_cv_func_iconv=yes
17630 else
17631   echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17633
17634
17635 fi
17636
17637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17638       conftest$ac_exeext conftest.$ac_ext
17639     if test "$am_cv_func_iconv" != yes; then
17640       am_save_LIBS="$LIBS"
17641       LIBS="$LIBS $LIBICONV"
17642       cat >conftest.$ac_ext <<_ACEOF
17643 /* confdefs.h.  */
17644 _ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h.  */
17648 #include <stdlib.h>
17649 #include <iconv.h>
17650 int
17651 main ()
17652 {
17653 iconv_t cd = iconv_open("","");
17654          iconv(cd,NULL,NULL,NULL,NULL);
17655          iconv_close(cd);
17656   ;
17657   return 0;
17658 }
17659 _ACEOF
17660 rm -f conftest.$ac_objext conftest$ac_exeext
17661 if { (ac_try="$ac_link"
17662 case "(($ac_try" in
17663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664   *) ac_try_echo=$ac_try;;
17665 esac
17666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667   (eval "$ac_link") 2>conftest.er1
17668   ac_status=$?
17669   grep -v '^ *+' conftest.er1 >conftest.err
17670   rm -f conftest.er1
17671   cat conftest.err >&5
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); } && {
17674          test -z "$ac_c_werror_flag" ||
17675          test ! -s conftest.err
17676        } && test -s conftest$ac_exeext &&
17677        $as_test_x conftest$ac_exeext; then
17678   am_cv_lib_iconv=yes
17679         am_cv_func_iconv=yes
17680 else
17681   echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17683
17684
17685 fi
17686
17687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17688       conftest$ac_exeext conftest.$ac_ext
17689       LIBS="$am_save_LIBS"
17690     fi
17691
17692 fi
17693 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17694 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17695   if test "$am_cv_func_iconv" = yes; then
17696
17697 cat >>confdefs.h <<\_ACEOF
17698 #define HAVE_ICONV 1
17699 _ACEOF
17700
17701   fi
17702   if test "$am_cv_lib_iconv" = yes; then
17703     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17704 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17705     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17706 echo "${ECHO_T}$LIBICONV" >&6; }
17707   else
17708             CPPFLAGS="$am_save_CPPFLAGS"
17709     LIBICONV=
17710     LTLIBICONV=
17711   fi
17712
17713
17714
17715
17716
17717
17718     use_additional=yes
17719
17720   acl_save_prefix="$prefix"
17721   prefix="$acl_final_prefix"
17722   acl_save_exec_prefix="$exec_prefix"
17723   exec_prefix="$acl_final_exec_prefix"
17724
17725     eval additional_includedir=\"$includedir\"
17726     eval additional_libdir=\"$libdir\"
17727
17728   exec_prefix="$acl_save_exec_prefix"
17729   prefix="$acl_save_prefix"
17730
17731
17732 # Check whether --with-libintl-prefix was given.
17733 if test "${with_libintl_prefix+set}" = set; then
17734   withval=$with_libintl_prefix;
17735     if test "X$withval" = "Xno"; then
17736       use_additional=no
17737     else
17738       if test "X$withval" = "X"; then
17739
17740   acl_save_prefix="$prefix"
17741   prefix="$acl_final_prefix"
17742   acl_save_exec_prefix="$exec_prefix"
17743   exec_prefix="$acl_final_exec_prefix"
17744
17745           eval additional_includedir=\"$includedir\"
17746           eval additional_libdir=\"$libdir\"
17747
17748   exec_prefix="$acl_save_exec_prefix"
17749   prefix="$acl_save_prefix"
17750
17751       else
17752         additional_includedir="$withval/include"
17753         additional_libdir="$withval/lib"
17754       fi
17755     fi
17756
17757 fi
17758
17759       LIBINTL=
17760   LTLIBINTL=
17761   INCINTL=
17762   rpathdirs=
17763   ltrpathdirs=
17764   names_already_handled=
17765   names_next_round='intl '
17766   while test -n "$names_next_round"; do
17767     names_this_round="$names_next_round"
17768     names_next_round=
17769     for name in $names_this_round; do
17770       already_handled=
17771       for n in $names_already_handled; do
17772         if test "$n" = "$name"; then
17773           already_handled=yes
17774           break
17775         fi
17776       done
17777       if test -z "$already_handled"; then
17778         names_already_handled="$names_already_handled $name"
17779                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17780         eval value=\"\$HAVE_LIB$uppername\"
17781         if test -n "$value"; then
17782           if test "$value" = yes; then
17783             eval value=\"\$LIB$uppername\"
17784             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17785             eval value=\"\$LTLIB$uppername\"
17786             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17787           else
17788                                     :
17789           fi
17790         else
17791                               found_dir=
17792           found_la=
17793           found_so=
17794           found_a=
17795           if test $use_additional = yes; then
17796             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17797               found_dir="$additional_libdir"
17798               found_so="$additional_libdir/lib$name.$shlibext"
17799               if test -f "$additional_libdir/lib$name.la"; then
17800                 found_la="$additional_libdir/lib$name.la"
17801               fi
17802             else
17803               if test -f "$additional_libdir/lib$name.$libext"; then
17804                 found_dir="$additional_libdir"
17805                 found_a="$additional_libdir/lib$name.$libext"
17806                 if test -f "$additional_libdir/lib$name.la"; then
17807                   found_la="$additional_libdir/lib$name.la"
17808                 fi
17809               fi
17810             fi
17811           fi
17812           if test "X$found_dir" = "X"; then
17813             for x in $LDFLAGS $LTLIBINTL; do
17814
17815   acl_save_prefix="$prefix"
17816   prefix="$acl_final_prefix"
17817   acl_save_exec_prefix="$exec_prefix"
17818   exec_prefix="$acl_final_exec_prefix"
17819   eval x=\"$x\"
17820   exec_prefix="$acl_save_exec_prefix"
17821   prefix="$acl_save_prefix"
17822
17823               case "$x" in
17824                 -L*)
17825                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17826                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17827                     found_dir="$dir"
17828                     found_so="$dir/lib$name.$shlibext"
17829                     if test -f "$dir/lib$name.la"; then
17830                       found_la="$dir/lib$name.la"
17831                     fi
17832                   else
17833                     if test -f "$dir/lib$name.$libext"; then
17834                       found_dir="$dir"
17835                       found_a="$dir/lib$name.$libext"
17836                       if test -f "$dir/lib$name.la"; then
17837                         found_la="$dir/lib$name.la"
17838                       fi
17839                     fi
17840                   fi
17841                   ;;
17842               esac
17843               if test "X$found_dir" != "X"; then
17844                 break
17845               fi
17846             done
17847           fi
17848           if test "X$found_dir" != "X"; then
17849                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17850             if test "X$found_so" != "X"; then
17851                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17852                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17853               else
17854                                                                                 haveit=
17855                 for x in $ltrpathdirs; do
17856                   if test "X$x" = "X$found_dir"; then
17857                     haveit=yes
17858                     break
17859                   fi
17860                 done
17861                 if test -z "$haveit"; then
17862                   ltrpathdirs="$ltrpathdirs $found_dir"
17863                 fi
17864                                 if test "$hardcode_direct" = yes; then
17865                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17866                 else
17867                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17868                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17869                                                             haveit=
17870                     for x in $rpathdirs; do
17871                       if test "X$x" = "X$found_dir"; then
17872                         haveit=yes
17873                         break
17874                       fi
17875                     done
17876                     if test -z "$haveit"; then
17877                       rpathdirs="$rpathdirs $found_dir"
17878                     fi
17879                   else
17880                                                                                 haveit=
17881                     for x in $LDFLAGS $LIBINTL; do
17882
17883   acl_save_prefix="$prefix"
17884   prefix="$acl_final_prefix"
17885   acl_save_exec_prefix="$exec_prefix"
17886   exec_prefix="$acl_final_exec_prefix"
17887   eval x=\"$x\"
17888   exec_prefix="$acl_save_exec_prefix"
17889   prefix="$acl_save_prefix"
17890
17891                       if test "X$x" = "X-L$found_dir"; then
17892                         haveit=yes
17893                         break
17894                       fi
17895                     done
17896                     if test -z "$haveit"; then
17897                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17898                     fi
17899                     if test "$hardcode_minus_L" != no; then
17900                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17901                     else
17902                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17903                     fi
17904                   fi
17905                 fi
17906               fi
17907             else
17908               if test "X$found_a" != "X"; then
17909                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17910               else
17911                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17912               fi
17913             fi
17914                         additional_includedir=
17915             case "$found_dir" in
17916               */lib | */lib/)
17917                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17918                 additional_includedir="$basedir/include"
17919                 ;;
17920             esac
17921             if test "X$additional_includedir" != "X"; then
17922                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17923                 haveit=
17924                 if test "X$additional_includedir" = "X/usr/local/include"; then
17925                   if test -n "$GCC"; then
17926                     case $host_os in
17927                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17928                     esac
17929                   fi
17930                 fi
17931                 if test -z "$haveit"; then
17932                   for x in $CPPFLAGS $INCINTL; do
17933
17934   acl_save_prefix="$prefix"
17935   prefix="$acl_final_prefix"
17936   acl_save_exec_prefix="$exec_prefix"
17937   exec_prefix="$acl_final_exec_prefix"
17938   eval x=\"$x\"
17939   exec_prefix="$acl_save_exec_prefix"
17940   prefix="$acl_save_prefix"
17941
17942                     if test "X$x" = "X-I$additional_includedir"; then
17943                       haveit=yes
17944                       break
17945                     fi
17946                   done
17947                   if test -z "$haveit"; then
17948                     if test -d "$additional_includedir"; then
17949                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17950                     fi
17951                   fi
17952                 fi
17953               fi
17954             fi
17955                         if test -n "$found_la"; then
17956                                                         save_libdir="$libdir"
17957               case "$found_la" in
17958                 */* | *\\*) . "$found_la" ;;
17959                 *) . "./$found_la" ;;
17960               esac
17961               libdir="$save_libdir"
17962                             for dep in $dependency_libs; do
17963                 case "$dep" in
17964                   -L*)
17965                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17966                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17967                       haveit=
17968                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17969                         if test -n "$GCC"; then
17970                           case $host_os in
17971                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17972                           esac
17973                         fi
17974                       fi
17975                       if test -z "$haveit"; then
17976                         haveit=
17977                         for x in $LDFLAGS $LIBINTL; do
17978
17979   acl_save_prefix="$prefix"
17980   prefix="$acl_final_prefix"
17981   acl_save_exec_prefix="$exec_prefix"
17982   exec_prefix="$acl_final_exec_prefix"
17983   eval x=\"$x\"
17984   exec_prefix="$acl_save_exec_prefix"
17985   prefix="$acl_save_prefix"
17986
17987                           if test "X$x" = "X-L$additional_libdir"; then
17988                             haveit=yes
17989                             break
17990                           fi
17991                         done
17992                         if test -z "$haveit"; then
17993                           if test -d "$additional_libdir"; then
17994                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17995                           fi
17996                         fi
17997                         haveit=
17998                         for x in $LDFLAGS $LTLIBINTL; do
17999
18000   acl_save_prefix="$prefix"
18001   prefix="$acl_final_prefix"
18002   acl_save_exec_prefix="$exec_prefix"
18003   exec_prefix="$acl_final_exec_prefix"
18004   eval x=\"$x\"
18005   exec_prefix="$acl_save_exec_prefix"
18006   prefix="$acl_save_prefix"
18007
18008                           if test "X$x" = "X-L$additional_libdir"; then
18009                             haveit=yes
18010                             break
18011                           fi
18012                         done
18013                         if test -z "$haveit"; then
18014                           if test -d "$additional_libdir"; then
18015                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18016                           fi
18017                         fi
18018                       fi
18019                     fi
18020                     ;;
18021                   -R*)
18022                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18023                     if test "$enable_rpath" != no; then
18024                                                                   haveit=
18025                       for x in $rpathdirs; do
18026                         if test "X$x" = "X$dir"; then
18027                           haveit=yes
18028                           break
18029                         fi
18030                       done
18031                       if test -z "$haveit"; then
18032                         rpathdirs="$rpathdirs $dir"
18033                       fi
18034                                                                   haveit=
18035                       for x in $ltrpathdirs; do
18036                         if test "X$x" = "X$dir"; then
18037                           haveit=yes
18038                           break
18039                         fi
18040                       done
18041                       if test -z "$haveit"; then
18042                         ltrpathdirs="$ltrpathdirs $dir"
18043                       fi
18044                     fi
18045                     ;;
18046                   -l*)
18047                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18048                     ;;
18049                   *.la)
18050                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18051                     ;;
18052                   *)
18053                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18054                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18055                     ;;
18056                 esac
18057               done
18058             fi
18059           else
18060                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18061             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18062           fi
18063         fi
18064       fi
18065     done
18066   done
18067   if test "X$rpathdirs" != "X"; then
18068     if test -n "$hardcode_libdir_separator"; then
18069                         alldirs=
18070       for found_dir in $rpathdirs; do
18071         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18072       done
18073             acl_save_libdir="$libdir"
18074       libdir="$alldirs"
18075       eval flag=\"$hardcode_libdir_flag_spec\"
18076       libdir="$acl_save_libdir"
18077       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18078     else
18079             for found_dir in $rpathdirs; do
18080         acl_save_libdir="$libdir"
18081         libdir="$found_dir"
18082         eval flag=\"$hardcode_libdir_flag_spec\"
18083         libdir="$acl_save_libdir"
18084         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18085       done
18086     fi
18087   fi
18088   if test "X$ltrpathdirs" != "X"; then
18089             for found_dir in $ltrpathdirs; do
18090       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18091     done
18092   fi
18093
18094           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18095 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18096 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18097   echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18099   gt_save_CPPFLAGS="$CPPFLAGS"
18100             CPPFLAGS="$CPPFLAGS $INCINTL"
18101             gt_save_LIBS="$LIBS"
18102             LIBS="$LIBS $LIBINTL"
18103                         cat >conftest.$ac_ext <<_ACEOF
18104 /* confdefs.h.  */
18105 _ACEOF
18106 cat confdefs.h >>conftest.$ac_ext
18107 cat >>conftest.$ac_ext <<_ACEOF
18108 /* end confdefs.h.  */
18109 #include <libintl.h>
18110 extern int _nl_msg_cat_cntr;
18111 extern
18112 #ifdef __cplusplus
18113 "C"
18114 #endif
18115 const char *_nl_expand_alias (const char *);
18116 int
18117 main ()
18118 {
18119 bindtextdomain ("", "");
18120 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18121   ;
18122   return 0;
18123 }
18124 _ACEOF
18125 rm -f conftest.$ac_objext conftest$ac_exeext
18126 if { (ac_try="$ac_link"
18127 case "(($ac_try" in
18128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129   *) ac_try_echo=$ac_try;;
18130 esac
18131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132   (eval "$ac_link") 2>conftest.er1
18133   ac_status=$?
18134   grep -v '^ *+' conftest.er1 >conftest.err
18135   rm -f conftest.er1
18136   cat conftest.err >&5
18137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138   (exit $ac_status); } && {
18139          test -z "$ac_c_werror_flag" ||
18140          test ! -s conftest.err
18141        } && test -s conftest$ac_exeext &&
18142        $as_test_x conftest$ac_exeext; then
18143   gt_cv_func_gnugettext1_libintl=yes
18144 else
18145   echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18147
18148         gt_cv_func_gnugettext1_libintl=no
18149 fi
18150
18151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18152       conftest$ac_exeext conftest.$ac_ext
18153                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18154               LIBS="$LIBS $LIBICONV"
18155               cat >conftest.$ac_ext <<_ACEOF
18156 /* confdefs.h.  */
18157 _ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h.  */
18161 #include <libintl.h>
18162 extern int _nl_msg_cat_cntr;
18163 extern
18164 #ifdef __cplusplus
18165 "C"
18166 #endif
18167 const char *_nl_expand_alias (const char *);
18168 int
18169 main ()
18170 {
18171 bindtextdomain ("", "");
18172 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18173   ;
18174   return 0;
18175 }
18176 _ACEOF
18177 rm -f conftest.$ac_objext conftest$ac_exeext
18178 if { (ac_try="$ac_link"
18179 case "(($ac_try" in
18180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181   *) ac_try_echo=$ac_try;;
18182 esac
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184   (eval "$ac_link") 2>conftest.er1
18185   ac_status=$?
18186   grep -v '^ *+' conftest.er1 >conftest.err
18187   rm -f conftest.er1
18188   cat conftest.err >&5
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); } && {
18191          test -z "$ac_c_werror_flag" ||
18192          test ! -s conftest.err
18193        } && test -s conftest$ac_exeext &&
18194        $as_test_x conftest$ac_exeext; then
18195   LIBINTL="$LIBINTL $LIBICONV"
18196                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18197                 gt_cv_func_gnugettext1_libintl=yes
18198
18199 else
18200   echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18202
18203
18204 fi
18205
18206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18207       conftest$ac_exeext conftest.$ac_ext
18208             fi
18209             CPPFLAGS="$gt_save_CPPFLAGS"
18210             LIBS="$gt_save_LIBS"
18211 fi
18212 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18213 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18214         fi
18215
18216                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18217            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18218                 && test "$PACKAGE" != gettext-runtime \
18219                 && test "$PACKAGE" != gettext-tools; }; then
18220           gt_use_preinstalled_gnugettext=yes
18221         else
18222                     LIBINTL=
18223           LTLIBINTL=
18224           INCINTL=
18225         fi
18226
18227
18228
18229     if test -n "$INTL_MACOSX_LIBS"; then
18230       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18231          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18232                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18233         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18234       fi
18235     fi
18236
18237     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18238        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18239
18240 cat >>confdefs.h <<\_ACEOF
18241 #define ENABLE_NLS 1
18242 _ACEOF
18243
18244     else
18245       USE_NLS=no
18246     fi
18247   fi
18248
18249   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18250 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18251   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18252 echo "${ECHO_T}$USE_NLS" >&6; }
18253   if test "$USE_NLS" = "yes"; then
18254     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18255 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18256     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18257       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18258         gt_source="external libintl"
18259       else
18260         gt_source="libc"
18261       fi
18262     else
18263       gt_source="included intl directory"
18264     fi
18265     { echo "$as_me:$LINENO: result: $gt_source" >&5
18266 echo "${ECHO_T}$gt_source" >&6; }
18267   fi
18268
18269   if test "$USE_NLS" = "yes"; then
18270
18271     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18272       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18273         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18274 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18275         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18276 echo "${ECHO_T}$LIBINTL" >&6; }
18277
18278   for element in $INCINTL; do
18279     haveit=
18280     for x in $CPPFLAGS; do
18281
18282   acl_save_prefix="$prefix"
18283   prefix="$acl_final_prefix"
18284   acl_save_exec_prefix="$exec_prefix"
18285   exec_prefix="$acl_final_exec_prefix"
18286   eval x=\"$x\"
18287   exec_prefix="$acl_save_exec_prefix"
18288   prefix="$acl_save_prefix"
18289
18290       if test "X$x" = "X$element"; then
18291         haveit=yes
18292         break
18293       fi
18294     done
18295     if test -z "$haveit"; then
18296       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18297     fi
18298   done
18299
18300       fi
18301
18302
18303 cat >>confdefs.h <<\_ACEOF
18304 #define HAVE_GETTEXT 1
18305 _ACEOF
18306
18307
18308 cat >>confdefs.h <<\_ACEOF
18309 #define HAVE_DCGETTEXT 1
18310 _ACEOF
18311
18312     fi
18313
18314         POSUB=po
18315   fi
18316
18317
18318
18319     INTLLIBS="$LIBINTL"
18320
18321
18322
18323
18324
18325
18326
18327 os_name=`uname -s 2>/dev/null`
18328 if test x${prefix} = xNONE ; then
18329    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18330       sysconfdir=/etc/bacula
18331    fi
18332
18333    if test `eval echo ${libdir}` = NONE/lib ; then
18334       case ${os_name} in
18335       Linux)
18336          os_processor=`uname -p 2>/dev/null`
18337          case ${os_processor} in
18338          x86_64)
18339             libdir=/usr/lib64
18340             ;;
18341          *)
18342             libdir=/usr/lib
18343             ;;
18344          esac
18345          ;;
18346       *)
18347          libdir=/usr/lib
18348          ;;
18349       esac
18350    fi
18351
18352    if test `eval echo ${includedir}` = NONE/include ; then
18353       includedir=/usr/include
18354    fi
18355
18356    if test `eval echo ${datarootdir}` = NONE/share ; then
18357       datarootdir=/usr/share
18358    fi
18359    prefix=
18360 fi
18361
18362 if test x${exec_prefix} = xNONE ; then
18363    exec_prefix=${prefix}
18364 fi
18365
18366 sysconfdir=`eval echo ${sysconfdir}`
18367 datarootdir=`eval echo ${datarootdir}`
18368 docdir=`eval echo ${docdir}`
18369 htmldir=`eval echo ${htmldir}`
18370 libdir=`eval echo ${libdir}`
18371 includedir=`eval echo ${includedir}`
18372 localedir=`eval echo ${datarootdir}/locale`
18373 cat >>confdefs.h <<_ACEOF
18374 #define SYSCONFDIR "$sysconfdir"
18375 _ACEOF
18376
18377 cat >>confdefs.h <<_ACEOF
18378 #define LOCALEDIR "$localedir"
18379 _ACEOF
18380
18381
18382 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18383    sbindir=${exec_prefix}/sbin
18384 fi
18385 sbindir=`eval echo ${sbindir}`
18386
18387 if test x$mandir = x'${prefix}/man' ; then
18388    mandir=/usr/share/man
18389 fi
18390
18391 if test x$htmldir = x${docdir} ; then
18392    htmldir=`eval echo ${docdir}bacula/html`
18393 fi
18394
18395 if test x$docdir = x'/usr/share/doc/' ; then
18396    docdir=`eval echo ${docdir}bacula`
18397 fi
18398
18399
18400 for ac_prog in msgfmt
18401 do
18402   # Extract the first word of "$ac_prog", so it can be a program name with args.
18403 set dummy $ac_prog; ac_word=$2
18404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18406 if test "${ac_cv_path_MSGFMT+set}" = set; then
18407   echo $ECHO_N "(cached) $ECHO_C" >&6
18408 else
18409   case $MSGFMT in
18410   [\\/]* | ?:[\\/]*)
18411   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18412   ;;
18413   *)
18414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18415 for as_dir in $PATH
18416 do
18417   IFS=$as_save_IFS
18418   test -z "$as_dir" && as_dir=.
18419   for ac_exec_ext in '' $ac_executable_extensions; do
18420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18421     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18423     break 2
18424   fi
18425 done
18426 done
18427 IFS=$as_save_IFS
18428
18429   ;;
18430 esac
18431 fi
18432 MSGFMT=$ac_cv_path_MSGFMT
18433 if test -n "$MSGFMT"; then
18434   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18435 echo "${ECHO_T}$MSGFMT" >&6; }
18436 else
18437   { echo "$as_me:$LINENO: result: no" >&5
18438 echo "${ECHO_T}no" >&6; }
18439 fi
18440
18441
18442   test -n "$MSGFMT" && break
18443 done
18444 test -n "$MSGFMT" || MSGFMT="no"
18445
18446 if test "$MSGFMT" = "no"
18447 then
18448    echo 'msgfmt program not found, disabling NLS !'
18449    USE_NLS=no
18450    USE_INCLUDED_LIBINTL=no
18451 #else
18452
18453     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18454 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18455 if test "${ac_cv_gnu_library_2+set}" = set; then
18456   echo $ECHO_N "(cached) $ECHO_C" >&6
18457 else
18458   cat >conftest.$ac_ext <<_ACEOF
18459 /* confdefs.h.  */
18460 _ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h.  */
18464
18465 #include <features.h>
18466 #ifdef __GNU_LIBRARY__
18467  #if (__GLIBC__ >= 2)
18468   Lucky GNU user
18469  #endif
18470 #endif
18471
18472 _ACEOF
18473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18474   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18475   ac_cv_gnu_library_2=yes
18476 else
18477   ac_cv_gnu_library_2=no
18478 fi
18479 rm -f conftest*
18480
18481
18482
18483 fi
18484 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18485 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18486
18487     GLIBC2="$ac_cv_gnu_library_2"
18488
18489
18490 if test -n "$ac_tool_prefix"; then
18491   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18492 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18495 if test "${ac_cv_prog_RANLIB+set}" = set; then
18496   echo $ECHO_N "(cached) $ECHO_C" >&6
18497 else
18498   if test -n "$RANLIB"; then
18499   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18500 else
18501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18502 for as_dir in $PATH
18503 do
18504   IFS=$as_save_IFS
18505   test -z "$as_dir" && as_dir=.
18506   for ac_exec_ext in '' $ac_executable_extensions; do
18507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18508     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18510     break 2
18511   fi
18512 done
18513 done
18514 IFS=$as_save_IFS
18515
18516 fi
18517 fi
18518 RANLIB=$ac_cv_prog_RANLIB
18519 if test -n "$RANLIB"; then
18520   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18521 echo "${ECHO_T}$RANLIB" >&6; }
18522 else
18523   { echo "$as_me:$LINENO: result: no" >&5
18524 echo "${ECHO_T}no" >&6; }
18525 fi
18526
18527
18528 fi
18529 if test -z "$ac_cv_prog_RANLIB"; then
18530   ac_ct_RANLIB=$RANLIB
18531   # Extract the first word of "ranlib", so it can be a program name with args.
18532 set dummy ranlib; ac_word=$2
18533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18535 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18536   echo $ECHO_N "(cached) $ECHO_C" >&6
18537 else
18538   if test -n "$ac_ct_RANLIB"; then
18539   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18540 else
18541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18542 for as_dir in $PATH
18543 do
18544   IFS=$as_save_IFS
18545   test -z "$as_dir" && as_dir=.
18546   for ac_exec_ext in '' $ac_executable_extensions; do
18547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18548     ac_cv_prog_ac_ct_RANLIB="ranlib"
18549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18550     break 2
18551   fi
18552 done
18553 done
18554 IFS=$as_save_IFS
18555
18556 fi
18557 fi
18558 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18559 if test -n "$ac_ct_RANLIB"; then
18560   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18561 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18562 else
18563   { echo "$as_me:$LINENO: result: no" >&5
18564 echo "${ECHO_T}no" >&6; }
18565 fi
18566
18567   if test "x$ac_ct_RANLIB" = x; then
18568     RANLIB=":"
18569   else
18570     case $cross_compiling:$ac_tool_warned in
18571 yes:)
18572 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18573 whose name does not start with the host triplet.  If you think this
18574 configuration is useful to you, please write to autoconf@gnu.org." >&5
18575 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18576 whose name does not start with the host triplet.  If you think this
18577 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18578 ac_tool_warned=yes ;;
18579 esac
18580     RANLIB=$ac_ct_RANLIB
18581   fi
18582 else
18583   RANLIB="$ac_cv_prog_RANLIB"
18584 fi
18585
18586
18587         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18588 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18589 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18590   echo $ECHO_N "(cached) $ECHO_C" >&6
18591 else
18592   ac_check_lib_save_LIBS=$LIBS
18593 LIBS="-lcposix  $LIBS"
18594 cat >conftest.$ac_ext <<_ACEOF
18595 /* confdefs.h.  */
18596 _ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h.  */
18600
18601 /* Override any GCC internal prototype to avoid an error.
18602    Use char because int might match the return type of a GCC
18603    builtin and then its argument prototype would still apply.  */
18604 #ifdef __cplusplus
18605 extern "C"
18606 #endif
18607 char strerror ();
18608 int
18609 main ()
18610 {
18611 return strerror ();
18612   ;
18613   return 0;
18614 }
18615 _ACEOF
18616 rm -f conftest.$ac_objext conftest$ac_exeext
18617 if { (ac_try="$ac_link"
18618 case "(($ac_try" in
18619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620   *) ac_try_echo=$ac_try;;
18621 esac
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623   (eval "$ac_link") 2>conftest.er1
18624   ac_status=$?
18625   grep -v '^ *+' conftest.er1 >conftest.err
18626   rm -f conftest.er1
18627   cat conftest.err >&5
18628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629   (exit $ac_status); } && {
18630          test -z "$ac_c_werror_flag" ||
18631          test ! -s conftest.err
18632        } && test -s conftest$ac_exeext &&
18633        $as_test_x conftest$ac_exeext; then
18634   ac_cv_lib_cposix_strerror=yes
18635 else
18636   echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18638
18639         ac_cv_lib_cposix_strerror=no
18640 fi
18641
18642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18643       conftest$ac_exeext conftest.$ac_ext
18644 LIBS=$ac_check_lib_save_LIBS
18645 fi
18646 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18647 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18648 if test $ac_cv_lib_cposix_strerror = yes; then
18649   LIBS="$LIBS -lcposix"
18650 fi
18651
18652
18653
18654 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18655 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18656 if test "${ac_cv_c_const+set}" = set; then
18657   echo $ECHO_N "(cached) $ECHO_C" >&6
18658 else
18659   cat >conftest.$ac_ext <<_ACEOF
18660 /* confdefs.h.  */
18661 _ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h.  */
18665
18666 int
18667 main ()
18668 {
18669 /* FIXME: Include the comments suggested by Paul. */
18670 #ifndef __cplusplus
18671   /* Ultrix mips cc rejects this.  */
18672   typedef int charset[2];
18673   const charset cs;
18674   /* SunOS 4.1.1 cc rejects this.  */
18675   char const *const *pcpcc;
18676   char **ppc;
18677   /* NEC SVR4.0.2 mips cc rejects this.  */
18678   struct point {int x, y;};
18679   static struct point const zero = {0,0};
18680   /* AIX XL C 1.02.0.0 rejects this.
18681      It does not let you subtract one const X* pointer from another in
18682      an arm of an if-expression whose if-part is not a constant
18683      expression */
18684   const char *g = "string";
18685   pcpcc = &g + (g ? g-g : 0);
18686   /* HPUX 7.0 cc rejects these. */
18687   ++pcpcc;
18688   ppc = (char**) pcpcc;
18689   pcpcc = (char const *const *) ppc;
18690   { /* SCO 3.2v4 cc rejects this.  */
18691     char *t;
18692     char const *s = 0 ? (char *) 0 : (char const *) 0;
18693
18694     *t++ = 0;
18695     if (s) return 0;
18696   }
18697   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18698     int x[] = {25, 17};
18699     const int *foo = &x[0];
18700     ++foo;
18701   }
18702   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18703     typedef const int *iptr;
18704     iptr p = 0;
18705     ++p;
18706   }
18707   { /* AIX XL C 1.02.0.0 rejects this saying
18708        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18709     struct s { int j; const int *ap[3]; };
18710     struct s *b; b->j = 5;
18711   }
18712   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18713     const int foo = 10;
18714     if (!foo) return 0;
18715   }
18716   return !cs[0] && !zero.x;
18717 #endif
18718
18719   ;
18720   return 0;
18721 }
18722 _ACEOF
18723 rm -f conftest.$ac_objext
18724 if { (ac_try="$ac_compile"
18725 case "(($ac_try" in
18726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727   *) ac_try_echo=$ac_try;;
18728 esac
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730   (eval "$ac_compile") 2>conftest.er1
18731   ac_status=$?
18732   grep -v '^ *+' conftest.er1 >conftest.err
18733   rm -f conftest.er1
18734   cat conftest.err >&5
18735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736   (exit $ac_status); } && {
18737          test -z "$ac_c_werror_flag" ||
18738          test ! -s conftest.err
18739        } && test -s conftest.$ac_objext; then
18740   ac_cv_c_const=yes
18741 else
18742   echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18744
18745         ac_cv_c_const=no
18746 fi
18747
18748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18749 fi
18750 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18751 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18752 if test $ac_cv_c_const = no; then
18753
18754 cat >>confdefs.h <<\_ACEOF
18755 #define const
18756 _ACEOF
18757
18758 fi
18759
18760
18761   { echo "$as_me:$LINENO: checking for signed" >&5
18762 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18763 if test "${bh_cv_c_signed+set}" = set; then
18764   echo $ECHO_N "(cached) $ECHO_C" >&6
18765 else
18766   cat >conftest.$ac_ext <<_ACEOF
18767 /* confdefs.h.  */
18768 _ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h.  */
18772
18773 int
18774 main ()
18775 {
18776 signed char x;
18777   ;
18778   return 0;
18779 }
18780 _ACEOF
18781 rm -f conftest.$ac_objext
18782 if { (ac_try="$ac_compile"
18783 case "(($ac_try" in
18784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785   *) ac_try_echo=$ac_try;;
18786 esac
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788   (eval "$ac_compile") 2>conftest.er1
18789   ac_status=$?
18790   grep -v '^ *+' conftest.er1 >conftest.err
18791   rm -f conftest.er1
18792   cat conftest.err >&5
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); } && {
18795          test -z "$ac_c_werror_flag" ||
18796          test ! -s conftest.err
18797        } && test -s conftest.$ac_objext; then
18798   bh_cv_c_signed=yes
18799 else
18800   echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18802
18803         bh_cv_c_signed=no
18804 fi
18805
18806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18807 fi
18808 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18809 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18810   if test $bh_cv_c_signed = no; then
18811
18812 cat >>confdefs.h <<\_ACEOF
18813 #define signed
18814 _ACEOF
18815
18816   fi
18817
18818 { echo "$as_me:$LINENO: checking for inline" >&5
18819 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18820 if test "${ac_cv_c_inline+set}" = set; then
18821   echo $ECHO_N "(cached) $ECHO_C" >&6
18822 else
18823   ac_cv_c_inline=no
18824 for ac_kw in inline __inline__ __inline; do
18825   cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h.  */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h.  */
18831 #ifndef __cplusplus
18832 typedef int foo_t;
18833 static $ac_kw foo_t static_foo () {return 0; }
18834 $ac_kw foo_t foo () {return 0; }
18835 #endif
18836
18837 _ACEOF
18838 rm -f conftest.$ac_objext
18839 if { (ac_try="$ac_compile"
18840 case "(($ac_try" in
18841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842   *) ac_try_echo=$ac_try;;
18843 esac
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845   (eval "$ac_compile") 2>conftest.er1
18846   ac_status=$?
18847   grep -v '^ *+' conftest.er1 >conftest.err
18848   rm -f conftest.er1
18849   cat conftest.err >&5
18850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851   (exit $ac_status); } && {
18852          test -z "$ac_c_werror_flag" ||
18853          test ! -s conftest.err
18854        } && test -s conftest.$ac_objext; then
18855   ac_cv_c_inline=$ac_kw
18856 else
18857   echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18859
18860
18861 fi
18862
18863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18864   test "$ac_cv_c_inline" != no && break
18865 done
18866
18867 fi
18868 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18869 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18870
18871
18872 case $ac_cv_c_inline in
18873   inline | yes) ;;
18874   *)
18875     case $ac_cv_c_inline in
18876       no) ac_val=;;
18877       *) ac_val=$ac_cv_c_inline;;
18878     esac
18879     cat >>confdefs.h <<_ACEOF
18880 #ifndef __cplusplus
18881 #define inline $ac_val
18882 #endif
18883 _ACEOF
18884     ;;
18885 esac
18886
18887 { echo "$as_me:$LINENO: checking for off_t" >&5
18888 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18889 if test "${ac_cv_type_off_t+set}" = set; then
18890   echo $ECHO_N "(cached) $ECHO_C" >&6
18891 else
18892   cat >conftest.$ac_ext <<_ACEOF
18893 /* confdefs.h.  */
18894 _ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h.  */
18898 $ac_includes_default
18899 typedef off_t ac__type_new_;
18900 int
18901 main ()
18902 {
18903 if ((ac__type_new_ *) 0)
18904   return 0;
18905 if (sizeof (ac__type_new_))
18906   return 0;
18907   ;
18908   return 0;
18909 }
18910 _ACEOF
18911 rm -f conftest.$ac_objext
18912 if { (ac_try="$ac_compile"
18913 case "(($ac_try" in
18914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915   *) ac_try_echo=$ac_try;;
18916 esac
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918   (eval "$ac_compile") 2>conftest.er1
18919   ac_status=$?
18920   grep -v '^ *+' conftest.er1 >conftest.err
18921   rm -f conftest.er1
18922   cat conftest.err >&5
18923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924   (exit $ac_status); } && {
18925          test -z "$ac_c_werror_flag" ||
18926          test ! -s conftest.err
18927        } && test -s conftest.$ac_objext; then
18928   ac_cv_type_off_t=yes
18929 else
18930   echo "$as_me: failed program was:" >&5
18931 sed 's/^/| /' conftest.$ac_ext >&5
18932
18933         ac_cv_type_off_t=no
18934 fi
18935
18936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18937 fi
18938 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18939 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18940 if test $ac_cv_type_off_t = yes; then
18941   :
18942 else
18943
18944 cat >>confdefs.h <<_ACEOF
18945 #define off_t long int
18946 _ACEOF
18947
18948 fi
18949
18950 { echo "$as_me:$LINENO: checking for size_t" >&5
18951 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18952 if test "${ac_cv_type_size_t+set}" = set; then
18953   echo $ECHO_N "(cached) $ECHO_C" >&6
18954 else
18955   cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h.  */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h.  */
18961 $ac_includes_default
18962 typedef size_t ac__type_new_;
18963 int
18964 main ()
18965 {
18966 if ((ac__type_new_ *) 0)
18967   return 0;
18968 if (sizeof (ac__type_new_))
18969   return 0;
18970   ;
18971   return 0;
18972 }
18973 _ACEOF
18974 rm -f conftest.$ac_objext
18975 if { (ac_try="$ac_compile"
18976 case "(($ac_try" in
18977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978   *) ac_try_echo=$ac_try;;
18979 esac
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981   (eval "$ac_compile") 2>conftest.er1
18982   ac_status=$?
18983   grep -v '^ *+' conftest.er1 >conftest.err
18984   rm -f conftest.er1
18985   cat conftest.err >&5
18986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987   (exit $ac_status); } && {
18988          test -z "$ac_c_werror_flag" ||
18989          test ! -s conftest.err
18990        } && test -s conftest.$ac_objext; then
18991   ac_cv_type_size_t=yes
18992 else
18993   echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18995
18996         ac_cv_type_size_t=no
18997 fi
18998
18999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19000 fi
19001 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19002 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19003 if test $ac_cv_type_size_t = yes; then
19004   :
19005 else
19006
19007 cat >>confdefs.h <<_ACEOF
19008 #define size_t unsigned int
19009 _ACEOF
19010
19011 fi
19012
19013
19014   { echo "$as_me:$LINENO: checking for long long" >&5
19015 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19016 if test "${ac_cv_type_long_long+set}" = set; then
19017   echo $ECHO_N "(cached) $ECHO_C" >&6
19018 else
19019   cat >conftest.$ac_ext <<_ACEOF
19020 /* confdefs.h.  */
19021 _ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h.  */
19025 long long ll = 1LL; int i = 63;
19026 int
19027 main ()
19028 {
19029 long long llmax = (long long) -1;
19030      return ll << i | ll >> i | llmax / ll | llmax % ll;
19031   ;
19032   return 0;
19033 }
19034 _ACEOF
19035 rm -f conftest.$ac_objext conftest$ac_exeext
19036 if { (ac_try="$ac_link"
19037 case "(($ac_try" in
19038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039   *) ac_try_echo=$ac_try;;
19040 esac
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042   (eval "$ac_link") 2>conftest.er1
19043   ac_status=$?
19044   grep -v '^ *+' conftest.er1 >conftest.err
19045   rm -f conftest.er1
19046   cat conftest.err >&5
19047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048   (exit $ac_status); } && {
19049          test -z "$ac_c_werror_flag" ||
19050          test ! -s conftest.err
19051        } && test -s conftest$ac_exeext &&
19052        $as_test_x conftest$ac_exeext; then
19053   ac_cv_type_long_long=yes
19054 else
19055   echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19057
19058         ac_cv_type_long_long=no
19059 fi
19060
19061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19062       conftest$ac_exeext conftest.$ac_ext
19063 fi
19064 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19065 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19066   if test $ac_cv_type_long_long = yes; then
19067
19068 cat >>confdefs.h <<\_ACEOF
19069 #define HAVE_LONG_LONG 1
19070 _ACEOF
19071
19072   fi
19073
19074
19075   { echo "$as_me:$LINENO: checking for long double" >&5
19076 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19077 if test "${gt_cv_c_long_double+set}" = set; then
19078   echo $ECHO_N "(cached) $ECHO_C" >&6
19079 else
19080   if test "$GCC" = yes; then
19081        gt_cv_c_long_double=yes
19082      else
19083        cat >conftest.$ac_ext <<_ACEOF
19084 /* confdefs.h.  */
19085 _ACEOF
19086 cat confdefs.h >>conftest.$ac_ext
19087 cat >>conftest.$ac_ext <<_ACEOF
19088 /* end confdefs.h.  */
19089
19090          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19091          long double foo = 0.0;
19092          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19093          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19094
19095 int
19096 main ()
19097 {
19098
19099   ;
19100   return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest.$ac_objext
19104 if { (ac_try="$ac_compile"
19105 case "(($ac_try" in
19106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107   *) ac_try_echo=$ac_try;;
19108 esac
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110   (eval "$ac_compile") 2>conftest.er1
19111   ac_status=$?
19112   grep -v '^ *+' conftest.er1 >conftest.err
19113   rm -f conftest.er1
19114   cat conftest.err >&5
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); } && {
19117          test -z "$ac_c_werror_flag" ||
19118          test ! -s conftest.err
19119        } && test -s conftest.$ac_objext; then
19120   gt_cv_c_long_double=yes
19121 else
19122   echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19124
19125         gt_cv_c_long_double=no
19126 fi
19127
19128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19129      fi
19130 fi
19131 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19132 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19133   if test $gt_cv_c_long_double = yes; then
19134
19135 cat >>confdefs.h <<\_ACEOF
19136 #define HAVE_LONG_DOUBLE 1
19137 _ACEOF
19138
19139   fi
19140
19141
19142   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19143 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19144 if test "${gt_cv_c_wchar_t+set}" = set; then
19145   echo $ECHO_N "(cached) $ECHO_C" >&6
19146 else
19147   cat >conftest.$ac_ext <<_ACEOF
19148 /* confdefs.h.  */
19149 _ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h.  */
19153 #include <stddef.h>
19154        wchar_t foo = (wchar_t)'\0';
19155 int
19156 main ()
19157 {
19158
19159   ;
19160   return 0;
19161 }
19162 _ACEOF
19163 rm -f conftest.$ac_objext
19164 if { (ac_try="$ac_compile"
19165 case "(($ac_try" in
19166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167   *) ac_try_echo=$ac_try;;
19168 esac
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170   (eval "$ac_compile") 2>conftest.er1
19171   ac_status=$?
19172   grep -v '^ *+' conftest.er1 >conftest.err
19173   rm -f conftest.er1
19174   cat conftest.err >&5
19175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176   (exit $ac_status); } && {
19177          test -z "$ac_c_werror_flag" ||
19178          test ! -s conftest.err
19179        } && test -s conftest.$ac_objext; then
19180   gt_cv_c_wchar_t=yes
19181 else
19182   echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19184
19185         gt_cv_c_wchar_t=no
19186 fi
19187
19188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19189 fi
19190 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19191 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19192   if test $gt_cv_c_wchar_t = yes; then
19193
19194 cat >>confdefs.h <<\_ACEOF
19195 #define HAVE_WCHAR_T 1
19196 _ACEOF
19197
19198   fi
19199
19200
19201   { echo "$as_me:$LINENO: checking for wint_t" >&5
19202 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19203 if test "${gt_cv_c_wint_t+set}" = set; then
19204   echo $ECHO_N "(cached) $ECHO_C" >&6
19205 else
19206   cat >conftest.$ac_ext <<_ACEOF
19207 /* confdefs.h.  */
19208 _ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h.  */
19212 #include <wchar.h>
19213        wint_t foo = (wchar_t)'\0';
19214 int
19215 main ()
19216 {
19217
19218   ;
19219   return 0;
19220 }
19221 _ACEOF
19222 rm -f conftest.$ac_objext
19223 if { (ac_try="$ac_compile"
19224 case "(($ac_try" in
19225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226   *) ac_try_echo=$ac_try;;
19227 esac
19228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19229   (eval "$ac_compile") 2>conftest.er1
19230   ac_status=$?
19231   grep -v '^ *+' conftest.er1 >conftest.err
19232   rm -f conftest.er1
19233   cat conftest.err >&5
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); } && {
19236          test -z "$ac_c_werror_flag" ||
19237          test ! -s conftest.err
19238        } && test -s conftest.$ac_objext; then
19239   gt_cv_c_wint_t=yes
19240 else
19241   echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19243
19244         gt_cv_c_wint_t=no
19245 fi
19246
19247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19248 fi
19249 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19250 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19251   if test $gt_cv_c_wint_t = yes; then
19252
19253 cat >>confdefs.h <<\_ACEOF
19254 #define HAVE_WINT_T 1
19255 _ACEOF
19256
19257   fi
19258
19259
19260   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19261 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19262 if test "${gl_cv_header_inttypes_h+set}" = set; then
19263   echo $ECHO_N "(cached) $ECHO_C" >&6
19264 else
19265   cat >conftest.$ac_ext <<_ACEOF
19266 /* confdefs.h.  */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h.  */
19271 #include <sys/types.h>
19272 #include <inttypes.h>
19273 int
19274 main ()
19275 {
19276 uintmax_t i = (uintmax_t) -1;
19277   ;
19278   return 0;
19279 }
19280 _ACEOF
19281 rm -f conftest.$ac_objext
19282 if { (ac_try="$ac_compile"
19283 case "(($ac_try" in
19284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285   *) ac_try_echo=$ac_try;;
19286 esac
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288   (eval "$ac_compile") 2>conftest.er1
19289   ac_status=$?
19290   grep -v '^ *+' conftest.er1 >conftest.err
19291   rm -f conftest.er1
19292   cat conftest.err >&5
19293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294   (exit $ac_status); } && {
19295          test -z "$ac_c_werror_flag" ||
19296          test ! -s conftest.err
19297        } && test -s conftest.$ac_objext; then
19298   gl_cv_header_inttypes_h=yes
19299 else
19300   echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303         gl_cv_header_inttypes_h=no
19304 fi
19305
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19307 fi
19308 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19309 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19310   if test $gl_cv_header_inttypes_h = yes; then
19311
19312 cat >>confdefs.h <<_ACEOF
19313 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19314 _ACEOF
19315
19316   fi
19317
19318
19319   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19320 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19321 if test "${gl_cv_header_stdint_h+set}" = set; then
19322   echo $ECHO_N "(cached) $ECHO_C" >&6
19323 else
19324   cat >conftest.$ac_ext <<_ACEOF
19325 /* confdefs.h.  */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h.  */
19330 #include <sys/types.h>
19331 #include <stdint.h>
19332 int
19333 main ()
19334 {
19335 uintmax_t i = (uintmax_t) -1;
19336   ;
19337   return 0;
19338 }
19339 _ACEOF
19340 rm -f conftest.$ac_objext
19341 if { (ac_try="$ac_compile"
19342 case "(($ac_try" in
19343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344   *) ac_try_echo=$ac_try;;
19345 esac
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347   (eval "$ac_compile") 2>conftest.er1
19348   ac_status=$?
19349   grep -v '^ *+' conftest.er1 >conftest.err
19350   rm -f conftest.er1
19351   cat conftest.err >&5
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); } && {
19354          test -z "$ac_c_werror_flag" ||
19355          test ! -s conftest.err
19356        } && test -s conftest.$ac_objext; then
19357   gl_cv_header_stdint_h=yes
19358 else
19359   echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19361
19362         gl_cv_header_stdint_h=no
19363 fi
19364
19365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19366 fi
19367 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19368 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19369   if test $gl_cv_header_stdint_h = yes; then
19370
19371 cat >>confdefs.h <<_ACEOF
19372 #define HAVE_STDINT_H_WITH_UINTMAX 1
19373 _ACEOF
19374
19375   fi
19376
19377
19378
19379
19380   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19381 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19382 if test "${gt_cv_c_intmax_t+set}" = set; then
19383   echo $ECHO_N "(cached) $ECHO_C" >&6
19384 else
19385   cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h.  */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h.  */
19391
19392 #include <stddef.h>
19393 #include <stdlib.h>
19394 #if HAVE_STDINT_H_WITH_UINTMAX
19395 #include <stdint.h>
19396 #endif
19397 #if HAVE_INTTYPES_H_WITH_UINTMAX
19398 #include <inttypes.h>
19399 #endif
19400
19401 int
19402 main ()
19403 {
19404 intmax_t x = -1;
19405   ;
19406   return 0;
19407 }
19408 _ACEOF
19409 rm -f conftest.$ac_objext
19410 if { (ac_try="$ac_compile"
19411 case "(($ac_try" in
19412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413   *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416   (eval "$ac_compile") 2>conftest.er1
19417   ac_status=$?
19418   grep -v '^ *+' conftest.er1 >conftest.err
19419   rm -f conftest.er1
19420   cat conftest.err >&5
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); } && {
19423          test -z "$ac_c_werror_flag" ||
19424          test ! -s conftest.err
19425        } && test -s conftest.$ac_objext; then
19426   gt_cv_c_intmax_t=yes
19427 else
19428   echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19430
19431         gt_cv_c_intmax_t=no
19432 fi
19433
19434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19435 fi
19436 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19437 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19438   if test $gt_cv_c_intmax_t = yes; then
19439
19440 cat >>confdefs.h <<\_ACEOF
19441 #define HAVE_INTMAX_T 1
19442 _ACEOF
19443
19444   fi
19445
19446
19447
19448   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19449 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19450 if test "${gt_cv_func_printf_posix+set}" = set; then
19451   echo $ECHO_N "(cached) $ECHO_C" >&6
19452 else
19453
19454       if test "$cross_compiling" = yes; then
19455
19456         cat >conftest.$ac_ext <<_ACEOF
19457 /* confdefs.h.  */
19458 _ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h.  */
19462
19463 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19464   notposix
19465 #endif
19466
19467 _ACEOF
19468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19469   $EGREP "notposix" >/dev/null 2>&1; then
19470   gt_cv_func_printf_posix="guessing no"
19471 else
19472   gt_cv_func_printf_posix="guessing yes"
19473 fi
19474 rm -f conftest*
19475
19476
19477 else
19478   cat >conftest.$ac_ext <<_ACEOF
19479 /* confdefs.h.  */
19480 _ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h.  */
19484
19485 #include <stdio.h>
19486 #include <string.h>
19487 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19488    dollar expansion (possibly an autoconf bug).  */
19489 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19490 static char buf[100];
19491 int main ()
19492 {
19493   sprintf (buf, format, 33, 55);
19494   return (strcmp (buf, "55 33") != 0);
19495 }
19496 _ACEOF
19497 rm -f conftest$ac_exeext
19498 if { (ac_try="$ac_link"
19499 case "(($ac_try" in
19500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501   *) ac_try_echo=$ac_try;;
19502 esac
19503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504   (eval "$ac_link") 2>&5
19505   ac_status=$?
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19508   { (case "(($ac_try" in
19509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510   *) ac_try_echo=$ac_try;;
19511 esac
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513   (eval "$ac_try") 2>&5
19514   ac_status=$?
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); }; }; then
19517   gt_cv_func_printf_posix=yes
19518 else
19519   echo "$as_me: program exited with status $ac_status" >&5
19520 echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19522
19523 ( exit $ac_status )
19524 gt_cv_func_printf_posix=no
19525 fi
19526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19527 fi
19528
19529
19530
19531 fi
19532 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19533 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19534   case $gt_cv_func_printf_posix in
19535     *yes)
19536
19537 cat >>confdefs.h <<\_ACEOF
19538 #define HAVE_POSIX_PRINTF 1
19539 _ACEOF
19540
19541       ;;
19542   esac
19543
19544 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19545 # for constant arguments.  Useless!
19546 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19547 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19548 if test "${ac_cv_working_alloca_h+set}" = set; then
19549   echo $ECHO_N "(cached) $ECHO_C" >&6
19550 else
19551   cat >conftest.$ac_ext <<_ACEOF
19552 /* confdefs.h.  */
19553 _ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h.  */
19557 #include <alloca.h>
19558 int
19559 main ()
19560 {
19561 char *p = (char *) alloca (2 * sizeof (int));
19562                           if (p) return 0;
19563   ;
19564   return 0;
19565 }
19566 _ACEOF
19567 rm -f conftest.$ac_objext conftest$ac_exeext
19568 if { (ac_try="$ac_link"
19569 case "(($ac_try" in
19570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571   *) ac_try_echo=$ac_try;;
19572 esac
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574   (eval "$ac_link") 2>conftest.er1
19575   ac_status=$?
19576   grep -v '^ *+' conftest.er1 >conftest.err
19577   rm -f conftest.er1
19578   cat conftest.err >&5
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); } && {
19581          test -z "$ac_c_werror_flag" ||
19582          test ! -s conftest.err
19583        } && test -s conftest$ac_exeext &&
19584        $as_test_x conftest$ac_exeext; then
19585   ac_cv_working_alloca_h=yes
19586 else
19587   echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19589
19590         ac_cv_working_alloca_h=no
19591 fi
19592
19593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19594       conftest$ac_exeext conftest.$ac_ext
19595 fi
19596 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19597 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19598 if test $ac_cv_working_alloca_h = yes; then
19599
19600 cat >>confdefs.h <<\_ACEOF
19601 #define HAVE_ALLOCA_H 1
19602 _ACEOF
19603
19604 fi
19605
19606 { echo "$as_me:$LINENO: checking for alloca" >&5
19607 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19608 if test "${ac_cv_func_alloca_works+set}" = set; then
19609   echo $ECHO_N "(cached) $ECHO_C" >&6
19610 else
19611   cat >conftest.$ac_ext <<_ACEOF
19612 /* confdefs.h.  */
19613 _ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h.  */
19617 #ifdef __GNUC__
19618 # define alloca __builtin_alloca
19619 #else
19620 # ifdef _MSC_VER
19621 #  include <malloc.h>
19622 #  define alloca _alloca
19623 # else
19624 #  ifdef HAVE_ALLOCA_H
19625 #   include <alloca.h>
19626 #  else
19627 #   ifdef _AIX
19628  #pragma alloca
19629 #   else
19630 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19631 char *alloca ();
19632 #    endif
19633 #   endif
19634 #  endif
19635 # endif
19636 #endif
19637
19638 int
19639 main ()
19640 {
19641 char *p = (char *) alloca (1);
19642                                     if (p) return 0;
19643   ;
19644   return 0;
19645 }
19646 _ACEOF
19647 rm -f conftest.$ac_objext conftest$ac_exeext
19648 if { (ac_try="$ac_link"
19649 case "(($ac_try" in
19650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651   *) ac_try_echo=$ac_try;;
19652 esac
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654   (eval "$ac_link") 2>conftest.er1
19655   ac_status=$?
19656   grep -v '^ *+' conftest.er1 >conftest.err
19657   rm -f conftest.er1
19658   cat conftest.err >&5
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); } && {
19661          test -z "$ac_c_werror_flag" ||
19662          test ! -s conftest.err
19663        } && test -s conftest$ac_exeext &&
19664        $as_test_x conftest$ac_exeext; then
19665   ac_cv_func_alloca_works=yes
19666 else
19667   echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19669
19670         ac_cv_func_alloca_works=no
19671 fi
19672
19673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19674       conftest$ac_exeext conftest.$ac_ext
19675 fi
19676 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19677 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19678
19679 if test $ac_cv_func_alloca_works = yes; then
19680
19681 cat >>confdefs.h <<\_ACEOF
19682 #define HAVE_ALLOCA 1
19683 _ACEOF
19684
19685 else
19686   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19687 # that cause trouble.  Some versions do not even contain alloca or
19688 # contain a buggy version.  If you still want to use their alloca,
19689 # use ar to extract alloca.o from them instead of compiling alloca.c.
19690
19691 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19692
19693 cat >>confdefs.h <<\_ACEOF
19694 #define C_ALLOCA 1
19695 _ACEOF
19696
19697
19698 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19699 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19700 if test "${ac_cv_os_cray+set}" = set; then
19701   echo $ECHO_N "(cached) $ECHO_C" >&6
19702 else
19703   cat >conftest.$ac_ext <<_ACEOF
19704 /* confdefs.h.  */
19705 _ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h.  */
19709 #if defined CRAY && ! defined CRAY2
19710 webecray
19711 #else
19712 wenotbecray
19713 #endif
19714
19715 _ACEOF
19716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19717   $EGREP "webecray" >/dev/null 2>&1; then
19718   ac_cv_os_cray=yes
19719 else
19720   ac_cv_os_cray=no
19721 fi
19722 rm -f conftest*
19723
19724 fi
19725 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19726 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19727 if test $ac_cv_os_cray = yes; then
19728   for ac_func in _getb67 GETB67 getb67; do
19729     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19733   echo $ECHO_N "(cached) $ECHO_C" >&6
19734 else
19735   cat >conftest.$ac_ext <<_ACEOF
19736 /* confdefs.h.  */
19737 _ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h.  */
19741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19743 #define $ac_func innocuous_$ac_func
19744
19745 /* System header to define __stub macros and hopefully few prototypes,
19746     which can conflict with char $ac_func (); below.
19747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19748     <limits.h> exists even on freestanding compilers.  */
19749
19750 #ifdef __STDC__
19751 # include <limits.h>
19752 #else
19753 # include <assert.h>
19754 #endif
19755
19756 #undef $ac_func
19757
19758 /* Override any GCC internal prototype to avoid an error.
19759    Use char because int might match the return type of a GCC
19760    builtin and then its argument prototype would still apply.  */
19761 #ifdef __cplusplus
19762 extern "C"
19763 #endif
19764 char $ac_func ();
19765 /* The GNU C library defines this for functions which it implements
19766     to always fail with ENOSYS.  Some functions are actually named
19767     something starting with __ and the normal name is an alias.  */
19768 #if defined __stub_$ac_func || defined __stub___$ac_func
19769 choke me
19770 #endif
19771
19772 int
19773 main ()
19774 {
19775 return $ac_func ();
19776   ;
19777   return 0;
19778 }
19779 _ACEOF
19780 rm -f conftest.$ac_objext conftest$ac_exeext
19781 if { (ac_try="$ac_link"
19782 case "(($ac_try" in
19783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784   *) ac_try_echo=$ac_try;;
19785 esac
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787   (eval "$ac_link") 2>conftest.er1
19788   ac_status=$?
19789   grep -v '^ *+' conftest.er1 >conftest.err
19790   rm -f conftest.er1
19791   cat conftest.err >&5
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); } && {
19794          test -z "$ac_c_werror_flag" ||
19795          test ! -s conftest.err
19796        } && test -s conftest$ac_exeext &&
19797        $as_test_x conftest$ac_exeext; then
19798   eval "$as_ac_var=yes"
19799 else
19800   echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19802
19803         eval "$as_ac_var=no"
19804 fi
19805
19806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19807       conftest$ac_exeext conftest.$ac_ext
19808 fi
19809 ac_res=`eval echo '${'$as_ac_var'}'`
19810                { echo "$as_me:$LINENO: result: $ac_res" >&5
19811 echo "${ECHO_T}$ac_res" >&6; }
19812 if test `eval echo '${'$as_ac_var'}'` = yes; then
19813
19814 cat >>confdefs.h <<_ACEOF
19815 #define CRAY_STACKSEG_END $ac_func
19816 _ACEOF
19817
19818     break
19819 fi
19820
19821   done
19822 fi
19823
19824 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19825 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19826 if test "${ac_cv_c_stack_direction+set}" = set; then
19827   echo $ECHO_N "(cached) $ECHO_C" >&6
19828 else
19829   if test "$cross_compiling" = yes; then
19830   ac_cv_c_stack_direction=0
19831 else
19832   cat >conftest.$ac_ext <<_ACEOF
19833 /* confdefs.h.  */
19834 _ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h.  */
19838 $ac_includes_default
19839 int
19840 find_stack_direction ()
19841 {
19842   static char *addr = 0;
19843   auto char dummy;
19844   if (addr == 0)
19845     {
19846       addr = &dummy;
19847       return find_stack_direction ();
19848     }
19849   else
19850     return (&dummy > addr) ? 1 : -1;
19851 }
19852
19853 int
19854 main ()
19855 {
19856   return find_stack_direction () < 0;
19857 }
19858 _ACEOF
19859 rm -f conftest$ac_exeext
19860 if { (ac_try="$ac_link"
19861 case "(($ac_try" in
19862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863   *) ac_try_echo=$ac_try;;
19864 esac
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866   (eval "$ac_link") 2>&5
19867   ac_status=$?
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19870   { (case "(($ac_try" in
19871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872   *) ac_try_echo=$ac_try;;
19873 esac
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875   (eval "$ac_try") 2>&5
19876   ac_status=$?
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); }; }; then
19879   ac_cv_c_stack_direction=1
19880 else
19881   echo "$as_me: program exited with status $ac_status" >&5
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19884
19885 ( exit $ac_status )
19886 ac_cv_c_stack_direction=-1
19887 fi
19888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19889 fi
19890
19891
19892 fi
19893 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19894 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19895
19896 cat >>confdefs.h <<_ACEOF
19897 #define STACK_DIRECTION $ac_cv_c_stack_direction
19898 _ACEOF
19899
19900
19901 fi
19902
19903
19904
19905 for ac_header in stdlib.h unistd.h
19906 do
19907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19909   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19912   echo $ECHO_N "(cached) $ECHO_C" >&6
19913 fi
19914 ac_res=`eval echo '${'$as_ac_Header'}'`
19915                { echo "$as_me:$LINENO: result: $ac_res" >&5
19916 echo "${ECHO_T}$ac_res" >&6; }
19917 else
19918   # Is the header compilable?
19919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19921 cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h.  */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h.  */
19927 $ac_includes_default
19928 #include <$ac_header>
19929 _ACEOF
19930 rm -f conftest.$ac_objext
19931 if { (ac_try="$ac_compile"
19932 case "(($ac_try" in
19933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934   *) ac_try_echo=$ac_try;;
19935 esac
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937   (eval "$ac_compile") 2>conftest.er1
19938   ac_status=$?
19939   grep -v '^ *+' conftest.er1 >conftest.err
19940   rm -f conftest.er1
19941   cat conftest.err >&5
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); } && {
19944          test -z "$ac_c_werror_flag" ||
19945          test ! -s conftest.err
19946        } && test -s conftest.$ac_objext; then
19947   ac_header_compiler=yes
19948 else
19949   echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19951
19952         ac_header_compiler=no
19953 fi
19954
19955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19957 echo "${ECHO_T}$ac_header_compiler" >&6; }
19958
19959 # Is the header present?
19960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h.  */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h.  */
19968 #include <$ac_header>
19969 _ACEOF
19970 if { (ac_try="$ac_cpp conftest.$ac_ext"
19971 case "(($ac_try" in
19972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973   *) ac_try_echo=$ac_try;;
19974 esac
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19977   ac_status=$?
19978   grep -v '^ *+' conftest.er1 >conftest.err
19979   rm -f conftest.er1
19980   cat conftest.err >&5
19981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982   (exit $ac_status); } >/dev/null && {
19983          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19984          test ! -s conftest.err
19985        }; then
19986   ac_header_preproc=yes
19987 else
19988   echo "$as_me: failed program was:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19990
19991   ac_header_preproc=no
19992 fi
19993
19994 rm -f conftest.err conftest.$ac_ext
19995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19996 echo "${ECHO_T}$ac_header_preproc" >&6; }
19997
19998 # So?  What about this header?
19999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20000   yes:no: )
20001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20005     ac_header_preproc=yes
20006     ;;
20007   no:yes:* )
20008     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20010     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20011 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20012     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20014     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20015 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20018     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20020
20021     ;;
20022 esac
20023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20026   echo $ECHO_N "(cached) $ECHO_C" >&6
20027 else
20028   eval "$as_ac_Header=\$ac_header_preproc"
20029 fi
20030 ac_res=`eval echo '${'$as_ac_Header'}'`
20031                { echo "$as_me:$LINENO: result: $ac_res" >&5
20032 echo "${ECHO_T}$ac_res" >&6; }
20033
20034 fi
20035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20036   cat >>confdefs.h <<_ACEOF
20037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20038 _ACEOF
20039
20040 fi
20041
20042 done
20043
20044
20045 for ac_func in getpagesize
20046 do
20047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20051   echo $ECHO_N "(cached) $ECHO_C" >&6
20052 else
20053   cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h.  */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h.  */
20059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20061 #define $ac_func innocuous_$ac_func
20062
20063 /* System header to define __stub macros and hopefully few prototypes,
20064     which can conflict with char $ac_func (); below.
20065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20066     <limits.h> exists even on freestanding compilers.  */
20067
20068 #ifdef __STDC__
20069 # include <limits.h>
20070 #else
20071 # include <assert.h>
20072 #endif
20073
20074 #undef $ac_func
20075
20076 /* Override any GCC internal prototype to avoid an error.
20077    Use char because int might match the return type of a GCC
20078    builtin and then its argument prototype would still apply.  */
20079 #ifdef __cplusplus
20080 extern "C"
20081 #endif
20082 char $ac_func ();
20083 /* The GNU C library defines this for functions which it implements
20084     to always fail with ENOSYS.  Some functions are actually named
20085     something starting with __ and the normal name is an alias.  */
20086 #if defined __stub_$ac_func || defined __stub___$ac_func
20087 choke me
20088 #endif
20089
20090 int
20091 main ()
20092 {
20093 return $ac_func ();
20094   ;
20095   return 0;
20096 }
20097 _ACEOF
20098 rm -f conftest.$ac_objext conftest$ac_exeext
20099 if { (ac_try="$ac_link"
20100 case "(($ac_try" in
20101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102   *) ac_try_echo=$ac_try;;
20103 esac
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105   (eval "$ac_link") 2>conftest.er1
20106   ac_status=$?
20107   grep -v '^ *+' conftest.er1 >conftest.err
20108   rm -f conftest.er1
20109   cat conftest.err >&5
20110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); } && {
20112          test -z "$ac_c_werror_flag" ||
20113          test ! -s conftest.err
20114        } && test -s conftest$ac_exeext &&
20115        $as_test_x conftest$ac_exeext; then
20116   eval "$as_ac_var=yes"
20117 else
20118   echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20120
20121         eval "$as_ac_var=no"
20122 fi
20123
20124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20125       conftest$ac_exeext conftest.$ac_ext
20126 fi
20127 ac_res=`eval echo '${'$as_ac_var'}'`
20128                { echo "$as_me:$LINENO: result: $ac_res" >&5
20129 echo "${ECHO_T}$ac_res" >&6; }
20130 if test `eval echo '${'$as_ac_var'}'` = yes; then
20131   cat >>confdefs.h <<_ACEOF
20132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20133 _ACEOF
20134
20135 fi
20136 done
20137
20138 { echo "$as_me:$LINENO: checking for working mmap" >&5
20139 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20140 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20141   echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143   if test "$cross_compiling" = yes; then
20144   ac_cv_func_mmap_fixed_mapped=no
20145 else
20146   cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h.  */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h.  */
20152 $ac_includes_default
20153 /* malloc might have been renamed as rpl_malloc. */
20154 #undef malloc
20155
20156 /* Thanks to Mike Haertel and Jim Avera for this test.
20157    Here is a matrix of mmap possibilities:
20158         mmap private not fixed
20159         mmap private fixed at somewhere currently unmapped
20160         mmap private fixed at somewhere already mapped
20161         mmap shared not fixed
20162         mmap shared fixed at somewhere currently unmapped
20163         mmap shared fixed at somewhere already mapped
20164    For private mappings, we should verify that changes cannot be read()
20165    back from the file, nor mmap's back from the file at a different
20166    address.  (There have been systems where private was not correctly
20167    implemented like the infamous i386 svr4.0, and systems where the
20168    VM page cache was not coherent with the file system buffer cache
20169    like early versions of FreeBSD and possibly contemporary NetBSD.)
20170    For shared mappings, we should conversely verify that changes get
20171    propagated back to all the places they're supposed to be.
20172
20173    Grep wants private fixed already mapped.
20174    The main things grep needs to know about mmap are:
20175    * does it exist and is it safe to write into the mmap'd area
20176    * how to use it (BSD variants)  */
20177
20178 #include <fcntl.h>
20179 #include <sys/mman.h>
20180
20181 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20182 char *malloc ();
20183 #endif
20184
20185 /* This mess was copied from the GNU getpagesize.h.  */
20186 #ifndef HAVE_GETPAGESIZE
20187 /* Assume that all systems that can run configure have sys/param.h.  */
20188 # ifndef HAVE_SYS_PARAM_H
20189 #  define HAVE_SYS_PARAM_H 1
20190 # endif
20191
20192 # ifdef _SC_PAGESIZE
20193 #  define getpagesize() sysconf(_SC_PAGESIZE)
20194 # else /* no _SC_PAGESIZE */
20195 #  ifdef HAVE_SYS_PARAM_H
20196 #   include <sys/param.h>
20197 #   ifdef EXEC_PAGESIZE
20198 #    define getpagesize() EXEC_PAGESIZE
20199 #   else /* no EXEC_PAGESIZE */
20200 #    ifdef NBPG
20201 #     define getpagesize() NBPG * CLSIZE
20202 #     ifndef CLSIZE
20203 #      define CLSIZE 1
20204 #     endif /* no CLSIZE */
20205 #    else /* no NBPG */
20206 #     ifdef NBPC
20207 #      define getpagesize() NBPC
20208 #     else /* no NBPC */
20209 #      ifdef PAGESIZE
20210 #       define getpagesize() PAGESIZE
20211 #      endif /* PAGESIZE */
20212 #     endif /* no NBPC */
20213 #    endif /* no NBPG */
20214 #   endif /* no EXEC_PAGESIZE */
20215 #  else /* no HAVE_SYS_PARAM_H */
20216 #   define getpagesize() 8192   /* punt totally */
20217 #  endif /* no HAVE_SYS_PARAM_H */
20218 # endif /* no _SC_PAGESIZE */
20219
20220 #endif /* no HAVE_GETPAGESIZE */
20221
20222 int
20223 main ()
20224 {
20225   char *data, *data2, *data3;
20226   int i, pagesize;
20227   int fd;
20228
20229   pagesize = getpagesize ();
20230
20231   /* First, make a file with some known garbage in it. */
20232   data = (char *) malloc (pagesize);
20233   if (!data)
20234     return 1;
20235   for (i = 0; i < pagesize; ++i)
20236     *(data + i) = rand ();
20237   umask (0);
20238   fd = creat ("conftest.mmap", 0600);
20239   if (fd < 0)
20240     return 1;
20241   if (write (fd, data, pagesize) != pagesize)
20242     return 1;
20243   close (fd);
20244
20245   /* Next, try to mmap the file at a fixed address which already has
20246      something else allocated at it.  If we can, also make sure that
20247      we see the same garbage.  */
20248   fd = open ("conftest.mmap", O_RDWR);
20249   if (fd < 0)
20250     return 1;
20251   data2 = (char *) malloc (2 * pagesize);
20252   if (!data2)
20253     return 1;
20254   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20255   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20256                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20257     return 1;
20258   for (i = 0; i < pagesize; ++i)
20259     if (*(data + i) != *(data2 + i))
20260       return 1;
20261
20262   /* Finally, make sure that changes to the mapped area do not
20263      percolate back to the file as seen by read().  (This is a bug on
20264      some variants of i386 svr4.0.)  */
20265   for (i = 0; i < pagesize; ++i)
20266     *(data2 + i) = *(data2 + i) + 1;
20267   data3 = (char *) malloc (pagesize);
20268   if (!data3)
20269     return 1;
20270   if (read (fd, data3, pagesize) != pagesize)
20271     return 1;
20272   for (i = 0; i < pagesize; ++i)
20273     if (*(data + i) != *(data3 + i))
20274       return 1;
20275   close (fd);
20276   return 0;
20277 }
20278 _ACEOF
20279 rm -f conftest$ac_exeext
20280 if { (ac_try="$ac_link"
20281 case "(($ac_try" in
20282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283   *) ac_try_echo=$ac_try;;
20284 esac
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286   (eval "$ac_link") 2>&5
20287   ac_status=$?
20288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20290   { (case "(($ac_try" in
20291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292   *) ac_try_echo=$ac_try;;
20293 esac
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295   (eval "$ac_try") 2>&5
20296   ac_status=$?
20297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298   (exit $ac_status); }; }; then
20299   ac_cv_func_mmap_fixed_mapped=yes
20300 else
20301   echo "$as_me: program exited with status $ac_status" >&5
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20304
20305 ( exit $ac_status )
20306 ac_cv_func_mmap_fixed_mapped=no
20307 fi
20308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20309 fi
20310
20311
20312 fi
20313 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20314 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20315 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20316
20317 cat >>confdefs.h <<\_ACEOF
20318 #define HAVE_MMAP 1
20319 _ACEOF
20320
20321 fi
20322 rm -f conftest.mmap
20323
20324
20325     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20326 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20327 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20328   echo $ECHO_N "(cached) $ECHO_C" >&6
20329 else
20330   cat >conftest.$ac_ext <<_ACEOF
20331 /* confdefs.h.  */
20332 _ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h.  */
20336
20337 #include <features.h>
20338 #ifdef __GNU_LIBRARY__
20339  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20340   Lucky GNU user
20341  #endif
20342 #endif
20343
20344 _ACEOF
20345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20346   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20347   ac_cv_gnu_library_2_1=yes
20348 else
20349   ac_cv_gnu_library_2_1=no
20350 fi
20351 rm -f conftest*
20352
20353
20354
20355 fi
20356 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20357 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20358
20359     GLIBC21="$ac_cv_gnu_library_2_1"
20360
20361
20362
20363
20364   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20365 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20366 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20367   echo $ECHO_N "(cached) $ECHO_C" >&6
20368 else
20369
20370       if test "$cross_compiling" = yes; then
20371
20372           # Guess based on the CPU.
20373           case "$host_cpu" in
20374             alpha* | i3456786 | m68k | s390*)
20375               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20376             *)
20377               gt_cv_int_divbyzero_sigfpe="guessing no";;
20378           esac
20379
20380 else
20381   cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h.  */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h.  */
20387
20388 #include <stdlib.h>
20389 #include <signal.h>
20390
20391 static void
20392 #ifdef __cplusplus
20393 sigfpe_handler (int sig)
20394 #else
20395 sigfpe_handler (sig) int sig;
20396 #endif
20397 {
20398   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20399   exit (sig != SIGFPE);
20400 }
20401
20402 int x = 1;
20403 int y = 0;
20404 int z;
20405 int nan;
20406
20407 int main ()
20408 {
20409   signal (SIGFPE, sigfpe_handler);
20410 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20411 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20412   signal (SIGTRAP, sigfpe_handler);
20413 #endif
20414 /* Linux/SPARC yields signal SIGILL.  */
20415 #if defined (__sparc__) && defined (__linux__)
20416   signal (SIGILL, sigfpe_handler);
20417 #endif
20418
20419   z = x / y;
20420   nan = y / y;
20421   exit (1);
20422 }
20423
20424 _ACEOF
20425 rm -f conftest$ac_exeext
20426 if { (ac_try="$ac_link"
20427 case "(($ac_try" in
20428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429   *) ac_try_echo=$ac_try;;
20430 esac
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432   (eval "$ac_link") 2>&5
20433   ac_status=$?
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20436   { (case "(($ac_try" in
20437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438   *) ac_try_echo=$ac_try;;
20439 esac
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441   (eval "$ac_try") 2>&5
20442   ac_status=$?
20443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444   (exit $ac_status); }; }; then
20445   gt_cv_int_divbyzero_sigfpe=yes
20446 else
20447   echo "$as_me: program exited with status $ac_status" >&5
20448 echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20450
20451 ( exit $ac_status )
20452 gt_cv_int_divbyzero_sigfpe=no
20453 fi
20454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20455 fi
20456
20457
20458
20459 fi
20460 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20461 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20462   case "$gt_cv_int_divbyzero_sigfpe" in
20463     *yes) value=1;;
20464     *) value=0;;
20465   esac
20466
20467 cat >>confdefs.h <<_ACEOF
20468 #define INTDIV0_RAISES_SIGFPE $value
20469 _ACEOF
20470
20471
20472
20473   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20474 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20475 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20476   echo $ECHO_N "(cached) $ECHO_C" >&6
20477 else
20478   cat >conftest.$ac_ext <<_ACEOF
20479 /* confdefs.h.  */
20480 _ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h.  */
20484 unsigned long long ull = 1ULL; int i = 63;
20485 int
20486 main ()
20487 {
20488 unsigned long long ullmax = (unsigned long long) -1;
20489      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20490   ;
20491   return 0;
20492 }
20493 _ACEOF
20494 rm -f conftest.$ac_objext conftest$ac_exeext
20495 if { (ac_try="$ac_link"
20496 case "(($ac_try" in
20497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498   *) ac_try_echo=$ac_try;;
20499 esac
20500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20501   (eval "$ac_link") 2>conftest.er1
20502   ac_status=$?
20503   grep -v '^ *+' conftest.er1 >conftest.err
20504   rm -f conftest.er1
20505   cat conftest.err >&5
20506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507   (exit $ac_status); } && {
20508          test -z "$ac_c_werror_flag" ||
20509          test ! -s conftest.err
20510        } && test -s conftest$ac_exeext &&
20511        $as_test_x conftest$ac_exeext; then
20512   ac_cv_type_unsigned_long_long=yes
20513 else
20514   echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20516
20517         ac_cv_type_unsigned_long_long=no
20518 fi
20519
20520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20521       conftest$ac_exeext conftest.$ac_ext
20522 fi
20523 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20524 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20525   if test $ac_cv_type_unsigned_long_long = yes; then
20526
20527 cat >>confdefs.h <<\_ACEOF
20528 #define HAVE_UNSIGNED_LONG_LONG 1
20529 _ACEOF
20530
20531   fi
20532
20533
20534
20535
20536   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20537
20538     test $ac_cv_type_unsigned_long_long = yes \
20539       && ac_type='unsigned long long' \
20540       || ac_type='unsigned long'
20541
20542 cat >>confdefs.h <<_ACEOF
20543 #define uintmax_t $ac_type
20544 _ACEOF
20545
20546   else
20547
20548 cat >>confdefs.h <<\_ACEOF
20549 #define HAVE_UINTMAX_T 1
20550 _ACEOF
20551
20552   fi
20553
20554
20555   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20556 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20557 if test "${gt_cv_header_inttypes_h+set}" = set; then
20558   echo $ECHO_N "(cached) $ECHO_C" >&6
20559 else
20560
20561     cat >conftest.$ac_ext <<_ACEOF
20562 /* confdefs.h.  */
20563 _ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h.  */
20567 #include <sys/types.h>
20568 #include <inttypes.h>
20569 int
20570 main ()
20571 {
20572
20573   ;
20574   return 0;
20575 }
20576 _ACEOF
20577 rm -f conftest.$ac_objext
20578 if { (ac_try="$ac_compile"
20579 case "(($ac_try" in
20580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581   *) ac_try_echo=$ac_try;;
20582 esac
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584   (eval "$ac_compile") 2>conftest.er1
20585   ac_status=$?
20586   grep -v '^ *+' conftest.er1 >conftest.err
20587   rm -f conftest.er1
20588   cat conftest.err >&5
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); } && {
20591          test -z "$ac_c_werror_flag" ||
20592          test ! -s conftest.err
20593        } && test -s conftest.$ac_objext; then
20594   gt_cv_header_inttypes_h=yes
20595 else
20596   echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20598
20599         gt_cv_header_inttypes_h=no
20600 fi
20601
20602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20603
20604 fi
20605 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20606 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20607   if test $gt_cv_header_inttypes_h = yes; then
20608
20609 cat >>confdefs.h <<_ACEOF
20610 #define HAVE_INTTYPES_H 1
20611 _ACEOF
20612
20613   fi
20614
20615
20616
20617   if test $gt_cv_header_inttypes_h = yes; then
20618     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20619 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20620 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20621   echo $ECHO_N "(cached) $ECHO_C" >&6
20622 else
20623
20624         cat >conftest.$ac_ext <<_ACEOF
20625 /* confdefs.h.  */
20626 _ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h.  */
20630 #include <inttypes.h>
20631 #ifdef PRId32
20632 char *p = PRId32;
20633 #endif
20634
20635 int
20636 main ()
20637 {
20638
20639   ;
20640   return 0;
20641 }
20642 _ACEOF
20643 rm -f conftest.$ac_objext
20644 if { (ac_try="$ac_compile"
20645 case "(($ac_try" in
20646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647   *) ac_try_echo=$ac_try;;
20648 esac
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650   (eval "$ac_compile") 2>conftest.er1
20651   ac_status=$?
20652   grep -v '^ *+' conftest.er1 >conftest.err
20653   rm -f conftest.er1
20654   cat conftest.err >&5
20655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656   (exit $ac_status); } && {
20657          test -z "$ac_c_werror_flag" ||
20658          test ! -s conftest.err
20659        } && test -s conftest.$ac_objext; then
20660   gt_cv_inttypes_pri_broken=no
20661 else
20662   echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20664
20665         gt_cv_inttypes_pri_broken=yes
20666 fi
20667
20668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669
20670 fi
20671 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20672 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20673   fi
20674   if test "$gt_cv_inttypes_pri_broken" = yes; then
20675
20676 cat >>confdefs.h <<_ACEOF
20677 #define PRI_MACROS_BROKEN 1
20678 _ACEOF
20679
20680   fi
20681
20682
20683
20684 for ac_header in stdint.h
20685 do
20686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20688   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20691   echo $ECHO_N "(cached) $ECHO_C" >&6
20692 fi
20693 ac_res=`eval echo '${'$as_ac_Header'}'`
20694                { echo "$as_me:$LINENO: result: $ac_res" >&5
20695 echo "${ECHO_T}$ac_res" >&6; }
20696 else
20697   # Is the header compilable?
20698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20700 cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h.  */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h.  */
20706 $ac_includes_default
20707 #include <$ac_header>
20708 _ACEOF
20709 rm -f conftest.$ac_objext
20710 if { (ac_try="$ac_compile"
20711 case "(($ac_try" in
20712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713   *) ac_try_echo=$ac_try;;
20714 esac
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716   (eval "$ac_compile") 2>conftest.er1
20717   ac_status=$?
20718   grep -v '^ *+' conftest.er1 >conftest.err
20719   rm -f conftest.er1
20720   cat conftest.err >&5
20721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722   (exit $ac_status); } && {
20723          test -z "$ac_c_werror_flag" ||
20724          test ! -s conftest.err
20725        } && test -s conftest.$ac_objext; then
20726   ac_header_compiler=yes
20727 else
20728   echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20730
20731         ac_header_compiler=no
20732 fi
20733
20734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20736 echo "${ECHO_T}$ac_header_compiler" >&6; }
20737
20738 # Is the header present?
20739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20741 cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h.  */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h.  */
20747 #include <$ac_header>
20748 _ACEOF
20749 if { (ac_try="$ac_cpp conftest.$ac_ext"
20750 case "(($ac_try" in
20751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20752   *) ac_try_echo=$ac_try;;
20753 esac
20754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20756   ac_status=$?
20757   grep -v '^ *+' conftest.er1 >conftest.err
20758   rm -f conftest.er1
20759   cat conftest.err >&5
20760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761   (exit $ac_status); } >/dev/null && {
20762          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20763          test ! -s conftest.err
20764        }; then
20765   ac_header_preproc=yes
20766 else
20767   echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20769
20770   ac_header_preproc=no
20771 fi
20772
20773 rm -f conftest.err conftest.$ac_ext
20774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20775 echo "${ECHO_T}$ac_header_preproc" >&6; }
20776
20777 # So?  What about this header?
20778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20779   yes:no: )
20780     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20782     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20784     ac_header_preproc=yes
20785     ;;
20786   no:yes:* )
20787     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20789     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20790 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20791     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20793     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20794 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20797     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20799
20800     ;;
20801 esac
20802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20805   echo $ECHO_N "(cached) $ECHO_C" >&6
20806 else
20807   eval "$as_ac_Header=\$ac_header_preproc"
20808 fi
20809 ac_res=`eval echo '${'$as_ac_Header'}'`
20810                { echo "$as_me:$LINENO: result: $ac_res" >&5
20811 echo "${ECHO_T}$ac_res" >&6; }
20812
20813 fi
20814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20815   cat >>confdefs.h <<_ACEOF
20816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20817 _ACEOF
20818
20819 fi
20820
20821 done
20822
20823     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20824 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20825   result=
20826   cat >conftest.$ac_ext <<_ACEOF
20827 /* confdefs.h.  */
20828 _ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h.  */
20832
20833 #include <limits.h>
20834 #if HAVE_STDINT_H
20835 #include <stdint.h>
20836 #endif
20837 #ifdef SIZE_MAX
20838 Found it
20839 #endif
20840
20841 _ACEOF
20842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20843   $EGREP "Found it" >/dev/null 2>&1; then
20844   result=yes
20845 fi
20846 rm -f conftest*
20847
20848   if test -z "$result"; then
20849                     if test "$cross_compiling" = yes; then
20850   # Depending upon the size, compute the lo and hi bounds.
20851 cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h.  */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h.  */
20857 #include <stddef.h>
20858 int
20859 main ()
20860 {
20861 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20862 test_array [0] = 0
20863
20864   ;
20865   return 0;
20866 }
20867 _ACEOF
20868 rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
20870 case "(($ac_try" in
20871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872   *) ac_try_echo=$ac_try;;
20873 esac
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875   (eval "$ac_compile") 2>conftest.er1
20876   ac_status=$?
20877   grep -v '^ *+' conftest.er1 >conftest.err
20878   rm -f conftest.er1
20879   cat conftest.err >&5
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); } && {
20882          test -z "$ac_c_werror_flag" ||
20883          test ! -s conftest.err
20884        } && test -s conftest.$ac_objext; then
20885   ac_lo=0 ac_mid=0
20886   while :; do
20887     cat >conftest.$ac_ext <<_ACEOF
20888 /* confdefs.h.  */
20889 _ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h.  */
20893 #include <stddef.h>
20894 int
20895 main ()
20896 {
20897 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20898 test_array [0] = 0
20899
20900   ;
20901   return 0;
20902 }
20903 _ACEOF
20904 rm -f conftest.$ac_objext
20905 if { (ac_try="$ac_compile"
20906 case "(($ac_try" in
20907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908   *) ac_try_echo=$ac_try;;
20909 esac
20910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20911   (eval "$ac_compile") 2>conftest.er1
20912   ac_status=$?
20913   grep -v '^ *+' conftest.er1 >conftest.err
20914   rm -f conftest.er1
20915   cat conftest.err >&5
20916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917   (exit $ac_status); } && {
20918          test -z "$ac_c_werror_flag" ||
20919          test ! -s conftest.err
20920        } && test -s conftest.$ac_objext; then
20921   ac_hi=$ac_mid; break
20922 else
20923   echo "$as_me: failed program was:" >&5
20924 sed 's/^/| /' conftest.$ac_ext >&5
20925
20926         ac_lo=`expr $ac_mid + 1`
20927                         if test $ac_lo -le $ac_mid; then
20928                           ac_lo= ac_hi=
20929                           break
20930                         fi
20931                         ac_mid=`expr 2 '*' $ac_mid + 1`
20932 fi
20933
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935   done
20936 else
20937   echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20939
20940         cat >conftest.$ac_ext <<_ACEOF
20941 /* confdefs.h.  */
20942 _ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h.  */
20946 #include <stddef.h>
20947 int
20948 main ()
20949 {
20950 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20951 test_array [0] = 0
20952
20953   ;
20954   return 0;
20955 }
20956 _ACEOF
20957 rm -f conftest.$ac_objext
20958 if { (ac_try="$ac_compile"
20959 case "(($ac_try" in
20960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961   *) ac_try_echo=$ac_try;;
20962 esac
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964   (eval "$ac_compile") 2>conftest.er1
20965   ac_status=$?
20966   grep -v '^ *+' conftest.er1 >conftest.err
20967   rm -f conftest.er1
20968   cat conftest.err >&5
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); } && {
20971          test -z "$ac_c_werror_flag" ||
20972          test ! -s conftest.err
20973        } && test -s conftest.$ac_objext; then
20974   ac_hi=-1 ac_mid=-1
20975   while :; do
20976     cat >conftest.$ac_ext <<_ACEOF
20977 /* confdefs.h.  */
20978 _ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h.  */
20982 #include <stddef.h>
20983 int
20984 main ()
20985 {
20986 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20987 test_array [0] = 0
20988
20989   ;
20990   return 0;
20991 }
20992 _ACEOF
20993 rm -f conftest.$ac_objext
20994 if { (ac_try="$ac_compile"
20995 case "(($ac_try" in
20996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997   *) ac_try_echo=$ac_try;;
20998 esac
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000   (eval "$ac_compile") 2>conftest.er1
21001   ac_status=$?
21002   grep -v '^ *+' conftest.er1 >conftest.err
21003   rm -f conftest.er1
21004   cat conftest.err >&5
21005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006   (exit $ac_status); } && {
21007          test -z "$ac_c_werror_flag" ||
21008          test ! -s conftest.err
21009        } && test -s conftest.$ac_objext; then
21010   ac_lo=$ac_mid; break
21011 else
21012   echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21014
21015         ac_hi=`expr '(' $ac_mid ')' - 1`
21016                         if test $ac_mid -le $ac_hi; then
21017                           ac_lo= ac_hi=
21018                           break
21019                         fi
21020                         ac_mid=`expr 2 '*' $ac_mid`
21021 fi
21022
21023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024   done
21025 else
21026   echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21028
21029         ac_lo= ac_hi=
21030 fi
21031
21032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 fi
21034
21035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21036 # Binary search between lo and hi bounds.
21037 while test "x$ac_lo" != "x$ac_hi"; do
21038   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21039   cat >conftest.$ac_ext <<_ACEOF
21040 /* confdefs.h.  */
21041 _ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h.  */
21045 #include <stddef.h>
21046 int
21047 main ()
21048 {
21049 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21050 test_array [0] = 0
21051
21052   ;
21053   return 0;
21054 }
21055 _ACEOF
21056 rm -f conftest.$ac_objext
21057 if { (ac_try="$ac_compile"
21058 case "(($ac_try" in
21059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060   *) ac_try_echo=$ac_try;;
21061 esac
21062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063   (eval "$ac_compile") 2>conftest.er1
21064   ac_status=$?
21065   grep -v '^ *+' conftest.er1 >conftest.err
21066   rm -f conftest.er1
21067   cat conftest.err >&5
21068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069   (exit $ac_status); } && {
21070          test -z "$ac_c_werror_flag" ||
21071          test ! -s conftest.err
21072        } && test -s conftest.$ac_objext; then
21073   ac_hi=$ac_mid
21074 else
21075   echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21077
21078         ac_lo=`expr '(' $ac_mid ')' + 1`
21079 fi
21080
21081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21082 done
21083 case $ac_lo in
21084 ?*) res_hi=$ac_lo;;
21085 '') result=? ;;
21086 esac
21087 else
21088   cat >conftest.$ac_ext <<_ACEOF
21089 /* confdefs.h.  */
21090 _ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h.  */
21094 #include <stddef.h>
21095 static long int longval () { return ~(size_t)0 / 10; }
21096 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21097 #include <stdio.h>
21098 #include <stdlib.h>
21099 int
21100 main ()
21101 {
21102
21103   FILE *f = fopen ("conftest.val", "w");
21104   if (! f)
21105     return 1;
21106   if ((~(size_t)0 / 10) < 0)
21107     {
21108       long int i = longval ();
21109       if (i != (~(size_t)0 / 10))
21110         return 1;
21111       fprintf (f, "%ld\n", i);
21112     }
21113   else
21114     {
21115       unsigned long int i = ulongval ();
21116       if (i != (~(size_t)0 / 10))
21117         return 1;
21118       fprintf (f, "%lu\n", i);
21119     }
21120   return ferror (f) || fclose (f) != 0;
21121
21122   ;
21123   return 0;
21124 }
21125 _ACEOF
21126 rm -f conftest$ac_exeext
21127 if { (ac_try="$ac_link"
21128 case "(($ac_try" in
21129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130   *) ac_try_echo=$ac_try;;
21131 esac
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133   (eval "$ac_link") 2>&5
21134   ac_status=$?
21135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21137   { (case "(($ac_try" in
21138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139   *) ac_try_echo=$ac_try;;
21140 esac
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142   (eval "$ac_try") 2>&5
21143   ac_status=$?
21144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145   (exit $ac_status); }; }; then
21146   res_hi=`cat conftest.val`
21147 else
21148   echo "$as_me: program exited with status $ac_status" >&5
21149 echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21151
21152 ( exit $ac_status )
21153 result=?
21154 fi
21155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21156 fi
21157 rm -f conftest.val
21158
21159     if test "$cross_compiling" = yes; then
21160   # Depending upon the size, compute the lo and hi bounds.
21161 cat >conftest.$ac_ext <<_ACEOF
21162 /* confdefs.h.  */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h.  */
21167 #include <stddef.h>
21168 int
21169 main ()
21170 {
21171 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21172 test_array [0] = 0
21173
21174   ;
21175   return 0;
21176 }
21177 _ACEOF
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182   *) ac_try_echo=$ac_try;;
21183 esac
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185   (eval "$ac_compile") 2>conftest.er1
21186   ac_status=$?
21187   grep -v '^ *+' conftest.er1 >conftest.err
21188   rm -f conftest.er1
21189   cat conftest.err >&5
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); } && {
21192          test -z "$ac_c_werror_flag" ||
21193          test ! -s conftest.err
21194        } && test -s conftest.$ac_objext; then
21195   ac_lo=0 ac_mid=0
21196   while :; do
21197     cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203 #include <stddef.h>
21204 int
21205 main ()
21206 {
21207 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21208 test_array [0] = 0
21209
21210   ;
21211   return 0;
21212 }
21213 _ACEOF
21214 rm -f conftest.$ac_objext
21215 if { (ac_try="$ac_compile"
21216 case "(($ac_try" in
21217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218   *) ac_try_echo=$ac_try;;
21219 esac
21220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221   (eval "$ac_compile") 2>conftest.er1
21222   ac_status=$?
21223   grep -v '^ *+' conftest.er1 >conftest.err
21224   rm -f conftest.er1
21225   cat conftest.err >&5
21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227   (exit $ac_status); } && {
21228          test -z "$ac_c_werror_flag" ||
21229          test ! -s conftest.err
21230        } && test -s conftest.$ac_objext; then
21231   ac_hi=$ac_mid; break
21232 else
21233   echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21235
21236         ac_lo=`expr $ac_mid + 1`
21237                         if test $ac_lo -le $ac_mid; then
21238                           ac_lo= ac_hi=
21239                           break
21240                         fi
21241                         ac_mid=`expr 2 '*' $ac_mid + 1`
21242 fi
21243
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245   done
21246 else
21247   echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21249
21250         cat >conftest.$ac_ext <<_ACEOF
21251 /* confdefs.h.  */
21252 _ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h.  */
21256 #include <stddef.h>
21257 int
21258 main ()
21259 {
21260 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21261 test_array [0] = 0
21262
21263   ;
21264   return 0;
21265 }
21266 _ACEOF
21267 rm -f conftest.$ac_objext
21268 if { (ac_try="$ac_compile"
21269 case "(($ac_try" in
21270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271   *) ac_try_echo=$ac_try;;
21272 esac
21273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21274   (eval "$ac_compile") 2>conftest.er1
21275   ac_status=$?
21276   grep -v '^ *+' conftest.er1 >conftest.err
21277   rm -f conftest.er1
21278   cat conftest.err >&5
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); } && {
21281          test -z "$ac_c_werror_flag" ||
21282          test ! -s conftest.err
21283        } && test -s conftest.$ac_objext; then
21284   ac_hi=-1 ac_mid=-1
21285   while :; do
21286     cat >conftest.$ac_ext <<_ACEOF
21287 /* confdefs.h.  */
21288 _ACEOF
21289 cat confdefs.h >>conftest.$ac_ext
21290 cat >>conftest.$ac_ext <<_ACEOF
21291 /* end confdefs.h.  */
21292 #include <stddef.h>
21293 int
21294 main ()
21295 {
21296 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21297 test_array [0] = 0
21298
21299   ;
21300   return 0;
21301 }
21302 _ACEOF
21303 rm -f conftest.$ac_objext
21304 if { (ac_try="$ac_compile"
21305 case "(($ac_try" in
21306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307   *) ac_try_echo=$ac_try;;
21308 esac
21309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21310   (eval "$ac_compile") 2>conftest.er1
21311   ac_status=$?
21312   grep -v '^ *+' conftest.er1 >conftest.err
21313   rm -f conftest.er1
21314   cat conftest.err >&5
21315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316   (exit $ac_status); } && {
21317          test -z "$ac_c_werror_flag" ||
21318          test ! -s conftest.err
21319        } && test -s conftest.$ac_objext; then
21320   ac_lo=$ac_mid; break
21321 else
21322   echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21324
21325         ac_hi=`expr '(' $ac_mid ')' - 1`
21326                         if test $ac_mid -le $ac_hi; then
21327                           ac_lo= ac_hi=
21328                           break
21329                         fi
21330                         ac_mid=`expr 2 '*' $ac_mid`
21331 fi
21332
21333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21334   done
21335 else
21336   echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21338
21339         ac_lo= ac_hi=
21340 fi
21341
21342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21343 fi
21344
21345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21346 # Binary search between lo and hi bounds.
21347 while test "x$ac_lo" != "x$ac_hi"; do
21348   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21349   cat >conftest.$ac_ext <<_ACEOF
21350 /* confdefs.h.  */
21351 _ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h.  */
21355 #include <stddef.h>
21356 int
21357 main ()
21358 {
21359 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21360 test_array [0] = 0
21361
21362   ;
21363   return 0;
21364 }
21365 _ACEOF
21366 rm -f conftest.$ac_objext
21367 if { (ac_try="$ac_compile"
21368 case "(($ac_try" in
21369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370   *) ac_try_echo=$ac_try;;
21371 esac
21372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373   (eval "$ac_compile") 2>conftest.er1
21374   ac_status=$?
21375   grep -v '^ *+' conftest.er1 >conftest.err
21376   rm -f conftest.er1
21377   cat conftest.err >&5
21378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); } && {
21380          test -z "$ac_c_werror_flag" ||
21381          test ! -s conftest.err
21382        } && test -s conftest.$ac_objext; then
21383   ac_hi=$ac_mid
21384 else
21385   echo "$as_me: failed program was:" >&5
21386 sed 's/^/| /' conftest.$ac_ext >&5
21387
21388         ac_lo=`expr '(' $ac_mid ')' + 1`
21389 fi
21390
21391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21392 done
21393 case $ac_lo in
21394 ?*) res_lo=$ac_lo;;
21395 '') result=? ;;
21396 esac
21397 else
21398   cat >conftest.$ac_ext <<_ACEOF
21399 /* confdefs.h.  */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h.  */
21404 #include <stddef.h>
21405 static long int longval () { return ~(size_t)0 % 10; }
21406 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21407 #include <stdio.h>
21408 #include <stdlib.h>
21409 int
21410 main ()
21411 {
21412
21413   FILE *f = fopen ("conftest.val", "w");
21414   if (! f)
21415     return 1;
21416   if ((~(size_t)0 % 10) < 0)
21417     {
21418       long int i = longval ();
21419       if (i != (~(size_t)0 % 10))
21420         return 1;
21421       fprintf (f, "%ld\n", i);
21422     }
21423   else
21424     {
21425       unsigned long int i = ulongval ();
21426       if (i != (~(size_t)0 % 10))
21427         return 1;
21428       fprintf (f, "%lu\n", i);
21429     }
21430   return ferror (f) || fclose (f) != 0;
21431
21432   ;
21433   return 0;
21434 }
21435 _ACEOF
21436 rm -f conftest$ac_exeext
21437 if { (ac_try="$ac_link"
21438 case "(($ac_try" in
21439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440   *) ac_try_echo=$ac_try;;
21441 esac
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443   (eval "$ac_link") 2>&5
21444   ac_status=$?
21445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21447   { (case "(($ac_try" in
21448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449   *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452   (eval "$ac_try") 2>&5
21453   ac_status=$?
21454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455   (exit $ac_status); }; }; then
21456   res_lo=`cat conftest.val`
21457 else
21458   echo "$as_me: program exited with status $ac_status" >&5
21459 echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21461
21462 ( exit $ac_status )
21463 result=?
21464 fi
21465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21466 fi
21467 rm -f conftest.val
21468
21469     if test "$cross_compiling" = yes; then
21470   # Depending upon the size, compute the lo and hi bounds.
21471 cat >conftest.$ac_ext <<_ACEOF
21472 /* confdefs.h.  */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h.  */
21477 #include <stddef.h>
21478 int
21479 main ()
21480 {
21481 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21482 test_array [0] = 0
21483
21484   ;
21485   return 0;
21486 }
21487 _ACEOF
21488 rm -f conftest.$ac_objext
21489 if { (ac_try="$ac_compile"
21490 case "(($ac_try" in
21491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492   *) ac_try_echo=$ac_try;;
21493 esac
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495   (eval "$ac_compile") 2>conftest.er1
21496   ac_status=$?
21497   grep -v '^ *+' conftest.er1 >conftest.err
21498   rm -f conftest.er1
21499   cat conftest.err >&5
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); } && {
21502          test -z "$ac_c_werror_flag" ||
21503          test ! -s conftest.err
21504        } && test -s conftest.$ac_objext; then
21505   ac_lo=0 ac_mid=0
21506   while :; do
21507     cat >conftest.$ac_ext <<_ACEOF
21508 /* confdefs.h.  */
21509 _ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h.  */
21513 #include <stddef.h>
21514 int
21515 main ()
21516 {
21517 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21518 test_array [0] = 0
21519
21520   ;
21521   return 0;
21522 }
21523 _ACEOF
21524 rm -f conftest.$ac_objext
21525 if { (ac_try="$ac_compile"
21526 case "(($ac_try" in
21527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528   *) ac_try_echo=$ac_try;;
21529 esac
21530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21531   (eval "$ac_compile") 2>conftest.er1
21532   ac_status=$?
21533   grep -v '^ *+' conftest.er1 >conftest.err
21534   rm -f conftest.er1
21535   cat conftest.err >&5
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); } && {
21538          test -z "$ac_c_werror_flag" ||
21539          test ! -s conftest.err
21540        } && test -s conftest.$ac_objext; then
21541   ac_hi=$ac_mid; break
21542 else
21543   echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21545
21546         ac_lo=`expr $ac_mid + 1`
21547                         if test $ac_lo -le $ac_mid; then
21548                           ac_lo= ac_hi=
21549                           break
21550                         fi
21551                         ac_mid=`expr 2 '*' $ac_mid + 1`
21552 fi
21553
21554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21555   done
21556 else
21557   echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21559
21560         cat >conftest.$ac_ext <<_ACEOF
21561 /* confdefs.h.  */
21562 _ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h.  */
21566 #include <stddef.h>
21567 int
21568 main ()
21569 {
21570 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21571 test_array [0] = 0
21572
21573   ;
21574   return 0;
21575 }
21576 _ACEOF
21577 rm -f conftest.$ac_objext
21578 if { (ac_try="$ac_compile"
21579 case "(($ac_try" in
21580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581   *) ac_try_echo=$ac_try;;
21582 esac
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584   (eval "$ac_compile") 2>conftest.er1
21585   ac_status=$?
21586   grep -v '^ *+' conftest.er1 >conftest.err
21587   rm -f conftest.er1
21588   cat conftest.err >&5
21589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590   (exit $ac_status); } && {
21591          test -z "$ac_c_werror_flag" ||
21592          test ! -s conftest.err
21593        } && test -s conftest.$ac_objext; then
21594   ac_hi=-1 ac_mid=-1
21595   while :; do
21596     cat >conftest.$ac_ext <<_ACEOF
21597 /* confdefs.h.  */
21598 _ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h.  */
21602 #include <stddef.h>
21603 int
21604 main ()
21605 {
21606 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21607 test_array [0] = 0
21608
21609   ;
21610   return 0;
21611 }
21612 _ACEOF
21613 rm -f conftest.$ac_objext
21614 if { (ac_try="$ac_compile"
21615 case "(($ac_try" in
21616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21617   *) ac_try_echo=$ac_try;;
21618 esac
21619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21620   (eval "$ac_compile") 2>conftest.er1
21621   ac_status=$?
21622   grep -v '^ *+' conftest.er1 >conftest.err
21623   rm -f conftest.er1
21624   cat conftest.err >&5
21625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626   (exit $ac_status); } && {
21627          test -z "$ac_c_werror_flag" ||
21628          test ! -s conftest.err
21629        } && test -s conftest.$ac_objext; then
21630   ac_lo=$ac_mid; break
21631 else
21632   echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21634
21635         ac_hi=`expr '(' $ac_mid ')' - 1`
21636                         if test $ac_mid -le $ac_hi; then
21637                           ac_lo= ac_hi=
21638                           break
21639                         fi
21640                         ac_mid=`expr 2 '*' $ac_mid`
21641 fi
21642
21643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21644   done
21645 else
21646   echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21648
21649         ac_lo= ac_hi=
21650 fi
21651
21652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21653 fi
21654
21655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21656 # Binary search between lo and hi bounds.
21657 while test "x$ac_lo" != "x$ac_hi"; do
21658   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21659   cat >conftest.$ac_ext <<_ACEOF
21660 /* confdefs.h.  */
21661 _ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h.  */
21665 #include <stddef.h>
21666 int
21667 main ()
21668 {
21669 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21670 test_array [0] = 0
21671
21672   ;
21673   return 0;
21674 }
21675 _ACEOF
21676 rm -f conftest.$ac_objext
21677 if { (ac_try="$ac_compile"
21678 case "(($ac_try" in
21679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21680   *) ac_try_echo=$ac_try;;
21681 esac
21682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21683   (eval "$ac_compile") 2>conftest.er1
21684   ac_status=$?
21685   grep -v '^ *+' conftest.er1 >conftest.err
21686   rm -f conftest.er1
21687   cat conftest.err >&5
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); } && {
21690          test -z "$ac_c_werror_flag" ||
21691          test ! -s conftest.err
21692        } && test -s conftest.$ac_objext; then
21693   ac_hi=$ac_mid
21694 else
21695   echo "$as_me: failed program was:" >&5
21696 sed 's/^/| /' conftest.$ac_ext >&5
21697
21698         ac_lo=`expr '(' $ac_mid ')' + 1`
21699 fi
21700
21701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702 done
21703 case $ac_lo in
21704 ?*) fits_in_uint=$ac_lo;;
21705 '') result=? ;;
21706 esac
21707 else
21708   cat >conftest.$ac_ext <<_ACEOF
21709 /* confdefs.h.  */
21710 _ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h.  */
21714 #include <stddef.h>
21715 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21716 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21717 #include <stdio.h>
21718 #include <stdlib.h>
21719 int
21720 main ()
21721 {
21722
21723   FILE *f = fopen ("conftest.val", "w");
21724   if (! f)
21725     return 1;
21726   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21727     {
21728       long int i = longval ();
21729       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21730         return 1;
21731       fprintf (f, "%ld\n", i);
21732     }
21733   else
21734     {
21735       unsigned long int i = ulongval ();
21736       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21737         return 1;
21738       fprintf (f, "%lu\n", i);
21739     }
21740   return ferror (f) || fclose (f) != 0;
21741
21742   ;
21743   return 0;
21744 }
21745 _ACEOF
21746 rm -f conftest$ac_exeext
21747 if { (ac_try="$ac_link"
21748 case "(($ac_try" in
21749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750   *) ac_try_echo=$ac_try;;
21751 esac
21752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21753   (eval "$ac_link") 2>&5
21754   ac_status=$?
21755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21757   { (case "(($ac_try" in
21758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759   *) ac_try_echo=$ac_try;;
21760 esac
21761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762   (eval "$ac_try") 2>&5
21763   ac_status=$?
21764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765   (exit $ac_status); }; }; then
21766   fits_in_uint=`cat conftest.val`
21767 else
21768   echo "$as_me: program exited with status $ac_status" >&5
21769 echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21771
21772 ( exit $ac_status )
21773 result=?
21774 fi
21775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21776 fi
21777 rm -f conftest.val
21778
21779     if test "$fits_in_uint" = 1; then
21780                   cat >conftest.$ac_ext <<_ACEOF
21781 /* confdefs.h.  */
21782 _ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h.  */
21786 #include <stddef.h>
21787         extern size_t foo;
21788         extern unsigned long foo;
21789
21790 int
21791 main ()
21792 {
21793
21794   ;
21795   return 0;
21796 }
21797 _ACEOF
21798 rm -f conftest.$ac_objext
21799 if { (ac_try="$ac_compile"
21800 case "(($ac_try" in
21801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802   *) ac_try_echo=$ac_try;;
21803 esac
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805   (eval "$ac_compile") 2>conftest.er1
21806   ac_status=$?
21807   grep -v '^ *+' conftest.er1 >conftest.err
21808   rm -f conftest.er1
21809   cat conftest.err >&5
21810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811   (exit $ac_status); } && {
21812          test -z "$ac_c_werror_flag" ||
21813          test ! -s conftest.err
21814        } && test -s conftest.$ac_objext; then
21815   fits_in_uint=0
21816 else
21817   echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21819
21820
21821 fi
21822
21823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21824     fi
21825     if test -z "$result"; then
21826       if test "$fits_in_uint" = 1; then
21827         result="$res_hi$res_lo"U
21828       else
21829         result="$res_hi$res_lo"UL
21830       fi
21831     else
21832             result='~(size_t)0'
21833     fi
21834   fi
21835   { echo "$as_me:$LINENO: result: $result" >&5
21836 echo "${ECHO_T}$result" >&6; }
21837   if test "$result" != yes; then
21838
21839 cat >>confdefs.h <<_ACEOF
21840 #define SIZE_MAX $result
21841 _ACEOF
21842
21843   fi
21844
21845
21846
21847
21848
21849 for ac_header in stdint.h
21850 do
21851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21853   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21856   echo $ECHO_N "(cached) $ECHO_C" >&6
21857 fi
21858 ac_res=`eval echo '${'$as_ac_Header'}'`
21859                { echo "$as_me:$LINENO: result: $ac_res" >&5
21860 echo "${ECHO_T}$ac_res" >&6; }
21861 else
21862   # Is the header compilable?
21863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21865 cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h.  */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h.  */
21871 $ac_includes_default
21872 #include <$ac_header>
21873 _ACEOF
21874 rm -f conftest.$ac_objext
21875 if { (ac_try="$ac_compile"
21876 case "(($ac_try" in
21877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878   *) ac_try_echo=$ac_try;;
21879 esac
21880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881   (eval "$ac_compile") 2>conftest.er1
21882   ac_status=$?
21883   grep -v '^ *+' conftest.er1 >conftest.err
21884   rm -f conftest.er1
21885   cat conftest.err >&5
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); } && {
21888          test -z "$ac_c_werror_flag" ||
21889          test ! -s conftest.err
21890        } && test -s conftest.$ac_objext; then
21891   ac_header_compiler=yes
21892 else
21893   echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21895
21896         ac_header_compiler=no
21897 fi
21898
21899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21901 echo "${ECHO_T}$ac_header_compiler" >&6; }
21902
21903 # Is the header present?
21904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21906 cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h.  */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h.  */
21912 #include <$ac_header>
21913 _ACEOF
21914 if { (ac_try="$ac_cpp conftest.$ac_ext"
21915 case "(($ac_try" in
21916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917   *) ac_try_echo=$ac_try;;
21918 esac
21919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21921   ac_status=$?
21922   grep -v '^ *+' conftest.er1 >conftest.err
21923   rm -f conftest.er1
21924   cat conftest.err >&5
21925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926   (exit $ac_status); } >/dev/null && {
21927          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21928          test ! -s conftest.err
21929        }; then
21930   ac_header_preproc=yes
21931 else
21932   echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21934
21935   ac_header_preproc=no
21936 fi
21937
21938 rm -f conftest.err conftest.$ac_ext
21939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21940 echo "${ECHO_T}$ac_header_preproc" >&6; }
21941
21942 # So?  What about this header?
21943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21944   yes:no: )
21945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21949     ac_header_preproc=yes
21950     ;;
21951   no:yes:* )
21952     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21954     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21955 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21956     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21958     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21959 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21962     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21964
21965     ;;
21966 esac
21967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21970   echo $ECHO_N "(cached) $ECHO_C" >&6
21971 else
21972   eval "$as_ac_Header=\$ac_header_preproc"
21973 fi
21974 ac_res=`eval echo '${'$as_ac_Header'}'`
21975                { echo "$as_me:$LINENO: result: $ac_res" >&5
21976 echo "${ECHO_T}$ac_res" >&6; }
21977
21978 fi
21979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21980   cat >>confdefs.h <<_ACEOF
21981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21982 _ACEOF
21983
21984 fi
21985
21986 done
21987
21988
21989
21990
21991
21992
21993
21994
21995   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21996 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21997 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21998   echo $ECHO_N "(cached) $ECHO_C" >&6
21999 else
22000   cat >conftest.$ac_ext <<_ACEOF
22001 /* confdefs.h.  */
22002 _ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h.  */
22006 $ac_includes_default
22007 typedef ptrdiff_t ac__type_new_;
22008 int
22009 main ()
22010 {
22011 if ((ac__type_new_ *) 0)
22012   return 0;
22013 if (sizeof (ac__type_new_))
22014   return 0;
22015   ;
22016   return 0;
22017 }
22018 _ACEOF
22019 rm -f conftest.$ac_objext
22020 if { (ac_try="$ac_compile"
22021 case "(($ac_try" in
22022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023   *) ac_try_echo=$ac_try;;
22024 esac
22025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22026   (eval "$ac_compile") 2>conftest.er1
22027   ac_status=$?
22028   grep -v '^ *+' conftest.er1 >conftest.err
22029   rm -f conftest.er1
22030   cat conftest.err >&5
22031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032   (exit $ac_status); } && {
22033          test -z "$ac_c_werror_flag" ||
22034          test ! -s conftest.err
22035        } && test -s conftest.$ac_objext; then
22036   ac_cv_type_ptrdiff_t=yes
22037 else
22038   echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22040
22041         ac_cv_type_ptrdiff_t=no
22042 fi
22043
22044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045 fi
22046 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22047 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22048 if test $ac_cv_type_ptrdiff_t = yes; then
22049   :
22050 else
22051
22052 cat >>confdefs.h <<\_ACEOF
22053 #define ptrdiff_t long
22054 _ACEOF
22055
22056
22057 fi
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22070 stdlib.h string.h unistd.h sys/param.h
22071 do
22072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22074   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22077   echo $ECHO_N "(cached) $ECHO_C" >&6
22078 fi
22079 ac_res=`eval echo '${'$as_ac_Header'}'`
22080                { echo "$as_me:$LINENO: result: $ac_res" >&5
22081 echo "${ECHO_T}$ac_res" >&6; }
22082 else
22083   # Is the header compilable?
22084 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22086 cat >conftest.$ac_ext <<_ACEOF
22087 /* confdefs.h.  */
22088 _ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h.  */
22092 $ac_includes_default
22093 #include <$ac_header>
22094 _ACEOF
22095 rm -f conftest.$ac_objext
22096 if { (ac_try="$ac_compile"
22097 case "(($ac_try" in
22098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099   *) ac_try_echo=$ac_try;;
22100 esac
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102   (eval "$ac_compile") 2>conftest.er1
22103   ac_status=$?
22104   grep -v '^ *+' conftest.er1 >conftest.err
22105   rm -f conftest.er1
22106   cat conftest.err >&5
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); } && {
22109          test -z "$ac_c_werror_flag" ||
22110          test ! -s conftest.err
22111        } && test -s conftest.$ac_objext; then
22112   ac_header_compiler=yes
22113 else
22114   echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22116
22117         ac_header_compiler=no
22118 fi
22119
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22122 echo "${ECHO_T}$ac_header_compiler" >&6; }
22123
22124 # Is the header present?
22125 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22127 cat >conftest.$ac_ext <<_ACEOF
22128 /* confdefs.h.  */
22129 _ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h.  */
22133 #include <$ac_header>
22134 _ACEOF
22135 if { (ac_try="$ac_cpp conftest.$ac_ext"
22136 case "(($ac_try" in
22137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138   *) ac_try_echo=$ac_try;;
22139 esac
22140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22142   ac_status=$?
22143   grep -v '^ *+' conftest.er1 >conftest.err
22144   rm -f conftest.er1
22145   cat conftest.err >&5
22146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147   (exit $ac_status); } >/dev/null && {
22148          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22149          test ! -s conftest.err
22150        }; then
22151   ac_header_preproc=yes
22152 else
22153   echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22155
22156   ac_header_preproc=no
22157 fi
22158
22159 rm -f conftest.err conftest.$ac_ext
22160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22161 echo "${ECHO_T}$ac_header_preproc" >&6; }
22162
22163 # So?  What about this header?
22164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22165   yes:no: )
22166     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22170     ac_header_preproc=yes
22171     ;;
22172   no:yes:* )
22173     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22175     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22176 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22177     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22179     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22180 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22183     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22185
22186     ;;
22187 esac
22188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22191   echo $ECHO_N "(cached) $ECHO_C" >&6
22192 else
22193   eval "$as_ac_Header=\$ac_header_preproc"
22194 fi
22195 ac_res=`eval echo '${'$as_ac_Header'}'`
22196                { echo "$as_me:$LINENO: result: $ac_res" >&5
22197 echo "${ECHO_T}$ac_res" >&6; }
22198
22199 fi
22200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22201   cat >>confdefs.h <<_ACEOF
22202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22203 _ACEOF
22204
22205 fi
22206
22207 done
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22233 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22234 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22235 __fsetlocking
22236 do
22237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22241   echo $ECHO_N "(cached) $ECHO_C" >&6
22242 else
22243   cat >conftest.$ac_ext <<_ACEOF
22244 /* confdefs.h.  */
22245 _ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h.  */
22249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22251 #define $ac_func innocuous_$ac_func
22252
22253 /* System header to define __stub macros and hopefully few prototypes,
22254     which can conflict with char $ac_func (); below.
22255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22256     <limits.h> exists even on freestanding compilers.  */
22257
22258 #ifdef __STDC__
22259 # include <limits.h>
22260 #else
22261 # include <assert.h>
22262 #endif
22263
22264 #undef $ac_func
22265
22266 /* Override any GCC internal prototype to avoid an error.
22267    Use char because int might match the return type of a GCC
22268    builtin and then its argument prototype would still apply.  */
22269 #ifdef __cplusplus
22270 extern "C"
22271 #endif
22272 char $ac_func ();
22273 /* The GNU C library defines this for functions which it implements
22274     to always fail with ENOSYS.  Some functions are actually named
22275     something starting with __ and the normal name is an alias.  */
22276 #if defined __stub_$ac_func || defined __stub___$ac_func
22277 choke me
22278 #endif
22279
22280 int
22281 main ()
22282 {
22283 return $ac_func ();
22284   ;
22285   return 0;
22286 }
22287 _ACEOF
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292   *) ac_try_echo=$ac_try;;
22293 esac
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295   (eval "$ac_link") 2>conftest.er1
22296   ac_status=$?
22297   grep -v '^ *+' conftest.er1 >conftest.err
22298   rm -f conftest.er1
22299   cat conftest.err >&5
22300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301   (exit $ac_status); } && {
22302          test -z "$ac_c_werror_flag" ||
22303          test ! -s conftest.err
22304        } && test -s conftest$ac_exeext &&
22305        $as_test_x conftest$ac_exeext; then
22306   eval "$as_ac_var=yes"
22307 else
22308   echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22310
22311         eval "$as_ac_var=no"
22312 fi
22313
22314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22315       conftest$ac_exeext conftest.$ac_ext
22316 fi
22317 ac_res=`eval echo '${'$as_ac_var'}'`
22318                { echo "$as_me:$LINENO: result: $ac_res" >&5
22319 echo "${ECHO_T}$ac_res" >&6; }
22320 if test `eval echo '${'$as_ac_var'}'` = yes; then
22321   cat >>confdefs.h <<_ACEOF
22322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22323 _ACEOF
22324
22325 fi
22326 done
22327
22328
22329
22330   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22331 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22332 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22333   echo $ECHO_N "(cached) $ECHO_C" >&6
22334 else
22335   cat >conftest.$ac_ext <<_ACEOF
22336 /* confdefs.h.  */
22337 _ACEOF
22338 cat confdefs.h >>conftest.$ac_ext
22339 cat >>conftest.$ac_ext <<_ACEOF
22340 /* end confdefs.h.  */
22341 #include <stdio.h>
22342 int
22343 main ()
22344 {
22345
22346 #ifndef _snprintf
22347   char *p = (char *) _snprintf;
22348 #endif
22349
22350   ;
22351   return 0;
22352 }
22353 _ACEOF
22354 rm -f conftest.$ac_objext
22355 if { (ac_try="$ac_compile"
22356 case "(($ac_try" in
22357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22358   *) ac_try_echo=$ac_try;;
22359 esac
22360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22361   (eval "$ac_compile") 2>conftest.er1
22362   ac_status=$?
22363   grep -v '^ *+' conftest.er1 >conftest.err
22364   rm -f conftest.er1
22365   cat conftest.err >&5
22366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367   (exit $ac_status); } && {
22368          test -z "$ac_c_werror_flag" ||
22369          test ! -s conftest.err
22370        } && test -s conftest.$ac_objext; then
22371   ac_cv_have_decl__snprintf=yes
22372 else
22373   echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22375
22376         ac_cv_have_decl__snprintf=no
22377 fi
22378
22379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22380 fi
22381 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22382 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22383   if test $ac_cv_have_decl__snprintf = yes; then
22384     gt_value=1
22385   else
22386     gt_value=0
22387   fi
22388
22389 cat >>confdefs.h <<_ACEOF
22390 #define HAVE_DECL__SNPRINTF $gt_value
22391 _ACEOF
22392
22393
22394
22395   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22396 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22397 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22398   echo $ECHO_N "(cached) $ECHO_C" >&6
22399 else
22400   cat >conftest.$ac_ext <<_ACEOF
22401 /* confdefs.h.  */
22402 _ACEOF
22403 cat confdefs.h >>conftest.$ac_ext
22404 cat >>conftest.$ac_ext <<_ACEOF
22405 /* end confdefs.h.  */
22406 #include <stdio.h>
22407 int
22408 main ()
22409 {
22410
22411 #ifndef _snwprintf
22412   char *p = (char *) _snwprintf;
22413 #endif
22414
22415   ;
22416   return 0;
22417 }
22418 _ACEOF
22419 rm -f conftest.$ac_objext
22420 if { (ac_try="$ac_compile"
22421 case "(($ac_try" in
22422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22423   *) ac_try_echo=$ac_try;;
22424 esac
22425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22426   (eval "$ac_compile") 2>conftest.er1
22427   ac_status=$?
22428   grep -v '^ *+' conftest.er1 >conftest.err
22429   rm -f conftest.er1
22430   cat conftest.err >&5
22431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432   (exit $ac_status); } && {
22433          test -z "$ac_c_werror_flag" ||
22434          test ! -s conftest.err
22435        } && test -s conftest.$ac_objext; then
22436   ac_cv_have_decl__snwprintf=yes
22437 else
22438   echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22440
22441         ac_cv_have_decl__snwprintf=no
22442 fi
22443
22444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22445 fi
22446 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22447 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22448   if test $ac_cv_have_decl__snwprintf = yes; then
22449     gt_value=1
22450   else
22451     gt_value=0
22452   fi
22453
22454 cat >>confdefs.h <<_ACEOF
22455 #define HAVE_DECL__SNWPRINTF $gt_value
22456 _ACEOF
22457
22458
22459
22460
22461   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22462 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22463 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22464   echo $ECHO_N "(cached) $ECHO_C" >&6
22465 else
22466   cat >conftest.$ac_ext <<_ACEOF
22467 /* confdefs.h.  */
22468 _ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h.  */
22472 #include <stdio.h>
22473 int
22474 main ()
22475 {
22476
22477 #ifndef feof_unlocked
22478   char *p = (char *) feof_unlocked;
22479 #endif
22480
22481   ;
22482   return 0;
22483 }
22484 _ACEOF
22485 rm -f conftest.$ac_objext
22486 if { (ac_try="$ac_compile"
22487 case "(($ac_try" in
22488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489   *) ac_try_echo=$ac_try;;
22490 esac
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492   (eval "$ac_compile") 2>conftest.er1
22493   ac_status=$?
22494   grep -v '^ *+' conftest.er1 >conftest.err
22495   rm -f conftest.er1
22496   cat conftest.err >&5
22497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498   (exit $ac_status); } && {
22499          test -z "$ac_c_werror_flag" ||
22500          test ! -s conftest.err
22501        } && test -s conftest.$ac_objext; then
22502   ac_cv_have_decl_feof_unlocked=yes
22503 else
22504   echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22506
22507         ac_cv_have_decl_feof_unlocked=no
22508 fi
22509
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22511 fi
22512 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22513 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22514   if test $ac_cv_have_decl_feof_unlocked = yes; then
22515     gt_value=1
22516   else
22517     gt_value=0
22518   fi
22519
22520 cat >>confdefs.h <<_ACEOF
22521 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22522 _ACEOF
22523
22524
22525
22526   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22527 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22528 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22529   echo $ECHO_N "(cached) $ECHO_C" >&6
22530 else
22531   cat >conftest.$ac_ext <<_ACEOF
22532 /* confdefs.h.  */
22533 _ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h.  */
22537 #include <stdio.h>
22538 int
22539 main ()
22540 {
22541
22542 #ifndef fgets_unlocked
22543   char *p = (char *) fgets_unlocked;
22544 #endif
22545
22546   ;
22547   return 0;
22548 }
22549 _ACEOF
22550 rm -f conftest.$ac_objext
22551 if { (ac_try="$ac_compile"
22552 case "(($ac_try" in
22553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22554   *) ac_try_echo=$ac_try;;
22555 esac
22556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22557   (eval "$ac_compile") 2>conftest.er1
22558   ac_status=$?
22559   grep -v '^ *+' conftest.er1 >conftest.err
22560   rm -f conftest.er1
22561   cat conftest.err >&5
22562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); } && {
22564          test -z "$ac_c_werror_flag" ||
22565          test ! -s conftest.err
22566        } && test -s conftest.$ac_objext; then
22567   ac_cv_have_decl_fgets_unlocked=yes
22568 else
22569   echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22571
22572         ac_cv_have_decl_fgets_unlocked=no
22573 fi
22574
22575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22576 fi
22577 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22578 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22579   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22580     gt_value=1
22581   else
22582     gt_value=0
22583   fi
22584
22585 cat >>confdefs.h <<_ACEOF
22586 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22587 _ACEOF
22588
22589
22590
22591   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22592 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22593 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22594   echo $ECHO_N "(cached) $ECHO_C" >&6
22595 else
22596   cat >conftest.$ac_ext <<_ACEOF
22597 /* confdefs.h.  */
22598 _ACEOF
22599 cat confdefs.h >>conftest.$ac_ext
22600 cat >>conftest.$ac_ext <<_ACEOF
22601 /* end confdefs.h.  */
22602 #include <stdio.h>
22603 int
22604 main ()
22605 {
22606
22607 #ifndef getc_unlocked
22608   char *p = (char *) getc_unlocked;
22609 #endif
22610
22611   ;
22612   return 0;
22613 }
22614 _ACEOF
22615 rm -f conftest.$ac_objext
22616 if { (ac_try="$ac_compile"
22617 case "(($ac_try" in
22618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22619   *) ac_try_echo=$ac_try;;
22620 esac
22621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22622   (eval "$ac_compile") 2>conftest.er1
22623   ac_status=$?
22624   grep -v '^ *+' conftest.er1 >conftest.err
22625   rm -f conftest.er1
22626   cat conftest.err >&5
22627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628   (exit $ac_status); } && {
22629          test -z "$ac_c_werror_flag" ||
22630          test ! -s conftest.err
22631        } && test -s conftest.$ac_objext; then
22632   ac_cv_have_decl_getc_unlocked=yes
22633 else
22634   echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22636
22637         ac_cv_have_decl_getc_unlocked=no
22638 fi
22639
22640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22641 fi
22642 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22643 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22644   if test $ac_cv_have_decl_getc_unlocked = yes; then
22645     gt_value=1
22646   else
22647     gt_value=0
22648   fi
22649
22650 cat >>confdefs.h <<_ACEOF
22651 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22652 _ACEOF
22653
22654
22655
22656   case $gt_cv_func_printf_posix in
22657     *yes) HAVE_POSIX_PRINTF=1 ;;
22658     *) HAVE_POSIX_PRINTF=0 ;;
22659   esac
22660
22661   if test "$ac_cv_func_asprintf" = yes; then
22662     HAVE_ASPRINTF=1
22663   else
22664     HAVE_ASPRINTF=0
22665   fi
22666
22667   if test "$ac_cv_func_snprintf" = yes; then
22668     HAVE_SNPRINTF=1
22669   else
22670     HAVE_SNPRINTF=0
22671   fi
22672
22673   if test "$ac_cv_func_wprintf" = yes; then
22674     HAVE_WPRINTF=1
22675   else
22676     HAVE_WPRINTF=0
22677   fi
22678
22679
22680
22681
22682
22683
22684
22685           am_save_CPPFLAGS="$CPPFLAGS"
22686
22687   for element in $INCICONV; do
22688     haveit=
22689     for x in $CPPFLAGS; do
22690
22691   acl_save_prefix="$prefix"
22692   prefix="$acl_final_prefix"
22693   acl_save_exec_prefix="$exec_prefix"
22694   exec_prefix="$acl_final_exec_prefix"
22695   eval x=\"$x\"
22696   exec_prefix="$acl_save_exec_prefix"
22697   prefix="$acl_save_prefix"
22698
22699       if test "X$x" = "X$element"; then
22700         haveit=yes
22701         break
22702       fi
22703     done
22704     if test -z "$haveit"; then
22705       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22706     fi
22707   done
22708
22709
22710   { echo "$as_me:$LINENO: checking for iconv" >&5
22711 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22712 if test "${am_cv_func_iconv+set}" = set; then
22713   echo $ECHO_N "(cached) $ECHO_C" >&6
22714 else
22715
22716     am_cv_func_iconv="no, consider installing GNU libiconv"
22717     am_cv_lib_iconv=no
22718     cat >conftest.$ac_ext <<_ACEOF
22719 /* confdefs.h.  */
22720 _ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h.  */
22724 #include <stdlib.h>
22725 #include <iconv.h>
22726 int
22727 main ()
22728 {
22729 iconv_t cd = iconv_open("","");
22730        iconv(cd,NULL,NULL,NULL,NULL);
22731        iconv_close(cd);
22732   ;
22733   return 0;
22734 }
22735 _ACEOF
22736 rm -f conftest.$ac_objext conftest$ac_exeext
22737 if { (ac_try="$ac_link"
22738 case "(($ac_try" in
22739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740   *) ac_try_echo=$ac_try;;
22741 esac
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743   (eval "$ac_link") 2>conftest.er1
22744   ac_status=$?
22745   grep -v '^ *+' conftest.er1 >conftest.err
22746   rm -f conftest.er1
22747   cat conftest.err >&5
22748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); } && {
22750          test -z "$ac_c_werror_flag" ||
22751          test ! -s conftest.err
22752        } && test -s conftest$ac_exeext &&
22753        $as_test_x conftest$ac_exeext; then
22754   am_cv_func_iconv=yes
22755 else
22756   echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759
22760 fi
22761
22762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22763       conftest$ac_exeext conftest.$ac_ext
22764     if test "$am_cv_func_iconv" != yes; then
22765       am_save_LIBS="$LIBS"
22766       LIBS="$LIBS $LIBICONV"
22767       cat >conftest.$ac_ext <<_ACEOF
22768 /* confdefs.h.  */
22769 _ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h.  */
22773 #include <stdlib.h>
22774 #include <iconv.h>
22775 int
22776 main ()
22777 {
22778 iconv_t cd = iconv_open("","");
22779          iconv(cd,NULL,NULL,NULL,NULL);
22780          iconv_close(cd);
22781   ;
22782   return 0;
22783 }
22784 _ACEOF
22785 rm -f conftest.$ac_objext conftest$ac_exeext
22786 if { (ac_try="$ac_link"
22787 case "(($ac_try" in
22788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22789   *) ac_try_echo=$ac_try;;
22790 esac
22791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22792   (eval "$ac_link") 2>conftest.er1
22793   ac_status=$?
22794   grep -v '^ *+' conftest.er1 >conftest.err
22795   rm -f conftest.er1
22796   cat conftest.err >&5
22797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798   (exit $ac_status); } && {
22799          test -z "$ac_c_werror_flag" ||
22800          test ! -s conftest.err
22801        } && test -s conftest$ac_exeext &&
22802        $as_test_x conftest$ac_exeext; then
22803   am_cv_lib_iconv=yes
22804         am_cv_func_iconv=yes
22805 else
22806   echo "$as_me: failed program was:" >&5
22807 sed 's/^/| /' conftest.$ac_ext >&5
22808
22809
22810 fi
22811
22812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22813       conftest$ac_exeext conftest.$ac_ext
22814       LIBS="$am_save_LIBS"
22815     fi
22816
22817 fi
22818 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22819 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22820   if test "$am_cv_func_iconv" = yes; then
22821
22822 cat >>confdefs.h <<\_ACEOF
22823 #define HAVE_ICONV 1
22824 _ACEOF
22825
22826   fi
22827   if test "$am_cv_lib_iconv" = yes; then
22828     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22829 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22830     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22831 echo "${ECHO_T}$LIBICONV" >&6; }
22832   else
22833             CPPFLAGS="$am_save_CPPFLAGS"
22834     LIBICONV=
22835     LTLIBICONV=
22836   fi
22837
22838
22839
22840   if test "$am_cv_func_iconv" = yes; then
22841     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22842 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22843     if test "${am_cv_proto_iconv+set}" = set; then
22844   echo $ECHO_N "(cached) $ECHO_C" >&6
22845 else
22846
22847       cat >conftest.$ac_ext <<_ACEOF
22848 /* confdefs.h.  */
22849 _ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h.  */
22853
22854 #include <stdlib.h>
22855 #include <iconv.h>
22856 extern
22857 #ifdef __cplusplus
22858 "C"
22859 #endif
22860 #if defined(__STDC__) || defined(__cplusplus)
22861 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22862 #else
22863 size_t iconv();
22864 #endif
22865
22866 int
22867 main ()
22868 {
22869
22870   ;
22871   return 0;
22872 }
22873 _ACEOF
22874 rm -f conftest.$ac_objext
22875 if { (ac_try="$ac_compile"
22876 case "(($ac_try" in
22877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878   *) ac_try_echo=$ac_try;;
22879 esac
22880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22881   (eval "$ac_compile") 2>conftest.er1
22882   ac_status=$?
22883   grep -v '^ *+' conftest.er1 >conftest.err
22884   rm -f conftest.er1
22885   cat conftest.err >&5
22886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887   (exit $ac_status); } && {
22888          test -z "$ac_c_werror_flag" ||
22889          test ! -s conftest.err
22890        } && test -s conftest.$ac_objext; then
22891   am_cv_proto_iconv_arg1=""
22892 else
22893   echo "$as_me: failed program was:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22895
22896         am_cv_proto_iconv_arg1="const"
22897 fi
22898
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900       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);"
22901 fi
22902
22903     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22904     { echo "$as_me:$LINENO: result: ${ac_t:-
22905          }$am_cv_proto_iconv" >&5
22906 echo "${ECHO_T}${ac_t:-
22907          }$am_cv_proto_iconv" >&6; }
22908
22909 cat >>confdefs.h <<_ACEOF
22910 #define ICONV_CONST $am_cv_proto_iconv_arg1
22911 _ACEOF
22912
22913   fi
22914
22915
22916   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22917 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22918 if test "${am_cv_langinfo_codeset+set}" = set; then
22919   echo $ECHO_N "(cached) $ECHO_C" >&6
22920 else
22921   cat >conftest.$ac_ext <<_ACEOF
22922 /* confdefs.h.  */
22923 _ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h.  */
22927 #include <langinfo.h>
22928 int
22929 main ()
22930 {
22931 char* cs = nl_langinfo(CODESET);
22932   ;
22933   return 0;
22934 }
22935 _ACEOF
22936 rm -f conftest.$ac_objext conftest$ac_exeext
22937 if { (ac_try="$ac_link"
22938 case "(($ac_try" in
22939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22940   *) ac_try_echo=$ac_try;;
22941 esac
22942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22943   (eval "$ac_link") 2>conftest.er1
22944   ac_status=$?
22945   grep -v '^ *+' conftest.er1 >conftest.err
22946   rm -f conftest.er1
22947   cat conftest.err >&5
22948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949   (exit $ac_status); } && {
22950          test -z "$ac_c_werror_flag" ||
22951          test ! -s conftest.err
22952        } && test -s conftest$ac_exeext &&
22953        $as_test_x conftest$ac_exeext; then
22954   am_cv_langinfo_codeset=yes
22955 else
22956   echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22958
22959         am_cv_langinfo_codeset=no
22960 fi
22961
22962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22963       conftest$ac_exeext conftest.$ac_ext
22964
22965 fi
22966 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22967 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22968   if test $am_cv_langinfo_codeset = yes; then
22969
22970 cat >>confdefs.h <<\_ACEOF
22971 #define HAVE_LANGINFO_CODESET 1
22972 _ACEOF
22973
22974   fi
22975
22976   if test $ac_cv_header_locale_h = yes; then
22977
22978   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22979 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22980 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22981   echo $ECHO_N "(cached) $ECHO_C" >&6
22982 else
22983   cat >conftest.$ac_ext <<_ACEOF
22984 /* confdefs.h.  */
22985 _ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h.  */
22989 #include <locale.h>
22990 int
22991 main ()
22992 {
22993 return LC_MESSAGES
22994   ;
22995   return 0;
22996 }
22997 _ACEOF
22998 rm -f conftest.$ac_objext conftest$ac_exeext
22999 if { (ac_try="$ac_link"
23000 case "(($ac_try" in
23001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002   *) ac_try_echo=$ac_try;;
23003 esac
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005   (eval "$ac_link") 2>conftest.er1
23006   ac_status=$?
23007   grep -v '^ *+' conftest.er1 >conftest.err
23008   rm -f conftest.er1
23009   cat conftest.err >&5
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); } && {
23012          test -z "$ac_c_werror_flag" ||
23013          test ! -s conftest.err
23014        } && test -s conftest$ac_exeext &&
23015        $as_test_x conftest$ac_exeext; then
23016   gt_cv_val_LC_MESSAGES=yes
23017 else
23018   echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23020
23021         gt_cv_val_LC_MESSAGES=no
23022 fi
23023
23024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23025       conftest$ac_exeext conftest.$ac_ext
23026 fi
23027 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23028 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23029   if test $gt_cv_val_LC_MESSAGES = yes; then
23030
23031 cat >>confdefs.h <<\_ACEOF
23032 #define HAVE_LC_MESSAGES 1
23033 _ACEOF
23034
23035   fi
23036
23037   fi
23038
23039   if test -n "$INTL_MACOSX_LIBS"; then
23040     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23041   fi
23042
23043                       for ac_prog in bison
23044 do
23045   # Extract the first word of "$ac_prog", so it can be a program name with args.
23046 set dummy $ac_prog; ac_word=$2
23047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23049 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23050   echo $ECHO_N "(cached) $ECHO_C" >&6
23051 else
23052   if test -n "$INTLBISON"; then
23053   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23054 else
23055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23056 for as_dir in $PATH
23057 do
23058   IFS=$as_save_IFS
23059   test -z "$as_dir" && as_dir=.
23060   for ac_exec_ext in '' $ac_executable_extensions; do
23061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23062     ac_cv_prog_INTLBISON="$ac_prog"
23063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23064     break 2
23065   fi
23066 done
23067 done
23068 IFS=$as_save_IFS
23069
23070 fi
23071 fi
23072 INTLBISON=$ac_cv_prog_INTLBISON
23073 if test -n "$INTLBISON"; then
23074   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23075 echo "${ECHO_T}$INTLBISON" >&6; }
23076 else
23077   { echo "$as_me:$LINENO: result: no" >&5
23078 echo "${ECHO_T}no" >&6; }
23079 fi
23080
23081
23082   test -n "$INTLBISON" && break
23083 done
23084
23085   if test -z "$INTLBISON"; then
23086     ac_verc_fail=yes
23087   else
23088         { echo "$as_me:$LINENO: checking version of bison" >&5
23089 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23090     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23091     case $ac_prog_version in
23092       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23093       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23094          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23095       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23096     esac
23097     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23098 echo "${ECHO_T}$ac_prog_version" >&6; }
23099   fi
23100   if test $ac_verc_fail = yes; then
23101     INTLBISON=:
23102   fi
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23120 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23121 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23122   echo $ECHO_N "(cached) $ECHO_C" >&6
23123 else
23124   gt_save_CPPFLAGS="$CPPFLAGS"
23125      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23126      gt_save_LIBS="$LIBS"
23127      LIBS="$LIBS -framework CoreFoundation"
23128      cat >conftest.$ac_ext <<_ACEOF
23129 /* confdefs.h.  */
23130 _ACEOF
23131 cat confdefs.h >>conftest.$ac_ext
23132 cat >>conftest.$ac_ext <<_ACEOF
23133 /* end confdefs.h.  */
23134 #include <CFPreferences.h>
23135 int
23136 main ()
23137 {
23138 CFPreferencesCopyAppValue(NULL, NULL)
23139   ;
23140   return 0;
23141 }
23142 _ACEOF
23143 rm -f conftest.$ac_objext conftest$ac_exeext
23144 if { (ac_try="$ac_link"
23145 case "(($ac_try" in
23146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147   *) ac_try_echo=$ac_try;;
23148 esac
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150   (eval "$ac_link") 2>conftest.er1
23151   ac_status=$?
23152   grep -v '^ *+' conftest.er1 >conftest.err
23153   rm -f conftest.er1
23154   cat conftest.err >&5
23155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156   (exit $ac_status); } && {
23157          test -z "$ac_c_werror_flag" ||
23158          test ! -s conftest.err
23159        } && test -s conftest$ac_exeext &&
23160        $as_test_x conftest$ac_exeext; then
23161   gt_cv_func_CFPreferencesCopyAppValue=yes
23162 else
23163   echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23165
23166         gt_cv_func_CFPreferencesCopyAppValue=no
23167 fi
23168
23169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23170       conftest$ac_exeext conftest.$ac_ext
23171      CPPFLAGS="$gt_save_CPPFLAGS"
23172      LIBS="$gt_save_LIBS"
23173 fi
23174 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23175 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23176   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23177
23178 cat >>confdefs.h <<\_ACEOF
23179 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23180 _ACEOF
23181
23182   fi
23183     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23184 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23185 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23186   echo $ECHO_N "(cached) $ECHO_C" >&6
23187 else
23188   gt_save_CPPFLAGS="$CPPFLAGS"
23189      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23190      gt_save_LIBS="$LIBS"
23191      LIBS="$LIBS -framework CoreFoundation"
23192      cat >conftest.$ac_ext <<_ACEOF
23193 /* confdefs.h.  */
23194 _ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h.  */
23198 #include <CFLocale.h>
23199 int
23200 main ()
23201 {
23202 CFLocaleCopyCurrent();
23203   ;
23204   return 0;
23205 }
23206 _ACEOF
23207 rm -f conftest.$ac_objext conftest$ac_exeext
23208 if { (ac_try="$ac_link"
23209 case "(($ac_try" in
23210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211   *) ac_try_echo=$ac_try;;
23212 esac
23213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23214   (eval "$ac_link") 2>conftest.er1
23215   ac_status=$?
23216   grep -v '^ *+' conftest.er1 >conftest.err
23217   rm -f conftest.er1
23218   cat conftest.err >&5
23219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); } && {
23221          test -z "$ac_c_werror_flag" ||
23222          test ! -s conftest.err
23223        } && test -s conftest$ac_exeext &&
23224        $as_test_x conftest$ac_exeext; then
23225   gt_cv_func_CFLocaleCopyCurrent=yes
23226 else
23227   echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23229
23230         gt_cv_func_CFLocaleCopyCurrent=no
23231 fi
23232
23233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23234       conftest$ac_exeext conftest.$ac_ext
23235      CPPFLAGS="$gt_save_CPPFLAGS"
23236      LIBS="$gt_save_LIBS"
23237 fi
23238 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23239 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23240   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23241
23242 cat >>confdefs.h <<\_ACEOF
23243 #define HAVE_CFLOCALECOPYCURRENT 1
23244 _ACEOF
23245
23246   fi
23247   INTL_MACOSX_LIBS=
23248   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23249     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23250   fi
23251
23252
23253
23254
23255   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23256 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23257     # Check whether --enable-nls was given.
23258 if test "${enable_nls+set}" = set; then
23259   enableval=$enable_nls; USE_NLS=$enableval
23260 else
23261   USE_NLS=yes
23262 fi
23263
23264   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23265 echo "${ECHO_T}$USE_NLS" >&6; }
23266
23267
23268
23269
23270     BUILD_INCLUDED_LIBINTL=no
23271     USE_INCLUDED_LIBINTL=no
23272
23273   LIBINTL=
23274   LTLIBINTL=
23275   POSUB=
23276
23277     if test "$USE_NLS" = "yes"; then
23278     gt_use_preinstalled_gnugettext=no
23279
23280       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23281 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23282
23283 # Check whether --with-included-gettext was given.
23284 if test "${with_included_gettext+set}" = set; then
23285   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23286 else
23287   nls_cv_force_use_gnu_gettext=no
23288 fi
23289
23290       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23291 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23292
23293       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23294       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23295
23296
23297
23298
23299
23300
23301         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23302 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23303 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23304   echo $ECHO_N "(cached) $ECHO_C" >&6
23305 else
23306   cat >conftest.$ac_ext <<_ACEOF
23307 /* confdefs.h.  */
23308 _ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h.  */
23312 #include <libintl.h>
23313 extern int _nl_msg_cat_cntr;
23314 extern int *_nl_domain_bindings;
23315 int
23316 main ()
23317 {
23318 bindtextdomain ("", "");
23319 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23320   ;
23321   return 0;
23322 }
23323 _ACEOF
23324 rm -f conftest.$ac_objext conftest$ac_exeext
23325 if { (ac_try="$ac_link"
23326 case "(($ac_try" in
23327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328   *) ac_try_echo=$ac_try;;
23329 esac
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331   (eval "$ac_link") 2>conftest.er1
23332   ac_status=$?
23333   grep -v '^ *+' conftest.er1 >conftest.err
23334   rm -f conftest.er1
23335   cat conftest.err >&5
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); } && {
23338          test -z "$ac_c_werror_flag" ||
23339          test ! -s conftest.err
23340        } && test -s conftest$ac_exeext &&
23341        $as_test_x conftest$ac_exeext; then
23342   gt_cv_func_gnugettext1_libc=yes
23343 else
23344   echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23346
23347         gt_cv_func_gnugettext1_libc=no
23348 fi
23349
23350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23351       conftest$ac_exeext conftest.$ac_ext
23352 fi
23353 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23354 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23355
23356         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23357
23358
23359
23360     use_additional=yes
23361
23362   acl_save_prefix="$prefix"
23363   prefix="$acl_final_prefix"
23364   acl_save_exec_prefix="$exec_prefix"
23365   exec_prefix="$acl_final_exec_prefix"
23366
23367     eval additional_includedir=\"$includedir\"
23368     eval additional_libdir=\"$libdir\"
23369
23370   exec_prefix="$acl_save_exec_prefix"
23371   prefix="$acl_save_prefix"
23372
23373
23374 # Check whether --with-libintl-prefix was given.
23375 if test "${with_libintl_prefix+set}" = set; then
23376   withval=$with_libintl_prefix;
23377     if test "X$withval" = "Xno"; then
23378       use_additional=no
23379     else
23380       if test "X$withval" = "X"; then
23381
23382   acl_save_prefix="$prefix"
23383   prefix="$acl_final_prefix"
23384   acl_save_exec_prefix="$exec_prefix"
23385   exec_prefix="$acl_final_exec_prefix"
23386
23387           eval additional_includedir=\"$includedir\"
23388           eval additional_libdir=\"$libdir\"
23389
23390   exec_prefix="$acl_save_exec_prefix"
23391   prefix="$acl_save_prefix"
23392
23393       else
23394         additional_includedir="$withval/include"
23395         additional_libdir="$withval/lib"
23396       fi
23397     fi
23398
23399 fi
23400
23401       LIBINTL=
23402   LTLIBINTL=
23403   INCINTL=
23404   rpathdirs=
23405   ltrpathdirs=
23406   names_already_handled=
23407   names_next_round='intl '
23408   while test -n "$names_next_round"; do
23409     names_this_round="$names_next_round"
23410     names_next_round=
23411     for name in $names_this_round; do
23412       already_handled=
23413       for n in $names_already_handled; do
23414         if test "$n" = "$name"; then
23415           already_handled=yes
23416           break
23417         fi
23418       done
23419       if test -z "$already_handled"; then
23420         names_already_handled="$names_already_handled $name"
23421                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23422         eval value=\"\$HAVE_LIB$uppername\"
23423         if test -n "$value"; then
23424           if test "$value" = yes; then
23425             eval value=\"\$LIB$uppername\"
23426             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23427             eval value=\"\$LTLIB$uppername\"
23428             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23429           else
23430                                     :
23431           fi
23432         else
23433                               found_dir=
23434           found_la=
23435           found_so=
23436           found_a=
23437           if test $use_additional = yes; then
23438             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23439               found_dir="$additional_libdir"
23440               found_so="$additional_libdir/lib$name.$shlibext"
23441               if test -f "$additional_libdir/lib$name.la"; then
23442                 found_la="$additional_libdir/lib$name.la"
23443               fi
23444             else
23445               if test -f "$additional_libdir/lib$name.$libext"; then
23446                 found_dir="$additional_libdir"
23447                 found_a="$additional_libdir/lib$name.$libext"
23448                 if test -f "$additional_libdir/lib$name.la"; then
23449                   found_la="$additional_libdir/lib$name.la"
23450                 fi
23451               fi
23452             fi
23453           fi
23454           if test "X$found_dir" = "X"; then
23455             for x in $LDFLAGS $LTLIBINTL; do
23456
23457   acl_save_prefix="$prefix"
23458   prefix="$acl_final_prefix"
23459   acl_save_exec_prefix="$exec_prefix"
23460   exec_prefix="$acl_final_exec_prefix"
23461   eval x=\"$x\"
23462   exec_prefix="$acl_save_exec_prefix"
23463   prefix="$acl_save_prefix"
23464
23465               case "$x" in
23466                 -L*)
23467                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23468                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23469                     found_dir="$dir"
23470                     found_so="$dir/lib$name.$shlibext"
23471                     if test -f "$dir/lib$name.la"; then
23472                       found_la="$dir/lib$name.la"
23473                     fi
23474                   else
23475                     if test -f "$dir/lib$name.$libext"; then
23476                       found_dir="$dir"
23477                       found_a="$dir/lib$name.$libext"
23478                       if test -f "$dir/lib$name.la"; then
23479                         found_la="$dir/lib$name.la"
23480                       fi
23481                     fi
23482                   fi
23483                   ;;
23484               esac
23485               if test "X$found_dir" != "X"; then
23486                 break
23487               fi
23488             done
23489           fi
23490           if test "X$found_dir" != "X"; then
23491                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23492             if test "X$found_so" != "X"; then
23493                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23494                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23495               else
23496                                                                                 haveit=
23497                 for x in $ltrpathdirs; do
23498                   if test "X$x" = "X$found_dir"; then
23499                     haveit=yes
23500                     break
23501                   fi
23502                 done
23503                 if test -z "$haveit"; then
23504                   ltrpathdirs="$ltrpathdirs $found_dir"
23505                 fi
23506                                 if test "$hardcode_direct" = yes; then
23507                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23508                 else
23509                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23510                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23511                                                             haveit=
23512                     for x in $rpathdirs; do
23513                       if test "X$x" = "X$found_dir"; then
23514                         haveit=yes
23515                         break
23516                       fi
23517                     done
23518                     if test -z "$haveit"; then
23519                       rpathdirs="$rpathdirs $found_dir"
23520                     fi
23521                   else
23522                                                                                 haveit=
23523                     for x in $LDFLAGS $LIBINTL; do
23524
23525   acl_save_prefix="$prefix"
23526   prefix="$acl_final_prefix"
23527   acl_save_exec_prefix="$exec_prefix"
23528   exec_prefix="$acl_final_exec_prefix"
23529   eval x=\"$x\"
23530   exec_prefix="$acl_save_exec_prefix"
23531   prefix="$acl_save_prefix"
23532
23533                       if test "X$x" = "X-L$found_dir"; then
23534                         haveit=yes
23535                         break
23536                       fi
23537                     done
23538                     if test -z "$haveit"; then
23539                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23540                     fi
23541                     if test "$hardcode_minus_L" != no; then
23542                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23543                     else
23544                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23545                     fi
23546                   fi
23547                 fi
23548               fi
23549             else
23550               if test "X$found_a" != "X"; then
23551                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23552               else
23553                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23554               fi
23555             fi
23556                         additional_includedir=
23557             case "$found_dir" in
23558               */lib | */lib/)
23559                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23560                 additional_includedir="$basedir/include"
23561                 ;;
23562             esac
23563             if test "X$additional_includedir" != "X"; then
23564                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23565                 haveit=
23566                 if test "X$additional_includedir" = "X/usr/local/include"; then
23567                   if test -n "$GCC"; then
23568                     case $host_os in
23569                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23570                     esac
23571                   fi
23572                 fi
23573                 if test -z "$haveit"; then
23574                   for x in $CPPFLAGS $INCINTL; do
23575
23576   acl_save_prefix="$prefix"
23577   prefix="$acl_final_prefix"
23578   acl_save_exec_prefix="$exec_prefix"
23579   exec_prefix="$acl_final_exec_prefix"
23580   eval x=\"$x\"
23581   exec_prefix="$acl_save_exec_prefix"
23582   prefix="$acl_save_prefix"
23583
23584                     if test "X$x" = "X-I$additional_includedir"; then
23585                       haveit=yes
23586                       break
23587                     fi
23588                   done
23589                   if test -z "$haveit"; then
23590                     if test -d "$additional_includedir"; then
23591                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23592                     fi
23593                   fi
23594                 fi
23595               fi
23596             fi
23597                         if test -n "$found_la"; then
23598                                                         save_libdir="$libdir"
23599               case "$found_la" in
23600                 */* | *\\*) . "$found_la" ;;
23601                 *) . "./$found_la" ;;
23602               esac
23603               libdir="$save_libdir"
23604                             for dep in $dependency_libs; do
23605                 case "$dep" in
23606                   -L*)
23607                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23608                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23609                       haveit=
23610                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23611                         if test -n "$GCC"; then
23612                           case $host_os in
23613                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23614                           esac
23615                         fi
23616                       fi
23617                       if test -z "$haveit"; then
23618                         haveit=
23619                         for x in $LDFLAGS $LIBINTL; do
23620
23621   acl_save_prefix="$prefix"
23622   prefix="$acl_final_prefix"
23623   acl_save_exec_prefix="$exec_prefix"
23624   exec_prefix="$acl_final_exec_prefix"
23625   eval x=\"$x\"
23626   exec_prefix="$acl_save_exec_prefix"
23627   prefix="$acl_save_prefix"
23628
23629                           if test "X$x" = "X-L$additional_libdir"; then
23630                             haveit=yes
23631                             break
23632                           fi
23633                         done
23634                         if test -z "$haveit"; then
23635                           if test -d "$additional_libdir"; then
23636                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23637                           fi
23638                         fi
23639                         haveit=
23640                         for x in $LDFLAGS $LTLIBINTL; do
23641
23642   acl_save_prefix="$prefix"
23643   prefix="$acl_final_prefix"
23644   acl_save_exec_prefix="$exec_prefix"
23645   exec_prefix="$acl_final_exec_prefix"
23646   eval x=\"$x\"
23647   exec_prefix="$acl_save_exec_prefix"
23648   prefix="$acl_save_prefix"
23649
23650                           if test "X$x" = "X-L$additional_libdir"; then
23651                             haveit=yes
23652                             break
23653                           fi
23654                         done
23655                         if test -z "$haveit"; then
23656                           if test -d "$additional_libdir"; then
23657                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23658                           fi
23659                         fi
23660                       fi
23661                     fi
23662                     ;;
23663                   -R*)
23664                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23665                     if test "$enable_rpath" != no; then
23666                                                                   haveit=
23667                       for x in $rpathdirs; do
23668                         if test "X$x" = "X$dir"; then
23669                           haveit=yes
23670                           break
23671                         fi
23672                       done
23673                       if test -z "$haveit"; then
23674                         rpathdirs="$rpathdirs $dir"
23675                       fi
23676                                                                   haveit=
23677                       for x in $ltrpathdirs; do
23678                         if test "X$x" = "X$dir"; then
23679                           haveit=yes
23680                           break
23681                         fi
23682                       done
23683                       if test -z "$haveit"; then
23684                         ltrpathdirs="$ltrpathdirs $dir"
23685                       fi
23686                     fi
23687                     ;;
23688                   -l*)
23689                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23690                     ;;
23691                   *.la)
23692                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23693                     ;;
23694                   *)
23695                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23696                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23697                     ;;
23698                 esac
23699               done
23700             fi
23701           else
23702                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23703             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23704           fi
23705         fi
23706       fi
23707     done
23708   done
23709   if test "X$rpathdirs" != "X"; then
23710     if test -n "$hardcode_libdir_separator"; then
23711                         alldirs=
23712       for found_dir in $rpathdirs; do
23713         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23714       done
23715             acl_save_libdir="$libdir"
23716       libdir="$alldirs"
23717       eval flag=\"$hardcode_libdir_flag_spec\"
23718       libdir="$acl_save_libdir"
23719       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23720     else
23721             for found_dir in $rpathdirs; do
23722         acl_save_libdir="$libdir"
23723         libdir="$found_dir"
23724         eval flag=\"$hardcode_libdir_flag_spec\"
23725         libdir="$acl_save_libdir"
23726         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23727       done
23728     fi
23729   fi
23730   if test "X$ltrpathdirs" != "X"; then
23731             for found_dir in $ltrpathdirs; do
23732       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23733     done
23734   fi
23735
23736           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23737 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23738 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23739   echo $ECHO_N "(cached) $ECHO_C" >&6
23740 else
23741   gt_save_CPPFLAGS="$CPPFLAGS"
23742             CPPFLAGS="$CPPFLAGS $INCINTL"
23743             gt_save_LIBS="$LIBS"
23744             LIBS="$LIBS $LIBINTL"
23745                         cat >conftest.$ac_ext <<_ACEOF
23746 /* confdefs.h.  */
23747 _ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h.  */
23751 #include <libintl.h>
23752 extern int _nl_msg_cat_cntr;
23753 extern
23754 #ifdef __cplusplus
23755 "C"
23756 #endif
23757 const char *_nl_expand_alias (const char *);
23758 int
23759 main ()
23760 {
23761 bindtextdomain ("", "");
23762 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23763   ;
23764   return 0;
23765 }
23766 _ACEOF
23767 rm -f conftest.$ac_objext conftest$ac_exeext
23768 if { (ac_try="$ac_link"
23769 case "(($ac_try" in
23770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23771   *) ac_try_echo=$ac_try;;
23772 esac
23773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23774   (eval "$ac_link") 2>conftest.er1
23775   ac_status=$?
23776   grep -v '^ *+' conftest.er1 >conftest.err
23777   rm -f conftest.er1
23778   cat conftest.err >&5
23779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780   (exit $ac_status); } && {
23781          test -z "$ac_c_werror_flag" ||
23782          test ! -s conftest.err
23783        } && test -s conftest$ac_exeext &&
23784        $as_test_x conftest$ac_exeext; then
23785   gt_cv_func_gnugettext1_libintl=yes
23786 else
23787   echo "$as_me: failed program was:" >&5
23788 sed 's/^/| /' conftest.$ac_ext >&5
23789
23790         gt_cv_func_gnugettext1_libintl=no
23791 fi
23792
23793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23794       conftest$ac_exeext conftest.$ac_ext
23795                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23796               LIBS="$LIBS $LIBICONV"
23797               cat >conftest.$ac_ext <<_ACEOF
23798 /* confdefs.h.  */
23799 _ACEOF
23800 cat confdefs.h >>conftest.$ac_ext
23801 cat >>conftest.$ac_ext <<_ACEOF
23802 /* end confdefs.h.  */
23803 #include <libintl.h>
23804 extern int _nl_msg_cat_cntr;
23805 extern
23806 #ifdef __cplusplus
23807 "C"
23808 #endif
23809 const char *_nl_expand_alias (const char *);
23810 int
23811 main ()
23812 {
23813 bindtextdomain ("", "");
23814 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23815   ;
23816   return 0;
23817 }
23818 _ACEOF
23819 rm -f conftest.$ac_objext conftest$ac_exeext
23820 if { (ac_try="$ac_link"
23821 case "(($ac_try" in
23822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823   *) ac_try_echo=$ac_try;;
23824 esac
23825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23826   (eval "$ac_link") 2>conftest.er1
23827   ac_status=$?
23828   grep -v '^ *+' conftest.er1 >conftest.err
23829   rm -f conftest.er1
23830   cat conftest.err >&5
23831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832   (exit $ac_status); } && {
23833          test -z "$ac_c_werror_flag" ||
23834          test ! -s conftest.err
23835        } && test -s conftest$ac_exeext &&
23836        $as_test_x conftest$ac_exeext; then
23837   LIBINTL="$LIBINTL $LIBICONV"
23838                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23839                 gt_cv_func_gnugettext1_libintl=yes
23840
23841 else
23842   echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23844
23845
23846 fi
23847
23848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23849       conftest$ac_exeext conftest.$ac_ext
23850             fi
23851             CPPFLAGS="$gt_save_CPPFLAGS"
23852             LIBS="$gt_save_LIBS"
23853 fi
23854 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23855 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23856         fi
23857
23858                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23859            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23860                 && test "$PACKAGE" != gettext-runtime \
23861                 && test "$PACKAGE" != gettext-tools; }; then
23862           gt_use_preinstalled_gnugettext=yes
23863         else
23864                     LIBINTL=
23865           LTLIBINTL=
23866           INCINTL=
23867         fi
23868
23869
23870         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23871                               nls_cv_use_gnu_gettext=yes
23872         fi
23873       fi
23874
23875       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23876                 BUILD_INCLUDED_LIBINTL=yes
23877         USE_INCLUDED_LIBINTL=yes
23878         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23879         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23880         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23881       fi
23882
23883       CATOBJEXT=
23884       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23885          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23886                 CATOBJEXT=.gmo
23887       fi
23888
23889
23890     if test -n "$INTL_MACOSX_LIBS"; then
23891       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23892          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23893                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23894         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23895       fi
23896     fi
23897
23898     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23899        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23900
23901 cat >>confdefs.h <<\_ACEOF
23902 #define ENABLE_NLS 1
23903 _ACEOF
23904
23905     else
23906       USE_NLS=no
23907     fi
23908   fi
23909
23910   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23911 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23912   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23913 echo "${ECHO_T}$USE_NLS" >&6; }
23914   if test "$USE_NLS" = "yes"; then
23915     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23916 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23917     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23918       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23919         gt_source="external libintl"
23920       else
23921         gt_source="libc"
23922       fi
23923     else
23924       gt_source="included intl directory"
23925     fi
23926     { echo "$as_me:$LINENO: result: $gt_source" >&5
23927 echo "${ECHO_T}$gt_source" >&6; }
23928   fi
23929
23930   if test "$USE_NLS" = "yes"; then
23931
23932     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23933       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23934         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23935 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23936         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23937 echo "${ECHO_T}$LIBINTL" >&6; }
23938
23939   for element in $INCINTL; do
23940     haveit=
23941     for x in $CPPFLAGS; do
23942
23943   acl_save_prefix="$prefix"
23944   prefix="$acl_final_prefix"
23945   acl_save_exec_prefix="$exec_prefix"
23946   exec_prefix="$acl_final_exec_prefix"
23947   eval x=\"$x\"
23948   exec_prefix="$acl_save_exec_prefix"
23949   prefix="$acl_save_prefix"
23950
23951       if test "X$x" = "X$element"; then
23952         haveit=yes
23953         break
23954       fi
23955     done
23956     if test -z "$haveit"; then
23957       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23958     fi
23959   done
23960
23961       fi
23962
23963
23964 cat >>confdefs.h <<\_ACEOF
23965 #define HAVE_GETTEXT 1
23966 _ACEOF
23967
23968
23969 cat >>confdefs.h <<\_ACEOF
23970 #define HAVE_DCGETTEXT 1
23971 _ACEOF
23972
23973     fi
23974
23975         POSUB=po
23976   fi
23977
23978
23979             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23980       BUILD_INCLUDED_LIBINTL=yes
23981     fi
23982
23983
23984
23985
23986
23987         nls_cv_header_intl=
23988     nls_cv_header_libgt=
23989
23990         DATADIRNAME=share
23991
23992
23993         INSTOBJEXT=.mo
23994
23995
23996         GENCAT=gencat
23997
23998
23999         INTLOBJS=
24000     if test "$USE_INCLUDED_LIBINTL" = yes; then
24001       INTLOBJS="\$(GETTOBJS)"
24002     fi
24003
24004
24005         INTL_LIBTOOL_SUFFIX_PREFIX=
24006
24007
24008
24009     INTLLIBS="$LIBINTL"
24010
24011
24012
24013
24014
24015
24016 fi
24017
24018 support_mysql=no
24019 support_sqlite=no
24020 support_sqlite3=no
24021 support_postgresql=no
24022 support_ingres=no
24023 support_dbi=no
24024 support_smartalloc=yes
24025 support_readline=yes
24026 support_conio=yes
24027 support_gnome=no
24028 support_bat=no
24029 support_wx_console=no
24030 support_tray_monitor=no
24031 support_tls=no
24032 support_crypto=no
24033 gnome_version=
24034 wx_version=
24035 support_static_tools=no
24036 support_static_fd=no
24037 support_static_sd=no
24038 support_static_dir=no
24039 support_static_cons=no
24040 support_python=no
24041 build_client_only=no
24042 build_dird=yes
24043 build_stored=yes
24044 cats=
24045 db_type=Internal
24046 support_lockmgr=no
24047 DB_TYPE=bdb
24048
24049
24050 # Check whether --enable-gnome was given.
24051 if test "${enable_gnome+set}" = set; then
24052   enableval=$enable_gnome;
24053        if test x$enableval = xyes; then
24054           support_gnome=yes
24055        fi
24056
24057
24058 fi
24059
24060
24061 GNOME_DIR=
24062 if test x$support_gnome = xyes; then
24063    { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24064 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24065    { (exit 1); exit 1; }; }
24066    { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24067 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24068    { (exit 1); exit 1; }; }
24069 fi
24070 # AC_SUBST(GNOME_DIR)
24071
24072 # Check whether --enable-bat was given.
24073 if test "${enable_bat+set}" = set; then
24074   enableval=$enable_bat;
24075        if test x$enableval = xyes; then
24076
24077 cat >>confdefs.h <<\_ACEOF
24078 #define HAVE_BAT 1
24079 _ACEOF
24080
24081           support_bat=yes
24082        fi
24083
24084
24085 fi
24086
24087
24088 BAT_DIR=
24089 if test x$support_bat = xyes; then
24090    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24091    pkg=$?
24092    if test $pkg = 0; then
24093       BAT_DIR=src/qt-console
24094    else
24095       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24096 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24097    { (exit 1); exit 1; }; }
24098    fi
24099 fi
24100
24101 got_qwt=no
24102 QWT_INC=
24103 QWT_LDFLAGS=
24104 QWT_LIB=
24105 QWT=
24106 no_qwt=no
24107
24108
24109
24110
24111
24112
24113
24114
24115 # Check whether --enable-bwx-console was given.
24116 if test "${enable_bwx_console+set}" = set; then
24117   enableval=$enable_bwx_console;
24118        if test x$enableval = xyes; then
24119           support_wx_console=yes
24120        fi
24121
24122
24123 fi
24124
24125
24126 WX_DIR=
24127 if test x$support_wx_console = xyes; then
24128    abc=`$WXCONFIG $WXFLAGS --cppflags`
24129    pkg=$?
24130    if test $pkg = 0; then
24131       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24132       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24133       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24134
24135
24136
24137       WX_DIR="src/wx-console"
24138    else
24139       echo " "
24140       echo "wx-config program not found. bwx-console disabled."
24141       echo " "
24142       support_wx_console=no
24143    fi
24144 fi
24145
24146
24147 # Check whether --enable-tray-monitor was given.
24148 if test "${enable_tray_monitor+set}" = set; then
24149   enableval=$enable_tray_monitor;
24150        if test x$enableval = xyes; then
24151           support_tray_monitor=yes
24152        fi
24153
24154
24155 fi
24156
24157
24158 TRAY_MONITOR_DIR=
24159 if test x$support_tray_monitor = xyes; then
24160    abc=`$PKGCONFIG --exists gtk+-2.0`
24161    pkg=$?
24162    if test $pkg = 0; then
24163       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24164       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24165
24166
24167       TRAY_MONITOR_DIR=src/tray-monitor
24168       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24169       pkg=$?
24170       if test $pkg = 0; then
24171
24172 cat >>confdefs.h <<\_ACEOF
24173 #define HAVE_GTK_2_4 1
24174 _ACEOF
24175
24176       fi
24177    fi
24178 fi
24179
24180
24181 # Check whether --enable-smartalloc was given.
24182 if test "${enable_smartalloc+set}" = set; then
24183   enableval=$enable_smartalloc;
24184        if test x$enableval = xno; then
24185           support_smartalloc=no
24186        fi
24187
24188
24189 fi
24190
24191
24192 if test x$support_smartalloc = xyes; then
24193
24194 cat >>confdefs.h <<\_ACEOF
24195 #define SMARTALLOC 1
24196 _ACEOF
24197
24198 fi
24199
24200 # Check whether --enable-lockmgr was given.
24201 if test "${enable_lockmgr+set}" = set; then
24202   enableval=$enable_lockmgr;
24203        if test x$enableval = xyes; then
24204           support_lockmgr=yes
24205        fi
24206
24207
24208 fi
24209
24210
24211 if test x$support_lockmgr = xyes; then
24212
24213 cat >>confdefs.h <<\_ACEOF
24214 #define _USE_LOCKMGR 1
24215 _ACEOF
24216
24217 fi
24218
24219
24220 # Check whether --enable-static-tools was given.
24221 if test "${enable_static_tools+set}" = set; then
24222   enableval=$enable_static_tools;
24223        if test x$enableval = xyes; then
24224           if test x$use_libtool = xyes; then
24225              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24226   please rerun configure with --disable-libtool" >&5
24227 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24228   please rerun configure with --disable-libtool" >&2;}
24229    { (exit 1); exit 1; }; }
24230           fi
24231           support_static_tools=yes
24232        fi
24233
24234
24235 fi
24236
24237
24238 TTOOL_LDFLAGS=
24239 if test x$support_static_tools = xyes; then
24240    TTOOL_LDFLAGS="-static"
24241 fi
24242
24243
24244 # Check whether --enable-static-fd was given.
24245 if test "${enable_static_fd+set}" = set; then
24246   enableval=$enable_static_fd;
24247        if test x$enableval = xyes; then
24248           if test x$use_libtool = xyes; then
24249              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24250   please rerun configure with --disable-libtool" >&5
24251 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24252   please rerun configure with --disable-libtool" >&2;}
24253    { (exit 1); exit 1; }; }
24254           fi
24255           support_static_fd=yes
24256        fi
24257
24258
24259 fi
24260
24261
24262 STATIC_FD=
24263 if test x$support_static_fd = xyes; then
24264    STATIC_FD="static-bacula-fd"
24265 fi
24266
24267
24268 # Check whether --enable-static-sd was given.
24269 if test "${enable_static_sd+set}" = set; then
24270   enableval=$enable_static_sd;
24271        if test x$enableval = xyes; then
24272           if test x$use_libtool = xyes; then
24273              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24274   please rerun configure with --disable-libtool" >&5
24275 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24276   please rerun configure with --disable-libtool" >&2;}
24277    { (exit 1); exit 1; }; }
24278           fi
24279           support_static_sd=yes
24280        fi
24281
24282
24283 fi
24284
24285
24286 STATIC_SD=
24287 if test x$support_static_sd = xyes; then
24288    STATIC_SD="static-bacula-sd"
24289 fi
24290
24291
24292 # Check whether --enable-static-dir was given.
24293 if test "${enable_static_dir+set}" = set; then
24294   enableval=$enable_static_dir;
24295        if test x$enableval = xyes; then
24296           if test x$use_libtool = xyes; then
24297              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24298   please rerun configure with --disable-libtool" >&5
24299 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24300   please rerun configure with --disable-libtool" >&2;}
24301    { (exit 1); exit 1; }; }
24302           fi
24303           support_static_dir=yes
24304        fi
24305
24306
24307 fi
24308
24309
24310 STATIC_DIR=
24311 if test x$support_static_dir = xyes; then
24312    STATIC_DIR="static-bacula-dir"
24313 fi
24314
24315
24316 # Check whether --enable-static-cons was given.
24317 if test "${enable_static_cons+set}" = set; then
24318   enableval=$enable_static_cons;
24319        if test x$enableval = xyes; then
24320           if test x$use_libtool = xyes; then
24321              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24322   please rerun configure with --disable-libtool" >&5
24323 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24324   please rerun configure with --disable-libtool" >&2;}
24325    { (exit 1); exit 1; }; }
24326           fi
24327           support_static_cons=yes
24328        fi
24329
24330
24331 fi
24332
24333
24334 STATIC_CONS=
24335 STATIC_GNOME_CONS=
24336 STATIC_WX_CONS=
24337 if test x$support_static_cons = xyes; then
24338    STATIC_CONS="static-bconsole"
24339    STATIC_GNOME_CONS="static-bgnome-console"
24340    STATIC_WX_CONS="static-bwx-console"
24341 fi
24342
24343
24344
24345
24346 # Check whether --enable-client-only was given.
24347 if test "${enable_client_only+set}" = set; then
24348   enableval=$enable_client_only;
24349        if test x$enableval = xyes; then
24350           build_client_only=yes
24351           db_type=None
24352           DB_TYPE=none
24353        fi
24354
24355
24356 fi
24357
24358 if test x$build_client_only = xno; then
24359    ALL_DIRS="subdirs"
24360 else
24361    ALL_DIRS=""
24362 fi
24363
24364
24365 # Check whether --enable-build-dird was given.
24366 if test "${enable_build_dird+set}" = set; then
24367   enableval=$enable_build_dird;
24368        if test x$enableval = xno; then
24369           build_dird=no
24370        fi
24371
24372
24373 fi
24374
24375 if test x$build_dird = xyes; then
24376    DIRD_DIR="src/dird"
24377    DIR_TOOLS="DIRTOOLS"
24378 else
24379    DIRD_DIR=""
24380    DIR_TOOLS="NODIRTOOLS"
24381 fi
24382
24383
24384
24385 # Check whether --enable-build-stored was given.
24386 if test "${enable_build_stored+set}" = set; then
24387   enableval=$enable_build_stored;
24388       if test x$enableval = xno; then
24389          build_stored=no
24390       fi
24391
24392
24393 fi
24394
24395 if test x$build_stored = xyes; then
24396    STORED_DIR="src/stored"
24397 else
24398    STORED_DIR=""
24399 fi
24400
24401
24402 # Check whether --enable-conio was given.
24403 if test "${enable_conio+set}" = set; then
24404   enableval=$enable_conio;
24405        if test x$enableval = xno; then
24406           support_conio=no
24407        fi
24408
24409
24410 fi
24411
24412
24413
24414 support_ipv6=yes
24415 # Check whether --enable-ipv6 was given.
24416 if test "${enable_ipv6+set}" = set; then
24417   enableval=$enable_ipv6;
24418        if test x$enableval = xno; then
24419           support_ipv6=no
24420        fi
24421
24422
24423 fi
24424
24425
24426 if test x$support_ipv6 = xyes; then
24427     cat >conftest.$ac_ext <<_ACEOF
24428 /* confdefs.h.  */
24429 _ACEOF
24430 cat confdefs.h >>conftest.$ac_ext
24431 cat >>conftest.$ac_ext <<_ACEOF
24432 /* end confdefs.h.  */
24433  #include <sys/types.h>
24434 #include <sys/socket.h>
24435 #include <netinet/in.h>
24436 int
24437 main ()
24438 {
24439 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24440   ;
24441   return 0;
24442 }
24443 _ACEOF
24444 rm -f conftest.$ac_objext conftest$ac_exeext
24445 if { (ac_try="$ac_link"
24446 case "(($ac_try" in
24447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24448   *) ac_try_echo=$ac_try;;
24449 esac
24450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24451   (eval "$ac_link") 2>conftest.er1
24452   ac_status=$?
24453   grep -v '^ *+' conftest.er1 >conftest.err
24454   rm -f conftest.er1
24455   cat conftest.err >&5
24456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457   (exit $ac_status); } && {
24458          test -z "$ac_c_werror_flag" ||
24459          test ! -s conftest.err
24460        } && test -s conftest$ac_exeext &&
24461        $as_test_x conftest$ac_exeext; then
24462   support_ipv6=yes
24463 else
24464   echo "$as_me: failed program was:" >&5
24465 sed 's/^/| /' conftest.$ac_ext >&5
24466
24467         support_ipv6=no
24468 fi
24469
24470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24471       conftest$ac_exeext conftest.$ac_ext
24472 fi
24473
24474 if test x$support_ipv6 = xyes; then
24475
24476 cat >>confdefs.h <<\_ACEOF
24477 #define HAVE_IPV6 1
24478 _ACEOF
24479
24480 fi
24481
24482 TERM_LIB=""
24483 if test "${ac_cv_header_curses_h+set}" = set; then
24484   { echo "$as_me:$LINENO: checking for curses.h" >&5
24485 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
24486 if test "${ac_cv_header_curses_h+set}" = set; then
24487   echo $ECHO_N "(cached) $ECHO_C" >&6
24488 fi
24489 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
24490 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24491 else
24492   # Is the header compilable?
24493 { echo "$as_me:$LINENO: checking curses.h usability" >&5
24494 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
24495 cat >conftest.$ac_ext <<_ACEOF
24496 /* confdefs.h.  */
24497 _ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h.  */
24501 $ac_includes_default
24502 #include <curses.h>
24503 _ACEOF
24504 rm -f conftest.$ac_objext
24505 if { (ac_try="$ac_compile"
24506 case "(($ac_try" in
24507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508   *) ac_try_echo=$ac_try;;
24509 esac
24510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24511   (eval "$ac_compile") 2>conftest.er1
24512   ac_status=$?
24513   grep -v '^ *+' conftest.er1 >conftest.err
24514   rm -f conftest.er1
24515   cat conftest.err >&5
24516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517   (exit $ac_status); } && {
24518          test -z "$ac_c_werror_flag" ||
24519          test ! -s conftest.err
24520        } && test -s conftest.$ac_objext; then
24521   ac_header_compiler=yes
24522 else
24523   echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24525
24526         ac_header_compiler=no
24527 fi
24528
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24531 echo "${ECHO_T}$ac_header_compiler" >&6; }
24532
24533 # Is the header present?
24534 { echo "$as_me:$LINENO: checking curses.h presence" >&5
24535 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
24536 cat >conftest.$ac_ext <<_ACEOF
24537 /* confdefs.h.  */
24538 _ACEOF
24539 cat confdefs.h >>conftest.$ac_ext
24540 cat >>conftest.$ac_ext <<_ACEOF
24541 /* end confdefs.h.  */
24542 #include <curses.h>
24543 _ACEOF
24544 if { (ac_try="$ac_cpp conftest.$ac_ext"
24545 case "(($ac_try" in
24546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547   *) ac_try_echo=$ac_try;;
24548 esac
24549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24551   ac_status=$?
24552   grep -v '^ *+' conftest.er1 >conftest.err
24553   rm -f conftest.er1
24554   cat conftest.err >&5
24555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556   (exit $ac_status); } >/dev/null && {
24557          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24558          test ! -s conftest.err
24559        }; then
24560   ac_header_preproc=yes
24561 else
24562   echo "$as_me: failed program was:" >&5
24563 sed 's/^/| /' conftest.$ac_ext >&5
24564
24565   ac_header_preproc=no
24566 fi
24567
24568 rm -f conftest.err conftest.$ac_ext
24569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24570 echo "${ECHO_T}$ac_header_preproc" >&6; }
24571
24572 # So?  What about this header?
24573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24574   yes:no: )
24575     { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
24576 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24577     { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
24578 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
24579     ac_header_preproc=yes
24580     ;;
24581   no:yes:* )
24582     { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
24583 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
24584     { echo "$as_me:$LINENO: WARNING: curses.h:     check for missing prerequisite headers?" >&5
24585 echo "$as_me: WARNING: curses.h:     check for missing prerequisite headers?" >&2;}
24586     { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
24587 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
24588     { echo "$as_me:$LINENO: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&5
24589 echo "$as_me: WARNING: curses.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24590     { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
24591 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
24592     { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
24593 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
24594
24595     ;;
24596 esac
24597 { echo "$as_me:$LINENO: checking for curses.h" >&5
24598 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
24599 if test "${ac_cv_header_curses_h+set}" = set; then
24600   echo $ECHO_N "(cached) $ECHO_C" >&6
24601 else
24602   ac_cv_header_curses_h=$ac_header_preproc
24603 fi
24604 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
24605 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
24606
24607 fi
24608 if test $ac_cv_header_curses_h = yes; then
24609    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24610 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24611 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24612   echo $ECHO_N "(cached) $ECHO_C" >&6
24613 else
24614   ac_check_lib_save_LIBS=$LIBS
24615 LIBS="-lncurses  $LIBS"
24616 cat >conftest.$ac_ext <<_ACEOF
24617 /* confdefs.h.  */
24618 _ACEOF
24619 cat confdefs.h >>conftest.$ac_ext
24620 cat >>conftest.$ac_ext <<_ACEOF
24621 /* end confdefs.h.  */
24622
24623 /* Override any GCC internal prototype to avoid an error.
24624    Use char because int might match the return type of a GCC
24625    builtin and then its argument prototype would still apply.  */
24626 #ifdef __cplusplus
24627 extern "C"
24628 #endif
24629 char tgetent ();
24630 int
24631 main ()
24632 {
24633 return tgetent ();
24634   ;
24635   return 0;
24636 }
24637 _ACEOF
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (ac_try="$ac_link"
24640 case "(($ac_try" in
24641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642   *) ac_try_echo=$ac_try;;
24643 esac
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645   (eval "$ac_link") 2>conftest.er1
24646   ac_status=$?
24647   grep -v '^ *+' conftest.er1 >conftest.err
24648   rm -f conftest.er1
24649   cat conftest.err >&5
24650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651   (exit $ac_status); } && {
24652          test -z "$ac_c_werror_flag" ||
24653          test ! -s conftest.err
24654        } && test -s conftest$ac_exeext &&
24655        $as_test_x conftest$ac_exeext; then
24656   ac_cv_lib_ncurses_tgetent=yes
24657 else
24658   echo "$as_me: failed program was:" >&5
24659 sed 's/^/| /' conftest.$ac_ext >&5
24660
24661         ac_cv_lib_ncurses_tgetent=no
24662 fi
24663
24664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24665       conftest$ac_exeext conftest.$ac_ext
24666 LIBS=$ac_check_lib_save_LIBS
24667 fi
24668 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24669 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24670 if test $ac_cv_lib_ncurses_tgetent = yes; then
24671    TERM_LIB="-lncurses"
24672 else
24673    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24674 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24675 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24676   echo $ECHO_N "(cached) $ECHO_C" >&6
24677 else
24678   ac_check_lib_save_LIBS=$LIBS
24679 LIBS="-ltermcap  $LIBS"
24680 cat >conftest.$ac_ext <<_ACEOF
24681 /* confdefs.h.  */
24682 _ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h.  */
24686
24687 /* Override any GCC internal prototype to avoid an error.
24688    Use char because int might match the return type of a GCC
24689    builtin and then its argument prototype would still apply.  */
24690 #ifdef __cplusplus
24691 extern "C"
24692 #endif
24693 char tgetent ();
24694 int
24695 main ()
24696 {
24697 return tgetent ();
24698   ;
24699   return 0;
24700 }
24701 _ACEOF
24702 rm -f conftest.$ac_objext conftest$ac_exeext
24703 if { (ac_try="$ac_link"
24704 case "(($ac_try" in
24705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24706   *) ac_try_echo=$ac_try;;
24707 esac
24708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24709   (eval "$ac_link") 2>conftest.er1
24710   ac_status=$?
24711   grep -v '^ *+' conftest.er1 >conftest.err
24712   rm -f conftest.er1
24713   cat conftest.err >&5
24714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715   (exit $ac_status); } && {
24716          test -z "$ac_c_werror_flag" ||
24717          test ! -s conftest.err
24718        } && test -s conftest$ac_exeext &&
24719        $as_test_x conftest$ac_exeext; then
24720   ac_cv_lib_termcap_tgetent=yes
24721 else
24722   echo "$as_me: failed program was:" >&5
24723 sed 's/^/| /' conftest.$ac_ext >&5
24724
24725         ac_cv_lib_termcap_tgetent=no
24726 fi
24727
24728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24729       conftest$ac_exeext conftest.$ac_ext
24730 LIBS=$ac_check_lib_save_LIBS
24731 fi
24732 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24733 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24734 if test $ac_cv_lib_termcap_tgetent = yes; then
24735    TERM_LIB="-ltermcap"
24736 fi
24737
24738
24739 fi
24740
24741
24742 else
24743
24744 for ac_header in curses.h
24745 do
24746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24748   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24751   echo $ECHO_N "(cached) $ECHO_C" >&6
24752 fi
24753 ac_res=`eval echo '${'$as_ac_Header'}'`
24754                { echo "$as_me:$LINENO: result: $ac_res" >&5
24755 echo "${ECHO_T}$ac_res" >&6; }
24756 else
24757   # Is the header compilable?
24758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24760 cat >conftest.$ac_ext <<_ACEOF
24761 /* confdefs.h.  */
24762 _ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h.  */
24766 $ac_includes_default
24767 #include <$ac_header>
24768 _ACEOF
24769 rm -f conftest.$ac_objext
24770 if { (ac_try="$ac_compile"
24771 case "(($ac_try" in
24772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773   *) ac_try_echo=$ac_try;;
24774 esac
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776   (eval "$ac_compile") 2>conftest.er1
24777   ac_status=$?
24778   grep -v '^ *+' conftest.er1 >conftest.err
24779   rm -f conftest.er1
24780   cat conftest.err >&5
24781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782   (exit $ac_status); } && {
24783          test -z "$ac_c_werror_flag" ||
24784          test ! -s conftest.err
24785        } && test -s conftest.$ac_objext; then
24786   ac_header_compiler=yes
24787 else
24788   echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.$ac_ext >&5
24790
24791         ac_header_compiler=no
24792 fi
24793
24794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24796 echo "${ECHO_T}$ac_header_compiler" >&6; }
24797
24798 # Is the header present?
24799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24801 cat >conftest.$ac_ext <<_ACEOF
24802 /* confdefs.h.  */
24803 _ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h.  */
24807 #include <$ac_header>
24808 _ACEOF
24809 if { (ac_try="$ac_cpp conftest.$ac_ext"
24810 case "(($ac_try" in
24811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24812   *) ac_try_echo=$ac_try;;
24813 esac
24814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24815   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24816   ac_status=$?
24817   grep -v '^ *+' conftest.er1 >conftest.err
24818   rm -f conftest.er1
24819   cat conftest.err >&5
24820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); } >/dev/null && {
24822          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24823          test ! -s conftest.err
24824        }; then
24825   ac_header_preproc=yes
24826 else
24827   echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24829
24830   ac_header_preproc=no
24831 fi
24832
24833 rm -f conftest.err conftest.$ac_ext
24834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24835 echo "${ECHO_T}$ac_header_preproc" >&6; }
24836
24837 # So?  What about this header?
24838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24839   yes:no: )
24840     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24844     ac_header_preproc=yes
24845     ;;
24846   no:yes:* )
24847     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24849     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24850 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24851     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24853     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24854 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24857     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24859
24860     ;;
24861 esac
24862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24865   echo $ECHO_N "(cached) $ECHO_C" >&6
24866 else
24867   eval "$as_ac_Header=\$ac_header_preproc"
24868 fi
24869 ac_res=`eval echo '${'$as_ac_Header'}'`
24870                { echo "$as_me:$LINENO: result: $ac_res" >&5
24871 echo "${ECHO_T}$ac_res" >&6; }
24872
24873 fi
24874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24875   cat >>confdefs.h <<_ACEOF
24876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24877 _ACEOF
24878
24879 fi
24880
24881 done
24882
24883      if test "${ac_cv_header_term_h+set}" = set; then
24884   { echo "$as_me:$LINENO: checking for term.h" >&5
24885 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24886 if test "${ac_cv_header_term_h+set}" = set; then
24887   echo $ECHO_N "(cached) $ECHO_C" >&6
24888 fi
24889 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24890 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24891 else
24892   # Is the header compilable?
24893 { echo "$as_me:$LINENO: checking term.h usability" >&5
24894 echo $ECHO_N "checking term.h usability... $ECHO_C" >&6; }
24895 cat >conftest.$ac_ext <<_ACEOF
24896 /* confdefs.h.  */
24897 _ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h.  */
24901 $ac_includes_default
24902 #include <term.h>
24903 _ACEOF
24904 rm -f conftest.$ac_objext
24905 if { (ac_try="$ac_compile"
24906 case "(($ac_try" in
24907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24908   *) ac_try_echo=$ac_try;;
24909 esac
24910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24911   (eval "$ac_compile") 2>conftest.er1
24912   ac_status=$?
24913   grep -v '^ *+' conftest.er1 >conftest.err
24914   rm -f conftest.er1
24915   cat conftest.err >&5
24916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917   (exit $ac_status); } && {
24918          test -z "$ac_c_werror_flag" ||
24919          test ! -s conftest.err
24920        } && test -s conftest.$ac_objext; then
24921   ac_header_compiler=yes
24922 else
24923   echo "$as_me: failed program was:" >&5
24924 sed 's/^/| /' conftest.$ac_ext >&5
24925
24926         ac_header_compiler=no
24927 fi
24928
24929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24931 echo "${ECHO_T}$ac_header_compiler" >&6; }
24932
24933 # Is the header present?
24934 { echo "$as_me:$LINENO: checking term.h presence" >&5
24935 echo $ECHO_N "checking term.h presence... $ECHO_C" >&6; }
24936 cat >conftest.$ac_ext <<_ACEOF
24937 /* confdefs.h.  */
24938 _ACEOF
24939 cat confdefs.h >>conftest.$ac_ext
24940 cat >>conftest.$ac_ext <<_ACEOF
24941 /* end confdefs.h.  */
24942 #include <term.h>
24943 _ACEOF
24944 if { (ac_try="$ac_cpp conftest.$ac_ext"
24945 case "(($ac_try" in
24946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24947   *) ac_try_echo=$ac_try;;
24948 esac
24949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24950   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24951   ac_status=$?
24952   grep -v '^ *+' conftest.er1 >conftest.err
24953   rm -f conftest.er1
24954   cat conftest.err >&5
24955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956   (exit $ac_status); } >/dev/null && {
24957          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24958          test ! -s conftest.err
24959        }; then
24960   ac_header_preproc=yes
24961 else
24962   echo "$as_me: failed program was:" >&5
24963 sed 's/^/| /' conftest.$ac_ext >&5
24964
24965   ac_header_preproc=no
24966 fi
24967
24968 rm -f conftest.err conftest.$ac_ext
24969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24970 echo "${ECHO_T}$ac_header_preproc" >&6; }
24971
24972 # So?  What about this header?
24973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24974   yes:no: )
24975     { echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
24976 echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24977     { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the compiler's result" >&5
24978 echo "$as_me: WARNING: term.h: proceeding with the compiler's result" >&2;}
24979     ac_header_preproc=yes
24980     ;;
24981   no:yes:* )
24982     { echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
24983 echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
24984     { echo "$as_me:$LINENO: WARNING: term.h:     check for missing prerequisite headers?" >&5
24985 echo "$as_me: WARNING: term.h:     check for missing prerequisite headers?" >&2;}
24986     { echo "$as_me:$LINENO: WARNING: term.h: see the Autoconf documentation" >&5
24987 echo "$as_me: WARNING: term.h: see the Autoconf documentation" >&2;}
24988     { echo "$as_me:$LINENO: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&5
24989 echo "$as_me: WARNING: term.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24990     { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
24991 echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
24992     { echo "$as_me:$LINENO: WARNING: term.h: in the future, the compiler will take precedence" >&5
24993 echo "$as_me: WARNING: term.h: in the future, the compiler will take precedence" >&2;}
24994
24995     ;;
24996 esac
24997 { echo "$as_me:$LINENO: checking for term.h" >&5
24998 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24999 if test "${ac_cv_header_term_h+set}" = set; then
25000   echo $ECHO_N "(cached) $ECHO_C" >&6
25001 else
25002   ac_cv_header_term_h=$ac_header_preproc
25003 fi
25004 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25005 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25006
25007 fi
25008 if test $ac_cv_header_term_h = yes; then
25009    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25010 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25011 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25012   echo $ECHO_N "(cached) $ECHO_C" >&6
25013 else
25014   ac_check_lib_save_LIBS=$LIBS
25015 LIBS="-lcurses  $LIBS"
25016 cat >conftest.$ac_ext <<_ACEOF
25017 /* confdefs.h.  */
25018 _ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h.  */
25022
25023 /* Override any GCC internal prototype to avoid an error.
25024    Use char because int might match the return type of a GCC
25025    builtin and then its argument prototype would still apply.  */
25026 #ifdef __cplusplus
25027 extern "C"
25028 #endif
25029 char tgetent ();
25030 int
25031 main ()
25032 {
25033 return tgetent ();
25034   ;
25035   return 0;
25036 }
25037 _ACEOF
25038 rm -f conftest.$ac_objext conftest$ac_exeext
25039 if { (ac_try="$ac_link"
25040 case "(($ac_try" in
25041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25042   *) ac_try_echo=$ac_try;;
25043 esac
25044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25045   (eval "$ac_link") 2>conftest.er1
25046   ac_status=$?
25047   grep -v '^ *+' conftest.er1 >conftest.err
25048   rm -f conftest.er1
25049   cat conftest.err >&5
25050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051   (exit $ac_status); } && {
25052          test -z "$ac_c_werror_flag" ||
25053          test ! -s conftest.err
25054        } && test -s conftest$ac_exeext &&
25055        $as_test_x conftest$ac_exeext; then
25056   ac_cv_lib_curses_tgetent=yes
25057 else
25058   echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25060
25061         ac_cv_lib_curses_tgetent=no
25062 fi
25063
25064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25065       conftest$ac_exeext conftest.$ac_ext
25066 LIBS=$ac_check_lib_save_LIBS
25067 fi
25068 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25069 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25070 if test $ac_cv_lib_curses_tgetent = yes; then
25071    TERM_LIB="-lcurses"
25072 fi
25073
25074
25075 fi
25076
25077
25078
25079 fi
25080
25081
25082
25083
25084 got_conio="no"
25085 if test x$support_conio = xyes; then
25086    if test x$TERM_LIB != x; then
25087       CONS_LIBS=$TERM_LIB
25088       CONS_OBJ="conio.o"
25089       CONS_SRC="conio.c"
25090       got_conio="yes"
25091       support_readline=no
25092
25093 cat >>confdefs.h <<\_ACEOF
25094 #define HAVE_CONIO 1
25095 _ACEOF
25096
25097    else
25098       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
25099    fi
25100 fi
25101
25102
25103 # Check whether --enable-readline was given.
25104 if test "${enable_readline+set}" = set; then
25105   enableval=$enable_readline;
25106        if test x$enableval = xno; then
25107           support_readline=no
25108        fi
25109
25110
25111 fi
25112
25113 if test x$TERM_LIB = x ; then
25114    support_readline=no
25115 fi
25116
25117 got_readline="no"
25118 READLINE_SRC=
25119 if test x$support_readline = xyes; then
25120
25121 # Check whether --with-readline was given.
25122 if test "${with_readline+set}" = set; then
25123   withval=$with_readline;
25124           case "$with_readline" in
25125           no)
25126              :
25127              ;;
25128           yes|*)
25129              if test -f ${with_readline}/readline.h; then
25130                 CONS_INC="-I${with_readline}"
25131                 CONS_LDFLAGS="-L$with_readline"
25132              elif test -f ${with_readline}/include/readline/readline.h; then
25133                 CONS_INC="-I${with_readline}/include/readline"
25134                 CONS_LDFLAGS="-L${with_readline}/lib"
25135                 with_readline="${with_readline}/include/readline"
25136              else
25137                 with_readline="/usr/include/readline"
25138              fi
25139
25140              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25142   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25143 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25145   echo $ECHO_N "(cached) $ECHO_C" >&6
25146 fi
25147 ac_res=`eval echo '${'$as_ac_Header'}'`
25148                { echo "$as_me:$LINENO: result: $ac_res" >&5
25149 echo "${ECHO_T}$ac_res" >&6; }
25150 else
25151   # Is the header compilable?
25152 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25153 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25154 cat >conftest.$ac_ext <<_ACEOF
25155 /* confdefs.h.  */
25156 _ACEOF
25157 cat confdefs.h >>conftest.$ac_ext
25158 cat >>conftest.$ac_ext <<_ACEOF
25159 /* end confdefs.h.  */
25160 $ac_includes_default
25161 #include <${with_readline}/readline.h>
25162 _ACEOF
25163 rm -f conftest.$ac_objext
25164 if { (ac_try="$ac_compile"
25165 case "(($ac_try" in
25166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25167   *) ac_try_echo=$ac_try;;
25168 esac
25169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25170   (eval "$ac_compile") 2>conftest.er1
25171   ac_status=$?
25172   grep -v '^ *+' conftest.er1 >conftest.err
25173   rm -f conftest.er1
25174   cat conftest.err >&5
25175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176   (exit $ac_status); } && {
25177          test -z "$ac_c_werror_flag" ||
25178          test ! -s conftest.err
25179        } && test -s conftest.$ac_objext; then
25180   ac_header_compiler=yes
25181 else
25182   echo "$as_me: failed program was:" >&5
25183 sed 's/^/| /' conftest.$ac_ext >&5
25184
25185         ac_header_compiler=no
25186 fi
25187
25188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25190 echo "${ECHO_T}$ac_header_compiler" >&6; }
25191
25192 # Is the header present?
25193 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25194 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25195 cat >conftest.$ac_ext <<_ACEOF
25196 /* confdefs.h.  */
25197 _ACEOF
25198 cat confdefs.h >>conftest.$ac_ext
25199 cat >>conftest.$ac_ext <<_ACEOF
25200 /* end confdefs.h.  */
25201 #include <${with_readline}/readline.h>
25202 _ACEOF
25203 if { (ac_try="$ac_cpp conftest.$ac_ext"
25204 case "(($ac_try" in
25205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206   *) ac_try_echo=$ac_try;;
25207 esac
25208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25209   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25210   ac_status=$?
25211   grep -v '^ *+' conftest.er1 >conftest.err
25212   rm -f conftest.er1
25213   cat conftest.err >&5
25214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); } >/dev/null && {
25216          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25217          test ! -s conftest.err
25218        }; then
25219   ac_header_preproc=yes
25220 else
25221   echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25223
25224   ac_header_preproc=no
25225 fi
25226
25227 rm -f conftest.err conftest.$ac_ext
25228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25229 echo "${ECHO_T}$ac_header_preproc" >&6; }
25230
25231 # So?  What about this header?
25232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25233   yes:no: )
25234     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25235 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25236     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25237 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25238     ac_header_preproc=yes
25239     ;;
25240   no:yes:* )
25241     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25242 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25243     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25244 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25245     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25246 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25247     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25248 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25249     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25250 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25251     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25252 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25253
25254     ;;
25255 esac
25256 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25257 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25259   echo $ECHO_N "(cached) $ECHO_C" >&6
25260 else
25261   eval "$as_ac_Header=\$ac_header_preproc"
25262 fi
25263 ac_res=`eval echo '${'$as_ac_Header'}'`
25264                { echo "$as_me:$LINENO: result: $ac_res" >&5
25265 echo "${ECHO_T}$ac_res" >&6; }
25266
25267 fi
25268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25269
25270
25271 cat >>confdefs.h <<\_ACEOF
25272 #define HAVE_READLINE 1
25273 _ACEOF
25274
25275                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25276                     got_readline="yes"
25277
25278 else
25279
25280                     echo " "
25281                     echo "readline.h not found. readline turned off ..."
25282                     echo " "
25283
25284
25285 fi
25286
25287
25288              ;;
25289           esac
25290
25291 else
25292
25293                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25294   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25295 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25296 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25297   echo $ECHO_N "(cached) $ECHO_C" >&6
25298 fi
25299 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25300 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25301 else
25302   # Is the header compilable?
25303 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25304 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25305 cat >conftest.$ac_ext <<_ACEOF
25306 /* confdefs.h.  */
25307 _ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h.  */
25311 $ac_includes_default
25312 #include </usr/include/readline/readline.h>
25313 _ACEOF
25314 rm -f conftest.$ac_objext
25315 if { (ac_try="$ac_compile"
25316 case "(($ac_try" in
25317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318   *) ac_try_echo=$ac_try;;
25319 esac
25320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321   (eval "$ac_compile") 2>conftest.er1
25322   ac_status=$?
25323   grep -v '^ *+' conftest.er1 >conftest.err
25324   rm -f conftest.er1
25325   cat conftest.err >&5
25326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327   (exit $ac_status); } && {
25328          test -z "$ac_c_werror_flag" ||
25329          test ! -s conftest.err
25330        } && test -s conftest.$ac_objext; then
25331   ac_header_compiler=yes
25332 else
25333   echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.$ac_ext >&5
25335
25336         ac_header_compiler=no
25337 fi
25338
25339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25341 echo "${ECHO_T}$ac_header_compiler" >&6; }
25342
25343 # Is the header present?
25344 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25345 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25346 cat >conftest.$ac_ext <<_ACEOF
25347 /* confdefs.h.  */
25348 _ACEOF
25349 cat confdefs.h >>conftest.$ac_ext
25350 cat >>conftest.$ac_ext <<_ACEOF
25351 /* end confdefs.h.  */
25352 #include </usr/include/readline/readline.h>
25353 _ACEOF
25354 if { (ac_try="$ac_cpp conftest.$ac_ext"
25355 case "(($ac_try" in
25356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25357   *) ac_try_echo=$ac_try;;
25358 esac
25359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25361   ac_status=$?
25362   grep -v '^ *+' conftest.er1 >conftest.err
25363   rm -f conftest.er1
25364   cat conftest.err >&5
25365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366   (exit $ac_status); } >/dev/null && {
25367          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25368          test ! -s conftest.err
25369        }; then
25370   ac_header_preproc=yes
25371 else
25372   echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25374
25375   ac_header_preproc=no
25376 fi
25377
25378 rm -f conftest.err conftest.$ac_ext
25379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25380 echo "${ECHO_T}$ac_header_preproc" >&6; }
25381
25382 # So?  What about this header?
25383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25384   yes:no: )
25385     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25386 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25387     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25388 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25389     ac_header_preproc=yes
25390     ;;
25391   no:yes:* )
25392     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25393 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25394     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25395 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25396     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25397 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25398     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25399 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25400     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25401 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25402     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25403 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25404
25405     ;;
25406 esac
25407 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25408 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25409 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25410   echo $ECHO_N "(cached) $ECHO_C" >&6
25411 else
25412   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25413 fi
25414 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25415 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25416
25417 fi
25418 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25419
25420
25421 cat >>confdefs.h <<\_ACEOF
25422 #define HAVE_READLINE 1
25423 _ACEOF
25424
25425                 got_readline="yes"
25426                 CONS_INC="-I/usr/include/readline"
25427                 CONS_LIBS="-lreadline $TERM_LIB"
25428
25429 else
25430
25431                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25433   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25434 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25436   echo $ECHO_N "(cached) $ECHO_C" >&6
25437 fi
25438 ac_res=`eval echo '${'$as_ac_Header'}'`
25439                { echo "$as_me:$LINENO: result: $ac_res" >&5
25440 echo "${ECHO_T}$ac_res" >&6; }
25441 else
25442   # Is the header compilable?
25443 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25444 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25445 cat >conftest.$ac_ext <<_ACEOF
25446 /* confdefs.h.  */
25447 _ACEOF
25448 cat confdefs.h >>conftest.$ac_ext
25449 cat >>conftest.$ac_ext <<_ACEOF
25450 /* end confdefs.h.  */
25451 $ac_includes_default
25452 #include <${TOP_DIR}/depkgs/readline/readline.h>
25453 _ACEOF
25454 rm -f conftest.$ac_objext
25455 if { (ac_try="$ac_compile"
25456 case "(($ac_try" in
25457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458   *) ac_try_echo=$ac_try;;
25459 esac
25460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25461   (eval "$ac_compile") 2>conftest.er1
25462   ac_status=$?
25463   grep -v '^ *+' conftest.er1 >conftest.err
25464   rm -f conftest.er1
25465   cat conftest.err >&5
25466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467   (exit $ac_status); } && {
25468          test -z "$ac_c_werror_flag" ||
25469          test ! -s conftest.err
25470        } && test -s conftest.$ac_objext; then
25471   ac_header_compiler=yes
25472 else
25473   echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25475
25476         ac_header_compiler=no
25477 fi
25478
25479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25481 echo "${ECHO_T}$ac_header_compiler" >&6; }
25482
25483 # Is the header present?
25484 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25485 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25486 cat >conftest.$ac_ext <<_ACEOF
25487 /* confdefs.h.  */
25488 _ACEOF
25489 cat confdefs.h >>conftest.$ac_ext
25490 cat >>conftest.$ac_ext <<_ACEOF
25491 /* end confdefs.h.  */
25492 #include <${TOP_DIR}/depkgs/readline/readline.h>
25493 _ACEOF
25494 if { (ac_try="$ac_cpp conftest.$ac_ext"
25495 case "(($ac_try" in
25496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25497   *) ac_try_echo=$ac_try;;
25498 esac
25499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25500   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25501   ac_status=$?
25502   grep -v '^ *+' conftest.er1 >conftest.err
25503   rm -f conftest.er1
25504   cat conftest.err >&5
25505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506   (exit $ac_status); } >/dev/null && {
25507          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25508          test ! -s conftest.err
25509        }; then
25510   ac_header_preproc=yes
25511 else
25512   echo "$as_me: failed program was:" >&5
25513 sed 's/^/| /' conftest.$ac_ext >&5
25514
25515   ac_header_preproc=no
25516 fi
25517
25518 rm -f conftest.err conftest.$ac_ext
25519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25520 echo "${ECHO_T}$ac_header_preproc" >&6; }
25521
25522 # So?  What about this header?
25523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25524   yes:no: )
25525     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25526 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25527     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25528 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25529     ac_header_preproc=yes
25530     ;;
25531   no:yes:* )
25532     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25533 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25534     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25535 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25536     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25537 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25538     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25539 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25540     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25541 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25542     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25543 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25544
25545     ;;
25546 esac
25547 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25548 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25550   echo $ECHO_N "(cached) $ECHO_C" >&6
25551 else
25552   eval "$as_ac_Header=\$ac_header_preproc"
25553 fi
25554 ac_res=`eval echo '${'$as_ac_Header'}'`
25555                { echo "$as_me:$LINENO: result: $ac_res" >&5
25556 echo "${ECHO_T}$ac_res" >&6; }
25557
25558 fi
25559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25560
25561
25562 cat >>confdefs.h <<\_ACEOF
25563 #define HAVE_READLINE 1
25564 _ACEOF
25565
25566                         got_readline="yes"
25567                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25568                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
25569                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25570                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25571
25572 else
25573
25574                         echo " "
25575                         echo "readline.h not found. readline turned off ..."
25576                         echo " "
25577
25578
25579 fi
25580
25581
25582
25583
25584 fi
25585
25586
25587
25588
25589 fi
25590
25591 fi
25592
25593
25594
25595
25596
25597
25598
25599
25600 MAKE_SHELL=/bin/sh
25601
25602 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25603 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25604 if test "${ac_cv_header_stat_broken+set}" = set; then
25605   echo $ECHO_N "(cached) $ECHO_C" >&6
25606 else
25607   cat >conftest.$ac_ext <<_ACEOF
25608 /* confdefs.h.  */
25609 _ACEOF
25610 cat confdefs.h >>conftest.$ac_ext
25611 cat >>conftest.$ac_ext <<_ACEOF
25612 /* end confdefs.h.  */
25613 #include <sys/types.h>
25614 #include <sys/stat.h>
25615
25616 #if defined S_ISBLK && defined S_IFDIR
25617 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25618 #endif
25619
25620 #if defined S_ISBLK && defined S_IFCHR
25621 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25622 #endif
25623
25624 #if defined S_ISLNK && defined S_IFREG
25625 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25626 #endif
25627
25628 #if defined S_ISSOCK && defined S_IFREG
25629 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25630 #endif
25631
25632 _ACEOF
25633 rm -f conftest.$ac_objext
25634 if { (ac_try="$ac_compile"
25635 case "(($ac_try" in
25636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637   *) ac_try_echo=$ac_try;;
25638 esac
25639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25640   (eval "$ac_compile") 2>conftest.er1
25641   ac_status=$?
25642   grep -v '^ *+' conftest.er1 >conftest.err
25643   rm -f conftest.er1
25644   cat conftest.err >&5
25645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646   (exit $ac_status); } && {
25647          test -z "$ac_c_werror_flag" ||
25648          test ! -s conftest.err
25649        } && test -s conftest.$ac_objext; then
25650   ac_cv_header_stat_broken=no
25651 else
25652   echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25654
25655         ac_cv_header_stat_broken=yes
25656 fi
25657
25658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25659 fi
25660 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25661 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25662 if test $ac_cv_header_stat_broken = yes; then
25663
25664 cat >>confdefs.h <<\_ACEOF
25665 #define STAT_MACROS_BROKEN 1
25666 _ACEOF
25667
25668 fi
25669
25670
25671
25672
25673
25674
25675 ac_header_dirent=no
25676 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25677   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25678 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25679 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25681   echo $ECHO_N "(cached) $ECHO_C" >&6
25682 else
25683   cat >conftest.$ac_ext <<_ACEOF
25684 /* confdefs.h.  */
25685 _ACEOF
25686 cat confdefs.h >>conftest.$ac_ext
25687 cat >>conftest.$ac_ext <<_ACEOF
25688 /* end confdefs.h.  */
25689 #include <sys/types.h>
25690 #include <$ac_hdr>
25691
25692 int
25693 main ()
25694 {
25695 if ((DIR *) 0)
25696 return 0;
25697   ;
25698   return 0;
25699 }
25700 _ACEOF
25701 rm -f conftest.$ac_objext
25702 if { (ac_try="$ac_compile"
25703 case "(($ac_try" in
25704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25705   *) ac_try_echo=$ac_try;;
25706 esac
25707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25708   (eval "$ac_compile") 2>conftest.er1
25709   ac_status=$?
25710   grep -v '^ *+' conftest.er1 >conftest.err
25711   rm -f conftest.er1
25712   cat conftest.err >&5
25713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714   (exit $ac_status); } && {
25715          test -z "$ac_c_werror_flag" ||
25716          test ! -s conftest.err
25717        } && test -s conftest.$ac_objext; then
25718   eval "$as_ac_Header=yes"
25719 else
25720   echo "$as_me: failed program was:" >&5
25721 sed 's/^/| /' conftest.$ac_ext >&5
25722
25723         eval "$as_ac_Header=no"
25724 fi
25725
25726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25727 fi
25728 ac_res=`eval echo '${'$as_ac_Header'}'`
25729                { echo "$as_me:$LINENO: result: $ac_res" >&5
25730 echo "${ECHO_T}$ac_res" >&6; }
25731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25732   cat >>confdefs.h <<_ACEOF
25733 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25734 _ACEOF
25735
25736 ac_header_dirent=$ac_hdr; break
25737 fi
25738
25739 done
25740 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25741 if test $ac_header_dirent = dirent.h; then
25742   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25743 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25744 if test "${ac_cv_search_opendir+set}" = set; then
25745   echo $ECHO_N "(cached) $ECHO_C" >&6
25746 else
25747   ac_func_search_save_LIBS=$LIBS
25748 cat >conftest.$ac_ext <<_ACEOF
25749 /* confdefs.h.  */
25750 _ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h.  */
25754
25755 /* Override any GCC internal prototype to avoid an error.
25756    Use char because int might match the return type of a GCC
25757    builtin and then its argument prototype would still apply.  */
25758 #ifdef __cplusplus
25759 extern "C"
25760 #endif
25761 char opendir ();
25762 int
25763 main ()
25764 {
25765 return opendir ();
25766   ;
25767   return 0;
25768 }
25769 _ACEOF
25770 for ac_lib in '' dir; do
25771   if test -z "$ac_lib"; then
25772     ac_res="none required"
25773   else
25774     ac_res=-l$ac_lib
25775     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25776   fi
25777   rm -f conftest.$ac_objext conftest$ac_exeext
25778 if { (ac_try="$ac_link"
25779 case "(($ac_try" in
25780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25781   *) ac_try_echo=$ac_try;;
25782 esac
25783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25784   (eval "$ac_link") 2>conftest.er1
25785   ac_status=$?
25786   grep -v '^ *+' conftest.er1 >conftest.err
25787   rm -f conftest.er1
25788   cat conftest.err >&5
25789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790   (exit $ac_status); } && {
25791          test -z "$ac_c_werror_flag" ||
25792          test ! -s conftest.err
25793        } && test -s conftest$ac_exeext &&
25794        $as_test_x conftest$ac_exeext; then
25795   ac_cv_search_opendir=$ac_res
25796 else
25797   echo "$as_me: failed program was:" >&5
25798 sed 's/^/| /' conftest.$ac_ext >&5
25799
25800
25801 fi
25802
25803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25804       conftest$ac_exeext
25805   if test "${ac_cv_search_opendir+set}" = set; then
25806   break
25807 fi
25808 done
25809 if test "${ac_cv_search_opendir+set}" = set; then
25810   :
25811 else
25812   ac_cv_search_opendir=no
25813 fi
25814 rm conftest.$ac_ext
25815 LIBS=$ac_func_search_save_LIBS
25816 fi
25817 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25818 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25819 ac_res=$ac_cv_search_opendir
25820 if test "$ac_res" != no; then
25821   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25822
25823 fi
25824
25825 else
25826   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25827 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25828 if test "${ac_cv_search_opendir+set}" = set; then
25829   echo $ECHO_N "(cached) $ECHO_C" >&6
25830 else
25831   ac_func_search_save_LIBS=$LIBS
25832 cat >conftest.$ac_ext <<_ACEOF
25833 /* confdefs.h.  */
25834 _ACEOF
25835 cat confdefs.h >>conftest.$ac_ext
25836 cat >>conftest.$ac_ext <<_ACEOF
25837 /* end confdefs.h.  */
25838
25839 /* Override any GCC internal prototype to avoid an error.
25840    Use char because int might match the return type of a GCC
25841    builtin and then its argument prototype would still apply.  */
25842 #ifdef __cplusplus
25843 extern "C"
25844 #endif
25845 char opendir ();
25846 int
25847 main ()
25848 {
25849 return opendir ();
25850   ;
25851   return 0;
25852 }
25853 _ACEOF
25854 for ac_lib in '' x; do
25855   if test -z "$ac_lib"; then
25856     ac_res="none required"
25857   else
25858     ac_res=-l$ac_lib
25859     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25860   fi
25861   rm -f conftest.$ac_objext conftest$ac_exeext
25862 if { (ac_try="$ac_link"
25863 case "(($ac_try" in
25864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25865   *) ac_try_echo=$ac_try;;
25866 esac
25867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25868   (eval "$ac_link") 2>conftest.er1
25869   ac_status=$?
25870   grep -v '^ *+' conftest.er1 >conftest.err
25871   rm -f conftest.er1
25872   cat conftest.err >&5
25873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874   (exit $ac_status); } && {
25875          test -z "$ac_c_werror_flag" ||
25876          test ! -s conftest.err
25877        } && test -s conftest$ac_exeext &&
25878        $as_test_x conftest$ac_exeext; then
25879   ac_cv_search_opendir=$ac_res
25880 else
25881   echo "$as_me: failed program was:" >&5
25882 sed 's/^/| /' conftest.$ac_ext >&5
25883
25884
25885 fi
25886
25887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25888       conftest$ac_exeext
25889   if test "${ac_cv_search_opendir+set}" = set; then
25890   break
25891 fi
25892 done
25893 if test "${ac_cv_search_opendir+set}" = set; then
25894   :
25895 else
25896   ac_cv_search_opendir=no
25897 fi
25898 rm conftest.$ac_ext
25899 LIBS=$ac_func_search_save_LIBS
25900 fi
25901 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25902 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25903 ac_res=$ac_cv_search_opendir
25904 if test "$ac_res" != no; then
25905   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25906
25907 fi
25908
25909 fi
25910
25911
25912
25913
25914
25915
25916
25917
25918 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25919 do
25920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25924   echo $ECHO_N "(cached) $ECHO_C" >&6
25925 else
25926   cat >conftest.$ac_ext <<_ACEOF
25927 /* confdefs.h.  */
25928 _ACEOF
25929 cat confdefs.h >>conftest.$ac_ext
25930 cat >>conftest.$ac_ext <<_ACEOF
25931 /* end confdefs.h.  */
25932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25934 #define $ac_func innocuous_$ac_func
25935
25936 /* System header to define __stub macros and hopefully few prototypes,
25937     which can conflict with char $ac_func (); below.
25938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25939     <limits.h> exists even on freestanding compilers.  */
25940
25941 #ifdef __STDC__
25942 # include <limits.h>
25943 #else
25944 # include <assert.h>
25945 #endif
25946
25947 #undef $ac_func
25948
25949 /* Override any GCC internal prototype to avoid an error.
25950    Use char because int might match the return type of a GCC
25951    builtin and then its argument prototype would still apply.  */
25952 #ifdef __cplusplus
25953 extern "C"
25954 #endif
25955 char $ac_func ();
25956 /* The GNU C library defines this for functions which it implements
25957     to always fail with ENOSYS.  Some functions are actually named
25958     something starting with __ and the normal name is an alias.  */
25959 #if defined __stub_$ac_func || defined __stub___$ac_func
25960 choke me
25961 #endif
25962
25963 int
25964 main ()
25965 {
25966 return $ac_func ();
25967   ;
25968   return 0;
25969 }
25970 _ACEOF
25971 rm -f conftest.$ac_objext conftest$ac_exeext
25972 if { (ac_try="$ac_link"
25973 case "(($ac_try" in
25974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25975   *) ac_try_echo=$ac_try;;
25976 esac
25977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25978   (eval "$ac_link") 2>conftest.er1
25979   ac_status=$?
25980   grep -v '^ *+' conftest.er1 >conftest.err
25981   rm -f conftest.er1
25982   cat conftest.err >&5
25983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984   (exit $ac_status); } && {
25985          test -z "$ac_c_werror_flag" ||
25986          test ! -s conftest.err
25987        } && test -s conftest$ac_exeext &&
25988        $as_test_x conftest$ac_exeext; then
25989   eval "$as_ac_var=yes"
25990 else
25991   echo "$as_me: failed program was:" >&5
25992 sed 's/^/| /' conftest.$ac_ext >&5
25993
25994         eval "$as_ac_var=no"
25995 fi
25996
25997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25998       conftest$ac_exeext conftest.$ac_ext
25999 fi
26000 ac_res=`eval echo '${'$as_ac_var'}'`
26001                { echo "$as_me:$LINENO: result: $ac_res" >&5
26002 echo "${ECHO_T}$ac_res" >&6; }
26003 if test `eval echo '${'$as_ac_var'}'` = yes; then
26004   cat >>confdefs.h <<_ACEOF
26005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26006 _ACEOF
26007
26008 fi
26009 done
26010
26011
26012
26013 for ac_func in nanosleep nl_langinfo
26014 do
26015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26019   echo $ECHO_N "(cached) $ECHO_C" >&6
26020 else
26021   cat >conftest.$ac_ext <<_ACEOF
26022 /* confdefs.h.  */
26023 _ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h.  */
26027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26029 #define $ac_func innocuous_$ac_func
26030
26031 /* System header to define __stub macros and hopefully few prototypes,
26032     which can conflict with char $ac_func (); below.
26033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26034     <limits.h> exists even on freestanding compilers.  */
26035
26036 #ifdef __STDC__
26037 # include <limits.h>
26038 #else
26039 # include <assert.h>
26040 #endif
26041
26042 #undef $ac_func
26043
26044 /* Override any GCC internal prototype to avoid an error.
26045    Use char because int might match the return type of a GCC
26046    builtin and then its argument prototype would still apply.  */
26047 #ifdef __cplusplus
26048 extern "C"
26049 #endif
26050 char $ac_func ();
26051 /* The GNU C library defines this for functions which it implements
26052     to always fail with ENOSYS.  Some functions are actually named
26053     something starting with __ and the normal name is an alias.  */
26054 #if defined __stub_$ac_func || defined __stub___$ac_func
26055 choke me
26056 #endif
26057
26058 int
26059 main ()
26060 {
26061 return $ac_func ();
26062   ;
26063   return 0;
26064 }
26065 _ACEOF
26066 rm -f conftest.$ac_objext conftest$ac_exeext
26067 if { (ac_try="$ac_link"
26068 case "(($ac_try" in
26069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26070   *) ac_try_echo=$ac_try;;
26071 esac
26072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26073   (eval "$ac_link") 2>conftest.er1
26074   ac_status=$?
26075   grep -v '^ *+' conftest.er1 >conftest.err
26076   rm -f conftest.er1
26077   cat conftest.err >&5
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); } && {
26080          test -z "$ac_c_werror_flag" ||
26081          test ! -s conftest.err
26082        } && test -s conftest$ac_exeext &&
26083        $as_test_x conftest$ac_exeext; then
26084   eval "$as_ac_var=yes"
26085 else
26086   echo "$as_me: failed program was:" >&5
26087 sed 's/^/| /' conftest.$ac_ext >&5
26088
26089         eval "$as_ac_var=no"
26090 fi
26091
26092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26093       conftest$ac_exeext conftest.$ac_ext
26094 fi
26095 ac_res=`eval echo '${'$as_ac_var'}'`
26096                { echo "$as_me:$LINENO: result: $ac_res" >&5
26097 echo "${ECHO_T}$ac_res" >&6; }
26098 if test `eval echo '${'$as_ac_var'}'` = yes; then
26099   cat >>confdefs.h <<_ACEOF
26100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26101 _ACEOF
26102
26103 fi
26104 done
26105
26106
26107 for ac_header in varargs.h
26108 do
26109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26111   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26114   echo $ECHO_N "(cached) $ECHO_C" >&6
26115 fi
26116 ac_res=`eval echo '${'$as_ac_Header'}'`
26117                { echo "$as_me:$LINENO: result: $ac_res" >&5
26118 echo "${ECHO_T}$ac_res" >&6; }
26119 else
26120   # Is the header compilable?
26121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26123 cat >conftest.$ac_ext <<_ACEOF
26124 /* confdefs.h.  */
26125 _ACEOF
26126 cat confdefs.h >>conftest.$ac_ext
26127 cat >>conftest.$ac_ext <<_ACEOF
26128 /* end confdefs.h.  */
26129 $ac_includes_default
26130 #include <$ac_header>
26131 _ACEOF
26132 rm -f conftest.$ac_objext
26133 if { (ac_try="$ac_compile"
26134 case "(($ac_try" in
26135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26136   *) ac_try_echo=$ac_try;;
26137 esac
26138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26139   (eval "$ac_compile") 2>conftest.er1
26140   ac_status=$?
26141   grep -v '^ *+' conftest.er1 >conftest.err
26142   rm -f conftest.er1
26143   cat conftest.err >&5
26144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145   (exit $ac_status); } && {
26146          test -z "$ac_c_werror_flag" ||
26147          test ! -s conftest.err
26148        } && test -s conftest.$ac_objext; then
26149   ac_header_compiler=yes
26150 else
26151   echo "$as_me: failed program was:" >&5
26152 sed 's/^/| /' conftest.$ac_ext >&5
26153
26154         ac_header_compiler=no
26155 fi
26156
26157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26159 echo "${ECHO_T}$ac_header_compiler" >&6; }
26160
26161 # Is the header present?
26162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26164 cat >conftest.$ac_ext <<_ACEOF
26165 /* confdefs.h.  */
26166 _ACEOF
26167 cat confdefs.h >>conftest.$ac_ext
26168 cat >>conftest.$ac_ext <<_ACEOF
26169 /* end confdefs.h.  */
26170 #include <$ac_header>
26171 _ACEOF
26172 if { (ac_try="$ac_cpp conftest.$ac_ext"
26173 case "(($ac_try" in
26174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175   *) ac_try_echo=$ac_try;;
26176 esac
26177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26178   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26179   ac_status=$?
26180   grep -v '^ *+' conftest.er1 >conftest.err
26181   rm -f conftest.er1
26182   cat conftest.err >&5
26183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184   (exit $ac_status); } >/dev/null && {
26185          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26186          test ! -s conftest.err
26187        }; then
26188   ac_header_preproc=yes
26189 else
26190   echo "$as_me: failed program was:" >&5
26191 sed 's/^/| /' conftest.$ac_ext >&5
26192
26193   ac_header_preproc=no
26194 fi
26195
26196 rm -f conftest.err conftest.$ac_ext
26197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26198 echo "${ECHO_T}$ac_header_preproc" >&6; }
26199
26200 # So?  What about this header?
26201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26202   yes:no: )
26203     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26207     ac_header_preproc=yes
26208     ;;
26209   no:yes:* )
26210     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26212     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26213 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26214     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26216     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26217 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26220     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26222
26223     ;;
26224 esac
26225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26228   echo $ECHO_N "(cached) $ECHO_C" >&6
26229 else
26230   eval "$as_ac_Header=\$ac_header_preproc"
26231 fi
26232 ac_res=`eval echo '${'$as_ac_Header'}'`
26233                { echo "$as_me:$LINENO: result: $ac_res" >&5
26234 echo "${ECHO_T}$ac_res" >&6; }
26235
26236 fi
26237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26238   cat >>confdefs.h <<_ACEOF
26239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26240 _ACEOF
26241
26242 fi
26243
26244 done
26245
26246
26247
26248 { echo "$as_me:$LINENO: checking for Python support" >&5
26249 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26250
26251 # Check whether --with-python was given.
26252 if test "${with_python+set}" = set; then
26253   withval=$with_python;
26254        PYTHON_INCDIR=
26255        PYTHON_LIBS=
26256        if test "$withval" != "no"; then
26257           if test "$withval" = "yes"; then
26258              if test -e /usr/bin/python-config ; then
26259                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26260                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26261              else
26262                 for python_root in /usr /usr/local /usr/sfw; do
26263                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26264                       if test -f $python_root/include/${ver}/Python.h; then
26265                          PYTHON_INCDIR=-I$python_root/include/${ver}
26266                          if test -d $python_root/lib64/${ver}/config; then
26267                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26268                          else
26269                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26270                          fi
26271                          break
26272                       fi
26273                    done
26274                 done
26275
26276                 if test x$PYTHON_INCDIR = x; then
26277                    if test -f $prefix/include/Python.h; then
26278                       PYTHON_INCDIR=-I$prefix/include
26279                       if test -d $prefix/lib64/config; then
26280                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26281                       else
26282                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26283                       fi
26284                    else
26285                       { echo "$as_me:$LINENO: result: no" >&5
26286 echo "${ECHO_T}no" >&6; }
26287                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26288 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26289    { (exit 1); exit 1; }; }
26290                    fi
26291                 fi
26292              fi
26293           else
26294              if test -e $withval/bin/python-config ; then
26295                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26296                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26297              elif test -f $withval/Python.h; then
26298                 PYTHON_INCDIR=-I$withval
26299                 PYTHON_LIBS="-L$withval/config -lpython"
26300              elif test -f $withval/include/Python.h; then
26301                 PYTHON_INCDIR=-I$withval/include
26302                 if test -d $withval/lib64/config; then
26303                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26304                 else
26305                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26306                 fi
26307              elif test -f $withval/include/python/Python.h; then
26308                 PYTHON_INCDIR=-I$withval/include/python
26309                 if test -d $withval/lib64/python/config; then
26310                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26311                 else
26312                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26313                 fi
26314              else
26315                 { echo "$as_me:$LINENO: result: no" >&5
26316 echo "${ECHO_T}no" >&6; }
26317                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26318 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26319    { (exit 1); exit 1; }; }
26320              fi
26321           fi
26322
26323           cat >>confdefs.h <<\_ACEOF
26324 #define HAVE_PYTHON 1
26325 _ACEOF
26326
26327           { echo "$as_me:$LINENO: result: yes" >&5
26328 echo "${ECHO_T}yes" >&6; }
26329           support_python=yes
26330           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26331 echo "$as_me: checking for more Python libs" >&6;}
26332           saved_LIBS="$LIBS"; LIBS=
26333           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26334 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26335 if test "${ac_cv_search_shm_open+set}" = set; then
26336   echo $ECHO_N "(cached) $ECHO_C" >&6
26337 else
26338   ac_func_search_save_LIBS=$LIBS
26339 cat >conftest.$ac_ext <<_ACEOF
26340 /* confdefs.h.  */
26341 _ACEOF
26342 cat confdefs.h >>conftest.$ac_ext
26343 cat >>conftest.$ac_ext <<_ACEOF
26344 /* end confdefs.h.  */
26345
26346 /* Override any GCC internal prototype to avoid an error.
26347    Use char because int might match the return type of a GCC
26348    builtin and then its argument prototype would still apply.  */
26349 #ifdef __cplusplus
26350 extern "C"
26351 #endif
26352 char shm_open ();
26353 int
26354 main ()
26355 {
26356 return shm_open ();
26357   ;
26358   return 0;
26359 }
26360 _ACEOF
26361 for ac_lib in '' rt; do
26362   if test -z "$ac_lib"; then
26363     ac_res="none required"
26364   else
26365     ac_res=-l$ac_lib
26366     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26367   fi
26368   rm -f conftest.$ac_objext conftest$ac_exeext
26369 if { (ac_try="$ac_link"
26370 case "(($ac_try" in
26371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26372   *) ac_try_echo=$ac_try;;
26373 esac
26374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26375   (eval "$ac_link") 2>conftest.er1
26376   ac_status=$?
26377   grep -v '^ *+' conftest.er1 >conftest.err
26378   rm -f conftest.er1
26379   cat conftest.err >&5
26380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381   (exit $ac_status); } && {
26382          test -z "$ac_c_werror_flag" ||
26383          test ! -s conftest.err
26384        } && test -s conftest$ac_exeext &&
26385        $as_test_x conftest$ac_exeext; then
26386   ac_cv_search_shm_open=$ac_res
26387 else
26388   echo "$as_me: failed program was:" >&5
26389 sed 's/^/| /' conftest.$ac_ext >&5
26390
26391
26392 fi
26393
26394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26395       conftest$ac_exeext
26396   if test "${ac_cv_search_shm_open+set}" = set; then
26397   break
26398 fi
26399 done
26400 if test "${ac_cv_search_shm_open+set}" = set; then
26401   :
26402 else
26403   ac_cv_search_shm_open=no
26404 fi
26405 rm conftest.$ac_ext
26406 LIBS=$ac_func_search_save_LIBS
26407 fi
26408 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26409 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26410 ac_res=$ac_cv_search_shm_open
26411 if test "$ac_res" != no; then
26412   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26413
26414 fi
26415
26416
26417 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26418 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26419 if test "${ac_cv_lib_util_openpty+set}" = set; then
26420   echo $ECHO_N "(cached) $ECHO_C" >&6
26421 else
26422   ac_check_lib_save_LIBS=$LIBS
26423 LIBS="-lutil  $LIBS"
26424 cat >conftest.$ac_ext <<_ACEOF
26425 /* confdefs.h.  */
26426 _ACEOF
26427 cat confdefs.h >>conftest.$ac_ext
26428 cat >>conftest.$ac_ext <<_ACEOF
26429 /* end confdefs.h.  */
26430
26431 /* Override any GCC internal prototype to avoid an error.
26432    Use char because int might match the return type of a GCC
26433    builtin and then its argument prototype would still apply.  */
26434 #ifdef __cplusplus
26435 extern "C"
26436 #endif
26437 char openpty ();
26438 int
26439 main ()
26440 {
26441 return openpty ();
26442   ;
26443   return 0;
26444 }
26445 _ACEOF
26446 rm -f conftest.$ac_objext conftest$ac_exeext
26447 if { (ac_try="$ac_link"
26448 case "(($ac_try" in
26449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26450   *) ac_try_echo=$ac_try;;
26451 esac
26452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26453   (eval "$ac_link") 2>conftest.er1
26454   ac_status=$?
26455   grep -v '^ *+' conftest.er1 >conftest.err
26456   rm -f conftest.er1
26457   cat conftest.err >&5
26458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26459   (exit $ac_status); } && {
26460          test -z "$ac_c_werror_flag" ||
26461          test ! -s conftest.err
26462        } && test -s conftest$ac_exeext &&
26463        $as_test_x conftest$ac_exeext; then
26464   ac_cv_lib_util_openpty=yes
26465 else
26466   echo "$as_me: failed program was:" >&5
26467 sed 's/^/| /' conftest.$ac_ext >&5
26468
26469         ac_cv_lib_util_openpty=no
26470 fi
26471
26472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26473       conftest$ac_exeext conftest.$ac_ext
26474 LIBS=$ac_check_lib_save_LIBS
26475 fi
26476 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26477 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26478 if test $ac_cv_lib_util_openpty = yes; then
26479   cat >>confdefs.h <<_ACEOF
26480 #define HAVE_LIBUTIL 1
26481 _ACEOF
26482
26483   LIBS="-lutil $LIBS"
26484
26485 fi
26486
26487           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26488           LIBS="$saved_LIBS"
26489        else
26490           { echo "$as_me:$LINENO: result: no" >&5
26491 echo "${ECHO_T}no" >&6; }
26492        fi
26493
26494 else
26495
26496        { echo "$as_me:$LINENO: result: no" >&5
26497 echo "${ECHO_T}no" >&6; }
26498
26499
26500 fi
26501
26502
26503
26504
26505 { echo "$as_me:$LINENO: checking for socket" >&5
26506 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26507 if test "${ac_cv_func_socket+set}" = set; then
26508   echo $ECHO_N "(cached) $ECHO_C" >&6
26509 else
26510   cat >conftest.$ac_ext <<_ACEOF
26511 /* confdefs.h.  */
26512 _ACEOF
26513 cat confdefs.h >>conftest.$ac_ext
26514 cat >>conftest.$ac_ext <<_ACEOF
26515 /* end confdefs.h.  */
26516 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26518 #define socket innocuous_socket
26519
26520 /* System header to define __stub macros and hopefully few prototypes,
26521     which can conflict with char socket (); below.
26522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26523     <limits.h> exists even on freestanding compilers.  */
26524
26525 #ifdef __STDC__
26526 # include <limits.h>
26527 #else
26528 # include <assert.h>
26529 #endif
26530
26531 #undef socket
26532
26533 /* Override any GCC internal prototype to avoid an error.
26534    Use char because int might match the return type of a GCC
26535    builtin and then its argument prototype would still apply.  */
26536 #ifdef __cplusplus
26537 extern "C"
26538 #endif
26539 char socket ();
26540 /* The GNU C library defines this for functions which it implements
26541     to always fail with ENOSYS.  Some functions are actually named
26542     something starting with __ and the normal name is an alias.  */
26543 #if defined __stub_socket || defined __stub___socket
26544 choke me
26545 #endif
26546
26547 int
26548 main ()
26549 {
26550 return socket ();
26551   ;
26552   return 0;
26553 }
26554 _ACEOF
26555 rm -f conftest.$ac_objext conftest$ac_exeext
26556 if { (ac_try="$ac_link"
26557 case "(($ac_try" in
26558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26559   *) ac_try_echo=$ac_try;;
26560 esac
26561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26562   (eval "$ac_link") 2>conftest.er1
26563   ac_status=$?
26564   grep -v '^ *+' conftest.er1 >conftest.err
26565   rm -f conftest.er1
26566   cat conftest.err >&5
26567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568   (exit $ac_status); } && {
26569          test -z "$ac_c_werror_flag" ||
26570          test ! -s conftest.err
26571        } && test -s conftest$ac_exeext &&
26572        $as_test_x conftest$ac_exeext; then
26573   ac_cv_func_socket=yes
26574 else
26575   echo "$as_me: failed program was:" >&5
26576 sed 's/^/| /' conftest.$ac_ext >&5
26577
26578         ac_cv_func_socket=no
26579 fi
26580
26581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26582       conftest$ac_exeext conftest.$ac_ext
26583 fi
26584 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26585 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26586 if test $ac_cv_func_socket = yes; then
26587   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26588 echo "${ECHO_T}using libc's socket" >&6; }
26589 else
26590
26591 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26592 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26593 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26594   echo $ECHO_N "(cached) $ECHO_C" >&6
26595 else
26596   ac_check_lib_save_LIBS=$LIBS
26597 LIBS="-lxnet  $LIBS"
26598 cat >conftest.$ac_ext <<_ACEOF
26599 /* confdefs.h.  */
26600 _ACEOF
26601 cat confdefs.h >>conftest.$ac_ext
26602 cat >>conftest.$ac_ext <<_ACEOF
26603 /* end confdefs.h.  */
26604
26605 /* Override any GCC internal prototype to avoid an error.
26606    Use char because int might match the return type of a GCC
26607    builtin and then its argument prototype would still apply.  */
26608 #ifdef __cplusplus
26609 extern "C"
26610 #endif
26611 char socket ();
26612 int
26613 main ()
26614 {
26615 return socket ();
26616   ;
26617   return 0;
26618 }
26619 _ACEOF
26620 rm -f conftest.$ac_objext conftest$ac_exeext
26621 if { (ac_try="$ac_link"
26622 case "(($ac_try" in
26623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26624   *) ac_try_echo=$ac_try;;
26625 esac
26626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26627   (eval "$ac_link") 2>conftest.er1
26628   ac_status=$?
26629   grep -v '^ *+' conftest.er1 >conftest.err
26630   rm -f conftest.er1
26631   cat conftest.err >&5
26632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633   (exit $ac_status); } && {
26634          test -z "$ac_c_werror_flag" ||
26635          test ! -s conftest.err
26636        } && test -s conftest$ac_exeext &&
26637        $as_test_x conftest$ac_exeext; then
26638   ac_cv_lib_xnet_socket=yes
26639 else
26640   echo "$as_me: failed program was:" >&5
26641 sed 's/^/| /' conftest.$ac_ext >&5
26642
26643         ac_cv_lib_xnet_socket=no
26644 fi
26645
26646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26647       conftest$ac_exeext conftest.$ac_ext
26648 LIBS=$ac_check_lib_save_LIBS
26649 fi
26650 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26651 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26652 if test $ac_cv_lib_xnet_socket = yes; then
26653   cat >>confdefs.h <<_ACEOF
26654 #define HAVE_LIBXNET 1
26655 _ACEOF
26656
26657   LIBS="-lxnet $LIBS"
26658
26659 fi
26660
26661
26662 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26663 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26664 if test "${ac_cv_lib_socket_socket+set}" = set; then
26665   echo $ECHO_N "(cached) $ECHO_C" >&6
26666 else
26667   ac_check_lib_save_LIBS=$LIBS
26668 LIBS="-lsocket  $LIBS"
26669 cat >conftest.$ac_ext <<_ACEOF
26670 /* confdefs.h.  */
26671 _ACEOF
26672 cat confdefs.h >>conftest.$ac_ext
26673 cat >>conftest.$ac_ext <<_ACEOF
26674 /* end confdefs.h.  */
26675
26676 /* Override any GCC internal prototype to avoid an error.
26677    Use char because int might match the return type of a GCC
26678    builtin and then its argument prototype would still apply.  */
26679 #ifdef __cplusplus
26680 extern "C"
26681 #endif
26682 char socket ();
26683 int
26684 main ()
26685 {
26686 return socket ();
26687   ;
26688   return 0;
26689 }
26690 _ACEOF
26691 rm -f conftest.$ac_objext conftest$ac_exeext
26692 if { (ac_try="$ac_link"
26693 case "(($ac_try" in
26694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26695   *) ac_try_echo=$ac_try;;
26696 esac
26697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26698   (eval "$ac_link") 2>conftest.er1
26699   ac_status=$?
26700   grep -v '^ *+' conftest.er1 >conftest.err
26701   rm -f conftest.er1
26702   cat conftest.err >&5
26703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704   (exit $ac_status); } && {
26705          test -z "$ac_c_werror_flag" ||
26706          test ! -s conftest.err
26707        } && test -s conftest$ac_exeext &&
26708        $as_test_x conftest$ac_exeext; then
26709   ac_cv_lib_socket_socket=yes
26710 else
26711   echo "$as_me: failed program was:" >&5
26712 sed 's/^/| /' conftest.$ac_ext >&5
26713
26714         ac_cv_lib_socket_socket=no
26715 fi
26716
26717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26718       conftest$ac_exeext conftest.$ac_ext
26719 LIBS=$ac_check_lib_save_LIBS
26720 fi
26721 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26722 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26723 if test $ac_cv_lib_socket_socket = yes; then
26724   cat >>confdefs.h <<_ACEOF
26725 #define HAVE_LIBSOCKET 1
26726 _ACEOF
26727
26728   LIBS="-lsocket $LIBS"
26729
26730 fi
26731
26732
26733 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26734 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26735 if test "${ac_cv_lib_inet_socket+set}" = set; then
26736   echo $ECHO_N "(cached) $ECHO_C" >&6
26737 else
26738   ac_check_lib_save_LIBS=$LIBS
26739 LIBS="-linet  $LIBS"
26740 cat >conftest.$ac_ext <<_ACEOF
26741 /* confdefs.h.  */
26742 _ACEOF
26743 cat confdefs.h >>conftest.$ac_ext
26744 cat >>conftest.$ac_ext <<_ACEOF
26745 /* end confdefs.h.  */
26746
26747 /* Override any GCC internal prototype to avoid an error.
26748    Use char because int might match the return type of a GCC
26749    builtin and then its argument prototype would still apply.  */
26750 #ifdef __cplusplus
26751 extern "C"
26752 #endif
26753 char socket ();
26754 int
26755 main ()
26756 {
26757 return socket ();
26758   ;
26759   return 0;
26760 }
26761 _ACEOF
26762 rm -f conftest.$ac_objext conftest$ac_exeext
26763 if { (ac_try="$ac_link"
26764 case "(($ac_try" in
26765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26766   *) ac_try_echo=$ac_try;;
26767 esac
26768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26769   (eval "$ac_link") 2>conftest.er1
26770   ac_status=$?
26771   grep -v '^ *+' conftest.er1 >conftest.err
26772   rm -f conftest.er1
26773   cat conftest.err >&5
26774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775   (exit $ac_status); } && {
26776          test -z "$ac_c_werror_flag" ||
26777          test ! -s conftest.err
26778        } && test -s conftest$ac_exeext &&
26779        $as_test_x conftest$ac_exeext; then
26780   ac_cv_lib_inet_socket=yes
26781 else
26782   echo "$as_me: failed program was:" >&5
26783 sed 's/^/| /' conftest.$ac_ext >&5
26784
26785         ac_cv_lib_inet_socket=no
26786 fi
26787
26788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26789       conftest$ac_exeext conftest.$ac_ext
26790 LIBS=$ac_check_lib_save_LIBS
26791 fi
26792 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26793 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26794 if test $ac_cv_lib_inet_socket = yes; then
26795   cat >>confdefs.h <<_ACEOF
26796 #define HAVE_LIBINET 1
26797 _ACEOF
26798
26799   LIBS="-linet $LIBS"
26800
26801 fi
26802
26803 fi
26804
26805
26806 TCPW_MSG="no"
26807 WRAPLIBS=""
26808
26809 # Check whether --with-tcp-wrappers was given.
26810 if test "${with_tcp_wrappers+set}" = set; then
26811   withval=$with_tcp_wrappers;
26812        if test "x$withval" != "xno" ; then
26813           saved_LIBS="$LIBS"
26814           LIBS="$saved_LIBS -lwrap"
26815           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26816 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26817 if test "${ac_cv_search_nanosleep+set}" = set; then
26818   echo $ECHO_N "(cached) $ECHO_C" >&6
26819 else
26820   ac_func_search_save_LIBS=$LIBS
26821 cat >conftest.$ac_ext <<_ACEOF
26822 /* confdefs.h.  */
26823 _ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h.  */
26827
26828 /* Override any GCC internal prototype to avoid an error.
26829    Use char because int might match the return type of a GCC
26830    builtin and then its argument prototype would still apply.  */
26831 #ifdef __cplusplus
26832 extern "C"
26833 #endif
26834 char nanosleep ();
26835 int
26836 main ()
26837 {
26838 return nanosleep ();
26839   ;
26840   return 0;
26841 }
26842 _ACEOF
26843 for ac_lib in '' rt; do
26844   if test -z "$ac_lib"; then
26845     ac_res="none required"
26846   else
26847     ac_res=-l$ac_lib
26848     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26849   fi
26850   rm -f conftest.$ac_objext conftest$ac_exeext
26851 if { (ac_try="$ac_link"
26852 case "(($ac_try" in
26853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26854   *) ac_try_echo=$ac_try;;
26855 esac
26856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26857   (eval "$ac_link") 2>conftest.er1
26858   ac_status=$?
26859   grep -v '^ *+' conftest.er1 >conftest.err
26860   rm -f conftest.er1
26861   cat conftest.err >&5
26862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863   (exit $ac_status); } && {
26864          test -z "$ac_c_werror_flag" ||
26865          test ! -s conftest.err
26866        } && test -s conftest$ac_exeext &&
26867        $as_test_x conftest$ac_exeext; then
26868   ac_cv_search_nanosleep=$ac_res
26869 else
26870   echo "$as_me: failed program was:" >&5
26871 sed 's/^/| /' conftest.$ac_ext >&5
26872
26873
26874 fi
26875
26876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26877       conftest$ac_exeext
26878   if test "${ac_cv_search_nanosleep+set}" = set; then
26879   break
26880 fi
26881 done
26882 if test "${ac_cv_search_nanosleep+set}" = set; then
26883   :
26884 else
26885   ac_cv_search_nanosleep=no
26886 fi
26887 rm conftest.$ac_ext
26888 LIBS=$ac_func_search_save_LIBS
26889 fi
26890 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26891 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26892 ac_res=$ac_cv_search_nanosleep
26893 if test "$ac_res" != no; then
26894   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26895
26896 fi
26897
26898           { echo "$as_me:$LINENO: checking for libwrap" >&5
26899 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26900           cat >conftest.$ac_ext <<_ACEOF
26901 /* confdefs.h.  */
26902 _ACEOF
26903 cat confdefs.h >>conftest.$ac_ext
26904 cat >>conftest.$ac_ext <<_ACEOF
26905 /* end confdefs.h.  */
26906
26907                #include <sys/types.h>
26908                #include <tcpd.h>
26909                int deny_severity = 0;
26910                int allow_severity = 0;
26911                struct request_info *req;
26912
26913 int
26914 main ()
26915 {
26916
26917                 hosts_access(req);
26918
26919   ;
26920   return 0;
26921 }
26922 _ACEOF
26923 rm -f conftest.$ac_objext conftest$ac_exeext
26924 if { (ac_try="$ac_link"
26925 case "(($ac_try" in
26926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26927   *) ac_try_echo=$ac_try;;
26928 esac
26929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26930   (eval "$ac_link") 2>conftest.er1
26931   ac_status=$?
26932   grep -v '^ *+' conftest.er1 >conftest.err
26933   rm -f conftest.er1
26934   cat conftest.err >&5
26935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936   (exit $ac_status); } && {
26937          test -z "$ac_c_werror_flag" ||
26938          test ! -s conftest.err
26939        } && test -s conftest$ac_exeext &&
26940        $as_test_x conftest$ac_exeext; then
26941
26942                  { echo "$as_me:$LINENO: result: yes" >&5
26943 echo "${ECHO_T}yes" >&6; }
26944
26945 cat >>confdefs.h <<\_ACEOF
26946 #define HAVE_LIBWRAP 1
26947 _ACEOF
26948
26949                  TCPW_MSG="yes"
26950                  LIBS="$saved_LIBS"
26951                  WRAPLIBS="-lwrap"
26952
26953 else
26954   echo "$as_me: failed program was:" >&5
26955 sed 's/^/| /' conftest.$ac_ext >&5
26956
26957
26958                  LIBS="$saved_LIBS -lwrap -lnsl"
26959                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26960                  cat >conftest.$ac_ext <<_ACEOF
26961 /* confdefs.h.  */
26962 _ACEOF
26963 cat confdefs.h >>conftest.$ac_ext
26964 cat >>conftest.$ac_ext <<_ACEOF
26965 /* end confdefs.h.  */
26966
26967                        #include <sys/types.h>
26968                        #include <tcpd.h>
26969                        int deny_severity = 0;
26970                        int allow_severity = 0;
26971                        struct request_info *req;
26972
26973 int
26974 main ()
26975 {
26976
26977                        hosts_access(req);
26978
26979   ;
26980   return 0;
26981 }
26982 _ACEOF
26983 rm -f conftest.$ac_objext conftest$ac_exeext
26984 if { (ac_try="$ac_link"
26985 case "(($ac_try" in
26986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26987   *) ac_try_echo=$ac_try;;
26988 esac
26989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26990   (eval "$ac_link") 2>conftest.er1
26991   ac_status=$?
26992   grep -v '^ *+' conftest.er1 >conftest.err
26993   rm -f conftest.er1
26994   cat conftest.err >&5
26995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996   (exit $ac_status); } && {
26997          test -z "$ac_c_werror_flag" ||
26998          test ! -s conftest.err
26999        } && test -s conftest$ac_exeext &&
27000        $as_test_x conftest$ac_exeext; then
27001
27002                       { echo "$as_me:$LINENO: result: yes" >&5
27003 echo "${ECHO_T}yes" >&6; }
27004
27005 cat >>confdefs.h <<\_ACEOF
27006 #define HAVE_LIBWRAP 1
27007 _ACEOF
27008
27009                       TCPW_MSG="yes"
27010                       LIBS="$saved_LIBS"
27011                       WRAPLIBS="-lwrap"
27012
27013 else
27014   echo "$as_me: failed program was:" >&5
27015 sed 's/^/| /' conftest.$ac_ext >&5
27016
27017
27018                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27019 echo "$as_me: error: *** libwrap missing" >&2;}
27020    { (exit 1); exit 1; }; }
27021
27022
27023 fi
27024
27025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27026       conftest$ac_exeext conftest.$ac_ext
27027
27028
27029 fi
27030
27031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27032       conftest$ac_exeext conftest.$ac_ext
27033        fi
27034
27035
27036 fi
27037
27038
27039 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27040 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27041
27042 # Check whether --with-openssl was given.
27043 if test "${with_openssl+set}" = set; then
27044   withval=$with_openssl;
27045         with_openssl_directory=${withval}
27046
27047
27048 fi
27049
27050
27051 if test "x$with_openssl_directory" != "xno"; then
27052    OPENSSL_LIBS="-lssl -lcrypto"
27053    OPENSSL_INC=""
27054
27055    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27056       #
27057       # Make sure the $with_openssl_directory also makes sense
27058       #
27059       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27060          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27061          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27062       fi
27063    fi
27064
27065    saved_LIBS="${LIBS}"
27066    saved_CFLAGS="${CFLAGS}"
27067    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27068    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27069
27070    cat >conftest.$ac_ext <<_ACEOF
27071 /* confdefs.h.  */
27072 _ACEOF
27073 cat confdefs.h >>conftest.$ac_ext
27074 cat >>conftest.$ac_ext <<_ACEOF
27075 /* end confdefs.h.  */
27076
27077           #include <openssl/ssl.h>
27078
27079 int
27080 main ()
27081 {
27082
27083            CRYPTO_set_id_callback(NULL);
27084
27085   ;
27086   return 0;
27087 }
27088 _ACEOF
27089 rm -f conftest.$ac_objext conftest$ac_exeext
27090 if { (ac_try="$ac_link"
27091 case "(($ac_try" in
27092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27093   *) ac_try_echo=$ac_try;;
27094 esac
27095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27096   (eval "$ac_link") 2>conftest.er1
27097   ac_status=$?
27098   grep -v '^ *+' conftest.er1 >conftest.err
27099   rm -f conftest.er1
27100   cat conftest.err >&5
27101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102   (exit $ac_status); } && {
27103          test -z "$ac_c_werror_flag" ||
27104          test ! -s conftest.err
27105        } && test -s conftest$ac_exeext &&
27106        $as_test_x conftest$ac_exeext; then
27107
27108           support_tls="yes"
27109           support_crypto="yes"
27110
27111 else
27112   echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27114
27115
27116           support_tls="no"
27117           support_crypto="no"
27118
27119
27120 fi
27121
27122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27123       conftest$ac_exeext conftest.$ac_ext
27124
27125    cat >conftest.$ac_ext <<_ACEOF
27126 /* confdefs.h.  */
27127 _ACEOF
27128 cat confdefs.h >>conftest.$ac_ext
27129 cat >>conftest.$ac_ext <<_ACEOF
27130 /* end confdefs.h.  */
27131
27132           #include <openssl/evp.h>
27133
27134 int
27135 main ()
27136 {
27137
27138           EVP_sha512();
27139
27140   ;
27141   return 0;
27142 }
27143 _ACEOF
27144 rm -f conftest.$ac_objext conftest$ac_exeext
27145 if { (ac_try="$ac_link"
27146 case "(($ac_try" in
27147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27148   *) ac_try_echo=$ac_try;;
27149 esac
27150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27151   (eval "$ac_link") 2>conftest.er1
27152   ac_status=$?
27153   grep -v '^ *+' conftest.er1 >conftest.err
27154   rm -f conftest.er1
27155   cat conftest.err >&5
27156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157   (exit $ac_status); } && {
27158          test -z "$ac_c_werror_flag" ||
27159          test ! -s conftest.err
27160        } && test -s conftest$ac_exeext &&
27161        $as_test_x conftest$ac_exeext; then
27162
27163           ac_cv_openssl_sha2="yes"
27164
27165 else
27166   echo "$as_me: failed program was:" >&5
27167 sed 's/^/| /' conftest.$ac_ext >&5
27168
27169
27170           ac_cv_openssl_sha2="no"
27171
27172
27173 fi
27174
27175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27176       conftest$ac_exeext conftest.$ac_ext
27177
27178                cat >conftest.$ac_ext <<_ACEOF
27179 /* confdefs.h.  */
27180 _ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h.  */
27184
27185           #include <openssl/evp.h>
27186
27187 int
27188 main ()
27189 {
27190
27191           EVP_aes_192_cbc();
27192
27193   ;
27194   return 0;
27195 }
27196 _ACEOF
27197 rm -f conftest.$ac_objext conftest$ac_exeext
27198 if { (ac_try="$ac_link"
27199 case "(($ac_try" in
27200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201   *) ac_try_echo=$ac_try;;
27202 esac
27203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204   (eval "$ac_link") 2>conftest.er1
27205   ac_status=$?
27206   grep -v '^ *+' conftest.er1 >conftest.err
27207   rm -f conftest.er1
27208   cat conftest.err >&5
27209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210   (exit $ac_status); } && {
27211          test -z "$ac_c_werror_flag" ||
27212          test ! -s conftest.err
27213        } && test -s conftest$ac_exeext &&
27214        $as_test_x conftest$ac_exeext; then
27215
27216           ac_cv_openssl_export="no"
27217
27218 else
27219   echo "$as_me: failed program was:" >&5
27220 sed 's/^/| /' conftest.$ac_ext >&5
27221
27222
27223           ac_cv_openssl_export="yes"
27224
27225
27226 fi
27227
27228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27229       conftest$ac_exeext conftest.$ac_ext
27230
27231    LIBS="${saved_LIBS}"
27232    CFLAGS="${saved_CFLAGS}"
27233
27234    if test "$support_tls" = "yes"; then
27235
27236 cat >>confdefs.h <<\_ACEOF
27237 #define HAVE_OPENSSL 1
27238 _ACEOF
27239
27240
27241 cat >>confdefs.h <<\_ACEOF
27242 #define HAVE_TLS 1
27243 _ACEOF
27244
27245
27246 cat >>confdefs.h <<\_ACEOF
27247 #define HAVE_CRYPTO 1
27248 _ACEOF
27249
27250    fi
27251
27252    if test "$ac_cv_openssl_sha2" = "yes"; then
27253
27254 cat >>confdefs.h <<\_ACEOF
27255 #define HAVE_SHA2 1
27256 _ACEOF
27257
27258    fi
27259
27260    if test "$ac_cv_openssl_export" = "yes"; then
27261
27262 cat >>confdefs.h <<\_ACEOF
27263 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27264 _ACEOF
27265
27266    fi
27267 else
27268    support_tls="no"
27269    support_crypto="no"
27270    OPENSSL_LIBS=""
27271    OPENSSL_INC=""
27272 fi
27273 { echo "$as_me:$LINENO: result: $support_tls" >&5
27274 echo "${ECHO_T}$support_tls" >&6; }
27275
27276 if test "$support_tls" = "no"; then
27277    OPENSSL_LIBS=""
27278    OPENSSL_INC=""
27279 fi
27280 if test "$support_crypto" = "no"; then
27281    OPENSSL_LIBS=""
27282    OPENSSL_INC=""
27283 else
27284    { echo "$as_me:$LINENO: checking for EVP_PKEY_encrypt_old in -lssl" >&5
27285 echo $ECHO_N "checking for EVP_PKEY_encrypt_old in -lssl... $ECHO_C" >&6; }
27286 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then
27287   echo $ECHO_N "(cached) $ECHO_C" >&6
27288 else
27289   ac_check_lib_save_LIBS=$LIBS
27290 LIBS="-lssl  $LIBS"
27291 cat >conftest.$ac_ext <<_ACEOF
27292 /* confdefs.h.  */
27293 _ACEOF
27294 cat confdefs.h >>conftest.$ac_ext
27295 cat >>conftest.$ac_ext <<_ACEOF
27296 /* end confdefs.h.  */
27297
27298 /* Override any GCC internal prototype to avoid an error.
27299    Use char because int might match the return type of a GCC
27300    builtin and then its argument prototype would still apply.  */
27301 #ifdef __cplusplus
27302 extern "C"
27303 #endif
27304 char EVP_PKEY_encrypt_old ();
27305 int
27306 main ()
27307 {
27308 return EVP_PKEY_encrypt_old ();
27309   ;
27310   return 0;
27311 }
27312 _ACEOF
27313 rm -f conftest.$ac_objext conftest$ac_exeext
27314 if { (ac_try="$ac_link"
27315 case "(($ac_try" in
27316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317   *) ac_try_echo=$ac_try;;
27318 esac
27319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27320   (eval "$ac_link") 2>conftest.er1
27321   ac_status=$?
27322   grep -v '^ *+' conftest.er1 >conftest.err
27323   rm -f conftest.er1
27324   cat conftest.err >&5
27325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326   (exit $ac_status); } && {
27327          test -z "$ac_c_werror_flag" ||
27328          test ! -s conftest.err
27329        } && test -s conftest$ac_exeext &&
27330        $as_test_x conftest$ac_exeext; then
27331   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
27332 else
27333   echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27335
27336         ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
27337 fi
27338
27339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27340       conftest$ac_exeext conftest.$ac_ext
27341 LIBS=$ac_check_lib_save_LIBS
27342 fi
27343 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
27344 echo "${ECHO_T}$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
27345 if test $ac_cv_lib_ssl_EVP_PKEY_encrypt_old = yes; then
27346
27347 cat >>confdefs.h <<\_ACEOF
27348 #define HAVE_OPENSSLv1 1
27349 _ACEOF
27350
27351 fi
27352
27353 fi
27354
27355
27356
27357
27358 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27359 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27360 if test "${ac_cv_search_dlopen+set}" = set; then
27361   echo $ECHO_N "(cached) $ECHO_C" >&6
27362 else
27363   ac_func_search_save_LIBS=$LIBS
27364 cat >conftest.$ac_ext <<_ACEOF
27365 /* confdefs.h.  */
27366 _ACEOF
27367 cat confdefs.h >>conftest.$ac_ext
27368 cat >>conftest.$ac_ext <<_ACEOF
27369 /* end confdefs.h.  */
27370
27371 /* Override any GCC internal prototype to avoid an error.
27372    Use char because int might match the return type of a GCC
27373    builtin and then its argument prototype would still apply.  */
27374 #ifdef __cplusplus
27375 extern "C"
27376 #endif
27377 char dlopen ();
27378 int
27379 main ()
27380 {
27381 return dlopen ();
27382   ;
27383   return 0;
27384 }
27385 _ACEOF
27386 for ac_lib in '' dl; do
27387   if test -z "$ac_lib"; then
27388     ac_res="none required"
27389   else
27390     ac_res=-l$ac_lib
27391     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27392   fi
27393   rm -f conftest.$ac_objext conftest$ac_exeext
27394 if { (ac_try="$ac_link"
27395 case "(($ac_try" in
27396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27397   *) ac_try_echo=$ac_try;;
27398 esac
27399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27400   (eval "$ac_link") 2>conftest.er1
27401   ac_status=$?
27402   grep -v '^ *+' conftest.er1 >conftest.err
27403   rm -f conftest.er1
27404   cat conftest.err >&5
27405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406   (exit $ac_status); } && {
27407          test -z "$ac_c_werror_flag" ||
27408          test ! -s conftest.err
27409        } && test -s conftest$ac_exeext &&
27410        $as_test_x conftest$ac_exeext; then
27411   ac_cv_search_dlopen=$ac_res
27412 else
27413   echo "$as_me: failed program was:" >&5
27414 sed 's/^/| /' conftest.$ac_ext >&5
27415
27416
27417 fi
27418
27419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27420       conftest$ac_exeext
27421   if test "${ac_cv_search_dlopen+set}" = set; then
27422   break
27423 fi
27424 done
27425 if test "${ac_cv_search_dlopen+set}" = set; then
27426   :
27427 else
27428   ac_cv_search_dlopen=no
27429 fi
27430 rm conftest.$ac_ext
27431 LIBS=$ac_func_search_save_LIBS
27432 fi
27433 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27434 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27435 ac_res=$ac_cv_search_dlopen
27436 if test "$ac_res" != no; then
27437   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27438
27439 fi
27440
27441
27442 working_dir=`eval echo ${prefix}/var/bacula/working`
27443
27444 # Check whether --with-working-dir was given.
27445 if test "${with_working_dir+set}" = set; then
27446   withval=$with_working_dir;
27447        if test "x$withval" != "xno" ; then
27448          working_dir=$withval
27449        fi
27450
27451
27452 fi
27453
27454
27455
27456
27457 archivedir=/tmp
27458
27459 # Check whether --with-archivedir was given.
27460 if test "${with_archivedir+set}" = set; then
27461   withval=$with_archivedir;
27462        if test "x$withval" != "xno" ; then
27463           archivedir=$withval
27464        fi
27465
27466
27467 fi
27468
27469
27470
27471
27472 basename=`hostname`
27473
27474 # Check whether --with-basename was given.
27475 if test "${with_basename+set}" = set; then
27476   withval=$with_basename;
27477        if test "x$withval" != "xno" ; then
27478           basename=$withval
27479        fi
27480
27481
27482 fi
27483
27484
27485
27486
27487 hostname=`uname -n | cut -d '.' -f 1`
27488 if test x${hostname} = x ; then
27489   hostname="localhost"
27490 fi
27491
27492 # Check whether --with-hostname was given.
27493 if test "${with_hostname+set}" = set; then
27494   withval=$with_hostname;
27495        if test "x$withval" != "xno" ; then
27496          hostname=$withval
27497        fi
27498
27499
27500 fi
27501
27502
27503
27504
27505
27506 scriptdir=`eval echo ${sysconfdir}`
27507
27508 # Check whether --with-scriptdir was given.
27509 if test "${with_scriptdir+set}" = set; then
27510   withval=$with_scriptdir;
27511        if test "x$withval" != "xno" ; then
27512           scriptdir=$withval
27513        fi
27514
27515
27516 fi
27517
27518
27519
27520
27521
27522 bsrdir=/tmp
27523
27524 # Check whether --with-bsrdir was given.
27525 if test "${with_bsrdir+set}" = set; then
27526   withval=$with_bsrdir;
27527        if test "x$withval" != "xno" ; then
27528           bsrdir=$withval
27529        fi
27530
27531
27532 fi
27533
27534
27535
27536
27537 logdir=/tmp
27538
27539 # Check whether --with-logdir was given.
27540 if test "${with_logdir+set}" = set; then
27541   withval=$with_logdir;
27542        if test "x$withval" != "xno" ; then
27543           logdir=$withval
27544        fi
27545
27546
27547 fi
27548
27549
27550
27551
27552
27553 # ------------------------------------------
27554 # Where to place plugindir (plugin files)
27555 # ------------------------------------------
27556 plugindir=`eval echo ${libdir}`
27557
27558 # Check whether --with-plugindir was given.
27559 if test "${with_plugindir+set}" = set; then
27560   withval=$with_plugindir;
27561        if test "x$withval" != "xno" ; then
27562           plugindir=$withval
27563        fi
27564
27565
27566 fi
27567
27568
27569
27570
27571 dump_email=root@localhost
27572
27573 # Check whether --with-dump-email was given.
27574 if test "${with_dump_email+set}" = set; then
27575   withval=$with_dump_email;
27576        if test "x$withval" != "xno" ; then
27577           dump_email=$withval
27578        fi
27579
27580
27581 fi
27582
27583
27584
27585
27586 job_email=root@localhost
27587
27588 # Check whether --with-job-email was given.
27589 if test "${with_job_email+set}" = set; then
27590   withval=$with_job_email;
27591        if test "x$withval" != "xno" ; then
27592           job_email=$withval
27593        fi
27594
27595
27596 fi
27597
27598
27599
27600
27601 smtp_host=localhost
27602
27603 # Check whether --with-smtp_host was given.
27604 if test "${with_smtp_host+set}" = set; then
27605   withval=$with_smtp_host;
27606        if test "x$withval" != "xno" ; then
27607           smtp_host=$withval
27608        fi
27609
27610
27611 fi
27612
27613
27614
27615
27616 piddir=/var/run
27617
27618 # Check whether --with-pid-dir was given.
27619 if test "${with_pid_dir+set}" = set; then
27620   withval=$with_pid_dir;
27621        if test "x$withval" != "xno" ; then
27622           piddir=$withval
27623        fi
27624
27625
27626 fi
27627
27628
27629 cat >>confdefs.h <<_ACEOF
27630 #define _PATH_BACULA_PIDDIR "$piddir"
27631 _ACEOF
27632
27633
27634
27635 subsysdir=/var/run/subsys
27636 if test -d /var/run/subsys; then
27637    subsysdir=/var/run/subsys
27638 elif test -d /var/lock/subsys; then
27639    subsysdir=/var/lock/subsys
27640 else
27641    subsysdir=/var/run/subsys
27642 fi
27643
27644 # Check whether --with-subsys-dir was given.
27645 if test "${with_subsys_dir+set}" = set; then
27646   withval=$with_subsys_dir;
27647        if test "x$withval" != "xno" ; then
27648           subsysdir=$withval
27649        fi
27650
27651
27652 fi
27653
27654
27655
27656
27657 baseport=9101
27658
27659 # Check whether --with-baseport was given.
27660 if test "${with_baseport+set}" = set; then
27661   withval=$with_baseport;
27662        if test "x$withval" != "xno" ; then
27663           baseport=$withval
27664        fi
27665
27666
27667 fi
27668
27669
27670
27671 dir_port=`expr $baseport`
27672 fd_port=`expr $baseport + 1`
27673 sd_port=`expr $fd_port + 1`
27674
27675
27676
27677
27678
27679 dir_password=
27680
27681 # Check whether --with-dir-password was given.
27682 if test "${with_dir_password+set}" = set; then
27683   withval=$with_dir_password;
27684        if test "x$withval" != "xno" ; then
27685           dir_password=$withval
27686        fi
27687
27688
27689 fi
27690
27691
27692 if test "x$dir_password" = "x" ; then
27693    if test "x$OPENSSL" = "xnone" ; then
27694       key=`autoconf/randpass 33`
27695    else
27696       key=`openssl rand -base64 33`
27697    fi
27698    dir_password=$key
27699 fi
27700
27701 fd_password=
27702
27703 # Check whether --with-fd-password was given.
27704 if test "${with_fd_password+set}" = set; then
27705   withval=$with_fd_password;
27706        if test "x$withval" != "xno" ; then
27707           fd_password=$withval
27708        fi
27709
27710
27711 fi
27712
27713
27714 if test "x$fd_password" = "x" ; then
27715    if test "x$OPENSSL" = "xnone" ; then
27716       key=`autoconf/randpass 37`
27717    else
27718       key=`openssl rand -base64 33`
27719    fi
27720    fd_password=$key
27721 fi
27722
27723 sd_password=
27724
27725 # Check whether --with-sd-password was given.
27726 if test "${with_sd_password+set}" = set; then
27727   withval=$with_sd_password;
27728        if test "x$withval" != "xno" ; then
27729           sd_password=$withval
27730        fi
27731
27732
27733 fi
27734
27735
27736 if test "x$sd_password" = "x" ; then
27737    if test "x$OPENSSL" = "xnone" ; then
27738       key=`autoconf/randpass 41`
27739    else
27740       key=`openssl rand -base64 33`
27741    fi
27742    sd_password=$key
27743 fi
27744
27745 mon_dir_password=
27746
27747 # Check whether --with-mon-dir-password was given.
27748 if test "${with_mon_dir_password+set}" = set; then
27749   withval=$with_mon_dir_password;
27750        if test "x$withval" != "xno" ; then
27751           mon_dir_password=$withval
27752        fi
27753
27754
27755 fi
27756
27757
27758 if test "x$mon_dir_password" = "x" ; then
27759    if test "x$OPENSSL" = "xnone" ; then
27760       key=`autoconf/randpass 33`
27761    else
27762       key=`openssl rand -base64 33`
27763    fi
27764    mon_dir_password=$key
27765 fi
27766
27767 mon_fd_password=
27768
27769 # Check whether --with-mon-fd-password was given.
27770 if test "${with_mon_fd_password+set}" = set; then
27771   withval=$with_mon_fd_password;
27772        if test "x$withval" != "xno" ; then
27773           mon_fd_password=$withval
27774        fi
27775
27776
27777 fi
27778
27779
27780 if test "x$mon_fd_password" = "x" ; then
27781    if test "x$OPENSSL" = "xnone" ; then
27782       key=`autoconf/randpass 37`
27783    else
27784       key=`openssl rand -base64 33`
27785    fi
27786    mon_fd_password=$key
27787 fi
27788
27789 mon_sd_password=
27790
27791 # Check whether --with-mon-sd-password was given.
27792 if test "${with_mon_sd_password+set}" = set; then
27793   withval=$with_mon_sd_password;
27794        if test "x$withval" != "xno" ; then
27795           mon_sd_password=$withval
27796        fi
27797
27798
27799 fi
27800
27801
27802 if test "x$mon_sd_password" = "x" ; then
27803    if test "x$OPENSSL" = "xnone" ; then
27804       key=`autoconf/randpass 41`
27805    else
27806       key=`openssl rand -base64 33`
27807    fi
27808    mon_sd_password=$key
27809 fi
27810
27811
27812
27813
27814
27815
27816
27817
27818 db_name=bacula
27819
27820 # Check whether --with-db_name was given.
27821 if test "${with_db_name+set}" = set; then
27822   withval=$with_db_name;
27823        if test "x$withval" != "x" ; then
27824           db_name=$withval
27825        fi
27826
27827
27828 fi
27829
27830
27831
27832 db_user=bacula
27833
27834 # Check whether --with-db_user was given.
27835 if test "${with_db_user+set}" = set; then
27836   withval=$with_db_user;
27837        if test "x$withval" != "x" ; then
27838           db_user=$withval
27839        fi
27840
27841
27842 fi
27843
27844
27845
27846 db_password=
27847
27848 # Check whether --with-db_password was given.
27849 if test "${with_db_password+set}" = set; then
27850   withval=$with_db_password;
27851        if test "x$withval" != "x" ; then
27852           db_password=$withval
27853        fi
27854
27855
27856 fi
27857
27858
27859
27860 db_port=" "
27861
27862 # Check whether --with-db_port was given.
27863 if test "${with_db_port+set}" = set; then
27864   withval=$with_db_port;
27865        if test "x$withval" != "x" ; then
27866           db_port=$withval
27867        fi
27868
27869
27870 fi
27871
27872
27873
27874 #
27875 # Handle users and groups for each daemon
27876 #
27877 dir_user=
27878
27879 # Check whether --with-dir_user was given.
27880 if test "${with_dir_user+set}" = set; then
27881   withval=$with_dir_user;
27882        if test "x$withval" != "x" ; then
27883            dir_user=$withval
27884        fi
27885
27886
27887 fi
27888
27889
27890 dir_group=
27891
27892 # Check whether --with-dir_group was given.
27893 if test "${with_dir_group+set}" = set; then
27894   withval=$with_dir_group;
27895        if test "x$withval" != "x" ; then
27896           dir_group=$withval
27897        fi
27898
27899
27900 fi
27901
27902
27903 sd_user=
27904
27905 # Check whether --with-sd_user was given.
27906 if test "${with_sd_user+set}" = set; then
27907   withval=$with_sd_user;
27908        if test "x$withval" != "x" ; then
27909           sd_user=$withval
27910        fi
27911
27912
27913 fi
27914
27915
27916 sd_group=
27917
27918 # Check whether --with-sd_group was given.
27919 if test "${with_sd_group+set}" = set; then
27920   withval=$with_sd_group;
27921        if test "x$withval" != "x" ; then
27922           sd_group=$withval
27923        fi
27924
27925
27926 fi
27927
27928
27929 fd_user=
27930
27931 # Check whether --with-fd_user was given.
27932 if test "${with_fd_user+set}" = set; then
27933   withval=$with_fd_user;
27934        if test "x$withval" != "x" ; then
27935           fd_user=$withval
27936        fi
27937
27938
27939 fi
27940
27941
27942 fd_group=
27943
27944 # Check whether --with-fd_group was given.
27945 if test "${with_fd_group+set}" = set; then
27946   withval=$with_fd_group;
27947        if test "x$withval" != "x" ; then
27948           fd_group=$withval
27949        fi
27950
27951
27952 fi
27953
27954
27955
27956
27957
27958
27959
27960
27961
27962 SBINPERM=0750
27963
27964 # Check whether --with-sbin-perm was given.
27965 if test "${with_sbin_perm+set}" = set; then
27966   withval=$with_sbin_perm;
27967        if test "x$withval" != "x" ; then
27968           SBINPERM=$withval
27969        fi
27970
27971
27972 fi
27973
27974
27975
27976
27977 SQL_LIB=
27978
27979 db_found=no
27980 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27981 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27982
27983 # Check whether --with-postgresql was given.
27984 if test "${with_postgresql+set}" = set; then
27985   withval=$with_postgresql;
27986   if test "$withval" != "no"; then
27987       if test "$db_found" = "yes"; then
27988           { echo "$as_me:$LINENO: result: error" >&5
27989 echo "${ECHO_T}error" >&6; }
27990           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27991 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27992    { (exit 1); exit 1; }; };
27993       fi
27994       if test "$withval" = "yes"; then
27995           PG_CONFIG=`which pg_config`
27996           if test -n "$PG_CONFIG";then
27997               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27998               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27999               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
28000           elif test -f /usr/local/include/libpq-fe.h; then
28001               POSTGRESQL_INCDIR=/usr/local/include
28002               if test -d /usr/local/lib64; then
28003                  POSTGRESQL_LIBDIR=/usr/local/lib64
28004               else
28005                  POSTGRESQL_LIBDIR=/usr/local/lib
28006               fi
28007               POSTGRESQL_BINDIR=/usr/local/bin
28008           elif test -f /usr/include/libpq-fe.h; then
28009               POSTGRESQL_INCDIR=/usr/include
28010               if test -d /usr/lib64; then
28011                  POSTGRESQL_LIBDIR=/usr/lib64
28012               else
28013                  POSTGRESQL_LIBDIR=/usr/lib
28014               fi
28015               POSTGRESQL_BINDIR=/usr/bin
28016           elif test -f /usr/include/pgsql/libpq-fe.h; then
28017               POSTGRESQL_INCDIR=/usr/include/pgsql
28018               if test -d /usr/lib64/pgsql; then
28019                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
28020               else
28021                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
28022               fi
28023               POSTGRESQL_BINDIR=/usr/bin
28024           elif test -f /usr/include/postgresql/libpq-fe.h; then
28025               POSTGRESQL_INCDIR=/usr/include/postgresql
28026               if test -d /usr/lib64/postgresql; then
28027                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
28028               else
28029                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
28030               fi
28031               POSTGRESQL_BINDIR=/usr/bin
28032           else
28033               { echo "$as_me:$LINENO: result: no" >&5
28034 echo "${ECHO_T}no" >&6; }
28035               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
28036 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
28037    { (exit 1); exit 1; }; }
28038           fi
28039       elif test -f $withval/include/libpq-fe.h; then
28040           POSTGRESQL_INCDIR=$withval/include
28041           POSTGRESQL_LIBDIR=$withval/lib
28042           POSTGRESQL_BINDIR=$withval/bin
28043       elif test -f $withval/include/postgresql/libpq-fe.h; then
28044           POSTGRESQL_INCDIR=$withval/include/postgresql
28045      if test -d $withval/lib64; then
28046          POSTGRESQL_LIBDIR=$withval/lib64
28047      else
28048          POSTGRESQL_LIBDIR=$withval/lib
28049      fi
28050           POSTGRESQL_BINDIR=$withval/bin
28051       else
28052           { echo "$as_me:$LINENO: result: no" >&5
28053 echo "${ECHO_T}no" >&6; }
28054           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
28055 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
28056    { (exit 1); exit 1; }; }
28057       fi
28058       cat >>confdefs.h <<\_ACEOF
28059 #define HAVE_POSTGRESQL 1
28060 _ACEOF
28061
28062       { echo "$as_me:$LINENO: result: yes" >&5
28063 echo "${ECHO_T}yes" >&6; }
28064       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
28065       { echo "$as_me:$LINENO: checking for crypt" >&5
28066 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
28067 if test "${ac_cv_func_crypt+set}" = set; then
28068   echo $ECHO_N "(cached) $ECHO_C" >&6
28069 else
28070   cat >conftest.$ac_ext <<_ACEOF
28071 /* confdefs.h.  */
28072 _ACEOF
28073 cat confdefs.h >>conftest.$ac_ext
28074 cat >>conftest.$ac_ext <<_ACEOF
28075 /* end confdefs.h.  */
28076 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28078 #define crypt innocuous_crypt
28079
28080 /* System header to define __stub macros and hopefully few prototypes,
28081     which can conflict with char crypt (); below.
28082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28083     <limits.h> exists even on freestanding compilers.  */
28084
28085 #ifdef __STDC__
28086 # include <limits.h>
28087 #else
28088 # include <assert.h>
28089 #endif
28090
28091 #undef crypt
28092
28093 /* Override any GCC internal prototype to avoid an error.
28094    Use char because int might match the return type of a GCC
28095    builtin and then its argument prototype would still apply.  */
28096 #ifdef __cplusplus
28097 extern "C"
28098 #endif
28099 char crypt ();
28100 /* The GNU C library defines this for functions which it implements
28101     to always fail with ENOSYS.  Some functions are actually named
28102     something starting with __ and the normal name is an alias.  */
28103 #if defined __stub_crypt || defined __stub___crypt
28104 choke me
28105 #endif
28106
28107 int
28108 main ()
28109 {
28110 return crypt ();
28111   ;
28112   return 0;
28113 }
28114 _ACEOF
28115 rm -f conftest.$ac_objext conftest$ac_exeext
28116 if { (ac_try="$ac_link"
28117 case "(($ac_try" in
28118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28119   *) ac_try_echo=$ac_try;;
28120 esac
28121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28122   (eval "$ac_link") 2>conftest.er1
28123   ac_status=$?
28124   grep -v '^ *+' conftest.er1 >conftest.err
28125   rm -f conftest.er1
28126   cat conftest.err >&5
28127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128   (exit $ac_status); } && {
28129          test -z "$ac_c_werror_flag" ||
28130          test ! -s conftest.err
28131        } && test -s conftest$ac_exeext &&
28132        $as_test_x conftest$ac_exeext; then
28133   ac_cv_func_crypt=yes
28134 else
28135   echo "$as_me: failed program was:" >&5
28136 sed 's/^/| /' conftest.$ac_ext >&5
28137
28138         ac_cv_func_crypt=no
28139 fi
28140
28141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28142       conftest$ac_exeext conftest.$ac_ext
28143 fi
28144 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28145 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28146 if test $ac_cv_func_crypt = yes; then
28147   :
28148 else
28149   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28150 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28151 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28152   echo $ECHO_N "(cached) $ECHO_C" >&6
28153 else
28154   ac_check_lib_save_LIBS=$LIBS
28155 LIBS="-lcrypt  $LIBS"
28156 cat >conftest.$ac_ext <<_ACEOF
28157 /* confdefs.h.  */
28158 _ACEOF
28159 cat confdefs.h >>conftest.$ac_ext
28160 cat >>conftest.$ac_ext <<_ACEOF
28161 /* end confdefs.h.  */
28162
28163 /* Override any GCC internal prototype to avoid an error.
28164    Use char because int might match the return type of a GCC
28165    builtin and then its argument prototype would still apply.  */
28166 #ifdef __cplusplus
28167 extern "C"
28168 #endif
28169 char crypt ();
28170 int
28171 main ()
28172 {
28173 return crypt ();
28174   ;
28175   return 0;
28176 }
28177 _ACEOF
28178 rm -f conftest.$ac_objext conftest$ac_exeext
28179 if { (ac_try="$ac_link"
28180 case "(($ac_try" in
28181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182   *) ac_try_echo=$ac_try;;
28183 esac
28184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28185   (eval "$ac_link") 2>conftest.er1
28186   ac_status=$?
28187   grep -v '^ *+' conftest.er1 >conftest.err
28188   rm -f conftest.er1
28189   cat conftest.err >&5
28190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191   (exit $ac_status); } && {
28192          test -z "$ac_c_werror_flag" ||
28193          test ! -s conftest.err
28194        } && test -s conftest$ac_exeext &&
28195        $as_test_x conftest$ac_exeext; then
28196   ac_cv_lib_crypt_crypt=yes
28197 else
28198   echo "$as_me: failed program was:" >&5
28199 sed 's/^/| /' conftest.$ac_ext >&5
28200
28201         ac_cv_lib_crypt_crypt=no
28202 fi
28203
28204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28205       conftest$ac_exeext conftest.$ac_ext
28206 LIBS=$ac_check_lib_save_LIBS
28207 fi
28208 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28209 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28210 if test $ac_cv_lib_crypt_crypt = yes; then
28211   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28212 fi
28213
28214 fi
28215
28216       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28217       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28218       SQL_BINDIR=$POSTGRESQL_BINDIR
28219       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28220
28221       db_found=yes
28222       support_postgresql=yes
28223       db_type=PostgreSQL
28224       DB_TYPE=postgresql
28225   else
28226       { echo "$as_me:$LINENO: result: no" >&5
28227 echo "${ECHO_T}no" >&6; }
28228   fi
28229
28230 else
28231
28232   { echo "$as_me:$LINENO: result: no" >&5
28233 echo "${ECHO_T}no" >&6; }
28234
28235 fi
28236
28237
28238
28239
28240
28241
28242
28243
28244 db_found=no
28245 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28246 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28247
28248 # Check whether --with-mysql was given.
28249 if test "${with_mysql+set}" = set; then
28250   withval=$with_mysql;
28251   if test "$withval" != "no"; then
28252         if test "$withval" = "yes"; then
28253            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28254                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28255                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28256                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28257                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28258                    else
28259                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28260                    fi
28261                    MYSQL_BINDIR=/usr/local/mysql/bin
28262            elif test -f /usr/include/mysql/mysql.h; then
28263                    MYSQL_INCDIR=/usr/include/mysql
28264                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28265                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28266                            MYSQL_LIBDIR=/usr/lib64/mysql
28267                    elif test -f /usr/lib64/libmysqlclient_r.a \
28268                         -o -f /usr/lib64/libmysqlclient_r.so; then
28269                            MYSQL_LIBDIR=/usr/lib64
28270                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28271                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28272                            MYSQL_LIBDIR=/usr/lib/mysql
28273                    else
28274                            MYSQL_LIBDIR=/usr/lib
28275                    fi
28276                    MYSQL_BINDIR=/usr/bin
28277            elif test -f /usr/include/mysql.h; then
28278                    MYSQL_INCDIR=/usr/include
28279                    if test -f /usr/lib64/libmysqlclient_r.a \
28280                         -o -f /usr/lib64/libmysqlclient_r.so; then
28281                            MYSQL_LIBDIR=/usr/lib64
28282                    else
28283                            MYSQL_LIBDIR=/usr/lib
28284                    fi
28285                    MYSQL_BINDIR=/usr/bin
28286            elif test -f /usr/local/include/mysql/mysql.h; then
28287                    MYSQL_INCDIR=/usr/local/include/mysql
28288                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28289                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28290                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28291                    else
28292                            MYSQL_LIBDIR=/usr/local/lib/mysql
28293                    fi
28294                    MYSQL_BINDIR=/usr/local/bin
28295            elif test -f /usr/local/include/mysql.h; then
28296                    MYSQL_INCDIR=/usr/local/include
28297                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28298                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28299                            MYSQL_LIBDIR=/usr/local/lib64
28300                    else
28301                            MYSQL_LIBDIR=/usr/local/lib
28302                    fi
28303                    MYSQL_BINDIR=/usr/local/bin
28304            else
28305               { echo "$as_me:$LINENO: result: no" >&5
28306 echo "${ECHO_T}no" >&6; }
28307               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28308 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28309    { (exit 1); exit 1; }; }
28310            fi
28311         else
28312            if test -f $withval/include/mysql/mysql.h; then
28313               MYSQL_INCDIR=$withval/include/mysql
28314               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28315                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28316                  MYSQL_LIBDIR=$withval/lib64/mysql
28317               elif test -f $withval/lib64/libmysqlclient_r.a \
28318                    -o -f $withval/lib64/libmysqlclient_r.so; then
28319                  MYSQL_LIBDIR=$withval/lib64
28320               elif test -f $withval/lib/libmysqlclient_r.a \
28321                    -o -f $withval/lib/libmysqlclient_r.so; then
28322                  MYSQL_LIBDIR=$withval/lib
28323               else
28324                  MYSQL_LIBDIR=$withval/lib/mysql
28325               fi
28326               MYSQL_BINDIR=$withval/bin
28327            elif test -f $withval/include/mysql.h; then
28328               MYSQL_INCDIR=$withval/include
28329               if test -f $withval/lib64/libmysqlclient_r.a \
28330                    -o -f $withval/lib64/libmysqlclient_r.so; then
28331                  MYSQL_LIBDIR=$withval/lib64
28332               else
28333                  MYSQL_LIBDIR=$withval/lib
28334               fi
28335               MYSQL_BINDIR=$withval/bin
28336            else
28337               { echo "$as_me:$LINENO: result: no" >&5
28338 echo "${ECHO_T}no" >&6; }
28339               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28340 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28341    { (exit 1); exit 1; }; }
28342            fi
28343         fi
28344     SQL_INCLUDE=-I$MYSQL_INCDIR
28345     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28346          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28347        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28348        cat >>confdefs.h <<\_ACEOF
28349 #define HAVE_THREAD_SAFE_MYSQL 1
28350 _ACEOF
28351
28352     fi
28353     SQL_BINDIR=$MYSQL_BINDIR
28354     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28355
28356
28357 cat >>confdefs.h <<\_ACEOF
28358 #define HAVE_MYSQL 1
28359 _ACEOF
28360
28361     { echo "$as_me:$LINENO: result: yes" >&5
28362 echo "${ECHO_T}yes" >&6; }
28363     db_found=yes
28364     support_mysql=yes
28365     db_type=MySQL
28366     DB_TYPE=mysql
28367
28368   else
28369         { echo "$as_me:$LINENO: result: no" >&5
28370 echo "${ECHO_T}no" >&6; }
28371   fi
28372
28373
28374 fi
28375
28376
28377
28378 # Check whether --with-embedded-mysql was given.
28379 if test "${with_embedded_mysql+set}" = set; then
28380   withval=$with_embedded_mysql;
28381   if test "$withval" != "no"; then
28382         if test "$withval" = "yes"; then
28383                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28384                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28385                         if test -d /usr/local/mysql/lib64/mysql; then
28386                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28387                         else
28388                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28389                         fi
28390                         MYSQL_BINDIR=/usr/local/mysql/bin
28391                 elif test -f /usr/include/mysql/mysql.h; then
28392                         MYSQL_INCDIR=/usr/include/mysql
28393                         if test -d /usr/lib64/mysql; then
28394                                 MYSQL_LIBDIR=/usr/lib64/mysql
28395                         else
28396                                 MYSQL_LIBDIR=/usr/lib/mysql
28397                         fi
28398                         MYSQL_BINDIR=/usr/bin
28399                 elif test -f /usr/include/mysql.h; then
28400                         MYSQL_INCDIR=/usr/include
28401                         if test -d /usr/lib64; then
28402                                 MYSQL_LIBDIR=/usr/lib64
28403                         else
28404                                 MYSQL_LIBDIR=/usr/lib
28405                         fi
28406                         MYSQL_BINDIR=/usr/bin
28407                 elif test -f /usr/local/include/mysql/mysql.h; then
28408                         MYSQL_INCDIR=/usr/local/include/mysql
28409                         if test -d /usr/local/lib64/mysql; then
28410                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28411                         else
28412                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28413                         fi
28414                         MYSQL_BINDIR=/usr/local/bin
28415                 elif test -f /usr/local/include/mysql.h; then
28416                         MYSQL_INCDIR=/usr/local/include
28417                         if test -d /usr/local/lib64; then
28418                                 MYSQL_LIBDIR=/usr/local/lib64
28419                         else
28420                                 MYSQL_LIBDIR=/usr/local/lib
28421                         fi
28422                         MYSQL_BINDIR=/usr/local/bin
28423                 else
28424                    { echo "$as_me:$LINENO: result: no" >&5
28425 echo "${ECHO_T}no" >&6; }
28426                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28427 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28428    { (exit 1); exit 1; }; }
28429                 fi
28430         else
28431                 if test -f $withval/include/mysql/mysql.h; then
28432                         MYSQL_INCDIR=$withval/include/mysql
28433                         if test -d $withval/lib64/mysql; then
28434                                 MYSQL_LIBDIR=$withval/lib64/mysql
28435                         else
28436                                 MYSQL_LIBDIR=$withval/lib/mysql
28437                         fi
28438                         MYSQL_BINDIR=$withval/bin
28439                 elif test -f $withval/include/mysql.h; then
28440                         MYSQL_INCDIR=$withval/include
28441                         if test -d $withval/lib64; then
28442                                 MYSQL_LIBDIR=$withval/lib64
28443                         else
28444                                 MYSQL_LIBDIR=$withval/lib
28445                         fi
28446                         MYSQL_BINDIR=$withval/bin
28447                 else
28448                    { echo "$as_me:$LINENO: result: no" >&5
28449 echo "${ECHO_T}no" >&6; }
28450                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28451 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28452    { (exit 1); exit 1; }; }
28453                 fi
28454         fi
28455     SQL_INCLUDE=-I$MYSQL_INCDIR
28456     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28457     SQL_BINDIR=$MYSQL_BINDIR
28458     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28459
28460     cat >>confdefs.h <<\_ACEOF
28461 #define HAVE_MYSQL 1
28462 _ACEOF
28463
28464     cat >>confdefs.h <<\_ACEOF
28465 #define HAVE_EMBEDDED_MYSQL 1
28466 _ACEOF
28467
28468     { echo "$as_me:$LINENO: result: yes" >&5
28469 echo "${ECHO_T}yes" >&6; }
28470     db_found=yes
28471     support_mysql=yes
28472     db_type=MySQL
28473     DB_TYPE=mysql
28474
28475   else
28476         { echo "$as_me:$LINENO: result: no" >&5
28477 echo "${ECHO_T}no" >&6; }
28478   fi
28479
28480
28481 fi
28482
28483
28484
28485
28486
28487
28488
28489
28490
28491
28492 db_found=no
28493 { echo "$as_me:$LINENO: checking for Ingres support" >&5
28494 echo $ECHO_N "checking for Ingres support... $ECHO_C" >&6; }
28495
28496 # Check whether --with-ingres was given.
28497 if test "${with_ingres+set}" = set; then
28498   withval=$with_ingres;
28499   if test "$withval" != "no"; then
28500      if test "$withval" = "yes"; then
28501         if test -f ${II_SYSTEM}/files/eqdefc.h; then
28502            INGRES_INCDIR=${II_SYSTEM}/files
28503            INGRES_LIBDIR=${II_SYSTEM}/lib
28504            INGRES_BINDIR=${II_SYSTEM}/bin
28505         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
28506            INGRES_INCDIR=${II_SYSTEM}/ingres/files
28507            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
28508            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
28509         else
28510            { echo "$as_me:$LINENO: result: no" >&5
28511 echo "${ECHO_T}no" >&6; }
28512            { { echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
28513 echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
28514    { (exit 1); exit 1; }; }
28515         fi
28516      else
28517         if test -f $withval/files/eqdefc.h; then
28518            INGRES_INCDIR=$withval/files
28519            INGRES_LIBDIR=$withval/lib
28520            INGRES_BINDIR=$withval/bin
28521         else
28522            { echo "$as_me:$LINENO: result: no" >&5
28523 echo "${ECHO_T}no" >&6; }
28524            { { echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&5
28525 echo "$as_me: error: Invalid Ingres directory $withval - unable to find Ingres headers under $withval" >&2;}
28526    { (exit 1); exit 1; }; }
28527         fi
28528      fi
28529      SQL_INCLUDE=-I$INGRES_INCDIR
28530      SQL_LFLAGS="-L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
28531      SQL_BINDIR=$INGRES_BINDIR
28532      SQL_LIB=$INGRES_LIBDIR/libingres.a
28533
28534 cat >>confdefs.h <<\_ACEOF
28535 #define HAVE_INGRES 1
28536 _ACEOF
28537
28538      { echo "$as_me:$LINENO: result: yes" >&5
28539 echo "${ECHO_T}yes" >&6; }
28540      db_found=yes
28541      support_ingres=yes
28542      db_type=Ingres
28543      DB_TYPE=ingres
28544
28545   else
28546      { echo "$as_me:$LINENO: result: no" >&5
28547 echo "${ECHO_T}no" >&6; }
28548   fi
28549
28550 else
28551
28552   { echo "$as_me:$LINENO: result: no" >&5
28553 echo "${ECHO_T}no" >&6; }
28554
28555 fi
28556
28557
28558
28559
28560
28561
28562
28563
28564 db_found=no
28565 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28566 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28567
28568 # Check whether --with-sqlite3 was given.
28569 if test "${with_sqlite3+set}" = set; then
28570   withval=$with_sqlite3;
28571   if test "$withval" != "no"; then
28572      if test "$withval" = "yes"; then
28573         if test -f /usr/local/include/sqlite3.h; then
28574            SQLITE_INCDIR=/usr/local/include
28575            if test -d /usr/local/lib64; then
28576               SQLITE_LIBDIR=/usr/local/lib64
28577            else
28578               SQLITE_LIBDIR=/usr/local/lib
28579            fi
28580            SQLITE_BINDIR=/usr/local/bin
28581         elif test -f /usr/include/sqlite3.h; then
28582            SQLITE_INCDIR=/usr/include
28583            if test -d /usr/lib64; then
28584               SQLITE_LIBDIR=/usr/lib64
28585            else
28586               SQLITE_LIBDIR=/usr/lib
28587            fi
28588            SQLITE_BINDIR=/usr/bin
28589         elif test -f $prefix/include/sqlite3.h; then
28590            SQLITE_INCDIR=$prefix/include
28591            if test -d $prefix/lib64; then
28592               SQLITE_LIBDIR=$prefix/lib64
28593            else
28594               SQLITE_LIBDIR=$prefix/lib
28595            fi
28596            SQLITE_BINDIR=$prefix/bin
28597         else
28598            { echo "$as_me:$LINENO: result: no" >&5
28599 echo "${ECHO_T}no" >&6; }
28600            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28601 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28602    { (exit 1); exit 1; }; }
28603         fi
28604      else
28605         if test -f $withval/sqlite3.h; then
28606            SQLITE_INCDIR=$withval
28607            SQLITE_LIBDIR=$withval
28608            SQLITE_BINDIR=$withval
28609         elif test -f $withval/include/sqlite3.h; then
28610            SQLITE_INCDIR=$withval/include
28611            if test -d $withval/lib64; then
28612               SQLITE_LIBDIR=$withval/lib64
28613            else
28614               SQLITE_LIBDIR=$withval/lib
28615            fi
28616            SQLITE_BINDIR=$withval/bin
28617         else
28618            { echo "$as_me:$LINENO: result: no" >&5
28619 echo "${ECHO_T}no" >&6; }
28620            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28621 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28622    { (exit 1); exit 1; }; }
28623         fi
28624      fi
28625      SQL_INCLUDE=-I$SQLITE_INCDIR
28626      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28627      SQL_BINDIR=$SQLITE_BINDIR
28628      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28629
28630      cat >>confdefs.h <<\_ACEOF
28631 #define HAVE_SQLITE3 1
28632 _ACEOF
28633
28634      { echo "$as_me:$LINENO: result: yes" >&5
28635 echo "${ECHO_T}yes" >&6; }
28636      db_found=yes
28637      support_sqlite3=yes
28638      db_type=SQLite3
28639      DB_TYPE=sqlite3
28640
28641   else
28642      { echo "$as_me:$LINENO: result: no" >&5
28643 echo "${ECHO_T}no" >&6; }
28644   fi
28645
28646 else
28647
28648   { echo "$as_me:$LINENO: result: no" >&5
28649 echo "${ECHO_T}no" >&6; }
28650
28651 fi
28652
28653
28654
28655
28656
28657
28658
28659 # BA_CHECK_SQLITE_DB
28660
28661
28662 db_found=no
28663 { echo "$as_me:$LINENO: checking for DBI support" >&5
28664 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28665
28666 # Check whether --with-dbi was given.
28667 if test "${with_dbi+set}" = set; then
28668   withval=$with_dbi;
28669   if test "$withval" != "no"; then
28670      if test "$withval" = "yes"; then
28671         if test -f /usr/local/include/dbi/dbi.h; then
28672            DBI_INCDIR=/usr/local/dbi/include
28673            if test -d /usr/local/lib64; then
28674               DBI_LIBDIR=/usr/local/lib64
28675            else
28676               DBI_LIBDIR=/usr/local/lib
28677            fi
28678            DBI_BINDIR=/usr/local/bin
28679         elif test -f /usr/include/dbi/dbi.h; then
28680            DBI_INCDIR=/usr/include
28681            if test -d /usr/lib64; then
28682               DBI_LIBDIR=/usr/lib64
28683            else
28684               DBI_LIBDIR=/usr/lib
28685            fi
28686            DBI_BINDIR=/usr/bin
28687         elif test -f $prefix/include/dbi/dbi.h; then
28688            DBI_INCDIR=$prefix/include
28689            if test -d $prefix/lib64; then
28690               DBI_LIBDIR=$prefix/lib64
28691            else
28692               DBI_LIBDIR=$prefix/lib
28693            fi
28694            DBI_BINDIR=$prefix/bin
28695         else
28696            { echo "$as_me:$LINENO: result: no" >&5
28697 echo "${ECHO_T}no" >&6; }
28698            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28699 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28700    { (exit 1); exit 1; }; }
28701         fi
28702         if test -d /usr/local/lib/dbd; then
28703            DRIVERDIR=/usr/local/lib/dbd
28704            if test -d /usr/local/lib64/dbd; then
28705               DRIVERDIR=/usr/local/lib64/dbd
28706            else
28707               DRIVERDIR=/usr/local/lib/dbd
28708            fi
28709         elif test -d /usr/lib/dbd; then
28710            DRIVERDIR=/usr/lib/dbd
28711            if test -d /usr/lib64/dbd; then
28712               DRIVERDIR=/usr/lib64/dbd
28713            else
28714               DRIVERDIR=/usr/lib/dbd
28715            fi
28716         elif test -d $prefix/lib/dbd; then
28717            if test -d $prefix/lib64/dbd; then
28718               DRIVERDIR=$prefix/lib64/dbd
28719            else
28720               DRIVERDIR=$prefix/lib/dbd
28721            fi
28722         elif test -d /usr/local/lib64/dbd; then
28723            DRIVERDIR=/usr/local/lib64/dbd
28724         elif test -d /usr/lib64/dbd; then
28725            DRIVERDIR=/usr/lib64/dbd
28726         elif test -d $prefix/lib64/dbd; then
28727            DRIVERDIR=$prefix/lib64/dbd
28728         else
28729            { echo "$as_me:$LINENO: result: no" >&5
28730 echo "${ECHO_T}no" >&6; }
28731            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28732 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28733    { (exit 1); exit 1; }; }
28734         fi
28735      else
28736         if test -f $withval/dbi.h; then
28737            DBI_INCDIR=$withval
28738            DBI_LIBDIR=$withval
28739            DBI_BINDIR=$withval
28740         elif test -f $withval/include/dbi/dbi.h; then
28741            DBI_INCDIR=$withval/include
28742            if test -d $withval/lib64; then
28743               DBI_LIBDIR=$withval/lib64
28744            else
28745               DBI_LIBDIR=$withval/lib
28746            fi
28747            DBI_BINDIR=$withval/bin
28748         else
28749            { echo "$as_me:$LINENO: result: no" >&5
28750 echo "${ECHO_T}no" >&6; }
28751            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28752 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28753    { (exit 1); exit 1; }; }
28754         fi
28755         if test -d $withval/dbd; then
28756            DRIVERDIR=$withval/dbd
28757         elif test -d $withval/lib/; then
28758            if test -d $withval/lib64/dbd; then
28759               DRIVERDIR=$withval/lib64/dbd
28760            else
28761               DRIVERDIR=$withval/lib/dbd
28762            fi
28763         elif test -d $withval/lib64/dbd; then
28764            DRIVERDIR=$withval/lib64/dbd
28765         else
28766            { echo "$as_me:$LINENO: result: no" >&5
28767 echo "${ECHO_T}no" >&6; }
28768            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28769 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28770    { (exit 1); exit 1; }; }
28771         fi
28772      fi
28773      SQL_INCLUDE=-I$DBI_INCDIR
28774      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28775      SQL_BINDIR=$DBI_BINDIR
28776      SQL_LIB=$DBI_LIBDIR/libdbi.a
28777      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28778
28779
28780 cat >>confdefs.h <<\_ACEOF
28781 #define HAVE_DBI 1
28782 _ACEOF
28783
28784      { echo "$as_me:$LINENO: result: yes" >&5
28785 echo "${ECHO_T}yes" >&6; }
28786      db_found=yes
28787      support_dbi=yes
28788      db_type=DBI
28789      DB_TYPE=dbi
28790      uncomment_dbi=" "
28791
28792   else
28793      { echo "$as_me:$LINENO: result: no" >&5
28794 echo "${ECHO_T}no" >&6; }
28795   fi
28796
28797 else
28798
28799   { echo "$as_me:$LINENO: result: no" >&5
28800 echo "${ECHO_T}no" >&6; }
28801
28802 fi
28803
28804
28805
28806
28807
28808
28809
28810
28811
28812
28813 db_found=no
28814 db_prog=no
28815 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28816 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28817
28818 # Check whether --with-dbi-driver was given.
28819 if test "${with_dbi_driver+set}" = set; then
28820   withval=$with_dbi_driver;
28821   if test "$withval" != "no"; then
28822      case $withval in
28823         "mysql")
28824            db_prog="mysql"
28825            if test -f /usr/local/mysql/bin/mysql; then
28826               SQL_BINDIR=/usr/local/mysql/bin
28827               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28828                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28829                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28830               else
28831                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28832               fi
28833            elif test -f /usr/bin/mysql; then
28834               SQL_BINDIR=/usr/bin
28835               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28836                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28837                   SQL_LIBDIR=/usr/lib64/mysql
28838               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28839                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28840                   SQL_LIBDIR=/usr/lib/mysql
28841               else
28842                   SQL_LIBDIR=/usr/lib
28843               fi
28844            elif test -f /usr/local/bin/mysql; then
28845               SQL_BINDIR=/usr/local/bin
28846               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28847                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28848                   SQL_LIBDIR=/usr/local/lib64/mysql
28849               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28850                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28851                   SQL_LIBDIR=/usr/local/lib/mysql
28852               else
28853                   SQL_LIBDIR=/usr/local/lib
28854               fi
28855            elif test -f $withval/bin/mysql; then
28856               SQL_BINDIR=$withval/bin
28857               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28858                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28859                   SQL_LIBDIR=$withval/lib64/mysql
28860               elif test -f $withval/lib64/libmysqlclient_r.a \
28861                   -o -f $withval/lib64/libmysqlclient_r.so; then
28862                   SQL_LIBDIR=$withval/lib64
28863               elif test -f $withval/lib/libmysqlclient_r.a \
28864                   -o -f $withval/lib/libmysqlclient_r.so; then
28865                   SQL_LIBDIR=$withval/lib/
28866               else
28867                   SQL_LIBDIR=$withval/lib/mysql
28868               fi
28869            else
28870               { echo "$as_me:$LINENO: result: no" >&5
28871 echo "${ECHO_T}no" >&6; }
28872               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28873 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28874    { (exit 1); exit 1; }; }
28875            fi
28876            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28877               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28878            else
28879               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28880            fi
28881         ;;
28882         "postgresql")
28883            db_prog="postgresql"
28884            PG_CONFIG=`which pg_config`
28885            if test -n "$PG_CONFIG"; then
28886               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28887               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28888            elif test -f /usr/local/bin/psql; then
28889               SQL_BINDIR=/usr/local/bin
28890               if test -d /usr/local/lib64; then
28891                  SQL_LIBDIR=/usr/local/lib64
28892               else
28893                  SQL_LIBDIR=/usr/local/lib
28894               fi
28895            elif test -f /usr/bin/psql; then
28896               SQL_BINDIR=/usr/local/bin
28897               if test -d /usr/lib64/postgresql; then
28898                  SQL_LIBDIR=/usr/lib64/postgresql
28899               elif test -d /usr/lib/postgresql; then
28900                  SQL_LIBDIR=/usr/lib/postgresql
28901               elif test -d /usr/lib64; then
28902                  SQL_LIBDIR=/usr/lib64
28903               else
28904                  SQL_LIBDIR=/usr/lib
28905               fi
28906            elif test -f $withval/bin/psql; then
28907               SQL_BINDIR=$withval/bin
28908               if test -d $withval/lib64; then
28909                  SQL_LIBDIR=$withval/lib64
28910               else
28911                  SQL_LIBDIR=$withval/lib
28912               fi
28913            else
28914               { echo "$as_me:$LINENO: result: no" >&5
28915 echo "${ECHO_T}no" >&6; }
28916               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28917 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28918    { (exit 1); exit 1; }; }
28919            fi
28920            if test -f $SQL_LIBDIR/libpq.so; then
28921               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28922            else
28923               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28924            fi
28925         ;;
28926         "sqlite")
28927            db_prog="sqlite"
28928            if test -f /usr/local/bin/sqlite; then
28929               SQL_BINDIR=/usr/local/bin
28930               if test -d /usr/local/lib64; then
28931                  SQL_LIBDIR=/usr/local/lib64
28932               else
28933                  SQL_LIBDIR=/usr/local/lib
28934               fi
28935            elif test -f /usr/bin/sqlite; then
28936               SQL_BINDIR=/usr/bin
28937               if test -d /usr/lib64; then
28938                  SQL_LIBDIR=/usr/lib64
28939               else
28940                  SQL_LIBDIR=/usr/lib
28941               fi
28942            elif test -f $withval/bin/sqlite; then
28943               SQL_BINDIR=$withval/bin
28944               if test -d $withval/lib64; then
28945                  SQL_LIBDIR=$withval/lib64
28946               else
28947                  SQL_LIBDIR=$withval/lib
28948               fi
28949            else
28950               { echo "$as_me:$LINENO: result: no" >&5
28951 echo "${ECHO_T}no" >&6; }
28952               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28953 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28954    { (exit 1); exit 1; }; }
28955            fi
28956            if test -f $SQL_LIBDIR/libsqlite.so; then
28957               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28958            else
28959               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28960            fi
28961         ;;
28962         "sqlite3")
28963            db_prog="sqlite3"
28964            if test -f /usr/local/bin/sqlite3; then
28965               SQL_BINDIR=/usr/local/bin
28966               if test -d /usr/local/lib64; then
28967                  SQL_LIBDIR=/usr/local/lib64
28968               else
28969                  SQL_LIBDIR=/usr/local/lib
28970               fi
28971            elif test -f /usr/bin/sqlite3; then
28972               SQL_BINDIR=/usr/bin
28973               if test -d /usr/lib64; then
28974                  SQL_LIBDIR=/usr/lib64
28975               else
28976                  SQL_LIBDIR=/usr/lib
28977               fi
28978            elif test -f $withval/bin/sqlite3; then
28979               SQL_BINDIR=$withval/bin
28980               if test -d $withval/lib64; then
28981                  SQL_LIBDIR=$withval/lib64
28982               else
28983                  SQL_LIBDIR=$withval/lib
28984               fi
28985            else
28986               { echo "$as_me:$LINENO: result: no" >&5
28987 echo "${ECHO_T}no" >&6; }
28988               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28989 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28990    { (exit 1); exit 1; }; }
28991            fi
28992            if test -f $SQL_LIBDIR/libsqlite3.so; then
28993               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28994            else
28995               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28996            fi
28997         ;;
28998         *)
28999            { echo "$as_me:$LINENO: result: no" >&5
29000 echo "${ECHO_T}no" >&6; }
29001            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
29002 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
29003    { (exit 1); exit 1; }; }
29004         ;;
29005      esac
29006
29007      { echo "$as_me:$LINENO: result: yes" >&5
29008 echo "${ECHO_T}yes" >&6; }
29009      DB_PROG=$db_prog
29010   else
29011      { echo "$as_me:$LINENO: result: no" >&5
29012 echo "${ECHO_T}no" >&6; }
29013   fi
29014
29015 else
29016
29017   { echo "$as_me:$LINENO: result: no" >&5
29018 echo "${ECHO_T}no" >&6; }
29019
29020 fi
29021
29022
29023
29024
29025
29026
29027
29028
29029
29030
29031 support_batch_insert=no
29032 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
29033 pkg=$?
29034 if test $pkg = 0; then
29035    support_batch_insert=yes
29036    # Check whether --enable-batch-insert was given.
29037 if test "${enable_batch_insert+set}" = set; then
29038   enableval=$enable_batch_insert;
29039           if test x$enableval = xno; then
29040              support_batch_insert=no
29041           else
29042              support_batch_insert=yes
29043           fi
29044
29045
29046 fi
29047
29048 fi
29049
29050 if test x$DB_TYPE = xpostgresql; then
29051    { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29052 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29053 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29054   echo $ECHO_N "(cached) $ECHO_C" >&6
29055 else
29056   ac_check_lib_save_LIBS=$LIBS
29057 LIBS="-lpq  $LIBS"
29058 cat >conftest.$ac_ext <<_ACEOF
29059 /* confdefs.h.  */
29060 _ACEOF
29061 cat confdefs.h >>conftest.$ac_ext
29062 cat >>conftest.$ac_ext <<_ACEOF
29063 /* end confdefs.h.  */
29064
29065 /* Override any GCC internal prototype to avoid an error.
29066    Use char because int might match the return type of a GCC
29067    builtin and then its argument prototype would still apply.  */
29068 #ifdef __cplusplus
29069 extern "C"
29070 #endif
29071 char PQisthreadsafe ();
29072 int
29073 main ()
29074 {
29075 return PQisthreadsafe ();
29076   ;
29077   return 0;
29078 }
29079 _ACEOF
29080 rm -f conftest.$ac_objext conftest$ac_exeext
29081 if { (ac_try="$ac_link"
29082 case "(($ac_try" in
29083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084   *) ac_try_echo=$ac_try;;
29085 esac
29086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087   (eval "$ac_link") 2>conftest.er1
29088   ac_status=$?
29089   grep -v '^ *+' conftest.er1 >conftest.err
29090   rm -f conftest.er1
29091   cat conftest.err >&5
29092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093   (exit $ac_status); } && {
29094          test -z "$ac_c_werror_flag" ||
29095          test ! -s conftest.err
29096        } && test -s conftest$ac_exeext &&
29097        $as_test_x conftest$ac_exeext; then
29098   ac_cv_lib_pq_PQisthreadsafe=yes
29099 else
29100   echo "$as_me: failed program was:" >&5
29101 sed 's/^/| /' conftest.$ac_ext >&5
29102
29103         ac_cv_lib_pq_PQisthreadsafe=no
29104 fi
29105
29106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29107       conftest$ac_exeext conftest.$ac_ext
29108 LIBS=$ac_check_lib_save_LIBS
29109 fi
29110 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29111 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29112 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29113
29114 cat >>confdefs.h <<\_ACEOF
29115 #define HAVE_PQISTHREADSAFE 1
29116 _ACEOF
29117
29118 fi
29119
29120    { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29121 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29122 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29123   echo $ECHO_N "(cached) $ECHO_C" >&6
29124 else
29125   ac_check_lib_save_LIBS=$LIBS
29126 LIBS="-lpq  $LIBS"
29127 cat >conftest.$ac_ext <<_ACEOF
29128 /* confdefs.h.  */
29129 _ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h.  */
29133
29134 /* Override any GCC internal prototype to avoid an error.
29135    Use char because int might match the return type of a GCC
29136    builtin and then its argument prototype would still apply.  */
29137 #ifdef __cplusplus
29138 extern "C"
29139 #endif
29140 char PQputCopyData ();
29141 int
29142 main ()
29143 {
29144 return PQputCopyData ();
29145   ;
29146   return 0;
29147 }
29148 _ACEOF
29149 rm -f conftest.$ac_objext conftest$ac_exeext
29150 if { (ac_try="$ac_link"
29151 case "(($ac_try" in
29152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153   *) ac_try_echo=$ac_try;;
29154 esac
29155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156   (eval "$ac_link") 2>conftest.er1
29157   ac_status=$?
29158   grep -v '^ *+' conftest.er1 >conftest.err
29159   rm -f conftest.er1
29160   cat conftest.err >&5
29161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162   (exit $ac_status); } && {
29163          test -z "$ac_c_werror_flag" ||
29164          test ! -s conftest.err
29165        } && test -s conftest$ac_exeext &&
29166        $as_test_x conftest$ac_exeext; then
29167   ac_cv_lib_pq_PQputCopyData=yes
29168 else
29169   echo "$as_me: failed program was:" >&5
29170 sed 's/^/| /' conftest.$ac_ext >&5
29171
29172         ac_cv_lib_pq_PQputCopyData=no
29173 fi
29174
29175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29176       conftest$ac_exeext conftest.$ac_ext
29177 LIBS=$ac_check_lib_save_LIBS
29178 fi
29179 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29180 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29181 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29182
29183 cat >>confdefs.h <<\_ACEOF
29184 #define HAVE_PQ_COPY 1
29185 _ACEOF
29186
29187 fi
29188
29189    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29190     then
29191         support_batch_insert=no
29192    fi
29193 fi
29194
29195 if test x$DB_TYPE = xdbi; then
29196    DB_TYPE=$DB_PROG
29197    db_type=$DB_PROG
29198    pkg=1
29199       if test $DB_PROG = postgresql; then
29200       { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29201 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29202 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29203   echo $ECHO_N "(cached) $ECHO_C" >&6
29204 else
29205   ac_check_lib_save_LIBS=$LIBS
29206 LIBS="-lpq  $LIBS"
29207 cat >conftest.$ac_ext <<_ACEOF
29208 /* confdefs.h.  */
29209 _ACEOF
29210 cat confdefs.h >>conftest.$ac_ext
29211 cat >>conftest.$ac_ext <<_ACEOF
29212 /* end confdefs.h.  */
29213
29214 /* Override any GCC internal prototype to avoid an error.
29215    Use char because int might match the return type of a GCC
29216    builtin and then its argument prototype would still apply.  */
29217 #ifdef __cplusplus
29218 extern "C"
29219 #endif
29220 char PQisthreadsafe ();
29221 int
29222 main ()
29223 {
29224 return PQisthreadsafe ();
29225   ;
29226   return 0;
29227 }
29228 _ACEOF
29229 rm -f conftest.$ac_objext conftest$ac_exeext
29230 if { (ac_try="$ac_link"
29231 case "(($ac_try" in
29232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29233   *) ac_try_echo=$ac_try;;
29234 esac
29235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29236   (eval "$ac_link") 2>conftest.er1
29237   ac_status=$?
29238   grep -v '^ *+' conftest.er1 >conftest.err
29239   rm -f conftest.er1
29240   cat conftest.err >&5
29241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242   (exit $ac_status); } && {
29243          test -z "$ac_c_werror_flag" ||
29244          test ! -s conftest.err
29245        } && test -s conftest$ac_exeext &&
29246        $as_test_x conftest$ac_exeext; then
29247   ac_cv_lib_pq_PQisthreadsafe=yes
29248 else
29249   echo "$as_me: failed program was:" >&5
29250 sed 's/^/| /' conftest.$ac_ext >&5
29251
29252         ac_cv_lib_pq_PQisthreadsafe=no
29253 fi
29254
29255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29256       conftest$ac_exeext conftest.$ac_ext
29257 LIBS=$ac_check_lib_save_LIBS
29258 fi
29259 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29260 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29261 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29262   cat >>confdefs.h <<\_ACEOF
29263 #define HAVE_PQISTHREADSAFE 1
29264 _ACEOF
29265
29266 fi
29267
29268       { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29269 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29270 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29271   echo $ECHO_N "(cached) $ECHO_C" >&6
29272 else
29273   ac_check_lib_save_LIBS=$LIBS
29274 LIBS="-lpq  $LIBS"
29275 cat >conftest.$ac_ext <<_ACEOF
29276 /* confdefs.h.  */
29277 _ACEOF
29278 cat confdefs.h >>conftest.$ac_ext
29279 cat >>conftest.$ac_ext <<_ACEOF
29280 /* end confdefs.h.  */
29281
29282 /* Override any GCC internal prototype to avoid an error.
29283    Use char because int might match the return type of a GCC
29284    builtin and then its argument prototype would still apply.  */
29285 #ifdef __cplusplus
29286 extern "C"
29287 #endif
29288 char PQputCopyData ();
29289 int
29290 main ()
29291 {
29292 return PQputCopyData ();
29293   ;
29294   return 0;
29295 }
29296 _ACEOF
29297 rm -f conftest.$ac_objext conftest$ac_exeext
29298 if { (ac_try="$ac_link"
29299 case "(($ac_try" in
29300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301   *) ac_try_echo=$ac_try;;
29302 esac
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304   (eval "$ac_link") 2>conftest.er1
29305   ac_status=$?
29306   grep -v '^ *+' conftest.er1 >conftest.err
29307   rm -f conftest.er1
29308   cat conftest.err >&5
29309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310   (exit $ac_status); } && {
29311          test -z "$ac_c_werror_flag" ||
29312          test ! -s conftest.err
29313        } && test -s conftest$ac_exeext &&
29314        $as_test_x conftest$ac_exeext; then
29315   ac_cv_lib_pq_PQputCopyData=yes
29316 else
29317   echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29319
29320         ac_cv_lib_pq_PQputCopyData=no
29321 fi
29322
29323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29324       conftest$ac_exeext conftest.$ac_ext
29325 LIBS=$ac_check_lib_save_LIBS
29326 fi
29327 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29328 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29329 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29330   cat >>confdefs.h <<\_ACEOF
29331 #define HAVE_PQ_COPY 1
29332 _ACEOF
29333
29334 fi
29335
29336       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29337       pkg=$?
29338    fi
29339
29340    if test $DB_PROG = mysql; then
29341       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29342       pkg=$?
29343    fi
29344
29345    if test $DB_PROG = sqlite3; then
29346       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29347       pkg=$?
29348       { echo "$as_me:$LINENO: checking for sqlite3_threadsafe in -lsqlite3" >&5
29349 echo $ECHO_N "checking for sqlite3_threadsafe in -lsqlite3... $ECHO_C" >&6; }
29350 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then
29351   echo $ECHO_N "(cached) $ECHO_C" >&6
29352 else
29353   ac_check_lib_save_LIBS=$LIBS
29354 LIBS="-lsqlite3  $LIBS"
29355 cat >conftest.$ac_ext <<_ACEOF
29356 /* confdefs.h.  */
29357 _ACEOF
29358 cat confdefs.h >>conftest.$ac_ext
29359 cat >>conftest.$ac_ext <<_ACEOF
29360 /* end confdefs.h.  */
29361
29362 /* Override any GCC internal prototype to avoid an error.
29363    Use char because int might match the return type of a GCC
29364    builtin and then its argument prototype would still apply.  */
29365 #ifdef __cplusplus
29366 extern "C"
29367 #endif
29368 char sqlite3_threadsafe ();
29369 int
29370 main ()
29371 {
29372 return sqlite3_threadsafe ();
29373   ;
29374   return 0;
29375 }
29376 _ACEOF
29377 rm -f conftest.$ac_objext conftest$ac_exeext
29378 if { (ac_try="$ac_link"
29379 case "(($ac_try" in
29380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29381   *) ac_try_echo=$ac_try;;
29382 esac
29383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29384   (eval "$ac_link") 2>conftest.er1
29385   ac_status=$?
29386   grep -v '^ *+' conftest.er1 >conftest.err
29387   rm -f conftest.er1
29388   cat conftest.err >&5
29389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390   (exit $ac_status); } && {
29391          test -z "$ac_c_werror_flag" ||
29392          test ! -s conftest.err
29393        } && test -s conftest$ac_exeext &&
29394        $as_test_x conftest$ac_exeext; then
29395   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
29396 else
29397   echo "$as_me: failed program was:" >&5
29398 sed 's/^/| /' conftest.$ac_ext >&5
29399
29400         ac_cv_lib_sqlite3_sqlite3_threadsafe=no
29401 fi
29402
29403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29404       conftest$ac_exeext conftest.$ac_ext
29405 LIBS=$ac_check_lib_save_LIBS
29406 fi
29407 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
29408 echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
29409 if test $ac_cv_lib_sqlite3_sqlite3_threadsafe = yes; then
29410
29411 cat >>confdefs.h <<\_ACEOF
29412 #define HAVE_SQLITE3_THREADSAFE 1
29413 _ACEOF
29414
29415 fi
29416
29417    fi
29418
29419    if test $pkg = 0; then
29420       # Check whether --enable-batch-insert was given.
29421 if test "${enable_batch_insert+set}" = set; then
29422   enableval=$enable_batch_insert;
29423              if test x$enableval = xno; then
29424                 support_batch_insert=no
29425              else
29426                 support_batch_insert=yes
29427              fi
29428
29429
29430 fi
29431
29432    fi
29433 else
29434       uncomment_dbi="#"
29435 fi
29436
29437
29438
29439 if test x$DB_TYPE = xingres; then
29440    support_batch_insert=yes
29441 fi
29442
29443 if test $support_batch_insert = yes ; then
29444
29445 cat >>confdefs.h <<\_ACEOF
29446 #define HAVE_BATCH_FILE_INSERT 1
29447 _ACEOF
29448
29449 fi
29450
29451 cat >>confdefs.h <<\_ACEOF
29452 #define PROTOTYPES 1
29453 _ACEOF
29454
29455
29456 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29457    if test -z "$CCOPTS"; then
29458       CCOPTS='-g -O2 -Wall'
29459    fi
29460    CFLAGS="$CCOPTS"
29461 fi
29462
29463
29464
29465 largefile_support="no"
29466
29467    # Check whether --enable-largefile was given.
29468 if test "${enable_largefile+set}" = set; then
29469   enableval=$enable_largefile;
29470 fi
29471
29472    if test "$enable_largefile" != no; then
29473      if test -n "$ac_tool_prefix"; then
29474   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29475 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29478 if test "${ac_cv_prog_GETCONF+set}" = set; then
29479   echo $ECHO_N "(cached) $ECHO_C" >&6
29480 else
29481   if test -n "$GETCONF"; then
29482   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29483 else
29484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29485 for as_dir in $PATH
29486 do
29487   IFS=$as_save_IFS
29488   test -z "$as_dir" && as_dir=.
29489   for ac_exec_ext in '' $ac_executable_extensions; do
29490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29491     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29493     break 2
29494   fi
29495 done
29496 done
29497 IFS=$as_save_IFS
29498
29499 fi
29500 fi
29501 GETCONF=$ac_cv_prog_GETCONF
29502 if test -n "$GETCONF"; then
29503   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29504 echo "${ECHO_T}$GETCONF" >&6; }
29505 else
29506   { echo "$as_me:$LINENO: result: no" >&5
29507 echo "${ECHO_T}no" >&6; }
29508 fi
29509
29510
29511 fi
29512 if test -z "$ac_cv_prog_GETCONF"; then
29513   ac_ct_GETCONF=$GETCONF
29514   # Extract the first word of "getconf", so it can be a program name with args.
29515 set dummy getconf; ac_word=$2
29516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29518 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29519   echo $ECHO_N "(cached) $ECHO_C" >&6
29520 else
29521   if test -n "$ac_ct_GETCONF"; then
29522   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29523 else
29524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29525 for as_dir in $PATH
29526 do
29527   IFS=$as_save_IFS
29528   test -z "$as_dir" && as_dir=.
29529   for ac_exec_ext in '' $ac_executable_extensions; do
29530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29531     ac_cv_prog_ac_ct_GETCONF="getconf"
29532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29533     break 2
29534   fi
29535 done
29536 done
29537 IFS=$as_save_IFS
29538
29539 fi
29540 fi
29541 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29542 if test -n "$ac_ct_GETCONF"; then
29543   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29544 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29545 else
29546   { echo "$as_me:$LINENO: result: no" >&5
29547 echo "${ECHO_T}no" >&6; }
29548 fi
29549
29550   if test "x$ac_ct_GETCONF" = x; then
29551     GETCONF=""
29552   else
29553     case $cross_compiling:$ac_tool_warned in
29554 yes:)
29555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29556 whose name does not start with the host triplet.  If you think this
29557 configuration is useful to you, please write to autoconf@gnu.org." >&5
29558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29559 whose name does not start with the host triplet.  If you think this
29560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29561 ac_tool_warned=yes ;;
29562 esac
29563     GETCONF=$ac_ct_GETCONF
29564   fi
29565 else
29566   GETCONF="$ac_cv_prog_GETCONF"
29567 fi
29568
29569      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29570 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29571 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29572   echo $ECHO_N "(cached) $ECHO_C" >&6
29573 else
29574   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29575         ac_cv_sys_largefile_CFLAGS=no
29576         case "$host_os" in
29577            # IRIX 6.2 and later require cc -n32.
29578            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29579              if test "$GCC" != yes; then
29580                ac_cv_sys_largefile_CFLAGS=-n32
29581              fi
29582              ac_save_CC="$CC"
29583              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29584              cat >conftest.$ac_ext <<_ACEOF
29585 /* confdefs.h.  */
29586 _ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h.  */
29590
29591 int
29592 main ()
29593 {
29594
29595   ;
29596   return 0;
29597 }
29598 _ACEOF
29599 rm -f conftest.$ac_objext conftest$ac_exeext
29600 if { (ac_try="$ac_link"
29601 case "(($ac_try" in
29602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603   *) ac_try_echo=$ac_try;;
29604 esac
29605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29606   (eval "$ac_link") 2>conftest.er1
29607   ac_status=$?
29608   grep -v '^ *+' conftest.er1 >conftest.err
29609   rm -f conftest.er1
29610   cat conftest.err >&5
29611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612   (exit $ac_status); } && {
29613          test -z "$ac_c_werror_flag" ||
29614          test ! -s conftest.err
29615        } && test -s conftest$ac_exeext &&
29616        $as_test_x conftest$ac_exeext; then
29617   :
29618 else
29619   echo "$as_me: failed program was:" >&5
29620 sed 's/^/| /' conftest.$ac_ext >&5
29621
29622         ac_cv_sys_largefile_CFLAGS=no
29623 fi
29624
29625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29626       conftest$ac_exeext conftest.$ac_ext
29627              CC="$ac_save_CC"
29628            esac
29629       }
29630 fi
29631 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29632 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29633      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29634 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29635 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29636   echo $ECHO_N "(cached) $ECHO_C" >&6
29637 else
29638   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29639         ac_cv_sys_largefile_LDFLAGS=no
29640
29641       }
29642 fi
29643 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29644 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29645      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29646 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29647 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29648   echo $ECHO_N "(cached) $ECHO_C" >&6
29649 else
29650   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29651         ac_cv_sys_largefile_LIBS=no
29652
29653       }
29654 fi
29655 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29656 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29657
29658      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29659        case "$ac_flag" in
29660        no) ;;
29661        -D_FILE_OFFSET_BITS=*) ;;
29662        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29663        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29664        -D?* | -I?*)
29665          case "$ac_flag" in
29666    no) ;;
29667    ?*)
29668      case "$CPPFLAGS" in
29669      '') CPPFLAGS="$ac_flag" ;;
29670      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29671      esac ;;
29672    esac ;;
29673        *)
29674          case "$ac_flag" in
29675    no) ;;
29676    ?*)
29677      case "$CFLAGS" in
29678      '') CFLAGS="$ac_flag" ;;
29679      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29680      esac ;;
29681    esac ;;
29682        esac
29683      done
29684      case "$ac_cv_sys_largefile_LDFLAGS" in
29685    no) ;;
29686    ?*)
29687      case "$LDFLAGS" in
29688      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29689      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29690      esac ;;
29691    esac
29692      case "$ac_cv_sys_largefile_LIBS" in
29693    no) ;;
29694    ?*)
29695      case "$LIBS" in
29696      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29697      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29698      esac ;;
29699    esac
29700      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29701 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29702 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29703   echo $ECHO_N "(cached) $ECHO_C" >&6
29704 else
29705   ac_cv_sys_file_offset_bits=no
29706       ac_cv_sys_file_offset_bits=64
29707       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29708         case "$ac_flag" in
29709         -D_FILE_OFFSET_BITS)
29710           ac_cv_sys_file_offset_bits=1 ;;
29711         -D_FILE_OFFSET_BITS=*)
29712           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29713         esac
29714       done
29715
29716 fi
29717 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29718 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29719    if test "$ac_cv_sys_file_offset_bits" != no; then
29720
29721 cat >>confdefs.h <<_ACEOF
29722 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29723 _ACEOF
29724
29725    fi
29726      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29727 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29728 if test "${ac_cv_sys_largefile_source+set}" = set; then
29729   echo $ECHO_N "(cached) $ECHO_C" >&6
29730 else
29731   ac_cv_sys_largefile_source=no
29732       ac_cv_sys_largefile_source=1
29733       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29734         case "$ac_flag" in
29735         -D_LARGEFILE_SOURCE)
29736           ac_cv_sys_largefile_source=1 ;;
29737         -D_LARGEFILE_SOURCE=*)
29738           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29739         esac
29740       done
29741
29742 fi
29743 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29744 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29745    if test "$ac_cv_sys_largefile_source" != no; then
29746
29747 cat >>confdefs.h <<_ACEOF
29748 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29749 _ACEOF
29750
29751    fi
29752      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29753 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29754 if test "${ac_cv_sys_large_files+set}" = set; then
29755   echo $ECHO_N "(cached) $ECHO_C" >&6
29756 else
29757   ac_cv_sys_large_files=no
29758       ac_cv_sys_large_files=1
29759       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29760         case "$ac_flag" in
29761         -D_LARGE_FILES)
29762           ac_cv_sys_large_files=1 ;;
29763         -D_LARGE_FILES=*)
29764           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29765         esac
29766       done
29767
29768 fi
29769 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29770 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29771    if test "$ac_cv_sys_large_files" != no; then
29772
29773 cat >>confdefs.h <<_ACEOF
29774 #define _LARGE_FILES $ac_cv_sys_large_files
29775 _ACEOF
29776
29777    fi
29778    fi
29779
29780
29781 { echo "$as_me:$LINENO: checking for X" >&5
29782 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29783
29784
29785 # Check whether --with-x was given.
29786 if test "${with_x+set}" = set; then
29787   withval=$with_x;
29788 fi
29789
29790 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29791 if test "x$with_x" = xno; then
29792   # The user explicitly disabled X.
29793   have_x=disabled
29794 else
29795   case $x_includes,$x_libraries in #(
29796     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29797 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29798    { (exit 1); exit 1; }; };; #(
29799     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29800   echo $ECHO_N "(cached) $ECHO_C" >&6
29801 else
29802   # One or both of the vars are not set, and there is no cached value.
29803 ac_x_includes=no ac_x_libraries=no
29804 rm -f -r conftest.dir
29805 if mkdir conftest.dir; then
29806   cd conftest.dir
29807   cat >Imakefile <<'_ACEOF'
29808 incroot:
29809         @echo incroot='${INCROOT}'
29810 usrlibdir:
29811         @echo usrlibdir='${USRLIBDIR}'
29812 libdir:
29813         @echo libdir='${LIBDIR}'
29814 _ACEOF
29815   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29816     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29817     for ac_var in incroot usrlibdir libdir; do
29818       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29819     done
29820     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29821     for ac_extension in a so sl; do
29822       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29823          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29824         ac_im_usrlibdir=$ac_im_libdir; break
29825       fi
29826     done
29827     # Screen out bogus values from the imake configuration.  They are
29828     # bogus both because they are the default anyway, and because
29829     # using them would break gcc on systems where it needs fixed includes.
29830     case $ac_im_incroot in
29831         /usr/include) ac_x_includes= ;;
29832         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29833     esac
29834     case $ac_im_usrlibdir in
29835         /usr/lib | /lib) ;;
29836         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29837     esac
29838   fi
29839   cd ..
29840   rm -f -r conftest.dir
29841 fi
29842
29843 # Standard set of common directories for X headers.
29844 # Check X11 before X11Rn because it is often a symlink to the current release.
29845 ac_x_header_dirs='
29846 /usr/X11/include
29847 /usr/X11R6/include
29848 /usr/X11R5/include
29849 /usr/X11R4/include
29850
29851 /usr/include/X11
29852 /usr/include/X11R6
29853 /usr/include/X11R5
29854 /usr/include/X11R4
29855
29856 /usr/local/X11/include
29857 /usr/local/X11R6/include
29858 /usr/local/X11R5/include
29859 /usr/local/X11R4/include
29860
29861 /usr/local/include/X11
29862 /usr/local/include/X11R6
29863 /usr/local/include/X11R5
29864 /usr/local/include/X11R4
29865
29866 /usr/X386/include
29867 /usr/x386/include
29868 /usr/XFree86/include/X11
29869
29870 /usr/include
29871 /usr/local/include
29872 /usr/unsupported/include
29873 /usr/athena/include
29874 /usr/local/x11r5/include
29875 /usr/lpp/Xamples/include
29876
29877 /usr/openwin/include
29878 /usr/openwin/share/include'
29879
29880 if test "$ac_x_includes" = no; then
29881   # Guess where to find include files, by looking for Xlib.h.
29882   # First, try using that file with no special directory specified.
29883   cat >conftest.$ac_ext <<_ACEOF
29884 /* confdefs.h.  */
29885 _ACEOF
29886 cat confdefs.h >>conftest.$ac_ext
29887 cat >>conftest.$ac_ext <<_ACEOF
29888 /* end confdefs.h.  */
29889 #include <X11/Xlib.h>
29890 _ACEOF
29891 if { (ac_try="$ac_cpp conftest.$ac_ext"
29892 case "(($ac_try" in
29893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894   *) ac_try_echo=$ac_try;;
29895 esac
29896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29898   ac_status=$?
29899   grep -v '^ *+' conftest.er1 >conftest.err
29900   rm -f conftest.er1
29901   cat conftest.err >&5
29902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903   (exit $ac_status); } >/dev/null && {
29904          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29905          test ! -s conftest.err
29906        }; then
29907   # We can compile using X headers with no special include directory.
29908 ac_x_includes=
29909 else
29910   echo "$as_me: failed program was:" >&5
29911 sed 's/^/| /' conftest.$ac_ext >&5
29912
29913   for ac_dir in $ac_x_header_dirs; do
29914   if test -r "$ac_dir/X11/Xlib.h"; then
29915     ac_x_includes=$ac_dir
29916     break
29917   fi
29918 done
29919 fi
29920
29921 rm -f conftest.err conftest.$ac_ext
29922 fi # $ac_x_includes = no
29923
29924 if test "$ac_x_libraries" = no; then
29925   # Check for the libraries.
29926   # See if we find them without any special options.
29927   # Don't add to $LIBS permanently.
29928   ac_save_LIBS=$LIBS
29929   LIBS="-lX11 $LIBS"
29930   cat >conftest.$ac_ext <<_ACEOF
29931 /* confdefs.h.  */
29932 _ACEOF
29933 cat confdefs.h >>conftest.$ac_ext
29934 cat >>conftest.$ac_ext <<_ACEOF
29935 /* end confdefs.h.  */
29936 #include <X11/Xlib.h>
29937 int
29938 main ()
29939 {
29940 XrmInitialize ()
29941   ;
29942   return 0;
29943 }
29944 _ACEOF
29945 rm -f conftest.$ac_objext conftest$ac_exeext
29946 if { (ac_try="$ac_link"
29947 case "(($ac_try" in
29948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29949   *) ac_try_echo=$ac_try;;
29950 esac
29951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29952   (eval "$ac_link") 2>conftest.er1
29953   ac_status=$?
29954   grep -v '^ *+' conftest.er1 >conftest.err
29955   rm -f conftest.er1
29956   cat conftest.err >&5
29957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958   (exit $ac_status); } && {
29959          test -z "$ac_c_werror_flag" ||
29960          test ! -s conftest.err
29961        } && test -s conftest$ac_exeext &&
29962        $as_test_x conftest$ac_exeext; then
29963   LIBS=$ac_save_LIBS
29964 # We can link X programs with no special library path.
29965 ac_x_libraries=
29966 else
29967   echo "$as_me: failed program was:" >&5
29968 sed 's/^/| /' conftest.$ac_ext >&5
29969
29970         LIBS=$ac_save_LIBS
29971 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29972 do
29973   # Don't even attempt the hair of trying to link an X program!
29974   for ac_extension in a so sl; do
29975     if test -r "$ac_dir/libX11.$ac_extension"; then
29976       ac_x_libraries=$ac_dir
29977       break 2
29978     fi
29979   done
29980 done
29981 fi
29982
29983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29984       conftest$ac_exeext conftest.$ac_ext
29985 fi # $ac_x_libraries = no
29986
29987 case $ac_x_includes,$ac_x_libraries in #(
29988   no,* | *,no | *\'*)
29989     # Didn't find X, or a directory has "'" in its name.
29990     ac_cv_have_x="have_x=no";; #(
29991   *)
29992     # Record where we found X for the cache.
29993     ac_cv_have_x="have_x=yes\
29994         ac_x_includes='$ac_x_includes'\
29995         ac_x_libraries='$ac_x_libraries'"
29996 esac
29997 fi
29998 ;; #(
29999     *) have_x=yes;;
30000   esac
30001   eval "$ac_cv_have_x"
30002 fi # $with_x != no
30003
30004 if test "$have_x" != yes; then
30005   { echo "$as_me:$LINENO: result: $have_x" >&5
30006 echo "${ECHO_T}$have_x" >&6; }
30007   no_x=yes
30008 else
30009   # If each of the values was on the command line, it overrides each guess.
30010   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30011   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30012   # Update the cache value to reflect the command line values.
30013   ac_cv_have_x="have_x=yes\
30014         ac_x_includes='$x_includes'\
30015         ac_x_libraries='$x_libraries'"
30016   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30017 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30018 fi
30019
30020 if test "$no_x" = yes; then
30021   # Not all programs may use this symbol, but it does not hurt to define it.
30022
30023 cat >>confdefs.h <<\_ACEOF
30024 #define X_DISPLAY_MISSING 1
30025 _ACEOF
30026
30027   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30028 else
30029   if test -n "$x_includes"; then
30030     X_CFLAGS="$X_CFLAGS -I$x_includes"
30031   fi
30032
30033   # It would also be nice to do this for all -L options, not just this one.
30034   if test -n "$x_libraries"; then
30035     X_LIBS="$X_LIBS -L$x_libraries"
30036     # For Solaris; some versions of Sun CC require a space after -R and
30037     # others require no space.  Words are not sufficient . . . .
30038     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30039 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30040     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30041     ac_xsave_c_werror_flag=$ac_c_werror_flag
30042     ac_c_werror_flag=yes
30043     cat >conftest.$ac_ext <<_ACEOF
30044 /* confdefs.h.  */
30045 _ACEOF
30046 cat confdefs.h >>conftest.$ac_ext
30047 cat >>conftest.$ac_ext <<_ACEOF
30048 /* end confdefs.h.  */
30049
30050 int
30051 main ()
30052 {
30053
30054   ;
30055   return 0;
30056 }
30057 _ACEOF
30058 rm -f conftest.$ac_objext conftest$ac_exeext
30059 if { (ac_try="$ac_link"
30060 case "(($ac_try" in
30061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30062   *) ac_try_echo=$ac_try;;
30063 esac
30064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30065   (eval "$ac_link") 2>conftest.er1
30066   ac_status=$?
30067   grep -v '^ *+' conftest.er1 >conftest.err
30068   rm -f conftest.er1
30069   cat conftest.err >&5
30070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071   (exit $ac_status); } && {
30072          test -z "$ac_c_werror_flag" ||
30073          test ! -s conftest.err
30074        } && test -s conftest$ac_exeext &&
30075        $as_test_x conftest$ac_exeext; then
30076   { echo "$as_me:$LINENO: result: no" >&5
30077 echo "${ECHO_T}no" >&6; }
30078        X_LIBS="$X_LIBS -R$x_libraries"
30079 else
30080   echo "$as_me: failed program was:" >&5
30081 sed 's/^/| /' conftest.$ac_ext >&5
30082
30083         LIBS="$ac_xsave_LIBS -R $x_libraries"
30084        cat >conftest.$ac_ext <<_ACEOF
30085 /* confdefs.h.  */
30086 _ACEOF
30087 cat confdefs.h >>conftest.$ac_ext
30088 cat >>conftest.$ac_ext <<_ACEOF
30089 /* end confdefs.h.  */
30090
30091 int
30092 main ()
30093 {
30094
30095   ;
30096   return 0;
30097 }
30098 _ACEOF
30099 rm -f conftest.$ac_objext conftest$ac_exeext
30100 if { (ac_try="$ac_link"
30101 case "(($ac_try" in
30102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103   *) ac_try_echo=$ac_try;;
30104 esac
30105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106   (eval "$ac_link") 2>conftest.er1
30107   ac_status=$?
30108   grep -v '^ *+' conftest.er1 >conftest.err
30109   rm -f conftest.er1
30110   cat conftest.err >&5
30111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112   (exit $ac_status); } && {
30113          test -z "$ac_c_werror_flag" ||
30114          test ! -s conftest.err
30115        } && test -s conftest$ac_exeext &&
30116        $as_test_x conftest$ac_exeext; then
30117   { echo "$as_me:$LINENO: result: yes" >&5
30118 echo "${ECHO_T}yes" >&6; }
30119           X_LIBS="$X_LIBS -R $x_libraries"
30120 else
30121   echo "$as_me: failed program was:" >&5
30122 sed 's/^/| /' conftest.$ac_ext >&5
30123
30124         { echo "$as_me:$LINENO: result: neither works" >&5
30125 echo "${ECHO_T}neither works" >&6; }
30126 fi
30127
30128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30129       conftest$ac_exeext conftest.$ac_ext
30130 fi
30131
30132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30133       conftest$ac_exeext conftest.$ac_ext
30134     ac_c_werror_flag=$ac_xsave_c_werror_flag
30135     LIBS=$ac_xsave_LIBS
30136   fi
30137
30138   # Check for system-dependent libraries X programs must link with.
30139   # Do this before checking for the system-independent R6 libraries
30140   # (-lICE), since we may need -lsocket or whatever for X linking.
30141
30142   if test "$ISC" = yes; then
30143     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30144   else
30145     # Martyn Johnson says this is needed for Ultrix, if the X
30146     # libraries were built with DECnet support.  And Karl Berry says
30147     # the Alpha needs dnet_stub (dnet does not exist).
30148     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30149     cat >conftest.$ac_ext <<_ACEOF
30150 /* confdefs.h.  */
30151 _ACEOF
30152 cat confdefs.h >>conftest.$ac_ext
30153 cat >>conftest.$ac_ext <<_ACEOF
30154 /* end confdefs.h.  */
30155
30156 /* Override any GCC internal prototype to avoid an error.
30157    Use char because int might match the return type of a GCC
30158    builtin and then its argument prototype would still apply.  */
30159 #ifdef __cplusplus
30160 extern "C"
30161 #endif
30162 char XOpenDisplay ();
30163 int
30164 main ()
30165 {
30166 return XOpenDisplay ();
30167   ;
30168   return 0;
30169 }
30170 _ACEOF
30171 rm -f conftest.$ac_objext conftest$ac_exeext
30172 if { (ac_try="$ac_link"
30173 case "(($ac_try" in
30174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30175   *) ac_try_echo=$ac_try;;
30176 esac
30177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30178   (eval "$ac_link") 2>conftest.er1
30179   ac_status=$?
30180   grep -v '^ *+' conftest.er1 >conftest.err
30181   rm -f conftest.er1
30182   cat conftest.err >&5
30183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184   (exit $ac_status); } && {
30185          test -z "$ac_c_werror_flag" ||
30186          test ! -s conftest.err
30187        } && test -s conftest$ac_exeext &&
30188        $as_test_x conftest$ac_exeext; then
30189   :
30190 else
30191   echo "$as_me: failed program was:" >&5
30192 sed 's/^/| /' conftest.$ac_ext >&5
30193
30194         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30195 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30196 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30197   echo $ECHO_N "(cached) $ECHO_C" >&6
30198 else
30199   ac_check_lib_save_LIBS=$LIBS
30200 LIBS="-ldnet  $LIBS"
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
30208 /* Override any GCC internal prototype to avoid an error.
30209    Use char because int might match the return type of a GCC
30210    builtin and then its argument prototype would still apply.  */
30211 #ifdef __cplusplus
30212 extern "C"
30213 #endif
30214 char dnet_ntoa ();
30215 int
30216 main ()
30217 {
30218 return dnet_ntoa ();
30219   ;
30220   return 0;
30221 }
30222 _ACEOF
30223 rm -f conftest.$ac_objext conftest$ac_exeext
30224 if { (ac_try="$ac_link"
30225 case "(($ac_try" in
30226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30227   *) ac_try_echo=$ac_try;;
30228 esac
30229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30230   (eval "$ac_link") 2>conftest.er1
30231   ac_status=$?
30232   grep -v '^ *+' conftest.er1 >conftest.err
30233   rm -f conftest.er1
30234   cat conftest.err >&5
30235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236   (exit $ac_status); } && {
30237          test -z "$ac_c_werror_flag" ||
30238          test ! -s conftest.err
30239        } && test -s conftest$ac_exeext &&
30240        $as_test_x conftest$ac_exeext; then
30241   ac_cv_lib_dnet_dnet_ntoa=yes
30242 else
30243   echo "$as_me: failed program was:" >&5
30244 sed 's/^/| /' conftest.$ac_ext >&5
30245
30246         ac_cv_lib_dnet_dnet_ntoa=no
30247 fi
30248
30249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30250       conftest$ac_exeext conftest.$ac_ext
30251 LIBS=$ac_check_lib_save_LIBS
30252 fi
30253 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30254 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30255 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30256   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30257 fi
30258
30259     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30260       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30261 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30262 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30263   echo $ECHO_N "(cached) $ECHO_C" >&6
30264 else
30265   ac_check_lib_save_LIBS=$LIBS
30266 LIBS="-ldnet_stub  $LIBS"
30267 cat >conftest.$ac_ext <<_ACEOF
30268 /* confdefs.h.  */
30269 _ACEOF
30270 cat confdefs.h >>conftest.$ac_ext
30271 cat >>conftest.$ac_ext <<_ACEOF
30272 /* end confdefs.h.  */
30273
30274 /* Override any GCC internal prototype to avoid an error.
30275    Use char because int might match the return type of a GCC
30276    builtin and then its argument prototype would still apply.  */
30277 #ifdef __cplusplus
30278 extern "C"
30279 #endif
30280 char dnet_ntoa ();
30281 int
30282 main ()
30283 {
30284 return dnet_ntoa ();
30285   ;
30286   return 0;
30287 }
30288 _ACEOF
30289 rm -f conftest.$ac_objext conftest$ac_exeext
30290 if { (ac_try="$ac_link"
30291 case "(($ac_try" in
30292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30293   *) ac_try_echo=$ac_try;;
30294 esac
30295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30296   (eval "$ac_link") 2>conftest.er1
30297   ac_status=$?
30298   grep -v '^ *+' conftest.er1 >conftest.err
30299   rm -f conftest.er1
30300   cat conftest.err >&5
30301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302   (exit $ac_status); } && {
30303          test -z "$ac_c_werror_flag" ||
30304          test ! -s conftest.err
30305        } && test -s conftest$ac_exeext &&
30306        $as_test_x conftest$ac_exeext; then
30307   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30308 else
30309   echo "$as_me: failed program was:" >&5
30310 sed 's/^/| /' conftest.$ac_ext >&5
30311
30312         ac_cv_lib_dnet_stub_dnet_ntoa=no
30313 fi
30314
30315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30316       conftest$ac_exeext conftest.$ac_ext
30317 LIBS=$ac_check_lib_save_LIBS
30318 fi
30319 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30320 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30321 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30322   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30323 fi
30324
30325     fi
30326 fi
30327
30328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30329       conftest$ac_exeext conftest.$ac_ext
30330     LIBS="$ac_xsave_LIBS"
30331
30332     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30333     # to get the SysV transport functions.
30334     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30335     # needs -lnsl.
30336     # The nsl library prevents programs from opening the X display
30337     # on Irix 5.2, according to T.E. Dickey.
30338     # The functions gethostbyname, getservbyname, and inet_addr are
30339     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30340     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30341 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30342 if test "${ac_cv_func_gethostbyname+set}" = set; then
30343   echo $ECHO_N "(cached) $ECHO_C" >&6
30344 else
30345   cat >conftest.$ac_ext <<_ACEOF
30346 /* confdefs.h.  */
30347 _ACEOF
30348 cat confdefs.h >>conftest.$ac_ext
30349 cat >>conftest.$ac_ext <<_ACEOF
30350 /* end confdefs.h.  */
30351 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30353 #define gethostbyname innocuous_gethostbyname
30354
30355 /* System header to define __stub macros and hopefully few prototypes,
30356     which can conflict with char gethostbyname (); below.
30357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30358     <limits.h> exists even on freestanding compilers.  */
30359
30360 #ifdef __STDC__
30361 # include <limits.h>
30362 #else
30363 # include <assert.h>
30364 #endif
30365
30366 #undef gethostbyname
30367
30368 /* Override any GCC internal prototype to avoid an error.
30369    Use char because int might match the return type of a GCC
30370    builtin and then its argument prototype would still apply.  */
30371 #ifdef __cplusplus
30372 extern "C"
30373 #endif
30374 char gethostbyname ();
30375 /* The GNU C library defines this for functions which it implements
30376     to always fail with ENOSYS.  Some functions are actually named
30377     something starting with __ and the normal name is an alias.  */
30378 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30379 choke me
30380 #endif
30381
30382 int
30383 main ()
30384 {
30385 return gethostbyname ();
30386   ;
30387   return 0;
30388 }
30389 _ACEOF
30390 rm -f conftest.$ac_objext conftest$ac_exeext
30391 if { (ac_try="$ac_link"
30392 case "(($ac_try" in
30393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30394   *) ac_try_echo=$ac_try;;
30395 esac
30396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30397   (eval "$ac_link") 2>conftest.er1
30398   ac_status=$?
30399   grep -v '^ *+' conftest.er1 >conftest.err
30400   rm -f conftest.er1
30401   cat conftest.err >&5
30402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403   (exit $ac_status); } && {
30404          test -z "$ac_c_werror_flag" ||
30405          test ! -s conftest.err
30406        } && test -s conftest$ac_exeext &&
30407        $as_test_x conftest$ac_exeext; then
30408   ac_cv_func_gethostbyname=yes
30409 else
30410   echo "$as_me: failed program was:" >&5
30411 sed 's/^/| /' conftest.$ac_ext >&5
30412
30413         ac_cv_func_gethostbyname=no
30414 fi
30415
30416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30417       conftest$ac_exeext conftest.$ac_ext
30418 fi
30419 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30420 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30421
30422     if test $ac_cv_func_gethostbyname = no; then
30423       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30424 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30425 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30426   echo $ECHO_N "(cached) $ECHO_C" >&6
30427 else
30428   ac_check_lib_save_LIBS=$LIBS
30429 LIBS="-lnsl  $LIBS"
30430 cat >conftest.$ac_ext <<_ACEOF
30431 /* confdefs.h.  */
30432 _ACEOF
30433 cat confdefs.h >>conftest.$ac_ext
30434 cat >>conftest.$ac_ext <<_ACEOF
30435 /* end confdefs.h.  */
30436
30437 /* Override any GCC internal prototype to avoid an error.
30438    Use char because int might match the return type of a GCC
30439    builtin and then its argument prototype would still apply.  */
30440 #ifdef __cplusplus
30441 extern "C"
30442 #endif
30443 char gethostbyname ();
30444 int
30445 main ()
30446 {
30447 return gethostbyname ();
30448   ;
30449   return 0;
30450 }
30451 _ACEOF
30452 rm -f conftest.$ac_objext conftest$ac_exeext
30453 if { (ac_try="$ac_link"
30454 case "(($ac_try" in
30455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30456   *) ac_try_echo=$ac_try;;
30457 esac
30458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30459   (eval "$ac_link") 2>conftest.er1
30460   ac_status=$?
30461   grep -v '^ *+' conftest.er1 >conftest.err
30462   rm -f conftest.er1
30463   cat conftest.err >&5
30464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465   (exit $ac_status); } && {
30466          test -z "$ac_c_werror_flag" ||
30467          test ! -s conftest.err
30468        } && test -s conftest$ac_exeext &&
30469        $as_test_x conftest$ac_exeext; then
30470   ac_cv_lib_nsl_gethostbyname=yes
30471 else
30472   echo "$as_me: failed program was:" >&5
30473 sed 's/^/| /' conftest.$ac_ext >&5
30474
30475         ac_cv_lib_nsl_gethostbyname=no
30476 fi
30477
30478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30479       conftest$ac_exeext conftest.$ac_ext
30480 LIBS=$ac_check_lib_save_LIBS
30481 fi
30482 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30483 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30484 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30485   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30486 fi
30487
30488       if test $ac_cv_lib_nsl_gethostbyname = no; then
30489         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30490 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30491 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30492   echo $ECHO_N "(cached) $ECHO_C" >&6
30493 else
30494   ac_check_lib_save_LIBS=$LIBS
30495 LIBS="-lbsd  $LIBS"
30496 cat >conftest.$ac_ext <<_ACEOF
30497 /* confdefs.h.  */
30498 _ACEOF
30499 cat confdefs.h >>conftest.$ac_ext
30500 cat >>conftest.$ac_ext <<_ACEOF
30501 /* end confdefs.h.  */
30502
30503 /* Override any GCC internal prototype to avoid an error.
30504    Use char because int might match the return type of a GCC
30505    builtin and then its argument prototype would still apply.  */
30506 #ifdef __cplusplus
30507 extern "C"
30508 #endif
30509 char gethostbyname ();
30510 int
30511 main ()
30512 {
30513 return gethostbyname ();
30514   ;
30515   return 0;
30516 }
30517 _ACEOF
30518 rm -f conftest.$ac_objext conftest$ac_exeext
30519 if { (ac_try="$ac_link"
30520 case "(($ac_try" in
30521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30522   *) ac_try_echo=$ac_try;;
30523 esac
30524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30525   (eval "$ac_link") 2>conftest.er1
30526   ac_status=$?
30527   grep -v '^ *+' conftest.er1 >conftest.err
30528   rm -f conftest.er1
30529   cat conftest.err >&5
30530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531   (exit $ac_status); } && {
30532          test -z "$ac_c_werror_flag" ||
30533          test ! -s conftest.err
30534        } && test -s conftest$ac_exeext &&
30535        $as_test_x conftest$ac_exeext; then
30536   ac_cv_lib_bsd_gethostbyname=yes
30537 else
30538   echo "$as_me: failed program was:" >&5
30539 sed 's/^/| /' conftest.$ac_ext >&5
30540
30541         ac_cv_lib_bsd_gethostbyname=no
30542 fi
30543
30544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30545       conftest$ac_exeext conftest.$ac_ext
30546 LIBS=$ac_check_lib_save_LIBS
30547 fi
30548 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30549 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30550 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30551   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30552 fi
30553
30554       fi
30555     fi
30556
30557     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30558     # socket/setsockopt and other routines are undefined under SCO ODT
30559     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30560     # on later versions), says Simon Leinen: it contains gethostby*
30561     # variants that don't use the name server (or something).  -lsocket
30562     # must be given before -lnsl if both are needed.  We assume that
30563     # if connect needs -lnsl, so does gethostbyname.
30564     { echo "$as_me:$LINENO: checking for connect" >&5
30565 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30566 if test "${ac_cv_func_connect+set}" = set; then
30567   echo $ECHO_N "(cached) $ECHO_C" >&6
30568 else
30569   cat >conftest.$ac_ext <<_ACEOF
30570 /* confdefs.h.  */
30571 _ACEOF
30572 cat confdefs.h >>conftest.$ac_ext
30573 cat >>conftest.$ac_ext <<_ACEOF
30574 /* end confdefs.h.  */
30575 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30577 #define connect innocuous_connect
30578
30579 /* System header to define __stub macros and hopefully few prototypes,
30580     which can conflict with char connect (); below.
30581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30582     <limits.h> exists even on freestanding compilers.  */
30583
30584 #ifdef __STDC__
30585 # include <limits.h>
30586 #else
30587 # include <assert.h>
30588 #endif
30589
30590 #undef connect
30591
30592 /* Override any GCC internal prototype to avoid an error.
30593    Use char because int might match the return type of a GCC
30594    builtin and then its argument prototype would still apply.  */
30595 #ifdef __cplusplus
30596 extern "C"
30597 #endif
30598 char connect ();
30599 /* The GNU C library defines this for functions which it implements
30600     to always fail with ENOSYS.  Some functions are actually named
30601     something starting with __ and the normal name is an alias.  */
30602 #if defined __stub_connect || defined __stub___connect
30603 choke me
30604 #endif
30605
30606 int
30607 main ()
30608 {
30609 return connect ();
30610   ;
30611   return 0;
30612 }
30613 _ACEOF
30614 rm -f conftest.$ac_objext conftest$ac_exeext
30615 if { (ac_try="$ac_link"
30616 case "(($ac_try" in
30617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30618   *) ac_try_echo=$ac_try;;
30619 esac
30620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30621   (eval "$ac_link") 2>conftest.er1
30622   ac_status=$?
30623   grep -v '^ *+' conftest.er1 >conftest.err
30624   rm -f conftest.er1
30625   cat conftest.err >&5
30626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627   (exit $ac_status); } && {
30628          test -z "$ac_c_werror_flag" ||
30629          test ! -s conftest.err
30630        } && test -s conftest$ac_exeext &&
30631        $as_test_x conftest$ac_exeext; then
30632   ac_cv_func_connect=yes
30633 else
30634   echo "$as_me: failed program was:" >&5
30635 sed 's/^/| /' conftest.$ac_ext >&5
30636
30637         ac_cv_func_connect=no
30638 fi
30639
30640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30641       conftest$ac_exeext conftest.$ac_ext
30642 fi
30643 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30644 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30645
30646     if test $ac_cv_func_connect = no; then
30647       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30648 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30649 if test "${ac_cv_lib_socket_connect+set}" = set; then
30650   echo $ECHO_N "(cached) $ECHO_C" >&6
30651 else
30652   ac_check_lib_save_LIBS=$LIBS
30653 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30654 cat >conftest.$ac_ext <<_ACEOF
30655 /* confdefs.h.  */
30656 _ACEOF
30657 cat confdefs.h >>conftest.$ac_ext
30658 cat >>conftest.$ac_ext <<_ACEOF
30659 /* end confdefs.h.  */
30660
30661 /* Override any GCC internal prototype to avoid an error.
30662    Use char because int might match the return type of a GCC
30663    builtin and then its argument prototype would still apply.  */
30664 #ifdef __cplusplus
30665 extern "C"
30666 #endif
30667 char connect ();
30668 int
30669 main ()
30670 {
30671 return connect ();
30672   ;
30673   return 0;
30674 }
30675 _ACEOF
30676 rm -f conftest.$ac_objext conftest$ac_exeext
30677 if { (ac_try="$ac_link"
30678 case "(($ac_try" in
30679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30680   *) ac_try_echo=$ac_try;;
30681 esac
30682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30683   (eval "$ac_link") 2>conftest.er1
30684   ac_status=$?
30685   grep -v '^ *+' conftest.er1 >conftest.err
30686   rm -f conftest.er1
30687   cat conftest.err >&5
30688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689   (exit $ac_status); } && {
30690          test -z "$ac_c_werror_flag" ||
30691          test ! -s conftest.err
30692        } && test -s conftest$ac_exeext &&
30693        $as_test_x conftest$ac_exeext; then
30694   ac_cv_lib_socket_connect=yes
30695 else
30696   echo "$as_me: failed program was:" >&5
30697 sed 's/^/| /' conftest.$ac_ext >&5
30698
30699         ac_cv_lib_socket_connect=no
30700 fi
30701
30702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30703       conftest$ac_exeext conftest.$ac_ext
30704 LIBS=$ac_check_lib_save_LIBS
30705 fi
30706 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30707 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30708 if test $ac_cv_lib_socket_connect = yes; then
30709   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30710 fi
30711
30712     fi
30713
30714     # Guillermo Gomez says -lposix is necessary on A/UX.
30715     { echo "$as_me:$LINENO: checking for remove" >&5
30716 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30717 if test "${ac_cv_func_remove+set}" = set; then
30718   echo $ECHO_N "(cached) $ECHO_C" >&6
30719 else
30720   cat >conftest.$ac_ext <<_ACEOF
30721 /* confdefs.h.  */
30722 _ACEOF
30723 cat confdefs.h >>conftest.$ac_ext
30724 cat >>conftest.$ac_ext <<_ACEOF
30725 /* end confdefs.h.  */
30726 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30728 #define remove innocuous_remove
30729
30730 /* System header to define __stub macros and hopefully few prototypes,
30731     which can conflict with char remove (); below.
30732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30733     <limits.h> exists even on freestanding compilers.  */
30734
30735 #ifdef __STDC__
30736 # include <limits.h>
30737 #else
30738 # include <assert.h>
30739 #endif
30740
30741 #undef remove
30742
30743 /* Override any GCC internal prototype to avoid an error.
30744    Use char because int might match the return type of a GCC
30745    builtin and then its argument prototype would still apply.  */
30746 #ifdef __cplusplus
30747 extern "C"
30748 #endif
30749 char remove ();
30750 /* The GNU C library defines this for functions which it implements
30751     to always fail with ENOSYS.  Some functions are actually named
30752     something starting with __ and the normal name is an alias.  */
30753 #if defined __stub_remove || defined __stub___remove
30754 choke me
30755 #endif
30756
30757 int
30758 main ()
30759 {
30760 return remove ();
30761   ;
30762   return 0;
30763 }
30764 _ACEOF
30765 rm -f conftest.$ac_objext conftest$ac_exeext
30766 if { (ac_try="$ac_link"
30767 case "(($ac_try" in
30768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30769   *) ac_try_echo=$ac_try;;
30770 esac
30771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30772   (eval "$ac_link") 2>conftest.er1
30773   ac_status=$?
30774   grep -v '^ *+' conftest.er1 >conftest.err
30775   rm -f conftest.er1
30776   cat conftest.err >&5
30777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778   (exit $ac_status); } && {
30779          test -z "$ac_c_werror_flag" ||
30780          test ! -s conftest.err
30781        } && test -s conftest$ac_exeext &&
30782        $as_test_x conftest$ac_exeext; then
30783   ac_cv_func_remove=yes
30784 else
30785   echo "$as_me: failed program was:" >&5
30786 sed 's/^/| /' conftest.$ac_ext >&5
30787
30788         ac_cv_func_remove=no
30789 fi
30790
30791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30792       conftest$ac_exeext conftest.$ac_ext
30793 fi
30794 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30795 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30796
30797     if test $ac_cv_func_remove = no; then
30798       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30799 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30800 if test "${ac_cv_lib_posix_remove+set}" = set; then
30801   echo $ECHO_N "(cached) $ECHO_C" >&6
30802 else
30803   ac_check_lib_save_LIBS=$LIBS
30804 LIBS="-lposix  $LIBS"
30805 cat >conftest.$ac_ext <<_ACEOF
30806 /* confdefs.h.  */
30807 _ACEOF
30808 cat confdefs.h >>conftest.$ac_ext
30809 cat >>conftest.$ac_ext <<_ACEOF
30810 /* end confdefs.h.  */
30811
30812 /* Override any GCC internal prototype to avoid an error.
30813    Use char because int might match the return type of a GCC
30814    builtin and then its argument prototype would still apply.  */
30815 #ifdef __cplusplus
30816 extern "C"
30817 #endif
30818 char remove ();
30819 int
30820 main ()
30821 {
30822 return remove ();
30823   ;
30824   return 0;
30825 }
30826 _ACEOF
30827 rm -f conftest.$ac_objext conftest$ac_exeext
30828 if { (ac_try="$ac_link"
30829 case "(($ac_try" in
30830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30831   *) ac_try_echo=$ac_try;;
30832 esac
30833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30834   (eval "$ac_link") 2>conftest.er1
30835   ac_status=$?
30836   grep -v '^ *+' conftest.er1 >conftest.err
30837   rm -f conftest.er1
30838   cat conftest.err >&5
30839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840   (exit $ac_status); } && {
30841          test -z "$ac_c_werror_flag" ||
30842          test ! -s conftest.err
30843        } && test -s conftest$ac_exeext &&
30844        $as_test_x conftest$ac_exeext; then
30845   ac_cv_lib_posix_remove=yes
30846 else
30847   echo "$as_me: failed program was:" >&5
30848 sed 's/^/| /' conftest.$ac_ext >&5
30849
30850         ac_cv_lib_posix_remove=no
30851 fi
30852
30853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30854       conftest$ac_exeext conftest.$ac_ext
30855 LIBS=$ac_check_lib_save_LIBS
30856 fi
30857 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30858 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30859 if test $ac_cv_lib_posix_remove = yes; then
30860   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30861 fi
30862
30863     fi
30864
30865     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30866     { echo "$as_me:$LINENO: checking for shmat" >&5
30867 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30868 if test "${ac_cv_func_shmat+set}" = set; then
30869   echo $ECHO_N "(cached) $ECHO_C" >&6
30870 else
30871   cat >conftest.$ac_ext <<_ACEOF
30872 /* confdefs.h.  */
30873 _ACEOF
30874 cat confdefs.h >>conftest.$ac_ext
30875 cat >>conftest.$ac_ext <<_ACEOF
30876 /* end confdefs.h.  */
30877 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30879 #define shmat innocuous_shmat
30880
30881 /* System header to define __stub macros and hopefully few prototypes,
30882     which can conflict with char shmat (); below.
30883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30884     <limits.h> exists even on freestanding compilers.  */
30885
30886 #ifdef __STDC__
30887 # include <limits.h>
30888 #else
30889 # include <assert.h>
30890 #endif
30891
30892 #undef shmat
30893
30894 /* Override any GCC internal prototype to avoid an error.
30895    Use char because int might match the return type of a GCC
30896    builtin and then its argument prototype would still apply.  */
30897 #ifdef __cplusplus
30898 extern "C"
30899 #endif
30900 char shmat ();
30901 /* The GNU C library defines this for functions which it implements
30902     to always fail with ENOSYS.  Some functions are actually named
30903     something starting with __ and the normal name is an alias.  */
30904 #if defined __stub_shmat || defined __stub___shmat
30905 choke me
30906 #endif
30907
30908 int
30909 main ()
30910 {
30911 return shmat ();
30912   ;
30913   return 0;
30914 }
30915 _ACEOF
30916 rm -f conftest.$ac_objext conftest$ac_exeext
30917 if { (ac_try="$ac_link"
30918 case "(($ac_try" in
30919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920   *) ac_try_echo=$ac_try;;
30921 esac
30922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923   (eval "$ac_link") 2>conftest.er1
30924   ac_status=$?
30925   grep -v '^ *+' conftest.er1 >conftest.err
30926   rm -f conftest.er1
30927   cat conftest.err >&5
30928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30929   (exit $ac_status); } && {
30930          test -z "$ac_c_werror_flag" ||
30931          test ! -s conftest.err
30932        } && test -s conftest$ac_exeext &&
30933        $as_test_x conftest$ac_exeext; then
30934   ac_cv_func_shmat=yes
30935 else
30936   echo "$as_me: failed program was:" >&5
30937 sed 's/^/| /' conftest.$ac_ext >&5
30938
30939         ac_cv_func_shmat=no
30940 fi
30941
30942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30943       conftest$ac_exeext conftest.$ac_ext
30944 fi
30945 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30946 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30947
30948     if test $ac_cv_func_shmat = no; then
30949       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30950 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30951 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30952   echo $ECHO_N "(cached) $ECHO_C" >&6
30953 else
30954   ac_check_lib_save_LIBS=$LIBS
30955 LIBS="-lipc  $LIBS"
30956 cat >conftest.$ac_ext <<_ACEOF
30957 /* confdefs.h.  */
30958 _ACEOF
30959 cat confdefs.h >>conftest.$ac_ext
30960 cat >>conftest.$ac_ext <<_ACEOF
30961 /* end confdefs.h.  */
30962
30963 /* Override any GCC internal prototype to avoid an error.
30964    Use char because int might match the return type of a GCC
30965    builtin and then its argument prototype would still apply.  */
30966 #ifdef __cplusplus
30967 extern "C"
30968 #endif
30969 char shmat ();
30970 int
30971 main ()
30972 {
30973 return shmat ();
30974   ;
30975   return 0;
30976 }
30977 _ACEOF
30978 rm -f conftest.$ac_objext conftest$ac_exeext
30979 if { (ac_try="$ac_link"
30980 case "(($ac_try" in
30981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30982   *) ac_try_echo=$ac_try;;
30983 esac
30984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30985   (eval "$ac_link") 2>conftest.er1
30986   ac_status=$?
30987   grep -v '^ *+' conftest.er1 >conftest.err
30988   rm -f conftest.er1
30989   cat conftest.err >&5
30990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991   (exit $ac_status); } && {
30992          test -z "$ac_c_werror_flag" ||
30993          test ! -s conftest.err
30994        } && test -s conftest$ac_exeext &&
30995        $as_test_x conftest$ac_exeext; then
30996   ac_cv_lib_ipc_shmat=yes
30997 else
30998   echo "$as_me: failed program was:" >&5
30999 sed 's/^/| /' conftest.$ac_ext >&5
31000
31001         ac_cv_lib_ipc_shmat=no
31002 fi
31003
31004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31005       conftest$ac_exeext conftest.$ac_ext
31006 LIBS=$ac_check_lib_save_LIBS
31007 fi
31008 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31009 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31010 if test $ac_cv_lib_ipc_shmat = yes; then
31011   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31012 fi
31013
31014     fi
31015   fi
31016
31017   # Check for libraries that X11R6 Xt/Xaw programs need.
31018   ac_save_LDFLAGS=$LDFLAGS
31019   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31020   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31021   # check for ICE first), but we must link in the order -lSM -lICE or
31022   # we get undefined symbols.  So assume we have SM if we have ICE.
31023   # These have to be linked with before -lX11, unlike the other
31024   # libraries we check for below, so use a different variable.
31025   # John Interrante, Karl Berry
31026   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31027 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31028 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31029   echo $ECHO_N "(cached) $ECHO_C" >&6
31030 else
31031   ac_check_lib_save_LIBS=$LIBS
31032 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31033 cat >conftest.$ac_ext <<_ACEOF
31034 /* confdefs.h.  */
31035 _ACEOF
31036 cat confdefs.h >>conftest.$ac_ext
31037 cat >>conftest.$ac_ext <<_ACEOF
31038 /* end confdefs.h.  */
31039
31040 /* Override any GCC internal prototype to avoid an error.
31041    Use char because int might match the return type of a GCC
31042    builtin and then its argument prototype would still apply.  */
31043 #ifdef __cplusplus
31044 extern "C"
31045 #endif
31046 char IceConnectionNumber ();
31047 int
31048 main ()
31049 {
31050 return IceConnectionNumber ();
31051   ;
31052   return 0;
31053 }
31054 _ACEOF
31055 rm -f conftest.$ac_objext conftest$ac_exeext
31056 if { (ac_try="$ac_link"
31057 case "(($ac_try" in
31058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31059   *) ac_try_echo=$ac_try;;
31060 esac
31061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31062   (eval "$ac_link") 2>conftest.er1
31063   ac_status=$?
31064   grep -v '^ *+' conftest.er1 >conftest.err
31065   rm -f conftest.er1
31066   cat conftest.err >&5
31067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068   (exit $ac_status); } && {
31069          test -z "$ac_c_werror_flag" ||
31070          test ! -s conftest.err
31071        } && test -s conftest$ac_exeext &&
31072        $as_test_x conftest$ac_exeext; then
31073   ac_cv_lib_ICE_IceConnectionNumber=yes
31074 else
31075   echo "$as_me: failed program was:" >&5
31076 sed 's/^/| /' conftest.$ac_ext >&5
31077
31078         ac_cv_lib_ICE_IceConnectionNumber=no
31079 fi
31080
31081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31082       conftest$ac_exeext conftest.$ac_ext
31083 LIBS=$ac_check_lib_save_LIBS
31084 fi
31085 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31086 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31087 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31088   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31089 fi
31090
31091   LDFLAGS=$ac_save_LDFLAGS
31092
31093 fi
31094
31095
31096
31097
31098
31099
31100
31101
31102
31103
31104
31105
31106
31107
31108
31109
31110
31111
31112
31113
31114
31115
31116
31117
31118
31119
31120
31121
31122
31123
31124
31125 for ac_header in \
31126    assert.h \
31127    fcntl.h \
31128    grp.h \
31129    pwd.h \
31130    libc.h \
31131    limits.h \
31132    stdarg.h \
31133    stdlib.h \
31134    stdint.h \
31135    string.h \
31136    strings.h \
31137    termios.h \
31138    termcap.h \
31139    term.h \
31140    unistd.h \
31141    sys/bitypes.h \
31142    sys/byteorder.h \
31143    sys/ioctl.h \
31144    sys/select.h \
31145    sys/socket.h \
31146    sys/sockio.h \
31147    sys/stat.h \
31148    sys/time.h \
31149    sys/types.h \
31150    arpa/nameser.h \
31151    mtio.h \
31152    sys/mtio.h \
31153    sys/tape.h \
31154    regex.h \
31155
31156 do
31157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31159   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31162   echo $ECHO_N "(cached) $ECHO_C" >&6
31163 fi
31164 ac_res=`eval echo '${'$as_ac_Header'}'`
31165                { echo "$as_me:$LINENO: result: $ac_res" >&5
31166 echo "${ECHO_T}$ac_res" >&6; }
31167 else
31168   # Is the header compilable?
31169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31171 cat >conftest.$ac_ext <<_ACEOF
31172 /* confdefs.h.  */
31173 _ACEOF
31174 cat confdefs.h >>conftest.$ac_ext
31175 cat >>conftest.$ac_ext <<_ACEOF
31176 /* end confdefs.h.  */
31177 $ac_includes_default
31178 #include <$ac_header>
31179 _ACEOF
31180 rm -f conftest.$ac_objext
31181 if { (ac_try="$ac_compile"
31182 case "(($ac_try" in
31183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31184   *) ac_try_echo=$ac_try;;
31185 esac
31186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31187   (eval "$ac_compile") 2>conftest.er1
31188   ac_status=$?
31189   grep -v '^ *+' conftest.er1 >conftest.err
31190   rm -f conftest.er1
31191   cat conftest.err >&5
31192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193   (exit $ac_status); } && {
31194          test -z "$ac_c_werror_flag" ||
31195          test ! -s conftest.err
31196        } && test -s conftest.$ac_objext; then
31197   ac_header_compiler=yes
31198 else
31199   echo "$as_me: failed program was:" >&5
31200 sed 's/^/| /' conftest.$ac_ext >&5
31201
31202         ac_header_compiler=no
31203 fi
31204
31205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31207 echo "${ECHO_T}$ac_header_compiler" >&6; }
31208
31209 # Is the header present?
31210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31212 cat >conftest.$ac_ext <<_ACEOF
31213 /* confdefs.h.  */
31214 _ACEOF
31215 cat confdefs.h >>conftest.$ac_ext
31216 cat >>conftest.$ac_ext <<_ACEOF
31217 /* end confdefs.h.  */
31218 #include <$ac_header>
31219 _ACEOF
31220 if { (ac_try="$ac_cpp conftest.$ac_ext"
31221 case "(($ac_try" in
31222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223   *) ac_try_echo=$ac_try;;
31224 esac
31225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31227   ac_status=$?
31228   grep -v '^ *+' conftest.er1 >conftest.err
31229   rm -f conftest.er1
31230   cat conftest.err >&5
31231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232   (exit $ac_status); } >/dev/null && {
31233          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31234          test ! -s conftest.err
31235        }; then
31236   ac_header_preproc=yes
31237 else
31238   echo "$as_me: failed program was:" >&5
31239 sed 's/^/| /' conftest.$ac_ext >&5
31240
31241   ac_header_preproc=no
31242 fi
31243
31244 rm -f conftest.err conftest.$ac_ext
31245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31246 echo "${ECHO_T}$ac_header_preproc" >&6; }
31247
31248 # So?  What about this header?
31249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31250   yes:no: )
31251     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31255     ac_header_preproc=yes
31256     ;;
31257   no:yes:* )
31258     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31260     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31261 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31262     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31264     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31265 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31268     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31270
31271     ;;
31272 esac
31273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31276   echo $ECHO_N "(cached) $ECHO_C" >&6
31277 else
31278   eval "$as_ac_Header=\$ac_header_preproc"
31279 fi
31280 ac_res=`eval echo '${'$as_ac_Header'}'`
31281                { echo "$as_me:$LINENO: result: $ac_res" >&5
31282 echo "${ECHO_T}$ac_res" >&6; }
31283
31284 fi
31285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31286   cat >>confdefs.h <<_ACEOF
31287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31288 _ACEOF
31289
31290 fi
31291
31292 done
31293
31294 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31295 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31296 if test "${ac_cv_header_stdc+set}" = set; then
31297   echo $ECHO_N "(cached) $ECHO_C" >&6
31298 else
31299   cat >conftest.$ac_ext <<_ACEOF
31300 /* confdefs.h.  */
31301 _ACEOF
31302 cat confdefs.h >>conftest.$ac_ext
31303 cat >>conftest.$ac_ext <<_ACEOF
31304 /* end confdefs.h.  */
31305 #include <stdlib.h>
31306 #include <stdarg.h>
31307 #include <string.h>
31308 #include <float.h>
31309
31310 int
31311 main ()
31312 {
31313
31314   ;
31315   return 0;
31316 }
31317 _ACEOF
31318 rm -f conftest.$ac_objext
31319 if { (ac_try="$ac_compile"
31320 case "(($ac_try" in
31321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31322   *) ac_try_echo=$ac_try;;
31323 esac
31324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31325   (eval "$ac_compile") 2>conftest.er1
31326   ac_status=$?
31327   grep -v '^ *+' conftest.er1 >conftest.err
31328   rm -f conftest.er1
31329   cat conftest.err >&5
31330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331   (exit $ac_status); } && {
31332          test -z "$ac_c_werror_flag" ||
31333          test ! -s conftest.err
31334        } && test -s conftest.$ac_objext; then
31335   ac_cv_header_stdc=yes
31336 else
31337   echo "$as_me: failed program was:" >&5
31338 sed 's/^/| /' conftest.$ac_ext >&5
31339
31340         ac_cv_header_stdc=no
31341 fi
31342
31343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31344
31345 if test $ac_cv_header_stdc = yes; then
31346   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31347   cat >conftest.$ac_ext <<_ACEOF
31348 /* confdefs.h.  */
31349 _ACEOF
31350 cat confdefs.h >>conftest.$ac_ext
31351 cat >>conftest.$ac_ext <<_ACEOF
31352 /* end confdefs.h.  */
31353 #include <string.h>
31354
31355 _ACEOF
31356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31357   $EGREP "memchr" >/dev/null 2>&1; then
31358   :
31359 else
31360   ac_cv_header_stdc=no
31361 fi
31362 rm -f conftest*
31363
31364 fi
31365
31366 if test $ac_cv_header_stdc = yes; then
31367   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31368   cat >conftest.$ac_ext <<_ACEOF
31369 /* confdefs.h.  */
31370 _ACEOF
31371 cat confdefs.h >>conftest.$ac_ext
31372 cat >>conftest.$ac_ext <<_ACEOF
31373 /* end confdefs.h.  */
31374 #include <stdlib.h>
31375
31376 _ACEOF
31377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31378   $EGREP "free" >/dev/null 2>&1; then
31379   :
31380 else
31381   ac_cv_header_stdc=no
31382 fi
31383 rm -f conftest*
31384
31385 fi
31386
31387 if test $ac_cv_header_stdc = yes; then
31388   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31389   if test "$cross_compiling" = yes; then
31390   :
31391 else
31392   cat >conftest.$ac_ext <<_ACEOF
31393 /* confdefs.h.  */
31394 _ACEOF
31395 cat confdefs.h >>conftest.$ac_ext
31396 cat >>conftest.$ac_ext <<_ACEOF
31397 /* end confdefs.h.  */
31398 #include <ctype.h>
31399 #include <stdlib.h>
31400 #if ((' ' & 0x0FF) == 0x020)
31401 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31402 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31403 #else
31404 # define ISLOWER(c) \
31405                    (('a' <= (c) && (c) <= 'i') \
31406                      || ('j' <= (c) && (c) <= 'r') \
31407                      || ('s' <= (c) && (c) <= 'z'))
31408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31409 #endif
31410
31411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31412 int
31413 main ()
31414 {
31415   int i;
31416   for (i = 0; i < 256; i++)
31417     if (XOR (islower (i), ISLOWER (i))
31418         || toupper (i) != TOUPPER (i))
31419       return 2;
31420   return 0;
31421 }
31422 _ACEOF
31423 rm -f conftest$ac_exeext
31424 if { (ac_try="$ac_link"
31425 case "(($ac_try" in
31426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31427   *) ac_try_echo=$ac_try;;
31428 esac
31429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31430   (eval "$ac_link") 2>&5
31431   ac_status=$?
31432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31434   { (case "(($ac_try" in
31435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31436   *) ac_try_echo=$ac_try;;
31437 esac
31438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31439   (eval "$ac_try") 2>&5
31440   ac_status=$?
31441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442   (exit $ac_status); }; }; then
31443   :
31444 else
31445   echo "$as_me: program exited with status $ac_status" >&5
31446 echo "$as_me: failed program was:" >&5
31447 sed 's/^/| /' conftest.$ac_ext >&5
31448
31449 ( exit $ac_status )
31450 ac_cv_header_stdc=no
31451 fi
31452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31453 fi
31454
31455
31456 fi
31457 fi
31458 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31459 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31460 if test $ac_cv_header_stdc = yes; then
31461
31462 cat >>confdefs.h <<\_ACEOF
31463 #define STDC_HEADERS 1
31464 _ACEOF
31465
31466 fi
31467
31468 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31469 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31470 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31471   echo $ECHO_N "(cached) $ECHO_C" >&6
31472 else
31473   cat >conftest.$ac_ext <<_ACEOF
31474 /* confdefs.h.  */
31475 _ACEOF
31476 cat confdefs.h >>conftest.$ac_ext
31477 cat >>conftest.$ac_ext <<_ACEOF
31478 /* end confdefs.h.  */
31479 #include <sys/types.h>
31480 int
31481 main ()
31482 {
31483 return makedev(0, 0);
31484   ;
31485   return 0;
31486 }
31487 _ACEOF
31488 rm -f conftest.$ac_objext conftest$ac_exeext
31489 if { (ac_try="$ac_link"
31490 case "(($ac_try" in
31491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31492   *) ac_try_echo=$ac_try;;
31493 esac
31494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31495   (eval "$ac_link") 2>conftest.er1
31496   ac_status=$?
31497   grep -v '^ *+' conftest.er1 >conftest.err
31498   rm -f conftest.er1
31499   cat conftest.err >&5
31500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501   (exit $ac_status); } && {
31502          test -z "$ac_c_werror_flag" ||
31503          test ! -s conftest.err
31504        } && test -s conftest$ac_exeext &&
31505        $as_test_x conftest$ac_exeext; then
31506   ac_cv_header_sys_types_h_makedev=yes
31507 else
31508   echo "$as_me: failed program was:" >&5
31509 sed 's/^/| /' conftest.$ac_ext >&5
31510
31511         ac_cv_header_sys_types_h_makedev=no
31512 fi
31513
31514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31515       conftest$ac_exeext conftest.$ac_ext
31516
31517 fi
31518 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31519 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31520
31521 if test $ac_cv_header_sys_types_h_makedev = no; then
31522 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31523   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31524 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31525 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31526   echo $ECHO_N "(cached) $ECHO_C" >&6
31527 fi
31528 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31529 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31530 else
31531   # Is the header compilable?
31532 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31533 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31534 cat >conftest.$ac_ext <<_ACEOF
31535 /* confdefs.h.  */
31536 _ACEOF
31537 cat confdefs.h >>conftest.$ac_ext
31538 cat >>conftest.$ac_ext <<_ACEOF
31539 /* end confdefs.h.  */
31540 $ac_includes_default
31541 #include <sys/mkdev.h>
31542 _ACEOF
31543 rm -f conftest.$ac_objext
31544 if { (ac_try="$ac_compile"
31545 case "(($ac_try" in
31546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31547   *) ac_try_echo=$ac_try;;
31548 esac
31549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31550   (eval "$ac_compile") 2>conftest.er1
31551   ac_status=$?
31552   grep -v '^ *+' conftest.er1 >conftest.err
31553   rm -f conftest.er1
31554   cat conftest.err >&5
31555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556   (exit $ac_status); } && {
31557          test -z "$ac_c_werror_flag" ||
31558          test ! -s conftest.err
31559        } && test -s conftest.$ac_objext; then
31560   ac_header_compiler=yes
31561 else
31562   echo "$as_me: failed program was:" >&5
31563 sed 's/^/| /' conftest.$ac_ext >&5
31564
31565         ac_header_compiler=no
31566 fi
31567
31568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31570 echo "${ECHO_T}$ac_header_compiler" >&6; }
31571
31572 # Is the header present?
31573 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31574 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31575 cat >conftest.$ac_ext <<_ACEOF
31576 /* confdefs.h.  */
31577 _ACEOF
31578 cat confdefs.h >>conftest.$ac_ext
31579 cat >>conftest.$ac_ext <<_ACEOF
31580 /* end confdefs.h.  */
31581 #include <sys/mkdev.h>
31582 _ACEOF
31583 if { (ac_try="$ac_cpp conftest.$ac_ext"
31584 case "(($ac_try" in
31585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31586   *) ac_try_echo=$ac_try;;
31587 esac
31588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31589   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31590   ac_status=$?
31591   grep -v '^ *+' conftest.er1 >conftest.err
31592   rm -f conftest.er1
31593   cat conftest.err >&5
31594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595   (exit $ac_status); } >/dev/null && {
31596          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31597          test ! -s conftest.err
31598        }; then
31599   ac_header_preproc=yes
31600 else
31601   echo "$as_me: failed program was:" >&5
31602 sed 's/^/| /' conftest.$ac_ext >&5
31603
31604   ac_header_preproc=no
31605 fi
31606
31607 rm -f conftest.err conftest.$ac_ext
31608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31609 echo "${ECHO_T}$ac_header_preproc" >&6; }
31610
31611 # So?  What about this header?
31612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31613   yes:no: )
31614     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31615 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31616     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31617 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31618     ac_header_preproc=yes
31619     ;;
31620   no:yes:* )
31621     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31622 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31623     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31624 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31625     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31626 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31627     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31628 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31629     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31630 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31631     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31632 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31633
31634     ;;
31635 esac
31636 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31637 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31638 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31639   echo $ECHO_N "(cached) $ECHO_C" >&6
31640 else
31641   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31642 fi
31643 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31644 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31645
31646 fi
31647 if test $ac_cv_header_sys_mkdev_h = yes; then
31648
31649 cat >>confdefs.h <<\_ACEOF
31650 #define MAJOR_IN_MKDEV 1
31651 _ACEOF
31652
31653 fi
31654
31655
31656
31657   if test $ac_cv_header_sys_mkdev_h = no; then
31658     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31659   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31660 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31661 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31662   echo $ECHO_N "(cached) $ECHO_C" >&6
31663 fi
31664 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31665 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31666 else
31667   # Is the header compilable?
31668 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31669 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31670 cat >conftest.$ac_ext <<_ACEOF
31671 /* confdefs.h.  */
31672 _ACEOF
31673 cat confdefs.h >>conftest.$ac_ext
31674 cat >>conftest.$ac_ext <<_ACEOF
31675 /* end confdefs.h.  */
31676 $ac_includes_default
31677 #include <sys/sysmacros.h>
31678 _ACEOF
31679 rm -f conftest.$ac_objext
31680 if { (ac_try="$ac_compile"
31681 case "(($ac_try" in
31682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683   *) ac_try_echo=$ac_try;;
31684 esac
31685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31686   (eval "$ac_compile") 2>conftest.er1
31687   ac_status=$?
31688   grep -v '^ *+' conftest.er1 >conftest.err
31689   rm -f conftest.er1
31690   cat conftest.err >&5
31691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692   (exit $ac_status); } && {
31693          test -z "$ac_c_werror_flag" ||
31694          test ! -s conftest.err
31695        } && test -s conftest.$ac_objext; then
31696   ac_header_compiler=yes
31697 else
31698   echo "$as_me: failed program was:" >&5
31699 sed 's/^/| /' conftest.$ac_ext >&5
31700
31701         ac_header_compiler=no
31702 fi
31703
31704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31706 echo "${ECHO_T}$ac_header_compiler" >&6; }
31707
31708 # Is the header present?
31709 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31710 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31711 cat >conftest.$ac_ext <<_ACEOF
31712 /* confdefs.h.  */
31713 _ACEOF
31714 cat confdefs.h >>conftest.$ac_ext
31715 cat >>conftest.$ac_ext <<_ACEOF
31716 /* end confdefs.h.  */
31717 #include <sys/sysmacros.h>
31718 _ACEOF
31719 if { (ac_try="$ac_cpp conftest.$ac_ext"
31720 case "(($ac_try" in
31721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31722   *) ac_try_echo=$ac_try;;
31723 esac
31724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31725   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31726   ac_status=$?
31727   grep -v '^ *+' conftest.er1 >conftest.err
31728   rm -f conftest.er1
31729   cat conftest.err >&5
31730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731   (exit $ac_status); } >/dev/null && {
31732          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31733          test ! -s conftest.err
31734        }; then
31735   ac_header_preproc=yes
31736 else
31737   echo "$as_me: failed program was:" >&5
31738 sed 's/^/| /' conftest.$ac_ext >&5
31739
31740   ac_header_preproc=no
31741 fi
31742
31743 rm -f conftest.err conftest.$ac_ext
31744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31745 echo "${ECHO_T}$ac_header_preproc" >&6; }
31746
31747 # So?  What about this header?
31748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31749   yes:no: )
31750     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31751 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31752     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31753 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31754     ac_header_preproc=yes
31755     ;;
31756   no:yes:* )
31757     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31758 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31759     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31760 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31761     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31762 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31763     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31764 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31765     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31766 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31767     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31768 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31769
31770     ;;
31771 esac
31772 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31773 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31774 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31775   echo $ECHO_N "(cached) $ECHO_C" >&6
31776 else
31777   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31778 fi
31779 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31780 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31781
31782 fi
31783 if test $ac_cv_header_sys_sysmacros_h = yes; then
31784
31785 cat >>confdefs.h <<\_ACEOF
31786 #define MAJOR_IN_SYSMACROS 1
31787 _ACEOF
31788
31789 fi
31790
31791
31792   fi
31793 fi
31794
31795
31796
31797
31798
31799
31800 ac_header_dirent=no
31801 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31802   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31803 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31804 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31806   echo $ECHO_N "(cached) $ECHO_C" >&6
31807 else
31808   cat >conftest.$ac_ext <<_ACEOF
31809 /* confdefs.h.  */
31810 _ACEOF
31811 cat confdefs.h >>conftest.$ac_ext
31812 cat >>conftest.$ac_ext <<_ACEOF
31813 /* end confdefs.h.  */
31814 #include <sys/types.h>
31815 #include <$ac_hdr>
31816
31817 int
31818 main ()
31819 {
31820 if ((DIR *) 0)
31821 return 0;
31822   ;
31823   return 0;
31824 }
31825 _ACEOF
31826 rm -f conftest.$ac_objext
31827 if { (ac_try="$ac_compile"
31828 case "(($ac_try" in
31829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31830   *) ac_try_echo=$ac_try;;
31831 esac
31832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31833   (eval "$ac_compile") 2>conftest.er1
31834   ac_status=$?
31835   grep -v '^ *+' conftest.er1 >conftest.err
31836   rm -f conftest.er1
31837   cat conftest.err >&5
31838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839   (exit $ac_status); } && {
31840          test -z "$ac_c_werror_flag" ||
31841          test ! -s conftest.err
31842        } && test -s conftest.$ac_objext; then
31843   eval "$as_ac_Header=yes"
31844 else
31845   echo "$as_me: failed program was:" >&5
31846 sed 's/^/| /' conftest.$ac_ext >&5
31847
31848         eval "$as_ac_Header=no"
31849 fi
31850
31851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31852 fi
31853 ac_res=`eval echo '${'$as_ac_Header'}'`
31854                { echo "$as_me:$LINENO: result: $ac_res" >&5
31855 echo "${ECHO_T}$ac_res" >&6; }
31856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31857   cat >>confdefs.h <<_ACEOF
31858 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31859 _ACEOF
31860
31861 ac_header_dirent=$ac_hdr; break
31862 fi
31863
31864 done
31865 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31866 if test $ac_header_dirent = dirent.h; then
31867   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31868 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31869 if test "${ac_cv_search_opendir+set}" = set; then
31870   echo $ECHO_N "(cached) $ECHO_C" >&6
31871 else
31872   ac_func_search_save_LIBS=$LIBS
31873 cat >conftest.$ac_ext <<_ACEOF
31874 /* confdefs.h.  */
31875 _ACEOF
31876 cat confdefs.h >>conftest.$ac_ext
31877 cat >>conftest.$ac_ext <<_ACEOF
31878 /* end confdefs.h.  */
31879
31880 /* Override any GCC internal prototype to avoid an error.
31881    Use char because int might match the return type of a GCC
31882    builtin and then its argument prototype would still apply.  */
31883 #ifdef __cplusplus
31884 extern "C"
31885 #endif
31886 char opendir ();
31887 int
31888 main ()
31889 {
31890 return opendir ();
31891   ;
31892   return 0;
31893 }
31894 _ACEOF
31895 for ac_lib in '' dir; do
31896   if test -z "$ac_lib"; then
31897     ac_res="none required"
31898   else
31899     ac_res=-l$ac_lib
31900     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31901   fi
31902   rm -f conftest.$ac_objext conftest$ac_exeext
31903 if { (ac_try="$ac_link"
31904 case "(($ac_try" in
31905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31906   *) ac_try_echo=$ac_try;;
31907 esac
31908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31909   (eval "$ac_link") 2>conftest.er1
31910   ac_status=$?
31911   grep -v '^ *+' conftest.er1 >conftest.err
31912   rm -f conftest.er1
31913   cat conftest.err >&5
31914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31915   (exit $ac_status); } && {
31916          test -z "$ac_c_werror_flag" ||
31917          test ! -s conftest.err
31918        } && test -s conftest$ac_exeext &&
31919        $as_test_x conftest$ac_exeext; then
31920   ac_cv_search_opendir=$ac_res
31921 else
31922   echo "$as_me: failed program was:" >&5
31923 sed 's/^/| /' conftest.$ac_ext >&5
31924
31925
31926 fi
31927
31928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31929       conftest$ac_exeext
31930   if test "${ac_cv_search_opendir+set}" = set; then
31931   break
31932 fi
31933 done
31934 if test "${ac_cv_search_opendir+set}" = set; then
31935   :
31936 else
31937   ac_cv_search_opendir=no
31938 fi
31939 rm conftest.$ac_ext
31940 LIBS=$ac_func_search_save_LIBS
31941 fi
31942 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31943 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31944 ac_res=$ac_cv_search_opendir
31945 if test "$ac_res" != no; then
31946   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31947
31948 fi
31949
31950 else
31951   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31952 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31953 if test "${ac_cv_search_opendir+set}" = set; then
31954   echo $ECHO_N "(cached) $ECHO_C" >&6
31955 else
31956   ac_func_search_save_LIBS=$LIBS
31957 cat >conftest.$ac_ext <<_ACEOF
31958 /* confdefs.h.  */
31959 _ACEOF
31960 cat confdefs.h >>conftest.$ac_ext
31961 cat >>conftest.$ac_ext <<_ACEOF
31962 /* end confdefs.h.  */
31963
31964 /* Override any GCC internal prototype to avoid an error.
31965    Use char because int might match the return type of a GCC
31966    builtin and then its argument prototype would still apply.  */
31967 #ifdef __cplusplus
31968 extern "C"
31969 #endif
31970 char opendir ();
31971 int
31972 main ()
31973 {
31974 return opendir ();
31975   ;
31976   return 0;
31977 }
31978 _ACEOF
31979 for ac_lib in '' x; do
31980   if test -z "$ac_lib"; then
31981     ac_res="none required"
31982   else
31983     ac_res=-l$ac_lib
31984     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31985   fi
31986   rm -f conftest.$ac_objext conftest$ac_exeext
31987 if { (ac_try="$ac_link"
31988 case "(($ac_try" in
31989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31990   *) ac_try_echo=$ac_try;;
31991 esac
31992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31993   (eval "$ac_link") 2>conftest.er1
31994   ac_status=$?
31995   grep -v '^ *+' conftest.er1 >conftest.err
31996   rm -f conftest.er1
31997   cat conftest.err >&5
31998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999   (exit $ac_status); } && {
32000          test -z "$ac_c_werror_flag" ||
32001          test ! -s conftest.err
32002        } && test -s conftest$ac_exeext &&
32003        $as_test_x conftest$ac_exeext; then
32004   ac_cv_search_opendir=$ac_res
32005 else
32006   echo "$as_me: failed program was:" >&5
32007 sed 's/^/| /' conftest.$ac_ext >&5
32008
32009
32010 fi
32011
32012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32013       conftest$ac_exeext
32014   if test "${ac_cv_search_opendir+set}" = set; then
32015   break
32016 fi
32017 done
32018 if test "${ac_cv_search_opendir+set}" = set; then
32019   :
32020 else
32021   ac_cv_search_opendir=no
32022 fi
32023 rm conftest.$ac_ext
32024 LIBS=$ac_func_search_save_LIBS
32025 fi
32026 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32027 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
32028 ac_res=$ac_cv_search_opendir
32029 if test "$ac_res" != no; then
32030   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32031
32032 fi
32033
32034 fi
32035
32036 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
32037 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
32038 if test "${ac_cv_header_stat_broken+set}" = set; then
32039   echo $ECHO_N "(cached) $ECHO_C" >&6
32040 else
32041   cat >conftest.$ac_ext <<_ACEOF
32042 /* confdefs.h.  */
32043 _ACEOF
32044 cat confdefs.h >>conftest.$ac_ext
32045 cat >>conftest.$ac_ext <<_ACEOF
32046 /* end confdefs.h.  */
32047 #include <sys/types.h>
32048 #include <sys/stat.h>
32049
32050 #if defined S_ISBLK && defined S_IFDIR
32051 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
32052 #endif
32053
32054 #if defined S_ISBLK && defined S_IFCHR
32055 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
32056 #endif
32057
32058 #if defined S_ISLNK && defined S_IFREG
32059 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
32060 #endif
32061
32062 #if defined S_ISSOCK && defined S_IFREG
32063 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
32064 #endif
32065
32066 _ACEOF
32067 rm -f conftest.$ac_objext
32068 if { (ac_try="$ac_compile"
32069 case "(($ac_try" in
32070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32071   *) ac_try_echo=$ac_try;;
32072 esac
32073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32074   (eval "$ac_compile") 2>conftest.er1
32075   ac_status=$?
32076   grep -v '^ *+' conftest.er1 >conftest.err
32077   rm -f conftest.er1
32078   cat conftest.err >&5
32079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32080   (exit $ac_status); } && {
32081          test -z "$ac_c_werror_flag" ||
32082          test ! -s conftest.err
32083        } && test -s conftest.$ac_objext; then
32084   ac_cv_header_stat_broken=no
32085 else
32086   echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.$ac_ext >&5
32088
32089         ac_cv_header_stat_broken=yes
32090 fi
32091
32092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32093 fi
32094 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
32095 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
32096 if test $ac_cv_header_stat_broken = yes; then
32097
32098 cat >>confdefs.h <<\_ACEOF
32099 #define STAT_MACROS_BROKEN 1
32100 _ACEOF
32101
32102 fi
32103
32104 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
32105 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
32106 if test "${ac_cv_header_sys_wait_h+set}" = set; then
32107   echo $ECHO_N "(cached) $ECHO_C" >&6
32108 else
32109   cat >conftest.$ac_ext <<_ACEOF
32110 /* confdefs.h.  */
32111 _ACEOF
32112 cat confdefs.h >>conftest.$ac_ext
32113 cat >>conftest.$ac_ext <<_ACEOF
32114 /* end confdefs.h.  */
32115 #include <sys/types.h>
32116 #include <sys/wait.h>
32117 #ifndef WEXITSTATUS
32118 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
32119 #endif
32120 #ifndef WIFEXITED
32121 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
32122 #endif
32123
32124 int
32125 main ()
32126 {
32127   int s;
32128   wait (&s);
32129   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
32130   ;
32131   return 0;
32132 }
32133 _ACEOF
32134 rm -f conftest.$ac_objext
32135 if { (ac_try="$ac_compile"
32136 case "(($ac_try" in
32137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32138   *) ac_try_echo=$ac_try;;
32139 esac
32140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32141   (eval "$ac_compile") 2>conftest.er1
32142   ac_status=$?
32143   grep -v '^ *+' conftest.er1 >conftest.err
32144   rm -f conftest.er1
32145   cat conftest.err >&5
32146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32147   (exit $ac_status); } && {
32148          test -z "$ac_c_werror_flag" ||
32149          test ! -s conftest.err
32150        } && test -s conftest.$ac_objext; then
32151   ac_cv_header_sys_wait_h=yes
32152 else
32153   echo "$as_me: failed program was:" >&5
32154 sed 's/^/| /' conftest.$ac_ext >&5
32155
32156         ac_cv_header_sys_wait_h=no
32157 fi
32158
32159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32160 fi
32161 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
32162 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
32163 if test $ac_cv_header_sys_wait_h = yes; then
32164
32165 cat >>confdefs.h <<\_ACEOF
32166 #define HAVE_SYS_WAIT_H 1
32167 _ACEOF
32168
32169 fi
32170
32171 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32172 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32173 if test "${ac_cv_header_time+set}" = set; then
32174   echo $ECHO_N "(cached) $ECHO_C" >&6
32175 else
32176   cat >conftest.$ac_ext <<_ACEOF
32177 /* confdefs.h.  */
32178 _ACEOF
32179 cat confdefs.h >>conftest.$ac_ext
32180 cat >>conftest.$ac_ext <<_ACEOF
32181 /* end confdefs.h.  */
32182 #include <sys/types.h>
32183 #include <sys/time.h>
32184 #include <time.h>
32185
32186 int
32187 main ()
32188 {
32189 if ((struct tm *) 0)
32190 return 0;
32191   ;
32192   return 0;
32193 }
32194 _ACEOF
32195 rm -f conftest.$ac_objext
32196 if { (ac_try="$ac_compile"
32197 case "(($ac_try" in
32198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32199   *) ac_try_echo=$ac_try;;
32200 esac
32201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32202   (eval "$ac_compile") 2>conftest.er1
32203   ac_status=$?
32204   grep -v '^ *+' conftest.er1 >conftest.err
32205   rm -f conftest.er1
32206   cat conftest.err >&5
32207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32208   (exit $ac_status); } && {
32209          test -z "$ac_c_werror_flag" ||
32210          test ! -s conftest.err
32211        } && test -s conftest.$ac_objext; then
32212   ac_cv_header_time=yes
32213 else
32214   echo "$as_me: failed program was:" >&5
32215 sed 's/^/| /' conftest.$ac_ext >&5
32216
32217         ac_cv_header_time=no
32218 fi
32219
32220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32221 fi
32222 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32223 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32224 if test $ac_cv_header_time = yes; then
32225
32226 cat >>confdefs.h <<\_ACEOF
32227 #define TIME_WITH_SYS_TIME 1
32228 _ACEOF
32229
32230 fi
32231
32232 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32233 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32234 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32235   echo $ECHO_N "(cached) $ECHO_C" >&6
32236 else
32237   cat >conftest.$ac_ext <<_ACEOF
32238 /* confdefs.h.  */
32239 _ACEOF
32240 cat confdefs.h >>conftest.$ac_ext
32241 cat >>conftest.$ac_ext <<_ACEOF
32242 /* end confdefs.h.  */
32243 $ac_includes_default
32244 int
32245 main ()
32246 {
32247 static struct stat ac_aggr;
32248 if (ac_aggr.st_blksize)
32249 return 0;
32250   ;
32251   return 0;
32252 }
32253 _ACEOF
32254 rm -f conftest.$ac_objext
32255 if { (ac_try="$ac_compile"
32256 case "(($ac_try" in
32257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258   *) ac_try_echo=$ac_try;;
32259 esac
32260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261   (eval "$ac_compile") 2>conftest.er1
32262   ac_status=$?
32263   grep -v '^ *+' conftest.er1 >conftest.err
32264   rm -f conftest.er1
32265   cat conftest.err >&5
32266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267   (exit $ac_status); } && {
32268          test -z "$ac_c_werror_flag" ||
32269          test ! -s conftest.err
32270        } && test -s conftest.$ac_objext; then
32271   ac_cv_member_struct_stat_st_blksize=yes
32272 else
32273   echo "$as_me: failed program was:" >&5
32274 sed 's/^/| /' conftest.$ac_ext >&5
32275
32276         cat >conftest.$ac_ext <<_ACEOF
32277 /* confdefs.h.  */
32278 _ACEOF
32279 cat confdefs.h >>conftest.$ac_ext
32280 cat >>conftest.$ac_ext <<_ACEOF
32281 /* end confdefs.h.  */
32282 $ac_includes_default
32283 int
32284 main ()
32285 {
32286 static struct stat ac_aggr;
32287 if (sizeof ac_aggr.st_blksize)
32288 return 0;
32289   ;
32290   return 0;
32291 }
32292 _ACEOF
32293 rm -f conftest.$ac_objext
32294 if { (ac_try="$ac_compile"
32295 case "(($ac_try" in
32296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32297   *) ac_try_echo=$ac_try;;
32298 esac
32299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32300   (eval "$ac_compile") 2>conftest.er1
32301   ac_status=$?
32302   grep -v '^ *+' conftest.er1 >conftest.err
32303   rm -f conftest.er1
32304   cat conftest.err >&5
32305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306   (exit $ac_status); } && {
32307          test -z "$ac_c_werror_flag" ||
32308          test ! -s conftest.err
32309        } && test -s conftest.$ac_objext; then
32310   ac_cv_member_struct_stat_st_blksize=yes
32311 else
32312   echo "$as_me: failed program was:" >&5
32313 sed 's/^/| /' conftest.$ac_ext >&5
32314
32315         ac_cv_member_struct_stat_st_blksize=no
32316 fi
32317
32318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32319 fi
32320
32321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32322 fi
32323 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32324 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32325 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32326
32327 cat >>confdefs.h <<_ACEOF
32328 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32329 _ACEOF
32330
32331
32332 cat >>confdefs.h <<\_ACEOF
32333 #define HAVE_ST_BLKSIZE 1
32334 _ACEOF
32335
32336 fi
32337
32338
32339 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32340 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32341 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32342   echo $ECHO_N "(cached) $ECHO_C" >&6
32343 else
32344   cat >conftest.$ac_ext <<_ACEOF
32345 /* confdefs.h.  */
32346 _ACEOF
32347 cat confdefs.h >>conftest.$ac_ext
32348 cat >>conftest.$ac_ext <<_ACEOF
32349 /* end confdefs.h.  */
32350 $ac_includes_default
32351 int
32352 main ()
32353 {
32354 static struct stat ac_aggr;
32355 if (ac_aggr.st_blocks)
32356 return 0;
32357   ;
32358   return 0;
32359 }
32360 _ACEOF
32361 rm -f conftest.$ac_objext
32362 if { (ac_try="$ac_compile"
32363 case "(($ac_try" in
32364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32365   *) ac_try_echo=$ac_try;;
32366 esac
32367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32368   (eval "$ac_compile") 2>conftest.er1
32369   ac_status=$?
32370   grep -v '^ *+' conftest.er1 >conftest.err
32371   rm -f conftest.er1
32372   cat conftest.err >&5
32373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374   (exit $ac_status); } && {
32375          test -z "$ac_c_werror_flag" ||
32376          test ! -s conftest.err
32377        } && test -s conftest.$ac_objext; then
32378   ac_cv_member_struct_stat_st_blocks=yes
32379 else
32380   echo "$as_me: failed program was:" >&5
32381 sed 's/^/| /' conftest.$ac_ext >&5
32382
32383         cat >conftest.$ac_ext <<_ACEOF
32384 /* confdefs.h.  */
32385 _ACEOF
32386 cat confdefs.h >>conftest.$ac_ext
32387 cat >>conftest.$ac_ext <<_ACEOF
32388 /* end confdefs.h.  */
32389 $ac_includes_default
32390 int
32391 main ()
32392 {
32393 static struct stat ac_aggr;
32394 if (sizeof ac_aggr.st_blocks)
32395 return 0;
32396   ;
32397   return 0;
32398 }
32399 _ACEOF
32400 rm -f conftest.$ac_objext
32401 if { (ac_try="$ac_compile"
32402 case "(($ac_try" in
32403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32404   *) ac_try_echo=$ac_try;;
32405 esac
32406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32407   (eval "$ac_compile") 2>conftest.er1
32408   ac_status=$?
32409   grep -v '^ *+' conftest.er1 >conftest.err
32410   rm -f conftest.er1
32411   cat conftest.err >&5
32412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413   (exit $ac_status); } && {
32414          test -z "$ac_c_werror_flag" ||
32415          test ! -s conftest.err
32416        } && test -s conftest.$ac_objext; then
32417   ac_cv_member_struct_stat_st_blocks=yes
32418 else
32419   echo "$as_me: failed program was:" >&5
32420 sed 's/^/| /' conftest.$ac_ext >&5
32421
32422         ac_cv_member_struct_stat_st_blocks=no
32423 fi
32424
32425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32426 fi
32427
32428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32429 fi
32430 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32431 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32432 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32433
32434 cat >>confdefs.h <<_ACEOF
32435 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32436 _ACEOF
32437
32438
32439 cat >>confdefs.h <<\_ACEOF
32440 #define HAVE_ST_BLOCKS 1
32441 _ACEOF
32442
32443 else
32444   case " $LIBOBJS " in
32445   *" fileblocks.$ac_objext "* ) ;;
32446   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32447  ;;
32448 esac
32449
32450 fi
32451
32452
32453 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32454 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32455 if test "${ac_cv_struct_tm+set}" = set; then
32456   echo $ECHO_N "(cached) $ECHO_C" >&6
32457 else
32458   cat >conftest.$ac_ext <<_ACEOF
32459 /* confdefs.h.  */
32460 _ACEOF
32461 cat confdefs.h >>conftest.$ac_ext
32462 cat >>conftest.$ac_ext <<_ACEOF
32463 /* end confdefs.h.  */
32464 #include <sys/types.h>
32465 #include <time.h>
32466
32467 int
32468 main ()
32469 {
32470 struct tm tm;
32471                                      int *p = &tm.tm_sec;
32472                                      return !p;
32473   ;
32474   return 0;
32475 }
32476 _ACEOF
32477 rm -f conftest.$ac_objext
32478 if { (ac_try="$ac_compile"
32479 case "(($ac_try" in
32480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32481   *) ac_try_echo=$ac_try;;
32482 esac
32483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32484   (eval "$ac_compile") 2>conftest.er1
32485   ac_status=$?
32486   grep -v '^ *+' conftest.er1 >conftest.err
32487   rm -f conftest.er1
32488   cat conftest.err >&5
32489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490   (exit $ac_status); } && {
32491          test -z "$ac_c_werror_flag" ||
32492          test ! -s conftest.err
32493        } && test -s conftest.$ac_objext; then
32494   ac_cv_struct_tm=time.h
32495 else
32496   echo "$as_me: failed program was:" >&5
32497 sed 's/^/| /' conftest.$ac_ext >&5
32498
32499         ac_cv_struct_tm=sys/time.h
32500 fi
32501
32502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32503 fi
32504 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32505 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32506 if test $ac_cv_struct_tm = sys/time.h; then
32507
32508 cat >>confdefs.h <<\_ACEOF
32509 #define TM_IN_SYS_TIME 1
32510 _ACEOF
32511
32512 fi
32513
32514 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32515 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32516 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32517   echo $ECHO_N "(cached) $ECHO_C" >&6
32518 else
32519   cat >conftest.$ac_ext <<_ACEOF
32520 /* confdefs.h.  */
32521 _ACEOF
32522 cat confdefs.h >>conftest.$ac_ext
32523 cat >>conftest.$ac_ext <<_ACEOF
32524 /* end confdefs.h.  */
32525 #include <sys/types.h>
32526 #include <$ac_cv_struct_tm>
32527
32528
32529 int
32530 main ()
32531 {
32532 static struct tm ac_aggr;
32533 if (ac_aggr.tm_zone)
32534 return 0;
32535   ;
32536   return 0;
32537 }
32538 _ACEOF
32539 rm -f conftest.$ac_objext
32540 if { (ac_try="$ac_compile"
32541 case "(($ac_try" in
32542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32543   *) ac_try_echo=$ac_try;;
32544 esac
32545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32546   (eval "$ac_compile") 2>conftest.er1
32547   ac_status=$?
32548   grep -v '^ *+' conftest.er1 >conftest.err
32549   rm -f conftest.er1
32550   cat conftest.err >&5
32551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552   (exit $ac_status); } && {
32553          test -z "$ac_c_werror_flag" ||
32554          test ! -s conftest.err
32555        } && test -s conftest.$ac_objext; then
32556   ac_cv_member_struct_tm_tm_zone=yes
32557 else
32558   echo "$as_me: failed program was:" >&5
32559 sed 's/^/| /' conftest.$ac_ext >&5
32560
32561         cat >conftest.$ac_ext <<_ACEOF
32562 /* confdefs.h.  */
32563 _ACEOF
32564 cat confdefs.h >>conftest.$ac_ext
32565 cat >>conftest.$ac_ext <<_ACEOF
32566 /* end confdefs.h.  */
32567 #include <sys/types.h>
32568 #include <$ac_cv_struct_tm>
32569
32570
32571 int
32572 main ()
32573 {
32574 static struct tm ac_aggr;
32575 if (sizeof ac_aggr.tm_zone)
32576 return 0;
32577   ;
32578   return 0;
32579 }
32580 _ACEOF
32581 rm -f conftest.$ac_objext
32582 if { (ac_try="$ac_compile"
32583 case "(($ac_try" in
32584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32585   *) ac_try_echo=$ac_try;;
32586 esac
32587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32588   (eval "$ac_compile") 2>conftest.er1
32589   ac_status=$?
32590   grep -v '^ *+' conftest.er1 >conftest.err
32591   rm -f conftest.er1
32592   cat conftest.err >&5
32593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594   (exit $ac_status); } && {
32595          test -z "$ac_c_werror_flag" ||
32596          test ! -s conftest.err
32597        } && test -s conftest.$ac_objext; then
32598   ac_cv_member_struct_tm_tm_zone=yes
32599 else
32600   echo "$as_me: failed program was:" >&5
32601 sed 's/^/| /' conftest.$ac_ext >&5
32602
32603         ac_cv_member_struct_tm_tm_zone=no
32604 fi
32605
32606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32607 fi
32608
32609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32610 fi
32611 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32612 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32613 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32614
32615 cat >>confdefs.h <<_ACEOF
32616 #define HAVE_STRUCT_TM_TM_ZONE 1
32617 _ACEOF
32618
32619
32620 fi
32621
32622 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32623
32624 cat >>confdefs.h <<\_ACEOF
32625 #define HAVE_TM_ZONE 1
32626 _ACEOF
32627
32628 else
32629   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32630 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32631 if test "${ac_cv_have_decl_tzname+set}" = set; then
32632   echo $ECHO_N "(cached) $ECHO_C" >&6
32633 else
32634   cat >conftest.$ac_ext <<_ACEOF
32635 /* confdefs.h.  */
32636 _ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h.  */
32640 #include <time.h>
32641
32642 int
32643 main ()
32644 {
32645 #ifndef tzname
32646   (void) tzname;
32647 #endif
32648
32649   ;
32650   return 0;
32651 }
32652 _ACEOF
32653 rm -f conftest.$ac_objext
32654 if { (ac_try="$ac_compile"
32655 case "(($ac_try" in
32656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657   *) ac_try_echo=$ac_try;;
32658 esac
32659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660   (eval "$ac_compile") 2>conftest.er1
32661   ac_status=$?
32662   grep -v '^ *+' conftest.er1 >conftest.err
32663   rm -f conftest.er1
32664   cat conftest.err >&5
32665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666   (exit $ac_status); } && {
32667          test -z "$ac_c_werror_flag" ||
32668          test ! -s conftest.err
32669        } && test -s conftest.$ac_objext; then
32670   ac_cv_have_decl_tzname=yes
32671 else
32672   echo "$as_me: failed program was:" >&5
32673 sed 's/^/| /' conftest.$ac_ext >&5
32674
32675         ac_cv_have_decl_tzname=no
32676 fi
32677
32678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32679 fi
32680 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32681 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32682 if test $ac_cv_have_decl_tzname = yes; then
32683
32684 cat >>confdefs.h <<_ACEOF
32685 #define HAVE_DECL_TZNAME 1
32686 _ACEOF
32687
32688
32689 else
32690   cat >>confdefs.h <<_ACEOF
32691 #define HAVE_DECL_TZNAME 0
32692 _ACEOF
32693
32694
32695 fi
32696
32697
32698   { echo "$as_me:$LINENO: checking for tzname" >&5
32699 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32700 if test "${ac_cv_var_tzname+set}" = set; then
32701   echo $ECHO_N "(cached) $ECHO_C" >&6
32702 else
32703   cat >conftest.$ac_ext <<_ACEOF
32704 /* confdefs.h.  */
32705 _ACEOF
32706 cat confdefs.h >>conftest.$ac_ext
32707 cat >>conftest.$ac_ext <<_ACEOF
32708 /* end confdefs.h.  */
32709 #include <time.h>
32710 #if !HAVE_DECL_TZNAME
32711 extern char *tzname[];
32712 #endif
32713
32714 int
32715 main ()
32716 {
32717 return tzname[0][0];
32718   ;
32719   return 0;
32720 }
32721 _ACEOF
32722 rm -f conftest.$ac_objext conftest$ac_exeext
32723 if { (ac_try="$ac_link"
32724 case "(($ac_try" in
32725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32726   *) ac_try_echo=$ac_try;;
32727 esac
32728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32729   (eval "$ac_link") 2>conftest.er1
32730   ac_status=$?
32731   grep -v '^ *+' conftest.er1 >conftest.err
32732   rm -f conftest.er1
32733   cat conftest.err >&5
32734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32735   (exit $ac_status); } && {
32736          test -z "$ac_c_werror_flag" ||
32737          test ! -s conftest.err
32738        } && test -s conftest$ac_exeext &&
32739        $as_test_x conftest$ac_exeext; then
32740   ac_cv_var_tzname=yes
32741 else
32742   echo "$as_me: failed program was:" >&5
32743 sed 's/^/| /' conftest.$ac_ext >&5
32744
32745         ac_cv_var_tzname=no
32746 fi
32747
32748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32749       conftest$ac_exeext conftest.$ac_ext
32750 fi
32751 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32752 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32753   if test $ac_cv_var_tzname = yes; then
32754
32755 cat >>confdefs.h <<\_ACEOF
32756 #define HAVE_TZNAME 1
32757 _ACEOF
32758
32759   fi
32760 fi
32761
32762
32763 { echo "$as_me:$LINENO: checking for utime.h" >&5
32764 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32765 if test "${ba_cv_header_utime_h+set}" = set; then
32766   echo $ECHO_N "(cached) $ECHO_C" >&6
32767 else
32768
32769        cat >conftest.$ac_ext <<_ACEOF
32770 /* confdefs.h.  */
32771 _ACEOF
32772 cat confdefs.h >>conftest.$ac_ext
32773 cat >>conftest.$ac_ext <<_ACEOF
32774 /* end confdefs.h.  */
32775
32776               #include <sys/types.h>
32777               #include <utime.h>
32778
32779 int
32780 main ()
32781 {
32782
32783               struct utimbuf foo
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_c_werror_flag" ||
32804          test ! -s conftest.err
32805        } && test -s conftest.$ac_objext; then
32806
32807               ba_cv_header_utime_h=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_utime_h=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_utime_h" >&5
32824 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32825 test $ba_cv_header_utime_h = yes &&
32826 cat >>confdefs.h <<\_ACEOF
32827 #define HAVE_UTIME_H 1
32828 _ACEOF
32829
32830
32831 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32832 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32833 if test "${ba_cv_header_socklen_t+set}" = set; then
32834   echo $ECHO_N "(cached) $ECHO_C" >&6
32835 else
32836
32837        cat >conftest.$ac_ext <<_ACEOF
32838 /* confdefs.h.  */
32839 _ACEOF
32840 cat confdefs.h >>conftest.$ac_ext
32841 cat >>conftest.$ac_ext <<_ACEOF
32842 /* end confdefs.h.  */
32843
32844               #include <sys/types.h>
32845               #include <sys/socket.h>
32846
32847 int
32848 main ()
32849 {
32850
32851               socklen_t x
32852
32853   ;
32854   return 0;
32855 }
32856 _ACEOF
32857 rm -f conftest.$ac_objext
32858 if { (ac_try="$ac_compile"
32859 case "(($ac_try" in
32860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32861   *) ac_try_echo=$ac_try;;
32862 esac
32863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32864   (eval "$ac_compile") 2>conftest.er1
32865   ac_status=$?
32866   grep -v '^ *+' conftest.er1 >conftest.err
32867   rm -f conftest.er1
32868   cat conftest.err >&5
32869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32870   (exit $ac_status); } && {
32871          test -z "$ac_c_werror_flag" ||
32872          test ! -s conftest.err
32873        } && test -s conftest.$ac_objext; then
32874
32875              ba_cv_header_socklen_t=yes
32876
32877 else
32878   echo "$as_me: failed program was:" >&5
32879 sed 's/^/| /' conftest.$ac_ext >&5
32880
32881
32882              ba_cv_header_socklen_t=no
32883
32884
32885 fi
32886
32887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32888
32889
32890 fi
32891 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32892 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32893 test $ba_cv_header_socklen_t = yes &&
32894 cat >>confdefs.h <<\_ACEOF
32895 #define HAVE_SOCKLEN_T 1
32896 _ACEOF
32897
32898
32899 ac_ext=cpp
32900 ac_cpp='$CXXCPP $CPPFLAGS'
32901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32904
32905 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32906 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32907 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32908   echo $ECHO_N "(cached) $ECHO_C" >&6
32909 else
32910
32911        cat >conftest.$ac_ext <<_ACEOF
32912 /* confdefs.h.  */
32913 _ACEOF
32914 cat confdefs.h >>conftest.$ac_ext
32915 cat >>conftest.$ac_ext <<_ACEOF
32916 /* end confdefs.h.  */
32917
32918               #include <unistd.h>
32919               #include <sys/types.h>
32920               #include <sys/ioctl.h>
32921
32922 int
32923 main ()
32924 {
32925
32926               int (*d_ioctl)(int fd, unsigned long int request, ...);
32927               d_ioctl = ::ioctl;
32928
32929   ;
32930   return 0;
32931 }
32932 _ACEOF
32933 rm -f conftest.$ac_objext
32934 if { (ac_try="$ac_compile"
32935 case "(($ac_try" in
32936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32937   *) ac_try_echo=$ac_try;;
32938 esac
32939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32940   (eval "$ac_compile") 2>conftest.er1
32941   ac_status=$?
32942   grep -v '^ *+' conftest.er1 >conftest.err
32943   rm -f conftest.er1
32944   cat conftest.err >&5
32945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946   (exit $ac_status); } && {
32947          test -z "$ac_cxx_werror_flag" ||
32948          test ! -s conftest.err
32949        } && test -s conftest.$ac_objext; then
32950
32951              ba_cv_header_ioctl_req_t=yes
32952
32953 else
32954   echo "$as_me: failed program was:" >&5
32955 sed 's/^/| /' conftest.$ac_ext >&5
32956
32957
32958              ba_cv_header_ioctl_req_t=no
32959
32960
32961 fi
32962
32963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32964
32965
32966 fi
32967 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32968 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32969 test $ba_cv_header_ioctl_req_t = yes &&
32970 cat >>confdefs.h <<\_ACEOF
32971 #define HAVE_IOCTL_ULINT_REQUEST 1
32972 _ACEOF
32973
32974
32975 ac_ext=c
32976 ac_cpp='$CPP $CPPFLAGS'
32977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32980
32981
32982 ac_ext=cpp
32983 ac_cpp='$CXXCPP $CPPFLAGS'
32984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32987
32988 { echo "$as_me:$LINENO: checking for typeof" >&5
32989 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32990 if test "${ba_cv_have_typeof+set}" = set; then
32991   echo $ECHO_N "(cached) $ECHO_C" >&6
32992 else
32993
32994        if test "$cross_compiling" = yes; then
32995
32996               ba_cv_have_typeof=no
32997
32998
32999 else
33000   cat >conftest.$ac_ext <<_ACEOF
33001 /* confdefs.h.  */
33002 _ACEOF
33003 cat confdefs.h >>conftest.$ac_ext
33004 cat >>conftest.$ac_ext <<_ACEOF
33005 /* end confdefs.h.  */
33006
33007               main(){char *a = 0; a = (typeof a)a;}
33008
33009 _ACEOF
33010 rm -f conftest$ac_exeext
33011 if { (ac_try="$ac_link"
33012 case "(($ac_try" in
33013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014   *) ac_try_echo=$ac_try;;
33015 esac
33016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017   (eval "$ac_link") 2>&5
33018   ac_status=$?
33019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33021   { (case "(($ac_try" in
33022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33023   *) ac_try_echo=$ac_try;;
33024 esac
33025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33026   (eval "$ac_try") 2>&5
33027   ac_status=$?
33028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029   (exit $ac_status); }; }; then
33030
33031               ba_cv_have_typeof=yes
33032
33033 else
33034   echo "$as_me: program exited with status $ac_status" >&5
33035 echo "$as_me: failed program was:" >&5
33036 sed 's/^/| /' conftest.$ac_ext >&5
33037
33038 ( exit $ac_status )
33039
33040               ba_cv_have_typeof=no
33041
33042 fi
33043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33044 fi
33045
33046
33047
33048
33049 fi
33050 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
33051 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
33052 test $ba_cv_have_typeof = yes &&
33053 cat >>confdefs.h <<\_ACEOF
33054 #define HAVE_TYPEOF 1
33055 _ACEOF
33056
33057 ac_ext=c
33058 ac_cpp='$CPP $CPPFLAGS'
33059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33062
33063
33064 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33065 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33066 if test "${ac_cv_c_const+set}" = set; then
33067   echo $ECHO_N "(cached) $ECHO_C" >&6
33068 else
33069   cat >conftest.$ac_ext <<_ACEOF
33070 /* confdefs.h.  */
33071 _ACEOF
33072 cat confdefs.h >>conftest.$ac_ext
33073 cat >>conftest.$ac_ext <<_ACEOF
33074 /* end confdefs.h.  */
33075
33076 int
33077 main ()
33078 {
33079 /* FIXME: Include the comments suggested by Paul. */
33080 #ifndef __cplusplus
33081   /* Ultrix mips cc rejects this.  */
33082   typedef int charset[2];
33083   const charset cs;
33084   /* SunOS 4.1.1 cc rejects this.  */
33085   char const *const *pcpcc;
33086   char **ppc;
33087   /* NEC SVR4.0.2 mips cc rejects this.  */
33088   struct point {int x, y;};
33089   static struct point const zero = {0,0};
33090   /* AIX XL C 1.02.0.0 rejects this.
33091      It does not let you subtract one const X* pointer from another in
33092      an arm of an if-expression whose if-part is not a constant
33093      expression */
33094   const char *g = "string";
33095   pcpcc = &g + (g ? g-g : 0);
33096   /* HPUX 7.0 cc rejects these. */
33097   ++pcpcc;
33098   ppc = (char**) pcpcc;
33099   pcpcc = (char const *const *) ppc;
33100   { /* SCO 3.2v4 cc rejects this.  */
33101     char *t;
33102     char const *s = 0 ? (char *) 0 : (char const *) 0;
33103
33104     *t++ = 0;
33105     if (s) return 0;
33106   }
33107   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33108     int x[] = {25, 17};
33109     const int *foo = &x[0];
33110     ++foo;
33111   }
33112   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33113     typedef const int *iptr;
33114     iptr p = 0;
33115     ++p;
33116   }
33117   { /* AIX XL C 1.02.0.0 rejects this saying
33118        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33119     struct s { int j; const int *ap[3]; };
33120     struct s *b; b->j = 5;
33121   }
33122   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33123     const int foo = 10;
33124     if (!foo) return 0;
33125   }
33126   return !cs[0] && !zero.x;
33127 #endif
33128
33129   ;
33130   return 0;
33131 }
33132 _ACEOF
33133 rm -f conftest.$ac_objext
33134 if { (ac_try="$ac_compile"
33135 case "(($ac_try" in
33136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33137   *) ac_try_echo=$ac_try;;
33138 esac
33139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33140   (eval "$ac_compile") 2>conftest.er1
33141   ac_status=$?
33142   grep -v '^ *+' conftest.er1 >conftest.err
33143   rm -f conftest.er1
33144   cat conftest.err >&5
33145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146   (exit $ac_status); } && {
33147          test -z "$ac_c_werror_flag" ||
33148          test ! -s conftest.err
33149        } && test -s conftest.$ac_objext; then
33150   ac_cv_c_const=yes
33151 else
33152   echo "$as_me: failed program was:" >&5
33153 sed 's/^/| /' conftest.$ac_ext >&5
33154
33155         ac_cv_c_const=no
33156 fi
33157
33158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33159 fi
33160 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33161 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33162 if test $ac_cv_c_const = no; then
33163
33164 cat >>confdefs.h <<\_ACEOF
33165 #define const
33166 _ACEOF
33167
33168 fi
33169
33170
33171 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
33172 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
33173 fstype=no
33174 # The order of these tests is important.
33175 cat >conftest.$ac_ext <<_ACEOF
33176 /* confdefs.h.  */
33177 _ACEOF
33178 cat confdefs.h >>conftest.$ac_ext
33179 cat >>conftest.$ac_ext <<_ACEOF
33180 /* end confdefs.h.  */
33181
33182        #include <sys/statvfs.h>
33183        #include <sys/fstyp.h>
33184
33185 _ACEOF
33186 if { (ac_try="$ac_cpp conftest.$ac_ext"
33187 case "(($ac_try" in
33188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189   *) ac_try_echo=$ac_try;;
33190 esac
33191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33193   ac_status=$?
33194   grep -v '^ *+' conftest.er1 >conftest.err
33195   rm -f conftest.er1
33196   cat conftest.err >&5
33197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198   (exit $ac_status); } >/dev/null && {
33199          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33200          test ! -s conftest.err
33201        }; then
33202   cat >>confdefs.h <<\_ACEOF
33203 #define FSTYPE_STATVFS 1
33204 _ACEOF
33205  fstype=SVR4
33206
33207 else
33208   echo "$as_me: failed program was:" >&5
33209 sed 's/^/| /' conftest.$ac_ext >&5
33210
33211
33212 fi
33213
33214 rm -f conftest.err conftest.$ac_ext
33215 if test $fstype = no; then
33216    cat >conftest.$ac_ext <<_ACEOF
33217 /* confdefs.h.  */
33218 _ACEOF
33219 cat confdefs.h >>conftest.$ac_ext
33220 cat >>conftest.$ac_ext <<_ACEOF
33221 /* end confdefs.h.  */
33222
33223           #include <sys/statfs.h>
33224           #include <sys/fstyp.h>
33225
33226 _ACEOF
33227 if { (ac_try="$ac_cpp conftest.$ac_ext"
33228 case "(($ac_try" in
33229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230   *) ac_try_echo=$ac_try;;
33231 esac
33232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33234   ac_status=$?
33235   grep -v '^ *+' conftest.er1 >conftest.err
33236   rm -f conftest.er1
33237   cat conftest.err >&5
33238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239   (exit $ac_status); } >/dev/null && {
33240          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33241          test ! -s conftest.err
33242        }; then
33243   cat >>confdefs.h <<\_ACEOF
33244 #define FSTYPE_USG_STATFS 1
33245 _ACEOF
33246  fstype=SVR3
33247
33248 else
33249   echo "$as_me: failed program was:" >&5
33250 sed 's/^/| /' conftest.$ac_ext >&5
33251
33252
33253 fi
33254
33255 rm -f conftest.err conftest.$ac_ext
33256 fi
33257 if test $fstype = no; then
33258    cat >conftest.$ac_ext <<_ACEOF
33259 /* confdefs.h.  */
33260 _ACEOF
33261 cat confdefs.h >>conftest.$ac_ext
33262 cat >>conftest.$ac_ext <<_ACEOF
33263 /* end confdefs.h.  */
33264
33265           #include <sys/statfs.h>
33266           #include <sys/vmount.h>
33267
33268 _ACEOF
33269 if { (ac_try="$ac_cpp conftest.$ac_ext"
33270 case "(($ac_try" in
33271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33272   *) ac_try_echo=$ac_try;;
33273 esac
33274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33276   ac_status=$?
33277   grep -v '^ *+' conftest.er1 >conftest.err
33278   rm -f conftest.er1
33279   cat conftest.err >&5
33280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33281   (exit $ac_status); } >/dev/null && {
33282          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33283          test ! -s conftest.err
33284        }; then
33285   cat >>confdefs.h <<\_ACEOF
33286 #define FSTYPE_AIX_STATFS 1
33287 _ACEOF
33288  fstype=AIX
33289
33290 else
33291   echo "$as_me: failed program was:" >&5
33292 sed 's/^/| /' conftest.$ac_ext >&5
33293
33294
33295 fi
33296
33297 rm -f conftest.err conftest.$ac_ext
33298 fi
33299 if test $fstype = no; then
33300    cat >conftest.$ac_ext <<_ACEOF
33301 /* confdefs.h.  */
33302 _ACEOF
33303 cat confdefs.h >>conftest.$ac_ext
33304 cat >>conftest.$ac_ext <<_ACEOF
33305 /* end confdefs.h.  */
33306
33307           #include <mntent.h>
33308
33309 _ACEOF
33310 if { (ac_try="$ac_cpp conftest.$ac_ext"
33311 case "(($ac_try" in
33312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33313   *) ac_try_echo=$ac_try;;
33314 esac
33315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33317   ac_status=$?
33318   grep -v '^ *+' conftest.er1 >conftest.err
33319   rm -f conftest.er1
33320   cat conftest.err >&5
33321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322   (exit $ac_status); } >/dev/null && {
33323          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33324          test ! -s conftest.err
33325        }; then
33326   cat >>confdefs.h <<\_ACEOF
33327 #define FSTYPE_MNTENT 1
33328 _ACEOF
33329  fstype=4.3BSD
33330
33331 else
33332   echo "$as_me: failed program was:" >&5
33333 sed 's/^/| /' conftest.$ac_ext >&5
33334
33335
33336 fi
33337
33338 rm -f conftest.err conftest.$ac_ext
33339 fi
33340 if test $fstype = no; then
33341    cat >conftest.$ac_ext <<_ACEOF
33342 /* confdefs.h.  */
33343 _ACEOF
33344 cat confdefs.h >>conftest.$ac_ext
33345 cat >>conftest.$ac_ext <<_ACEOF
33346 /* end confdefs.h.  */
33347 #include <sys/mount.h>
33348
33349 _ACEOF
33350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33351   $EGREP "f_type;" >/dev/null 2>&1; then
33352   cat >>confdefs.h <<\_ACEOF
33353 #define FSTYPE_STATFS 1
33354 _ACEOF
33355  fstype=4.4BSD/OSF1
33356 fi
33357 rm -f conftest*
33358
33359 fi
33360 if test $fstype = no; then
33361    cat >conftest.$ac_ext <<_ACEOF
33362 /* confdefs.h.  */
33363 _ACEOF
33364 cat confdefs.h >>conftest.$ac_ext
33365 cat >>conftest.$ac_ext <<_ACEOF
33366 /* end confdefs.h.  */
33367
33368           #include <sys/mount.h>
33369           #include <sys/fs_types.h>
33370
33371 _ACEOF
33372 if { (ac_try="$ac_cpp conftest.$ac_ext"
33373 case "(($ac_try" in
33374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375   *) ac_try_echo=$ac_try;;
33376 esac
33377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33378   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33379   ac_status=$?
33380   grep -v '^ *+' conftest.er1 >conftest.err
33381   rm -f conftest.er1
33382   cat conftest.err >&5
33383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384   (exit $ac_status); } >/dev/null && {
33385          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33386          test ! -s conftest.err
33387        }; then
33388   cat >>confdefs.h <<\_ACEOF
33389 #define FSTYPE_GETMNT 1
33390 _ACEOF
33391  fstype=Ultrix
33392
33393 else
33394   echo "$as_me: failed program was:" >&5
33395 sed 's/^/| /' conftest.$ac_ext >&5
33396
33397
33398 fi
33399
33400 rm -f conftest.err conftest.$ac_ext
33401 fi
33402 { echo "$as_me:$LINENO: result: $fstype" >&5
33403 echo "${ECHO_T}$fstype" >&6; }
33404
33405 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33406   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33407 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33408 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33409   echo $ECHO_N "(cached) $ECHO_C" >&6
33410 fi
33411 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33412 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33413 else
33414   # Is the header compilable?
33415 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33416 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33417 cat >conftest.$ac_ext <<_ACEOF
33418 /* confdefs.h.  */
33419 _ACEOF
33420 cat confdefs.h >>conftest.$ac_ext
33421 cat >>conftest.$ac_ext <<_ACEOF
33422 /* end confdefs.h.  */
33423 $ac_includes_default
33424 #include <sys/statvfs.h>
33425 _ACEOF
33426 rm -f conftest.$ac_objext
33427 if { (ac_try="$ac_compile"
33428 case "(($ac_try" in
33429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33430   *) ac_try_echo=$ac_try;;
33431 esac
33432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33433   (eval "$ac_compile") 2>conftest.er1
33434   ac_status=$?
33435   grep -v '^ *+' conftest.er1 >conftest.err
33436   rm -f conftest.er1
33437   cat conftest.err >&5
33438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439   (exit $ac_status); } && {
33440          test -z "$ac_c_werror_flag" ||
33441          test ! -s conftest.err
33442        } && test -s conftest.$ac_objext; then
33443   ac_header_compiler=yes
33444 else
33445   echo "$as_me: failed program was:" >&5
33446 sed 's/^/| /' conftest.$ac_ext >&5
33447
33448         ac_header_compiler=no
33449 fi
33450
33451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33453 echo "${ECHO_T}$ac_header_compiler" >&6; }
33454
33455 # Is the header present?
33456 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33457 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33458 cat >conftest.$ac_ext <<_ACEOF
33459 /* confdefs.h.  */
33460 _ACEOF
33461 cat confdefs.h >>conftest.$ac_ext
33462 cat >>conftest.$ac_ext <<_ACEOF
33463 /* end confdefs.h.  */
33464 #include <sys/statvfs.h>
33465 _ACEOF
33466 if { (ac_try="$ac_cpp conftest.$ac_ext"
33467 case "(($ac_try" in
33468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33469   *) ac_try_echo=$ac_try;;
33470 esac
33471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33473   ac_status=$?
33474   grep -v '^ *+' conftest.er1 >conftest.err
33475   rm -f conftest.er1
33476   cat conftest.err >&5
33477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33478   (exit $ac_status); } >/dev/null && {
33479          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33480          test ! -s conftest.err
33481        }; then
33482   ac_header_preproc=yes
33483 else
33484   echo "$as_me: failed program was:" >&5
33485 sed 's/^/| /' conftest.$ac_ext >&5
33486
33487   ac_header_preproc=no
33488 fi
33489
33490 rm -f conftest.err conftest.$ac_ext
33491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33492 echo "${ECHO_T}$ac_header_preproc" >&6; }
33493
33494 # So?  What about this header?
33495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33496   yes:no: )
33497     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33498 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33499     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33500 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33501     ac_header_preproc=yes
33502     ;;
33503   no:yes:* )
33504     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33505 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33506     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
33507 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
33508     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33509 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33510     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
33511 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33512     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33513 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33514     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33515 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33516
33517     ;;
33518 esac
33519 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33520 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33521 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33522   echo $ECHO_N "(cached) $ECHO_C" >&6
33523 else
33524   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33525 fi
33526 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33527 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33528
33529 fi
33530 if test $ac_cv_header_sys_statvfs_h = yes; then
33531
33532 cat >>confdefs.h <<\_ACEOF
33533 #define HAVE_SYS_STATVFS_H 1
33534 _ACEOF
33535
33536 fi
33537
33538
33539
33540 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33541 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33542 if test "${ac_cv_type_signal+set}" = set; then
33543   echo $ECHO_N "(cached) $ECHO_C" >&6
33544 else
33545   cat >conftest.$ac_ext <<_ACEOF
33546 /* confdefs.h.  */
33547 _ACEOF
33548 cat confdefs.h >>conftest.$ac_ext
33549 cat >>conftest.$ac_ext <<_ACEOF
33550 /* end confdefs.h.  */
33551 #include <sys/types.h>
33552 #include <signal.h>
33553
33554 int
33555 main ()
33556 {
33557 return *(signal (0, 0)) (0) == 1;
33558   ;
33559   return 0;
33560 }
33561 _ACEOF
33562 rm -f conftest.$ac_objext
33563 if { (ac_try="$ac_compile"
33564 case "(($ac_try" in
33565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33566   *) ac_try_echo=$ac_try;;
33567 esac
33568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33569   (eval "$ac_compile") 2>conftest.er1
33570   ac_status=$?
33571   grep -v '^ *+' conftest.er1 >conftest.err
33572   rm -f conftest.er1
33573   cat conftest.err >&5
33574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575   (exit $ac_status); } && {
33576          test -z "$ac_c_werror_flag" ||
33577          test ! -s conftest.err
33578        } && test -s conftest.$ac_objext; then
33579   ac_cv_type_signal=int
33580 else
33581   echo "$as_me: failed program was:" >&5
33582 sed 's/^/| /' conftest.$ac_ext >&5
33583
33584         ac_cv_type_signal=void
33585 fi
33586
33587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33588 fi
33589 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33590 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33591
33592 cat >>confdefs.h <<_ACEOF
33593 #define RETSIGTYPE $ac_cv_type_signal
33594 _ACEOF
33595
33596
33597
33598   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33599 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33600   if test "${bash_cv_signal_vintage+set}" = set; then
33601   echo $ECHO_N "(cached) $ECHO_C" >&6
33602 else
33603
33604     cat >conftest.$ac_ext <<_ACEOF
33605 /* confdefs.h.  */
33606 _ACEOF
33607 cat confdefs.h >>conftest.$ac_ext
33608 cat >>conftest.$ac_ext <<_ACEOF
33609 /* end confdefs.h.  */
33610 #include <signal.h>
33611 int
33612 main ()
33613 {
33614
33615       sigset_t ss;
33616       struct sigaction sa;
33617       sigemptyset(&ss); sigsuspend(&ss);
33618       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33619       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33620
33621   ;
33622   return 0;
33623 }
33624 _ACEOF
33625 rm -f conftest.$ac_objext conftest$ac_exeext
33626 if { (ac_try="$ac_link"
33627 case "(($ac_try" in
33628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33629   *) ac_try_echo=$ac_try;;
33630 esac
33631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33632   (eval "$ac_link") 2>conftest.er1
33633   ac_status=$?
33634   grep -v '^ *+' conftest.er1 >conftest.err
33635   rm -f conftest.er1
33636   cat conftest.err >&5
33637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33638   (exit $ac_status); } && {
33639          test -z "$ac_c_werror_flag" ||
33640          test ! -s conftest.err
33641        } && test -s conftest$ac_exeext &&
33642        $as_test_x conftest$ac_exeext; then
33643   bash_cv_signal_vintage="posix"
33644 else
33645   echo "$as_me: failed program was:" >&5
33646 sed 's/^/| /' conftest.$ac_ext >&5
33647
33648
33649       cat >conftest.$ac_ext <<_ACEOF
33650 /* confdefs.h.  */
33651 _ACEOF
33652 cat confdefs.h >>conftest.$ac_ext
33653 cat >>conftest.$ac_ext <<_ACEOF
33654 /* end confdefs.h.  */
33655 #include <signal.h>
33656 int
33657 main ()
33658 {
33659
33660           int mask = sigmask(SIGINT);
33661           sigsetmask(mask); sigblock(mask); sigpause(mask);
33662
33663   ;
33664   return 0;
33665 }
33666 _ACEOF
33667 rm -f conftest.$ac_objext conftest$ac_exeext
33668 if { (ac_try="$ac_link"
33669 case "(($ac_try" in
33670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33671   *) ac_try_echo=$ac_try;;
33672 esac
33673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33674   (eval "$ac_link") 2>conftest.er1
33675   ac_status=$?
33676   grep -v '^ *+' conftest.er1 >conftest.err
33677   rm -f conftest.er1
33678   cat conftest.err >&5
33679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680   (exit $ac_status); } && {
33681          test -z "$ac_c_werror_flag" ||
33682          test ! -s conftest.err
33683        } && test -s conftest$ac_exeext &&
33684        $as_test_x conftest$ac_exeext; then
33685   bash_cv_signal_vintage="4.2bsd"
33686 else
33687   echo "$as_me: failed program was:" >&5
33688 sed 's/^/| /' conftest.$ac_ext >&5
33689
33690
33691         cat >conftest.$ac_ext <<_ACEOF
33692 /* confdefs.h.  */
33693 _ACEOF
33694 cat confdefs.h >>conftest.$ac_ext
33695 cat >>conftest.$ac_ext <<_ACEOF
33696 /* end confdefs.h.  */
33697
33698           #include <signal.h>
33699           RETSIGTYPE foo() { }
33700 int
33701 main ()
33702 {
33703
33704                   int mask = sigmask(SIGINT);
33705                   sigset(SIGINT, foo); sigrelse(SIGINT);
33706                   sighold(SIGINT); sigpause(SIGINT);
33707
33708   ;
33709   return 0;
33710 }
33711 _ACEOF
33712 rm -f conftest.$ac_objext conftest$ac_exeext
33713 if { (ac_try="$ac_link"
33714 case "(($ac_try" in
33715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33716   *) ac_try_echo=$ac_try;;
33717 esac
33718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33719   (eval "$ac_link") 2>conftest.er1
33720   ac_status=$?
33721   grep -v '^ *+' conftest.er1 >conftest.err
33722   rm -f conftest.er1
33723   cat conftest.err >&5
33724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725   (exit $ac_status); } && {
33726          test -z "$ac_c_werror_flag" ||
33727          test ! -s conftest.err
33728        } && test -s conftest$ac_exeext &&
33729        $as_test_x conftest$ac_exeext; then
33730   bash_cv_signal_vintage="svr3"
33731 else
33732   echo "$as_me: failed program was:" >&5
33733 sed 's/^/| /' conftest.$ac_ext >&5
33734
33735         bash_cv_signal_vintage="v7"
33736
33737 fi
33738
33739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33740       conftest$ac_exeext conftest.$ac_ext
33741
33742 fi
33743
33744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33745       conftest$ac_exeext conftest.$ac_ext
33746
33747 fi
33748
33749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33750       conftest$ac_exeext conftest.$ac_ext
33751
33752 fi
33753
33754   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33755 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33756   if test "$bash_cv_signal_vintage" = "posix"; then
33757     cat >>confdefs.h <<\_ACEOF
33758 #define HAVE_POSIX_SIGNALS 1
33759 _ACEOF
33760
33761   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33762     cat >>confdefs.h <<\_ACEOF
33763 #define HAVE_BSD_SIGNALS 1
33764 _ACEOF
33765
33766   elif test "$bash_cv_signal_vintage" = "svr3"; then
33767     cat >>confdefs.h <<\_ACEOF
33768 #define HAVE_USG_SIGHOLD 1
33769 _ACEOF
33770
33771   fi
33772
33773 { echo "$as_me:$LINENO: checking for mode_t" >&5
33774 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33775 if test "${ac_cv_type_mode_t+set}" = set; then
33776   echo $ECHO_N "(cached) $ECHO_C" >&6
33777 else
33778   cat >conftest.$ac_ext <<_ACEOF
33779 /* confdefs.h.  */
33780 _ACEOF
33781 cat confdefs.h >>conftest.$ac_ext
33782 cat >>conftest.$ac_ext <<_ACEOF
33783 /* end confdefs.h.  */
33784 $ac_includes_default
33785 typedef mode_t ac__type_new_;
33786 int
33787 main ()
33788 {
33789 if ((ac__type_new_ *) 0)
33790   return 0;
33791 if (sizeof (ac__type_new_))
33792   return 0;
33793   ;
33794   return 0;
33795 }
33796 _ACEOF
33797 rm -f conftest.$ac_objext
33798 if { (ac_try="$ac_compile"
33799 case "(($ac_try" in
33800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33801   *) ac_try_echo=$ac_try;;
33802 esac
33803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33804   (eval "$ac_compile") 2>conftest.er1
33805   ac_status=$?
33806   grep -v '^ *+' conftest.er1 >conftest.err
33807   rm -f conftest.er1
33808   cat conftest.err >&5
33809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810   (exit $ac_status); } && {
33811          test -z "$ac_c_werror_flag" ||
33812          test ! -s conftest.err
33813        } && test -s conftest.$ac_objext; then
33814   ac_cv_type_mode_t=yes
33815 else
33816   echo "$as_me: failed program was:" >&5
33817 sed 's/^/| /' conftest.$ac_ext >&5
33818
33819         ac_cv_type_mode_t=no
33820 fi
33821
33822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33823 fi
33824 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33825 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33826 if test $ac_cv_type_mode_t = yes; then
33827   :
33828 else
33829
33830 cat >>confdefs.h <<_ACEOF
33831 #define mode_t int
33832 _ACEOF
33833
33834 fi
33835
33836 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33837 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33838 if test "${ac_cv_type_uid_t+set}" = set; then
33839   echo $ECHO_N "(cached) $ECHO_C" >&6
33840 else
33841   cat >conftest.$ac_ext <<_ACEOF
33842 /* confdefs.h.  */
33843 _ACEOF
33844 cat confdefs.h >>conftest.$ac_ext
33845 cat >>conftest.$ac_ext <<_ACEOF
33846 /* end confdefs.h.  */
33847 #include <sys/types.h>
33848
33849 _ACEOF
33850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33851   $EGREP "uid_t" >/dev/null 2>&1; then
33852   ac_cv_type_uid_t=yes
33853 else
33854   ac_cv_type_uid_t=no
33855 fi
33856 rm -f conftest*
33857
33858 fi
33859 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33860 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33861 if test $ac_cv_type_uid_t = no; then
33862
33863 cat >>confdefs.h <<\_ACEOF
33864 #define uid_t int
33865 _ACEOF
33866
33867
33868 cat >>confdefs.h <<\_ACEOF
33869 #define gid_t int
33870 _ACEOF
33871
33872 fi
33873
33874 { echo "$as_me:$LINENO: checking for size_t" >&5
33875 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33876 if test "${ac_cv_type_size_t+set}" = set; then
33877   echo $ECHO_N "(cached) $ECHO_C" >&6
33878 else
33879   cat >conftest.$ac_ext <<_ACEOF
33880 /* confdefs.h.  */
33881 _ACEOF
33882 cat confdefs.h >>conftest.$ac_ext
33883 cat >>conftest.$ac_ext <<_ACEOF
33884 /* end confdefs.h.  */
33885 $ac_includes_default
33886 typedef size_t ac__type_new_;
33887 int
33888 main ()
33889 {
33890 if ((ac__type_new_ *) 0)
33891   return 0;
33892 if (sizeof (ac__type_new_))
33893   return 0;
33894   ;
33895   return 0;
33896 }
33897 _ACEOF
33898 rm -f conftest.$ac_objext
33899 if { (ac_try="$ac_compile"
33900 case "(($ac_try" in
33901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33902   *) ac_try_echo=$ac_try;;
33903 esac
33904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33905   (eval "$ac_compile") 2>conftest.er1
33906   ac_status=$?
33907   grep -v '^ *+' conftest.er1 >conftest.err
33908   rm -f conftest.er1
33909   cat conftest.err >&5
33910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911   (exit $ac_status); } && {
33912          test -z "$ac_c_werror_flag" ||
33913          test ! -s conftest.err
33914        } && test -s conftest.$ac_objext; then
33915   ac_cv_type_size_t=yes
33916 else
33917   echo "$as_me: failed program was:" >&5
33918 sed 's/^/| /' conftest.$ac_ext >&5
33919
33920         ac_cv_type_size_t=no
33921 fi
33922
33923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33924 fi
33925 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33926 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33927 if test $ac_cv_type_size_t = yes; then
33928   :
33929 else
33930
33931 cat >>confdefs.h <<_ACEOF
33932 #define size_t unsigned int
33933 _ACEOF
33934
33935 fi
33936
33937 { echo "$as_me:$LINENO: checking for pid_t" >&5
33938 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33939 if test "${ac_cv_type_pid_t+set}" = set; then
33940   echo $ECHO_N "(cached) $ECHO_C" >&6
33941 else
33942   cat >conftest.$ac_ext <<_ACEOF
33943 /* confdefs.h.  */
33944 _ACEOF
33945 cat confdefs.h >>conftest.$ac_ext
33946 cat >>conftest.$ac_ext <<_ACEOF
33947 /* end confdefs.h.  */
33948 $ac_includes_default
33949 typedef pid_t ac__type_new_;
33950 int
33951 main ()
33952 {
33953 if ((ac__type_new_ *) 0)
33954   return 0;
33955 if (sizeof (ac__type_new_))
33956   return 0;
33957   ;
33958   return 0;
33959 }
33960 _ACEOF
33961 rm -f conftest.$ac_objext
33962 if { (ac_try="$ac_compile"
33963 case "(($ac_try" in
33964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33965   *) ac_try_echo=$ac_try;;
33966 esac
33967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33968   (eval "$ac_compile") 2>conftest.er1
33969   ac_status=$?
33970   grep -v '^ *+' conftest.er1 >conftest.err
33971   rm -f conftest.er1
33972   cat conftest.err >&5
33973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974   (exit $ac_status); } && {
33975          test -z "$ac_c_werror_flag" ||
33976          test ! -s conftest.err
33977        } && test -s conftest.$ac_objext; then
33978   ac_cv_type_pid_t=yes
33979 else
33980   echo "$as_me: failed program was:" >&5
33981 sed 's/^/| /' conftest.$ac_ext >&5
33982
33983         ac_cv_type_pid_t=no
33984 fi
33985
33986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33987 fi
33988 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33989 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33990 if test $ac_cv_type_pid_t = yes; then
33991   :
33992 else
33993
33994 cat >>confdefs.h <<_ACEOF
33995 #define pid_t int
33996 _ACEOF
33997
33998 fi
33999
34000 { echo "$as_me:$LINENO: checking for off_t" >&5
34001 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34002 if test "${ac_cv_type_off_t+set}" = set; then
34003   echo $ECHO_N "(cached) $ECHO_C" >&6
34004 else
34005   cat >conftest.$ac_ext <<_ACEOF
34006 /* confdefs.h.  */
34007 _ACEOF
34008 cat confdefs.h >>conftest.$ac_ext
34009 cat >>conftest.$ac_ext <<_ACEOF
34010 /* end confdefs.h.  */
34011 $ac_includes_default
34012 typedef off_t ac__type_new_;
34013 int
34014 main ()
34015 {
34016 if ((ac__type_new_ *) 0)
34017   return 0;
34018 if (sizeof (ac__type_new_))
34019   return 0;
34020   ;
34021   return 0;
34022 }
34023 _ACEOF
34024 rm -f conftest.$ac_objext
34025 if { (ac_try="$ac_compile"
34026 case "(($ac_try" in
34027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34028   *) ac_try_echo=$ac_try;;
34029 esac
34030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34031   (eval "$ac_compile") 2>conftest.er1
34032   ac_status=$?
34033   grep -v '^ *+' conftest.er1 >conftest.err
34034   rm -f conftest.er1
34035   cat conftest.err >&5
34036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037   (exit $ac_status); } && {
34038          test -z "$ac_c_werror_flag" ||
34039          test ! -s conftest.err
34040        } && test -s conftest.$ac_objext; then
34041   ac_cv_type_off_t=yes
34042 else
34043   echo "$as_me: failed program was:" >&5
34044 sed 's/^/| /' conftest.$ac_ext >&5
34045
34046         ac_cv_type_off_t=no
34047 fi
34048
34049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34050 fi
34051 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34052 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34053 if test $ac_cv_type_off_t = yes; then
34054   :
34055 else
34056
34057 cat >>confdefs.h <<_ACEOF
34058 #define off_t long int
34059 _ACEOF
34060
34061 fi
34062
34063
34064   { echo "$as_me:$LINENO: checking for intptr_t" >&5
34065 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
34066 if test "${ac_cv_type_intptr_t+set}" = set; then
34067   echo $ECHO_N "(cached) $ECHO_C" >&6
34068 else
34069   cat >conftest.$ac_ext <<_ACEOF
34070 /* confdefs.h.  */
34071 _ACEOF
34072 cat confdefs.h >>conftest.$ac_ext
34073 cat >>conftest.$ac_ext <<_ACEOF
34074 /* end confdefs.h.  */
34075 $ac_includes_default
34076 typedef intptr_t ac__type_new_;
34077 int
34078 main ()
34079 {
34080 if ((ac__type_new_ *) 0)
34081   return 0;
34082 if (sizeof (ac__type_new_))
34083   return 0;
34084   ;
34085   return 0;
34086 }
34087 _ACEOF
34088 rm -f conftest.$ac_objext
34089 if { (ac_try="$ac_compile"
34090 case "(($ac_try" in
34091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34092   *) ac_try_echo=$ac_try;;
34093 esac
34094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34095   (eval "$ac_compile") 2>conftest.er1
34096   ac_status=$?
34097   grep -v '^ *+' conftest.er1 >conftest.err
34098   rm -f conftest.er1
34099   cat conftest.err >&5
34100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101   (exit $ac_status); } && {
34102          test -z "$ac_c_werror_flag" ||
34103          test ! -s conftest.err
34104        } && test -s conftest.$ac_objext; then
34105   ac_cv_type_intptr_t=yes
34106 else
34107   echo "$as_me: failed program was:" >&5
34108 sed 's/^/| /' conftest.$ac_ext >&5
34109
34110         ac_cv_type_intptr_t=no
34111 fi
34112
34113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34114 fi
34115 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
34116 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
34117 if test $ac_cv_type_intptr_t = yes; then
34118
34119 cat >>confdefs.h <<\_ACEOF
34120 #define HAVE_INTPTR_T 1
34121 _ACEOF
34122
34123 else
34124   for ac_type in 'int' 'long int' 'long long int'; do
34125        cat >conftest.$ac_ext <<_ACEOF
34126 /* confdefs.h.  */
34127 _ACEOF
34128 cat confdefs.h >>conftest.$ac_ext
34129 cat >>conftest.$ac_ext <<_ACEOF
34130 /* end confdefs.h.  */
34131 $ac_includes_default
34132 int
34133 main ()
34134 {
34135 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34136 test_array [0] = 0
34137
34138   ;
34139   return 0;
34140 }
34141 _ACEOF
34142 rm -f conftest.$ac_objext
34143 if { (ac_try="$ac_compile"
34144 case "(($ac_try" in
34145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34146   *) ac_try_echo=$ac_try;;
34147 esac
34148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34149   (eval "$ac_compile") 2>conftest.er1
34150   ac_status=$?
34151   grep -v '^ *+' conftest.er1 >conftest.err
34152   rm -f conftest.er1
34153   cat conftest.err >&5
34154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155   (exit $ac_status); } && {
34156          test -z "$ac_c_werror_flag" ||
34157          test ! -s conftest.err
34158        } && test -s conftest.$ac_objext; then
34159
34160 cat >>confdefs.h <<_ACEOF
34161 #define intptr_t $ac_type
34162 _ACEOF
34163
34164           ac_type=
34165 else
34166   echo "$as_me: failed program was:" >&5
34167 sed 's/^/| /' conftest.$ac_ext >&5
34168
34169
34170 fi
34171
34172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34173        test -z "$ac_type" && break
34174      done
34175 fi
34176
34177
34178
34179   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
34180 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
34181 if test "${ac_cv_type_uintptr_t+set}" = set; then
34182   echo $ECHO_N "(cached) $ECHO_C" >&6
34183 else
34184   cat >conftest.$ac_ext <<_ACEOF
34185 /* confdefs.h.  */
34186 _ACEOF
34187 cat confdefs.h >>conftest.$ac_ext
34188 cat >>conftest.$ac_ext <<_ACEOF
34189 /* end confdefs.h.  */
34190 $ac_includes_default
34191 typedef uintptr_t ac__type_new_;
34192 int
34193 main ()
34194 {
34195 if ((ac__type_new_ *) 0)
34196   return 0;
34197 if (sizeof (ac__type_new_))
34198   return 0;
34199   ;
34200   return 0;
34201 }
34202 _ACEOF
34203 rm -f conftest.$ac_objext
34204 if { (ac_try="$ac_compile"
34205 case "(($ac_try" in
34206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34207   *) ac_try_echo=$ac_try;;
34208 esac
34209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34210   (eval "$ac_compile") 2>conftest.er1
34211   ac_status=$?
34212   grep -v '^ *+' conftest.er1 >conftest.err
34213   rm -f conftest.er1
34214   cat conftest.err >&5
34215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216   (exit $ac_status); } && {
34217          test -z "$ac_c_werror_flag" ||
34218          test ! -s conftest.err
34219        } && test -s conftest.$ac_objext; then
34220   ac_cv_type_uintptr_t=yes
34221 else
34222   echo "$as_me: failed program was:" >&5
34223 sed 's/^/| /' conftest.$ac_ext >&5
34224
34225         ac_cv_type_uintptr_t=no
34226 fi
34227
34228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34229 fi
34230 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34231 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34232 if test $ac_cv_type_uintptr_t = yes; then
34233
34234 cat >>confdefs.h <<\_ACEOF
34235 #define HAVE_UINTPTR_T 1
34236 _ACEOF
34237
34238 else
34239   for ac_type in 'unsigned int' 'unsigned long int' \
34240         'unsigned long long int'; do
34241        cat >conftest.$ac_ext <<_ACEOF
34242 /* confdefs.h.  */
34243 _ACEOF
34244 cat confdefs.h >>conftest.$ac_ext
34245 cat >>conftest.$ac_ext <<_ACEOF
34246 /* end confdefs.h.  */
34247 $ac_includes_default
34248 int
34249 main ()
34250 {
34251 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34252 test_array [0] = 0
34253
34254   ;
34255   return 0;
34256 }
34257 _ACEOF
34258 rm -f conftest.$ac_objext
34259 if { (ac_try="$ac_compile"
34260 case "(($ac_try" in
34261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34262   *) ac_try_echo=$ac_try;;
34263 esac
34264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34265   (eval "$ac_compile") 2>conftest.er1
34266   ac_status=$?
34267   grep -v '^ *+' conftest.er1 >conftest.err
34268   rm -f conftest.er1
34269   cat conftest.err >&5
34270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271   (exit $ac_status); } && {
34272          test -z "$ac_c_werror_flag" ||
34273          test ! -s conftest.err
34274        } && test -s conftest.$ac_objext; then
34275
34276 cat >>confdefs.h <<_ACEOF
34277 #define uintptr_t $ac_type
34278 _ACEOF
34279
34280           ac_type=
34281 else
34282   echo "$as_me: failed program was:" >&5
34283 sed 's/^/| /' conftest.$ac_ext >&5
34284
34285
34286 fi
34287
34288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34289        test -z "$ac_type" && break
34290      done
34291 fi
34292
34293
34294 { echo "$as_me:$LINENO: checking for ino_t" >&5
34295 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34296 if test "${ac_cv_type_ino_t+set}" = set; then
34297   echo $ECHO_N "(cached) $ECHO_C" >&6
34298 else
34299   cat >conftest.$ac_ext <<_ACEOF
34300 /* confdefs.h.  */
34301 _ACEOF
34302 cat confdefs.h >>conftest.$ac_ext
34303 cat >>conftest.$ac_ext <<_ACEOF
34304 /* end confdefs.h.  */
34305 $ac_includes_default
34306 typedef ino_t ac__type_new_;
34307 int
34308 main ()
34309 {
34310 if ((ac__type_new_ *) 0)
34311   return 0;
34312 if (sizeof (ac__type_new_))
34313   return 0;
34314   ;
34315   return 0;
34316 }
34317 _ACEOF
34318 rm -f conftest.$ac_objext
34319 if { (ac_try="$ac_compile"
34320 case "(($ac_try" in
34321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34322   *) ac_try_echo=$ac_try;;
34323 esac
34324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34325   (eval "$ac_compile") 2>conftest.er1
34326   ac_status=$?
34327   grep -v '^ *+' conftest.er1 >conftest.err
34328   rm -f conftest.er1
34329   cat conftest.err >&5
34330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331   (exit $ac_status); } && {
34332          test -z "$ac_c_werror_flag" ||
34333          test ! -s conftest.err
34334        } && test -s conftest.$ac_objext; then
34335   ac_cv_type_ino_t=yes
34336 else
34337   echo "$as_me: failed program was:" >&5
34338 sed 's/^/| /' conftest.$ac_ext >&5
34339
34340         ac_cv_type_ino_t=no
34341 fi
34342
34343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34344 fi
34345 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34346 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34347 if test $ac_cv_type_ino_t = yes; then
34348   :
34349 else
34350
34351 cat >>confdefs.h <<_ACEOF
34352 #define ino_t unsigned long
34353 _ACEOF
34354
34355 fi
34356
34357 { echo "$as_me:$LINENO: checking for dev_t" >&5
34358 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34359 if test "${ac_cv_type_dev_t+set}" = set; then
34360   echo $ECHO_N "(cached) $ECHO_C" >&6
34361 else
34362   cat >conftest.$ac_ext <<_ACEOF
34363 /* confdefs.h.  */
34364 _ACEOF
34365 cat confdefs.h >>conftest.$ac_ext
34366 cat >>conftest.$ac_ext <<_ACEOF
34367 /* end confdefs.h.  */
34368 $ac_includes_default
34369 typedef dev_t ac__type_new_;
34370 int
34371 main ()
34372 {
34373 if ((ac__type_new_ *) 0)
34374   return 0;
34375 if (sizeof (ac__type_new_))
34376   return 0;
34377   ;
34378   return 0;
34379 }
34380 _ACEOF
34381 rm -f conftest.$ac_objext
34382 if { (ac_try="$ac_compile"
34383 case "(($ac_try" in
34384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34385   *) ac_try_echo=$ac_try;;
34386 esac
34387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34388   (eval "$ac_compile") 2>conftest.er1
34389   ac_status=$?
34390   grep -v '^ *+' conftest.er1 >conftest.err
34391   rm -f conftest.er1
34392   cat conftest.err >&5
34393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394   (exit $ac_status); } && {
34395          test -z "$ac_c_werror_flag" ||
34396          test ! -s conftest.err
34397        } && test -s conftest.$ac_objext; then
34398   ac_cv_type_dev_t=yes
34399 else
34400   echo "$as_me: failed program was:" >&5
34401 sed 's/^/| /' conftest.$ac_ext >&5
34402
34403         ac_cv_type_dev_t=no
34404 fi
34405
34406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34407 fi
34408 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34409 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34410 if test $ac_cv_type_dev_t = yes; then
34411   :
34412 else
34413
34414 cat >>confdefs.h <<_ACEOF
34415 #define dev_t unsigned long
34416 _ACEOF
34417
34418 fi
34419
34420 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34421 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34422 if test "${ac_cv_type_daddr_t+set}" = set; then
34423   echo $ECHO_N "(cached) $ECHO_C" >&6
34424 else
34425   cat >conftest.$ac_ext <<_ACEOF
34426 /* confdefs.h.  */
34427 _ACEOF
34428 cat confdefs.h >>conftest.$ac_ext
34429 cat >>conftest.$ac_ext <<_ACEOF
34430 /* end confdefs.h.  */
34431 $ac_includes_default
34432 typedef daddr_t ac__type_new_;
34433 int
34434 main ()
34435 {
34436 if ((ac__type_new_ *) 0)
34437   return 0;
34438 if (sizeof (ac__type_new_))
34439   return 0;
34440   ;
34441   return 0;
34442 }
34443 _ACEOF
34444 rm -f conftest.$ac_objext
34445 if { (ac_try="$ac_compile"
34446 case "(($ac_try" in
34447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34448   *) ac_try_echo=$ac_try;;
34449 esac
34450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34451   (eval "$ac_compile") 2>conftest.er1
34452   ac_status=$?
34453   grep -v '^ *+' conftest.er1 >conftest.err
34454   rm -f conftest.er1
34455   cat conftest.err >&5
34456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457   (exit $ac_status); } && {
34458          test -z "$ac_c_werror_flag" ||
34459          test ! -s conftest.err
34460        } && test -s conftest.$ac_objext; then
34461   ac_cv_type_daddr_t=yes
34462 else
34463   echo "$as_me: failed program was:" >&5
34464 sed 's/^/| /' conftest.$ac_ext >&5
34465
34466         ac_cv_type_daddr_t=no
34467 fi
34468
34469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34470 fi
34471 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34472 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34473 if test $ac_cv_type_daddr_t = yes; then
34474   :
34475 else
34476
34477 cat >>confdefs.h <<_ACEOF
34478 #define daddr_t long
34479 _ACEOF
34480
34481 fi
34482
34483 { echo "$as_me:$LINENO: checking for major_t" >&5
34484 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34485 if test "${ac_cv_type_major_t+set}" = set; then
34486   echo $ECHO_N "(cached) $ECHO_C" >&6
34487 else
34488   cat >conftest.$ac_ext <<_ACEOF
34489 /* confdefs.h.  */
34490 _ACEOF
34491 cat confdefs.h >>conftest.$ac_ext
34492 cat >>conftest.$ac_ext <<_ACEOF
34493 /* end confdefs.h.  */
34494 $ac_includes_default
34495 typedef major_t ac__type_new_;
34496 int
34497 main ()
34498 {
34499 if ((ac__type_new_ *) 0)
34500   return 0;
34501 if (sizeof (ac__type_new_))
34502   return 0;
34503   ;
34504   return 0;
34505 }
34506 _ACEOF
34507 rm -f conftest.$ac_objext
34508 if { (ac_try="$ac_compile"
34509 case "(($ac_try" in
34510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34511   *) ac_try_echo=$ac_try;;
34512 esac
34513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34514   (eval "$ac_compile") 2>conftest.er1
34515   ac_status=$?
34516   grep -v '^ *+' conftest.er1 >conftest.err
34517   rm -f conftest.er1
34518   cat conftest.err >&5
34519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520   (exit $ac_status); } && {
34521          test -z "$ac_c_werror_flag" ||
34522          test ! -s conftest.err
34523        } && test -s conftest.$ac_objext; then
34524   ac_cv_type_major_t=yes
34525 else
34526   echo "$as_me: failed program was:" >&5
34527 sed 's/^/| /' conftest.$ac_ext >&5
34528
34529         ac_cv_type_major_t=no
34530 fi
34531
34532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34533 fi
34534 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34535 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34536 if test $ac_cv_type_major_t = yes; then
34537   :
34538 else
34539
34540 cat >>confdefs.h <<_ACEOF
34541 #define major_t int
34542 _ACEOF
34543
34544 fi
34545
34546 { echo "$as_me:$LINENO: checking for minor_t" >&5
34547 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34548 if test "${ac_cv_type_minor_t+set}" = set; then
34549   echo $ECHO_N "(cached) $ECHO_C" >&6
34550 else
34551   cat >conftest.$ac_ext <<_ACEOF
34552 /* confdefs.h.  */
34553 _ACEOF
34554 cat confdefs.h >>conftest.$ac_ext
34555 cat >>conftest.$ac_ext <<_ACEOF
34556 /* end confdefs.h.  */
34557 $ac_includes_default
34558 typedef minor_t ac__type_new_;
34559 int
34560 main ()
34561 {
34562 if ((ac__type_new_ *) 0)
34563   return 0;
34564 if (sizeof (ac__type_new_))
34565   return 0;
34566   ;
34567   return 0;
34568 }
34569 _ACEOF
34570 rm -f conftest.$ac_objext
34571 if { (ac_try="$ac_compile"
34572 case "(($ac_try" in
34573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34574   *) ac_try_echo=$ac_try;;
34575 esac
34576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34577   (eval "$ac_compile") 2>conftest.er1
34578   ac_status=$?
34579   grep -v '^ *+' conftest.er1 >conftest.err
34580   rm -f conftest.er1
34581   cat conftest.err >&5
34582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583   (exit $ac_status); } && {
34584          test -z "$ac_c_werror_flag" ||
34585          test ! -s conftest.err
34586        } && test -s conftest.$ac_objext; then
34587   ac_cv_type_minor_t=yes
34588 else
34589   echo "$as_me: failed program was:" >&5
34590 sed 's/^/| /' conftest.$ac_ext >&5
34591
34592         ac_cv_type_minor_t=no
34593 fi
34594
34595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34596 fi
34597 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34598 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34599 if test $ac_cv_type_minor_t = yes; then
34600   :
34601 else
34602
34603 cat >>confdefs.h <<_ACEOF
34604 #define minor_t int
34605 _ACEOF
34606
34607 fi
34608
34609 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34610 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34611 if test "${ac_cv_type_ssize_t+set}" = set; then
34612   echo $ECHO_N "(cached) $ECHO_C" >&6
34613 else
34614   cat >conftest.$ac_ext <<_ACEOF
34615 /* confdefs.h.  */
34616 _ACEOF
34617 cat confdefs.h >>conftest.$ac_ext
34618 cat >>conftest.$ac_ext <<_ACEOF
34619 /* end confdefs.h.  */
34620 $ac_includes_default
34621 typedef ssize_t ac__type_new_;
34622 int
34623 main ()
34624 {
34625 if ((ac__type_new_ *) 0)
34626   return 0;
34627 if (sizeof (ac__type_new_))
34628   return 0;
34629   ;
34630   return 0;
34631 }
34632 _ACEOF
34633 rm -f conftest.$ac_objext
34634 if { (ac_try="$ac_compile"
34635 case "(($ac_try" in
34636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34637   *) ac_try_echo=$ac_try;;
34638 esac
34639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34640   (eval "$ac_compile") 2>conftest.er1
34641   ac_status=$?
34642   grep -v '^ *+' conftest.er1 >conftest.err
34643   rm -f conftest.er1
34644   cat conftest.err >&5
34645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646   (exit $ac_status); } && {
34647          test -z "$ac_c_werror_flag" ||
34648          test ! -s conftest.err
34649        } && test -s conftest.$ac_objext; then
34650   ac_cv_type_ssize_t=yes
34651 else
34652   echo "$as_me: failed program was:" >&5
34653 sed 's/^/| /' conftest.$ac_ext >&5
34654
34655         ac_cv_type_ssize_t=no
34656 fi
34657
34658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34659 fi
34660 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34661 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34662 if test $ac_cv_type_ssize_t = yes; then
34663   :
34664 else
34665
34666 cat >>confdefs.h <<_ACEOF
34667 #define ssize_t int
34668 _ACEOF
34669
34670 fi
34671
34672 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34673 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34674 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34675   echo $ECHO_N "(cached) $ECHO_C" >&6
34676 else
34677   cat >conftest.$ac_ext <<_ACEOF
34678 /* confdefs.h.  */
34679 _ACEOF
34680 cat confdefs.h >>conftest.$ac_ext
34681 cat >>conftest.$ac_ext <<_ACEOF
34682 /* end confdefs.h.  */
34683 $ac_includes_default
34684 int
34685 main ()
34686 {
34687 static struct stat ac_aggr;
34688 if (ac_aggr.st_blocks)
34689 return 0;
34690   ;
34691   return 0;
34692 }
34693 _ACEOF
34694 rm -f conftest.$ac_objext
34695 if { (ac_try="$ac_compile"
34696 case "(($ac_try" in
34697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34698   *) ac_try_echo=$ac_try;;
34699 esac
34700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34701   (eval "$ac_compile") 2>conftest.er1
34702   ac_status=$?
34703   grep -v '^ *+' conftest.er1 >conftest.err
34704   rm -f conftest.er1
34705   cat conftest.err >&5
34706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707   (exit $ac_status); } && {
34708          test -z "$ac_c_werror_flag" ||
34709          test ! -s conftest.err
34710        } && test -s conftest.$ac_objext; then
34711   ac_cv_member_struct_stat_st_blocks=yes
34712 else
34713   echo "$as_me: failed program was:" >&5
34714 sed 's/^/| /' conftest.$ac_ext >&5
34715
34716         cat >conftest.$ac_ext <<_ACEOF
34717 /* confdefs.h.  */
34718 _ACEOF
34719 cat confdefs.h >>conftest.$ac_ext
34720 cat >>conftest.$ac_ext <<_ACEOF
34721 /* end confdefs.h.  */
34722 $ac_includes_default
34723 int
34724 main ()
34725 {
34726 static struct stat ac_aggr;
34727 if (sizeof ac_aggr.st_blocks)
34728 return 0;
34729   ;
34730   return 0;
34731 }
34732 _ACEOF
34733 rm -f conftest.$ac_objext
34734 if { (ac_try="$ac_compile"
34735 case "(($ac_try" in
34736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34737   *) ac_try_echo=$ac_try;;
34738 esac
34739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34740   (eval "$ac_compile") 2>conftest.er1
34741   ac_status=$?
34742   grep -v '^ *+' conftest.er1 >conftest.err
34743   rm -f conftest.er1
34744   cat conftest.err >&5
34745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34746   (exit $ac_status); } && {
34747          test -z "$ac_c_werror_flag" ||
34748          test ! -s conftest.err
34749        } && test -s conftest.$ac_objext; then
34750   ac_cv_member_struct_stat_st_blocks=yes
34751 else
34752   echo "$as_me: failed program was:" >&5
34753 sed 's/^/| /' conftest.$ac_ext >&5
34754
34755         ac_cv_member_struct_stat_st_blocks=no
34756 fi
34757
34758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34759 fi
34760
34761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34762 fi
34763 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34764 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34765 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34766
34767 cat >>confdefs.h <<_ACEOF
34768 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34769 _ACEOF
34770
34771
34772 cat >>confdefs.h <<\_ACEOF
34773 #define HAVE_ST_BLOCKS 1
34774 _ACEOF
34775
34776 else
34777   case " $LIBOBJS " in
34778   *" fileblocks.$ac_objext "* ) ;;
34779   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34780  ;;
34781 esac
34782
34783 fi
34784
34785
34786 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34787 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34788 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34789   echo $ECHO_N "(cached) $ECHO_C" >&6
34790 else
34791   cat >conftest.$ac_ext <<_ACEOF
34792 /* confdefs.h.  */
34793 _ACEOF
34794 cat confdefs.h >>conftest.$ac_ext
34795 cat >>conftest.$ac_ext <<_ACEOF
34796 /* end confdefs.h.  */
34797 $ac_includes_default
34798 int
34799 main ()
34800 {
34801 static struct stat ac_aggr;
34802 if (ac_aggr.st_rdev)
34803 return 0;
34804   ;
34805   return 0;
34806 }
34807 _ACEOF
34808 rm -f conftest.$ac_objext
34809 if { (ac_try="$ac_compile"
34810 case "(($ac_try" in
34811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34812   *) ac_try_echo=$ac_try;;
34813 esac
34814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34815   (eval "$ac_compile") 2>conftest.er1
34816   ac_status=$?
34817   grep -v '^ *+' conftest.er1 >conftest.err
34818   rm -f conftest.er1
34819   cat conftest.err >&5
34820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821   (exit $ac_status); } && {
34822          test -z "$ac_c_werror_flag" ||
34823          test ! -s conftest.err
34824        } && test -s conftest.$ac_objext; then
34825   ac_cv_member_struct_stat_st_rdev=yes
34826 else
34827   echo "$as_me: failed program was:" >&5
34828 sed 's/^/| /' conftest.$ac_ext >&5
34829
34830         cat >conftest.$ac_ext <<_ACEOF
34831 /* confdefs.h.  */
34832 _ACEOF
34833 cat confdefs.h >>conftest.$ac_ext
34834 cat >>conftest.$ac_ext <<_ACEOF
34835 /* end confdefs.h.  */
34836 $ac_includes_default
34837 int
34838 main ()
34839 {
34840 static struct stat ac_aggr;
34841 if (sizeof ac_aggr.st_rdev)
34842 return 0;
34843   ;
34844   return 0;
34845 }
34846 _ACEOF
34847 rm -f conftest.$ac_objext
34848 if { (ac_try="$ac_compile"
34849 case "(($ac_try" in
34850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34851   *) ac_try_echo=$ac_try;;
34852 esac
34853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34854   (eval "$ac_compile") 2>conftest.er1
34855   ac_status=$?
34856   grep -v '^ *+' conftest.er1 >conftest.err
34857   rm -f conftest.er1
34858   cat conftest.err >&5
34859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860   (exit $ac_status); } && {
34861          test -z "$ac_c_werror_flag" ||
34862          test ! -s conftest.err
34863        } && test -s conftest.$ac_objext; then
34864   ac_cv_member_struct_stat_st_rdev=yes
34865 else
34866   echo "$as_me: failed program was:" >&5
34867 sed 's/^/| /' conftest.$ac_ext >&5
34868
34869         ac_cv_member_struct_stat_st_rdev=no
34870 fi
34871
34872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34873 fi
34874
34875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34876 fi
34877 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34878 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34879 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34880
34881 cat >>confdefs.h <<_ACEOF
34882 #define HAVE_STRUCT_STAT_ST_RDEV 1
34883 _ACEOF
34884
34885
34886 cat >>confdefs.h <<\_ACEOF
34887 #define HAVE_ST_RDEV 1
34888 _ACEOF
34889
34890 fi
34891
34892
34893 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34894 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34895 if test "${ac_cv_struct_tm+set}" = set; then
34896   echo $ECHO_N "(cached) $ECHO_C" >&6
34897 else
34898   cat >conftest.$ac_ext <<_ACEOF
34899 /* confdefs.h.  */
34900 _ACEOF
34901 cat confdefs.h >>conftest.$ac_ext
34902 cat >>conftest.$ac_ext <<_ACEOF
34903 /* end confdefs.h.  */
34904 #include <sys/types.h>
34905 #include <time.h>
34906
34907 int
34908 main ()
34909 {
34910 struct tm tm;
34911                                      int *p = &tm.tm_sec;
34912                                      return !p;
34913   ;
34914   return 0;
34915 }
34916 _ACEOF
34917 rm -f conftest.$ac_objext
34918 if { (ac_try="$ac_compile"
34919 case "(($ac_try" in
34920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34921   *) ac_try_echo=$ac_try;;
34922 esac
34923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34924   (eval "$ac_compile") 2>conftest.er1
34925   ac_status=$?
34926   grep -v '^ *+' conftest.er1 >conftest.err
34927   rm -f conftest.er1
34928   cat conftest.err >&5
34929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930   (exit $ac_status); } && {
34931          test -z "$ac_c_werror_flag" ||
34932          test ! -s conftest.err
34933        } && test -s conftest.$ac_objext; then
34934   ac_cv_struct_tm=time.h
34935 else
34936   echo "$as_me: failed program was:" >&5
34937 sed 's/^/| /' conftest.$ac_ext >&5
34938
34939         ac_cv_struct_tm=sys/time.h
34940 fi
34941
34942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34943 fi
34944 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34945 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34946 if test $ac_cv_struct_tm = sys/time.h; then
34947
34948 cat >>confdefs.h <<\_ACEOF
34949 #define TM_IN_SYS_TIME 1
34950 _ACEOF
34951
34952 fi
34953
34954 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34955 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34956 if test "${ac_cv_c_const+set}" = set; then
34957   echo $ECHO_N "(cached) $ECHO_C" >&6
34958 else
34959   cat >conftest.$ac_ext <<_ACEOF
34960 /* confdefs.h.  */
34961 _ACEOF
34962 cat confdefs.h >>conftest.$ac_ext
34963 cat >>conftest.$ac_ext <<_ACEOF
34964 /* end confdefs.h.  */
34965
34966 int
34967 main ()
34968 {
34969 /* FIXME: Include the comments suggested by Paul. */
34970 #ifndef __cplusplus
34971   /* Ultrix mips cc rejects this.  */
34972   typedef int charset[2];
34973   const charset cs;
34974   /* SunOS 4.1.1 cc rejects this.  */
34975   char const *const *pcpcc;
34976   char **ppc;
34977   /* NEC SVR4.0.2 mips cc rejects this.  */
34978   struct point {int x, y;};
34979   static struct point const zero = {0,0};
34980   /* AIX XL C 1.02.0.0 rejects this.
34981      It does not let you subtract one const X* pointer from another in
34982      an arm of an if-expression whose if-part is not a constant
34983      expression */
34984   const char *g = "string";
34985   pcpcc = &g + (g ? g-g : 0);
34986   /* HPUX 7.0 cc rejects these. */
34987   ++pcpcc;
34988   ppc = (char**) pcpcc;
34989   pcpcc = (char const *const *) ppc;
34990   { /* SCO 3.2v4 cc rejects this.  */
34991     char *t;
34992     char const *s = 0 ? (char *) 0 : (char const *) 0;
34993
34994     *t++ = 0;
34995     if (s) return 0;
34996   }
34997   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34998     int x[] = {25, 17};
34999     const int *foo = &x[0];
35000     ++foo;
35001   }
35002   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35003     typedef const int *iptr;
35004     iptr p = 0;
35005     ++p;
35006   }
35007   { /* AIX XL C 1.02.0.0 rejects this saying
35008        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35009     struct s { int j; const int *ap[3]; };
35010     struct s *b; b->j = 5;
35011   }
35012   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35013     const int foo = 10;
35014     if (!foo) return 0;
35015   }
35016   return !cs[0] && !zero.x;
35017 #endif
35018
35019   ;
35020   return 0;
35021 }
35022 _ACEOF
35023 rm -f conftest.$ac_objext
35024 if { (ac_try="$ac_compile"
35025 case "(($ac_try" in
35026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35027   *) ac_try_echo=$ac_try;;
35028 esac
35029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35030   (eval "$ac_compile") 2>conftest.er1
35031   ac_status=$?
35032   grep -v '^ *+' conftest.er1 >conftest.err
35033   rm -f conftest.er1
35034   cat conftest.err >&5
35035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036   (exit $ac_status); } && {
35037          test -z "$ac_c_werror_flag" ||
35038          test ! -s conftest.err
35039        } && test -s conftest.$ac_objext; then
35040   ac_cv_c_const=yes
35041 else
35042   echo "$as_me: failed program was:" >&5
35043 sed 's/^/| /' conftest.$ac_ext >&5
35044
35045         ac_cv_c_const=no
35046 fi
35047
35048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35049 fi
35050 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35051 echo "${ECHO_T}$ac_cv_c_const" >&6; }
35052 if test $ac_cv_c_const = no; then
35053
35054 cat >>confdefs.h <<\_ACEOF
35055 #define const
35056 _ACEOF
35057
35058 fi
35059
35060
35061 { echo "$as_me:$LINENO: checking for char" >&5
35062 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
35063 if test "${ac_cv_type_char+set}" = set; then
35064   echo $ECHO_N "(cached) $ECHO_C" >&6
35065 else
35066   cat >conftest.$ac_ext <<_ACEOF
35067 /* confdefs.h.  */
35068 _ACEOF
35069 cat confdefs.h >>conftest.$ac_ext
35070 cat >>conftest.$ac_ext <<_ACEOF
35071 /* end confdefs.h.  */
35072 $ac_includes_default
35073 typedef char ac__type_new_;
35074 int
35075 main ()
35076 {
35077 if ((ac__type_new_ *) 0)
35078   return 0;
35079 if (sizeof (ac__type_new_))
35080   return 0;
35081   ;
35082   return 0;
35083 }
35084 _ACEOF
35085 rm -f conftest.$ac_objext
35086 if { (ac_try="$ac_compile"
35087 case "(($ac_try" in
35088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35089   *) ac_try_echo=$ac_try;;
35090 esac
35091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35092   (eval "$ac_compile") 2>conftest.er1
35093   ac_status=$?
35094   grep -v '^ *+' conftest.er1 >conftest.err
35095   rm -f conftest.er1
35096   cat conftest.err >&5
35097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35098   (exit $ac_status); } && {
35099          test -z "$ac_c_werror_flag" ||
35100          test ! -s conftest.err
35101        } && test -s conftest.$ac_objext; then
35102   ac_cv_type_char=yes
35103 else
35104   echo "$as_me: failed program was:" >&5
35105 sed 's/^/| /' conftest.$ac_ext >&5
35106
35107         ac_cv_type_char=no
35108 fi
35109
35110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35111 fi
35112 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
35113 echo "${ECHO_T}$ac_cv_type_char" >&6; }
35114
35115 # The cast to long int works around a bug in the HP C Compiler
35116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35118 # This bug is HP SR number 8606223364.
35119 { echo "$as_me:$LINENO: checking size of char" >&5
35120 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
35121 if test "${ac_cv_sizeof_char+set}" = set; then
35122   echo $ECHO_N "(cached) $ECHO_C" >&6
35123 else
35124   if test "$cross_compiling" = yes; then
35125   # Depending upon the size, compute the lo and hi bounds.
35126 cat >conftest.$ac_ext <<_ACEOF
35127 /* confdefs.h.  */
35128 _ACEOF
35129 cat confdefs.h >>conftest.$ac_ext
35130 cat >>conftest.$ac_ext <<_ACEOF
35131 /* end confdefs.h.  */
35132 $ac_includes_default
35133    typedef char ac__type_sizeof_;
35134 int
35135 main ()
35136 {
35137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35138 test_array [0] = 0
35139
35140   ;
35141   return 0;
35142 }
35143 _ACEOF
35144 rm -f conftest.$ac_objext
35145 if { (ac_try="$ac_compile"
35146 case "(($ac_try" in
35147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35148   *) ac_try_echo=$ac_try;;
35149 esac
35150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35151   (eval "$ac_compile") 2>conftest.er1
35152   ac_status=$?
35153   grep -v '^ *+' conftest.er1 >conftest.err
35154   rm -f conftest.er1
35155   cat conftest.err >&5
35156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157   (exit $ac_status); } && {
35158          test -z "$ac_c_werror_flag" ||
35159          test ! -s conftest.err
35160        } && test -s conftest.$ac_objext; then
35161   ac_lo=0 ac_mid=0
35162   while :; do
35163     cat >conftest.$ac_ext <<_ACEOF
35164 /* confdefs.h.  */
35165 _ACEOF
35166 cat confdefs.h >>conftest.$ac_ext
35167 cat >>conftest.$ac_ext <<_ACEOF
35168 /* end confdefs.h.  */
35169 $ac_includes_default
35170    typedef char ac__type_sizeof_;
35171 int
35172 main ()
35173 {
35174 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35175 test_array [0] = 0
35176
35177   ;
35178   return 0;
35179 }
35180 _ACEOF
35181 rm -f conftest.$ac_objext
35182 if { (ac_try="$ac_compile"
35183 case "(($ac_try" in
35184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35185   *) ac_try_echo=$ac_try;;
35186 esac
35187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35188   (eval "$ac_compile") 2>conftest.er1
35189   ac_status=$?
35190   grep -v '^ *+' conftest.er1 >conftest.err
35191   rm -f conftest.er1
35192   cat conftest.err >&5
35193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35194   (exit $ac_status); } && {
35195          test -z "$ac_c_werror_flag" ||
35196          test ! -s conftest.err
35197        } && test -s conftest.$ac_objext; then
35198   ac_hi=$ac_mid; break
35199 else
35200   echo "$as_me: failed program was:" >&5
35201 sed 's/^/| /' conftest.$ac_ext >&5
35202
35203         ac_lo=`expr $ac_mid + 1`
35204                         if test $ac_lo -le $ac_mid; then
35205                           ac_lo= ac_hi=
35206                           break
35207                         fi
35208                         ac_mid=`expr 2 '*' $ac_mid + 1`
35209 fi
35210
35211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35212   done
35213 else
35214   echo "$as_me: failed program was:" >&5
35215 sed 's/^/| /' conftest.$ac_ext >&5
35216
35217         cat >conftest.$ac_ext <<_ACEOF
35218 /* confdefs.h.  */
35219 _ACEOF
35220 cat confdefs.h >>conftest.$ac_ext
35221 cat >>conftest.$ac_ext <<_ACEOF
35222 /* end confdefs.h.  */
35223 $ac_includes_default
35224    typedef char ac__type_sizeof_;
35225 int
35226 main ()
35227 {
35228 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35229 test_array [0] = 0
35230
35231   ;
35232   return 0;
35233 }
35234 _ACEOF
35235 rm -f conftest.$ac_objext
35236 if { (ac_try="$ac_compile"
35237 case "(($ac_try" in
35238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35239   *) ac_try_echo=$ac_try;;
35240 esac
35241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35242   (eval "$ac_compile") 2>conftest.er1
35243   ac_status=$?
35244   grep -v '^ *+' conftest.er1 >conftest.err
35245   rm -f conftest.er1
35246   cat conftest.err >&5
35247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248   (exit $ac_status); } && {
35249          test -z "$ac_c_werror_flag" ||
35250          test ! -s conftest.err
35251        } && test -s conftest.$ac_objext; then
35252   ac_hi=-1 ac_mid=-1
35253   while :; do
35254     cat >conftest.$ac_ext <<_ACEOF
35255 /* confdefs.h.  */
35256 _ACEOF
35257 cat confdefs.h >>conftest.$ac_ext
35258 cat >>conftest.$ac_ext <<_ACEOF
35259 /* end confdefs.h.  */
35260 $ac_includes_default
35261    typedef char ac__type_sizeof_;
35262 int
35263 main ()
35264 {
35265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35266 test_array [0] = 0
35267
35268   ;
35269   return 0;
35270 }
35271 _ACEOF
35272 rm -f conftest.$ac_objext
35273 if { (ac_try="$ac_compile"
35274 case "(($ac_try" in
35275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35276   *) ac_try_echo=$ac_try;;
35277 esac
35278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35279   (eval "$ac_compile") 2>conftest.er1
35280   ac_status=$?
35281   grep -v '^ *+' conftest.er1 >conftest.err
35282   rm -f conftest.er1
35283   cat conftest.err >&5
35284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285   (exit $ac_status); } && {
35286          test -z "$ac_c_werror_flag" ||
35287          test ! -s conftest.err
35288        } && test -s conftest.$ac_objext; then
35289   ac_lo=$ac_mid; break
35290 else
35291   echo "$as_me: failed program was:" >&5
35292 sed 's/^/| /' conftest.$ac_ext >&5
35293
35294         ac_hi=`expr '(' $ac_mid ')' - 1`
35295                         if test $ac_mid -le $ac_hi; then
35296                           ac_lo= ac_hi=
35297                           break
35298                         fi
35299                         ac_mid=`expr 2 '*' $ac_mid`
35300 fi
35301
35302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35303   done
35304 else
35305   echo "$as_me: failed program was:" >&5
35306 sed 's/^/| /' conftest.$ac_ext >&5
35307
35308         ac_lo= ac_hi=
35309 fi
35310
35311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35312 fi
35313
35314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35315 # Binary search between lo and hi bounds.
35316 while test "x$ac_lo" != "x$ac_hi"; do
35317   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35318   cat >conftest.$ac_ext <<_ACEOF
35319 /* confdefs.h.  */
35320 _ACEOF
35321 cat confdefs.h >>conftest.$ac_ext
35322 cat >>conftest.$ac_ext <<_ACEOF
35323 /* end confdefs.h.  */
35324 $ac_includes_default
35325    typedef char ac__type_sizeof_;
35326 int
35327 main ()
35328 {
35329 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35330 test_array [0] = 0
35331
35332   ;
35333   return 0;
35334 }
35335 _ACEOF
35336 rm -f conftest.$ac_objext
35337 if { (ac_try="$ac_compile"
35338 case "(($ac_try" in
35339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35340   *) ac_try_echo=$ac_try;;
35341 esac
35342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35343   (eval "$ac_compile") 2>conftest.er1
35344   ac_status=$?
35345   grep -v '^ *+' conftest.er1 >conftest.err
35346   rm -f conftest.er1
35347   cat conftest.err >&5
35348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349   (exit $ac_status); } && {
35350          test -z "$ac_c_werror_flag" ||
35351          test ! -s conftest.err
35352        } && test -s conftest.$ac_objext; then
35353   ac_hi=$ac_mid
35354 else
35355   echo "$as_me: failed program was:" >&5
35356 sed 's/^/| /' conftest.$ac_ext >&5
35357
35358         ac_lo=`expr '(' $ac_mid ')' + 1`
35359 fi
35360
35361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35362 done
35363 case $ac_lo in
35364 ?*) ac_cv_sizeof_char=$ac_lo;;
35365 '') if test "$ac_cv_type_char" = yes; then
35366      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35367 See \`config.log' for more details." >&5
35368 echo "$as_me: error: cannot compute sizeof (char)
35369 See \`config.log' for more details." >&2;}
35370    { (exit 77); exit 77; }; }
35371    else
35372      ac_cv_sizeof_char=0
35373    fi ;;
35374 esac
35375 else
35376   cat >conftest.$ac_ext <<_ACEOF
35377 /* confdefs.h.  */
35378 _ACEOF
35379 cat confdefs.h >>conftest.$ac_ext
35380 cat >>conftest.$ac_ext <<_ACEOF
35381 /* end confdefs.h.  */
35382 $ac_includes_default
35383    typedef char ac__type_sizeof_;
35384 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35385 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35386 #include <stdio.h>
35387 #include <stdlib.h>
35388 int
35389 main ()
35390 {
35391
35392   FILE *f = fopen ("conftest.val", "w");
35393   if (! f)
35394     return 1;
35395   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35396     {
35397       long int i = longval ();
35398       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35399         return 1;
35400       fprintf (f, "%ld\n", i);
35401     }
35402   else
35403     {
35404       unsigned long int i = ulongval ();
35405       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35406         return 1;
35407       fprintf (f, "%lu\n", i);
35408     }
35409   return ferror (f) || fclose (f) != 0;
35410
35411   ;
35412   return 0;
35413 }
35414 _ACEOF
35415 rm -f conftest$ac_exeext
35416 if { (ac_try="$ac_link"
35417 case "(($ac_try" in
35418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35419   *) ac_try_echo=$ac_try;;
35420 esac
35421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35422   (eval "$ac_link") 2>&5
35423   ac_status=$?
35424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35426   { (case "(($ac_try" in
35427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35428   *) ac_try_echo=$ac_try;;
35429 esac
35430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35431   (eval "$ac_try") 2>&5
35432   ac_status=$?
35433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434   (exit $ac_status); }; }; then
35435   ac_cv_sizeof_char=`cat conftest.val`
35436 else
35437   echo "$as_me: program exited with status $ac_status" >&5
35438 echo "$as_me: failed program was:" >&5
35439 sed 's/^/| /' conftest.$ac_ext >&5
35440
35441 ( exit $ac_status )
35442 if test "$ac_cv_type_char" = yes; then
35443      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35444 See \`config.log' for more details." >&5
35445 echo "$as_me: error: cannot compute sizeof (char)
35446 See \`config.log' for more details." >&2;}
35447    { (exit 77); exit 77; }; }
35448    else
35449      ac_cv_sizeof_char=0
35450    fi
35451 fi
35452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35453 fi
35454 rm -f conftest.val
35455 fi
35456 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35457 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35458
35459
35460
35461 cat >>confdefs.h <<_ACEOF
35462 #define SIZEOF_CHAR $ac_cv_sizeof_char
35463 _ACEOF
35464
35465
35466 { echo "$as_me:$LINENO: checking for short int" >&5
35467 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35468 if test "${ac_cv_type_short_int+set}" = set; then
35469   echo $ECHO_N "(cached) $ECHO_C" >&6
35470 else
35471   cat >conftest.$ac_ext <<_ACEOF
35472 /* confdefs.h.  */
35473 _ACEOF
35474 cat confdefs.h >>conftest.$ac_ext
35475 cat >>conftest.$ac_ext <<_ACEOF
35476 /* end confdefs.h.  */
35477 $ac_includes_default
35478 typedef short int ac__type_new_;
35479 int
35480 main ()
35481 {
35482 if ((ac__type_new_ *) 0)
35483   return 0;
35484 if (sizeof (ac__type_new_))
35485   return 0;
35486   ;
35487   return 0;
35488 }
35489 _ACEOF
35490 rm -f conftest.$ac_objext
35491 if { (ac_try="$ac_compile"
35492 case "(($ac_try" in
35493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35494   *) ac_try_echo=$ac_try;;
35495 esac
35496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35497   (eval "$ac_compile") 2>conftest.er1
35498   ac_status=$?
35499   grep -v '^ *+' conftest.er1 >conftest.err
35500   rm -f conftest.er1
35501   cat conftest.err >&5
35502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503   (exit $ac_status); } && {
35504          test -z "$ac_c_werror_flag" ||
35505          test ! -s conftest.err
35506        } && test -s conftest.$ac_objext; then
35507   ac_cv_type_short_int=yes
35508 else
35509   echo "$as_me: failed program was:" >&5
35510 sed 's/^/| /' conftest.$ac_ext >&5
35511
35512         ac_cv_type_short_int=no
35513 fi
35514
35515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35516 fi
35517 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35518 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35519
35520 # The cast to long int works around a bug in the HP C Compiler
35521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35523 # This bug is HP SR number 8606223364.
35524 { echo "$as_me:$LINENO: checking size of short int" >&5
35525 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35526 if test "${ac_cv_sizeof_short_int+set}" = set; then
35527   echo $ECHO_N "(cached) $ECHO_C" >&6
35528 else
35529   if test "$cross_compiling" = yes; then
35530   # Depending upon the size, compute the lo and hi bounds.
35531 cat >conftest.$ac_ext <<_ACEOF
35532 /* confdefs.h.  */
35533 _ACEOF
35534 cat confdefs.h >>conftest.$ac_ext
35535 cat >>conftest.$ac_ext <<_ACEOF
35536 /* end confdefs.h.  */
35537 $ac_includes_default
35538    typedef short int ac__type_sizeof_;
35539 int
35540 main ()
35541 {
35542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35543 test_array [0] = 0
35544
35545   ;
35546   return 0;
35547 }
35548 _ACEOF
35549 rm -f conftest.$ac_objext
35550 if { (ac_try="$ac_compile"
35551 case "(($ac_try" in
35552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35553   *) ac_try_echo=$ac_try;;
35554 esac
35555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35556   (eval "$ac_compile") 2>conftest.er1
35557   ac_status=$?
35558   grep -v '^ *+' conftest.er1 >conftest.err
35559   rm -f conftest.er1
35560   cat conftest.err >&5
35561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35562   (exit $ac_status); } && {
35563          test -z "$ac_c_werror_flag" ||
35564          test ! -s conftest.err
35565        } && test -s conftest.$ac_objext; then
35566   ac_lo=0 ac_mid=0
35567   while :; do
35568     cat >conftest.$ac_ext <<_ACEOF
35569 /* confdefs.h.  */
35570 _ACEOF
35571 cat confdefs.h >>conftest.$ac_ext
35572 cat >>conftest.$ac_ext <<_ACEOF
35573 /* end confdefs.h.  */
35574 $ac_includes_default
35575    typedef short int ac__type_sizeof_;
35576 int
35577 main ()
35578 {
35579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35580 test_array [0] = 0
35581
35582   ;
35583   return 0;
35584 }
35585 _ACEOF
35586 rm -f conftest.$ac_objext
35587 if { (ac_try="$ac_compile"
35588 case "(($ac_try" in
35589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35590   *) ac_try_echo=$ac_try;;
35591 esac
35592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35593   (eval "$ac_compile") 2>conftest.er1
35594   ac_status=$?
35595   grep -v '^ *+' conftest.er1 >conftest.err
35596   rm -f conftest.er1
35597   cat conftest.err >&5
35598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35599   (exit $ac_status); } && {
35600          test -z "$ac_c_werror_flag" ||
35601          test ! -s conftest.err
35602        } && test -s conftest.$ac_objext; then
35603   ac_hi=$ac_mid; break
35604 else
35605   echo "$as_me: failed program was:" >&5
35606 sed 's/^/| /' conftest.$ac_ext >&5
35607
35608         ac_lo=`expr $ac_mid + 1`
35609                         if test $ac_lo -le $ac_mid; then
35610                           ac_lo= ac_hi=
35611                           break
35612                         fi
35613                         ac_mid=`expr 2 '*' $ac_mid + 1`
35614 fi
35615
35616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35617   done
35618 else
35619   echo "$as_me: failed program was:" >&5
35620 sed 's/^/| /' conftest.$ac_ext >&5
35621
35622         cat >conftest.$ac_ext <<_ACEOF
35623 /* confdefs.h.  */
35624 _ACEOF
35625 cat confdefs.h >>conftest.$ac_ext
35626 cat >>conftest.$ac_ext <<_ACEOF
35627 /* end confdefs.h.  */
35628 $ac_includes_default
35629    typedef short int ac__type_sizeof_;
35630 int
35631 main ()
35632 {
35633 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35634 test_array [0] = 0
35635
35636   ;
35637   return 0;
35638 }
35639 _ACEOF
35640 rm -f conftest.$ac_objext
35641 if { (ac_try="$ac_compile"
35642 case "(($ac_try" in
35643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35644   *) ac_try_echo=$ac_try;;
35645 esac
35646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35647   (eval "$ac_compile") 2>conftest.er1
35648   ac_status=$?
35649   grep -v '^ *+' conftest.er1 >conftest.err
35650   rm -f conftest.er1
35651   cat conftest.err >&5
35652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653   (exit $ac_status); } && {
35654          test -z "$ac_c_werror_flag" ||
35655          test ! -s conftest.err
35656        } && test -s conftest.$ac_objext; then
35657   ac_hi=-1 ac_mid=-1
35658   while :; do
35659     cat >conftest.$ac_ext <<_ACEOF
35660 /* confdefs.h.  */
35661 _ACEOF
35662 cat confdefs.h >>conftest.$ac_ext
35663 cat >>conftest.$ac_ext <<_ACEOF
35664 /* end confdefs.h.  */
35665 $ac_includes_default
35666    typedef short int ac__type_sizeof_;
35667 int
35668 main ()
35669 {
35670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35671 test_array [0] = 0
35672
35673   ;
35674   return 0;
35675 }
35676 _ACEOF
35677 rm -f conftest.$ac_objext
35678 if { (ac_try="$ac_compile"
35679 case "(($ac_try" in
35680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35681   *) ac_try_echo=$ac_try;;
35682 esac
35683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35684   (eval "$ac_compile") 2>conftest.er1
35685   ac_status=$?
35686   grep -v '^ *+' conftest.er1 >conftest.err
35687   rm -f conftest.er1
35688   cat conftest.err >&5
35689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690   (exit $ac_status); } && {
35691          test -z "$ac_c_werror_flag" ||
35692          test ! -s conftest.err
35693        } && test -s conftest.$ac_objext; then
35694   ac_lo=$ac_mid; break
35695 else
35696   echo "$as_me: failed program was:" >&5
35697 sed 's/^/| /' conftest.$ac_ext >&5
35698
35699         ac_hi=`expr '(' $ac_mid ')' - 1`
35700                         if test $ac_mid -le $ac_hi; then
35701                           ac_lo= ac_hi=
35702                           break
35703                         fi
35704                         ac_mid=`expr 2 '*' $ac_mid`
35705 fi
35706
35707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35708   done
35709 else
35710   echo "$as_me: failed program was:" >&5
35711 sed 's/^/| /' conftest.$ac_ext >&5
35712
35713         ac_lo= ac_hi=
35714 fi
35715
35716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35717 fi
35718
35719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35720 # Binary search between lo and hi bounds.
35721 while test "x$ac_lo" != "x$ac_hi"; do
35722   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35723   cat >conftest.$ac_ext <<_ACEOF
35724 /* confdefs.h.  */
35725 _ACEOF
35726 cat confdefs.h >>conftest.$ac_ext
35727 cat >>conftest.$ac_ext <<_ACEOF
35728 /* end confdefs.h.  */
35729 $ac_includes_default
35730    typedef short int ac__type_sizeof_;
35731 int
35732 main ()
35733 {
35734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35735 test_array [0] = 0
35736
35737   ;
35738   return 0;
35739 }
35740 _ACEOF
35741 rm -f conftest.$ac_objext
35742 if { (ac_try="$ac_compile"
35743 case "(($ac_try" in
35744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35745   *) ac_try_echo=$ac_try;;
35746 esac
35747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35748   (eval "$ac_compile") 2>conftest.er1
35749   ac_status=$?
35750   grep -v '^ *+' conftest.er1 >conftest.err
35751   rm -f conftest.er1
35752   cat conftest.err >&5
35753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754   (exit $ac_status); } && {
35755          test -z "$ac_c_werror_flag" ||
35756          test ! -s conftest.err
35757        } && test -s conftest.$ac_objext; then
35758   ac_hi=$ac_mid
35759 else
35760   echo "$as_me: failed program was:" >&5
35761 sed 's/^/| /' conftest.$ac_ext >&5
35762
35763         ac_lo=`expr '(' $ac_mid ')' + 1`
35764 fi
35765
35766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35767 done
35768 case $ac_lo in
35769 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35770 '') if test "$ac_cv_type_short_int" = yes; then
35771      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35772 See \`config.log' for more details." >&5
35773 echo "$as_me: error: cannot compute sizeof (short int)
35774 See \`config.log' for more details." >&2;}
35775    { (exit 77); exit 77; }; }
35776    else
35777      ac_cv_sizeof_short_int=0
35778    fi ;;
35779 esac
35780 else
35781   cat >conftest.$ac_ext <<_ACEOF
35782 /* confdefs.h.  */
35783 _ACEOF
35784 cat confdefs.h >>conftest.$ac_ext
35785 cat >>conftest.$ac_ext <<_ACEOF
35786 /* end confdefs.h.  */
35787 $ac_includes_default
35788    typedef short int ac__type_sizeof_;
35789 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35790 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35791 #include <stdio.h>
35792 #include <stdlib.h>
35793 int
35794 main ()
35795 {
35796
35797   FILE *f = fopen ("conftest.val", "w");
35798   if (! f)
35799     return 1;
35800   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35801     {
35802       long int i = longval ();
35803       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35804         return 1;
35805       fprintf (f, "%ld\n", i);
35806     }
35807   else
35808     {
35809       unsigned long int i = ulongval ();
35810       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35811         return 1;
35812       fprintf (f, "%lu\n", i);
35813     }
35814   return ferror (f) || fclose (f) != 0;
35815
35816   ;
35817   return 0;
35818 }
35819 _ACEOF
35820 rm -f conftest$ac_exeext
35821 if { (ac_try="$ac_link"
35822 case "(($ac_try" in
35823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35824   *) ac_try_echo=$ac_try;;
35825 esac
35826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35827   (eval "$ac_link") 2>&5
35828   ac_status=$?
35829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35831   { (case "(($ac_try" in
35832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35833   *) ac_try_echo=$ac_try;;
35834 esac
35835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35836   (eval "$ac_try") 2>&5
35837   ac_status=$?
35838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35839   (exit $ac_status); }; }; then
35840   ac_cv_sizeof_short_int=`cat conftest.val`
35841 else
35842   echo "$as_me: program exited with status $ac_status" >&5
35843 echo "$as_me: failed program was:" >&5
35844 sed 's/^/| /' conftest.$ac_ext >&5
35845
35846 ( exit $ac_status )
35847 if test "$ac_cv_type_short_int" = yes; then
35848      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35849 See \`config.log' for more details." >&5
35850 echo "$as_me: error: cannot compute sizeof (short int)
35851 See \`config.log' for more details." >&2;}
35852    { (exit 77); exit 77; }; }
35853    else
35854      ac_cv_sizeof_short_int=0
35855    fi
35856 fi
35857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35858 fi
35859 rm -f conftest.val
35860 fi
35861 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35862 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35863
35864
35865
35866 cat >>confdefs.h <<_ACEOF
35867 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35868 _ACEOF
35869
35870
35871 { echo "$as_me:$LINENO: checking for int" >&5
35872 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35873 if test "${ac_cv_type_int+set}" = set; then
35874   echo $ECHO_N "(cached) $ECHO_C" >&6
35875 else
35876   cat >conftest.$ac_ext <<_ACEOF
35877 /* confdefs.h.  */
35878 _ACEOF
35879 cat confdefs.h >>conftest.$ac_ext
35880 cat >>conftest.$ac_ext <<_ACEOF
35881 /* end confdefs.h.  */
35882 $ac_includes_default
35883 typedef int ac__type_new_;
35884 int
35885 main ()
35886 {
35887 if ((ac__type_new_ *) 0)
35888   return 0;
35889 if (sizeof (ac__type_new_))
35890   return 0;
35891   ;
35892   return 0;
35893 }
35894 _ACEOF
35895 rm -f conftest.$ac_objext
35896 if { (ac_try="$ac_compile"
35897 case "(($ac_try" in
35898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35899   *) ac_try_echo=$ac_try;;
35900 esac
35901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35902   (eval "$ac_compile") 2>conftest.er1
35903   ac_status=$?
35904   grep -v '^ *+' conftest.er1 >conftest.err
35905   rm -f conftest.er1
35906   cat conftest.err >&5
35907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908   (exit $ac_status); } && {
35909          test -z "$ac_c_werror_flag" ||
35910          test ! -s conftest.err
35911        } && test -s conftest.$ac_objext; then
35912   ac_cv_type_int=yes
35913 else
35914   echo "$as_me: failed program was:" >&5
35915 sed 's/^/| /' conftest.$ac_ext >&5
35916
35917         ac_cv_type_int=no
35918 fi
35919
35920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35921 fi
35922 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35923 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35924
35925 # The cast to long int works around a bug in the HP C Compiler
35926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35928 # This bug is HP SR number 8606223364.
35929 { echo "$as_me:$LINENO: checking size of int" >&5
35930 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35931 if test "${ac_cv_sizeof_int+set}" = set; then
35932   echo $ECHO_N "(cached) $ECHO_C" >&6
35933 else
35934   if test "$cross_compiling" = yes; then
35935   # Depending upon the size, compute the lo and hi bounds.
35936 cat >conftest.$ac_ext <<_ACEOF
35937 /* confdefs.h.  */
35938 _ACEOF
35939 cat confdefs.h >>conftest.$ac_ext
35940 cat >>conftest.$ac_ext <<_ACEOF
35941 /* end confdefs.h.  */
35942 $ac_includes_default
35943    typedef int ac__type_sizeof_;
35944 int
35945 main ()
35946 {
35947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35948 test_array [0] = 0
35949
35950   ;
35951   return 0;
35952 }
35953 _ACEOF
35954 rm -f conftest.$ac_objext
35955 if { (ac_try="$ac_compile"
35956 case "(($ac_try" in
35957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35958   *) ac_try_echo=$ac_try;;
35959 esac
35960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35961   (eval "$ac_compile") 2>conftest.er1
35962   ac_status=$?
35963   grep -v '^ *+' conftest.er1 >conftest.err
35964   rm -f conftest.er1
35965   cat conftest.err >&5
35966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35967   (exit $ac_status); } && {
35968          test -z "$ac_c_werror_flag" ||
35969          test ! -s conftest.err
35970        } && test -s conftest.$ac_objext; then
35971   ac_lo=0 ac_mid=0
35972   while :; do
35973     cat >conftest.$ac_ext <<_ACEOF
35974 /* confdefs.h.  */
35975 _ACEOF
35976 cat confdefs.h >>conftest.$ac_ext
35977 cat >>conftest.$ac_ext <<_ACEOF
35978 /* end confdefs.h.  */
35979 $ac_includes_default
35980    typedef int ac__type_sizeof_;
35981 int
35982 main ()
35983 {
35984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35985 test_array [0] = 0
35986
35987   ;
35988   return 0;
35989 }
35990 _ACEOF
35991 rm -f conftest.$ac_objext
35992 if { (ac_try="$ac_compile"
35993 case "(($ac_try" in
35994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35995   *) ac_try_echo=$ac_try;;
35996 esac
35997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35998   (eval "$ac_compile") 2>conftest.er1
35999   ac_status=$?
36000   grep -v '^ *+' conftest.er1 >conftest.err
36001   rm -f conftest.er1
36002   cat conftest.err >&5
36003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36004   (exit $ac_status); } && {
36005          test -z "$ac_c_werror_flag" ||
36006          test ! -s conftest.err
36007        } && test -s conftest.$ac_objext; then
36008   ac_hi=$ac_mid; break
36009 else
36010   echo "$as_me: failed program was:" >&5
36011 sed 's/^/| /' conftest.$ac_ext >&5
36012
36013         ac_lo=`expr $ac_mid + 1`
36014                         if test $ac_lo -le $ac_mid; then
36015                           ac_lo= ac_hi=
36016                           break
36017                         fi
36018                         ac_mid=`expr 2 '*' $ac_mid + 1`
36019 fi
36020
36021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36022   done
36023 else
36024   echo "$as_me: failed program was:" >&5
36025 sed 's/^/| /' conftest.$ac_ext >&5
36026
36027         cat >conftest.$ac_ext <<_ACEOF
36028 /* confdefs.h.  */
36029 _ACEOF
36030 cat confdefs.h >>conftest.$ac_ext
36031 cat >>conftest.$ac_ext <<_ACEOF
36032 /* end confdefs.h.  */
36033 $ac_includes_default
36034    typedef int ac__type_sizeof_;
36035 int
36036 main ()
36037 {
36038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36039 test_array [0] = 0
36040
36041   ;
36042   return 0;
36043 }
36044 _ACEOF
36045 rm -f conftest.$ac_objext
36046 if { (ac_try="$ac_compile"
36047 case "(($ac_try" in
36048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36049   *) ac_try_echo=$ac_try;;
36050 esac
36051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36052   (eval "$ac_compile") 2>conftest.er1
36053   ac_status=$?
36054   grep -v '^ *+' conftest.er1 >conftest.err
36055   rm -f conftest.er1
36056   cat conftest.err >&5
36057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36058   (exit $ac_status); } && {
36059          test -z "$ac_c_werror_flag" ||
36060          test ! -s conftest.err
36061        } && test -s conftest.$ac_objext; then
36062   ac_hi=-1 ac_mid=-1
36063   while :; do
36064     cat >conftest.$ac_ext <<_ACEOF
36065 /* confdefs.h.  */
36066 _ACEOF
36067 cat confdefs.h >>conftest.$ac_ext
36068 cat >>conftest.$ac_ext <<_ACEOF
36069 /* end confdefs.h.  */
36070 $ac_includes_default
36071    typedef int ac__type_sizeof_;
36072 int
36073 main ()
36074 {
36075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36076 test_array [0] = 0
36077
36078   ;
36079   return 0;
36080 }
36081 _ACEOF
36082 rm -f conftest.$ac_objext
36083 if { (ac_try="$ac_compile"
36084 case "(($ac_try" in
36085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36086   *) ac_try_echo=$ac_try;;
36087 esac
36088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36089   (eval "$ac_compile") 2>conftest.er1
36090   ac_status=$?
36091   grep -v '^ *+' conftest.er1 >conftest.err
36092   rm -f conftest.er1
36093   cat conftest.err >&5
36094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36095   (exit $ac_status); } && {
36096          test -z "$ac_c_werror_flag" ||
36097          test ! -s conftest.err
36098        } && test -s conftest.$ac_objext; then
36099   ac_lo=$ac_mid; break
36100 else
36101   echo "$as_me: failed program was:" >&5
36102 sed 's/^/| /' conftest.$ac_ext >&5
36103
36104         ac_hi=`expr '(' $ac_mid ')' - 1`
36105                         if test $ac_mid -le $ac_hi; then
36106                           ac_lo= ac_hi=
36107                           break
36108                         fi
36109                         ac_mid=`expr 2 '*' $ac_mid`
36110 fi
36111
36112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36113   done
36114 else
36115   echo "$as_me: failed program was:" >&5
36116 sed 's/^/| /' conftest.$ac_ext >&5
36117
36118         ac_lo= ac_hi=
36119 fi
36120
36121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36122 fi
36123
36124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36125 # Binary search between lo and hi bounds.
36126 while test "x$ac_lo" != "x$ac_hi"; do
36127   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36128   cat >conftest.$ac_ext <<_ACEOF
36129 /* confdefs.h.  */
36130 _ACEOF
36131 cat confdefs.h >>conftest.$ac_ext
36132 cat >>conftest.$ac_ext <<_ACEOF
36133 /* end confdefs.h.  */
36134 $ac_includes_default
36135    typedef int ac__type_sizeof_;
36136 int
36137 main ()
36138 {
36139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36140 test_array [0] = 0
36141
36142   ;
36143   return 0;
36144 }
36145 _ACEOF
36146 rm -f conftest.$ac_objext
36147 if { (ac_try="$ac_compile"
36148 case "(($ac_try" in
36149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36150   *) ac_try_echo=$ac_try;;
36151 esac
36152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36153   (eval "$ac_compile") 2>conftest.er1
36154   ac_status=$?
36155   grep -v '^ *+' conftest.er1 >conftest.err
36156   rm -f conftest.er1
36157   cat conftest.err >&5
36158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36159   (exit $ac_status); } && {
36160          test -z "$ac_c_werror_flag" ||
36161          test ! -s conftest.err
36162        } && test -s conftest.$ac_objext; then
36163   ac_hi=$ac_mid
36164 else
36165   echo "$as_me: failed program was:" >&5
36166 sed 's/^/| /' conftest.$ac_ext >&5
36167
36168         ac_lo=`expr '(' $ac_mid ')' + 1`
36169 fi
36170
36171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36172 done
36173 case $ac_lo in
36174 ?*) ac_cv_sizeof_int=$ac_lo;;
36175 '') if test "$ac_cv_type_int" = yes; then
36176      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36177 See \`config.log' for more details." >&5
36178 echo "$as_me: error: cannot compute sizeof (int)
36179 See \`config.log' for more details." >&2;}
36180    { (exit 77); exit 77; }; }
36181    else
36182      ac_cv_sizeof_int=0
36183    fi ;;
36184 esac
36185 else
36186   cat >conftest.$ac_ext <<_ACEOF
36187 /* confdefs.h.  */
36188 _ACEOF
36189 cat confdefs.h >>conftest.$ac_ext
36190 cat >>conftest.$ac_ext <<_ACEOF
36191 /* end confdefs.h.  */
36192 $ac_includes_default
36193    typedef int ac__type_sizeof_;
36194 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36195 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36196 #include <stdio.h>
36197 #include <stdlib.h>
36198 int
36199 main ()
36200 {
36201
36202   FILE *f = fopen ("conftest.val", "w");
36203   if (! f)
36204     return 1;
36205   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36206     {
36207       long int i = longval ();
36208       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36209         return 1;
36210       fprintf (f, "%ld\n", i);
36211     }
36212   else
36213     {
36214       unsigned long int i = ulongval ();
36215       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36216         return 1;
36217       fprintf (f, "%lu\n", i);
36218     }
36219   return ferror (f) || fclose (f) != 0;
36220
36221   ;
36222   return 0;
36223 }
36224 _ACEOF
36225 rm -f conftest$ac_exeext
36226 if { (ac_try="$ac_link"
36227 case "(($ac_try" in
36228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36229   *) ac_try_echo=$ac_try;;
36230 esac
36231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36232   (eval "$ac_link") 2>&5
36233   ac_status=$?
36234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36236   { (case "(($ac_try" in
36237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36238   *) ac_try_echo=$ac_try;;
36239 esac
36240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36241   (eval "$ac_try") 2>&5
36242   ac_status=$?
36243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244   (exit $ac_status); }; }; then
36245   ac_cv_sizeof_int=`cat conftest.val`
36246 else
36247   echo "$as_me: program exited with status $ac_status" >&5
36248 echo "$as_me: failed program was:" >&5
36249 sed 's/^/| /' conftest.$ac_ext >&5
36250
36251 ( exit $ac_status )
36252 if test "$ac_cv_type_int" = yes; then
36253      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36254 See \`config.log' for more details." >&5
36255 echo "$as_me: error: cannot compute sizeof (int)
36256 See \`config.log' for more details." >&2;}
36257    { (exit 77); exit 77; }; }
36258    else
36259      ac_cv_sizeof_int=0
36260    fi
36261 fi
36262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36263 fi
36264 rm -f conftest.val
36265 fi
36266 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36267 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36268
36269
36270
36271 cat >>confdefs.h <<_ACEOF
36272 #define SIZEOF_INT $ac_cv_sizeof_int
36273 _ACEOF
36274
36275
36276 { echo "$as_me:$LINENO: checking for long int" >&5
36277 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36278 if test "${ac_cv_type_long_int+set}" = set; then
36279   echo $ECHO_N "(cached) $ECHO_C" >&6
36280 else
36281   cat >conftest.$ac_ext <<_ACEOF
36282 /* confdefs.h.  */
36283 _ACEOF
36284 cat confdefs.h >>conftest.$ac_ext
36285 cat >>conftest.$ac_ext <<_ACEOF
36286 /* end confdefs.h.  */
36287 $ac_includes_default
36288 typedef long int ac__type_new_;
36289 int
36290 main ()
36291 {
36292 if ((ac__type_new_ *) 0)
36293   return 0;
36294 if (sizeof (ac__type_new_))
36295   return 0;
36296   ;
36297   return 0;
36298 }
36299 _ACEOF
36300 rm -f conftest.$ac_objext
36301 if { (ac_try="$ac_compile"
36302 case "(($ac_try" in
36303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36304   *) ac_try_echo=$ac_try;;
36305 esac
36306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36307   (eval "$ac_compile") 2>conftest.er1
36308   ac_status=$?
36309   grep -v '^ *+' conftest.er1 >conftest.err
36310   rm -f conftest.er1
36311   cat conftest.err >&5
36312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36313   (exit $ac_status); } && {
36314          test -z "$ac_c_werror_flag" ||
36315          test ! -s conftest.err
36316        } && test -s conftest.$ac_objext; then
36317   ac_cv_type_long_int=yes
36318 else
36319   echo "$as_me: failed program was:" >&5
36320 sed 's/^/| /' conftest.$ac_ext >&5
36321
36322         ac_cv_type_long_int=no
36323 fi
36324
36325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36326 fi
36327 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36328 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36329
36330 # The cast to long int works around a bug in the HP C Compiler
36331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36333 # This bug is HP SR number 8606223364.
36334 { echo "$as_me:$LINENO: checking size of long int" >&5
36335 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36336 if test "${ac_cv_sizeof_long_int+set}" = set; then
36337   echo $ECHO_N "(cached) $ECHO_C" >&6
36338 else
36339   if test "$cross_compiling" = yes; then
36340   # Depending upon the size, compute the lo and hi bounds.
36341 cat >conftest.$ac_ext <<_ACEOF
36342 /* confdefs.h.  */
36343 _ACEOF
36344 cat confdefs.h >>conftest.$ac_ext
36345 cat >>conftest.$ac_ext <<_ACEOF
36346 /* end confdefs.h.  */
36347 $ac_includes_default
36348    typedef long int ac__type_sizeof_;
36349 int
36350 main ()
36351 {
36352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36353 test_array [0] = 0
36354
36355   ;
36356   return 0;
36357 }
36358 _ACEOF
36359 rm -f conftest.$ac_objext
36360 if { (ac_try="$ac_compile"
36361 case "(($ac_try" in
36362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36363   *) ac_try_echo=$ac_try;;
36364 esac
36365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36366   (eval "$ac_compile") 2>conftest.er1
36367   ac_status=$?
36368   grep -v '^ *+' conftest.er1 >conftest.err
36369   rm -f conftest.er1
36370   cat conftest.err >&5
36371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36372   (exit $ac_status); } && {
36373          test -z "$ac_c_werror_flag" ||
36374          test ! -s conftest.err
36375        } && test -s conftest.$ac_objext; then
36376   ac_lo=0 ac_mid=0
36377   while :; do
36378     cat >conftest.$ac_ext <<_ACEOF
36379 /* confdefs.h.  */
36380 _ACEOF
36381 cat confdefs.h >>conftest.$ac_ext
36382 cat >>conftest.$ac_ext <<_ACEOF
36383 /* end confdefs.h.  */
36384 $ac_includes_default
36385    typedef long int ac__type_sizeof_;
36386 int
36387 main ()
36388 {
36389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36390 test_array [0] = 0
36391
36392   ;
36393   return 0;
36394 }
36395 _ACEOF
36396 rm -f conftest.$ac_objext
36397 if { (ac_try="$ac_compile"
36398 case "(($ac_try" in
36399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36400   *) ac_try_echo=$ac_try;;
36401 esac
36402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36403   (eval "$ac_compile") 2>conftest.er1
36404   ac_status=$?
36405   grep -v '^ *+' conftest.er1 >conftest.err
36406   rm -f conftest.er1
36407   cat conftest.err >&5
36408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36409   (exit $ac_status); } && {
36410          test -z "$ac_c_werror_flag" ||
36411          test ! -s conftest.err
36412        } && test -s conftest.$ac_objext; then
36413   ac_hi=$ac_mid; break
36414 else
36415   echo "$as_me: failed program was:" >&5
36416 sed 's/^/| /' conftest.$ac_ext >&5
36417
36418         ac_lo=`expr $ac_mid + 1`
36419                         if test $ac_lo -le $ac_mid; then
36420                           ac_lo= ac_hi=
36421                           break
36422                         fi
36423                         ac_mid=`expr 2 '*' $ac_mid + 1`
36424 fi
36425
36426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36427   done
36428 else
36429   echo "$as_me: failed program was:" >&5
36430 sed 's/^/| /' conftest.$ac_ext >&5
36431
36432         cat >conftest.$ac_ext <<_ACEOF
36433 /* confdefs.h.  */
36434 _ACEOF
36435 cat confdefs.h >>conftest.$ac_ext
36436 cat >>conftest.$ac_ext <<_ACEOF
36437 /* end confdefs.h.  */
36438 $ac_includes_default
36439    typedef long int ac__type_sizeof_;
36440 int
36441 main ()
36442 {
36443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36444 test_array [0] = 0
36445
36446   ;
36447   return 0;
36448 }
36449 _ACEOF
36450 rm -f conftest.$ac_objext
36451 if { (ac_try="$ac_compile"
36452 case "(($ac_try" in
36453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36454   *) ac_try_echo=$ac_try;;
36455 esac
36456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36457   (eval "$ac_compile") 2>conftest.er1
36458   ac_status=$?
36459   grep -v '^ *+' conftest.er1 >conftest.err
36460   rm -f conftest.er1
36461   cat conftest.err >&5
36462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36463   (exit $ac_status); } && {
36464          test -z "$ac_c_werror_flag" ||
36465          test ! -s conftest.err
36466        } && test -s conftest.$ac_objext; then
36467   ac_hi=-1 ac_mid=-1
36468   while :; do
36469     cat >conftest.$ac_ext <<_ACEOF
36470 /* confdefs.h.  */
36471 _ACEOF
36472 cat confdefs.h >>conftest.$ac_ext
36473 cat >>conftest.$ac_ext <<_ACEOF
36474 /* end confdefs.h.  */
36475 $ac_includes_default
36476    typedef long int ac__type_sizeof_;
36477 int
36478 main ()
36479 {
36480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36481 test_array [0] = 0
36482
36483   ;
36484   return 0;
36485 }
36486 _ACEOF
36487 rm -f conftest.$ac_objext
36488 if { (ac_try="$ac_compile"
36489 case "(($ac_try" in
36490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36491   *) ac_try_echo=$ac_try;;
36492 esac
36493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36494   (eval "$ac_compile") 2>conftest.er1
36495   ac_status=$?
36496   grep -v '^ *+' conftest.er1 >conftest.err
36497   rm -f conftest.er1
36498   cat conftest.err >&5
36499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36500   (exit $ac_status); } && {
36501          test -z "$ac_c_werror_flag" ||
36502          test ! -s conftest.err
36503        } && test -s conftest.$ac_objext; then
36504   ac_lo=$ac_mid; break
36505 else
36506   echo "$as_me: failed program was:" >&5
36507 sed 's/^/| /' conftest.$ac_ext >&5
36508
36509         ac_hi=`expr '(' $ac_mid ')' - 1`
36510                         if test $ac_mid -le $ac_hi; then
36511                           ac_lo= ac_hi=
36512                           break
36513                         fi
36514                         ac_mid=`expr 2 '*' $ac_mid`
36515 fi
36516
36517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36518   done
36519 else
36520   echo "$as_me: failed program was:" >&5
36521 sed 's/^/| /' conftest.$ac_ext >&5
36522
36523         ac_lo= ac_hi=
36524 fi
36525
36526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36527 fi
36528
36529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36530 # Binary search between lo and hi bounds.
36531 while test "x$ac_lo" != "x$ac_hi"; do
36532   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36533   cat >conftest.$ac_ext <<_ACEOF
36534 /* confdefs.h.  */
36535 _ACEOF
36536 cat confdefs.h >>conftest.$ac_ext
36537 cat >>conftest.$ac_ext <<_ACEOF
36538 /* end confdefs.h.  */
36539 $ac_includes_default
36540    typedef long int ac__type_sizeof_;
36541 int
36542 main ()
36543 {
36544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36545 test_array [0] = 0
36546
36547   ;
36548   return 0;
36549 }
36550 _ACEOF
36551 rm -f conftest.$ac_objext
36552 if { (ac_try="$ac_compile"
36553 case "(($ac_try" in
36554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36555   *) ac_try_echo=$ac_try;;
36556 esac
36557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36558   (eval "$ac_compile") 2>conftest.er1
36559   ac_status=$?
36560   grep -v '^ *+' conftest.er1 >conftest.err
36561   rm -f conftest.er1
36562   cat conftest.err >&5
36563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564   (exit $ac_status); } && {
36565          test -z "$ac_c_werror_flag" ||
36566          test ! -s conftest.err
36567        } && test -s conftest.$ac_objext; then
36568   ac_hi=$ac_mid
36569 else
36570   echo "$as_me: failed program was:" >&5
36571 sed 's/^/| /' conftest.$ac_ext >&5
36572
36573         ac_lo=`expr '(' $ac_mid ')' + 1`
36574 fi
36575
36576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36577 done
36578 case $ac_lo in
36579 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36580 '') if test "$ac_cv_type_long_int" = yes; then
36581      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36582 See \`config.log' for more details." >&5
36583 echo "$as_me: error: cannot compute sizeof (long int)
36584 See \`config.log' for more details." >&2;}
36585    { (exit 77); exit 77; }; }
36586    else
36587      ac_cv_sizeof_long_int=0
36588    fi ;;
36589 esac
36590 else
36591   cat >conftest.$ac_ext <<_ACEOF
36592 /* confdefs.h.  */
36593 _ACEOF
36594 cat confdefs.h >>conftest.$ac_ext
36595 cat >>conftest.$ac_ext <<_ACEOF
36596 /* end confdefs.h.  */
36597 $ac_includes_default
36598    typedef long int ac__type_sizeof_;
36599 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36600 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36601 #include <stdio.h>
36602 #include <stdlib.h>
36603 int
36604 main ()
36605 {
36606
36607   FILE *f = fopen ("conftest.val", "w");
36608   if (! f)
36609     return 1;
36610   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36611     {
36612       long int i = longval ();
36613       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36614         return 1;
36615       fprintf (f, "%ld\n", i);
36616     }
36617   else
36618     {
36619       unsigned long int i = ulongval ();
36620       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36621         return 1;
36622       fprintf (f, "%lu\n", i);
36623     }
36624   return ferror (f) || fclose (f) != 0;
36625
36626   ;
36627   return 0;
36628 }
36629 _ACEOF
36630 rm -f conftest$ac_exeext
36631 if { (ac_try="$ac_link"
36632 case "(($ac_try" in
36633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36634   *) ac_try_echo=$ac_try;;
36635 esac
36636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36637   (eval "$ac_link") 2>&5
36638   ac_status=$?
36639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36641   { (case "(($ac_try" in
36642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36643   *) ac_try_echo=$ac_try;;
36644 esac
36645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36646   (eval "$ac_try") 2>&5
36647   ac_status=$?
36648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36649   (exit $ac_status); }; }; then
36650   ac_cv_sizeof_long_int=`cat conftest.val`
36651 else
36652   echo "$as_me: program exited with status $ac_status" >&5
36653 echo "$as_me: failed program was:" >&5
36654 sed 's/^/| /' conftest.$ac_ext >&5
36655
36656 ( exit $ac_status )
36657 if test "$ac_cv_type_long_int" = yes; then
36658      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36659 See \`config.log' for more details." >&5
36660 echo "$as_me: error: cannot compute sizeof (long int)
36661 See \`config.log' for more details." >&2;}
36662    { (exit 77); exit 77; }; }
36663    else
36664      ac_cv_sizeof_long_int=0
36665    fi
36666 fi
36667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36668 fi
36669 rm -f conftest.val
36670 fi
36671 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36672 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36673
36674
36675
36676 cat >>confdefs.h <<_ACEOF
36677 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36678 _ACEOF
36679
36680
36681 { echo "$as_me:$LINENO: checking for long long int" >&5
36682 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36683 if test "${ac_cv_type_long_long_int+set}" = set; then
36684   echo $ECHO_N "(cached) $ECHO_C" >&6
36685 else
36686   cat >conftest.$ac_ext <<_ACEOF
36687 /* confdefs.h.  */
36688 _ACEOF
36689 cat confdefs.h >>conftest.$ac_ext
36690 cat >>conftest.$ac_ext <<_ACEOF
36691 /* end confdefs.h.  */
36692 $ac_includes_default
36693 typedef long long int ac__type_new_;
36694 int
36695 main ()
36696 {
36697 if ((ac__type_new_ *) 0)
36698   return 0;
36699 if (sizeof (ac__type_new_))
36700   return 0;
36701   ;
36702   return 0;
36703 }
36704 _ACEOF
36705 rm -f conftest.$ac_objext
36706 if { (ac_try="$ac_compile"
36707 case "(($ac_try" in
36708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36709   *) ac_try_echo=$ac_try;;
36710 esac
36711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36712   (eval "$ac_compile") 2>conftest.er1
36713   ac_status=$?
36714   grep -v '^ *+' conftest.er1 >conftest.err
36715   rm -f conftest.er1
36716   cat conftest.err >&5
36717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718   (exit $ac_status); } && {
36719          test -z "$ac_c_werror_flag" ||
36720          test ! -s conftest.err
36721        } && test -s conftest.$ac_objext; then
36722   ac_cv_type_long_long_int=yes
36723 else
36724   echo "$as_me: failed program was:" >&5
36725 sed 's/^/| /' conftest.$ac_ext >&5
36726
36727         ac_cv_type_long_long_int=no
36728 fi
36729
36730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36731 fi
36732 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36733 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36734
36735 # The cast to long int works around a bug in the HP C Compiler
36736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36738 # This bug is HP SR number 8606223364.
36739 { echo "$as_me:$LINENO: checking size of long long int" >&5
36740 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36741 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36742   echo $ECHO_N "(cached) $ECHO_C" >&6
36743 else
36744   if test "$cross_compiling" = yes; then
36745   # Depending upon the size, compute the lo and hi bounds.
36746 cat >conftest.$ac_ext <<_ACEOF
36747 /* confdefs.h.  */
36748 _ACEOF
36749 cat confdefs.h >>conftest.$ac_ext
36750 cat >>conftest.$ac_ext <<_ACEOF
36751 /* end confdefs.h.  */
36752 $ac_includes_default
36753    typedef long long int ac__type_sizeof_;
36754 int
36755 main ()
36756 {
36757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36758 test_array [0] = 0
36759
36760   ;
36761   return 0;
36762 }
36763 _ACEOF
36764 rm -f conftest.$ac_objext
36765 if { (ac_try="$ac_compile"
36766 case "(($ac_try" in
36767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36768   *) ac_try_echo=$ac_try;;
36769 esac
36770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36771   (eval "$ac_compile") 2>conftest.er1
36772   ac_status=$?
36773   grep -v '^ *+' conftest.er1 >conftest.err
36774   rm -f conftest.er1
36775   cat conftest.err >&5
36776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36777   (exit $ac_status); } && {
36778          test -z "$ac_c_werror_flag" ||
36779          test ! -s conftest.err
36780        } && test -s conftest.$ac_objext; then
36781   ac_lo=0 ac_mid=0
36782   while :; do
36783     cat >conftest.$ac_ext <<_ACEOF
36784 /* confdefs.h.  */
36785 _ACEOF
36786 cat confdefs.h >>conftest.$ac_ext
36787 cat >>conftest.$ac_ext <<_ACEOF
36788 /* end confdefs.h.  */
36789 $ac_includes_default
36790    typedef long long int ac__type_sizeof_;
36791 int
36792 main ()
36793 {
36794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36795 test_array [0] = 0
36796
36797   ;
36798   return 0;
36799 }
36800 _ACEOF
36801 rm -f conftest.$ac_objext
36802 if { (ac_try="$ac_compile"
36803 case "(($ac_try" in
36804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36805   *) ac_try_echo=$ac_try;;
36806 esac
36807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36808   (eval "$ac_compile") 2>conftest.er1
36809   ac_status=$?
36810   grep -v '^ *+' conftest.er1 >conftest.err
36811   rm -f conftest.er1
36812   cat conftest.err >&5
36813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36814   (exit $ac_status); } && {
36815          test -z "$ac_c_werror_flag" ||
36816          test ! -s conftest.err
36817        } && test -s conftest.$ac_objext; then
36818   ac_hi=$ac_mid; break
36819 else
36820   echo "$as_me: failed program was:" >&5
36821 sed 's/^/| /' conftest.$ac_ext >&5
36822
36823         ac_lo=`expr $ac_mid + 1`
36824                         if test $ac_lo -le $ac_mid; then
36825                           ac_lo= ac_hi=
36826                           break
36827                         fi
36828                         ac_mid=`expr 2 '*' $ac_mid + 1`
36829 fi
36830
36831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36832   done
36833 else
36834   echo "$as_me: failed program was:" >&5
36835 sed 's/^/| /' conftest.$ac_ext >&5
36836
36837         cat >conftest.$ac_ext <<_ACEOF
36838 /* confdefs.h.  */
36839 _ACEOF
36840 cat confdefs.h >>conftest.$ac_ext
36841 cat >>conftest.$ac_ext <<_ACEOF
36842 /* end confdefs.h.  */
36843 $ac_includes_default
36844    typedef long long int ac__type_sizeof_;
36845 int
36846 main ()
36847 {
36848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36849 test_array [0] = 0
36850
36851   ;
36852   return 0;
36853 }
36854 _ACEOF
36855 rm -f conftest.$ac_objext
36856 if { (ac_try="$ac_compile"
36857 case "(($ac_try" in
36858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36859   *) ac_try_echo=$ac_try;;
36860 esac
36861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36862   (eval "$ac_compile") 2>conftest.er1
36863   ac_status=$?
36864   grep -v '^ *+' conftest.er1 >conftest.err
36865   rm -f conftest.er1
36866   cat conftest.err >&5
36867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36868   (exit $ac_status); } && {
36869          test -z "$ac_c_werror_flag" ||
36870          test ! -s conftest.err
36871        } && test -s conftest.$ac_objext; then
36872   ac_hi=-1 ac_mid=-1
36873   while :; do
36874     cat >conftest.$ac_ext <<_ACEOF
36875 /* confdefs.h.  */
36876 _ACEOF
36877 cat confdefs.h >>conftest.$ac_ext
36878 cat >>conftest.$ac_ext <<_ACEOF
36879 /* end confdefs.h.  */
36880 $ac_includes_default
36881    typedef long long int ac__type_sizeof_;
36882 int
36883 main ()
36884 {
36885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36886 test_array [0] = 0
36887
36888   ;
36889   return 0;
36890 }
36891 _ACEOF
36892 rm -f conftest.$ac_objext
36893 if { (ac_try="$ac_compile"
36894 case "(($ac_try" in
36895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36896   *) ac_try_echo=$ac_try;;
36897 esac
36898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36899   (eval "$ac_compile") 2>conftest.er1
36900   ac_status=$?
36901   grep -v '^ *+' conftest.er1 >conftest.err
36902   rm -f conftest.er1
36903   cat conftest.err >&5
36904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36905   (exit $ac_status); } && {
36906          test -z "$ac_c_werror_flag" ||
36907          test ! -s conftest.err
36908        } && test -s conftest.$ac_objext; then
36909   ac_lo=$ac_mid; break
36910 else
36911   echo "$as_me: failed program was:" >&5
36912 sed 's/^/| /' conftest.$ac_ext >&5
36913
36914         ac_hi=`expr '(' $ac_mid ')' - 1`
36915                         if test $ac_mid -le $ac_hi; then
36916                           ac_lo= ac_hi=
36917                           break
36918                         fi
36919                         ac_mid=`expr 2 '*' $ac_mid`
36920 fi
36921
36922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36923   done
36924 else
36925   echo "$as_me: failed program was:" >&5
36926 sed 's/^/| /' conftest.$ac_ext >&5
36927
36928         ac_lo= ac_hi=
36929 fi
36930
36931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36932 fi
36933
36934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36935 # Binary search between lo and hi bounds.
36936 while test "x$ac_lo" != "x$ac_hi"; do
36937   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36938   cat >conftest.$ac_ext <<_ACEOF
36939 /* confdefs.h.  */
36940 _ACEOF
36941 cat confdefs.h >>conftest.$ac_ext
36942 cat >>conftest.$ac_ext <<_ACEOF
36943 /* end confdefs.h.  */
36944 $ac_includes_default
36945    typedef long long int ac__type_sizeof_;
36946 int
36947 main ()
36948 {
36949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36950 test_array [0] = 0
36951
36952   ;
36953   return 0;
36954 }
36955 _ACEOF
36956 rm -f conftest.$ac_objext
36957 if { (ac_try="$ac_compile"
36958 case "(($ac_try" in
36959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36960   *) ac_try_echo=$ac_try;;
36961 esac
36962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36963   (eval "$ac_compile") 2>conftest.er1
36964   ac_status=$?
36965   grep -v '^ *+' conftest.er1 >conftest.err
36966   rm -f conftest.er1
36967   cat conftest.err >&5
36968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36969   (exit $ac_status); } && {
36970          test -z "$ac_c_werror_flag" ||
36971          test ! -s conftest.err
36972        } && test -s conftest.$ac_objext; then
36973   ac_hi=$ac_mid
36974 else
36975   echo "$as_me: failed program was:" >&5
36976 sed 's/^/| /' conftest.$ac_ext >&5
36977
36978         ac_lo=`expr '(' $ac_mid ')' + 1`
36979 fi
36980
36981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36982 done
36983 case $ac_lo in
36984 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36985 '') if test "$ac_cv_type_long_long_int" = yes; then
36986      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36987 See \`config.log' for more details." >&5
36988 echo "$as_me: error: cannot compute sizeof (long long int)
36989 See \`config.log' for more details." >&2;}
36990    { (exit 77); exit 77; }; }
36991    else
36992      ac_cv_sizeof_long_long_int=0
36993    fi ;;
36994 esac
36995 else
36996   cat >conftest.$ac_ext <<_ACEOF
36997 /* confdefs.h.  */
36998 _ACEOF
36999 cat confdefs.h >>conftest.$ac_ext
37000 cat >>conftest.$ac_ext <<_ACEOF
37001 /* end confdefs.h.  */
37002 $ac_includes_default
37003    typedef long long int ac__type_sizeof_;
37004 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37005 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37006 #include <stdio.h>
37007 #include <stdlib.h>
37008 int
37009 main ()
37010 {
37011
37012   FILE *f = fopen ("conftest.val", "w");
37013   if (! f)
37014     return 1;
37015   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37016     {
37017       long int i = longval ();
37018       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37019         return 1;
37020       fprintf (f, "%ld\n", i);
37021     }
37022   else
37023     {
37024       unsigned long int i = ulongval ();
37025       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37026         return 1;
37027       fprintf (f, "%lu\n", i);
37028     }
37029   return ferror (f) || fclose (f) != 0;
37030
37031   ;
37032   return 0;
37033 }
37034 _ACEOF
37035 rm -f conftest$ac_exeext
37036 if { (ac_try="$ac_link"
37037 case "(($ac_try" in
37038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37039   *) ac_try_echo=$ac_try;;
37040 esac
37041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37042   (eval "$ac_link") 2>&5
37043   ac_status=$?
37044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37046   { (case "(($ac_try" in
37047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37048   *) ac_try_echo=$ac_try;;
37049 esac
37050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37051   (eval "$ac_try") 2>&5
37052   ac_status=$?
37053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054   (exit $ac_status); }; }; then
37055   ac_cv_sizeof_long_long_int=`cat conftest.val`
37056 else
37057   echo "$as_me: program exited with status $ac_status" >&5
37058 echo "$as_me: failed program was:" >&5
37059 sed 's/^/| /' conftest.$ac_ext >&5
37060
37061 ( exit $ac_status )
37062 if test "$ac_cv_type_long_long_int" = yes; then
37063      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
37064 See \`config.log' for more details." >&5
37065 echo "$as_me: error: cannot compute sizeof (long long int)
37066 See \`config.log' for more details." >&2;}
37067    { (exit 77); exit 77; }; }
37068    else
37069      ac_cv_sizeof_long_long_int=0
37070    fi
37071 fi
37072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37073 fi
37074 rm -f conftest.val
37075 fi
37076 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
37077 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
37078
37079
37080
37081 cat >>confdefs.h <<_ACEOF
37082 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
37083 _ACEOF
37084
37085
37086 { echo "$as_me:$LINENO: checking for int *" >&5
37087 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
37088 if test "${ac_cv_type_int_p+set}" = set; then
37089   echo $ECHO_N "(cached) $ECHO_C" >&6
37090 else
37091   cat >conftest.$ac_ext <<_ACEOF
37092 /* confdefs.h.  */
37093 _ACEOF
37094 cat confdefs.h >>conftest.$ac_ext
37095 cat >>conftest.$ac_ext <<_ACEOF
37096 /* end confdefs.h.  */
37097 $ac_includes_default
37098 typedef int * ac__type_new_;
37099 int
37100 main ()
37101 {
37102 if ((ac__type_new_ *) 0)
37103   return 0;
37104 if (sizeof (ac__type_new_))
37105   return 0;
37106   ;
37107   return 0;
37108 }
37109 _ACEOF
37110 rm -f conftest.$ac_objext
37111 if { (ac_try="$ac_compile"
37112 case "(($ac_try" in
37113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37114   *) ac_try_echo=$ac_try;;
37115 esac
37116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37117   (eval "$ac_compile") 2>conftest.er1
37118   ac_status=$?
37119   grep -v '^ *+' conftest.er1 >conftest.err
37120   rm -f conftest.er1
37121   cat conftest.err >&5
37122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37123   (exit $ac_status); } && {
37124          test -z "$ac_c_werror_flag" ||
37125          test ! -s conftest.err
37126        } && test -s conftest.$ac_objext; then
37127   ac_cv_type_int_p=yes
37128 else
37129   echo "$as_me: failed program was:" >&5
37130 sed 's/^/| /' conftest.$ac_ext >&5
37131
37132         ac_cv_type_int_p=no
37133 fi
37134
37135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37136 fi
37137 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
37138 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
37139
37140 # The cast to long int works around a bug in the HP C Compiler
37141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37143 # This bug is HP SR number 8606223364.
37144 { echo "$as_me:$LINENO: checking size of int *" >&5
37145 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
37146 if test "${ac_cv_sizeof_int_p+set}" = set; then
37147   echo $ECHO_N "(cached) $ECHO_C" >&6
37148 else
37149   if test "$cross_compiling" = yes; then
37150   # Depending upon the size, compute the lo and hi bounds.
37151 cat >conftest.$ac_ext <<_ACEOF
37152 /* confdefs.h.  */
37153 _ACEOF
37154 cat confdefs.h >>conftest.$ac_ext
37155 cat >>conftest.$ac_ext <<_ACEOF
37156 /* end confdefs.h.  */
37157 $ac_includes_default
37158    typedef int * ac__type_sizeof_;
37159 int
37160 main ()
37161 {
37162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
37163 test_array [0] = 0
37164
37165   ;
37166   return 0;
37167 }
37168 _ACEOF
37169 rm -f conftest.$ac_objext
37170 if { (ac_try="$ac_compile"
37171 case "(($ac_try" in
37172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37173   *) ac_try_echo=$ac_try;;
37174 esac
37175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37176   (eval "$ac_compile") 2>conftest.er1
37177   ac_status=$?
37178   grep -v '^ *+' conftest.er1 >conftest.err
37179   rm -f conftest.er1
37180   cat conftest.err >&5
37181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37182   (exit $ac_status); } && {
37183          test -z "$ac_c_werror_flag" ||
37184          test ! -s conftest.err
37185        } && test -s conftest.$ac_objext; then
37186   ac_lo=0 ac_mid=0
37187   while :; do
37188     cat >conftest.$ac_ext <<_ACEOF
37189 /* confdefs.h.  */
37190 _ACEOF
37191 cat confdefs.h >>conftest.$ac_ext
37192 cat >>conftest.$ac_ext <<_ACEOF
37193 /* end confdefs.h.  */
37194 $ac_includes_default
37195    typedef int * ac__type_sizeof_;
37196 int
37197 main ()
37198 {
37199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37200 test_array [0] = 0
37201
37202   ;
37203   return 0;
37204 }
37205 _ACEOF
37206 rm -f conftest.$ac_objext
37207 if { (ac_try="$ac_compile"
37208 case "(($ac_try" in
37209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37210   *) ac_try_echo=$ac_try;;
37211 esac
37212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37213   (eval "$ac_compile") 2>conftest.er1
37214   ac_status=$?
37215   grep -v '^ *+' conftest.er1 >conftest.err
37216   rm -f conftest.er1
37217   cat conftest.err >&5
37218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219   (exit $ac_status); } && {
37220          test -z "$ac_c_werror_flag" ||
37221          test ! -s conftest.err
37222        } && test -s conftest.$ac_objext; then
37223   ac_hi=$ac_mid; break
37224 else
37225   echo "$as_me: failed program was:" >&5
37226 sed 's/^/| /' conftest.$ac_ext >&5
37227
37228         ac_lo=`expr $ac_mid + 1`
37229                         if test $ac_lo -le $ac_mid; then
37230                           ac_lo= ac_hi=
37231                           break
37232                         fi
37233                         ac_mid=`expr 2 '*' $ac_mid + 1`
37234 fi
37235
37236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37237   done
37238 else
37239   echo "$as_me: failed program was:" >&5
37240 sed 's/^/| /' conftest.$ac_ext >&5
37241
37242         cat >conftest.$ac_ext <<_ACEOF
37243 /* confdefs.h.  */
37244 _ACEOF
37245 cat confdefs.h >>conftest.$ac_ext
37246 cat >>conftest.$ac_ext <<_ACEOF
37247 /* end confdefs.h.  */
37248 $ac_includes_default
37249    typedef int * ac__type_sizeof_;
37250 int
37251 main ()
37252 {
37253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37254 test_array [0] = 0
37255
37256   ;
37257   return 0;
37258 }
37259 _ACEOF
37260 rm -f conftest.$ac_objext
37261 if { (ac_try="$ac_compile"
37262 case "(($ac_try" in
37263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37264   *) ac_try_echo=$ac_try;;
37265 esac
37266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37267   (eval "$ac_compile") 2>conftest.er1
37268   ac_status=$?
37269   grep -v '^ *+' conftest.er1 >conftest.err
37270   rm -f conftest.er1
37271   cat conftest.err >&5
37272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37273   (exit $ac_status); } && {
37274          test -z "$ac_c_werror_flag" ||
37275          test ! -s conftest.err
37276        } && test -s conftest.$ac_objext; then
37277   ac_hi=-1 ac_mid=-1
37278   while :; do
37279     cat >conftest.$ac_ext <<_ACEOF
37280 /* confdefs.h.  */
37281 _ACEOF
37282 cat confdefs.h >>conftest.$ac_ext
37283 cat >>conftest.$ac_ext <<_ACEOF
37284 /* end confdefs.h.  */
37285 $ac_includes_default
37286    typedef int * ac__type_sizeof_;
37287 int
37288 main ()
37289 {
37290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37291 test_array [0] = 0
37292
37293   ;
37294   return 0;
37295 }
37296 _ACEOF
37297 rm -f conftest.$ac_objext
37298 if { (ac_try="$ac_compile"
37299 case "(($ac_try" in
37300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37301   *) ac_try_echo=$ac_try;;
37302 esac
37303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37304   (eval "$ac_compile") 2>conftest.er1
37305   ac_status=$?
37306   grep -v '^ *+' conftest.er1 >conftest.err
37307   rm -f conftest.er1
37308   cat conftest.err >&5
37309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37310   (exit $ac_status); } && {
37311          test -z "$ac_c_werror_flag" ||
37312          test ! -s conftest.err
37313        } && test -s conftest.$ac_objext; then
37314   ac_lo=$ac_mid; break
37315 else
37316   echo "$as_me: failed program was:" >&5
37317 sed 's/^/| /' conftest.$ac_ext >&5
37318
37319         ac_hi=`expr '(' $ac_mid ')' - 1`
37320                         if test $ac_mid -le $ac_hi; then
37321                           ac_lo= ac_hi=
37322                           break
37323                         fi
37324                         ac_mid=`expr 2 '*' $ac_mid`
37325 fi
37326
37327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37328   done
37329 else
37330   echo "$as_me: failed program was:" >&5
37331 sed 's/^/| /' conftest.$ac_ext >&5
37332
37333         ac_lo= ac_hi=
37334 fi
37335
37336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37337 fi
37338
37339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37340 # Binary search between lo and hi bounds.
37341 while test "x$ac_lo" != "x$ac_hi"; do
37342   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37343   cat >conftest.$ac_ext <<_ACEOF
37344 /* confdefs.h.  */
37345 _ACEOF
37346 cat confdefs.h >>conftest.$ac_ext
37347 cat >>conftest.$ac_ext <<_ACEOF
37348 /* end confdefs.h.  */
37349 $ac_includes_default
37350    typedef int * ac__type_sizeof_;
37351 int
37352 main ()
37353 {
37354 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37355 test_array [0] = 0
37356
37357   ;
37358   return 0;
37359 }
37360 _ACEOF
37361 rm -f conftest.$ac_objext
37362 if { (ac_try="$ac_compile"
37363 case "(($ac_try" in
37364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37365   *) ac_try_echo=$ac_try;;
37366 esac
37367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37368   (eval "$ac_compile") 2>conftest.er1
37369   ac_status=$?
37370   grep -v '^ *+' conftest.er1 >conftest.err
37371   rm -f conftest.er1
37372   cat conftest.err >&5
37373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37374   (exit $ac_status); } && {
37375          test -z "$ac_c_werror_flag" ||
37376          test ! -s conftest.err
37377        } && test -s conftest.$ac_objext; then
37378   ac_hi=$ac_mid
37379 else
37380   echo "$as_me: failed program was:" >&5
37381 sed 's/^/| /' conftest.$ac_ext >&5
37382
37383         ac_lo=`expr '(' $ac_mid ')' + 1`
37384 fi
37385
37386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37387 done
37388 case $ac_lo in
37389 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37390 '') if test "$ac_cv_type_int_p" = yes; then
37391      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37392 See \`config.log' for more details." >&5
37393 echo "$as_me: error: cannot compute sizeof (int *)
37394 See \`config.log' for more details." >&2;}
37395    { (exit 77); exit 77; }; }
37396    else
37397      ac_cv_sizeof_int_p=0
37398    fi ;;
37399 esac
37400 else
37401   cat >conftest.$ac_ext <<_ACEOF
37402 /* confdefs.h.  */
37403 _ACEOF
37404 cat confdefs.h >>conftest.$ac_ext
37405 cat >>conftest.$ac_ext <<_ACEOF
37406 /* end confdefs.h.  */
37407 $ac_includes_default
37408    typedef int * ac__type_sizeof_;
37409 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37410 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37411 #include <stdio.h>
37412 #include <stdlib.h>
37413 int
37414 main ()
37415 {
37416
37417   FILE *f = fopen ("conftest.val", "w");
37418   if (! f)
37419     return 1;
37420   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37421     {
37422       long int i = longval ();
37423       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37424         return 1;
37425       fprintf (f, "%ld\n", i);
37426     }
37427   else
37428     {
37429       unsigned long int i = ulongval ();
37430       if (i != ((long int) (sizeof (ac__type_sizeof_))))
37431         return 1;
37432       fprintf (f, "%lu\n", i);
37433     }
37434   return ferror (f) || fclose (f) != 0;
37435
37436   ;
37437   return 0;
37438 }
37439 _ACEOF
37440 rm -f conftest$ac_exeext
37441 if { (ac_try="$ac_link"
37442 case "(($ac_try" in
37443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37444   *) ac_try_echo=$ac_try;;
37445 esac
37446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37447   (eval "$ac_link") 2>&5
37448   ac_status=$?
37449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37451   { (case "(($ac_try" in
37452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37453   *) ac_try_echo=$ac_try;;
37454 esac
37455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37456   (eval "$ac_try") 2>&5
37457   ac_status=$?
37458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459   (exit $ac_status); }; }; then
37460   ac_cv_sizeof_int_p=`cat conftest.val`
37461 else
37462   echo "$as_me: program exited with status $ac_status" >&5
37463 echo "$as_me: failed program was:" >&5
37464 sed 's/^/| /' conftest.$ac_ext >&5
37465
37466 ( exit $ac_status )
37467 if test "$ac_cv_type_int_p" = yes; then
37468      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37469 See \`config.log' for more details." >&5
37470 echo "$as_me: error: cannot compute sizeof (int *)
37471 See \`config.log' for more details." >&2;}
37472    { (exit 77); exit 77; }; }
37473    else
37474      ac_cv_sizeof_int_p=0
37475    fi
37476 fi
37477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37478 fi
37479 rm -f conftest.val
37480 fi
37481 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37482 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37483
37484
37485
37486 cat >>confdefs.h <<_ACEOF
37487 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37488 _ACEOF
37489
37490
37491
37492 { echo "$as_me:$LINENO: checking for u_int type" >&5
37493 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37494 if test "${ac_cv_have_u_int+set}" = set; then
37495   echo $ECHO_N "(cached) $ECHO_C" >&6
37496 else
37497
37498        cat >conftest.$ac_ext <<_ACEOF
37499 /* confdefs.h.  */
37500 _ACEOF
37501 cat confdefs.h >>conftest.$ac_ext
37502 cat >>conftest.$ac_ext <<_ACEOF
37503 /* end confdefs.h.  */
37504
37505               #include <sys/types.h>
37506
37507 int
37508 main ()
37509 {
37510
37511               u_int a; a = 1;
37512
37513   ;
37514   return 0;
37515 }
37516 _ACEOF
37517 rm -f conftest.$ac_objext
37518 if { (ac_try="$ac_compile"
37519 case "(($ac_try" in
37520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37521   *) ac_try_echo=$ac_try;;
37522 esac
37523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37524   (eval "$ac_compile") 2>conftest.er1
37525   ac_status=$?
37526   grep -v '^ *+' conftest.er1 >conftest.err
37527   rm -f conftest.er1
37528   cat conftest.err >&5
37529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37530   (exit $ac_status); } && {
37531          test -z "$ac_c_werror_flag" ||
37532          test ! -s conftest.err
37533        } && test -s conftest.$ac_objext; then
37534
37535               ac_cv_have_u_int="yes"
37536
37537 else
37538   echo "$as_me: failed program was:" >&5
37539 sed 's/^/| /' conftest.$ac_ext >&5
37540
37541
37542               ac_cv_have_u_int="no"
37543
37544
37545 fi
37546
37547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37548
37549
37550 fi
37551 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37552 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37553 if test "x$ac_cv_have_u_int" = "xyes" ; then
37554    cat >>confdefs.h <<\_ACEOF
37555 #define HAVE_U_INT 1
37556 _ACEOF
37557
37558    have_u_int=1
37559 fi
37560
37561 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37562 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37563 if test "${ac_cv_have_intmax_t+set}" = set; then
37564   echo $ECHO_N "(cached) $ECHO_C" >&6
37565 else
37566
37567        cat >conftest.$ac_ext <<_ACEOF
37568 /* confdefs.h.  */
37569 _ACEOF
37570 cat confdefs.h >>conftest.$ac_ext
37571 cat >>conftest.$ac_ext <<_ACEOF
37572 /* end confdefs.h.  */
37573
37574               #include <sys/types.h>
37575
37576 int
37577 main ()
37578 {
37579
37580               intmax_t a; a = 1;
37581
37582   ;
37583   return 0;
37584 }
37585 _ACEOF
37586 rm -f conftest.$ac_objext
37587 if { (ac_try="$ac_compile"
37588 case "(($ac_try" in
37589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37590   *) ac_try_echo=$ac_try;;
37591 esac
37592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37593   (eval "$ac_compile") 2>conftest.er1
37594   ac_status=$?
37595   grep -v '^ *+' conftest.er1 >conftest.err
37596   rm -f conftest.er1
37597   cat conftest.err >&5
37598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37599   (exit $ac_status); } && {
37600          test -z "$ac_c_werror_flag" ||
37601          test ! -s conftest.err
37602        } && test -s conftest.$ac_objext; then
37603
37604               ac_cv_have_intmax_t="yes"
37605
37606 else
37607   echo "$as_me: failed program was:" >&5
37608 sed 's/^/| /' conftest.$ac_ext >&5
37609
37610
37611               cat >conftest.$ac_ext <<_ACEOF
37612 /* confdefs.h.  */
37613 _ACEOF
37614 cat confdefs.h >>conftest.$ac_ext
37615 cat >>conftest.$ac_ext <<_ACEOF
37616 /* end confdefs.h.  */
37617
37618                      #include <stdint.h>
37619
37620 int
37621 main ()
37622 {
37623
37624                      intmax_t a; a = 1;
37625
37626   ;
37627   return 0;
37628 }
37629 _ACEOF
37630 rm -f conftest.$ac_objext
37631 if { (ac_try="$ac_compile"
37632 case "(($ac_try" in
37633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37634   *) ac_try_echo=$ac_try;;
37635 esac
37636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37637   (eval "$ac_compile") 2>conftest.er1
37638   ac_status=$?
37639   grep -v '^ *+' conftest.er1 >conftest.err
37640   rm -f conftest.er1
37641   cat conftest.err >&5
37642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643   (exit $ac_status); } && {
37644          test -z "$ac_c_werror_flag" ||
37645          test ! -s conftest.err
37646        } && test -s conftest.$ac_objext; then
37647
37648                      ac_cv_have_intmax_t="yes"
37649
37650 else
37651   echo "$as_me: failed program was:" >&5
37652 sed 's/^/| /' conftest.$ac_ext >&5
37653
37654
37655                      ac_cv_have_intmax_t="no"
37656
37657
37658 fi
37659
37660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37661
37662
37663 fi
37664
37665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37666
37667
37668 fi
37669 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37670 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37671 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37672    cat >>confdefs.h <<\_ACEOF
37673 #define HAVE_INTMAX_T 1
37674 _ACEOF
37675
37676    have_intmax_t=1
37677 fi
37678
37679 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37680 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37681 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37682   echo $ECHO_N "(cached) $ECHO_C" >&6
37683 else
37684
37685        cat >conftest.$ac_ext <<_ACEOF
37686 /* confdefs.h.  */
37687 _ACEOF
37688 cat confdefs.h >>conftest.$ac_ext
37689 cat >>conftest.$ac_ext <<_ACEOF
37690 /* end confdefs.h.  */
37691
37692               #include <sys/types.h>
37693
37694 int
37695 main ()
37696 {
37697
37698               u_intmax_t a; a = 1;
37699
37700   ;
37701   return 0;
37702 }
37703 _ACEOF
37704 rm -f conftest.$ac_objext
37705 if { (ac_try="$ac_compile"
37706 case "(($ac_try" in
37707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37708   *) ac_try_echo=$ac_try;;
37709 esac
37710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37711   (eval "$ac_compile") 2>conftest.er1
37712   ac_status=$?
37713   grep -v '^ *+' conftest.er1 >conftest.err
37714   rm -f conftest.er1
37715   cat conftest.err >&5
37716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37717   (exit $ac_status); } && {
37718          test -z "$ac_c_werror_flag" ||
37719          test ! -s conftest.err
37720        } && test -s conftest.$ac_objext; then
37721
37722               ac_cv_have_u_intmax_t="yes"
37723
37724 else
37725   echo "$as_me: failed program was:" >&5
37726 sed 's/^/| /' conftest.$ac_ext >&5
37727
37728
37729               cat >conftest.$ac_ext <<_ACEOF
37730 /* confdefs.h.  */
37731 _ACEOF
37732 cat confdefs.h >>conftest.$ac_ext
37733 cat >>conftest.$ac_ext <<_ACEOF
37734 /* end confdefs.h.  */
37735
37736                      #include <stdint.h>
37737
37738 int
37739 main ()
37740 {
37741
37742                     u_intmax_t a; a = 1;
37743
37744   ;
37745   return 0;
37746 }
37747 _ACEOF
37748 rm -f conftest.$ac_objext
37749 if { (ac_try="$ac_compile"
37750 case "(($ac_try" in
37751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37752   *) ac_try_echo=$ac_try;;
37753 esac
37754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37755   (eval "$ac_compile") 2>conftest.er1
37756   ac_status=$?
37757   grep -v '^ *+' conftest.er1 >conftest.err
37758   rm -f conftest.er1
37759   cat conftest.err >&5
37760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37761   (exit $ac_status); } && {
37762          test -z "$ac_c_werror_flag" ||
37763          test ! -s conftest.err
37764        } && test -s conftest.$ac_objext; then
37765
37766                     ac_cv_have_u_intmax_t="yes"
37767
37768 else
37769   echo "$as_me: failed program was:" >&5
37770 sed 's/^/| /' conftest.$ac_ext >&5
37771
37772
37773                     ac_cv_have_u_intmax_t="no"
37774
37775
37776 fi
37777
37778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37779
37780
37781 fi
37782
37783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37784
37785
37786 fi
37787 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37788 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37789 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37790    cat >>confdefs.h <<\_ACEOF
37791 #define HAVE_U_INTMAX_T 1
37792 _ACEOF
37793
37794    have_u_intmax_t=1
37795 fi
37796
37797 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37798 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37799 if test "${ac_cv_have_intxx_t+set}" = set; then
37800   echo $ECHO_N "(cached) $ECHO_C" >&6
37801 else
37802
37803        cat >conftest.$ac_ext <<_ACEOF
37804 /* confdefs.h.  */
37805 _ACEOF
37806 cat confdefs.h >>conftest.$ac_ext
37807 cat >>conftest.$ac_ext <<_ACEOF
37808 /* end confdefs.h.  */
37809
37810               #include <sys/types.h>
37811
37812 int
37813 main ()
37814 {
37815
37816               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37817
37818   ;
37819   return 0;
37820 }
37821 _ACEOF
37822 rm -f conftest.$ac_objext
37823 if { (ac_try="$ac_compile"
37824 case "(($ac_try" in
37825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37826   *) ac_try_echo=$ac_try;;
37827 esac
37828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37829   (eval "$ac_compile") 2>conftest.er1
37830   ac_status=$?
37831   grep -v '^ *+' conftest.er1 >conftest.err
37832   rm -f conftest.er1
37833   cat conftest.err >&5
37834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37835   (exit $ac_status); } && {
37836          test -z "$ac_c_werror_flag" ||
37837          test ! -s conftest.err
37838        } && test -s conftest.$ac_objext; then
37839
37840               ac_cv_have_intxx_t="yes"
37841
37842 else
37843   echo "$as_me: failed program was:" >&5
37844 sed 's/^/| /' conftest.$ac_ext >&5
37845
37846
37847               ac_cv_have_intxx_t="no"
37848
37849
37850 fi
37851
37852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37853
37854
37855 fi
37856 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37857 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37858 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37859    cat >>confdefs.h <<\_ACEOF
37860 #define HAVE_INTXX_T 1
37861 _ACEOF
37862
37863    have_intxx_t=1
37864 fi
37865
37866 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37867 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37868 if test "${ac_cv_have_int64_t+set}" = set; then
37869   echo $ECHO_N "(cached) $ECHO_C" >&6
37870 else
37871
37872        cat >conftest.$ac_ext <<_ACEOF
37873 /* confdefs.h.  */
37874 _ACEOF
37875 cat confdefs.h >>conftest.$ac_ext
37876 cat >>conftest.$ac_ext <<_ACEOF
37877 /* end confdefs.h.  */
37878
37879               #include <sys/types.h>
37880
37881 int
37882 main ()
37883 {
37884
37885               int64_t a; a = 1;
37886
37887   ;
37888   return 0;
37889 }
37890 _ACEOF
37891 rm -f conftest.$ac_objext
37892 if { (ac_try="$ac_compile"
37893 case "(($ac_try" in
37894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37895   *) ac_try_echo=$ac_try;;
37896 esac
37897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37898   (eval "$ac_compile") 2>conftest.er1
37899   ac_status=$?
37900   grep -v '^ *+' conftest.er1 >conftest.err
37901   rm -f conftest.er1
37902   cat conftest.err >&5
37903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37904   (exit $ac_status); } && {
37905          test -z "$ac_c_werror_flag" ||
37906          test ! -s conftest.err
37907        } && test -s conftest.$ac_objext; then
37908
37909               ac_cv_have_int64_t="yes"
37910
37911 else
37912   echo "$as_me: failed program was:" >&5
37913 sed 's/^/| /' conftest.$ac_ext >&5
37914
37915
37916               ac_cv_have_int64_t="no"
37917
37918
37919 fi
37920
37921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37922
37923
37924 fi
37925 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37926 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37927 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37928    cat >>confdefs.h <<\_ACEOF
37929 #define HAVE_INT64_T 1
37930 _ACEOF
37931
37932    have_int64_t=1
37933 fi
37934
37935 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37936 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37937 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37938   echo $ECHO_N "(cached) $ECHO_C" >&6
37939 else
37940
37941        cat >conftest.$ac_ext <<_ACEOF
37942 /* confdefs.h.  */
37943 _ACEOF
37944 cat confdefs.h >>conftest.$ac_ext
37945 cat >>conftest.$ac_ext <<_ACEOF
37946 /* end confdefs.h.  */
37947
37948               #include <sys/types.h>
37949
37950 int
37951 main ()
37952 {
37953
37954               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37955
37956   ;
37957   return 0;
37958 }
37959 _ACEOF
37960 rm -f conftest.$ac_objext
37961 if { (ac_try="$ac_compile"
37962 case "(($ac_try" in
37963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37964   *) ac_try_echo=$ac_try;;
37965 esac
37966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37967   (eval "$ac_compile") 2>conftest.er1
37968   ac_status=$?
37969   grep -v '^ *+' conftest.er1 >conftest.err
37970   rm -f conftest.er1
37971   cat conftest.err >&5
37972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37973   (exit $ac_status); } && {
37974          test -z "$ac_c_werror_flag" ||
37975          test ! -s conftest.err
37976        } && test -s conftest.$ac_objext; then
37977
37978              ac_cv_have_u_intxx_t="yes"
37979
37980 else
37981   echo "$as_me: failed program was:" >&5
37982 sed 's/^/| /' conftest.$ac_ext >&5
37983
37984
37985              ac_cv_have_u_intxx_t="no"
37986
37987
37988 fi
37989
37990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37991
37992
37993 fi
37994 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37995 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37996 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37997    cat >>confdefs.h <<\_ACEOF
37998 #define HAVE_U_INTXX_T 1
37999 _ACEOF
38000
38001    have_u_intxx_t=1
38002 fi
38003
38004 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
38005 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
38006 if test "${ac_cv_have_u_int64_t+set}" = set; then
38007   echo $ECHO_N "(cached) $ECHO_C" >&6
38008 else
38009
38010        cat >conftest.$ac_ext <<_ACEOF
38011 /* confdefs.h.  */
38012 _ACEOF
38013 cat confdefs.h >>conftest.$ac_ext
38014 cat >>conftest.$ac_ext <<_ACEOF
38015 /* end confdefs.h.  */
38016
38017               #include <sys/types.h>
38018
38019 int
38020 main ()
38021 {
38022
38023               u_int64_t a; a = 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_u_int64_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_u_int64_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_u_int64_t" >&5
38064 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
38065 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
38066    cat >>confdefs.h <<\_ACEOF
38067 #define HAVE_U_INT64_T 1
38068 _ACEOF
38069
38070    have_u_int64_t=1
38071 fi
38072
38073 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
38074     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38075 then
38076    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
38077 echo $ECHO_N "checking for intXX_t and u_intXX_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           int8_t a; int16_t b; int32_t c;
38092           u_int8_t e; u_int16_t f; u_int32_t g;
38093           a = b = c = e = f = g = 1;
38094
38095   ;
38096   return 0;
38097 }
38098 _ACEOF
38099 rm -f conftest.$ac_objext
38100 if { (ac_try="$ac_compile"
38101 case "(($ac_try" in
38102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38103   *) ac_try_echo=$ac_try;;
38104 esac
38105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38106   (eval "$ac_compile") 2>conftest.er1
38107   ac_status=$?
38108   grep -v '^ *+' conftest.er1 >conftest.err
38109   rm -f conftest.er1
38110   cat conftest.err >&5
38111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38112   (exit $ac_status); } && {
38113          test -z "$ac_c_werror_flag" ||
38114          test ! -s conftest.err
38115        } && test -s conftest.$ac_objext; then
38116
38117           cat >>confdefs.h <<\_ACEOF
38118 #define HAVE_U_INTXX_T 1
38119 _ACEOF
38120
38121           cat >>confdefs.h <<\_ACEOF
38122 #define HAVE_INTXX_T 1
38123 _ACEOF
38124
38125           cat >>confdefs.h <<\_ACEOF
38126 #define HAVE_SYS_BITYPES_H 1
38127 _ACEOF
38128
38129           { echo "$as_me:$LINENO: result: yes" >&5
38130 echo "${ECHO_T}yes" >&6; }
38131
38132 else
38133   echo "$as_me: failed program was:" >&5
38134 sed 's/^/| /' conftest.$ac_ext >&5
38135
38136
38137           { echo "$as_me:$LINENO: result: no" >&5
38138 echo "${ECHO_T}no" >&6; }
38139
38140
38141 fi
38142
38143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38144 fi
38145
38146 if test -z "$have_u_intxx_t" ; then
38147    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
38148 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
38149 if test "${ac_cv_have_uintxx_t+set}" = set; then
38150   echo $ECHO_N "(cached) $ECHO_C" >&6
38151 else
38152
38153           cat >conftest.$ac_ext <<_ACEOF
38154 /* confdefs.h.  */
38155 _ACEOF
38156 cat confdefs.h >>conftest.$ac_ext
38157 cat >>conftest.$ac_ext <<_ACEOF
38158 /* end confdefs.h.  */
38159
38160                  #include <sys/types.h>
38161
38162 int
38163 main ()
38164 {
38165
38166                  uint8_t a; uint16_t b;
38167                  uint32_t c; a = b = c = 1;
38168
38169   ;
38170   return 0;
38171 }
38172 _ACEOF
38173 rm -f conftest.$ac_objext
38174 if { (ac_try="$ac_compile"
38175 case "(($ac_try" in
38176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38177   *) ac_try_echo=$ac_try;;
38178 esac
38179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38180   (eval "$ac_compile") 2>conftest.er1
38181   ac_status=$?
38182   grep -v '^ *+' conftest.er1 >conftest.err
38183   rm -f conftest.er1
38184   cat conftest.err >&5
38185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38186   (exit $ac_status); } && {
38187          test -z "$ac_c_werror_flag" ||
38188          test ! -s conftest.err
38189        } && test -s conftest.$ac_objext; then
38190
38191                 ac_cv_have_uintxx_t="yes"
38192
38193 else
38194   echo "$as_me: failed program was:" >&5
38195 sed 's/^/| /' conftest.$ac_ext >&5
38196
38197
38198                 ac_cv_have_uintxx_t="no"
38199
38200
38201 fi
38202
38203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38204
38205
38206 fi
38207 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
38208 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
38209    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
38210       cat >>confdefs.h <<\_ACEOF
38211 #define HAVE_UINTXX_T 1
38212 _ACEOF
38213
38214    fi
38215 fi
38216
38217 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
38218     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38219 then
38220    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
38221 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
38222    cat >conftest.$ac_ext <<_ACEOF
38223 /* confdefs.h.  */
38224 _ACEOF
38225 cat confdefs.h >>conftest.$ac_ext
38226 cat >>conftest.$ac_ext <<_ACEOF
38227 /* end confdefs.h.  */
38228
38229           #include <sys/bitypes.h>
38230
38231 int
38232 main ()
38233 {
38234
38235           int64_t a; u_int64_t b;
38236           a = b = 1;
38237
38238   ;
38239   return 0;
38240 }
38241 _ACEOF
38242 rm -f conftest.$ac_objext
38243 if { (ac_try="$ac_compile"
38244 case "(($ac_try" in
38245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38246   *) ac_try_echo=$ac_try;;
38247 esac
38248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38249   (eval "$ac_compile") 2>conftest.er1
38250   ac_status=$?
38251   grep -v '^ *+' conftest.er1 >conftest.err
38252   rm -f conftest.er1
38253   cat conftest.err >&5
38254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38255   (exit $ac_status); } && {
38256          test -z "$ac_c_werror_flag" ||
38257          test ! -s conftest.err
38258        } && test -s conftest.$ac_objext; then
38259
38260           cat >>confdefs.h <<\_ACEOF
38261 #define HAVE_U_INT64_T 1
38262 _ACEOF
38263
38264           cat >>confdefs.h <<\_ACEOF
38265 #define HAVE_INT64_T 1
38266 _ACEOF
38267
38268           { echo "$as_me:$LINENO: result: yes" >&5
38269 echo "${ECHO_T}yes" >&6; }
38270
38271 else
38272   echo "$as_me: failed program was:" >&5
38273 sed 's/^/| /' conftest.$ac_ext >&5
38274
38275
38276           { echo "$as_me:$LINENO: result: no" >&5
38277 echo "${ECHO_T}no" >&6; }
38278
38279
38280 fi
38281
38282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38283 fi
38284
38285 if (test -z "$have_uintxx_t" && \
38286     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38287 then
38288    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38289 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38290    cat >conftest.$ac_ext <<_ACEOF
38291 /* confdefs.h.  */
38292 _ACEOF
38293 cat confdefs.h >>conftest.$ac_ext
38294 cat >>conftest.$ac_ext <<_ACEOF
38295 /* end confdefs.h.  */
38296
38297           #include <sys/bitypes.h>
38298
38299 int
38300 main ()
38301 {
38302
38303           uint8_t a; uint16_t b;
38304           uint32_t c; a = b = c = 1;
38305
38306   ;
38307   return 0;
38308 }
38309 _ACEOF
38310 rm -f conftest.$ac_objext
38311 if { (ac_try="$ac_compile"
38312 case "(($ac_try" in
38313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38314   *) ac_try_echo=$ac_try;;
38315 esac
38316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38317   (eval "$ac_compile") 2>conftest.er1
38318   ac_status=$?
38319   grep -v '^ *+' conftest.er1 >conftest.err
38320   rm -f conftest.er1
38321   cat conftest.err >&5
38322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38323   (exit $ac_status); } && {
38324          test -z "$ac_c_werror_flag" ||
38325          test ! -s conftest.err
38326        } && test -s conftest.$ac_objext; then
38327
38328           cat >>confdefs.h <<\_ACEOF
38329 #define HAVE_UINTXX_T 1
38330 _ACEOF
38331
38332           { echo "$as_me:$LINENO: result: yes" >&5
38333 echo "${ECHO_T}yes" >&6; }
38334
38335 else
38336   echo "$as_me: failed program was:" >&5
38337 sed 's/^/| /' conftest.$ac_ext >&5
38338
38339
38340           { echo "$as_me:$LINENO: result: no" >&5
38341 echo "${ECHO_T}no" >&6; }
38342
38343
38344 fi
38345
38346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38347 fi
38348
38349
38350
38351
38352
38353
38354
38355
38356
38357
38358
38359
38360
38361
38362 for ac_func in \
38363    fork \
38364    getcwd \
38365    gethostname \
38366    getpid \
38367    gettimeofday \
38368    setpgid \
38369    setpgrp \
38370    setsid \
38371    signal \
38372    strerror \
38373    strncmp \
38374    strncpy \
38375    vfprintf \
38376
38377 do
38378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38382   echo $ECHO_N "(cached) $ECHO_C" >&6
38383 else
38384   cat >conftest.$ac_ext <<_ACEOF
38385 /* confdefs.h.  */
38386 _ACEOF
38387 cat confdefs.h >>conftest.$ac_ext
38388 cat >>conftest.$ac_ext <<_ACEOF
38389 /* end confdefs.h.  */
38390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38392 #define $ac_func innocuous_$ac_func
38393
38394 /* System header to define __stub macros and hopefully few prototypes,
38395     which can conflict with char $ac_func (); below.
38396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38397     <limits.h> exists even on freestanding compilers.  */
38398
38399 #ifdef __STDC__
38400 # include <limits.h>
38401 #else
38402 # include <assert.h>
38403 #endif
38404
38405 #undef $ac_func
38406
38407 /* Override any GCC internal prototype to avoid an error.
38408    Use char because int might match the return type of a GCC
38409    builtin and then its argument prototype would still apply.  */
38410 #ifdef __cplusplus
38411 extern "C"
38412 #endif
38413 char $ac_func ();
38414 /* The GNU C library defines this for functions which it implements
38415     to always fail with ENOSYS.  Some functions are actually named
38416     something starting with __ and the normal name is an alias.  */
38417 #if defined __stub_$ac_func || defined __stub___$ac_func
38418 choke me
38419 #endif
38420
38421 int
38422 main ()
38423 {
38424 return $ac_func ();
38425   ;
38426   return 0;
38427 }
38428 _ACEOF
38429 rm -f conftest.$ac_objext conftest$ac_exeext
38430 if { (ac_try="$ac_link"
38431 case "(($ac_try" in
38432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38433   *) ac_try_echo=$ac_try;;
38434 esac
38435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38436   (eval "$ac_link") 2>conftest.er1
38437   ac_status=$?
38438   grep -v '^ *+' conftest.er1 >conftest.err
38439   rm -f conftest.er1
38440   cat conftest.err >&5
38441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38442   (exit $ac_status); } && {
38443          test -z "$ac_c_werror_flag" ||
38444          test ! -s conftest.err
38445        } && test -s conftest$ac_exeext &&
38446        $as_test_x conftest$ac_exeext; then
38447   eval "$as_ac_var=yes"
38448 else
38449   echo "$as_me: failed program was:" >&5
38450 sed 's/^/| /' conftest.$ac_ext >&5
38451
38452         eval "$as_ac_var=no"
38453 fi
38454
38455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38456       conftest$ac_exeext conftest.$ac_ext
38457 fi
38458 ac_res=`eval echo '${'$as_ac_var'}'`
38459                { echo "$as_me:$LINENO: result: $ac_res" >&5
38460 echo "${ECHO_T}$ac_res" >&6; }
38461 if test `eval echo '${'$as_ac_var'}'` = yes; then
38462   cat >>confdefs.h <<_ACEOF
38463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38464 _ACEOF
38465
38466 else
38467   echo 'configure: cannot find needed function.'; exit 1
38468
38469 fi
38470 done
38471
38472
38473
38474 for ac_func in fchdir
38475 do
38476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38480   echo $ECHO_N "(cached) $ECHO_C" >&6
38481 else
38482   cat >conftest.$ac_ext <<_ACEOF
38483 /* confdefs.h.  */
38484 _ACEOF
38485 cat confdefs.h >>conftest.$ac_ext
38486 cat >>conftest.$ac_ext <<_ACEOF
38487 /* end confdefs.h.  */
38488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38490 #define $ac_func innocuous_$ac_func
38491
38492 /* System header to define __stub macros and hopefully few prototypes,
38493     which can conflict with char $ac_func (); below.
38494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38495     <limits.h> exists even on freestanding compilers.  */
38496
38497 #ifdef __STDC__
38498 # include <limits.h>
38499 #else
38500 # include <assert.h>
38501 #endif
38502
38503 #undef $ac_func
38504
38505 /* Override any GCC internal prototype to avoid an error.
38506    Use char because int might match the return type of a GCC
38507    builtin and then its argument prototype would still apply.  */
38508 #ifdef __cplusplus
38509 extern "C"
38510 #endif
38511 char $ac_func ();
38512 /* The GNU C library defines this for functions which it implements
38513     to always fail with ENOSYS.  Some functions are actually named
38514     something starting with __ and the normal name is an alias.  */
38515 #if defined __stub_$ac_func || defined __stub___$ac_func
38516 choke me
38517 #endif
38518
38519 int
38520 main ()
38521 {
38522 return $ac_func ();
38523   ;
38524   return 0;
38525 }
38526 _ACEOF
38527 rm -f conftest.$ac_objext conftest$ac_exeext
38528 if { (ac_try="$ac_link"
38529 case "(($ac_try" in
38530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38531   *) ac_try_echo=$ac_try;;
38532 esac
38533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38534   (eval "$ac_link") 2>conftest.er1
38535   ac_status=$?
38536   grep -v '^ *+' conftest.er1 >conftest.err
38537   rm -f conftest.er1
38538   cat conftest.err >&5
38539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38540   (exit $ac_status); } && {
38541          test -z "$ac_c_werror_flag" ||
38542          test ! -s conftest.err
38543        } && test -s conftest$ac_exeext &&
38544        $as_test_x conftest$ac_exeext; then
38545   eval "$as_ac_var=yes"
38546 else
38547   echo "$as_me: failed program was:" >&5
38548 sed 's/^/| /' conftest.$ac_ext >&5
38549
38550         eval "$as_ac_var=no"
38551 fi
38552
38553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38554       conftest$ac_exeext conftest.$ac_ext
38555 fi
38556 ac_res=`eval echo '${'$as_ac_var'}'`
38557                { echo "$as_me:$LINENO: result: $ac_res" >&5
38558 echo "${ECHO_T}$ac_res" >&6; }
38559 if test `eval echo '${'$as_ac_var'}'` = yes; then
38560   cat >>confdefs.h <<_ACEOF
38561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38562 _ACEOF
38563  cat >>confdefs.h <<\_ACEOF
38564 #define HAVE_FCHDIR 1
38565 _ACEOF
38566
38567 fi
38568 done
38569
38570
38571 for ac_func in strtoll
38572 do
38573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38577   echo $ECHO_N "(cached) $ECHO_C" >&6
38578 else
38579   cat >conftest.$ac_ext <<_ACEOF
38580 /* confdefs.h.  */
38581 _ACEOF
38582 cat confdefs.h >>conftest.$ac_ext
38583 cat >>conftest.$ac_ext <<_ACEOF
38584 /* end confdefs.h.  */
38585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38587 #define $ac_func innocuous_$ac_func
38588
38589 /* System header to define __stub macros and hopefully few prototypes,
38590     which can conflict with char $ac_func (); below.
38591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38592     <limits.h> exists even on freestanding compilers.  */
38593
38594 #ifdef __STDC__
38595 # include <limits.h>
38596 #else
38597 # include <assert.h>
38598 #endif
38599
38600 #undef $ac_func
38601
38602 /* Override any GCC internal prototype to avoid an error.
38603    Use char because int might match the return type of a GCC
38604    builtin and then its argument prototype would still apply.  */
38605 #ifdef __cplusplus
38606 extern "C"
38607 #endif
38608 char $ac_func ();
38609 /* The GNU C library defines this for functions which it implements
38610     to always fail with ENOSYS.  Some functions are actually named
38611     something starting with __ and the normal name is an alias.  */
38612 #if defined __stub_$ac_func || defined __stub___$ac_func
38613 choke me
38614 #endif
38615
38616 int
38617 main ()
38618 {
38619 return $ac_func ();
38620   ;
38621   return 0;
38622 }
38623 _ACEOF
38624 rm -f conftest.$ac_objext conftest$ac_exeext
38625 if { (ac_try="$ac_link"
38626 case "(($ac_try" in
38627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38628   *) ac_try_echo=$ac_try;;
38629 esac
38630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38631   (eval "$ac_link") 2>conftest.er1
38632   ac_status=$?
38633   grep -v '^ *+' conftest.er1 >conftest.err
38634   rm -f conftest.er1
38635   cat conftest.err >&5
38636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38637   (exit $ac_status); } && {
38638          test -z "$ac_c_werror_flag" ||
38639          test ! -s conftest.err
38640        } && test -s conftest$ac_exeext &&
38641        $as_test_x conftest$ac_exeext; then
38642   eval "$as_ac_var=yes"
38643 else
38644   echo "$as_me: failed program was:" >&5
38645 sed 's/^/| /' conftest.$ac_ext >&5
38646
38647         eval "$as_ac_var=no"
38648 fi
38649
38650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38651       conftest$ac_exeext conftest.$ac_ext
38652 fi
38653 ac_res=`eval echo '${'$as_ac_var'}'`
38654                { echo "$as_me:$LINENO: result: $ac_res" >&5
38655 echo "${ECHO_T}$ac_res" >&6; }
38656 if test `eval echo '${'$as_ac_var'}'` = yes; then
38657   cat >>confdefs.h <<_ACEOF
38658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38659 _ACEOF
38660  cat >>confdefs.h <<\_ACEOF
38661 #define HAVE_STRTOLL 1
38662 _ACEOF
38663
38664 fi
38665 done
38666
38667
38668 for ac_func in posix_fadvise
38669 do
38670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38674   echo $ECHO_N "(cached) $ECHO_C" >&6
38675 else
38676   cat >conftest.$ac_ext <<_ACEOF
38677 /* confdefs.h.  */
38678 _ACEOF
38679 cat confdefs.h >>conftest.$ac_ext
38680 cat >>conftest.$ac_ext <<_ACEOF
38681 /* end confdefs.h.  */
38682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38684 #define $ac_func innocuous_$ac_func
38685
38686 /* System header to define __stub macros and hopefully few prototypes,
38687     which can conflict with char $ac_func (); below.
38688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38689     <limits.h> exists even on freestanding compilers.  */
38690
38691 #ifdef __STDC__
38692 # include <limits.h>
38693 #else
38694 # include <assert.h>
38695 #endif
38696
38697 #undef $ac_func
38698
38699 /* Override any GCC internal prototype to avoid an error.
38700    Use char because int might match the return type of a GCC
38701    builtin and then its argument prototype would still apply.  */
38702 #ifdef __cplusplus
38703 extern "C"
38704 #endif
38705 char $ac_func ();
38706 /* The GNU C library defines this for functions which it implements
38707     to always fail with ENOSYS.  Some functions are actually named
38708     something starting with __ and the normal name is an alias.  */
38709 #if defined __stub_$ac_func || defined __stub___$ac_func
38710 choke me
38711 #endif
38712
38713 int
38714 main ()
38715 {
38716 return $ac_func ();
38717   ;
38718   return 0;
38719 }
38720 _ACEOF
38721 rm -f conftest.$ac_objext conftest$ac_exeext
38722 if { (ac_try="$ac_link"
38723 case "(($ac_try" in
38724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38725   *) ac_try_echo=$ac_try;;
38726 esac
38727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38728   (eval "$ac_link") 2>conftest.er1
38729   ac_status=$?
38730   grep -v '^ *+' conftest.er1 >conftest.err
38731   rm -f conftest.er1
38732   cat conftest.err >&5
38733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38734   (exit $ac_status); } && {
38735          test -z "$ac_c_werror_flag" ||
38736          test ! -s conftest.err
38737        } && test -s conftest$ac_exeext &&
38738        $as_test_x conftest$ac_exeext; then
38739   eval "$as_ac_var=yes"
38740 else
38741   echo "$as_me: failed program was:" >&5
38742 sed 's/^/| /' conftest.$ac_ext >&5
38743
38744         eval "$as_ac_var=no"
38745 fi
38746
38747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38748       conftest$ac_exeext conftest.$ac_ext
38749 fi
38750 ac_res=`eval echo '${'$as_ac_var'}'`
38751                { echo "$as_me:$LINENO: result: $ac_res" >&5
38752 echo "${ECHO_T}$ac_res" >&6; }
38753 if test `eval echo '${'$as_ac_var'}'` = yes; then
38754   cat >>confdefs.h <<_ACEOF
38755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38756 _ACEOF
38757
38758 fi
38759 done
38760
38761
38762 for ac_func in fdatasync
38763 do
38764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38768   echo $ECHO_N "(cached) $ECHO_C" >&6
38769 else
38770   cat >conftest.$ac_ext <<_ACEOF
38771 /* confdefs.h.  */
38772 _ACEOF
38773 cat confdefs.h >>conftest.$ac_ext
38774 cat >>conftest.$ac_ext <<_ACEOF
38775 /* end confdefs.h.  */
38776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38778 #define $ac_func innocuous_$ac_func
38779
38780 /* System header to define __stub macros and hopefully few prototypes,
38781     which can conflict with char $ac_func (); below.
38782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38783     <limits.h> exists even on freestanding compilers.  */
38784
38785 #ifdef __STDC__
38786 # include <limits.h>
38787 #else
38788 # include <assert.h>
38789 #endif
38790
38791 #undef $ac_func
38792
38793 /* Override any GCC internal prototype to avoid an error.
38794    Use char because int might match the return type of a GCC
38795    builtin and then its argument prototype would still apply.  */
38796 #ifdef __cplusplus
38797 extern "C"
38798 #endif
38799 char $ac_func ();
38800 /* The GNU C library defines this for functions which it implements
38801     to always fail with ENOSYS.  Some functions are actually named
38802     something starting with __ and the normal name is an alias.  */
38803 #if defined __stub_$ac_func || defined __stub___$ac_func
38804 choke me
38805 #endif
38806
38807 int
38808 main ()
38809 {
38810 return $ac_func ();
38811   ;
38812   return 0;
38813 }
38814 _ACEOF
38815 rm -f conftest.$ac_objext conftest$ac_exeext
38816 if { (ac_try="$ac_link"
38817 case "(($ac_try" in
38818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38819   *) ac_try_echo=$ac_try;;
38820 esac
38821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38822   (eval "$ac_link") 2>conftest.er1
38823   ac_status=$?
38824   grep -v '^ *+' conftest.er1 >conftest.err
38825   rm -f conftest.er1
38826   cat conftest.err >&5
38827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38828   (exit $ac_status); } && {
38829          test -z "$ac_c_werror_flag" ||
38830          test ! -s conftest.err
38831        } && test -s conftest$ac_exeext &&
38832        $as_test_x conftest$ac_exeext; then
38833   eval "$as_ac_var=yes"
38834 else
38835   echo "$as_me: failed program was:" >&5
38836 sed 's/^/| /' conftest.$ac_ext >&5
38837
38838         eval "$as_ac_var=no"
38839 fi
38840
38841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38842       conftest$ac_exeext conftest.$ac_ext
38843 fi
38844 ac_res=`eval echo '${'$as_ac_var'}'`
38845                { echo "$as_me:$LINENO: result: $ac_res" >&5
38846 echo "${ECHO_T}$ac_res" >&6; }
38847 if test `eval echo '${'$as_ac_var'}'` = yes; then
38848   cat >>confdefs.h <<_ACEOF
38849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38850 _ACEOF
38851
38852 fi
38853 done
38854
38855
38856
38857 for ac_func in chflags
38858 do
38859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38863   echo $ECHO_N "(cached) $ECHO_C" >&6
38864 else
38865   cat >conftest.$ac_ext <<_ACEOF
38866 /* confdefs.h.  */
38867 _ACEOF
38868 cat confdefs.h >>conftest.$ac_ext
38869 cat >>conftest.$ac_ext <<_ACEOF
38870 /* end confdefs.h.  */
38871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38873 #define $ac_func innocuous_$ac_func
38874
38875 /* System header to define __stub macros and hopefully few prototypes,
38876     which can conflict with char $ac_func (); below.
38877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38878     <limits.h> exists even on freestanding compilers.  */
38879
38880 #ifdef __STDC__
38881 # include <limits.h>
38882 #else
38883 # include <assert.h>
38884 #endif
38885
38886 #undef $ac_func
38887
38888 /* Override any GCC internal prototype to avoid an error.
38889    Use char because int might match the return type of a GCC
38890    builtin and then its argument prototype would still apply.  */
38891 #ifdef __cplusplus
38892 extern "C"
38893 #endif
38894 char $ac_func ();
38895 /* The GNU C library defines this for functions which it implements
38896     to always fail with ENOSYS.  Some functions are actually named
38897     something starting with __ and the normal name is an alias.  */
38898 #if defined __stub_$ac_func || defined __stub___$ac_func
38899 choke me
38900 #endif
38901
38902 int
38903 main ()
38904 {
38905 return $ac_func ();
38906   ;
38907   return 0;
38908 }
38909 _ACEOF
38910 rm -f conftest.$ac_objext conftest$ac_exeext
38911 if { (ac_try="$ac_link"
38912 case "(($ac_try" in
38913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38914   *) ac_try_echo=$ac_try;;
38915 esac
38916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38917   (eval "$ac_link") 2>conftest.er1
38918   ac_status=$?
38919   grep -v '^ *+' conftest.er1 >conftest.err
38920   rm -f conftest.er1
38921   cat conftest.err >&5
38922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38923   (exit $ac_status); } && {
38924          test -z "$ac_c_werror_flag" ||
38925          test ! -s conftest.err
38926        } && test -s conftest$ac_exeext &&
38927        $as_test_x conftest$ac_exeext; then
38928   eval "$as_ac_var=yes"
38929 else
38930   echo "$as_me: failed program was:" >&5
38931 sed 's/^/| /' conftest.$ac_ext >&5
38932
38933         eval "$as_ac_var=no"
38934 fi
38935
38936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38937       conftest$ac_exeext conftest.$ac_ext
38938 fi
38939 ac_res=`eval echo '${'$as_ac_var'}'`
38940                { echo "$as_me:$LINENO: result: $ac_res" >&5
38941 echo "${ECHO_T}$ac_res" >&6; }
38942 if test `eval echo '${'$as_ac_var'}'` = yes; then
38943   cat >>confdefs.h <<_ACEOF
38944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38945 _ACEOF
38946
38947 fi
38948 done
38949
38950
38951
38952
38953
38954
38955 for ac_func in snprintf vsnprintf gethostid fseeko
38956 do
38957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38961   echo $ECHO_N "(cached) $ECHO_C" >&6
38962 else
38963   cat >conftest.$ac_ext <<_ACEOF
38964 /* confdefs.h.  */
38965 _ACEOF
38966 cat confdefs.h >>conftest.$ac_ext
38967 cat >>conftest.$ac_ext <<_ACEOF
38968 /* end confdefs.h.  */
38969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38971 #define $ac_func innocuous_$ac_func
38972
38973 /* System header to define __stub macros and hopefully few prototypes,
38974     which can conflict with char $ac_func (); below.
38975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38976     <limits.h> exists even on freestanding compilers.  */
38977
38978 #ifdef __STDC__
38979 # include <limits.h>
38980 #else
38981 # include <assert.h>
38982 #endif
38983
38984 #undef $ac_func
38985
38986 /* Override any GCC internal prototype to avoid an error.
38987    Use char because int might match the return type of a GCC
38988    builtin and then its argument prototype would still apply.  */
38989 #ifdef __cplusplus
38990 extern "C"
38991 #endif
38992 char $ac_func ();
38993 /* The GNU C library defines this for functions which it implements
38994     to always fail with ENOSYS.  Some functions are actually named
38995     something starting with __ and the normal name is an alias.  */
38996 #if defined __stub_$ac_func || defined __stub___$ac_func
38997 choke me
38998 #endif
38999
39000 int
39001 main ()
39002 {
39003 return $ac_func ();
39004   ;
39005   return 0;
39006 }
39007 _ACEOF
39008 rm -f conftest.$ac_objext conftest$ac_exeext
39009 if { (ac_try="$ac_link"
39010 case "(($ac_try" in
39011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39012   *) ac_try_echo=$ac_try;;
39013 esac
39014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39015   (eval "$ac_link") 2>conftest.er1
39016   ac_status=$?
39017   grep -v '^ *+' conftest.er1 >conftest.err
39018   rm -f conftest.er1
39019   cat conftest.err >&5
39020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021   (exit $ac_status); } && {
39022          test -z "$ac_c_werror_flag" ||
39023          test ! -s conftest.err
39024        } && test -s conftest$ac_exeext &&
39025        $as_test_x conftest$ac_exeext; then
39026   eval "$as_ac_var=yes"
39027 else
39028   echo "$as_me: failed program was:" >&5
39029 sed 's/^/| /' conftest.$ac_ext >&5
39030
39031         eval "$as_ac_var=no"
39032 fi
39033
39034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39035       conftest$ac_exeext conftest.$ac_ext
39036 fi
39037 ac_res=`eval echo '${'$as_ac_var'}'`
39038                { echo "$as_me:$LINENO: result: $ac_res" >&5
39039 echo "${ECHO_T}$ac_res" >&6; }
39040 if test `eval echo '${'$as_ac_var'}'` = yes; then
39041   cat >>confdefs.h <<_ACEOF
39042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39043 _ACEOF
39044
39045 fi
39046 done
39047
39048
39049 { echo "$as_me:$LINENO: checking for va_copy" >&5
39050 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
39051 if test "${ba_cv_va_copy+set}" = set; then
39052   echo $ECHO_N "(cached) $ECHO_C" >&6
39053 else
39054
39055        cat >conftest.$ac_ext <<_ACEOF
39056 /* confdefs.h.  */
39057 _ACEOF
39058 cat confdefs.h >>conftest.$ac_ext
39059 cat >>conftest.$ac_ext <<_ACEOF
39060 /* end confdefs.h.  */
39061
39062               #include <stdarg.h>
39063               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
39064               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
39065
39066 int
39067 main ()
39068 {
39069
39070               call_use_va_copy(1,2,3)
39071
39072   ;
39073   return 0;
39074 }
39075 _ACEOF
39076 rm -f conftest.$ac_objext conftest$ac_exeext
39077 if { (ac_try="$ac_link"
39078 case "(($ac_try" in
39079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39080   *) ac_try_echo=$ac_try;;
39081 esac
39082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39083   (eval "$ac_link") 2>conftest.er1
39084   ac_status=$?
39085   grep -v '^ *+' conftest.er1 >conftest.err
39086   rm -f conftest.er1
39087   cat conftest.err >&5
39088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39089   (exit $ac_status); } && {
39090          test -z "$ac_c_werror_flag" ||
39091          test ! -s conftest.err
39092        } && test -s conftest$ac_exeext &&
39093        $as_test_x conftest$ac_exeext; then
39094
39095               ba_cv_va_copy=yes,
39096
39097 else
39098   echo "$as_me: failed program was:" >&5
39099 sed 's/^/| /' conftest.$ac_ext >&5
39100
39101
39102               ba_cv_va_copy=no
39103
39104
39105 fi
39106
39107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39108       conftest$ac_exeext conftest.$ac_ext
39109
39110
39111 fi
39112 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
39113 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
39114 test $ba_cv_va_copy = yes &&
39115 cat >>confdefs.h <<\_ACEOF
39116 #define HAVE_VA_COPY 1
39117 _ACEOF
39118
39119
39120
39121
39122
39123
39124 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
39125 do
39126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39130   echo $ECHO_N "(cached) $ECHO_C" >&6
39131 else
39132   cat >conftest.$ac_ext <<_ACEOF
39133 /* confdefs.h.  */
39134 _ACEOF
39135 cat confdefs.h >>conftest.$ac_ext
39136 cat >>conftest.$ac_ext <<_ACEOF
39137 /* end confdefs.h.  */
39138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39140 #define $ac_func innocuous_$ac_func
39141
39142 /* System header to define __stub macros and hopefully few prototypes,
39143     which can conflict with char $ac_func (); below.
39144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39145     <limits.h> exists even on freestanding compilers.  */
39146
39147 #ifdef __STDC__
39148 # include <limits.h>
39149 #else
39150 # include <assert.h>
39151 #endif
39152
39153 #undef $ac_func
39154
39155 /* Override any GCC internal prototype to avoid an error.
39156    Use char because int might match the return type of a GCC
39157    builtin and then its argument prototype would still apply.  */
39158 #ifdef __cplusplus
39159 extern "C"
39160 #endif
39161 char $ac_func ();
39162 /* The GNU C library defines this for functions which it implements
39163     to always fail with ENOSYS.  Some functions are actually named
39164     something starting with __ and the normal name is an alias.  */
39165 #if defined __stub_$ac_func || defined __stub___$ac_func
39166 choke me
39167 #endif
39168
39169 int
39170 main ()
39171 {
39172 return $ac_func ();
39173   ;
39174   return 0;
39175 }
39176 _ACEOF
39177 rm -f conftest.$ac_objext conftest$ac_exeext
39178 if { (ac_try="$ac_link"
39179 case "(($ac_try" in
39180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39181   *) ac_try_echo=$ac_try;;
39182 esac
39183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39184   (eval "$ac_link") 2>conftest.er1
39185   ac_status=$?
39186   grep -v '^ *+' conftest.er1 >conftest.err
39187   rm -f conftest.er1
39188   cat conftest.err >&5
39189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39190   (exit $ac_status); } && {
39191          test -z "$ac_c_werror_flag" ||
39192          test ! -s conftest.err
39193        } && test -s conftest$ac_exeext &&
39194        $as_test_x conftest$ac_exeext; then
39195   eval "$as_ac_var=yes"
39196 else
39197   echo "$as_me: failed program was:" >&5
39198 sed 's/^/| /' conftest.$ac_ext >&5
39199
39200         eval "$as_ac_var=no"
39201 fi
39202
39203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39204       conftest$ac_exeext conftest.$ac_ext
39205 fi
39206 ac_res=`eval echo '${'$as_ac_var'}'`
39207                { echo "$as_me:$LINENO: result: $ac_res" >&5
39208 echo "${ECHO_T}$ac_res" >&6; }
39209 if test `eval echo '${'$as_ac_var'}'` = yes; then
39210   cat >>confdefs.h <<_ACEOF
39211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39212 _ACEOF
39213
39214 fi
39215 done
39216
39217
39218 # If resolver functions are not in libc check for -lnsl or -lresolv.
39219 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
39220 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
39221 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
39222   echo $ECHO_N "(cached) $ECHO_C" >&6
39223 else
39224   cat >conftest.$ac_ext <<_ACEOF
39225 /* confdefs.h.  */
39226 _ACEOF
39227 cat confdefs.h >>conftest.$ac_ext
39228 cat >>conftest.$ac_ext <<_ACEOF
39229 /* end confdefs.h.  */
39230 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39232 #define gethostbyname_r innocuous_gethostbyname_r
39233
39234 /* System header to define __stub macros and hopefully few prototypes,
39235     which can conflict with char gethostbyname_r (); below.
39236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39237     <limits.h> exists even on freestanding compilers.  */
39238
39239 #ifdef __STDC__
39240 # include <limits.h>
39241 #else
39242 # include <assert.h>
39243 #endif
39244
39245 #undef gethostbyname_r
39246
39247 /* Override any GCC internal prototype to avoid an error.
39248    Use char because int might match the return type of a GCC
39249    builtin and then its argument prototype would still apply.  */
39250 #ifdef __cplusplus
39251 extern "C"
39252 #endif
39253 char gethostbyname_r ();
39254 /* The GNU C library defines this for functions which it implements
39255     to always fail with ENOSYS.  Some functions are actually named
39256     something starting with __ and the normal name is an alias.  */
39257 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39258 choke me
39259 #endif
39260
39261 int
39262 main ()
39263 {
39264 return gethostbyname_r ();
39265   ;
39266   return 0;
39267 }
39268 _ACEOF
39269 rm -f conftest.$ac_objext conftest$ac_exeext
39270 if { (ac_try="$ac_link"
39271 case "(($ac_try" in
39272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39273   *) ac_try_echo=$ac_try;;
39274 esac
39275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39276   (eval "$ac_link") 2>conftest.er1
39277   ac_status=$?
39278   grep -v '^ *+' conftest.er1 >conftest.err
39279   rm -f conftest.er1
39280   cat conftest.err >&5
39281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39282   (exit $ac_status); } && {
39283          test -z "$ac_c_werror_flag" ||
39284          test ! -s conftest.err
39285        } && test -s conftest$ac_exeext &&
39286        $as_test_x conftest$ac_exeext; then
39287   ac_cv_func_gethostbyname_r=yes
39288 else
39289   echo "$as_me: failed program was:" >&5
39290 sed 's/^/| /' conftest.$ac_ext >&5
39291
39292         ac_cv_func_gethostbyname_r=no
39293 fi
39294
39295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39296       conftest$ac_exeext conftest.$ac_ext
39297 fi
39298 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39299 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39300 if test $ac_cv_func_gethostbyname_r = yes; then
39301   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39302 echo "${ECHO_T}using libc's resolver" >&6; }
39303 else
39304
39305 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39306 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39307 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39308   echo $ECHO_N "(cached) $ECHO_C" >&6
39309 else
39310   ac_check_lib_save_LIBS=$LIBS
39311 LIBS="-lnsl  $LIBS"
39312 cat >conftest.$ac_ext <<_ACEOF
39313 /* confdefs.h.  */
39314 _ACEOF
39315 cat confdefs.h >>conftest.$ac_ext
39316 cat >>conftest.$ac_ext <<_ACEOF
39317 /* end confdefs.h.  */
39318
39319 /* Override any GCC internal prototype to avoid an error.
39320    Use char because int might match the return type of a GCC
39321    builtin and then its argument prototype would still apply.  */
39322 #ifdef __cplusplus
39323 extern "C"
39324 #endif
39325 char gethostbyname_r ();
39326 int
39327 main ()
39328 {
39329 return gethostbyname_r ();
39330   ;
39331   return 0;
39332 }
39333 _ACEOF
39334 rm -f conftest.$ac_objext conftest$ac_exeext
39335 if { (ac_try="$ac_link"
39336 case "(($ac_try" in
39337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39338   *) ac_try_echo=$ac_try;;
39339 esac
39340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39341   (eval "$ac_link") 2>conftest.er1
39342   ac_status=$?
39343   grep -v '^ *+' conftest.er1 >conftest.err
39344   rm -f conftest.er1
39345   cat conftest.err >&5
39346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39347   (exit $ac_status); } && {
39348          test -z "$ac_c_werror_flag" ||
39349          test ! -s conftest.err
39350        } && test -s conftest$ac_exeext &&
39351        $as_test_x conftest$ac_exeext; then
39352   ac_cv_lib_nsl_gethostbyname_r=yes
39353 else
39354   echo "$as_me: failed program was:" >&5
39355 sed 's/^/| /' conftest.$ac_ext >&5
39356
39357         ac_cv_lib_nsl_gethostbyname_r=no
39358 fi
39359
39360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39361       conftest$ac_exeext conftest.$ac_ext
39362 LIBS=$ac_check_lib_save_LIBS
39363 fi
39364 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39365 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39366 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39367   cat >>confdefs.h <<_ACEOF
39368 #define HAVE_LIBNSL 1
39369 _ACEOF
39370
39371   LIBS="-lnsl $LIBS"
39372
39373 fi
39374
39375
39376 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39377 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39378 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39379   echo $ECHO_N "(cached) $ECHO_C" >&6
39380 else
39381   ac_check_lib_save_LIBS=$LIBS
39382 LIBS="-lresolv  $LIBS"
39383 cat >conftest.$ac_ext <<_ACEOF
39384 /* confdefs.h.  */
39385 _ACEOF
39386 cat confdefs.h >>conftest.$ac_ext
39387 cat >>conftest.$ac_ext <<_ACEOF
39388 /* end confdefs.h.  */
39389
39390 /* Override any GCC internal prototype to avoid an error.
39391    Use char because int might match the return type of a GCC
39392    builtin and then its argument prototype would still apply.  */
39393 #ifdef __cplusplus
39394 extern "C"
39395 #endif
39396 char gethostbyname_r ();
39397 int
39398 main ()
39399 {
39400 return gethostbyname_r ();
39401   ;
39402   return 0;
39403 }
39404 _ACEOF
39405 rm -f conftest.$ac_objext conftest$ac_exeext
39406 if { (ac_try="$ac_link"
39407 case "(($ac_try" in
39408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39409   *) ac_try_echo=$ac_try;;
39410 esac
39411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39412   (eval "$ac_link") 2>conftest.er1
39413   ac_status=$?
39414   grep -v '^ *+' conftest.er1 >conftest.err
39415   rm -f conftest.er1
39416   cat conftest.err >&5
39417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39418   (exit $ac_status); } && {
39419          test -z "$ac_c_werror_flag" ||
39420          test ! -s conftest.err
39421        } && test -s conftest$ac_exeext &&
39422        $as_test_x conftest$ac_exeext; then
39423   ac_cv_lib_resolv_gethostbyname_r=yes
39424 else
39425   echo "$as_me: failed program was:" >&5
39426 sed 's/^/| /' conftest.$ac_ext >&5
39427
39428         ac_cv_lib_resolv_gethostbyname_r=no
39429 fi
39430
39431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39432       conftest$ac_exeext conftest.$ac_ext
39433 LIBS=$ac_check_lib_save_LIBS
39434 fi
39435 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39436 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39437 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39438   cat >>confdefs.h <<_ACEOF
39439 #define HAVE_LIBRESOLV 1
39440 _ACEOF
39441
39442   LIBS="-lresolv $LIBS"
39443
39444 fi
39445
39446 fi
39447
39448
39449
39450 for ac_func in inet_pton
39451 do
39452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39456   echo $ECHO_N "(cached) $ECHO_C" >&6
39457 else
39458   cat >conftest.$ac_ext <<_ACEOF
39459 /* confdefs.h.  */
39460 _ACEOF
39461 cat confdefs.h >>conftest.$ac_ext
39462 cat >>conftest.$ac_ext <<_ACEOF
39463 /* end confdefs.h.  */
39464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39466 #define $ac_func innocuous_$ac_func
39467
39468 /* System header to define __stub macros and hopefully few prototypes,
39469     which can conflict with char $ac_func (); below.
39470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39471     <limits.h> exists even on freestanding compilers.  */
39472
39473 #ifdef __STDC__
39474 # include <limits.h>
39475 #else
39476 # include <assert.h>
39477 #endif
39478
39479 #undef $ac_func
39480
39481 /* Override any GCC internal prototype to avoid an error.
39482    Use char because int might match the return type of a GCC
39483    builtin and then its argument prototype would still apply.  */
39484 #ifdef __cplusplus
39485 extern "C"
39486 #endif
39487 char $ac_func ();
39488 /* The GNU C library defines this for functions which it implements
39489     to always fail with ENOSYS.  Some functions are actually named
39490     something starting with __ and the normal name is an alias.  */
39491 #if defined __stub_$ac_func || defined __stub___$ac_func
39492 choke me
39493 #endif
39494
39495 int
39496 main ()
39497 {
39498 return $ac_func ();
39499   ;
39500   return 0;
39501 }
39502 _ACEOF
39503 rm -f conftest.$ac_objext conftest$ac_exeext
39504 if { (ac_try="$ac_link"
39505 case "(($ac_try" in
39506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39507   *) ac_try_echo=$ac_try;;
39508 esac
39509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39510   (eval "$ac_link") 2>conftest.er1
39511   ac_status=$?
39512   grep -v '^ *+' conftest.er1 >conftest.err
39513   rm -f conftest.er1
39514   cat conftest.err >&5
39515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516   (exit $ac_status); } && {
39517          test -z "$ac_c_werror_flag" ||
39518          test ! -s conftest.err
39519        } && test -s conftest$ac_exeext &&
39520        $as_test_x conftest$ac_exeext; then
39521   eval "$as_ac_var=yes"
39522 else
39523   echo "$as_me: failed program was:" >&5
39524 sed 's/^/| /' conftest.$ac_ext >&5
39525
39526         eval "$as_ac_var=no"
39527 fi
39528
39529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39530       conftest$ac_exeext conftest.$ac_ext
39531 fi
39532 ac_res=`eval echo '${'$as_ac_var'}'`
39533                { echo "$as_me:$LINENO: result: $ac_res" >&5
39534 echo "${ECHO_T}$ac_res" >&6; }
39535 if test `eval echo '${'$as_ac_var'}'` = yes; then
39536   cat >>confdefs.h <<_ACEOF
39537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39538 _ACEOF
39539  cat >>confdefs.h <<\_ACEOF
39540 #define HAVE_INET_PTON 1
39541 _ACEOF
39542
39543 fi
39544 done
39545
39546
39547 for ac_func in inet_ntop
39548 do
39549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39553   echo $ECHO_N "(cached) $ECHO_C" >&6
39554 else
39555   cat >conftest.$ac_ext <<_ACEOF
39556 /* confdefs.h.  */
39557 _ACEOF
39558 cat confdefs.h >>conftest.$ac_ext
39559 cat >>conftest.$ac_ext <<_ACEOF
39560 /* end confdefs.h.  */
39561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39563 #define $ac_func innocuous_$ac_func
39564
39565 /* System header to define __stub macros and hopefully few prototypes,
39566     which can conflict with char $ac_func (); below.
39567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39568     <limits.h> exists even on freestanding compilers.  */
39569
39570 #ifdef __STDC__
39571 # include <limits.h>
39572 #else
39573 # include <assert.h>
39574 #endif
39575
39576 #undef $ac_func
39577
39578 /* Override any GCC internal prototype to avoid an error.
39579    Use char because int might match the return type of a GCC
39580    builtin and then its argument prototype would still apply.  */
39581 #ifdef __cplusplus
39582 extern "C"
39583 #endif
39584 char $ac_func ();
39585 /* The GNU C library defines this for functions which it implements
39586     to always fail with ENOSYS.  Some functions are actually named
39587     something starting with __ and the normal name is an alias.  */
39588 #if defined __stub_$ac_func || defined __stub___$ac_func
39589 choke me
39590 #endif
39591
39592 int
39593 main ()
39594 {
39595 return $ac_func ();
39596   ;
39597   return 0;
39598 }
39599 _ACEOF
39600 rm -f conftest.$ac_objext conftest$ac_exeext
39601 if { (ac_try="$ac_link"
39602 case "(($ac_try" in
39603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39604   *) ac_try_echo=$ac_try;;
39605 esac
39606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39607   (eval "$ac_link") 2>conftest.er1
39608   ac_status=$?
39609   grep -v '^ *+' conftest.er1 >conftest.err
39610   rm -f conftest.er1
39611   cat conftest.err >&5
39612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613   (exit $ac_status); } && {
39614          test -z "$ac_c_werror_flag" ||
39615          test ! -s conftest.err
39616        } && test -s conftest$ac_exeext &&
39617        $as_test_x conftest$ac_exeext; then
39618   eval "$as_ac_var=yes"
39619 else
39620   echo "$as_me: failed program was:" >&5
39621 sed 's/^/| /' conftest.$ac_ext >&5
39622
39623         eval "$as_ac_var=no"
39624 fi
39625
39626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39627       conftest$ac_exeext conftest.$ac_ext
39628 fi
39629 ac_res=`eval echo '${'$as_ac_var'}'`
39630                { echo "$as_me:$LINENO: result: $ac_res" >&5
39631 echo "${ECHO_T}$ac_res" >&6; }
39632 if test `eval echo '${'$as_ac_var'}'` = yes; then
39633   cat >>confdefs.h <<_ACEOF
39634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39635 _ACEOF
39636  cat >>confdefs.h <<\_ACEOF
39637 #define HAVE_INET_NTOP 1
39638 _ACEOF
39639
39640 fi
39641 done
39642
39643
39644 for ac_func in gethostbyname2
39645 do
39646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39650   echo $ECHO_N "(cached) $ECHO_C" >&6
39651 else
39652   cat >conftest.$ac_ext <<_ACEOF
39653 /* confdefs.h.  */
39654 _ACEOF
39655 cat confdefs.h >>conftest.$ac_ext
39656 cat >>conftest.$ac_ext <<_ACEOF
39657 /* end confdefs.h.  */
39658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39660 #define $ac_func innocuous_$ac_func
39661
39662 /* System header to define __stub macros and hopefully few prototypes,
39663     which can conflict with char $ac_func (); below.
39664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39665     <limits.h> exists even on freestanding compilers.  */
39666
39667 #ifdef __STDC__
39668 # include <limits.h>
39669 #else
39670 # include <assert.h>
39671 #endif
39672
39673 #undef $ac_func
39674
39675 /* Override any GCC internal prototype to avoid an error.
39676    Use char because int might match the return type of a GCC
39677    builtin and then its argument prototype would still apply.  */
39678 #ifdef __cplusplus
39679 extern "C"
39680 #endif
39681 char $ac_func ();
39682 /* The GNU C library defines this for functions which it implements
39683     to always fail with ENOSYS.  Some functions are actually named
39684     something starting with __ and the normal name is an alias.  */
39685 #if defined __stub_$ac_func || defined __stub___$ac_func
39686 choke me
39687 #endif
39688
39689 int
39690 main ()
39691 {
39692 return $ac_func ();
39693   ;
39694   return 0;
39695 }
39696 _ACEOF
39697 rm -f conftest.$ac_objext conftest$ac_exeext
39698 if { (ac_try="$ac_link"
39699 case "(($ac_try" in
39700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39701   *) ac_try_echo=$ac_try;;
39702 esac
39703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39704   (eval "$ac_link") 2>conftest.er1
39705   ac_status=$?
39706   grep -v '^ *+' conftest.er1 >conftest.err
39707   rm -f conftest.er1
39708   cat conftest.err >&5
39709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39710   (exit $ac_status); } && {
39711          test -z "$ac_c_werror_flag" ||
39712          test ! -s conftest.err
39713        } && test -s conftest$ac_exeext &&
39714        $as_test_x conftest$ac_exeext; then
39715   eval "$as_ac_var=yes"
39716 else
39717   echo "$as_me: failed program was:" >&5
39718 sed 's/^/| /' conftest.$ac_ext >&5
39719
39720         eval "$as_ac_var=no"
39721 fi
39722
39723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39724       conftest$ac_exeext conftest.$ac_ext
39725 fi
39726 ac_res=`eval echo '${'$as_ac_var'}'`
39727                { echo "$as_me:$LINENO: result: $ac_res" >&5
39728 echo "${ECHO_T}$ac_res" >&6; }
39729 if test `eval echo '${'$as_ac_var'}'` = yes; then
39730   cat >>confdefs.h <<_ACEOF
39731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39732 _ACEOF
39733  cat >>confdefs.h <<\_ACEOF
39734 #define HAVE_GETHOSTBYNAME2 1
39735 _ACEOF
39736
39737 fi
39738 done
39739
39740
39741 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39742 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39743 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39744   echo $ECHO_N "(cached) $ECHO_C" >&6
39745 else
39746
39747        cat >conftest.$ac_ext <<_ACEOF
39748 /* confdefs.h.  */
39749 _ACEOF
39750 cat confdefs.h >>conftest.$ac_ext
39751 cat >>conftest.$ac_ext <<_ACEOF
39752 /* end confdefs.h.  */
39753
39754               #include <sys/socket.h>
39755
39756 int
39757 main ()
39758 {
39759
39760               struct sockaddr s; s.sa_len;
39761
39762   ;
39763   return 0;
39764 }
39765 _ACEOF
39766 rm -f conftest.$ac_objext
39767 if { (ac_try="$ac_compile"
39768 case "(($ac_try" in
39769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39770   *) ac_try_echo=$ac_try;;
39771 esac
39772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39773   (eval "$ac_compile") 2>conftest.er1
39774   ac_status=$?
39775   grep -v '^ *+' conftest.er1 >conftest.err
39776   rm -f conftest.er1
39777   cat conftest.err >&5
39778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779   (exit $ac_status); } && {
39780          test -z "$ac_c_werror_flag" ||
39781          test ! -s conftest.err
39782        } && test -s conftest.$ac_objext; then
39783
39784              ac_cv_struct_sockaddr_sa_len=yes
39785
39786 else
39787   echo "$as_me: failed program was:" >&5
39788 sed 's/^/| /' conftest.$ac_ext >&5
39789
39790         ac_cv_struct_sockaddr_sa_len=no
39791
39792
39793 fi
39794
39795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39796
39797
39798 fi
39799 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39800 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39801
39802 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39803
39804 cat >>confdefs.h <<\_ACEOF
39805 #define HAVE_SA_LEN 1
39806 _ACEOF
39807
39808 fi
39809
39810
39811 for ac_func in strftime
39812 do
39813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39817   echo $ECHO_N "(cached) $ECHO_C" >&6
39818 else
39819   cat >conftest.$ac_ext <<_ACEOF
39820 /* confdefs.h.  */
39821 _ACEOF
39822 cat confdefs.h >>conftest.$ac_ext
39823 cat >>conftest.$ac_ext <<_ACEOF
39824 /* end confdefs.h.  */
39825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39827 #define $ac_func innocuous_$ac_func
39828
39829 /* System header to define __stub macros and hopefully few prototypes,
39830     which can conflict with char $ac_func (); below.
39831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39832     <limits.h> exists even on freestanding compilers.  */
39833
39834 #ifdef __STDC__
39835 # include <limits.h>
39836 #else
39837 # include <assert.h>
39838 #endif
39839
39840 #undef $ac_func
39841
39842 /* Override any GCC internal prototype to avoid an error.
39843    Use char because int might match the return type of a GCC
39844    builtin and then its argument prototype would still apply.  */
39845 #ifdef __cplusplus
39846 extern "C"
39847 #endif
39848 char $ac_func ();
39849 /* The GNU C library defines this for functions which it implements
39850     to always fail with ENOSYS.  Some functions are actually named
39851     something starting with __ and the normal name is an alias.  */
39852 #if defined __stub_$ac_func || defined __stub___$ac_func
39853 choke me
39854 #endif
39855
39856 int
39857 main ()
39858 {
39859 return $ac_func ();
39860   ;
39861   return 0;
39862 }
39863 _ACEOF
39864 rm -f conftest.$ac_objext conftest$ac_exeext
39865 if { (ac_try="$ac_link"
39866 case "(($ac_try" in
39867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39868   *) ac_try_echo=$ac_try;;
39869 esac
39870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39871   (eval "$ac_link") 2>conftest.er1
39872   ac_status=$?
39873   grep -v '^ *+' conftest.er1 >conftest.err
39874   rm -f conftest.er1
39875   cat conftest.err >&5
39876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39877   (exit $ac_status); } && {
39878          test -z "$ac_c_werror_flag" ||
39879          test ! -s conftest.err
39880        } && test -s conftest$ac_exeext &&
39881        $as_test_x conftest$ac_exeext; then
39882   eval "$as_ac_var=yes"
39883 else
39884   echo "$as_me: failed program was:" >&5
39885 sed 's/^/| /' conftest.$ac_ext >&5
39886
39887         eval "$as_ac_var=no"
39888 fi
39889
39890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39891       conftest$ac_exeext conftest.$ac_ext
39892 fi
39893 ac_res=`eval echo '${'$as_ac_var'}'`
39894                { echo "$as_me:$LINENO: result: $ac_res" >&5
39895 echo "${ECHO_T}$ac_res" >&6; }
39896 if test `eval echo '${'$as_ac_var'}'` = yes; then
39897   cat >>confdefs.h <<_ACEOF
39898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39899 _ACEOF
39900
39901 else
39902   # strftime is in -lintl on SCO UNIX.
39903 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39904 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39905 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39906   echo $ECHO_N "(cached) $ECHO_C" >&6
39907 else
39908   ac_check_lib_save_LIBS=$LIBS
39909 LIBS="-lintl  $LIBS"
39910 cat >conftest.$ac_ext <<_ACEOF
39911 /* confdefs.h.  */
39912 _ACEOF
39913 cat confdefs.h >>conftest.$ac_ext
39914 cat >>conftest.$ac_ext <<_ACEOF
39915 /* end confdefs.h.  */
39916
39917 /* Override any GCC internal prototype to avoid an error.
39918    Use char because int might match the return type of a GCC
39919    builtin and then its argument prototype would still apply.  */
39920 #ifdef __cplusplus
39921 extern "C"
39922 #endif
39923 char strftime ();
39924 int
39925 main ()
39926 {
39927 return strftime ();
39928   ;
39929   return 0;
39930 }
39931 _ACEOF
39932 rm -f conftest.$ac_objext conftest$ac_exeext
39933 if { (ac_try="$ac_link"
39934 case "(($ac_try" in
39935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39936   *) ac_try_echo=$ac_try;;
39937 esac
39938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39939   (eval "$ac_link") 2>conftest.er1
39940   ac_status=$?
39941   grep -v '^ *+' conftest.er1 >conftest.err
39942   rm -f conftest.er1
39943   cat conftest.err >&5
39944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39945   (exit $ac_status); } && {
39946          test -z "$ac_c_werror_flag" ||
39947          test ! -s conftest.err
39948        } && test -s conftest$ac_exeext &&
39949        $as_test_x conftest$ac_exeext; then
39950   ac_cv_lib_intl_strftime=yes
39951 else
39952   echo "$as_me: failed program was:" >&5
39953 sed 's/^/| /' conftest.$ac_ext >&5
39954
39955         ac_cv_lib_intl_strftime=no
39956 fi
39957
39958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39959       conftest$ac_exeext conftest.$ac_ext
39960 LIBS=$ac_check_lib_save_LIBS
39961 fi
39962 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39963 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39964 if test $ac_cv_lib_intl_strftime = yes; then
39965   cat >>confdefs.h <<\_ACEOF
39966 #define HAVE_STRFTIME 1
39967 _ACEOF
39968
39969 LIBS="-lintl $LIBS"
39970 fi
39971
39972 fi
39973 done
39974
39975
39976 for ac_func in vprintf
39977 do
39978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39982   echo $ECHO_N "(cached) $ECHO_C" >&6
39983 else
39984   cat >conftest.$ac_ext <<_ACEOF
39985 /* confdefs.h.  */
39986 _ACEOF
39987 cat confdefs.h >>conftest.$ac_ext
39988 cat >>conftest.$ac_ext <<_ACEOF
39989 /* end confdefs.h.  */
39990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39992 #define $ac_func innocuous_$ac_func
39993
39994 /* System header to define __stub macros and hopefully few prototypes,
39995     which can conflict with char $ac_func (); below.
39996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39997     <limits.h> exists even on freestanding compilers.  */
39998
39999 #ifdef __STDC__
40000 # include <limits.h>
40001 #else
40002 # include <assert.h>
40003 #endif
40004
40005 #undef $ac_func
40006
40007 /* Override any GCC internal prototype to avoid an error.
40008    Use char because int might match the return type of a GCC
40009    builtin and then its argument prototype would still apply.  */
40010 #ifdef __cplusplus
40011 extern "C"
40012 #endif
40013 char $ac_func ();
40014 /* The GNU C library defines this for functions which it implements
40015     to always fail with ENOSYS.  Some functions are actually named
40016     something starting with __ and the normal name is an alias.  */
40017 #if defined __stub_$ac_func || defined __stub___$ac_func
40018 choke me
40019 #endif
40020
40021 int
40022 main ()
40023 {
40024 return $ac_func ();
40025   ;
40026   return 0;
40027 }
40028 _ACEOF
40029 rm -f conftest.$ac_objext conftest$ac_exeext
40030 if { (ac_try="$ac_link"
40031 case "(($ac_try" in
40032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40033   *) ac_try_echo=$ac_try;;
40034 esac
40035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40036   (eval "$ac_link") 2>conftest.er1
40037   ac_status=$?
40038   grep -v '^ *+' conftest.er1 >conftest.err
40039   rm -f conftest.er1
40040   cat conftest.err >&5
40041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40042   (exit $ac_status); } && {
40043          test -z "$ac_c_werror_flag" ||
40044          test ! -s conftest.err
40045        } && test -s conftest$ac_exeext &&
40046        $as_test_x conftest$ac_exeext; then
40047   eval "$as_ac_var=yes"
40048 else
40049   echo "$as_me: failed program was:" >&5
40050 sed 's/^/| /' conftest.$ac_ext >&5
40051
40052         eval "$as_ac_var=no"
40053 fi
40054
40055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40056       conftest$ac_exeext conftest.$ac_ext
40057 fi
40058 ac_res=`eval echo '${'$as_ac_var'}'`
40059                { echo "$as_me:$LINENO: result: $ac_res" >&5
40060 echo "${ECHO_T}$ac_res" >&6; }
40061 if test `eval echo '${'$as_ac_var'}'` = yes; then
40062   cat >>confdefs.h <<_ACEOF
40063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40064 _ACEOF
40065
40066 { echo "$as_me:$LINENO: checking for _doprnt" >&5
40067 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
40068 if test "${ac_cv_func__doprnt+set}" = set; then
40069   echo $ECHO_N "(cached) $ECHO_C" >&6
40070 else
40071   cat >conftest.$ac_ext <<_ACEOF
40072 /* confdefs.h.  */
40073 _ACEOF
40074 cat confdefs.h >>conftest.$ac_ext
40075 cat >>conftest.$ac_ext <<_ACEOF
40076 /* end confdefs.h.  */
40077 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
40078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40079 #define _doprnt innocuous__doprnt
40080
40081 /* System header to define __stub macros and hopefully few prototypes,
40082     which can conflict with char _doprnt (); below.
40083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40084     <limits.h> exists even on freestanding compilers.  */
40085
40086 #ifdef __STDC__
40087 # include <limits.h>
40088 #else
40089 # include <assert.h>
40090 #endif
40091
40092 #undef _doprnt
40093
40094 /* Override any GCC internal prototype to avoid an error.
40095    Use char because int might match the return type of a GCC
40096    builtin and then its argument prototype would still apply.  */
40097 #ifdef __cplusplus
40098 extern "C"
40099 #endif
40100 char _doprnt ();
40101 /* The GNU C library defines this for functions which it implements
40102     to always fail with ENOSYS.  Some functions are actually named
40103     something starting with __ and the normal name is an alias.  */
40104 #if defined __stub__doprnt || defined __stub____doprnt
40105 choke me
40106 #endif
40107
40108 int
40109 main ()
40110 {
40111 return _doprnt ();
40112   ;
40113   return 0;
40114 }
40115 _ACEOF
40116 rm -f conftest.$ac_objext conftest$ac_exeext
40117 if { (ac_try="$ac_link"
40118 case "(($ac_try" in
40119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40120   *) ac_try_echo=$ac_try;;
40121 esac
40122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40123   (eval "$ac_link") 2>conftest.er1
40124   ac_status=$?
40125   grep -v '^ *+' conftest.er1 >conftest.err
40126   rm -f conftest.er1
40127   cat conftest.err >&5
40128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40129   (exit $ac_status); } && {
40130          test -z "$ac_c_werror_flag" ||
40131          test ! -s conftest.err
40132        } && test -s conftest$ac_exeext &&
40133        $as_test_x conftest$ac_exeext; then
40134   ac_cv_func__doprnt=yes
40135 else
40136   echo "$as_me: failed program was:" >&5
40137 sed 's/^/| /' conftest.$ac_ext >&5
40138
40139         ac_cv_func__doprnt=no
40140 fi
40141
40142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40143       conftest$ac_exeext conftest.$ac_ext
40144 fi
40145 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
40146 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
40147 if test $ac_cv_func__doprnt = yes; then
40148
40149 cat >>confdefs.h <<\_ACEOF
40150 #define HAVE_DOPRNT 1
40151 _ACEOF
40152
40153 fi
40154
40155 fi
40156 done
40157
40158
40159 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
40160 # for constant arguments.  Useless!
40161 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
40162 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
40163 if test "${ac_cv_working_alloca_h+set}" = set; then
40164   echo $ECHO_N "(cached) $ECHO_C" >&6
40165 else
40166   cat >conftest.$ac_ext <<_ACEOF
40167 /* confdefs.h.  */
40168 _ACEOF
40169 cat confdefs.h >>conftest.$ac_ext
40170 cat >>conftest.$ac_ext <<_ACEOF
40171 /* end confdefs.h.  */
40172 #include <alloca.h>
40173 int
40174 main ()
40175 {
40176 char *p = (char *) alloca (2 * sizeof (int));
40177                           if (p) return 0;
40178   ;
40179   return 0;
40180 }
40181 _ACEOF
40182 rm -f conftest.$ac_objext conftest$ac_exeext
40183 if { (ac_try="$ac_link"
40184 case "(($ac_try" in
40185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40186   *) ac_try_echo=$ac_try;;
40187 esac
40188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40189   (eval "$ac_link") 2>conftest.er1
40190   ac_status=$?
40191   grep -v '^ *+' conftest.er1 >conftest.err
40192   rm -f conftest.er1
40193   cat conftest.err >&5
40194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40195   (exit $ac_status); } && {
40196          test -z "$ac_c_werror_flag" ||
40197          test ! -s conftest.err
40198        } && test -s conftest$ac_exeext &&
40199        $as_test_x conftest$ac_exeext; then
40200   ac_cv_working_alloca_h=yes
40201 else
40202   echo "$as_me: failed program was:" >&5
40203 sed 's/^/| /' conftest.$ac_ext >&5
40204
40205         ac_cv_working_alloca_h=no
40206 fi
40207
40208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40209       conftest$ac_exeext conftest.$ac_ext
40210 fi
40211 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
40212 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
40213 if test $ac_cv_working_alloca_h = yes; then
40214
40215 cat >>confdefs.h <<\_ACEOF
40216 #define HAVE_ALLOCA_H 1
40217 _ACEOF
40218
40219 fi
40220
40221 { echo "$as_me:$LINENO: checking for alloca" >&5
40222 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
40223 if test "${ac_cv_func_alloca_works+set}" = set; then
40224   echo $ECHO_N "(cached) $ECHO_C" >&6
40225 else
40226   cat >conftest.$ac_ext <<_ACEOF
40227 /* confdefs.h.  */
40228 _ACEOF
40229 cat confdefs.h >>conftest.$ac_ext
40230 cat >>conftest.$ac_ext <<_ACEOF
40231 /* end confdefs.h.  */
40232 #ifdef __GNUC__
40233 # define alloca __builtin_alloca
40234 #else
40235 # ifdef _MSC_VER
40236 #  include <malloc.h>
40237 #  define alloca _alloca
40238 # else
40239 #  ifdef HAVE_ALLOCA_H
40240 #   include <alloca.h>
40241 #  else
40242 #   ifdef _AIX
40243  #pragma alloca
40244 #   else
40245 #    ifndef alloca /* predefined by HP cc +Olibcalls */
40246 char *alloca ();
40247 #    endif
40248 #   endif
40249 #  endif
40250 # endif
40251 #endif
40252
40253 int
40254 main ()
40255 {
40256 char *p = (char *) alloca (1);
40257                                     if (p) return 0;
40258   ;
40259   return 0;
40260 }
40261 _ACEOF
40262 rm -f conftest.$ac_objext conftest$ac_exeext
40263 if { (ac_try="$ac_link"
40264 case "(($ac_try" in
40265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40266   *) ac_try_echo=$ac_try;;
40267 esac
40268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40269   (eval "$ac_link") 2>conftest.er1
40270   ac_status=$?
40271   grep -v '^ *+' conftest.er1 >conftest.err
40272   rm -f conftest.er1
40273   cat conftest.err >&5
40274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40275   (exit $ac_status); } && {
40276          test -z "$ac_c_werror_flag" ||
40277          test ! -s conftest.err
40278        } && test -s conftest$ac_exeext &&
40279        $as_test_x conftest$ac_exeext; then
40280   ac_cv_func_alloca_works=yes
40281 else
40282   echo "$as_me: failed program was:" >&5
40283 sed 's/^/| /' conftest.$ac_ext >&5
40284
40285         ac_cv_func_alloca_works=no
40286 fi
40287
40288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40289       conftest$ac_exeext conftest.$ac_ext
40290 fi
40291 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40292 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40293
40294 if test $ac_cv_func_alloca_works = yes; then
40295
40296 cat >>confdefs.h <<\_ACEOF
40297 #define HAVE_ALLOCA 1
40298 _ACEOF
40299
40300 else
40301   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40302 # that cause trouble.  Some versions do not even contain alloca or
40303 # contain a buggy version.  If you still want to use their alloca,
40304 # use ar to extract alloca.o from them instead of compiling alloca.c.
40305
40306 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40307
40308 cat >>confdefs.h <<\_ACEOF
40309 #define C_ALLOCA 1
40310 _ACEOF
40311
40312
40313 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40314 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40315 if test "${ac_cv_os_cray+set}" = set; then
40316   echo $ECHO_N "(cached) $ECHO_C" >&6
40317 else
40318   cat >conftest.$ac_ext <<_ACEOF
40319 /* confdefs.h.  */
40320 _ACEOF
40321 cat confdefs.h >>conftest.$ac_ext
40322 cat >>conftest.$ac_ext <<_ACEOF
40323 /* end confdefs.h.  */
40324 #if defined CRAY && ! defined CRAY2
40325 webecray
40326 #else
40327 wenotbecray
40328 #endif
40329
40330 _ACEOF
40331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40332   $EGREP "webecray" >/dev/null 2>&1; then
40333   ac_cv_os_cray=yes
40334 else
40335   ac_cv_os_cray=no
40336 fi
40337 rm -f conftest*
40338
40339 fi
40340 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40341 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40342 if test $ac_cv_os_cray = yes; then
40343   for ac_func in _getb67 GETB67 getb67; do
40344     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40348   echo $ECHO_N "(cached) $ECHO_C" >&6
40349 else
40350   cat >conftest.$ac_ext <<_ACEOF
40351 /* confdefs.h.  */
40352 _ACEOF
40353 cat confdefs.h >>conftest.$ac_ext
40354 cat >>conftest.$ac_ext <<_ACEOF
40355 /* end confdefs.h.  */
40356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40358 #define $ac_func innocuous_$ac_func
40359
40360 /* System header to define __stub macros and hopefully few prototypes,
40361     which can conflict with char $ac_func (); below.
40362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40363     <limits.h> exists even on freestanding compilers.  */
40364
40365 #ifdef __STDC__
40366 # include <limits.h>
40367 #else
40368 # include <assert.h>
40369 #endif
40370
40371 #undef $ac_func
40372
40373 /* Override any GCC internal prototype to avoid an error.
40374    Use char because int might match the return type of a GCC
40375    builtin and then its argument prototype would still apply.  */
40376 #ifdef __cplusplus
40377 extern "C"
40378 #endif
40379 char $ac_func ();
40380 /* The GNU C library defines this for functions which it implements
40381     to always fail with ENOSYS.  Some functions are actually named
40382     something starting with __ and the normal name is an alias.  */
40383 #if defined __stub_$ac_func || defined __stub___$ac_func
40384 choke me
40385 #endif
40386
40387 int
40388 main ()
40389 {
40390 return $ac_func ();
40391   ;
40392   return 0;
40393 }
40394 _ACEOF
40395 rm -f conftest.$ac_objext conftest$ac_exeext
40396 if { (ac_try="$ac_link"
40397 case "(($ac_try" in
40398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40399   *) ac_try_echo=$ac_try;;
40400 esac
40401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40402   (eval "$ac_link") 2>conftest.er1
40403   ac_status=$?
40404   grep -v '^ *+' conftest.er1 >conftest.err
40405   rm -f conftest.er1
40406   cat conftest.err >&5
40407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40408   (exit $ac_status); } && {
40409          test -z "$ac_c_werror_flag" ||
40410          test ! -s conftest.err
40411        } && test -s conftest$ac_exeext &&
40412        $as_test_x conftest$ac_exeext; then
40413   eval "$as_ac_var=yes"
40414 else
40415   echo "$as_me: failed program was:" >&5
40416 sed 's/^/| /' conftest.$ac_ext >&5
40417
40418         eval "$as_ac_var=no"
40419 fi
40420
40421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40422       conftest$ac_exeext conftest.$ac_ext
40423 fi
40424 ac_res=`eval echo '${'$as_ac_var'}'`
40425                { echo "$as_me:$LINENO: result: $ac_res" >&5
40426 echo "${ECHO_T}$ac_res" >&6; }
40427 if test `eval echo '${'$as_ac_var'}'` = yes; then
40428
40429 cat >>confdefs.h <<_ACEOF
40430 #define CRAY_STACKSEG_END $ac_func
40431 _ACEOF
40432
40433     break
40434 fi
40435
40436   done
40437 fi
40438
40439 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40440 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40441 if test "${ac_cv_c_stack_direction+set}" = set; then
40442   echo $ECHO_N "(cached) $ECHO_C" >&6
40443 else
40444   if test "$cross_compiling" = yes; then
40445   ac_cv_c_stack_direction=0
40446 else
40447   cat >conftest.$ac_ext <<_ACEOF
40448 /* confdefs.h.  */
40449 _ACEOF
40450 cat confdefs.h >>conftest.$ac_ext
40451 cat >>conftest.$ac_ext <<_ACEOF
40452 /* end confdefs.h.  */
40453 $ac_includes_default
40454 int
40455 find_stack_direction ()
40456 {
40457   static char *addr = 0;
40458   auto char dummy;
40459   if (addr == 0)
40460     {
40461       addr = &dummy;
40462       return find_stack_direction ();
40463     }
40464   else
40465     return (&dummy > addr) ? 1 : -1;
40466 }
40467
40468 int
40469 main ()
40470 {
40471   return find_stack_direction () < 0;
40472 }
40473 _ACEOF
40474 rm -f conftest$ac_exeext
40475 if { (ac_try="$ac_link"
40476 case "(($ac_try" in
40477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40478   *) ac_try_echo=$ac_try;;
40479 esac
40480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40481   (eval "$ac_link") 2>&5
40482   ac_status=$?
40483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40485   { (case "(($ac_try" in
40486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40487   *) ac_try_echo=$ac_try;;
40488 esac
40489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40490   (eval "$ac_try") 2>&5
40491   ac_status=$?
40492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40493   (exit $ac_status); }; }; then
40494   ac_cv_c_stack_direction=1
40495 else
40496   echo "$as_me: program exited with status $ac_status" >&5
40497 echo "$as_me: failed program was:" >&5
40498 sed 's/^/| /' conftest.$ac_ext >&5
40499
40500 ( exit $ac_status )
40501 ac_cv_c_stack_direction=-1
40502 fi
40503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40504 fi
40505
40506
40507 fi
40508 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40509 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40510
40511 cat >>confdefs.h <<_ACEOF
40512 #define STACK_DIRECTION $ac_cv_c_stack_direction
40513 _ACEOF
40514
40515
40516 fi
40517
40518 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40519 # -lseq on Dynix/PTX, -lgen on Unixware.
40520 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40521 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40522 if test "${ac_cv_search_getmntent+set}" = set; then
40523   echo $ECHO_N "(cached) $ECHO_C" >&6
40524 else
40525   ac_func_search_save_LIBS=$LIBS
40526 cat >conftest.$ac_ext <<_ACEOF
40527 /* confdefs.h.  */
40528 _ACEOF
40529 cat confdefs.h >>conftest.$ac_ext
40530 cat >>conftest.$ac_ext <<_ACEOF
40531 /* end confdefs.h.  */
40532
40533 /* Override any GCC internal prototype to avoid an error.
40534    Use char because int might match the return type of a GCC
40535    builtin and then its argument prototype would still apply.  */
40536 #ifdef __cplusplus
40537 extern "C"
40538 #endif
40539 char getmntent ();
40540 int
40541 main ()
40542 {
40543 return getmntent ();
40544   ;
40545   return 0;
40546 }
40547 _ACEOF
40548 for ac_lib in '' sun seq gen; do
40549   if test -z "$ac_lib"; then
40550     ac_res="none required"
40551   else
40552     ac_res=-l$ac_lib
40553     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40554   fi
40555   rm -f conftest.$ac_objext conftest$ac_exeext
40556 if { (ac_try="$ac_link"
40557 case "(($ac_try" in
40558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40559   *) ac_try_echo=$ac_try;;
40560 esac
40561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40562   (eval "$ac_link") 2>conftest.er1
40563   ac_status=$?
40564   grep -v '^ *+' conftest.er1 >conftest.err
40565   rm -f conftest.er1
40566   cat conftest.err >&5
40567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40568   (exit $ac_status); } && {
40569          test -z "$ac_c_werror_flag" ||
40570          test ! -s conftest.err
40571        } && test -s conftest$ac_exeext &&
40572        $as_test_x conftest$ac_exeext; then
40573   ac_cv_search_getmntent=$ac_res
40574 else
40575   echo "$as_me: failed program was:" >&5
40576 sed 's/^/| /' conftest.$ac_ext >&5
40577
40578
40579 fi
40580
40581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40582       conftest$ac_exeext
40583   if test "${ac_cv_search_getmntent+set}" = set; then
40584   break
40585 fi
40586 done
40587 if test "${ac_cv_search_getmntent+set}" = set; then
40588   :
40589 else
40590   ac_cv_search_getmntent=no
40591 fi
40592 rm conftest.$ac_ext
40593 LIBS=$ac_func_search_save_LIBS
40594 fi
40595 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40596 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40597 ac_res=$ac_cv_search_getmntent
40598 if test "$ac_res" != no; then
40599   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40600   ac_cv_func_getmntent=yes
40601
40602 cat >>confdefs.h <<\_ACEOF
40603 #define HAVE_GETMNTENT 1
40604 _ACEOF
40605
40606 else
40607   ac_cv_func_getmntent=no
40608 fi
40609
40610
40611
40612 for ac_func in getmntinfo
40613 do
40614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40618   echo $ECHO_N "(cached) $ECHO_C" >&6
40619 else
40620   cat >conftest.$ac_ext <<_ACEOF
40621 /* confdefs.h.  */
40622 _ACEOF
40623 cat confdefs.h >>conftest.$ac_ext
40624 cat >>conftest.$ac_ext <<_ACEOF
40625 /* end confdefs.h.  */
40626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40628 #define $ac_func innocuous_$ac_func
40629
40630 /* System header to define __stub macros and hopefully few prototypes,
40631     which can conflict with char $ac_func (); below.
40632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40633     <limits.h> exists even on freestanding compilers.  */
40634
40635 #ifdef __STDC__
40636 # include <limits.h>
40637 #else
40638 # include <assert.h>
40639 #endif
40640
40641 #undef $ac_func
40642
40643 /* Override any GCC internal prototype to avoid an error.
40644    Use char because int might match the return type of a GCC
40645    builtin and then its argument prototype would still apply.  */
40646 #ifdef __cplusplus
40647 extern "C"
40648 #endif
40649 char $ac_func ();
40650 /* The GNU C library defines this for functions which it implements
40651     to always fail with ENOSYS.  Some functions are actually named
40652     something starting with __ and the normal name is an alias.  */
40653 #if defined __stub_$ac_func || defined __stub___$ac_func
40654 choke me
40655 #endif
40656
40657 int
40658 main ()
40659 {
40660 return $ac_func ();
40661   ;
40662   return 0;
40663 }
40664 _ACEOF
40665 rm -f conftest.$ac_objext conftest$ac_exeext
40666 if { (ac_try="$ac_link"
40667 case "(($ac_try" in
40668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40669   *) ac_try_echo=$ac_try;;
40670 esac
40671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40672   (eval "$ac_link") 2>conftest.er1
40673   ac_status=$?
40674   grep -v '^ *+' conftest.er1 >conftest.err
40675   rm -f conftest.er1
40676   cat conftest.err >&5
40677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40678   (exit $ac_status); } && {
40679          test -z "$ac_c_werror_flag" ||
40680          test ! -s conftest.err
40681        } && test -s conftest$ac_exeext &&
40682        $as_test_x conftest$ac_exeext; then
40683   eval "$as_ac_var=yes"
40684 else
40685   echo "$as_me: failed program was:" >&5
40686 sed 's/^/| /' conftest.$ac_ext >&5
40687
40688         eval "$as_ac_var=no"
40689 fi
40690
40691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40692       conftest$ac_exeext conftest.$ac_ext
40693 fi
40694 ac_res=`eval echo '${'$as_ac_var'}'`
40695                { echo "$as_me:$LINENO: result: $ac_res" >&5
40696 echo "${ECHO_T}$ac_res" >&6; }
40697 if test `eval echo '${'$as_ac_var'}'` = yes; then
40698   cat >>confdefs.h <<_ACEOF
40699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40700 _ACEOF
40701  cat >>confdefs.h <<\_ACEOF
40702 #define HAVE_GETMNTINFO 1
40703 _ACEOF
40704
40705 fi
40706 done
40707
40708 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40709 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40710 if test "${ac_cv_func_closedir_void+set}" = set; then
40711   echo $ECHO_N "(cached) $ECHO_C" >&6
40712 else
40713   if test "$cross_compiling" = yes; then
40714   ac_cv_func_closedir_void=yes
40715 else
40716   cat >conftest.$ac_ext <<_ACEOF
40717 /* confdefs.h.  */
40718 _ACEOF
40719 cat confdefs.h >>conftest.$ac_ext
40720 cat >>conftest.$ac_ext <<_ACEOF
40721 /* end confdefs.h.  */
40722 $ac_includes_default
40723 #include <$ac_header_dirent>
40724 #ifndef __cplusplus
40725 int closedir ();
40726 #endif
40727
40728 int
40729 main ()
40730 {
40731 return closedir (opendir (".")) != 0;
40732   ;
40733   return 0;
40734 }
40735 _ACEOF
40736 rm -f conftest$ac_exeext
40737 if { (ac_try="$ac_link"
40738 case "(($ac_try" in
40739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40740   *) ac_try_echo=$ac_try;;
40741 esac
40742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40743   (eval "$ac_link") 2>&5
40744   ac_status=$?
40745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40746   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40747   { (case "(($ac_try" in
40748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40749   *) ac_try_echo=$ac_try;;
40750 esac
40751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40752   (eval "$ac_try") 2>&5
40753   ac_status=$?
40754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40755   (exit $ac_status); }; }; then
40756   ac_cv_func_closedir_void=no
40757 else
40758   echo "$as_me: program exited with status $ac_status" >&5
40759 echo "$as_me: failed program was:" >&5
40760 sed 's/^/| /' conftest.$ac_ext >&5
40761
40762 ( exit $ac_status )
40763 ac_cv_func_closedir_void=yes
40764 fi
40765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40766 fi
40767
40768
40769 fi
40770 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40771 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40772 if test $ac_cv_func_closedir_void = yes; then
40773
40774 cat >>confdefs.h <<\_ACEOF
40775 #define CLOSEDIR_VOID 1
40776 _ACEOF
40777
40778 fi
40779
40780 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40781 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40782 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40783   echo $ECHO_N "(cached) $ECHO_C" >&6
40784 else
40785   if test "$cross_compiling" = yes; then
40786   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40787 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40788    { (exit 1); exit 1; }; }
40789 else
40790   cat >conftest.$ac_ext <<_ACEOF
40791 /* confdefs.h.  */
40792 _ACEOF
40793 cat confdefs.h >>conftest.$ac_ext
40794 cat >>conftest.$ac_ext <<_ACEOF
40795 /* end confdefs.h.  */
40796 $ac_includes_default
40797 int
40798 main ()
40799 {
40800 /* If this system has a BSD-style setpgrp which takes arguments,
40801   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40802   exit successfully. */
40803   return setpgrp (1,1) != -1;
40804   ;
40805   return 0;
40806 }
40807 _ACEOF
40808 rm -f conftest$ac_exeext
40809 if { (ac_try="$ac_link"
40810 case "(($ac_try" in
40811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40812   *) ac_try_echo=$ac_try;;
40813 esac
40814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40815   (eval "$ac_link") 2>&5
40816   ac_status=$?
40817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40819   { (case "(($ac_try" in
40820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40821   *) ac_try_echo=$ac_try;;
40822 esac
40823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40824   (eval "$ac_try") 2>&5
40825   ac_status=$?
40826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40827   (exit $ac_status); }; }; then
40828   ac_cv_func_setpgrp_void=no
40829 else
40830   echo "$as_me: program exited with status $ac_status" >&5
40831 echo "$as_me: failed program was:" >&5
40832 sed 's/^/| /' conftest.$ac_ext >&5
40833
40834 ( exit $ac_status )
40835 ac_cv_func_setpgrp_void=yes
40836 fi
40837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40838 fi
40839
40840
40841 fi
40842 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40843 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40844 if test $ac_cv_func_setpgrp_void = yes; then
40845
40846 cat >>confdefs.h <<\_ACEOF
40847 #define SETPGRP_VOID 1
40848 _ACEOF
40849
40850 fi
40851             # AC_FUNC_FNMATCH    dnl use local version
40852
40853 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40854 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40855 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40856   echo $ECHO_N "(cached) $ECHO_C" >&6
40857 else
40858   ac_check_lib_save_LIBS=$LIBS
40859 LIBS="-lintl  $LIBS"
40860 cat >conftest.$ac_ext <<_ACEOF
40861 /* confdefs.h.  */
40862 _ACEOF
40863 cat confdefs.h >>conftest.$ac_ext
40864 cat >>conftest.$ac_ext <<_ACEOF
40865 /* end confdefs.h.  */
40866
40867 /* Override any GCC internal prototype to avoid an error.
40868    Use char because int might match the return type of a GCC
40869    builtin and then its argument prototype would still apply.  */
40870 #ifdef __cplusplus
40871 extern "C"
40872 #endif
40873 char gettext ();
40874 int
40875 main ()
40876 {
40877 return gettext ();
40878   ;
40879   return 0;
40880 }
40881 _ACEOF
40882 rm -f conftest.$ac_objext conftest$ac_exeext
40883 if { (ac_try="$ac_link"
40884 case "(($ac_try" in
40885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40886   *) ac_try_echo=$ac_try;;
40887 esac
40888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40889   (eval "$ac_link") 2>conftest.er1
40890   ac_status=$?
40891   grep -v '^ *+' conftest.er1 >conftest.err
40892   rm -f conftest.er1
40893   cat conftest.err >&5
40894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40895   (exit $ac_status); } && {
40896          test -z "$ac_c_werror_flag" ||
40897          test ! -s conftest.err
40898        } && test -s conftest$ac_exeext &&
40899        $as_test_x conftest$ac_exeext; then
40900   ac_cv_lib_intl_gettext=yes
40901 else
40902   echo "$as_me: failed program was:" >&5
40903 sed 's/^/| /' conftest.$ac_ext >&5
40904
40905         ac_cv_lib_intl_gettext=no
40906 fi
40907
40908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40909       conftest$ac_exeext conftest.$ac_ext
40910 LIBS=$ac_check_lib_save_LIBS
40911 fi
40912 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40913 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40914 if test $ac_cv_lib_intl_gettext = yes; then
40915   LIBS="$LIBS -lintl"
40916 fi
40917
40918
40919
40920 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40921 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40922 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40923   echo $ECHO_N "(cached) $ECHO_C" >&6
40924 else
40925   ac_check_lib_save_LIBS=$LIBS
40926 LIBS="-lsun  $LIBS"
40927 cat >conftest.$ac_ext <<_ACEOF
40928 /* confdefs.h.  */
40929 _ACEOF
40930 cat confdefs.h >>conftest.$ac_ext
40931 cat >>conftest.$ac_ext <<_ACEOF
40932 /* end confdefs.h.  */
40933
40934 /* Override any GCC internal prototype to avoid an error.
40935    Use char because int might match the return type of a GCC
40936    builtin and then its argument prototype would still apply.  */
40937 #ifdef __cplusplus
40938 extern "C"
40939 #endif
40940 char getpwnam ();
40941 int
40942 main ()
40943 {
40944 return getpwnam ();
40945   ;
40946   return 0;
40947 }
40948 _ACEOF
40949 rm -f conftest.$ac_objext conftest$ac_exeext
40950 if { (ac_try="$ac_link"
40951 case "(($ac_try" in
40952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40953   *) ac_try_echo=$ac_try;;
40954 esac
40955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40956   (eval "$ac_link") 2>conftest.er1
40957   ac_status=$?
40958   grep -v '^ *+' conftest.er1 >conftest.err
40959   rm -f conftest.er1
40960   cat conftest.err >&5
40961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40962   (exit $ac_status); } && {
40963          test -z "$ac_c_werror_flag" ||
40964          test ! -s conftest.err
40965        } && test -s conftest$ac_exeext &&
40966        $as_test_x conftest$ac_exeext; then
40967   ac_cv_lib_sun_getpwnam=yes
40968 else
40969   echo "$as_me: failed program was:" >&5
40970 sed 's/^/| /' conftest.$ac_ext >&5
40971
40972         ac_cv_lib_sun_getpwnam=no
40973 fi
40974
40975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40976       conftest$ac_exeext conftest.$ac_ext
40977 LIBS=$ac_check_lib_save_LIBS
40978 fi
40979 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40980 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40981 if test $ac_cv_lib_sun_getpwnam = yes; then
40982   cat >>confdefs.h <<_ACEOF
40983 #define HAVE_LIBSUN 1
40984 _ACEOF
40985
40986   LIBS="-lsun $LIBS"
40987
40988 fi
40989
40990
40991
40992 for ac_header in zlib.h
40993 do
40994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40996   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40999   echo $ECHO_N "(cached) $ECHO_C" >&6
41000 fi
41001 ac_res=`eval echo '${'$as_ac_Header'}'`
41002                { echo "$as_me:$LINENO: result: $ac_res" >&5
41003 echo "${ECHO_T}$ac_res" >&6; }
41004 else
41005   # Is the header compilable?
41006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41008 cat >conftest.$ac_ext <<_ACEOF
41009 /* confdefs.h.  */
41010 _ACEOF
41011 cat confdefs.h >>conftest.$ac_ext
41012 cat >>conftest.$ac_ext <<_ACEOF
41013 /* end confdefs.h.  */
41014 $ac_includes_default
41015 #include <$ac_header>
41016 _ACEOF
41017 rm -f conftest.$ac_objext
41018 if { (ac_try="$ac_compile"
41019 case "(($ac_try" in
41020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41021   *) ac_try_echo=$ac_try;;
41022 esac
41023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41024   (eval "$ac_compile") 2>conftest.er1
41025   ac_status=$?
41026   grep -v '^ *+' conftest.er1 >conftest.err
41027   rm -f conftest.er1
41028   cat conftest.err >&5
41029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41030   (exit $ac_status); } && {
41031          test -z "$ac_c_werror_flag" ||
41032          test ! -s conftest.err
41033        } && test -s conftest.$ac_objext; then
41034   ac_header_compiler=yes
41035 else
41036   echo "$as_me: failed program was:" >&5
41037 sed 's/^/| /' conftest.$ac_ext >&5
41038
41039         ac_header_compiler=no
41040 fi
41041
41042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41044 echo "${ECHO_T}$ac_header_compiler" >&6; }
41045
41046 # Is the header present?
41047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41049 cat >conftest.$ac_ext <<_ACEOF
41050 /* confdefs.h.  */
41051 _ACEOF
41052 cat confdefs.h >>conftest.$ac_ext
41053 cat >>conftest.$ac_ext <<_ACEOF
41054 /* end confdefs.h.  */
41055 #include <$ac_header>
41056 _ACEOF
41057 if { (ac_try="$ac_cpp conftest.$ac_ext"
41058 case "(($ac_try" in
41059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41060   *) ac_try_echo=$ac_try;;
41061 esac
41062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41064   ac_status=$?
41065   grep -v '^ *+' conftest.er1 >conftest.err
41066   rm -f conftest.er1
41067   cat conftest.err >&5
41068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41069   (exit $ac_status); } >/dev/null && {
41070          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41071          test ! -s conftest.err
41072        }; then
41073   ac_header_preproc=yes
41074 else
41075   echo "$as_me: failed program was:" >&5
41076 sed 's/^/| /' conftest.$ac_ext >&5
41077
41078   ac_header_preproc=no
41079 fi
41080
41081 rm -f conftest.err conftest.$ac_ext
41082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41083 echo "${ECHO_T}$ac_header_preproc" >&6; }
41084
41085 # So?  What about this header?
41086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41087   yes:no: )
41088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41092     ac_header_preproc=yes
41093     ;;
41094   no:yes:* )
41095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41097     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41098 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41099     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41101     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41102 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41105     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41107
41108     ;;
41109 esac
41110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41113   echo $ECHO_N "(cached) $ECHO_C" >&6
41114 else
41115   eval "$as_ac_Header=\$ac_header_preproc"
41116 fi
41117 ac_res=`eval echo '${'$as_ac_Header'}'`
41118                { echo "$as_me:$LINENO: result: $ac_res" >&5
41119 echo "${ECHO_T}$ac_res" >&6; }
41120
41121 fi
41122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41123   cat >>confdefs.h <<_ACEOF
41124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41125 _ACEOF
41126
41127 fi
41128
41129 done
41130
41131 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
41132 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
41133 if test "${ac_cv_lib_z_deflate+set}" = set; then
41134   echo $ECHO_N "(cached) $ECHO_C" >&6
41135 else
41136   ac_check_lib_save_LIBS=$LIBS
41137 LIBS="-lz  $LIBS"
41138 cat >conftest.$ac_ext <<_ACEOF
41139 /* confdefs.h.  */
41140 _ACEOF
41141 cat confdefs.h >>conftest.$ac_ext
41142 cat >>conftest.$ac_ext <<_ACEOF
41143 /* end confdefs.h.  */
41144
41145 /* Override any GCC internal prototype to avoid an error.
41146    Use char because int might match the return type of a GCC
41147    builtin and then its argument prototype would still apply.  */
41148 #ifdef __cplusplus
41149 extern "C"
41150 #endif
41151 char deflate ();
41152 int
41153 main ()
41154 {
41155 return deflate ();
41156   ;
41157   return 0;
41158 }
41159 _ACEOF
41160 rm -f conftest.$ac_objext conftest$ac_exeext
41161 if { (ac_try="$ac_link"
41162 case "(($ac_try" in
41163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41164   *) ac_try_echo=$ac_try;;
41165 esac
41166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41167   (eval "$ac_link") 2>conftest.er1
41168   ac_status=$?
41169   grep -v '^ *+' conftest.er1 >conftest.err
41170   rm -f conftest.er1
41171   cat conftest.err >&5
41172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41173   (exit $ac_status); } && {
41174          test -z "$ac_c_werror_flag" ||
41175          test ! -s conftest.err
41176        } && test -s conftest$ac_exeext &&
41177        $as_test_x conftest$ac_exeext; then
41178   ac_cv_lib_z_deflate=yes
41179 else
41180   echo "$as_me: failed program was:" >&5
41181 sed 's/^/| /' conftest.$ac_ext >&5
41182
41183         ac_cv_lib_z_deflate=no
41184 fi
41185
41186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41187       conftest$ac_exeext conftest.$ac_ext
41188 LIBS=$ac_check_lib_save_LIBS
41189 fi
41190 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
41191 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
41192 if test $ac_cv_lib_z_deflate = yes; then
41193   ZLIBS="-lz"
41194 fi
41195
41196 have_zlib=no
41197 if test x$ZLIBS = x-lz; then
41198    cat >>confdefs.h <<\_ACEOF
41199 #define HAVE_LIBZ 1
41200 _ACEOF
41201
41202    have_zlib=yes
41203 fi
41204
41205
41206 AFS_CFLAGS=""
41207 AFS_LIBS=""
41208 support_afs=auto
41209 # Check whether --enable-afs was given.
41210 if test "${enable_afs+set}" = set; then
41211   enableval=$enable_afs;
41212        if test x$enableval = xyes; then
41213           support_afs=yes
41214        elif test x$enableval = xno; then
41215           support_afs=no
41216        fi
41217
41218
41219 fi
41220
41221
41222 have_afs=no
41223 if test x$support_afs = xyes -o x$support_afs = xauto; then
41224
41225 # Check whether --with-afsdir was given.
41226 if test "${with_afsdir+set}" = set; then
41227   withval=$with_afsdir; with_afsdir=$withval
41228
41229 fi
41230
41231
41232             if test x$with_afsdir = x; then
41233       for root in /usr /usr/local; do
41234          if test -d ${root}/include/afs/ ; then
41235             with_afsdir=${root}
41236             break
41237          fi
41238       done
41239    fi
41240
41241    AFS_CFLAGS="-I${with_afsdir}/include"
41242
41243    saved_CFLAGS="${CFLAGS}"
41244    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
41245
41246
41247 for ac_header in afs/stds.h
41248 do
41249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41251   { echo "$as_me:$LINENO: checking for $ac_header" >&5
41252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41254   echo $ECHO_N "(cached) $ECHO_C" >&6
41255 fi
41256 ac_res=`eval echo '${'$as_ac_Header'}'`
41257                { echo "$as_me:$LINENO: result: $ac_res" >&5
41258 echo "${ECHO_T}$ac_res" >&6; }
41259 else
41260   # Is the header compilable?
41261 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41263 cat >conftest.$ac_ext <<_ACEOF
41264 /* confdefs.h.  */
41265 _ACEOF
41266 cat confdefs.h >>conftest.$ac_ext
41267 cat >>conftest.$ac_ext <<_ACEOF
41268 /* end confdefs.h.  */
41269 $ac_includes_default
41270 #include <$ac_header>
41271 _ACEOF
41272 rm -f conftest.$ac_objext
41273 if { (ac_try="$ac_compile"
41274 case "(($ac_try" in
41275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41276   *) ac_try_echo=$ac_try;;
41277 esac
41278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41279   (eval "$ac_compile") 2>conftest.er1
41280   ac_status=$?
41281   grep -v '^ *+' conftest.er1 >conftest.err
41282   rm -f conftest.er1
41283   cat conftest.err >&5
41284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41285   (exit $ac_status); } && {
41286          test -z "$ac_c_werror_flag" ||
41287          test ! -s conftest.err
41288        } && test -s conftest.$ac_objext; then
41289   ac_header_compiler=yes
41290 else
41291   echo "$as_me: failed program was:" >&5
41292 sed 's/^/| /' conftest.$ac_ext >&5
41293
41294         ac_header_compiler=no
41295 fi
41296
41297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41299 echo "${ECHO_T}$ac_header_compiler" >&6; }
41300
41301 # Is the header present?
41302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41304 cat >conftest.$ac_ext <<_ACEOF
41305 /* confdefs.h.  */
41306 _ACEOF
41307 cat confdefs.h >>conftest.$ac_ext
41308 cat >>conftest.$ac_ext <<_ACEOF
41309 /* end confdefs.h.  */
41310 #include <$ac_header>
41311 _ACEOF
41312 if { (ac_try="$ac_cpp conftest.$ac_ext"
41313 case "(($ac_try" in
41314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41315   *) ac_try_echo=$ac_try;;
41316 esac
41317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41318   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41319   ac_status=$?
41320   grep -v '^ *+' conftest.er1 >conftest.err
41321   rm -f conftest.er1
41322   cat conftest.err >&5
41323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41324   (exit $ac_status); } >/dev/null && {
41325          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41326          test ! -s conftest.err
41327        }; then
41328   ac_header_preproc=yes
41329 else
41330   echo "$as_me: failed program was:" >&5
41331 sed 's/^/| /' conftest.$ac_ext >&5
41332
41333   ac_header_preproc=no
41334 fi
41335
41336 rm -f conftest.err conftest.$ac_ext
41337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41338 echo "${ECHO_T}$ac_header_preproc" >&6; }
41339
41340 # So?  What about this header?
41341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41342   yes:no: )
41343     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41347     ac_header_preproc=yes
41348     ;;
41349   no:yes:* )
41350     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41352     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41353 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41354     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41356     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41357 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41360     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41362
41363     ;;
41364 esac
41365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41368   echo $ECHO_N "(cached) $ECHO_C" >&6
41369 else
41370   eval "$as_ac_Header=\$ac_header_preproc"
41371 fi
41372 ac_res=`eval echo '${'$as_ac_Header'}'`
41373                { echo "$as_me:$LINENO: result: $ac_res" >&5
41374 echo "${ECHO_T}$ac_res" >&6; }
41375
41376 fi
41377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41378   cat >>confdefs.h <<_ACEOF
41379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41380 _ACEOF
41381
41382 fi
41383
41384 done
41385
41386
41387    CFLAGS="${saved_CFLAGS}"
41388
41389             for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
41390    do
41391       for arch_type in .a .so
41392       do
41393          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
41394          pkg=$?
41395          if test $pkg = 0; then
41396             have_afs=yes
41397             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
41398             break
41399          fi
41400       done
41401    done
41402
41403    if test x$support_afs = xyes -a $have_afs != yes; then
41404       { { echo "$as_me:$LINENO: error: afs support explicitly enabled but no supported afs implementation found,
41405   please either load the afs libraries or rerun configure without --enable-afs" >&5
41406 echo "$as_me: error: afs support explicitly enabled but no supported afs implementation found,
41407   please either load the afs libraries or rerun configure without --enable-afs" >&2;}
41408    { (exit 1); exit 1; }; }
41409    else
41410       if test $have_afs = yes; then
41411
41412 cat >>confdefs.h <<\_ACEOF
41413 #define HAVE_AFS 1
41414 _ACEOF
41415
41416
41417 cat >>confdefs.h <<\_ACEOF
41418 #define HAVE_AFS_ACL 1
41419 _ACEOF
41420
41421       fi
41422    fi
41423 fi
41424
41425
41426
41427 cat >>confdefs.h <<\_ACEOF
41428 #define AFS_CFLAGS 1
41429 _ACEOF
41430
41431 cat >>confdefs.h <<\_ACEOF
41432 #define AFS_LIBS 1
41433 _ACEOF
41434
41435
41436 support_acl=auto
41437 # Check whether --enable-acl was given.
41438 if test "${enable_acl+set}" = set; then
41439   enableval=$enable_acl;
41440        if test x$enableval = xyes; then
41441           support_acl=yes
41442        elif test x$enableval = xno; then
41443           support_acl=no
41444        fi
41445
41446
41447 fi
41448
41449
41450 have_acl=no
41451 have_extended_acl=no
41452 if test x$support_acl = xyes -o x$support_acl = xauto; then
41453    if test "${ac_cv_header_sys_acl_h+set}" = set; then
41454   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41455 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41456 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41457   echo $ECHO_N "(cached) $ECHO_C" >&6
41458 fi
41459 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41460 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41461 else
41462   # Is the header compilable?
41463 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
41464 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
41465 cat >conftest.$ac_ext <<_ACEOF
41466 /* confdefs.h.  */
41467 _ACEOF
41468 cat confdefs.h >>conftest.$ac_ext
41469 cat >>conftest.$ac_ext <<_ACEOF
41470 /* end confdefs.h.  */
41471 $ac_includes_default
41472 #include <sys/acl.h>
41473 _ACEOF
41474 rm -f conftest.$ac_objext
41475 if { (ac_try="$ac_compile"
41476 case "(($ac_try" in
41477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41478   *) ac_try_echo=$ac_try;;
41479 esac
41480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41481   (eval "$ac_compile") 2>conftest.er1
41482   ac_status=$?
41483   grep -v '^ *+' conftest.er1 >conftest.err
41484   rm -f conftest.er1
41485   cat conftest.err >&5
41486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41487   (exit $ac_status); } && {
41488          test -z "$ac_c_werror_flag" ||
41489          test ! -s conftest.err
41490        } && test -s conftest.$ac_objext; then
41491   ac_header_compiler=yes
41492 else
41493   echo "$as_me: failed program was:" >&5
41494 sed 's/^/| /' conftest.$ac_ext >&5
41495
41496         ac_header_compiler=no
41497 fi
41498
41499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41501 echo "${ECHO_T}$ac_header_compiler" >&6; }
41502
41503 # Is the header present?
41504 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
41505 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
41506 cat >conftest.$ac_ext <<_ACEOF
41507 /* confdefs.h.  */
41508 _ACEOF
41509 cat confdefs.h >>conftest.$ac_ext
41510 cat >>conftest.$ac_ext <<_ACEOF
41511 /* end confdefs.h.  */
41512 #include <sys/acl.h>
41513 _ACEOF
41514 if { (ac_try="$ac_cpp conftest.$ac_ext"
41515 case "(($ac_try" in
41516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41517   *) ac_try_echo=$ac_try;;
41518 esac
41519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41520   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41521   ac_status=$?
41522   grep -v '^ *+' conftest.er1 >conftest.err
41523   rm -f conftest.er1
41524   cat conftest.err >&5
41525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41526   (exit $ac_status); } >/dev/null && {
41527          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41528          test ! -s conftest.err
41529        }; then
41530   ac_header_preproc=yes
41531 else
41532   echo "$as_me: failed program was:" >&5
41533 sed 's/^/| /' conftest.$ac_ext >&5
41534
41535   ac_header_preproc=no
41536 fi
41537
41538 rm -f conftest.err conftest.$ac_ext
41539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41540 echo "${ECHO_T}$ac_header_preproc" >&6; }
41541
41542 # So?  What about this header?
41543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41544   yes:no: )
41545     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
41546 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41547     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
41548 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
41549     ac_header_preproc=yes
41550     ;;
41551   no:yes:* )
41552     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
41553 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
41554     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
41555 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
41556     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41557 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41558     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
41559 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41560     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41561 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41562     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41563 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41564
41565     ;;
41566 esac
41567 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41568 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41569 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41570   echo $ECHO_N "(cached) $ECHO_C" >&6
41571 else
41572   ac_cv_header_sys_acl_h=$ac_header_preproc
41573 fi
41574 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41575 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41576
41577 fi
41578 if test $ac_cv_header_sys_acl_h = yes; then
41579
41580 cat >>confdefs.h <<\_ACEOF
41581 #define HAVE_SYS_ACL_H 1
41582 _ACEOF
41583
41584 fi
41585
41586
41587    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41588 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41589 if test "${ac_cv_func_acl_get_file+set}" = set; then
41590   echo $ECHO_N "(cached) $ECHO_C" >&6
41591 else
41592   cat >conftest.$ac_ext <<_ACEOF
41593 /* confdefs.h.  */
41594 _ACEOF
41595 cat confdefs.h >>conftest.$ac_ext
41596 cat >>conftest.$ac_ext <<_ACEOF
41597 /* end confdefs.h.  */
41598 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41600 #define acl_get_file innocuous_acl_get_file
41601
41602 /* System header to define __stub macros and hopefully few prototypes,
41603     which can conflict with char acl_get_file (); below.
41604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41605     <limits.h> exists even on freestanding compilers.  */
41606
41607 #ifdef __STDC__
41608 # include <limits.h>
41609 #else
41610 # include <assert.h>
41611 #endif
41612
41613 #undef acl_get_file
41614
41615 /* Override any GCC internal prototype to avoid an error.
41616    Use char because int might match the return type of a GCC
41617    builtin and then its argument prototype would still apply.  */
41618 #ifdef __cplusplus
41619 extern "C"
41620 #endif
41621 char acl_get_file ();
41622 /* The GNU C library defines this for functions which it implements
41623     to always fail with ENOSYS.  Some functions are actually named
41624     something starting with __ and the normal name is an alias.  */
41625 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41626 choke me
41627 #endif
41628
41629 int
41630 main ()
41631 {
41632 return acl_get_file ();
41633   ;
41634   return 0;
41635 }
41636 _ACEOF
41637 rm -f conftest.$ac_objext conftest$ac_exeext
41638 if { (ac_try="$ac_link"
41639 case "(($ac_try" in
41640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41641   *) ac_try_echo=$ac_try;;
41642 esac
41643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41644   (eval "$ac_link") 2>conftest.er1
41645   ac_status=$?
41646   grep -v '^ *+' conftest.er1 >conftest.err
41647   rm -f conftest.er1
41648   cat conftest.err >&5
41649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41650   (exit $ac_status); } && {
41651          test -z "$ac_c_werror_flag" ||
41652          test ! -s conftest.err
41653        } && test -s conftest$ac_exeext &&
41654        $as_test_x conftest$ac_exeext; then
41655   ac_cv_func_acl_get_file=yes
41656 else
41657   echo "$as_me: failed program was:" >&5
41658 sed 's/^/| /' conftest.$ac_ext >&5
41659
41660         ac_cv_func_acl_get_file=no
41661 fi
41662
41663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41664       conftest$ac_exeext conftest.$ac_ext
41665 fi
41666 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41667 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41668 if test $ac_cv_func_acl_get_file = yes; then
41669
41670           have_acl=yes
41671
41672 else
41673
41674           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41675 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41676 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41677   echo $ECHO_N "(cached) $ECHO_C" >&6
41678 else
41679   ac_check_lib_save_LIBS=$LIBS
41680 LIBS="-lacl  $LIBS"
41681 cat >conftest.$ac_ext <<_ACEOF
41682 /* confdefs.h.  */
41683 _ACEOF
41684 cat confdefs.h >>conftest.$ac_ext
41685 cat >>conftest.$ac_ext <<_ACEOF
41686 /* end confdefs.h.  */
41687
41688 /* Override any GCC internal prototype to avoid an error.
41689    Use char because int might match the return type of a GCC
41690    builtin and then its argument prototype would still apply.  */
41691 #ifdef __cplusplus
41692 extern "C"
41693 #endif
41694 char acl_get_file ();
41695 int
41696 main ()
41697 {
41698 return acl_get_file ();
41699   ;
41700   return 0;
41701 }
41702 _ACEOF
41703 rm -f conftest.$ac_objext conftest$ac_exeext
41704 if { (ac_try="$ac_link"
41705 case "(($ac_try" in
41706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41707   *) ac_try_echo=$ac_try;;
41708 esac
41709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41710   (eval "$ac_link") 2>conftest.er1
41711   ac_status=$?
41712   grep -v '^ *+' conftest.er1 >conftest.err
41713   rm -f conftest.er1
41714   cat conftest.err >&5
41715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41716   (exit $ac_status); } && {
41717          test -z "$ac_c_werror_flag" ||
41718          test ! -s conftest.err
41719        } && test -s conftest$ac_exeext &&
41720        $as_test_x conftest$ac_exeext; then
41721   ac_cv_lib_acl_acl_get_file=yes
41722 else
41723   echo "$as_me: failed program was:" >&5
41724 sed 's/^/| /' conftest.$ac_ext >&5
41725
41726         ac_cv_lib_acl_acl_get_file=no
41727 fi
41728
41729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41730       conftest$ac_exeext conftest.$ac_ext
41731 LIBS=$ac_check_lib_save_LIBS
41732 fi
41733 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41734 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41735 if test $ac_cv_lib_acl_acl_get_file = yes; then
41736
41737                  have_acl=yes;
41738                  if test $have_afs = yes; then
41739                                                                             if test -d /usr/lib64/; then
41740                        FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
41741                     else
41742                        FDLIBS="-L/usr/lib -lacl $FDLIBS"
41743                     fi
41744                  else
41745                     FDLIBS="-lacl $FDLIBS"
41746                  fi
41747
41748 else
41749
41750                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41751 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41752 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41753   echo $ECHO_N "(cached) $ECHO_C" >&6
41754 else
41755   ac_check_lib_save_LIBS=$LIBS
41756 LIBS="-lpacl  $LIBS"
41757 cat >conftest.$ac_ext <<_ACEOF
41758 /* confdefs.h.  */
41759 _ACEOF
41760 cat confdefs.h >>conftest.$ac_ext
41761 cat >>conftest.$ac_ext <<_ACEOF
41762 /* end confdefs.h.  */
41763
41764 /* Override any GCC internal prototype to avoid an error.
41765    Use char because int might match the return type of a GCC
41766    builtin and then its argument prototype would still apply.  */
41767 #ifdef __cplusplus
41768 extern "C"
41769 #endif
41770 char acl_get_file ();
41771 int
41772 main ()
41773 {
41774 return acl_get_file ();
41775   ;
41776   return 0;
41777 }
41778 _ACEOF
41779 rm -f conftest.$ac_objext conftest$ac_exeext
41780 if { (ac_try="$ac_link"
41781 case "(($ac_try" in
41782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41783   *) ac_try_echo=$ac_try;;
41784 esac
41785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41786   (eval "$ac_link") 2>conftest.er1
41787   ac_status=$?
41788   grep -v '^ *+' conftest.er1 >conftest.err
41789   rm -f conftest.er1
41790   cat conftest.err >&5
41791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41792   (exit $ac_status); } && {
41793          test -z "$ac_c_werror_flag" ||
41794          test ! -s conftest.err
41795        } && test -s conftest$ac_exeext &&
41796        $as_test_x conftest$ac_exeext; then
41797   ac_cv_lib_pacl_acl_get_file=yes
41798 else
41799   echo "$as_me: failed program was:" >&5
41800 sed 's/^/| /' conftest.$ac_ext >&5
41801
41802         ac_cv_lib_pacl_acl_get_file=no
41803 fi
41804
41805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41806       conftest$ac_exeext conftest.$ac_ext
41807 LIBS=$ac_check_lib_save_LIBS
41808 fi
41809 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41810 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41811 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41812
41813                         have_acl=yes;
41814                         FDLIBS="-lpacl $FDLIBS"
41815
41816 else
41817
41818                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41819 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41820 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41821   echo $ECHO_N "(cached) $ECHO_C" >&6
41822 else
41823   ac_check_lib_save_LIBS=$LIBS
41824 LIBS="-lsec  $LIBS"
41825 cat >conftest.$ac_ext <<_ACEOF
41826 /* confdefs.h.  */
41827 _ACEOF
41828 cat confdefs.h >>conftest.$ac_ext
41829 cat >>conftest.$ac_ext <<_ACEOF
41830 /* end confdefs.h.  */
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 acltotext ();
41839 int
41840 main ()
41841 {
41842 return acltotext ();
41843   ;
41844   return 0;
41845 }
41846 _ACEOF
41847 rm -f conftest.$ac_objext conftest$ac_exeext
41848 if { (ac_try="$ac_link"
41849 case "(($ac_try" in
41850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41851   *) ac_try_echo=$ac_try;;
41852 esac
41853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41854   (eval "$ac_link") 2>conftest.er1
41855   ac_status=$?
41856   grep -v '^ *+' conftest.er1 >conftest.err
41857   rm -f conftest.er1
41858   cat conftest.err >&5
41859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41860   (exit $ac_status); } && {
41861          test -z "$ac_c_werror_flag" ||
41862          test ! -s conftest.err
41863        } && test -s conftest$ac_exeext &&
41864        $as_test_x conftest$ac_exeext; then
41865   ac_cv_lib_sec_acltotext=yes
41866 else
41867   echo "$as_me: failed program was:" >&5
41868 sed 's/^/| /' conftest.$ac_ext >&5
41869
41870         ac_cv_lib_sec_acltotext=no
41871 fi
41872
41873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41874       conftest$ac_exeext conftest.$ac_ext
41875 LIBS=$ac_check_lib_save_LIBS
41876 fi
41877 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41878 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41879 if test $ac_cv_lib_sec_acltotext = yes; then
41880
41881                                have_acl=yes;
41882                                FDLIBS="-lsec $FDLIBS"
41883
41884                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41885 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41886 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41887   echo $ECHO_N "(cached) $ECHO_C" >&6
41888 else
41889   ac_check_lib_save_LIBS=$LIBS
41890 LIBS="-lsec  $LIBS"
41891 cat >conftest.$ac_ext <<_ACEOF
41892 /* confdefs.h.  */
41893 _ACEOF
41894 cat confdefs.h >>conftest.$ac_ext
41895 cat >>conftest.$ac_ext <<_ACEOF
41896 /* end confdefs.h.  */
41897
41898 /* Override any GCC internal prototype to avoid an error.
41899    Use char because int might match the return type of a GCC
41900    builtin and then its argument prototype would still apply.  */
41901 #ifdef __cplusplus
41902 extern "C"
41903 #endif
41904 char acl_totext ();
41905 int
41906 main ()
41907 {
41908 return acl_totext ();
41909   ;
41910   return 0;
41911 }
41912 _ACEOF
41913 rm -f conftest.$ac_objext conftest$ac_exeext
41914 if { (ac_try="$ac_link"
41915 case "(($ac_try" in
41916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41917   *) ac_try_echo=$ac_try;;
41918 esac
41919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41920   (eval "$ac_link") 2>conftest.er1
41921   ac_status=$?
41922   grep -v '^ *+' conftest.er1 >conftest.err
41923   rm -f conftest.er1
41924   cat conftest.err >&5
41925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41926   (exit $ac_status); } && {
41927          test -z "$ac_c_werror_flag" ||
41928          test ! -s conftest.err
41929        } && test -s conftest$ac_exeext &&
41930        $as_test_x conftest$ac_exeext; then
41931   ac_cv_lib_sec_acl_totext=yes
41932 else
41933   echo "$as_me: failed program was:" >&5
41934 sed 's/^/| /' conftest.$ac_ext >&5
41935
41936         ac_cv_lib_sec_acl_totext=no
41937 fi
41938
41939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41940       conftest$ac_exeext conftest.$ac_ext
41941 LIBS=$ac_check_lib_save_LIBS
41942 fi
41943 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41944 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41945 if test $ac_cv_lib_sec_acl_totext = yes; then
41946
41947                                       have_extended_acl=yes
41948
41949
41950 fi
41951
41952
41953
41954 fi
41955
41956
41957
41958 fi
41959
41960
41961
41962 fi
41963
41964
41965
41966 fi
41967
41968
41969    if test x$support_acl = xyes -a $have_acl != yes; then
41970       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41971   please either load the acl libraries or rerun configure without --enable-acl" >&5
41972 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41973   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41974    { (exit 1); exit 1; }; }
41975    else
41976       if test $have_acl = yes; then
41977
41978 cat >>confdefs.h <<\_ACEOF
41979 #define HAVE_ACL 1
41980 _ACEOF
41981
41982       fi
41983
41984       if test $have_extended_acl = yes; then
41985
41986 cat >>confdefs.h <<\_ACEOF
41987 #define HAVE_EXTENDED_ACL 1
41988 _ACEOF
41989
41990       fi
41991    fi
41992 fi
41993
41994 support_xattr=auto
41995 # Check whether --enable-xattr was given.
41996 if test "${enable_xattr+set}" = set; then
41997   enableval=$enable_xattr;
41998        if test x$enableval = xyes; then
41999           support_xattr=yes
42000        elif test x$enableval = xno; then
42001           support_xattr=no
42002        fi
42003
42004
42005 fi
42006
42007
42008 have_xattr=no
42009 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
42010             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42011   { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
42012 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
42013 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42014   echo $ECHO_N "(cached) $ECHO_C" >&6
42015 fi
42016 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
42017 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
42018 else
42019   # Is the header compilable?
42020 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
42021 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
42022 cat >conftest.$ac_ext <<_ACEOF
42023 /* confdefs.h.  */
42024 _ACEOF
42025 cat confdefs.h >>conftest.$ac_ext
42026 cat >>conftest.$ac_ext <<_ACEOF
42027 /* end confdefs.h.  */
42028 $ac_includes_default
42029 #include <sys/extattr.h>
42030 _ACEOF
42031 rm -f conftest.$ac_objext
42032 if { (ac_try="$ac_compile"
42033 case "(($ac_try" in
42034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42035   *) ac_try_echo=$ac_try;;
42036 esac
42037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42038   (eval "$ac_compile") 2>conftest.er1
42039   ac_status=$?
42040   grep -v '^ *+' conftest.er1 >conftest.err
42041   rm -f conftest.er1
42042   cat conftest.err >&5
42043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42044   (exit $ac_status); } && {
42045          test -z "$ac_c_werror_flag" ||
42046          test ! -s conftest.err
42047        } && test -s conftest.$ac_objext; then
42048   ac_header_compiler=yes
42049 else
42050   echo "$as_me: failed program was:" >&5
42051 sed 's/^/| /' conftest.$ac_ext >&5
42052
42053         ac_header_compiler=no
42054 fi
42055
42056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42058 echo "${ECHO_T}$ac_header_compiler" >&6; }
42059
42060 # Is the header present?
42061 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
42062 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
42063 cat >conftest.$ac_ext <<_ACEOF
42064 /* confdefs.h.  */
42065 _ACEOF
42066 cat confdefs.h >>conftest.$ac_ext
42067 cat >>conftest.$ac_ext <<_ACEOF
42068 /* end confdefs.h.  */
42069 #include <sys/extattr.h>
42070 _ACEOF
42071 if { (ac_try="$ac_cpp conftest.$ac_ext"
42072 case "(($ac_try" in
42073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42074   *) ac_try_echo=$ac_try;;
42075 esac
42076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42077   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42078   ac_status=$?
42079   grep -v '^ *+' conftest.er1 >conftest.err
42080   rm -f conftest.er1
42081   cat conftest.err >&5
42082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42083   (exit $ac_status); } >/dev/null && {
42084          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42085          test ! -s conftest.err
42086        }; then
42087   ac_header_preproc=yes
42088 else
42089   echo "$as_me: failed program was:" >&5
42090 sed 's/^/| /' conftest.$ac_ext >&5
42091
42092   ac_header_preproc=no
42093 fi
42094
42095 rm -f conftest.err conftest.$ac_ext
42096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42097 echo "${ECHO_T}$ac_header_preproc" >&6; }
42098
42099 # So?  What about this header?
42100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42101   yes:no: )
42102     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42103 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42104     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
42105 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
42106     ac_header_preproc=yes
42107     ;;
42108   no:yes:* )
42109     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
42110 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
42111     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
42112 echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
42113     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
42114 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
42115     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
42116 echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42117     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
42118 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
42119     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
42120 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
42121
42122     ;;
42123 esac
42124 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
42125 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
42126 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
42127   echo $ECHO_N "(cached) $ECHO_C" >&6
42128 else
42129   ac_cv_header_sys_extattr_h=$ac_header_preproc
42130 fi
42131 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
42132 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
42133
42134 fi
42135 if test $ac_cv_header_sys_extattr_h = yes; then
42136
42137 cat >>confdefs.h <<\_ACEOF
42138 #define HAVE_SYS_EXTATTR_H 1
42139 _ACEOF
42140
42141 fi
42142
42143
42144    if test "${ac_cv_header_libutil_h+set}" = set; then
42145   { echo "$as_me:$LINENO: checking for libutil.h" >&5
42146 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
42147 if test "${ac_cv_header_libutil_h+set}" = set; then
42148   echo $ECHO_N "(cached) $ECHO_C" >&6
42149 fi
42150 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
42151 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
42152 else
42153   # Is the header compilable?
42154 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
42155 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
42156 cat >conftest.$ac_ext <<_ACEOF
42157 /* confdefs.h.  */
42158 _ACEOF
42159 cat confdefs.h >>conftest.$ac_ext
42160 cat >>conftest.$ac_ext <<_ACEOF
42161 /* end confdefs.h.  */
42162 $ac_includes_default
42163 #include <libutil.h>
42164 _ACEOF
42165 rm -f conftest.$ac_objext
42166 if { (ac_try="$ac_compile"
42167 case "(($ac_try" in
42168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42169   *) ac_try_echo=$ac_try;;
42170 esac
42171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42172   (eval "$ac_compile") 2>conftest.er1
42173   ac_status=$?
42174   grep -v '^ *+' conftest.er1 >conftest.err
42175   rm -f conftest.er1
42176   cat conftest.err >&5
42177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42178   (exit $ac_status); } && {
42179          test -z "$ac_c_werror_flag" ||
42180          test ! -s conftest.err
42181        } && test -s conftest.$ac_objext; then
42182   ac_header_compiler=yes
42183 else
42184   echo "$as_me: failed program was:" >&5
42185 sed 's/^/| /' conftest.$ac_ext >&5
42186
42187         ac_header_compiler=no
42188 fi
42189
42190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42192 echo "${ECHO_T}$ac_header_compiler" >&6; }
42193
42194 # Is the header present?
42195 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
42196 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
42197 cat >conftest.$ac_ext <<_ACEOF
42198 /* confdefs.h.  */
42199 _ACEOF
42200 cat confdefs.h >>conftest.$ac_ext
42201 cat >>conftest.$ac_ext <<_ACEOF
42202 /* end confdefs.h.  */
42203 #include <libutil.h>
42204 _ACEOF
42205 if { (ac_try="$ac_cpp conftest.$ac_ext"
42206 case "(($ac_try" in
42207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42208   *) ac_try_echo=$ac_try;;
42209 esac
42210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42211   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42212   ac_status=$?
42213   grep -v '^ *+' conftest.er1 >conftest.err
42214   rm -f conftest.er1
42215   cat conftest.err >&5
42216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42217   (exit $ac_status); } >/dev/null && {
42218          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42219          test ! -s conftest.err
42220        }; then
42221   ac_header_preproc=yes
42222 else
42223   echo "$as_me: failed program was:" >&5
42224 sed 's/^/| /' conftest.$ac_ext >&5
42225
42226   ac_header_preproc=no
42227 fi
42228
42229 rm -f conftest.err conftest.$ac_ext
42230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42231 echo "${ECHO_T}$ac_header_preproc" >&6; }
42232
42233 # So?  What about this header?
42234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42235   yes:no: )
42236     { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
42237 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42238     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
42239 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
42240     ac_header_preproc=yes
42241     ;;
42242   no:yes:* )
42243     { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
42244 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
42245     { echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
42246 echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
42247     { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
42248 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
42249     { echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
42250 echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42251     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
42252 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
42253     { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
42254 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
42255
42256     ;;
42257 esac
42258 { echo "$as_me:$LINENO: checking for libutil.h" >&5
42259 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
42260 if test "${ac_cv_header_libutil_h+set}" = set; then
42261   echo $ECHO_N "(cached) $ECHO_C" >&6
42262 else
42263   ac_cv_header_libutil_h=$ac_header_preproc
42264 fi
42265 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
42266 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
42267
42268 fi
42269 if test $ac_cv_header_libutil_h = yes; then
42270
42271 cat >>confdefs.h <<\_ACEOF
42272 #define HAVE_LIBUTIL_H 1
42273 _ACEOF
42274
42275 fi
42276
42277
42278
42279
42280
42281 for ac_func in extattr_get_link extattr_set_link extattr_list_link
42282 do
42283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42287   echo $ECHO_N "(cached) $ECHO_C" >&6
42288 else
42289   cat >conftest.$ac_ext <<_ACEOF
42290 /* confdefs.h.  */
42291 _ACEOF
42292 cat confdefs.h >>conftest.$ac_ext
42293 cat >>conftest.$ac_ext <<_ACEOF
42294 /* end confdefs.h.  */
42295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42297 #define $ac_func innocuous_$ac_func
42298
42299 /* System header to define __stub macros and hopefully few prototypes,
42300     which can conflict with char $ac_func (); below.
42301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42302     <limits.h> exists even on freestanding compilers.  */
42303
42304 #ifdef __STDC__
42305 # include <limits.h>
42306 #else
42307 # include <assert.h>
42308 #endif
42309
42310 #undef $ac_func
42311
42312 /* Override any GCC internal prototype to avoid an error.
42313    Use char because int might match the return type of a GCC
42314    builtin and then its argument prototype would still apply.  */
42315 #ifdef __cplusplus
42316 extern "C"
42317 #endif
42318 char $ac_func ();
42319 /* The GNU C library defines this for functions which it implements
42320     to always fail with ENOSYS.  Some functions are actually named
42321     something starting with __ and the normal name is an alias.  */
42322 #if defined __stub_$ac_func || defined __stub___$ac_func
42323 choke me
42324 #endif
42325
42326 int
42327 main ()
42328 {
42329 return $ac_func ();
42330   ;
42331   return 0;
42332 }
42333 _ACEOF
42334 rm -f conftest.$ac_objext conftest$ac_exeext
42335 if { (ac_try="$ac_link"
42336 case "(($ac_try" in
42337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42338   *) ac_try_echo=$ac_try;;
42339 esac
42340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42341   (eval "$ac_link") 2>conftest.er1
42342   ac_status=$?
42343   grep -v '^ *+' conftest.er1 >conftest.err
42344   rm -f conftest.er1
42345   cat conftest.err >&5
42346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42347   (exit $ac_status); } && {
42348          test -z "$ac_c_werror_flag" ||
42349          test ! -s conftest.err
42350        } && test -s conftest$ac_exeext &&
42351        $as_test_x conftest$ac_exeext; then
42352   eval "$as_ac_var=yes"
42353 else
42354   echo "$as_me: failed program was:" >&5
42355 sed 's/^/| /' conftest.$ac_ext >&5
42356
42357         eval "$as_ac_var=no"
42358 fi
42359
42360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42361       conftest$ac_exeext conftest.$ac_ext
42362 fi
42363 ac_res=`eval echo '${'$as_ac_var'}'`
42364                { echo "$as_me:$LINENO: result: $ac_res" >&5
42365 echo "${ECHO_T}$ac_res" >&6; }
42366 if test `eval echo '${'$as_ac_var'}'` = yes; then
42367   cat >>confdefs.h <<_ACEOF
42368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42369 _ACEOF
42370
42371           have_xattr=yes
42372
42373 cat >>confdefs.h <<\_ACEOF
42374 #define HAVE_EXTATTR_GET_LINK 1
42375 _ACEOF
42376
42377
42378 cat >>confdefs.h <<\_ACEOF
42379 #define HAVE_EXTATTR_SET_LINK 1
42380 _ACEOF
42381
42382
42383 cat >>confdefs.h <<\_ACEOF
42384 #define HAVE_EXTATTR_LIST_LINK 1
42385 _ACEOF
42386
42387
42388
42389 fi
42390 done
42391
42392
42393    if test $have_xattr = no; then
42394
42395
42396
42397 for ac_func in extattr_get_file extattr_set_file extattr_list_file
42398 do
42399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42400 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42403   echo $ECHO_N "(cached) $ECHO_C" >&6
42404 else
42405   cat >conftest.$ac_ext <<_ACEOF
42406 /* confdefs.h.  */
42407 _ACEOF
42408 cat confdefs.h >>conftest.$ac_ext
42409 cat >>conftest.$ac_ext <<_ACEOF
42410 /* end confdefs.h.  */
42411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42413 #define $ac_func innocuous_$ac_func
42414
42415 /* System header to define __stub macros and hopefully few prototypes,
42416     which can conflict with char $ac_func (); below.
42417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42418     <limits.h> exists even on freestanding compilers.  */
42419
42420 #ifdef __STDC__
42421 # include <limits.h>
42422 #else
42423 # include <assert.h>
42424 #endif
42425
42426 #undef $ac_func
42427
42428 /* Override any GCC internal prototype to avoid an error.
42429    Use char because int might match the return type of a GCC
42430    builtin and then its argument prototype would still apply.  */
42431 #ifdef __cplusplus
42432 extern "C"
42433 #endif
42434 char $ac_func ();
42435 /* The GNU C library defines this for functions which it implements
42436     to always fail with ENOSYS.  Some functions are actually named
42437     something starting with __ and the normal name is an alias.  */
42438 #if defined __stub_$ac_func || defined __stub___$ac_func
42439 choke me
42440 #endif
42441
42442 int
42443 main ()
42444 {
42445 return $ac_func ();
42446   ;
42447   return 0;
42448 }
42449 _ACEOF
42450 rm -f conftest.$ac_objext conftest$ac_exeext
42451 if { (ac_try="$ac_link"
42452 case "(($ac_try" in
42453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42454   *) ac_try_echo=$ac_try;;
42455 esac
42456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42457   (eval "$ac_link") 2>conftest.er1
42458   ac_status=$?
42459   grep -v '^ *+' conftest.er1 >conftest.err
42460   rm -f conftest.er1
42461   cat conftest.err >&5
42462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42463   (exit $ac_status); } && {
42464          test -z "$ac_c_werror_flag" ||
42465          test ! -s conftest.err
42466        } && test -s conftest$ac_exeext &&
42467        $as_test_x conftest$ac_exeext; then
42468   eval "$as_ac_var=yes"
42469 else
42470   echo "$as_me: failed program was:" >&5
42471 sed 's/^/| /' conftest.$ac_ext >&5
42472
42473         eval "$as_ac_var=no"
42474 fi
42475
42476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42477       conftest$ac_exeext conftest.$ac_ext
42478 fi
42479 ac_res=`eval echo '${'$as_ac_var'}'`
42480                { echo "$as_me:$LINENO: result: $ac_res" >&5
42481 echo "${ECHO_T}$ac_res" >&6; }
42482 if test `eval echo '${'$as_ac_var'}'` = yes; then
42483   cat >>confdefs.h <<_ACEOF
42484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42485 _ACEOF
42486
42487              have_xattr=yes
42488
42489 cat >>confdefs.h <<\_ACEOF
42490 #define HAVE_EXTATTR_GET_FILE 1
42491 _ACEOF
42492
42493
42494 cat >>confdefs.h <<\_ACEOF
42495 #define HAVE_EXTATTR_SET_FILE 1
42496 _ACEOF
42497
42498
42499 cat >>confdefs.h <<\_ACEOF
42500 #define HAVE_EXTATTR_LIST_FILE 1
42501 _ACEOF
42502
42503
42504
42505 fi
42506 done
42507
42508    fi
42509
42510    if test $have_xattr = yes; then
42511       have_extattr_string_in_libc=no
42512
42513
42514 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
42515 do
42516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42520   echo $ECHO_N "(cached) $ECHO_C" >&6
42521 else
42522   cat >conftest.$ac_ext <<_ACEOF
42523 /* confdefs.h.  */
42524 _ACEOF
42525 cat confdefs.h >>conftest.$ac_ext
42526 cat >>conftest.$ac_ext <<_ACEOF
42527 /* end confdefs.h.  */
42528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42530 #define $ac_func innocuous_$ac_func
42531
42532 /* System header to define __stub macros and hopefully few prototypes,
42533     which can conflict with char $ac_func (); below.
42534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42535     <limits.h> exists even on freestanding compilers.  */
42536
42537 #ifdef __STDC__
42538 # include <limits.h>
42539 #else
42540 # include <assert.h>
42541 #endif
42542
42543 #undef $ac_func
42544
42545 /* Override any GCC internal prototype to avoid an error.
42546    Use char because int might match the return type of a GCC
42547    builtin and then its argument prototype would still apply.  */
42548 #ifdef __cplusplus
42549 extern "C"
42550 #endif
42551 char $ac_func ();
42552 /* The GNU C library defines this for functions which it implements
42553     to always fail with ENOSYS.  Some functions are actually named
42554     something starting with __ and the normal name is an alias.  */
42555 #if defined __stub_$ac_func || defined __stub___$ac_func
42556 choke me
42557 #endif
42558
42559 int
42560 main ()
42561 {
42562 return $ac_func ();
42563   ;
42564   return 0;
42565 }
42566 _ACEOF
42567 rm -f conftest.$ac_objext conftest$ac_exeext
42568 if { (ac_try="$ac_link"
42569 case "(($ac_try" in
42570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42571   *) ac_try_echo=$ac_try;;
42572 esac
42573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42574   (eval "$ac_link") 2>conftest.er1
42575   ac_status=$?
42576   grep -v '^ *+' conftest.er1 >conftest.err
42577   rm -f conftest.er1
42578   cat conftest.err >&5
42579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42580   (exit $ac_status); } && {
42581          test -z "$ac_c_werror_flag" ||
42582          test ! -s conftest.err
42583        } && test -s conftest$ac_exeext &&
42584        $as_test_x conftest$ac_exeext; then
42585   eval "$as_ac_var=yes"
42586 else
42587   echo "$as_me: failed program was:" >&5
42588 sed 's/^/| /' conftest.$ac_ext >&5
42589
42590         eval "$as_ac_var=no"
42591 fi
42592
42593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42594       conftest$ac_exeext conftest.$ac_ext
42595 fi
42596 ac_res=`eval echo '${'$as_ac_var'}'`
42597                { echo "$as_me:$LINENO: result: $ac_res" >&5
42598 echo "${ECHO_T}$ac_res" >&6; }
42599 if test `eval echo '${'$as_ac_var'}'` = yes; then
42600   cat >>confdefs.h <<_ACEOF
42601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42602 _ACEOF
42603
42604              have_extattr_string_in_libc=yes
42605
42606 cat >>confdefs.h <<\_ACEOF
42607 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42608 _ACEOF
42609
42610
42611 cat >>confdefs.h <<\_ACEOF
42612 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42613 _ACEOF
42614
42615
42616
42617 fi
42618 done
42619
42620
42621                         if test $have_extattr_string_in_libc = no; then
42622          { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42623 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42624 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42625   echo $ECHO_N "(cached) $ECHO_C" >&6
42626 else
42627   ac_check_lib_save_LIBS=$LIBS
42628 LIBS="-lutil  $LIBS"
42629 cat >conftest.$ac_ext <<_ACEOF
42630 /* confdefs.h.  */
42631 _ACEOF
42632 cat confdefs.h >>conftest.$ac_ext
42633 cat >>conftest.$ac_ext <<_ACEOF
42634 /* end confdefs.h.  */
42635
42636 /* Override any GCC internal prototype to avoid an error.
42637    Use char because int might match the return type of a GCC
42638    builtin and then its argument prototype would still apply.  */
42639 #ifdef __cplusplus
42640 extern "C"
42641 #endif
42642 char extattr_namespace_to_string extattr_string_to_namespace ();
42643 int
42644 main ()
42645 {
42646 return extattr_namespace_to_string extattr_string_to_namespace ();
42647   ;
42648   return 0;
42649 }
42650 _ACEOF
42651 rm -f conftest.$ac_objext conftest$ac_exeext
42652 if { (ac_try="$ac_link"
42653 case "(($ac_try" in
42654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42655   *) ac_try_echo=$ac_try;;
42656 esac
42657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42658   (eval "$ac_link") 2>conftest.er1
42659   ac_status=$?
42660   grep -v '^ *+' conftest.er1 >conftest.err
42661   rm -f conftest.er1
42662   cat conftest.err >&5
42663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42664   (exit $ac_status); } && {
42665          test -z "$ac_c_werror_flag" ||
42666          test ! -s conftest.err
42667        } && test -s conftest$ac_exeext &&
42668        $as_test_x conftest$ac_exeext; then
42669   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42670 else
42671   echo "$as_me: failed program was:" >&5
42672 sed 's/^/| /' conftest.$ac_ext >&5
42673
42674         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42675 fi
42676
42677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42678       conftest$ac_exeext conftest.$ac_ext
42679 LIBS=$ac_check_lib_save_LIBS
42680 fi
42681 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42682 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42683 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42684
42685
42686 cat >>confdefs.h <<\_ACEOF
42687 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42688 _ACEOF
42689
42690
42691 cat >>confdefs.h <<\_ACEOF
42692 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42693 _ACEOF
42694
42695                 FDLIBS="-lutil $FDLIBS"
42696
42697
42698 fi
42699
42700       fi
42701    fi
42702
42703             if test $have_xattr = no; then
42704       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42705   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42706 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42707 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42708   echo $ECHO_N "(cached) $ECHO_C" >&6
42709 fi
42710 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42711 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42712 else
42713   # Is the header compilable?
42714 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42715 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42716 cat >conftest.$ac_ext <<_ACEOF
42717 /* confdefs.h.  */
42718 _ACEOF
42719 cat confdefs.h >>conftest.$ac_ext
42720 cat >>conftest.$ac_ext <<_ACEOF
42721 /* end confdefs.h.  */
42722 $ac_includes_default
42723 #include <sys/xattr.h>
42724 _ACEOF
42725 rm -f conftest.$ac_objext
42726 if { (ac_try="$ac_compile"
42727 case "(($ac_try" in
42728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42729   *) ac_try_echo=$ac_try;;
42730 esac
42731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42732   (eval "$ac_compile") 2>conftest.er1
42733   ac_status=$?
42734   grep -v '^ *+' conftest.er1 >conftest.err
42735   rm -f conftest.er1
42736   cat conftest.err >&5
42737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42738   (exit $ac_status); } && {
42739          test -z "$ac_c_werror_flag" ||
42740          test ! -s conftest.err
42741        } && test -s conftest.$ac_objext; then
42742   ac_header_compiler=yes
42743 else
42744   echo "$as_me: failed program was:" >&5
42745 sed 's/^/| /' conftest.$ac_ext >&5
42746
42747         ac_header_compiler=no
42748 fi
42749
42750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42752 echo "${ECHO_T}$ac_header_compiler" >&6; }
42753
42754 # Is the header present?
42755 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42756 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42757 cat >conftest.$ac_ext <<_ACEOF
42758 /* confdefs.h.  */
42759 _ACEOF
42760 cat confdefs.h >>conftest.$ac_ext
42761 cat >>conftest.$ac_ext <<_ACEOF
42762 /* end confdefs.h.  */
42763 #include <sys/xattr.h>
42764 _ACEOF
42765 if { (ac_try="$ac_cpp conftest.$ac_ext"
42766 case "(($ac_try" in
42767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42768   *) ac_try_echo=$ac_try;;
42769 esac
42770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42772   ac_status=$?
42773   grep -v '^ *+' conftest.er1 >conftest.err
42774   rm -f conftest.er1
42775   cat conftest.err >&5
42776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42777   (exit $ac_status); } >/dev/null && {
42778          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42779          test ! -s conftest.err
42780        }; then
42781   ac_header_preproc=yes
42782 else
42783   echo "$as_me: failed program was:" >&5
42784 sed 's/^/| /' conftest.$ac_ext >&5
42785
42786   ac_header_preproc=no
42787 fi
42788
42789 rm -f conftest.err conftest.$ac_ext
42790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42791 echo "${ECHO_T}$ac_header_preproc" >&6; }
42792
42793 # So?  What about this header?
42794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42795   yes:no: )
42796     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42797 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42798     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42799 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42800     ac_header_preproc=yes
42801     ;;
42802   no:yes:* )
42803     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42804 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42805     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
42806 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
42807     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42808 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42809     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
42810 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42811     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42812 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42813     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42814 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42815
42816     ;;
42817 esac
42818 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42819 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42820 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42821   echo $ECHO_N "(cached) $ECHO_C" >&6
42822 else
42823   ac_cv_header_sys_xattr_h=$ac_header_preproc
42824 fi
42825 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42826 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42827
42828 fi
42829 if test $ac_cv_header_sys_xattr_h = yes; then
42830
42831 cat >>confdefs.h <<\_ACEOF
42832 #define HAVE_SYS_XATTR_H 1
42833 _ACEOF
42834
42835 fi
42836
42837
42838
42839
42840
42841 for ac_func in llistxattr lgetxattr lsetxattr
42842 do
42843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42847   echo $ECHO_N "(cached) $ECHO_C" >&6
42848 else
42849   cat >conftest.$ac_ext <<_ACEOF
42850 /* confdefs.h.  */
42851 _ACEOF
42852 cat confdefs.h >>conftest.$ac_ext
42853 cat >>conftest.$ac_ext <<_ACEOF
42854 /* end confdefs.h.  */
42855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42857 #define $ac_func innocuous_$ac_func
42858
42859 /* System header to define __stub macros and hopefully few prototypes,
42860     which can conflict with char $ac_func (); below.
42861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42862     <limits.h> exists even on freestanding compilers.  */
42863
42864 #ifdef __STDC__
42865 # include <limits.h>
42866 #else
42867 # include <assert.h>
42868 #endif
42869
42870 #undef $ac_func
42871
42872 /* Override any GCC internal prototype to avoid an error.
42873    Use char because int might match the return type of a GCC
42874    builtin and then its argument prototype would still apply.  */
42875 #ifdef __cplusplus
42876 extern "C"
42877 #endif
42878 char $ac_func ();
42879 /* The GNU C library defines this for functions which it implements
42880     to always fail with ENOSYS.  Some functions are actually named
42881     something starting with __ and the normal name is an alias.  */
42882 #if defined __stub_$ac_func || defined __stub___$ac_func
42883 choke me
42884 #endif
42885
42886 int
42887 main ()
42888 {
42889 return $ac_func ();
42890   ;
42891   return 0;
42892 }
42893 _ACEOF
42894 rm -f conftest.$ac_objext conftest$ac_exeext
42895 if { (ac_try="$ac_link"
42896 case "(($ac_try" in
42897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42898   *) ac_try_echo=$ac_try;;
42899 esac
42900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42901   (eval "$ac_link") 2>conftest.er1
42902   ac_status=$?
42903   grep -v '^ *+' conftest.er1 >conftest.err
42904   rm -f conftest.er1
42905   cat conftest.err >&5
42906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42907   (exit $ac_status); } && {
42908          test -z "$ac_c_werror_flag" ||
42909          test ! -s conftest.err
42910        } && test -s conftest$ac_exeext &&
42911        $as_test_x conftest$ac_exeext; then
42912   eval "$as_ac_var=yes"
42913 else
42914   echo "$as_me: failed program was:" >&5
42915 sed 's/^/| /' conftest.$ac_ext >&5
42916
42917         eval "$as_ac_var=no"
42918 fi
42919
42920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42921       conftest$ac_exeext conftest.$ac_ext
42922 fi
42923 ac_res=`eval echo '${'$as_ac_var'}'`
42924                { echo "$as_me:$LINENO: result: $ac_res" >&5
42925 echo "${ECHO_T}$ac_res" >&6; }
42926 if test `eval echo '${'$as_ac_var'}'` = yes; then
42927   cat >>confdefs.h <<_ACEOF
42928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42929 _ACEOF
42930
42931              have_xattr=yes
42932
42933 cat >>confdefs.h <<\_ACEOF
42934 #define HAVE_LLISTXATTR 1
42935 _ACEOF
42936
42937
42938 cat >>confdefs.h <<\_ACEOF
42939 #define HAVE_LGETXATTR 1
42940 _ACEOF
42941
42942
42943 cat >>confdefs.h <<\_ACEOF
42944 #define HAVE_LSETXATTR 1
42945 _ACEOF
42946
42947
42948
42949 fi
42950 done
42951
42952
42953       if test $have_xattr = no; then
42954
42955
42956
42957 for ac_func in listxattr getxattr setxattr
42958 do
42959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42963   echo $ECHO_N "(cached) $ECHO_C" >&6
42964 else
42965   cat >conftest.$ac_ext <<_ACEOF
42966 /* confdefs.h.  */
42967 _ACEOF
42968 cat confdefs.h >>conftest.$ac_ext
42969 cat >>conftest.$ac_ext <<_ACEOF
42970 /* end confdefs.h.  */
42971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42973 #define $ac_func innocuous_$ac_func
42974
42975 /* System header to define __stub macros and hopefully few prototypes,
42976     which can conflict with char $ac_func (); below.
42977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42978     <limits.h> exists even on freestanding compilers.  */
42979
42980 #ifdef __STDC__
42981 # include <limits.h>
42982 #else
42983 # include <assert.h>
42984 #endif
42985
42986 #undef $ac_func
42987
42988 /* Override any GCC internal prototype to avoid an error.
42989    Use char because int might match the return type of a GCC
42990    builtin and then its argument prototype would still apply.  */
42991 #ifdef __cplusplus
42992 extern "C"
42993 #endif
42994 char $ac_func ();
42995 /* The GNU C library defines this for functions which it implements
42996     to always fail with ENOSYS.  Some functions are actually named
42997     something starting with __ and the normal name is an alias.  */
42998 #if defined __stub_$ac_func || defined __stub___$ac_func
42999 choke me
43000 #endif
43001
43002 int
43003 main ()
43004 {
43005 return $ac_func ();
43006   ;
43007   return 0;
43008 }
43009 _ACEOF
43010 rm -f conftest.$ac_objext conftest$ac_exeext
43011 if { (ac_try="$ac_link"
43012 case "(($ac_try" in
43013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43014   *) ac_try_echo=$ac_try;;
43015 esac
43016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43017   (eval "$ac_link") 2>conftest.er1
43018   ac_status=$?
43019   grep -v '^ *+' conftest.er1 >conftest.err
43020   rm -f conftest.er1
43021   cat conftest.err >&5
43022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43023   (exit $ac_status); } && {
43024          test -z "$ac_c_werror_flag" ||
43025          test ! -s conftest.err
43026        } && test -s conftest$ac_exeext &&
43027        $as_test_x conftest$ac_exeext; then
43028   eval "$as_ac_var=yes"
43029 else
43030   echo "$as_me: failed program was:" >&5
43031 sed 's/^/| /' conftest.$ac_ext >&5
43032
43033         eval "$as_ac_var=no"
43034 fi
43035
43036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43037       conftest$ac_exeext conftest.$ac_ext
43038 fi
43039 ac_res=`eval echo '${'$as_ac_var'}'`
43040                { echo "$as_me:$LINENO: result: $ac_res" >&5
43041 echo "${ECHO_T}$ac_res" >&6; }
43042 if test `eval echo '${'$as_ac_var'}'` = yes; then
43043   cat >>confdefs.h <<_ACEOF
43044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43045 _ACEOF
43046
43047                 have_xattr=yes
43048
43049 cat >>confdefs.h <<\_ACEOF
43050 #define HAVE_LISTXATTR 1
43051 _ACEOF
43052
43053
43054 cat >>confdefs.h <<\_ACEOF
43055 #define HAVE_GETXATTR 1
43056 _ACEOF
43057
43058
43059 cat >>confdefs.h <<\_ACEOF
43060 #define HAVE_SETXATTR 1
43061 _ACEOF
43062
43063
43064
43065 fi
43066 done
43067
43068       fi
43069    fi
43070
43071             if test $have_xattr = no; then
43072       if test "${ac_cv_header_sys_attr_h+set}" = set; then
43073   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
43074 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
43075 if test "${ac_cv_header_sys_attr_h+set}" = set; then
43076   echo $ECHO_N "(cached) $ECHO_C" >&6
43077 fi
43078 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
43079 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
43080 else
43081   # Is the header compilable?
43082 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
43083 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
43084 cat >conftest.$ac_ext <<_ACEOF
43085 /* confdefs.h.  */
43086 _ACEOF
43087 cat confdefs.h >>conftest.$ac_ext
43088 cat >>conftest.$ac_ext <<_ACEOF
43089 /* end confdefs.h.  */
43090 $ac_includes_default
43091 #include <sys/attr.h>
43092 _ACEOF
43093 rm -f conftest.$ac_objext
43094 if { (ac_try="$ac_compile"
43095 case "(($ac_try" in
43096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43097   *) ac_try_echo=$ac_try;;
43098 esac
43099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43100   (eval "$ac_compile") 2>conftest.er1
43101   ac_status=$?
43102   grep -v '^ *+' conftest.er1 >conftest.err
43103   rm -f conftest.er1
43104   cat conftest.err >&5
43105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43106   (exit $ac_status); } && {
43107          test -z "$ac_c_werror_flag" ||
43108          test ! -s conftest.err
43109        } && test -s conftest.$ac_objext; then
43110   ac_header_compiler=yes
43111 else
43112   echo "$as_me: failed program was:" >&5
43113 sed 's/^/| /' conftest.$ac_ext >&5
43114
43115         ac_header_compiler=no
43116 fi
43117
43118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43120 echo "${ECHO_T}$ac_header_compiler" >&6; }
43121
43122 # Is the header present?
43123 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
43124 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
43125 cat >conftest.$ac_ext <<_ACEOF
43126 /* confdefs.h.  */
43127 _ACEOF
43128 cat confdefs.h >>conftest.$ac_ext
43129 cat >>conftest.$ac_ext <<_ACEOF
43130 /* end confdefs.h.  */
43131 #include <sys/attr.h>
43132 _ACEOF
43133 if { (ac_try="$ac_cpp conftest.$ac_ext"
43134 case "(($ac_try" in
43135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43136   *) ac_try_echo=$ac_try;;
43137 esac
43138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43140   ac_status=$?
43141   grep -v '^ *+' conftest.er1 >conftest.err
43142   rm -f conftest.er1
43143   cat conftest.err >&5
43144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43145   (exit $ac_status); } >/dev/null && {
43146          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43147          test ! -s conftest.err
43148        }; then
43149   ac_header_preproc=yes
43150 else
43151   echo "$as_me: failed program was:" >&5
43152 sed 's/^/| /' conftest.$ac_ext >&5
43153
43154   ac_header_preproc=no
43155 fi
43156
43157 rm -f conftest.err conftest.$ac_ext
43158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43159 echo "${ECHO_T}$ac_header_preproc" >&6; }
43160
43161 # So?  What about this header?
43162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43163   yes:no: )
43164     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43165 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43166     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
43167 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
43168     ac_header_preproc=yes
43169     ;;
43170   no:yes:* )
43171     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
43172 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
43173     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
43174 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
43175     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
43176 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
43177     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
43178 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43179     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
43180 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
43181     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
43182 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
43183
43184     ;;
43185 esac
43186 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
43187 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
43188 if test "${ac_cv_header_sys_attr_h+set}" = set; then
43189   echo $ECHO_N "(cached) $ECHO_C" >&6
43190 else
43191   ac_cv_header_sys_attr_h=$ac_header_preproc
43192 fi
43193 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
43194 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
43195
43196 fi
43197 if test $ac_cv_header_sys_attr_h = yes; then
43198
43199 cat >>confdefs.h <<\_ACEOF
43200 #define HAVE_SYS_ATTR_H 1
43201 _ACEOF
43202
43203 fi
43204
43205
43206       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
43207   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
43208 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
43209 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
43210   echo $ECHO_N "(cached) $ECHO_C" >&6
43211 fi
43212 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
43213 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
43214 else
43215   # Is the header compilable?
43216 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
43217 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
43218 cat >conftest.$ac_ext <<_ACEOF
43219 /* confdefs.h.  */
43220 _ACEOF
43221 cat confdefs.h >>conftest.$ac_ext
43222 cat >>conftest.$ac_ext <<_ACEOF
43223 /* end confdefs.h.  */
43224 $ac_includes_default
43225 #include <sys/nvpair.h>
43226 _ACEOF
43227 rm -f conftest.$ac_objext
43228 if { (ac_try="$ac_compile"
43229 case "(($ac_try" in
43230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43231   *) ac_try_echo=$ac_try;;
43232 esac
43233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43234   (eval "$ac_compile") 2>conftest.er1
43235   ac_status=$?
43236   grep -v '^ *+' conftest.er1 >conftest.err
43237   rm -f conftest.er1
43238   cat conftest.err >&5
43239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43240   (exit $ac_status); } && {
43241          test -z "$ac_c_werror_flag" ||
43242          test ! -s conftest.err
43243        } && test -s conftest.$ac_objext; then
43244   ac_header_compiler=yes
43245 else
43246   echo "$as_me: failed program was:" >&5
43247 sed 's/^/| /' conftest.$ac_ext >&5
43248
43249         ac_header_compiler=no
43250 fi
43251
43252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43254 echo "${ECHO_T}$ac_header_compiler" >&6; }
43255
43256 # Is the header present?
43257 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
43258 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
43259 cat >conftest.$ac_ext <<_ACEOF
43260 /* confdefs.h.  */
43261 _ACEOF
43262 cat confdefs.h >>conftest.$ac_ext
43263 cat >>conftest.$ac_ext <<_ACEOF
43264 /* end confdefs.h.  */
43265 #include <sys/nvpair.h>
43266 _ACEOF
43267 if { (ac_try="$ac_cpp conftest.$ac_ext"
43268 case "(($ac_try" in
43269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43270   *) ac_try_echo=$ac_try;;
43271 esac
43272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43273   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43274   ac_status=$?
43275   grep -v '^ *+' conftest.er1 >conftest.err
43276   rm -f conftest.er1
43277   cat conftest.err >&5
43278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43279   (exit $ac_status); } >/dev/null && {
43280          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43281          test ! -s conftest.err
43282        }; then
43283   ac_header_preproc=yes
43284 else
43285   echo "$as_me: failed program was:" >&5
43286 sed 's/^/| /' conftest.$ac_ext >&5
43287
43288   ac_header_preproc=no
43289 fi
43290
43291 rm -f conftest.err conftest.$ac_ext
43292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43293 echo "${ECHO_T}$ac_header_preproc" >&6; }
43294
43295 # So?  What about this header?
43296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43297   yes:no: )
43298     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
43299 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43300     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
43301 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
43302     ac_header_preproc=yes
43303     ;;
43304   no:yes:* )
43305     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
43306 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
43307     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
43308 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
43309     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
43310 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
43311     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
43312 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43313     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
43314 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
43315     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
43316 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
43317
43318     ;;
43319 esac
43320 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
43321 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
43322 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
43323   echo $ECHO_N "(cached) $ECHO_C" >&6
43324 else
43325   ac_cv_header_sys_nvpair_h=$ac_header_preproc
43326 fi
43327 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
43328 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
43329
43330 fi
43331 if test $ac_cv_header_sys_nvpair_h = yes; then
43332
43333 cat >>confdefs.h <<\_ACEOF
43334 #define HAVE_SYS_NVPAIR_H 1
43335 _ACEOF
43336
43337 fi
43338
43339
43340       if test "${ac_cv_header_attr_h+set}" = set; then
43341   { echo "$as_me:$LINENO: checking for attr.h" >&5
43342 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
43343 if test "${ac_cv_header_attr_h+set}" = set; then
43344   echo $ECHO_N "(cached) $ECHO_C" >&6
43345 fi
43346 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
43347 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
43348 else
43349   # Is the header compilable?
43350 { echo "$as_me:$LINENO: checking attr.h usability" >&5
43351 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
43352 cat >conftest.$ac_ext <<_ACEOF
43353 /* confdefs.h.  */
43354 _ACEOF
43355 cat confdefs.h >>conftest.$ac_ext
43356 cat >>conftest.$ac_ext <<_ACEOF
43357 /* end confdefs.h.  */
43358 $ac_includes_default
43359 #include <attr.h>
43360 _ACEOF
43361 rm -f conftest.$ac_objext
43362 if { (ac_try="$ac_compile"
43363 case "(($ac_try" in
43364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43365   *) ac_try_echo=$ac_try;;
43366 esac
43367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43368   (eval "$ac_compile") 2>conftest.er1
43369   ac_status=$?
43370   grep -v '^ *+' conftest.er1 >conftest.err
43371   rm -f conftest.er1
43372   cat conftest.err >&5
43373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43374   (exit $ac_status); } && {
43375          test -z "$ac_c_werror_flag" ||
43376          test ! -s conftest.err
43377        } && test -s conftest.$ac_objext; then
43378   ac_header_compiler=yes
43379 else
43380   echo "$as_me: failed program was:" >&5
43381 sed 's/^/| /' conftest.$ac_ext >&5
43382
43383         ac_header_compiler=no
43384 fi
43385
43386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43388 echo "${ECHO_T}$ac_header_compiler" >&6; }
43389
43390 # Is the header present?
43391 { echo "$as_me:$LINENO: checking attr.h presence" >&5
43392 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
43393 cat >conftest.$ac_ext <<_ACEOF
43394 /* confdefs.h.  */
43395 _ACEOF
43396 cat confdefs.h >>conftest.$ac_ext
43397 cat >>conftest.$ac_ext <<_ACEOF
43398 /* end confdefs.h.  */
43399 #include <attr.h>
43400 _ACEOF
43401 if { (ac_try="$ac_cpp conftest.$ac_ext"
43402 case "(($ac_try" in
43403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43404   *) ac_try_echo=$ac_try;;
43405 esac
43406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43408   ac_status=$?
43409   grep -v '^ *+' conftest.er1 >conftest.err
43410   rm -f conftest.er1
43411   cat conftest.err >&5
43412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43413   (exit $ac_status); } >/dev/null && {
43414          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43415          test ! -s conftest.err
43416        }; then
43417   ac_header_preproc=yes
43418 else
43419   echo "$as_me: failed program was:" >&5
43420 sed 's/^/| /' conftest.$ac_ext >&5
43421
43422   ac_header_preproc=no
43423 fi
43424
43425 rm -f conftest.err conftest.$ac_ext
43426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43427 echo "${ECHO_T}$ac_header_preproc" >&6; }
43428
43429 # So?  What about this header?
43430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43431   yes:no: )
43432     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
43433 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43434     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
43435 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
43436     ac_header_preproc=yes
43437     ;;
43438   no:yes:* )
43439     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
43440 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
43441     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
43442 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
43443     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
43444 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
43445     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
43446 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
43447     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
43448 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
43449     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
43450 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
43451
43452     ;;
43453 esac
43454 { echo "$as_me:$LINENO: checking for attr.h" >&5
43455 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
43456 if test "${ac_cv_header_attr_h+set}" = set; then
43457   echo $ECHO_N "(cached) $ECHO_C" >&6
43458 else
43459   ac_cv_header_attr_h=$ac_header_preproc
43460 fi
43461 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
43462 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
43463
43464 fi
43465 if test $ac_cv_header_attr_h = yes; then
43466
43467 cat >>confdefs.h <<\_ACEOF
43468 #define HAVE_ATTR_H 1
43469 _ACEOF
43470
43471 fi
43472
43473
43474
43475
43476
43477
43478
43479
43480 for ac_func in openat fstatat unlinkat fchownat futimesat
43481 do
43482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43486   echo $ECHO_N "(cached) $ECHO_C" >&6
43487 else
43488   cat >conftest.$ac_ext <<_ACEOF
43489 /* confdefs.h.  */
43490 _ACEOF
43491 cat confdefs.h >>conftest.$ac_ext
43492 cat >>conftest.$ac_ext <<_ACEOF
43493 /* end confdefs.h.  */
43494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43496 #define $ac_func innocuous_$ac_func
43497
43498 /* System header to define __stub macros and hopefully few prototypes,
43499     which can conflict with char $ac_func (); below.
43500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43501     <limits.h> exists even on freestanding compilers.  */
43502
43503 #ifdef __STDC__
43504 # include <limits.h>
43505 #else
43506 # include <assert.h>
43507 #endif
43508
43509 #undef $ac_func
43510
43511 /* Override any GCC internal prototype to avoid an error.
43512    Use char because int might match the return type of a GCC
43513    builtin and then its argument prototype would still apply.  */
43514 #ifdef __cplusplus
43515 extern "C"
43516 #endif
43517 char $ac_func ();
43518 /* The GNU C library defines this for functions which it implements
43519     to always fail with ENOSYS.  Some functions are actually named
43520     something starting with __ and the normal name is an alias.  */
43521 #if defined __stub_$ac_func || defined __stub___$ac_func
43522 choke me
43523 #endif
43524
43525 int
43526 main ()
43527 {
43528 return $ac_func ();
43529   ;
43530   return 0;
43531 }
43532 _ACEOF
43533 rm -f conftest.$ac_objext conftest$ac_exeext
43534 if { (ac_try="$ac_link"
43535 case "(($ac_try" in
43536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43537   *) ac_try_echo=$ac_try;;
43538 esac
43539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43540   (eval "$ac_link") 2>conftest.er1
43541   ac_status=$?
43542   grep -v '^ *+' conftest.er1 >conftest.err
43543   rm -f conftest.er1
43544   cat conftest.err >&5
43545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43546   (exit $ac_status); } && {
43547          test -z "$ac_c_werror_flag" ||
43548          test ! -s conftest.err
43549        } && test -s conftest$ac_exeext &&
43550        $as_test_x conftest$ac_exeext; then
43551   eval "$as_ac_var=yes"
43552 else
43553   echo "$as_me: failed program was:" >&5
43554 sed 's/^/| /' conftest.$ac_ext >&5
43555
43556         eval "$as_ac_var=no"
43557 fi
43558
43559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43560       conftest$ac_exeext conftest.$ac_ext
43561 fi
43562 ac_res=`eval echo '${'$as_ac_var'}'`
43563                { echo "$as_me:$LINENO: result: $ac_res" >&5
43564 echo "${ECHO_T}$ac_res" >&6; }
43565 if test `eval echo '${'$as_ac_var'}'` = yes; then
43566   cat >>confdefs.h <<_ACEOF
43567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43568 _ACEOF
43569
43570              have_xattr=yes
43571
43572 cat >>confdefs.h <<\_ACEOF
43573 #define HAVE_OPENAT 1
43574 _ACEOF
43575
43576
43577 cat >>confdefs.h <<\_ACEOF
43578 #define HAVE_FSTATAT 1
43579 _ACEOF
43580
43581
43582 cat >>confdefs.h <<\_ACEOF
43583 #define HAVE_UNLINKAT 1
43584 _ACEOF
43585
43586
43587 cat >>confdefs.h <<\_ACEOF
43588 #define HAVE_FCHOWNAT 1
43589 _ACEOF
43590
43591
43592 cat >>confdefs.h <<\_ACEOF
43593 #define HAVE_FUTIMESAT 1
43594 _ACEOF
43595
43596
43597
43598 fi
43599 done
43600
43601
43602       if test $have_xattr = yes; then
43603          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43604 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43605 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43606   echo $ECHO_N "(cached) $ECHO_C" >&6
43607 else
43608   ac_check_lib_save_LIBS=$LIBS
43609 LIBS="-lnvpair  $LIBS"
43610 cat >conftest.$ac_ext <<_ACEOF
43611 /* confdefs.h.  */
43612 _ACEOF
43613 cat confdefs.h >>conftest.$ac_ext
43614 cat >>conftest.$ac_ext <<_ACEOF
43615 /* end confdefs.h.  */
43616
43617 /* Override any GCC internal prototype to avoid an error.
43618    Use char because int might match the return type of a GCC
43619    builtin and then its argument prototype would still apply.  */
43620 #ifdef __cplusplus
43621 extern "C"
43622 #endif
43623 char nvlist_next_nvpair ();
43624 int
43625 main ()
43626 {
43627 return nvlist_next_nvpair ();
43628   ;
43629   return 0;
43630 }
43631 _ACEOF
43632 rm -f conftest.$ac_objext conftest$ac_exeext
43633 if { (ac_try="$ac_link"
43634 case "(($ac_try" in
43635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43636   *) ac_try_echo=$ac_try;;
43637 esac
43638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43639   (eval "$ac_link") 2>conftest.er1
43640   ac_status=$?
43641   grep -v '^ *+' conftest.er1 >conftest.err
43642   rm -f conftest.er1
43643   cat conftest.err >&5
43644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43645   (exit $ac_status); } && {
43646          test -z "$ac_c_werror_flag" ||
43647          test ! -s conftest.err
43648        } && test -s conftest$ac_exeext &&
43649        $as_test_x conftest$ac_exeext; then
43650   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43651 else
43652   echo "$as_me: failed program was:" >&5
43653 sed 's/^/| /' conftest.$ac_ext >&5
43654
43655         ac_cv_lib_nvpair_nvlist_next_nvpair=no
43656 fi
43657
43658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43659       conftest$ac_exeext conftest.$ac_ext
43660 LIBS=$ac_check_lib_save_LIBS
43661 fi
43662 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43663 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43664 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43665
43666
43667 cat >>confdefs.h <<\_ACEOF
43668 #define HAVE_NVLIST_NEXT_NVPAIR 1
43669 _ACEOF
43670
43671                 FDLIBS="-lnvpair $FDLIBS"
43672
43673
43674 fi
43675
43676       fi
43677    fi
43678
43679    if test x$support_xattr = xyes -a $have_xattr != yes; then
43680       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43681   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43682 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43683   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43684    { (exit 1); exit 1; }; }
43685    else
43686       if test $have_xattr = yes; then
43687
43688 cat >>confdefs.h <<\_ACEOF
43689 #define HAVE_XATTR 1
43690 _ACEOF
43691
43692       fi
43693    fi
43694 fi
43695
43696 PTHREAD_LIB=""
43697 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43698 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43699 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43700   echo $ECHO_N "(cached) $ECHO_C" >&6
43701 else
43702   ac_check_lib_save_LIBS=$LIBS
43703 LIBS="-lpthread  $LIBS"
43704 cat >conftest.$ac_ext <<_ACEOF
43705 /* confdefs.h.  */
43706 _ACEOF
43707 cat confdefs.h >>conftest.$ac_ext
43708 cat >>conftest.$ac_ext <<_ACEOF
43709 /* end confdefs.h.  */
43710
43711 /* Override any GCC internal prototype to avoid an error.
43712    Use char because int might match the return type of a GCC
43713    builtin and then its argument prototype would still apply.  */
43714 #ifdef __cplusplus
43715 extern "C"
43716 #endif
43717 char pthread_create ();
43718 int
43719 main ()
43720 {
43721 return pthread_create ();
43722   ;
43723   return 0;
43724 }
43725 _ACEOF
43726 rm -f conftest.$ac_objext conftest$ac_exeext
43727 if { (ac_try="$ac_link"
43728 case "(($ac_try" in
43729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43730   *) ac_try_echo=$ac_try;;
43731 esac
43732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43733   (eval "$ac_link") 2>conftest.er1
43734   ac_status=$?
43735   grep -v '^ *+' conftest.er1 >conftest.err
43736   rm -f conftest.er1
43737   cat conftest.err >&5
43738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43739   (exit $ac_status); } && {
43740          test -z "$ac_c_werror_flag" ||
43741          test ! -s conftest.err
43742        } && test -s conftest$ac_exeext &&
43743        $as_test_x conftest$ac_exeext; then
43744   ac_cv_lib_pthread_pthread_create=yes
43745 else
43746   echo "$as_me: failed program was:" >&5
43747 sed 's/^/| /' conftest.$ac_ext >&5
43748
43749         ac_cv_lib_pthread_pthread_create=no
43750 fi
43751
43752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43753       conftest$ac_exeext conftest.$ac_ext
43754 LIBS=$ac_check_lib_save_LIBS
43755 fi
43756 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43757 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43758 if test $ac_cv_lib_pthread_pthread_create = yes; then
43759   PTHREAD_LIB="-lpthread"
43760 else
43761
43762        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43763 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43764 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43765   echo $ECHO_N "(cached) $ECHO_C" >&6
43766 else
43767   ac_check_lib_save_LIBS=$LIBS
43768 LIBS="-lpthreads  $LIBS"
43769 cat >conftest.$ac_ext <<_ACEOF
43770 /* confdefs.h.  */
43771 _ACEOF
43772 cat confdefs.h >>conftest.$ac_ext
43773 cat >>conftest.$ac_ext <<_ACEOF
43774 /* end confdefs.h.  */
43775
43776 /* Override any GCC internal prototype to avoid an error.
43777    Use char because int might match the return type of a GCC
43778    builtin and then its argument prototype would still apply.  */
43779 #ifdef __cplusplus
43780 extern "C"
43781 #endif
43782 char pthread_create ();
43783 int
43784 main ()
43785 {
43786 return pthread_create ();
43787   ;
43788   return 0;
43789 }
43790 _ACEOF
43791 rm -f conftest.$ac_objext conftest$ac_exeext
43792 if { (ac_try="$ac_link"
43793 case "(($ac_try" in
43794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43795   *) ac_try_echo=$ac_try;;
43796 esac
43797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43798   (eval "$ac_link") 2>conftest.er1
43799   ac_status=$?
43800   grep -v '^ *+' conftest.er1 >conftest.err
43801   rm -f conftest.er1
43802   cat conftest.err >&5
43803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43804   (exit $ac_status); } && {
43805          test -z "$ac_c_werror_flag" ||
43806          test ! -s conftest.err
43807        } && test -s conftest$ac_exeext &&
43808        $as_test_x conftest$ac_exeext; then
43809   ac_cv_lib_pthreads_pthread_create=yes
43810 else
43811   echo "$as_me: failed program was:" >&5
43812 sed 's/^/| /' conftest.$ac_ext >&5
43813
43814         ac_cv_lib_pthreads_pthread_create=no
43815 fi
43816
43817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43818       conftest$ac_exeext conftest.$ac_ext
43819 LIBS=$ac_check_lib_save_LIBS
43820 fi
43821 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43822 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43823 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43824   PTHREAD_LIB="-lpthreads"
43825 else
43826
43827               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43828 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43829 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43830   echo $ECHO_N "(cached) $ECHO_C" >&6
43831 else
43832   ac_check_lib_save_LIBS=$LIBS
43833 LIBS="-lc_r  $LIBS"
43834 cat >conftest.$ac_ext <<_ACEOF
43835 /* confdefs.h.  */
43836 _ACEOF
43837 cat confdefs.h >>conftest.$ac_ext
43838 cat >>conftest.$ac_ext <<_ACEOF
43839 /* end confdefs.h.  */
43840
43841 /* Override any GCC internal prototype to avoid an error.
43842    Use char because int might match the return type of a GCC
43843    builtin and then its argument prototype would still apply.  */
43844 #ifdef __cplusplus
43845 extern "C"
43846 #endif
43847 char pthread_create ();
43848 int
43849 main ()
43850 {
43851 return pthread_create ();
43852   ;
43853   return 0;
43854 }
43855 _ACEOF
43856 rm -f conftest.$ac_objext conftest$ac_exeext
43857 if { (ac_try="$ac_link"
43858 case "(($ac_try" in
43859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43860   *) ac_try_echo=$ac_try;;
43861 esac
43862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43863   (eval "$ac_link") 2>conftest.er1
43864   ac_status=$?
43865   grep -v '^ *+' conftest.er1 >conftest.err
43866   rm -f conftest.er1
43867   cat conftest.err >&5
43868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43869   (exit $ac_status); } && {
43870          test -z "$ac_c_werror_flag" ||
43871          test ! -s conftest.err
43872        } && test -s conftest$ac_exeext &&
43873        $as_test_x conftest$ac_exeext; then
43874   ac_cv_lib_c_r_pthread_create=yes
43875 else
43876   echo "$as_me: failed program was:" >&5
43877 sed 's/^/| /' conftest.$ac_ext >&5
43878
43879         ac_cv_lib_c_r_pthread_create=no
43880 fi
43881
43882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43883       conftest$ac_exeext conftest.$ac_ext
43884 LIBS=$ac_check_lib_save_LIBS
43885 fi
43886 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43887 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43888 if test $ac_cv_lib_c_r_pthread_create = yes; then
43889   PTHREAD_LIB="-lc_r"
43890 else
43891
43892                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
43893 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43894 if test "${ac_cv_func_pthread_create+set}" = set; then
43895   echo $ECHO_N "(cached) $ECHO_C" >&6
43896 else
43897   cat >conftest.$ac_ext <<_ACEOF
43898 /* confdefs.h.  */
43899 _ACEOF
43900 cat confdefs.h >>conftest.$ac_ext
43901 cat >>conftest.$ac_ext <<_ACEOF
43902 /* end confdefs.h.  */
43903 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43905 #define pthread_create innocuous_pthread_create
43906
43907 /* System header to define __stub macros and hopefully few prototypes,
43908     which can conflict with char pthread_create (); below.
43909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43910     <limits.h> exists even on freestanding compilers.  */
43911
43912 #ifdef __STDC__
43913 # include <limits.h>
43914 #else
43915 # include <assert.h>
43916 #endif
43917
43918 #undef pthread_create
43919
43920 /* Override any GCC internal prototype to avoid an error.
43921    Use char because int might match the return type of a GCC
43922    builtin and then its argument prototype would still apply.  */
43923 #ifdef __cplusplus
43924 extern "C"
43925 #endif
43926 char pthread_create ();
43927 /* The GNU C library defines this for functions which it implements
43928     to always fail with ENOSYS.  Some functions are actually named
43929     something starting with __ and the normal name is an alias.  */
43930 #if defined __stub_pthread_create || defined __stub___pthread_create
43931 choke me
43932 #endif
43933
43934 int
43935 main ()
43936 {
43937 return pthread_create ();
43938   ;
43939   return 0;
43940 }
43941 _ACEOF
43942 rm -f conftest.$ac_objext conftest$ac_exeext
43943 if { (ac_try="$ac_link"
43944 case "(($ac_try" in
43945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43946   *) ac_try_echo=$ac_try;;
43947 esac
43948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43949   (eval "$ac_link") 2>conftest.er1
43950   ac_status=$?
43951   grep -v '^ *+' conftest.er1 >conftest.err
43952   rm -f conftest.er1
43953   cat conftest.err >&5
43954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43955   (exit $ac_status); } && {
43956          test -z "$ac_c_werror_flag" ||
43957          test ! -s conftest.err
43958        } && test -s conftest$ac_exeext &&
43959        $as_test_x conftest$ac_exeext; then
43960   ac_cv_func_pthread_create=yes
43961 else
43962   echo "$as_me: failed program was:" >&5
43963 sed 's/^/| /' conftest.$ac_ext >&5
43964
43965         ac_cv_func_pthread_create=no
43966 fi
43967
43968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43969       conftest$ac_exeext conftest.$ac_ext
43970 fi
43971 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43972 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43973
43974
43975
43976 fi
43977
43978
43979
43980 fi
43981
43982
43983
43984 fi
43985
43986
43987
43988
43989 for ac_header in sys/prctl.h sys/capability.h
43990 do
43991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43993   { echo "$as_me:$LINENO: checking for $ac_header" >&5
43994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43996   echo $ECHO_N "(cached) $ECHO_C" >&6
43997 fi
43998 ac_res=`eval echo '${'$as_ac_Header'}'`
43999                { echo "$as_me:$LINENO: result: $ac_res" >&5
44000 echo "${ECHO_T}$ac_res" >&6; }
44001 else
44002   # Is the header compilable?
44003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
44004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
44005 cat >conftest.$ac_ext <<_ACEOF
44006 /* confdefs.h.  */
44007 _ACEOF
44008 cat confdefs.h >>conftest.$ac_ext
44009 cat >>conftest.$ac_ext <<_ACEOF
44010 /* end confdefs.h.  */
44011 $ac_includes_default
44012 #include <$ac_header>
44013 _ACEOF
44014 rm -f conftest.$ac_objext
44015 if { (ac_try="$ac_compile"
44016 case "(($ac_try" in
44017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44018   *) ac_try_echo=$ac_try;;
44019 esac
44020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44021   (eval "$ac_compile") 2>conftest.er1
44022   ac_status=$?
44023   grep -v '^ *+' conftest.er1 >conftest.err
44024   rm -f conftest.er1
44025   cat conftest.err >&5
44026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44027   (exit $ac_status); } && {
44028          test -z "$ac_c_werror_flag" ||
44029          test ! -s conftest.err
44030        } && test -s conftest.$ac_objext; then
44031   ac_header_compiler=yes
44032 else
44033   echo "$as_me: failed program was:" >&5
44034 sed 's/^/| /' conftest.$ac_ext >&5
44035
44036         ac_header_compiler=no
44037 fi
44038
44039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44041 echo "${ECHO_T}$ac_header_compiler" >&6; }
44042
44043 # Is the header present?
44044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
44045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
44046 cat >conftest.$ac_ext <<_ACEOF
44047 /* confdefs.h.  */
44048 _ACEOF
44049 cat confdefs.h >>conftest.$ac_ext
44050 cat >>conftest.$ac_ext <<_ACEOF
44051 /* end confdefs.h.  */
44052 #include <$ac_header>
44053 _ACEOF
44054 if { (ac_try="$ac_cpp conftest.$ac_ext"
44055 case "(($ac_try" in
44056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44057   *) ac_try_echo=$ac_try;;
44058 esac
44059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44061   ac_status=$?
44062   grep -v '^ *+' conftest.er1 >conftest.err
44063   rm -f conftest.er1
44064   cat conftest.err >&5
44065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44066   (exit $ac_status); } >/dev/null && {
44067          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44068          test ! -s conftest.err
44069        }; then
44070   ac_header_preproc=yes
44071 else
44072   echo "$as_me: failed program was:" >&5
44073 sed 's/^/| /' conftest.$ac_ext >&5
44074
44075   ac_header_preproc=no
44076 fi
44077
44078 rm -f conftest.err conftest.$ac_ext
44079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44080 echo "${ECHO_T}$ac_header_preproc" >&6; }
44081
44082 # So?  What about this header?
44083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44084   yes:no: )
44085     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44089     ac_header_preproc=yes
44090     ;;
44091   no:yes:* )
44092     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44094     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44095 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44096     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44098     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44099 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44102     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44104
44105     ;;
44106 esac
44107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44110   echo $ECHO_N "(cached) $ECHO_C" >&6
44111 else
44112   eval "$as_ac_Header=\$ac_header_preproc"
44113 fi
44114 ac_res=`eval echo '${'$as_ac_Header'}'`
44115                { echo "$as_me:$LINENO: result: $ac_res" >&5
44116 echo "${ECHO_T}$ac_res" >&6; }
44117
44118 fi
44119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44120   cat >>confdefs.h <<_ACEOF
44121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44122 _ACEOF
44123
44124 fi
44125
44126 done
44127
44128
44129
44130 for ac_func in prctl setreuid
44131 do
44132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44136   echo $ECHO_N "(cached) $ECHO_C" >&6
44137 else
44138   cat >conftest.$ac_ext <<_ACEOF
44139 /* confdefs.h.  */
44140 _ACEOF
44141 cat confdefs.h >>conftest.$ac_ext
44142 cat >>conftest.$ac_ext <<_ACEOF
44143 /* end confdefs.h.  */
44144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44146 #define $ac_func innocuous_$ac_func
44147
44148 /* System header to define __stub macros and hopefully few prototypes,
44149     which can conflict with char $ac_func (); below.
44150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44151     <limits.h> exists even on freestanding compilers.  */
44152
44153 #ifdef __STDC__
44154 # include <limits.h>
44155 #else
44156 # include <assert.h>
44157 #endif
44158
44159 #undef $ac_func
44160
44161 /* Override any GCC internal prototype to avoid an error.
44162    Use char because int might match the return type of a GCC
44163    builtin and then its argument prototype would still apply.  */
44164 #ifdef __cplusplus
44165 extern "C"
44166 #endif
44167 char $ac_func ();
44168 /* The GNU C library defines this for functions which it implements
44169     to always fail with ENOSYS.  Some functions are actually named
44170     something starting with __ and the normal name is an alias.  */
44171 #if defined __stub_$ac_func || defined __stub___$ac_func
44172 choke me
44173 #endif
44174
44175 int
44176 main ()
44177 {
44178 return $ac_func ();
44179   ;
44180   return 0;
44181 }
44182 _ACEOF
44183 rm -f conftest.$ac_objext conftest$ac_exeext
44184 if { (ac_try="$ac_link"
44185 case "(($ac_try" in
44186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44187   *) ac_try_echo=$ac_try;;
44188 esac
44189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44190   (eval "$ac_link") 2>conftest.er1
44191   ac_status=$?
44192   grep -v '^ *+' conftest.er1 >conftest.err
44193   rm -f conftest.er1
44194   cat conftest.err >&5
44195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44196   (exit $ac_status); } && {
44197          test -z "$ac_c_werror_flag" ||
44198          test ! -s conftest.err
44199        } && test -s conftest$ac_exeext &&
44200        $as_test_x conftest$ac_exeext; then
44201   eval "$as_ac_var=yes"
44202 else
44203   echo "$as_me: failed program was:" >&5
44204 sed 's/^/| /' conftest.$ac_ext >&5
44205
44206         eval "$as_ac_var=no"
44207 fi
44208
44209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44210       conftest$ac_exeext conftest.$ac_ext
44211 fi
44212 ac_res=`eval echo '${'$as_ac_var'}'`
44213                { echo "$as_me:$LINENO: result: $ac_res" >&5
44214 echo "${ECHO_T}$ac_res" >&6; }
44215 if test `eval echo '${'$as_ac_var'}'` = yes; then
44216   cat >>confdefs.h <<_ACEOF
44217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44218 _ACEOF
44219
44220 fi
44221 done
44222
44223 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
44224 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
44225 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
44226   echo $ECHO_N "(cached) $ECHO_C" >&6
44227 else
44228   ac_check_lib_save_LIBS=$LIBS
44229 LIBS="-lcap  $LIBS"
44230 cat >conftest.$ac_ext <<_ACEOF
44231 /* confdefs.h.  */
44232 _ACEOF
44233 cat confdefs.h >>conftest.$ac_ext
44234 cat >>conftest.$ac_ext <<_ACEOF
44235 /* end confdefs.h.  */
44236
44237 /* Override any GCC internal prototype to avoid an error.
44238    Use char because int might match the return type of a GCC
44239    builtin and then its argument prototype would still apply.  */
44240 #ifdef __cplusplus
44241 extern "C"
44242 #endif
44243 char cap_set_proc ();
44244 int
44245 main ()
44246 {
44247 return cap_set_proc ();
44248   ;
44249   return 0;
44250 }
44251 _ACEOF
44252 rm -f conftest.$ac_objext conftest$ac_exeext
44253 if { (ac_try="$ac_link"
44254 case "(($ac_try" in
44255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44256   *) ac_try_echo=$ac_try;;
44257 esac
44258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44259   (eval "$ac_link") 2>conftest.er1
44260   ac_status=$?
44261   grep -v '^ *+' conftest.er1 >conftest.err
44262   rm -f conftest.er1
44263   cat conftest.err >&5
44264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44265   (exit $ac_status); } && {
44266          test -z "$ac_c_werror_flag" ||
44267          test ! -s conftest.err
44268        } && test -s conftest$ac_exeext &&
44269        $as_test_x conftest$ac_exeext; then
44270   ac_cv_lib_cap_cap_set_proc=yes
44271 else
44272   echo "$as_me: failed program was:" >&5
44273 sed 's/^/| /' conftest.$ac_ext >&5
44274
44275         ac_cv_lib_cap_cap_set_proc=no
44276 fi
44277
44278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44279       conftest$ac_exeext conftest.$ac_ext
44280 LIBS=$ac_check_lib_save_LIBS
44281 fi
44282 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
44283 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
44284 if test $ac_cv_lib_cap_cap_set_proc = yes; then
44285   CAP_LIBS="-lcap"
44286 else
44287   CAP_LIBS=
44288 fi
44289
44290 if test x$CAP_LIBS = x-lcap; then
44291
44292 cat >>confdefs.h <<\_ACEOF
44293 #define HAVE_LIBCAP 1
44294 _ACEOF
44295
44296 fi
44297
44298
44299
44300 cat >>confdefs.h <<\_ACEOF
44301 #define FDLIBS 1
44302 _ACEOF
44303
44304
44305 CFLAGS=${CFLAGS--O}
44306
44307 if test x$have_gcc = xyes ; then
44308    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
44309    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
44310 fi
44311 LDFLAGS=${LDFLAGS--O}
44312 DB_LIBS="${SQL_LFLAGS}"
44313 CPPFLAGS="$CPPFLAGS"
44314 CFLAGS="$CFLAGS"
44315
44316
44317
44318
44319
44320
44321
44322
44323
44324
44325
44326
44327
44328
44329
44330
44331 OBJLIST=
44332
44333
44334 lld="lld"
44335 llu="llu"
44336
44337 WCFLAGS=
44338 WLDFLAGS=
44339
44340 PFILES="platforms/Makefile"
44341 PSCMD="ps -e"
44342 WIN32=
44343 MACOSX=
44344
44345 hostname=`uname -n | cut -d '.' -f 1`
44346 if test x${hostname} = x ; then
44347    hostname="localhost"
44348 fi
44349 ping -c 1 $hostname 2>/dev/null 1>/dev/null
44350 if test ! $? = 0; then
44351   hostname="localhost"
44352 fi
44353
44354 case "$DISTNAME" in
44355 aix)
44356    DISTVER=`uname -r`
44357    PSCMD="ps -e -o pid,comm"
44358    PFILES="${PFILES} \
44359       platforms/aix/Makefile"
44360    TAPEDRIVE="/dev/rmt0.1"
44361   ;;
44362 alpha)
44363    DISTVER=`uname -r`
44364    PTHREAD_LIB="-lpthread -lexc"
44365    if test "${CC}" = "gcc" ; then
44366       lld="lld"
44367       llu="llu"
44368    else
44369       lld="ld"
44370       llu="lu"
44371    fi
44372    TAPEDRIVE="/dev/nrmt0"
44373   ;;
44374 bsdi)
44375    DISTVER=`uname -a |awk '{print $3}'`
44376    TAPEDRIVE="/dev/nrmt0"
44377    PTHREAD_LIB="-pthread"
44378    CFLAGS="${CFLAGS} -pthread"
44379    PSCMD="ps -ax -o pid,command"
44380    lld="qd"
44381    llu="qu"
44382    PFILES="${PFILES} \
44383        platforms/bsdi/Makefile \
44384        platforms/bsdi/bacula-fd \
44385        platforms/bsdi/bacula-sd \
44386        platforms/bsdi/bacula-dir"
44387    largefile_support="yes"
44388   ;;
44389 cygwin)
44390    DISTVER=`uname -a |awk '{print $3}'`
44391    TAPEDRIVE="/dev/nrst0"
44392    WIN32=win32
44393    WCFLAGS="-mwindows"
44394    WLDFLAGS="-mwindows"
44395   ;;
44396 darwin)
44397    DISTVER=`uname -r`
44398    TAPEDRIVE="/dev/nst0"
44399    PSCMD="ps -e -o pid,command"
44400    MACOSX=macosx
44401    PFILES="${PFILES} \
44402       platforms/darwin/Makefile"
44403   ;;
44404 osx)
44405    DISTVER=`uname -r`
44406    TAPEDRIVE="/dev/nst0"
44407    PSCMD="ps -e -o pid,command"
44408    MACOSX=macosx
44409    PFILES="${PFILES} \
44410       platforms/osx/Makefile"
44411   ;;
44412 debian)
44413    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
44414       DISTNAME="ubuntu"
44415    fi
44416    DISTVER=`cat /etc/debian_version`
44417    if test -f /etc/lsb-release ; then
44418       . /etc/lsb-release
44419       if test "x$DISTRIB_ID" != "x" ; then
44420          DISTNAME=$DISTRIB_ID
44421       fi
44422       if test "x$DISTRIB_RELEASE" != "x" ; then
44423          DISTVER=$DISTRIB_RELEASE
44424       fi
44425    fi
44426    if test "$DISTNAME" = "Ubuntu" ; then
44427       DISTNAME="ubuntu"
44428    fi
44429    TAPEDRIVE="/dev/nst0"
44430    PSCMD="ps -e -o pid,command"
44431    if test "$DISTNAME" = "ubuntu" ; then
44432       PFILES="${PFILES} \
44433          platforms/ubuntu/Makefile \
44434          platforms/ubuntu/bacula-fd \
44435          platforms/ubuntu/bacula-sd \
44436          platforms/ubuntu/bacula-dir"
44437    else
44438       PFILES="${PFILES} \
44439          platforms/debian/Makefile \
44440          platforms/debian/bacula-fd \
44441          platforms/debian/bacula-sd \
44442          platforms/debian/bacula-dir"
44443    fi
44444   ;;
44445 freebsd)
44446    DISTVER=`uname -a |awk '{print $3}'`
44447    VER=`echo $DISTVER | cut -c 1`
44448    if test x$VER = x4 ; then
44449       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
44450       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
44451    fi
44452    lld="qd"
44453    llu="qu"
44454    TAPEDRIVE="/dev/nrsa0"
44455    PSCMD="ps -ax -o pid,command"
44456    PFILES="${PFILES} \
44457        platforms/freebsd/Makefile \
44458        platforms/freebsd/bacula-fd \
44459        platforms/freebsd/bacula-sd \
44460        platforms/freebsd/bacula-dir"
44461    largefile_support="yes"
44462   ;;
44463 hpux)
44464    PSCMD="UNIX95=1; ps -e -o pid,comm"
44465    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
44466    DISTVER=`uname -r`
44467    TAPEDRIVE="/dev/rmt/0hnb"
44468    PTHREAD_LIB="-lpthread"
44469    cat >>confdefs.h <<\_ACEOF
44470 #define _INCLUDE_LONGLONG 1
44471 _ACEOF
44472
44473   ;;
44474 irix)
44475    DISTVER=`uname -r`
44476    TAPEDRIVE="/dev/rmt/0cbn"
44477    PSCMD="ps -e -o pid,comm"
44478    PFILES="${PFILES} \
44479        platforms/irix/Makefile \
44480        platforms/irix/bacula-fd \
44481        platforms/irix/bacula-sd \
44482        platforms/irix/bacula-dir"
44483   ;;
44484 netbsd)
44485    DISTVER=`uname -a |awk '{print $3}'`
44486    lld="qd"
44487    llu="qu"
44488    TAPEDRIVE="/dev/nrst0"
44489    PSCMD="ps -ax -o pid,command"
44490    PTHREAD_LIB="-pthread"
44491    CFLAGS="${CFLAGS} -pthread"
44492   ;;
44493 openbsd)
44494    DISTVER=`uname -a |awk '{print $3}'`
44495    lld="qd"
44496    llu="qu"
44497    TAPEDRIVE="/dev/nrst0"
44498    PSCMD="ps -ax -o pid,command"
44499    PTHREAD_LIB="-pthread"
44500    CFLAGS="${CFLAGS} -pthread"
44501    PFILES="${PFILES} \
44502        platforms/openbsd/Makefile \
44503        platforms/openbsd/bacula-fd \
44504        platforms/openbsd/bacula-sd \
44505        platforms/openbsd/bacula-dir"
44506   ;;
44507 redhat)
44508    if test -f /etc/whitebox-release ; then
44509       f=/etc/whitebox-release
44510    else
44511       f=/etc/redhat-release
44512    fi
44513    if test `cat $f | grep release |\
44514          cut -f 3 -d ' '`x = "Enterprise"x ; then
44515       DISTVER="Enterprise "`cat $f | grep release |\
44516           cut -f 6 -d ' '`
44517    else
44518        DISTVER=`cat /etc/redhat-release | grep release |\
44519            cut -f 5 -d ' '`
44520    fi
44521    TAPEDRIVE="/dev/nst0"
44522    PSCMD="ps -e -o pid,command"
44523    PFILES="${PFILES} \
44524        platforms/redhat/Makefile \
44525        platforms/redhat/bacula-fd \
44526        platforms/redhat/bacula-sd \
44527        platforms/redhat/bacula-dir
44528        "
44529   ;;
44530 mandrake)
44531    DISTVER=`cat /etc/mandrake-release | grep release |\
44532       cut -f 5 -d ' '`
44533    TAPEDRIVE="/dev/nst0"
44534    PSCMD="ps -e -o pid,command"
44535    PFILES="${PFILES} \
44536        platforms/mandrake/Makefile \
44537        platforms/mandrake/bacula-fd \
44538        platforms/mandrake/bacula-sd \
44539        platforms/mandrake/bacula-dir \
44540        "
44541   ;;
44542 gentoo)
44543    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
44544    TAPEDRIVE="/dev/nst0"
44545    PSCMD="ps -e -o pid,command"
44546    PFILES="${PFILES} \
44547        platforms/gentoo/Makefile \
44548     platforms/gentoo/bacula-init \
44549        platforms/gentoo/bacula-fd \
44550        platforms/gentoo/bacula-sd \
44551        platforms/gentoo/bacula-dir"
44552   ;;
44553 slackware)
44554    DISTVER=`cat /etc/slackware-version`
44555    TAPEDRIVE="/dev/nst0"
44556    PSCMD="ps -e -o pid,command"
44557    PFILES="${PFILES} \
44558        platforms/slackware/Makefile \
44559        platforms/slackware/rc.bacula-fd \
44560        platforms/slackware/rc.bacula-sd \
44561        platforms/slackware/rc.bacula-dir\
44562        platforms/slackware/functions.bacula"
44563   ;;
44564 solaris)
44565    DISTVER=`uname -r`
44566    TAPEDRIVE="/dev/rmt/0cbn"
44567    PSCMD="ps -e -o pid,comm"
44568    PFILES="${PFILES} \
44569        platforms/solaris/Makefile \
44570        platforms/solaris/bacula-fd \
44571        platforms/solaris/bacula-sd \
44572        platforms/solaris/bacula-dir"
44573    if test x$DISTVER = x5.6 ; then
44574        cat >>confdefs.h <<\_ACEOF
44575 #define HAVE_OLD_SOCKOPT 1
44576 _ACEOF
44577
44578    fi
44579    LIBS="$LIBS -lresolv -lrt"
44580   ;;
44581 suse)
44582    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44583        cut -f 3 -d ' '`
44584    TAPEDRIVE="/dev/nst0"
44585    PSCMD="ps -e -o pid,command"
44586    PFILES="${PFILES} \
44587        platforms/suse/Makefile \
44588        platforms/suse/bacula-fd \
44589        platforms/suse/bacula-sd \
44590        platforms/suse/bacula-dir \
44591        platforms/suse/bacula"
44592   ;;
44593 suse5)
44594    DISTNAME=suse
44595    DISTVER=5.x
44596    TAPEDRIVE="/dev/nst0"
44597    PSCMD="ps -e -o pid,command"
44598    PFILES="${PFILES} \
44599        platforms/suse/Makefile \
44600        platforms/suse/bacula-fd \
44601        platforms/suse/bacula-sd \
44602        platforms/suse/bacula-dir"
44603   ;;
44604 unknown)
44605    DISTVER=unknown
44606    TAPEDRIVE="/dev/nst0"
44607   ;;
44608 *)
44609   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44610   ;;
44611 esac
44612
44613
44614
44615 LIBS="$PTHREAD_LIB $LIBS"
44616
44617 cat >>confdefs.h <<_ACEOF
44618 #define lld "$lld"
44619 _ACEOF
44620
44621 cat >>confdefs.h <<_ACEOF
44622 #define llu "$llu"
44623 _ACEOF
44624
44625
44626
44627
44628
44629
44630
44631
44632 MCOMMON=./autoconf/Make.common
44633
44634
44635 if test "x${subsysdir}" = "x${sbindir}" ; then
44636    echo " "
44637    echo " "
44638    echo "You have set both --sbindir and --with-subsys-dir"
44639    echo "  equal to: ${subsysdir} "
44640    echo "This is not permitted. Please reconfigure."
44641    echo " "
44642    echo "Aborting configuration ..."
44643    echo " "
44644    echo " "
44645    exit 1
44646 fi
44647
44648 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_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"
44649
44650 ac_config_commands="$ac_config_commands default"
44651
44652 cat >confcache <<\_ACEOF
44653 # This file is a shell script that caches the results of configure
44654 # tests run on this system so they can be shared between configure
44655 # scripts and configure runs, see configure's option --config-cache.
44656 # It is not useful on other systems.  If it contains results you don't
44657 # want to keep, you may remove or edit it.
44658 #
44659 # config.status only pays attention to the cache file if you give it
44660 # the --recheck option to rerun configure.
44661 #
44662 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44663 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44664 # following values.
44665
44666 _ACEOF
44667
44668 # The following way of writing the cache mishandles newlines in values,
44669 # but we know of no workaround that is simple, portable, and efficient.
44670 # So, we kill variables containing newlines.
44671 # Ultrix sh set writes to stderr and can't be redirected directly,
44672 # and sets the high bit in the cache file unless we assign to the vars.
44673 (
44674   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44675     eval ac_val=\$$ac_var
44676     case $ac_val in #(
44677     *${as_nl}*)
44678       case $ac_var in #(
44679       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44680 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44681       esac
44682       case $ac_var in #(
44683       _ | IFS | as_nl) ;; #(
44684       *) $as_unset $ac_var ;;
44685       esac ;;
44686     esac
44687   done
44688
44689   (set) 2>&1 |
44690     case $as_nl`(ac_space=' '; set) 2>&1` in #(
44691     *${as_nl}ac_space=\ *)
44692       # `set' does not quote correctly, so add quotes (double-quote
44693       # substitution turns \\\\ into \\, and sed turns \\ into \).
44694       sed -n \
44695         "s/'/'\\\\''/g;
44696           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44697       ;; #(
44698     *)
44699       # `set' quotes correctly as required by POSIX, so do not add quotes.
44700       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44701       ;;
44702     esac |
44703     sort
44704 ) |
44705   sed '
44706      /^ac_cv_env_/b end
44707      t clear
44708      :clear
44709      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44710      t end
44711      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44712      :end' >>confcache
44713 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44714   if test -w "$cache_file"; then
44715     test "x$cache_file" != "x/dev/null" &&
44716       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44717 echo "$as_me: updating cache $cache_file" >&6;}
44718     cat confcache >$cache_file
44719   else
44720     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44721 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44722   fi
44723 fi
44724 rm -f confcache
44725
44726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44727 # Let make expand exec_prefix.
44728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44729
44730 DEFS=-DHAVE_CONFIG_H
44731
44732 ac_libobjs=
44733 ac_ltlibobjs=
44734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44735   # 1. Remove the extension, and $U if already installed.
44736   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44737   ac_i=`echo "$ac_i" | sed "$ac_script"`
44738   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
44739   #    will be set to the directory where LIBOBJS objects are built.
44740   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44741   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44742 done
44743 LIBOBJS=$ac_libobjs
44744
44745 LTLIBOBJS=$ac_ltlibobjs
44746
44747
44748
44749 : ${CONFIG_STATUS=./config.status}
44750 ac_clean_files_save=$ac_clean_files
44751 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44752 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44753 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44754 cat >$CONFIG_STATUS <<_ACEOF
44755 #! $SHELL
44756 # Generated by $as_me.
44757 # Run this file to recreate the current configuration.
44758 # Compiler output produced by configure, useful for debugging
44759 # configure, is in config.log if it exists.
44760
44761 debug=false
44762 ac_cs_recheck=false
44763 ac_cs_silent=false
44764 SHELL=\${CONFIG_SHELL-$SHELL}
44765 _ACEOF
44766
44767 cat >>$CONFIG_STATUS <<\_ACEOF
44768 ## --------------------- ##
44769 ## M4sh Initialization.  ##
44770 ## --------------------- ##
44771
44772 # Be more Bourne compatible
44773 DUALCASE=1; export DUALCASE # for MKS sh
44774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44775   emulate sh
44776   NULLCMD=:
44777   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44778   # is contrary to our usage.  Disable this feature.
44779   alias -g '${1+"$@"}'='"$@"'
44780   setopt NO_GLOB_SUBST
44781 else
44782   case `(set -o) 2>/dev/null` in
44783   *posix*) set -o posix ;;
44784 esac
44785
44786 fi
44787
44788
44789
44790
44791 # PATH needs CR
44792 # Avoid depending upon Character Ranges.
44793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44796 as_cr_digits='0123456789'
44797 as_cr_alnum=$as_cr_Letters$as_cr_digits
44798
44799 # The user is always right.
44800 if test "${PATH_SEPARATOR+set}" != set; then
44801   echo "#! /bin/sh" >conf$$.sh
44802   echo  "exit 0"   >>conf$$.sh
44803   chmod +x conf$$.sh
44804   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44805     PATH_SEPARATOR=';'
44806   else
44807     PATH_SEPARATOR=:
44808   fi
44809   rm -f conf$$.sh
44810 fi
44811
44812 # Support unset when possible.
44813 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44814   as_unset=unset
44815 else
44816   as_unset=false
44817 fi
44818
44819
44820 # IFS
44821 # We need space, tab and new line, in precisely that order.  Quoting is
44822 # there to prevent editors from complaining about space-tab.
44823 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44824 # splitting by setting IFS to empty value.)
44825 as_nl='
44826 '
44827 IFS=" ""        $as_nl"
44828
44829 # Find who we are.  Look in the path if we contain no directory separator.
44830 case $0 in
44831   *[\\/]* ) as_myself=$0 ;;
44832   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44833 for as_dir in $PATH
44834 do
44835   IFS=$as_save_IFS
44836   test -z "$as_dir" && as_dir=.
44837   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44838 done
44839 IFS=$as_save_IFS
44840
44841      ;;
44842 esac
44843 # We did not find ourselves, most probably we were run as `sh COMMAND'
44844 # in which case we are not to be found in the path.
44845 if test "x$as_myself" = x; then
44846   as_myself=$0
44847 fi
44848 if test ! -f "$as_myself"; then
44849   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44850   { (exit 1); exit 1; }
44851 fi
44852
44853 # Work around bugs in pre-3.0 UWIN ksh.
44854 for as_var in ENV MAIL MAILPATH
44855 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44856 done
44857 PS1='$ '
44858 PS2='> '
44859 PS4='+ '
44860
44861 # NLS nuisances.
44862 for as_var in \
44863   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44864   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44865   LC_TELEPHONE LC_TIME
44866 do
44867   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44868     eval $as_var=C; export $as_var
44869   else
44870     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44871   fi
44872 done
44873
44874 # Required to use basename.
44875 if expr a : '\(a\)' >/dev/null 2>&1 &&
44876    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44877   as_expr=expr
44878 else
44879   as_expr=false
44880 fi
44881
44882 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44883   as_basename=basename
44884 else
44885   as_basename=false
44886 fi
44887
44888
44889 # Name of the executable.
44890 as_me=`$as_basename -- "$0" ||
44891 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44892          X"$0" : 'X\(//\)$' \| \
44893          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44894 echo X/"$0" |
44895     sed '/^.*\/\([^/][^/]*\)\/*$/{
44896             s//\1/
44897             q
44898           }
44899           /^X\/\(\/\/\)$/{
44900             s//\1/
44901             q
44902           }
44903           /^X\/\(\/\).*/{
44904             s//\1/
44905             q
44906           }
44907           s/.*/./; q'`
44908
44909 # CDPATH.
44910 $as_unset CDPATH
44911
44912
44913
44914   as_lineno_1=$LINENO
44915   as_lineno_2=$LINENO
44916   test "x$as_lineno_1" != "x$as_lineno_2" &&
44917   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44918
44919   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44920   # uniformly replaced by the line number.  The first 'sed' inserts a
44921   # line-number line after each line using $LINENO; the second 'sed'
44922   # does the real work.  The second script uses 'N' to pair each
44923   # line-number line with the line containing $LINENO, and appends
44924   # trailing '-' during substitution so that $LINENO is not a special
44925   # case at line end.
44926   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44927   # scripts with optimization help from Paolo Bonzini.  Blame Lee
44928   # E. McMahon (1931-1989) for sed's syntax.  :-)
44929   sed -n '
44930     p
44931     /[$]LINENO/=
44932   ' <$as_myself |
44933     sed '
44934       s/[$]LINENO.*/&-/
44935       t lineno
44936       b
44937       :lineno
44938       N
44939       :loop
44940       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44941       t loop
44942       s/-\n.*//
44943     ' >$as_me.lineno &&
44944   chmod +x "$as_me.lineno" ||
44945     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44946    { (exit 1); exit 1; }; }
44947
44948   # Don't try to exec as it changes $[0], causing all sort of problems
44949   # (the dirname of $[0] is not the place where we might find the
44950   # original and so on.  Autoconf is especially sensitive to this).
44951   . "./$as_me.lineno"
44952   # Exit status is that of the last command.
44953   exit
44954 }
44955
44956
44957 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44958   as_dirname=dirname
44959 else
44960   as_dirname=false
44961 fi
44962
44963 ECHO_C= ECHO_N= ECHO_T=
44964 case `echo -n x` in
44965 -n*)
44966   case `echo 'x\c'` in
44967   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
44968   *)   ECHO_C='\c';;
44969   esac;;
44970 *)
44971   ECHO_N='-n';;
44972 esac
44973
44974 if expr a : '\(a\)' >/dev/null 2>&1 &&
44975    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44976   as_expr=expr
44977 else
44978   as_expr=false
44979 fi
44980
44981 rm -f conf$$ conf$$.exe conf$$.file
44982 if test -d conf$$.dir; then
44983   rm -f conf$$.dir/conf$$.file
44984 else
44985   rm -f conf$$.dir
44986   mkdir conf$$.dir
44987 fi
44988 echo >conf$$.file
44989 if ln -s conf$$.file conf$$ 2>/dev/null; then
44990   as_ln_s='ln -s'
44991   # ... but there are two gotchas:
44992   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44993   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44994   # In both cases, we have to default to `cp -p'.
44995   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44996     as_ln_s='cp -p'
44997 elif ln conf$$.file conf$$ 2>/dev/null; then
44998   as_ln_s=ln
44999 else
45000   as_ln_s='cp -p'
45001 fi
45002 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45003 rmdir conf$$.dir 2>/dev/null
45004
45005 if mkdir -p . 2>/dev/null; then
45006   as_mkdir_p=:
45007 else
45008   test -d ./-p && rmdir ./-p
45009   as_mkdir_p=false
45010 fi
45011
45012 if test -x / >/dev/null 2>&1; then
45013   as_test_x='test -x'
45014 else
45015   if ls -dL / >/dev/null 2>&1; then
45016     as_ls_L_option=L
45017   else
45018     as_ls_L_option=
45019   fi
45020   as_test_x='
45021     eval sh -c '\''
45022       if test -d "$1"; then
45023         test -d "$1/.";
45024       else
45025         case $1 in
45026         -*)set "./$1";;
45027         esac;
45028         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
45029         ???[sx]*):;;*)false;;esac;fi
45030     '\'' sh
45031   '
45032 fi
45033 as_executable_p=$as_test_x
45034
45035 # Sed expression to map a string onto a valid CPP name.
45036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45037
45038 # Sed expression to map a string onto a valid variable name.
45039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45040
45041
45042 exec 6>&1
45043
45044 # Save the log message, to keep $[0] and so on meaningful, and to
45045 # report actual input values of CONFIG_FILES etc. instead of their
45046 # values after options handling.
45047 ac_log="
45048 This file was extended by $as_me, which was
45049 generated by GNU Autoconf 2.61.  Invocation command line was
45050
45051   CONFIG_FILES    = $CONFIG_FILES
45052   CONFIG_HEADERS  = $CONFIG_HEADERS
45053   CONFIG_LINKS    = $CONFIG_LINKS
45054   CONFIG_COMMANDS = $CONFIG_COMMANDS
45055   $ $0 $@
45056
45057 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45058 "
45059
45060 _ACEOF
45061
45062 cat >>$CONFIG_STATUS <<_ACEOF
45063 # Files that config.status was made for.
45064 config_files="$ac_config_files"
45065 config_headers="$ac_config_headers"
45066 config_commands="$ac_config_commands"
45067
45068 _ACEOF
45069
45070 cat >>$CONFIG_STATUS <<\_ACEOF
45071 ac_cs_usage="\
45072 \`$as_me' instantiates files from templates according to the
45073 current configuration.
45074
45075 Usage: $0 [OPTIONS] [FILE]...
45076
45077   -h, --help       print this help, then exit
45078   -V, --version    print version number and configuration settings, then exit
45079   -q, --quiet      do not print progress messages
45080   -d, --debug      don't remove temporary files
45081       --recheck    update $as_me by reconfiguring in the same conditions
45082   --file=FILE[:TEMPLATE]
45083                    instantiate the configuration file FILE
45084   --header=FILE[:TEMPLATE]
45085                    instantiate the configuration header FILE
45086
45087 Configuration files:
45088 $config_files
45089
45090 Configuration headers:
45091 $config_headers
45092
45093 Configuration commands:
45094 $config_commands
45095
45096 Report bugs to <bug-autoconf@gnu.org>."
45097
45098 _ACEOF
45099 cat >>$CONFIG_STATUS <<_ACEOF
45100 ac_cs_version="\\
45101 config.status
45102 configured by $0, generated by GNU Autoconf 2.61,
45103   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
45104
45105 Copyright (C) 2006 Free Software Foundation, Inc.
45106 This config.status script is free software; the Free Software Foundation
45107 gives unlimited permission to copy, distribute and modify it."
45108
45109 ac_pwd='$ac_pwd'
45110 srcdir='$srcdir'
45111 INSTALL='$INSTALL'
45112 _ACEOF
45113
45114 cat >>$CONFIG_STATUS <<\_ACEOF
45115 # If no file are specified by the user, then we need to provide default
45116 # value.  By we need to know if files were specified by the user.
45117 ac_need_defaults=:
45118 while test $# != 0
45119 do
45120   case $1 in
45121   --*=*)
45122     ac_option=`expr "X$1" : 'X\([^=]*\)='`
45123     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45124     ac_shift=:
45125     ;;
45126   *)
45127     ac_option=$1
45128     ac_optarg=$2
45129     ac_shift=shift
45130     ;;
45131   esac
45132
45133   case $ac_option in
45134   # Handling of the options.
45135   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45136     ac_cs_recheck=: ;;
45137   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45138     echo "$ac_cs_version"; exit ;;
45139   --debug | --debu | --deb | --de | --d | -d )
45140     debug=: ;;
45141   --file | --fil | --fi | --f )
45142     $ac_shift
45143     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45144     ac_need_defaults=false;;
45145   --header | --heade | --head | --hea )
45146     $ac_shift
45147     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45148     ac_need_defaults=false;;
45149   --he | --h)
45150     # Conflict between --help and --header
45151     { echo "$as_me: error: ambiguous option: $1
45152 Try \`$0 --help' for more information." >&2
45153    { (exit 1); exit 1; }; };;
45154   --help | --hel | -h )
45155     echo "$ac_cs_usage"; exit ;;
45156   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45157   | -silent | --silent | --silen | --sile | --sil | --si | --s)
45158     ac_cs_silent=: ;;
45159
45160   # This is an error.
45161   -*) { echo "$as_me: error: unrecognized option: $1
45162 Try \`$0 --help' for more information." >&2
45163    { (exit 1); exit 1; }; } ;;
45164
45165   *) ac_config_targets="$ac_config_targets $1"
45166      ac_need_defaults=false ;;
45167
45168   esac
45169   shift
45170 done
45171
45172 ac_configure_extra_args=
45173
45174 if $ac_cs_silent; then
45175   exec 6>/dev/null
45176   ac_configure_extra_args="$ac_configure_extra_args --silent"
45177 fi
45178
45179 _ACEOF
45180 cat >>$CONFIG_STATUS <<_ACEOF
45181 if \$ac_cs_recheck; then
45182   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45183   CONFIG_SHELL=$SHELL
45184   export CONFIG_SHELL
45185   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45186 fi
45187
45188 _ACEOF
45189 cat >>$CONFIG_STATUS <<\_ACEOF
45190 exec 5>>config.log
45191 {
45192   echo
45193   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45194 ## Running $as_me. ##
45195 _ASBOX
45196   echo "$ac_log"
45197 } >&5
45198
45199 _ACEOF
45200 cat >>$CONFIG_STATUS <<_ACEOF
45201 #
45202 # INIT-COMMANDS
45203 #
45204
45205
45206 # The HP-UX ksh and POSIX shell print the target directory to stdout
45207 # if CDPATH is set.
45208 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45209
45210 sed_quote_subst='$sed_quote_subst'
45211 double_quote_subst='$double_quote_subst'
45212 delay_variable_subst='$delay_variable_subst'
45213 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
45214 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
45215 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
45216 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
45217 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
45218 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
45219 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
45220 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
45221 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
45222 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
45223 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
45224 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
45225 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
45226 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
45227 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
45228 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
45229 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
45230 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
45231 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
45232 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
45233 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
45234 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
45235 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
45236 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
45237 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
45238 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
45239 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
45240 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45241 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
45242 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
45243 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
45244 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
45245 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
45246 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
45247 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
45248 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45249 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45250 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45251 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
45252 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
45253 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
45254 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
45255 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
45256 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
45257 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"`'
45258 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"`'
45259 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
45260 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
45261 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
45262 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
45263 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
45264 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
45265 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
45266 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
45267 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
45268 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
45269 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
45270 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
45271 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
45272 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
45273 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
45274 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
45275 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45276 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45277 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
45278 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
45279 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45280 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45281 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
45282 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45283 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45284 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45285 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45286 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45287 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45288 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
45289 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
45290 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
45291 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
45292 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
45293 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
45294 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
45295 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
45296 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
45297 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45298 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
45299 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
45300 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
45301 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
45302 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
45303 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45304 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
45305 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
45306 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45307 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
45308 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
45309 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
45310 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
45311 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
45312 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45313 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
45314 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
45315 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
45316 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
45317 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
45318 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45319 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45320 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
45321 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
45322 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
45323 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
45324 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
45325 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
45326 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
45327 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
45328 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
45329 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
45330 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
45331 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
45332 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
45333 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
45334 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
45335 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
45336 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
45337 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45338 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45339 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45340 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45341 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45342 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45343 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45344 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45345 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45346 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45347 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45348 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45349 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45350 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45351 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45352 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45353 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45354 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45355 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45356 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45357 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45358 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45359 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45360 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45361 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45362 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45363 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45364 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45365 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45366 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45367 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45368 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45369 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45370 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45371 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45372 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45373 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45374 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45375 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45376 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45377 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45378 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45379 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45380 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45381 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45382 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45383 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
45384
45385 LTCC='$LTCC'
45386 LTCFLAGS='$LTCFLAGS'
45387 compiler='$compiler_DEFAULT'
45388
45389 # Quote evaled strings.
45390 for var in SED \
45391 GREP \
45392 EGREP \
45393 FGREP \
45394 LD \
45395 NM \
45396 LN_S \
45397 lt_SP2NL \
45398 lt_NL2SP \
45399 reload_flag \
45400 OBJDUMP \
45401 deplibs_check_method \
45402 file_magic_cmd \
45403 AR \
45404 AR_FLAGS \
45405 STRIP \
45406 RANLIB \
45407 CC \
45408 CFLAGS \
45409 compiler \
45410 lt_cv_sys_global_symbol_pipe \
45411 lt_cv_sys_global_symbol_to_cdecl \
45412 lt_cv_sys_global_symbol_to_c_name_address \
45413 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
45414 SHELL \
45415 ECHO \
45416 lt_prog_compiler_no_builtin_flag \
45417 lt_prog_compiler_wl \
45418 lt_prog_compiler_pic \
45419 lt_prog_compiler_static \
45420 lt_cv_prog_compiler_c_o \
45421 need_locks \
45422 DSYMUTIL \
45423 NMEDIT \
45424 LIPO \
45425 OTOOL \
45426 OTOOL64 \
45427 shrext_cmds \
45428 export_dynamic_flag_spec \
45429 whole_archive_flag_spec \
45430 compiler_needs_object \
45431 with_gnu_ld \
45432 allow_undefined_flag \
45433 no_undefined_flag \
45434 hardcode_libdir_flag_spec \
45435 hardcode_libdir_flag_spec_ld \
45436 hardcode_libdir_separator \
45437 fix_srcfile_path \
45438 exclude_expsyms \
45439 include_expsyms \
45440 file_list_spec \
45441 variables_saved_for_relink \
45442 libname_spec \
45443 library_names_spec \
45444 soname_spec \
45445 finish_eval \
45446 old_striplib \
45447 striplib \
45448 compiler_lib_search_dirs \
45449 predep_objects \
45450 postdep_objects \
45451 predeps \
45452 postdeps \
45453 compiler_lib_search_path \
45454 LD_CXX \
45455 compiler_CXX \
45456 lt_prog_compiler_no_builtin_flag_CXX \
45457 lt_prog_compiler_wl_CXX \
45458 lt_prog_compiler_pic_CXX \
45459 lt_prog_compiler_static_CXX \
45460 lt_cv_prog_compiler_c_o_CXX \
45461 export_dynamic_flag_spec_CXX \
45462 whole_archive_flag_spec_CXX \
45463 compiler_needs_object_CXX \
45464 with_gnu_ld_CXX \
45465 allow_undefined_flag_CXX \
45466 no_undefined_flag_CXX \
45467 hardcode_libdir_flag_spec_CXX \
45468 hardcode_libdir_flag_spec_ld_CXX \
45469 hardcode_libdir_separator_CXX \
45470 fix_srcfile_path_CXX \
45471 exclude_expsyms_CXX \
45472 include_expsyms_CXX \
45473 file_list_spec_CXX \
45474 compiler_lib_search_dirs_CXX \
45475 predep_objects_CXX \
45476 postdep_objects_CXX \
45477 predeps_CXX \
45478 postdeps_CXX \
45479 compiler_lib_search_path_CXX; do
45480     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45481     *[\\\\\\\`\\"\\\$]*)
45482       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
45483       ;;
45484     *)
45485       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45486       ;;
45487     esac
45488 done
45489
45490 # Double-quote double-evaled strings.
45491 for var in reload_cmds \
45492 old_postinstall_cmds \
45493 old_postuninstall_cmds \
45494 old_archive_cmds \
45495 extract_expsyms_cmds \
45496 old_archive_from_new_cmds \
45497 old_archive_from_expsyms_cmds \
45498 archive_cmds \
45499 archive_expsym_cmds \
45500 module_cmds \
45501 module_expsym_cmds \
45502 export_symbols_cmds \
45503 prelink_cmds \
45504 postinstall_cmds \
45505 postuninstall_cmds \
45506 finish_cmds \
45507 sys_lib_search_path_spec \
45508 sys_lib_dlsearch_path_spec \
45509 old_archive_cmds_CXX \
45510 old_archive_from_new_cmds_CXX \
45511 old_archive_from_expsyms_cmds_CXX \
45512 archive_cmds_CXX \
45513 archive_expsym_cmds_CXX \
45514 module_cmds_CXX \
45515 module_expsym_cmds_CXX \
45516 export_symbols_cmds_CXX \
45517 prelink_cmds_CXX; do
45518     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45519     *[\\\\\\\`\\"\\\$]*)
45520       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
45521       ;;
45522     *)
45523       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45524       ;;
45525     esac
45526 done
45527
45528 # Fix-up fallback echo if it was mangled by the above quoting rules.
45529 case \$lt_ECHO in
45530 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
45531   ;;
45532 esac
45533
45534 ac_aux_dir='$ac_aux_dir'
45535 xsi_shell='$xsi_shell'
45536 lt_shell_append='$lt_shell_append'
45537
45538 # See if we are running on zsh, and set the options which allow our
45539 # commands through without removal of \ escapes INIT.
45540 if test -n "\${ZSH_VERSION+set}" ; then
45541    setopt NO_GLOB_SUBST
45542 fi
45543
45544
45545     PACKAGE='$PACKAGE'
45546     VERSION='$VERSION'
45547     TIMESTAMP='$TIMESTAMP'
45548     RM='$RM'
45549     ofile='$ofile'
45550
45551
45552
45553
45554
45555 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45556     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45557     # from automake.
45558     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45559     # Capture the value of LINGUAS because we need it to compute CATALOGS.
45560     LINGUAS="${LINGUAS-%UNSET%}"
45561
45562
45563 _ACEOF
45564
45565 cat >>$CONFIG_STATUS <<\_ACEOF
45566
45567 # Handling of arguments.
45568 for ac_config_target in $ac_config_targets
45569 do
45570   case $ac_config_target in
45571     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45572     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45573     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45574     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45575     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45576     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45577     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45578     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45579     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45580     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45581     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45582     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45583     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45584     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45585     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45586     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45587     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45588     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45589     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45590     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45591     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45592     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45593     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45594     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45595     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45596     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45597     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45598     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45599     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45600     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45601     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45602     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45603     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45604     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45605     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45606     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45607     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45608     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45609     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45610     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45611     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45612     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45613     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45614     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45615     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45616     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45617     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45618     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45619     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45620     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45621     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45622     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45623     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45624     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45625     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45626     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45627     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45628     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45629     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45630     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45631     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45632     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
45633     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45634     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45635     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45636     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45637     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45638     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45639     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45640     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45641     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45642     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45643     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45644     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45645     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45646     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45647     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45648     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45649     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45650     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45651     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45652     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45653     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
45654     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
45655     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
45656     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
45657     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
45658     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
45659     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45660     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45661     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45662     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45663     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45664     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45665     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45666     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45667     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45668     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45669     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45670     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45671     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45672     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45673     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45674     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45675     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45676     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45677     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45678     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45679     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45680     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45681     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45682     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45683
45684   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45685 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45686    { (exit 1); exit 1; }; };;
45687   esac
45688 done
45689
45690
45691 # If the user did not use the arguments to specify the items to instantiate,
45692 # then the envvar interface is used.  Set only those that are not.
45693 # We use the long form for the default assignment because of an extremely
45694 # bizarre bug on SunOS 4.1.3.
45695 if $ac_need_defaults; then
45696   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45697   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45698   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45699 fi
45700
45701 # Have a temporary directory for convenience.  Make it in the build tree
45702 # simply because there is no reason against having it here, and in addition,
45703 # creating and moving files from /tmp can sometimes cause problems.
45704 # Hook for its removal unless debugging.
45705 # Note that there is a small window in which the directory will not be cleaned:
45706 # after its creation but before its name has been assigned to `$tmp'.
45707 $debug ||
45708 {
45709   tmp=
45710   trap 'exit_status=$?
45711   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45712 ' 0
45713   trap '{ (exit 1); exit 1; }' 1 2 13 15
45714 }
45715 # Create a (secure) tmp directory for tmp files.
45716
45717 {
45718   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45719   test -n "$tmp" && test -d "$tmp"
45720 }  ||
45721 {
45722   tmp=./conf$$-$RANDOM
45723   (umask 077 && mkdir "$tmp")
45724 } ||
45725 {
45726    echo "$me: cannot create a temporary directory in ." >&2
45727    { (exit 1); exit 1; }
45728 }
45729
45730 #
45731 # Set up the sed scripts for CONFIG_FILES section.
45732 #
45733
45734 # No need to generate the scripts if there are no CONFIG_FILES.
45735 # This happens for instance when ./config.status config.h
45736 if test -n "$CONFIG_FILES"; then
45737
45738 _ACEOF
45739
45740 # Create sed commands to just substitute file output variables.
45741
45742 # Remaining file output variables are in a fragment that also has non-file
45743 # output varibles.
45744
45745
45746
45747 ac_delim='%!_!# '
45748 for ac_last_try in false false false false false :; do
45749   cat >conf$$subs.sed <<_ACEOF
45750 SHELL!$SHELL$ac_delim
45751 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45752 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45753 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45754 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45755 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45756 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45757 exec_prefix!$exec_prefix$ac_delim
45758 prefix!$prefix$ac_delim
45759 program_transform_name!$program_transform_name$ac_delim
45760 bindir!$bindir$ac_delim
45761 sbindir!$sbindir$ac_delim
45762 libexecdir!$libexecdir$ac_delim
45763 datarootdir!$datarootdir$ac_delim
45764 datadir!$datadir$ac_delim
45765 sysconfdir!$sysconfdir$ac_delim
45766 sharedstatedir!$sharedstatedir$ac_delim
45767 localstatedir!$localstatedir$ac_delim
45768 includedir!$includedir$ac_delim
45769 oldincludedir!$oldincludedir$ac_delim
45770 docdir!$docdir$ac_delim
45771 infodir!$infodir$ac_delim
45772 htmldir!$htmldir$ac_delim
45773 dvidir!$dvidir$ac_delim
45774 pdfdir!$pdfdir$ac_delim
45775 psdir!$psdir$ac_delim
45776 libdir!$libdir$ac_delim
45777 localedir!$localedir$ac_delim
45778 mandir!$mandir$ac_delim
45779 DEFS!$DEFS$ac_delim
45780 ECHO_C!$ECHO_C$ac_delim
45781 ECHO_N!$ECHO_N$ac_delim
45782 ECHO_T!$ECHO_T$ac_delim
45783 LIBS!$LIBS$ac_delim
45784 build_alias!$build_alias$ac_delim
45785 host_alias!$host_alias$ac_delim
45786 target_alias!$target_alias$ac_delim
45787 BUILD_DIR!$BUILD_DIR$ac_delim
45788 TOP_DIR!$TOP_DIR$ac_delim
45789 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45790 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45791 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45792 TRUEPRG!$TRUEPRG$ac_delim
45793 FALSEPRG!$FALSEPRG$ac_delim
45794 VERSION!$VERSION$ac_delim
45795 DATE!$DATE$ac_delim
45796 LSMDATE!$LSMDATE$ac_delim
45797 BACULA!$BACULA$ac_delim
45798 post_host!$post_host$ac_delim
45799 LIBBAC_LT_CURRENT!$LIBBAC_LT_CURRENT$ac_delim
45800 LIBBAC_LT_REVISION!$LIBBAC_LT_REVISION$ac_delim
45801 LIBBAC_LT_AGE!$LIBBAC_LT_AGE$ac_delim
45802 LIBBACCFG_LT_CURRENT!$LIBBACCFG_LT_CURRENT$ac_delim
45803 LIBBACCFG_LT_REVISION!$LIBBACCFG_LT_REVISION$ac_delim
45804 LIBBACCFG_LT_AGE!$LIBBACCFG_LT_AGE$ac_delim
45805 LIBBACPY_LT_CURRENT!$LIBBACPY_LT_CURRENT$ac_delim
45806 LIBBACPY_LT_REVISION!$LIBBACPY_LT_REVISION$ac_delim
45807 LIBBACPY_LT_AGE!$LIBBACPY_LT_AGE$ac_delim
45808 LIBBACSQL_LT_CURRENT!$LIBBACSQL_LT_CURRENT$ac_delim
45809 LIBBACSQL_LT_REVISION!$LIBBACSQL_LT_REVISION$ac_delim
45810 LIBBACSQL_LT_AGE!$LIBBACSQL_LT_AGE$ac_delim
45811 LIBBACFIND_LT_CURRENT!$LIBBACFIND_LT_CURRENT$ac_delim
45812 LIBBACFIND_LT_REVISION!$LIBBACFIND_LT_REVISION$ac_delim
45813 LIBBACFIND_LT_AGE!$LIBBACFIND_LT_AGE$ac_delim
45814 CC!$CC$ac_delim
45815 CFLAGS!$CFLAGS$ac_delim
45816 LDFLAGS!$LDFLAGS$ac_delim
45817 CPPFLAGS!$CPPFLAGS$ac_delim
45818 ac_ct_CC!$ac_ct_CC$ac_delim
45819 EXEEXT!$EXEEXT$ac_delim
45820 OBJEXT!$OBJEXT$ac_delim
45821 CXX!$CXX$ac_delim
45822 CXXFLAGS!$CXXFLAGS$ac_delim
45823 ac_ct_CXX!$ac_ct_CXX$ac_delim
45824 CPP!$CPP$ac_delim
45825 GREP!$GREP$ac_delim
45826 EGREP!$EGREP$ac_delim
45827 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45828 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45829 INSTALL_DATA!$INSTALL_DATA$ac_delim
45830 MV!$MV$ac_delim
45831 REMOVE!$REMOVE$ac_delim
45832 CP!$CP$ac_delim
45833 SED!$SED$ac_delim
45834 ECHO!$ECHO$ac_delim
45835 CMP!$CMP$ac_delim
45836 TBL!$TBL$ac_delim
45837 AR!$AR$ac_delim
45838 OPENSSL!$OPENSSL$ac_delim
45839 MTX!$MTX$ac_delim
45840 DD!$DD$ac_delim
45841 MKISOFS!$MKISOFS$ac_delim
45842 PYTHON!$PYTHON$ac_delim
45843 GROWISOFS!$GROWISOFS$ac_delim
45844 _ACEOF
45845
45846   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45847     break
45848   elif $ac_last_try; then
45849     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45850 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45851    { (exit 1); exit 1; }; }
45852   else
45853     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45854   fi
45855 done
45856
45857 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45858 if test -n "$ac_eof"; then
45859   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45860   ac_eof=`expr $ac_eof + 1`
45861 fi
45862
45863 cat >>$CONFIG_STATUS <<_ACEOF
45864 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45865 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45866 /^[      ]*@MCOMMON@[    ]*$/{
45867 r $MCOMMON
45868 d
45869 }
45870 _ACEOF
45871 sed '
45872 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45873 s/^/s,@/; s/!/@,|#_!!_#|/
45874 :n
45875 t n
45876 s/'"$ac_delim"'$/,g/; t
45877 s/$/\\/; p
45878 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45879 ' >>$CONFIG_STATUS <conf$$subs.sed
45880 rm -f conf$$subs.sed
45881 cat >>$CONFIG_STATUS <<_ACEOF
45882 CEOF$ac_eof
45883 _ACEOF
45884
45885
45886 ac_delim='%!_!# '
45887 for ac_last_try in false false false false false :; do
45888   cat >conf$$subs.sed <<_ACEOF
45889 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45890 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45891 PKGCONFIG!$PKGCONFIG$ac_delim
45892 QMAKE!$QMAKE$ac_delim
45893 GMAKE!$GMAKE$ac_delim
45894 WXCONFIG!$WXCONFIG$ac_delim
45895 WXFLAGS!$WXFLAGS$ac_delim
45896 CDRECORD!$CDRECORD$ac_delim
45897 PIDOF!$PIDOF$ac_delim
45898 AWK!$AWK$ac_delim
45899 ARFLAGS!$ARFLAGS$ac_delim
45900 MAKE_SHELL!$MAKE_SHELL$ac_delim
45901 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45902 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45903 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45904 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45905 LIBTOOL!$LIBTOOL$ac_delim
45906 build!$build$ac_delim
45907 build_cpu!$build_cpu$ac_delim
45908 build_vendor!$build_vendor$ac_delim
45909 build_os!$build_os$ac_delim
45910 host!$host$ac_delim
45911 host_cpu!$host_cpu$ac_delim
45912 host_vendor!$host_vendor$ac_delim
45913 host_os!$host_os$ac_delim
45914 FGREP!$FGREP$ac_delim
45915 LD!$LD$ac_delim
45916 DUMPBIN!$DUMPBIN$ac_delim
45917 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45918 NM!$NM$ac_delim
45919 LN_S!$LN_S$ac_delim
45920 OBJDUMP!$OBJDUMP$ac_delim
45921 STRIP!$STRIP$ac_delim
45922 RANLIB!$RANLIB$ac_delim
45923 lt_ECHO!$lt_ECHO$ac_delim
45924 DSYMUTIL!$DSYMUTIL$ac_delim
45925 NMEDIT!$NMEDIT$ac_delim
45926 LIPO!$LIPO$ac_delim
45927 OTOOL!$OTOOL$ac_delim
45928 OTOOL64!$OTOOL64$ac_delim
45929 CXXCPP!$CXXCPP$ac_delim
45930 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45931 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45932 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45933 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45934 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45935 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45936 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45937 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45938 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45939 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45940 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45941 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45942 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45943 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45944 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45945 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45946 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45947 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45948 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45949 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45950 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45951 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45952 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45953 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45954 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45955 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45956 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45957 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45958 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45959 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45960 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45961 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45962 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45963 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45964 SET_MAKE!$SET_MAKE$ac_delim
45965 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45966 USE_NLS!$USE_NLS$ac_delim
45967 MSGFMT!$MSGFMT$ac_delim
45968 GMSGFMT!$GMSGFMT$ac_delim
45969 XGETTEXT!$XGETTEXT$ac_delim
45970 MSGMERGE!$MSGMERGE$ac_delim
45971 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45972 LIBICONV!$LIBICONV$ac_delim
45973 LTLIBICONV!$LTLIBICONV$ac_delim
45974 INTLLIBS!$INTLLIBS$ac_delim
45975 LIBINTL!$LIBINTL$ac_delim
45976 LTLIBINTL!$LTLIBINTL$ac_delim
45977 POSUB!$POSUB$ac_delim
45978 GLIBC2!$GLIBC2$ac_delim
45979 ALLOCA!$ALLOCA$ac_delim
45980 GLIBC21!$GLIBC21$ac_delim
45981 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45982 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45983 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45984 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45985 INTLBISON!$INTLBISON$ac_delim
45986 _ACEOF
45987
45988   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45989     break
45990   elif $ac_last_try; then
45991     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45992 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45993    { (exit 1); exit 1; }; }
45994   else
45995     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45996   fi
45997 done
45998
45999 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46000 if test -n "$ac_eof"; then
46001   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46002   ac_eof=`expr $ac_eof + 1`
46003 fi
46004
46005 cat >>$CONFIG_STATUS <<_ACEOF
46006 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
46007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46008 _ACEOF
46009 sed '
46010 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46011 s/^/s,@/; s/!/@,|#_!!_#|/
46012 :n
46013 t n
46014 s/'"$ac_delim"'$/,g/; t
46015 s/$/\\/; p
46016 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46017 ' >>$CONFIG_STATUS <conf$$subs.sed
46018 rm -f conf$$subs.sed
46019 cat >>$CONFIG_STATUS <<_ACEOF
46020 CEOF$ac_eof
46021 _ACEOF
46022
46023
46024 ac_delim='%!_!# '
46025 for ac_last_try in false false false false false :; do
46026   cat >conf$$subs.sed <<_ACEOF
46027 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
46028 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
46029 CATOBJEXT!$CATOBJEXT$ac_delim
46030 DATADIRNAME!$DATADIRNAME$ac_delim
46031 INSTOBJEXT!$INSTOBJEXT$ac_delim
46032 GENCAT!$GENCAT$ac_delim
46033 INTLOBJS!$INTLOBJS$ac_delim
46034 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
46035 BAT_DIR!$BAT_DIR$ac_delim
46036 QWT_INC!$QWT_INC$ac_delim
46037 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
46038 QWT_LIB!$QWT_LIB$ac_delim
46039 QWT!$QWT$ac_delim
46040 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
46041 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
46042 WX_DIR!$WX_DIR$ac_delim
46043 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
46044 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
46045 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
46046 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
46047 STATIC_FD!$STATIC_FD$ac_delim
46048 STATIC_SD!$STATIC_SD$ac_delim
46049 STATIC_DIR!$STATIC_DIR$ac_delim
46050 STATIC_CONS!$STATIC_CONS$ac_delim
46051 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
46052 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
46053 ALL_DIRS!$ALL_DIRS$ac_delim
46054 DIRD_DIR!$DIRD_DIR$ac_delim
46055 DIR_TOOLS!$DIR_TOOLS$ac_delim
46056 STORED_DIR!$STORED_DIR$ac_delim
46057 CONS_INC!$CONS_INC$ac_delim
46058 CONS_OBJ!$CONS_OBJ$ac_delim
46059 CONS_SRC!$CONS_SRC$ac_delim
46060 CONS_LIBS!$CONS_LIBS$ac_delim
46061 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
46062 READLINE_SRC!$READLINE_SRC$ac_delim
46063 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
46064 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
46065 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
46066 OPENSSL_INC!$OPENSSL_INC$ac_delim
46067 working_dir!$working_dir$ac_delim
46068 archivedir!$archivedir$ac_delim
46069 basename!$basename$ac_delim
46070 hostname!$hostname$ac_delim
46071 scriptdir!$scriptdir$ac_delim
46072 bsrdir!$bsrdir$ac_delim
46073 logdir!$logdir$ac_delim
46074 plugindir!$plugindir$ac_delim
46075 dump_email!$dump_email$ac_delim
46076 job_email!$job_email$ac_delim
46077 smtp_host!$smtp_host$ac_delim
46078 piddir!$piddir$ac_delim
46079 subsysdir!$subsysdir$ac_delim
46080 baseport!$baseport$ac_delim
46081 dir_port!$dir_port$ac_delim
46082 fd_port!$fd_port$ac_delim
46083 sd_port!$sd_port$ac_delim
46084 dir_password!$dir_password$ac_delim
46085 fd_password!$fd_password$ac_delim
46086 sd_password!$sd_password$ac_delim
46087 mon_dir_password!$mon_dir_password$ac_delim
46088 mon_fd_password!$mon_fd_password$ac_delim
46089 mon_sd_password!$mon_sd_password$ac_delim
46090 db_name!$db_name$ac_delim
46091 db_user!$db_user$ac_delim
46092 db_password!$db_password$ac_delim
46093 db_port!$db_port$ac_delim
46094 dir_user!$dir_user$ac_delim
46095 dir_group!$dir_group$ac_delim
46096 sd_user!$sd_user$ac_delim
46097 sd_group!$sd_group$ac_delim
46098 fd_user!$fd_user$ac_delim
46099 fd_group!$fd_group$ac_delim
46100 SBINPERM!$SBINPERM$ac_delim
46101 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
46102 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
46103 SQL_BINDIR!$SQL_BINDIR$ac_delim
46104 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
46105 uncomment_dbi!$uncomment_dbi$ac_delim
46106 DB_PROG!$DB_PROG$ac_delim
46107 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
46108 cats!$cats$ac_delim
46109 DB_TYPE!$DB_TYPE$ac_delim
46110 GETCONF!$GETCONF$ac_delim
46111 XMKMF!$XMKMF$ac_delim
46112 X_CFLAGS!$X_CFLAGS$ac_delim
46113 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
46114 X_LIBS!$X_LIBS$ac_delim
46115 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
46116 LIBOBJS!$LIBOBJS$ac_delim
46117 ZLIBS!$ZLIBS$ac_delim
46118 AFS_CFLAGS!$AFS_CFLAGS$ac_delim
46119 AFS_LIBS!$AFS_LIBS$ac_delim
46120 CAP_LIBS!$CAP_LIBS$ac_delim
46121 FDLIBS!$FDLIBS$ac_delim
46122 DEBUG!$DEBUG$ac_delim
46123 DINCLUDE!$DINCLUDE$ac_delim
46124 _ACEOF
46125
46126   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
46127     break
46128   elif $ac_last_try; then
46129     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46130 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46131    { (exit 1); exit 1; }; }
46132   else
46133     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46134   fi
46135 done
46136
46137 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46138 if test -n "$ac_eof"; then
46139   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46140   ac_eof=`expr $ac_eof + 1`
46141 fi
46142
46143 cat >>$CONFIG_STATUS <<_ACEOF
46144 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
46145 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46146 _ACEOF
46147 sed '
46148 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46149 s/^/s,@/; s/!/@,|#_!!_#|/
46150 :n
46151 t n
46152 s/'"$ac_delim"'$/,g/; t
46153 s/$/\\/; p
46154 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46155 ' >>$CONFIG_STATUS <conf$$subs.sed
46156 rm -f conf$$subs.sed
46157 cat >>$CONFIG_STATUS <<_ACEOF
46158 CEOF$ac_eof
46159 _ACEOF
46160
46161
46162 ac_delim='%!_!# '
46163 for ac_last_try in false false false false false :; do
46164   cat >conf$$subs.sed <<_ACEOF
46165 DLIB!$DLIB$ac_delim
46166 DB_LIBS!$DB_LIBS$ac_delim
46167 WCFLAGS!$WCFLAGS$ac_delim
46168 WLDFLAGS!$WLDFLAGS$ac_delim
46169 WRAPLIBS!$WRAPLIBS$ac_delim
46170 OBJLIST!$OBJLIST$ac_delim
46171 TAPEDRIVE!$TAPEDRIVE$ac_delim
46172 PSCMD!$PSCMD$ac_delim
46173 WIN32!$WIN32$ac_delim
46174 MACOSX!$MACOSX$ac_delim
46175 DISTNAME!$DISTNAME$ac_delim
46176 DISTVER!$DISTVER$ac_delim
46177 LTLIBOBJS!$LTLIBOBJS$ac_delim
46178 _ACEOF
46179
46180   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
46181     break
46182   elif $ac_last_try; then
46183     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
46184 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
46185    { (exit 1); exit 1; }; }
46186   else
46187     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46188   fi
46189 done
46190
46191 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
46192 if test -n "$ac_eof"; then
46193   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
46194   ac_eof=`expr $ac_eof + 1`
46195 fi
46196
46197 cat >>$CONFIG_STATUS <<_ACEOF
46198 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
46199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
46200 _ACEOF
46201 sed '
46202 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
46203 s/^/s,@/; s/!/@,|#_!!_#|/
46204 :n
46205 t n
46206 s/'"$ac_delim"'$/,g/; t
46207 s/$/\\/; p
46208 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
46209 ' >>$CONFIG_STATUS <conf$$subs.sed
46210 rm -f conf$$subs.sed
46211 cat >>$CONFIG_STATUS <<_ACEOF
46212 :end
46213 s/|#_!!_#|//g
46214 CEOF$ac_eof
46215 _ACEOF
46216
46217
46218 # VPATH may cause trouble with some makes, so we remove $(srcdir),
46219 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46220 # trailing colons and then remove the whole line if VPATH becomes empty
46221 # (actually we leave an empty line to preserve line numbers).
46222 if test "x$srcdir" = x.; then
46223   ac_vpsub='/^[  ]*VPATH[        ]*=/{
46224 s/:*\$(srcdir):*/:/
46225 s/:*\${srcdir}:*/:/
46226 s/:*@srcdir@:*/:/
46227 s/^\([^=]*=[     ]*\):*/\1/
46228 s/:*$//
46229 s/^[^=]*=[       ]*$//
46230 }'
46231 fi
46232
46233 cat >>$CONFIG_STATUS <<\_ACEOF
46234 fi # test -n "$CONFIG_FILES"
46235
46236
46237 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
46238 do
46239   case $ac_tag in
46240   :[FHLC]) ac_mode=$ac_tag; continue;;
46241   esac
46242   case $ac_mode$ac_tag in
46243   :[FHL]*:*);;
46244   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
46245 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
46246    { (exit 1); exit 1; }; };;
46247   :[FH]-) ac_tag=-:-;;
46248   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46249   esac
46250   ac_save_IFS=$IFS
46251   IFS=:
46252   set x $ac_tag
46253   IFS=$ac_save_IFS
46254   shift
46255   ac_file=$1
46256   shift
46257
46258   case $ac_mode in
46259   :L) ac_source=$1;;
46260   :[FH])
46261     ac_file_inputs=
46262     for ac_f
46263     do
46264       case $ac_f in
46265       -) ac_f="$tmp/stdin";;
46266       *) # Look for the file first in the build tree, then in the source tree
46267          # (if the path is not absolute).  The absolute path cannot be DOS-style,
46268          # because $ac_f cannot contain `:'.
46269          test -f "$ac_f" ||
46270            case $ac_f in
46271            [\\/$]*) false;;
46272            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46273            esac ||
46274            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
46275 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
46276    { (exit 1); exit 1; }; };;
46277       esac
46278       ac_file_inputs="$ac_file_inputs $ac_f"
46279     done
46280
46281     # Let's still pretend it is `configure' which instantiates (i.e., don't
46282     # use $as_me), people would be surprised to read:
46283     #    /* config.h.  Generated by config.status.  */
46284     configure_input="Generated from "`IFS=:
46285           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
46286     if test x"$ac_file" != x-; then
46287       configure_input="$ac_file.  $configure_input"
46288       { echo "$as_me:$LINENO: creating $ac_file" >&5
46289 echo "$as_me: creating $ac_file" >&6;}
46290     fi
46291
46292     case $ac_tag in
46293     *:-:* | *:-) cat >"$tmp/stdin";;
46294     esac
46295     ;;
46296   esac
46297
46298   ac_dir=`$as_dirname -- "$ac_file" ||
46299 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46300          X"$ac_file" : 'X\(//\)[^/]' \| \
46301          X"$ac_file" : 'X\(//\)$' \| \
46302          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46303 echo X"$ac_file" |
46304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46305             s//\1/
46306             q
46307           }
46308           /^X\(\/\/\)[^/].*/{
46309             s//\1/
46310             q
46311           }
46312           /^X\(\/\/\)$/{
46313             s//\1/
46314             q
46315           }
46316           /^X\(\/\).*/{
46317             s//\1/
46318             q
46319           }
46320           s/.*/./; q'`
46321   { as_dir="$ac_dir"
46322   case $as_dir in #(
46323   -*) as_dir=./$as_dir;;
46324   esac
46325   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
46326     as_dirs=
46327     while :; do
46328       case $as_dir in #(
46329       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
46330       *) as_qdir=$as_dir;;
46331       esac
46332       as_dirs="'$as_qdir' $as_dirs"
46333       as_dir=`$as_dirname -- "$as_dir" ||
46334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46335          X"$as_dir" : 'X\(//\)[^/]' \| \
46336          X"$as_dir" : 'X\(//\)$' \| \
46337          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46338 echo X"$as_dir" |
46339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46340             s//\1/
46341             q
46342           }
46343           /^X\(\/\/\)[^/].*/{
46344             s//\1/
46345             q
46346           }
46347           /^X\(\/\/\)$/{
46348             s//\1/
46349             q
46350           }
46351           /^X\(\/\).*/{
46352             s//\1/
46353             q
46354           }
46355           s/.*/./; q'`
46356       test -d "$as_dir" && break
46357     done
46358     test -z "$as_dirs" || eval "mkdir $as_dirs"
46359   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
46360 echo "$as_me: error: cannot create directory $as_dir" >&2;}
46361    { (exit 1); exit 1; }; }; }
46362   ac_builddir=.
46363
46364 case "$ac_dir" in
46365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46366 *)
46367   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46368   # A ".." for each directory in $ac_dir_suffix.
46369   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
46370   case $ac_top_builddir_sub in
46371   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46372   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46373   esac ;;
46374 esac
46375 ac_abs_top_builddir=$ac_pwd
46376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46377 # for backward compatibility:
46378 ac_top_builddir=$ac_top_build_prefix
46379
46380 case $srcdir in
46381   .)  # We are building in place.
46382     ac_srcdir=.
46383     ac_top_srcdir=$ac_top_builddir_sub
46384     ac_abs_top_srcdir=$ac_pwd ;;
46385   [\\/]* | ?:[\\/]* )  # Absolute name.
46386     ac_srcdir=$srcdir$ac_dir_suffix;
46387     ac_top_srcdir=$srcdir
46388     ac_abs_top_srcdir=$srcdir ;;
46389   *) # Relative name.
46390     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46391     ac_top_srcdir=$ac_top_build_prefix$srcdir
46392     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46393 esac
46394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46395
46396
46397   case $ac_mode in
46398   :F)
46399   #
46400   # CONFIG_FILE
46401   #
46402
46403   case $INSTALL in
46404   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46405   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46406   esac
46407 _ACEOF
46408
46409 cat >>$CONFIG_STATUS <<\_ACEOF
46410 # If the template does not know about datarootdir, expand it.
46411 # FIXME: This hack should be removed a few years after 2.60.
46412 ac_datarootdir_hack=; ac_datarootdir_seen=
46413
46414 case `sed -n '/datarootdir/ {
46415   p
46416   q
46417 }
46418 /@datadir@/p
46419 /@docdir@/p
46420 /@infodir@/p
46421 /@localedir@/p
46422 /@mandir@/p
46423 ' $ac_file_inputs` in
46424 *datarootdir*) ac_datarootdir_seen=yes;;
46425 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46426   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46427 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46428 _ACEOF
46429 cat >>$CONFIG_STATUS <<_ACEOF
46430   ac_datarootdir_hack='
46431   s&@datadir@&$datadir&g
46432   s&@docdir@&$docdir&g
46433   s&@infodir@&$infodir&g
46434   s&@localedir@&$localedir&g
46435   s&@mandir@&$mandir&g
46436     s&\\\${datarootdir}&$datarootdir&g' ;;
46437 esac
46438 _ACEOF
46439
46440 # Neutralize VPATH when `$srcdir' = `.'.
46441 # Shell code in configure.ac might set extrasub.
46442 # FIXME: do we really want to maintain this feature?
46443 cat >>$CONFIG_STATUS <<_ACEOF
46444   sed "$ac_vpsub
46445 $extrasub
46446 _ACEOF
46447 cat >>$CONFIG_STATUS <<\_ACEOF
46448 :t
46449 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46450 s&@configure_input@&$configure_input&;t t
46451 s&@top_builddir@&$ac_top_builddir_sub&;t t
46452 s&@srcdir@&$ac_srcdir&;t t
46453 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46454 s&@top_srcdir@&$ac_top_srcdir&;t t
46455 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46456 s&@builddir@&$ac_builddir&;t t
46457 s&@abs_builddir@&$ac_abs_builddir&;t t
46458 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46459 s&@INSTALL@&$ac_INSTALL&;t t
46460 $ac_datarootdir_hack
46461 " $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
46462
46463 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46464   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
46465   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
46466   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46467 which seems to be undefined.  Please make sure it is defined." >&5
46468 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46469 which seems to be undefined.  Please make sure it is defined." >&2;}
46470
46471   rm -f "$tmp/stdin"
46472   case $ac_file in
46473   -) cat "$tmp/out"; rm -f "$tmp/out";;
46474   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
46475   esac
46476  ;;
46477   :H)
46478   #
46479   # CONFIG_HEADER
46480   #
46481 _ACEOF
46482
46483 # Transform confdefs.h into a sed script `conftest.defines', that
46484 # substitutes the proper values into config.h.in to produce config.h.
46485 rm -f conftest.defines conftest.tail
46486 # First, append a space to every undef/define line, to ease matching.
46487 echo 's/$/ /' >conftest.defines
46488 # Then, protect against being on the right side of a sed subst, or in
46489 # an unquoted here document, in config.status.  If some macros were
46490 # called several times there might be several #defines for the same
46491 # symbol, which is useless.  But do not sort them, since the last
46492 # AC_DEFINE must be honored.
46493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46494 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
46495 # NAME is the cpp macro being defined, VALUE is the value it is being given.
46496 # PARAMS is the parameter list in the macro definition--in most cases, it's
46497 # just an empty string.
46498 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
46499 ac_dB='\\)[      (].*,\\1define\\2'
46500 ac_dC=' '
46501 ac_dD=' ,'
46502
46503 uniq confdefs.h |
46504   sed -n '
46505         t rset
46506         :rset
46507         s/^[     ]*#[    ]*define[       ][      ]*//
46508         t ok
46509         d
46510         :ok
46511         s/[\\&,]/\\&/g
46512         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
46513         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
46514   ' >>conftest.defines
46515
46516 # Remove the space that was appended to ease matching.
46517 # Then replace #undef with comments.  This is necessary, for
46518 # example, in the case of _POSIX_SOURCE, which is predefined and required
46519 # on some systems where configure will not decide to define it.
46520 # (The regexp can be short, since the line contains either #define or #undef.)
46521 echo 's/ $//
46522 s,^[     #]*u.*,/* & */,' >>conftest.defines
46523
46524 # Break up conftest.defines:
46525 ac_max_sed_lines=50
46526
46527 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
46528 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
46529 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
46530 # et cetera.
46531 ac_in='$ac_file_inputs'
46532 ac_out='"$tmp/out1"'
46533 ac_nxt='"$tmp/out2"'
46534
46535 while :
46536 do
46537   # Write a here document:
46538     cat >>$CONFIG_STATUS <<_ACEOF
46539     # First, check the format of the line:
46540     cat >"\$tmp/defines.sed" <<\\CEOF
46541 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
46542 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
46543 b
46544 :def
46545 _ACEOF
46546   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
46547   echo 'CEOF
46548     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
46549   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
46550   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
46551   grep . conftest.tail >/dev/null || break
46552   rm -f conftest.defines
46553   mv conftest.tail conftest.defines
46554 done
46555 rm -f conftest.defines conftest.tail
46556
46557 echo "ac_result=$ac_in" >>$CONFIG_STATUS
46558 cat >>$CONFIG_STATUS <<\_ACEOF
46559   if test x"$ac_file" != x-; then
46560     echo "/* $configure_input  */" >"$tmp/config.h"
46561     cat "$ac_result" >>"$tmp/config.h"
46562     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
46563       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46564 echo "$as_me: $ac_file is unchanged" >&6;}
46565     else
46566       rm -f $ac_file
46567       mv "$tmp/config.h" $ac_file
46568     fi
46569   else
46570     echo "/* $configure_input  */"
46571     cat "$ac_result"
46572   fi
46573   rm -f "$tmp/out12"
46574  ;;
46575
46576   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
46577 echo "$as_me: executing $ac_file commands" >&6;}
46578  ;;
46579   esac
46580
46581
46582   case $ac_file$ac_mode in
46583     "libtool":C)
46584
46585     # See if we are running on zsh, and set the options which allow our
46586     # commands through without removal of \ escapes.
46587     if test -n "${ZSH_VERSION+set}" ; then
46588       setopt NO_GLOB_SUBST
46589     fi
46590
46591     cfgfile="${ofile}T"
46592     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46593     $RM "$cfgfile"
46594
46595     cat <<_LT_EOF >> "$cfgfile"
46596 #! $SHELL
46597
46598 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
46599 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
46600 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46601 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
46602 #
46603 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
46604 #                 2006, 2007, 2008 Free Software Foundation, Inc.
46605 #   Written by Gordon Matzigkeit, 1996
46606 #
46607 #   This file is part of GNU Libtool.
46608 #
46609 # GNU Libtool is free software; you can redistribute it and/or
46610 # modify it under the terms of the GNU General Public License as
46611 # published by the Free Software Foundation; either version 2 of
46612 # the License, or (at your option) any later version.
46613 #
46614 # As a special exception to the GNU General Public License,
46615 # if you distribute this file as part of a program or library that
46616 # is built using GNU Libtool, you may include this file under the
46617 # same distribution terms that you use for the rest of that program.
46618 #
46619 # GNU Libtool is distributed in the hope that it will be useful,
46620 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46621 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
46622 # GNU General Public License for more details.
46623 #
46624 # You should have received a copy of the GNU General Public License
46625 # along with GNU Libtool; see the file COPYING.  If not, a copy
46626 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46627 # obtained by writing to the Free Software Foundation, Inc.,
46628 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46629
46630
46631 # The names of the tagged configurations supported by this script.
46632 available_tags="CXX "
46633
46634 # ### BEGIN LIBTOOL CONFIG
46635
46636 # Which release of libtool.m4 was used?
46637 macro_version=$macro_version
46638 macro_revision=$macro_revision
46639
46640 # Whether or not to build shared libraries.
46641 build_libtool_libs=$enable_shared
46642
46643 # Whether or not to build static libraries.
46644 build_old_libs=$enable_static
46645
46646 # What type of objects to build.
46647 pic_mode=$pic_mode
46648
46649 # Whether or not to optimize for fast installation.
46650 fast_install=$enable_fast_install
46651
46652 # The host system.
46653 host_alias=$host_alias
46654 host=$host
46655 host_os=$host_os
46656
46657 # The build system.
46658 build_alias=$build_alias
46659 build=$build
46660 build_os=$build_os
46661
46662 # A sed program that does not truncate output.
46663 SED=$lt_SED
46664
46665 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46666 Xsed="\$SED -e 1s/^X//"
46667
46668 # A grep program that handles long lines.
46669 GREP=$lt_GREP
46670
46671 # An ERE matcher.
46672 EGREP=$lt_EGREP
46673
46674 # A literal string matcher.
46675 FGREP=$lt_FGREP
46676
46677 # A BSD- or MS-compatible name lister.
46678 NM=$lt_NM
46679
46680 # Whether we need soft or hard links.
46681 LN_S=$lt_LN_S
46682
46683 # What is the maximum length of a command?
46684 max_cmd_len=$max_cmd_len
46685
46686 # Object file suffix (normally "o").
46687 objext=$ac_objext
46688
46689 # Executable file suffix (normally "").
46690 exeext=$exeext
46691
46692 # whether the shell understands "unset".
46693 lt_unset=$lt_unset
46694
46695 # turn spaces into newlines.
46696 SP2NL=$lt_lt_SP2NL
46697
46698 # turn newlines into spaces.
46699 NL2SP=$lt_lt_NL2SP
46700
46701 # How to create reloadable object files.
46702 reload_flag=$lt_reload_flag
46703 reload_cmds=$lt_reload_cmds
46704
46705 # An object symbol dumper.
46706 OBJDUMP=$lt_OBJDUMP
46707
46708 # Method to check whether dependent libraries are shared objects.
46709 deplibs_check_method=$lt_deplibs_check_method
46710
46711 # Command to use when deplibs_check_method == "file_magic".
46712 file_magic_cmd=$lt_file_magic_cmd
46713
46714 # The archiver.
46715 AR=$lt_AR
46716 AR_FLAGS=$lt_AR_FLAGS
46717
46718 # A symbol stripping program.
46719 STRIP=$lt_STRIP
46720
46721 # Commands used to install an old-style archive.
46722 RANLIB=$lt_RANLIB
46723 old_postinstall_cmds=$lt_old_postinstall_cmds
46724 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46725
46726 # A C compiler.
46727 LTCC=$lt_CC
46728
46729 # LTCC compiler flags.
46730 LTCFLAGS=$lt_CFLAGS
46731
46732 # Take the output of nm and produce a listing of raw symbols and C names.
46733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46734
46735 # Transform the output of nm in a proper C declaration.
46736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46737
46738 # Transform the output of nm in a C name address pair.
46739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46740
46741 # Transform the output of nm in a C name address pair when lib prefix is needed.
46742 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46743
46744 # The name of the directory that contains temporary libtool files.
46745 objdir=$objdir
46746
46747 # Shell to use when invoking shell scripts.
46748 SHELL=$lt_SHELL
46749
46750 # An echo program that does not interpret backslashes.
46751 ECHO=$lt_ECHO
46752
46753 # Used to examine libraries when file_magic_cmd begins with "file".
46754 MAGIC_CMD=$MAGIC_CMD
46755
46756 # Must we lock files when doing compilation?
46757 need_locks=$lt_need_locks
46758
46759 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46760 DSYMUTIL=$lt_DSYMUTIL
46761
46762 # Tool to change global to local symbols on Mac OS X.
46763 NMEDIT=$lt_NMEDIT
46764
46765 # Tool to manipulate fat objects and archives on Mac OS X.
46766 LIPO=$lt_LIPO
46767
46768 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46769 OTOOL=$lt_OTOOL
46770
46771 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46772 OTOOL64=$lt_OTOOL64
46773
46774 # Old archive suffix (normally "a").
46775 libext=$libext
46776
46777 # Shared library suffix (normally ".so").
46778 shrext_cmds=$lt_shrext_cmds
46779
46780 # The commands to extract the exported symbol list from a shared archive.
46781 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46782
46783 # Variables whose values should be saved in libtool wrapper scripts and
46784 # restored at link time.
46785 variables_saved_for_relink=$lt_variables_saved_for_relink
46786
46787 # Do we need the "lib" prefix for modules?
46788 need_lib_prefix=$need_lib_prefix
46789
46790 # Do we need a version for libraries?
46791 need_version=$need_version
46792
46793 # Library versioning type.
46794 version_type=$version_type
46795
46796 # Shared library runtime path variable.
46797 runpath_var=$runpath_var
46798
46799 # Shared library path variable.
46800 shlibpath_var=$shlibpath_var
46801
46802 # Is shlibpath searched before the hard-coded library search path?
46803 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46804
46805 # Format of library name prefix.
46806 libname_spec=$lt_libname_spec
46807
46808 # List of archive names.  First name is the real one, the rest are links.
46809 # The last name is the one that the linker finds with -lNAME
46810 library_names_spec=$lt_library_names_spec
46811
46812 # The coded name of the library, if different from the real name.
46813 soname_spec=$lt_soname_spec
46814
46815 # Command to use after installation of a shared archive.
46816 postinstall_cmds=$lt_postinstall_cmds
46817
46818 # Command to use after uninstallation of a shared archive.
46819 postuninstall_cmds=$lt_postuninstall_cmds
46820
46821 # Commands used to finish a libtool library installation in a directory.
46822 finish_cmds=$lt_finish_cmds
46823
46824 # As "finish_cmds", except a single script fragment to be evaled but
46825 # not shown.
46826 finish_eval=$lt_finish_eval
46827
46828 # Whether we should hardcode library paths into libraries.
46829 hardcode_into_libs=$hardcode_into_libs
46830
46831 # Compile-time system search path for libraries.
46832 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46833
46834 # Run-time system search path for libraries.
46835 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46836
46837 # Whether dlopen is supported.
46838 dlopen_support=$enable_dlopen
46839
46840 # Whether dlopen of programs is supported.
46841 dlopen_self=$enable_dlopen_self
46842
46843 # Whether dlopen of statically linked programs is supported.
46844 dlopen_self_static=$enable_dlopen_self_static
46845
46846 # Commands to strip libraries.
46847 old_striplib=$lt_old_striplib
46848 striplib=$lt_striplib
46849
46850
46851 # The linker used to build libraries.
46852 LD=$lt_LD
46853
46854 # Commands used to build an old-style archive.
46855 old_archive_cmds=$lt_old_archive_cmds
46856
46857 # A language specific compiler.
46858 CC=$lt_compiler
46859
46860 # Is the compiler the GNU compiler?
46861 with_gcc=$GCC
46862
46863 # Compiler flag to turn off builtin functions.
46864 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46865
46866 # How to pass a linker flag through the compiler.
46867 wl=$lt_lt_prog_compiler_wl
46868
46869 # Additional compiler flags for building library objects.
46870 pic_flag=$lt_lt_prog_compiler_pic
46871
46872 # Compiler flag to prevent dynamic linking.
46873 link_static_flag=$lt_lt_prog_compiler_static
46874
46875 # Does compiler simultaneously support -c and -o options?
46876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46877
46878 # Whether or not to add -lc for building shared libraries.
46879 build_libtool_need_lc=$archive_cmds_need_lc
46880
46881 # Whether or not to disallow shared libs when runtime libs are static.
46882 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46883
46884 # Compiler flag to allow reflexive dlopens.
46885 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46886
46887 # Compiler flag to generate shared objects directly from archives.
46888 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46889
46890 # Whether the compiler copes with passing no objects directly.
46891 compiler_needs_object=$lt_compiler_needs_object
46892
46893 # Create an old-style archive from a shared archive.
46894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46895
46896 # Create a temporary old-style archive to link instead of a shared archive.
46897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46898
46899 # Commands used to build a shared archive.
46900 archive_cmds=$lt_archive_cmds
46901 archive_expsym_cmds=$lt_archive_expsym_cmds
46902
46903 # Commands used to build a loadable module if different from building
46904 # a shared archive.
46905 module_cmds=$lt_module_cmds
46906 module_expsym_cmds=$lt_module_expsym_cmds
46907
46908 # Whether we are building with GNU ld or not.
46909 with_gnu_ld=$lt_with_gnu_ld
46910
46911 # Flag that allows shared libraries with undefined symbols to be built.
46912 allow_undefined_flag=$lt_allow_undefined_flag
46913
46914 # Flag that enforces no undefined symbols.
46915 no_undefined_flag=$lt_no_undefined_flag
46916
46917 # Flag to hardcode \$libdir into a binary during linking.
46918 # This must work even if \$libdir does not exist
46919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46920
46921 # If ld is used when linking, flag to hardcode \$libdir into a binary
46922 # during linking.  This must work even if \$libdir does not exist.
46923 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46924
46925 # Whether we need a single "-rpath" flag with a separated argument.
46926 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46927
46928 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46929 # DIR into the resulting binary.
46930 hardcode_direct=$hardcode_direct
46931
46932 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46933 # DIR into the resulting binary and the resulting library dependency is
46934 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46935 # library is relocated.
46936 hardcode_direct_absolute=$hardcode_direct_absolute
46937
46938 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46939 # into the resulting binary.
46940 hardcode_minus_L=$hardcode_minus_L
46941
46942 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46943 # into the resulting binary.
46944 hardcode_shlibpath_var=$hardcode_shlibpath_var
46945
46946 # Set to "yes" if building a shared library automatically hardcodes DIR
46947 # into the library and all subsequent libraries and executables linked
46948 # against it.
46949 hardcode_automatic=$hardcode_automatic
46950
46951 # Set to yes if linker adds runtime paths of dependent libraries
46952 # to runtime path list.
46953 inherit_rpath=$inherit_rpath
46954
46955 # Whether libtool must link a program against all its dependency libraries.
46956 link_all_deplibs=$link_all_deplibs
46957
46958 # Fix the shell variable \$srcfile for the compiler.
46959 fix_srcfile_path=$lt_fix_srcfile_path
46960
46961 # Set to "yes" if exported symbols are required.
46962 always_export_symbols=$always_export_symbols
46963
46964 # The commands to list exported symbols.
46965 export_symbols_cmds=$lt_export_symbols_cmds
46966
46967 # Symbols that should not be listed in the preloaded symbols.
46968 exclude_expsyms=$lt_exclude_expsyms
46969
46970 # Symbols that must always be exported.
46971 include_expsyms=$lt_include_expsyms
46972
46973 # Commands necessary for linking programs (against libraries) with templates.
46974 prelink_cmds=$lt_prelink_cmds
46975
46976 # Specify filename containing input files.
46977 file_list_spec=$lt_file_list_spec
46978
46979 # How to hardcode a shared library path into an executable.
46980 hardcode_action=$hardcode_action
46981
46982 # The directories searched by this compiler when creating a shared library.
46983 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46984
46985 # Dependencies to place before and after the objects being linked to
46986 # create a shared library.
46987 predep_objects=$lt_predep_objects
46988 postdep_objects=$lt_postdep_objects
46989 predeps=$lt_predeps
46990 postdeps=$lt_postdeps
46991
46992 # The library search path used internally by the compiler when linking
46993 # a shared library.
46994 compiler_lib_search_path=$lt_compiler_lib_search_path
46995
46996 # ### END LIBTOOL CONFIG
46997
46998 _LT_EOF
46999
47000   case $host_os in
47001   aix3*)
47002     cat <<\_LT_EOF >> "$cfgfile"
47003 # AIX sometimes has problems with the GCC collect2 program.  For some
47004 # reason, if we set the COLLECT_NAMES environment variable, the problems
47005 # vanish in a puff of smoke.
47006 if test "X${COLLECT_NAMES+set}" != Xset; then
47007   COLLECT_NAMES=
47008   export COLLECT_NAMES
47009 fi
47010 _LT_EOF
47011     ;;
47012   esac
47013
47014
47015 ltmain="$ac_aux_dir/ltmain.sh"
47016
47017
47018   # We use sed instead of cat because bash on DJGPP gets confused if
47019   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
47020   # text mode, it properly converts lines to CR/LF.  This bash problem
47021   # is reportedly fixed, but why not run on old versions too?
47022   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
47023     || (rm -f "$cfgfile"; exit 1)
47024
47025   case $xsi_shell in
47026   yes)
47027     cat << \_LT_EOF >> "$cfgfile"
47028
47029 # func_dirname file append nondir_replacement
47030 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
47031 # otherwise set result to NONDIR_REPLACEMENT.
47032 func_dirname ()
47033 {
47034   case ${1} in
47035     */*) func_dirname_result="${1%/*}${2}" ;;
47036     *  ) func_dirname_result="${3}" ;;
47037   esac
47038 }
47039
47040 # func_basename file
47041 func_basename ()
47042 {
47043   func_basename_result="${1##*/}"
47044 }
47045
47046 # func_dirname_and_basename file append nondir_replacement
47047 # perform func_basename and func_dirname in a single function
47048 # call:
47049 #   dirname:  Compute the dirname of FILE.  If nonempty,
47050 #             add APPEND to the result, otherwise set result
47051 #             to NONDIR_REPLACEMENT.
47052 #             value returned in "$func_dirname_result"
47053 #   basename: Compute filename of FILE.
47054 #             value retuned in "$func_basename_result"
47055 # Implementation must be kept synchronized with func_dirname
47056 # and func_basename. For efficiency, we do not delegate to
47057 # those functions but instead duplicate the functionality here.
47058 func_dirname_and_basename ()
47059 {
47060   case ${1} in
47061     */*) func_dirname_result="${1%/*}${2}" ;;
47062     *  ) func_dirname_result="${3}" ;;
47063   esac
47064   func_basename_result="${1##*/}"
47065 }
47066
47067 # func_stripname prefix suffix name
47068 # strip PREFIX and SUFFIX off of NAME.
47069 # PREFIX and SUFFIX must not contain globbing or regex special
47070 # characters, hashes, percent signs, but SUFFIX may contain a leading
47071 # dot (in which case that matches only a dot).
47072 func_stripname ()
47073 {
47074   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
47075   # positional parameters, so assign one to ordinary parameter first.
47076   func_stripname_result=${3}
47077   func_stripname_result=${func_stripname_result#"${1}"}
47078   func_stripname_result=${func_stripname_result%"${2}"}
47079 }
47080
47081 # func_opt_split
47082 func_opt_split ()
47083 {
47084   func_opt_split_opt=${1%%=*}
47085   func_opt_split_arg=${1#*=}
47086 }
47087
47088 # func_lo2o object
47089 func_lo2o ()
47090 {
47091   case ${1} in
47092     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
47093     *)    func_lo2o_result=${1} ;;
47094   esac
47095 }
47096
47097 # func_xform libobj-or-source
47098 func_xform ()
47099 {
47100   func_xform_result=${1%.*}.lo
47101 }
47102
47103 # func_arith arithmetic-term...
47104 func_arith ()
47105 {
47106   func_arith_result=$(( $* ))
47107 }
47108
47109 # func_len string
47110 # STRING may not start with a hyphen.
47111 func_len ()
47112 {
47113   func_len_result=${#1}
47114 }
47115
47116 _LT_EOF
47117     ;;
47118   *) # Bourne compatible functions.
47119     cat << \_LT_EOF >> "$cfgfile"
47120
47121 # func_dirname file append nondir_replacement
47122 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
47123 # otherwise set result to NONDIR_REPLACEMENT.
47124 func_dirname ()
47125 {
47126   # Extract subdirectory from the argument.
47127   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
47128   if test "X$func_dirname_result" = "X${1}"; then
47129     func_dirname_result="${3}"
47130   else
47131     func_dirname_result="$func_dirname_result${2}"
47132   fi
47133 }
47134
47135 # func_basename file
47136 func_basename ()
47137 {
47138   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
47139 }
47140
47141
47142 # func_stripname prefix suffix name
47143 # strip PREFIX and SUFFIX off of NAME.
47144 # PREFIX and SUFFIX must not contain globbing or regex special
47145 # characters, hashes, percent signs, but SUFFIX may contain a leading
47146 # dot (in which case that matches only a dot).
47147 # func_strip_suffix prefix name
47148 func_stripname ()
47149 {
47150   case ${2} in
47151     .*) func_stripname_result=`$ECHO "X${3}" \
47152            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
47153     *)  func_stripname_result=`$ECHO "X${3}" \
47154            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
47155   esac
47156 }
47157
47158 # sed scripts:
47159 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
47160 my_sed_long_arg='1s/^-[^=]*=//'
47161
47162 # func_opt_split
47163 func_opt_split ()
47164 {
47165   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
47166   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
47167 }
47168
47169 # func_lo2o object
47170 func_lo2o ()
47171 {
47172   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
47173 }
47174
47175 # func_xform libobj-or-source
47176 func_xform ()
47177 {
47178   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
47179 }
47180
47181 # func_arith arithmetic-term...
47182 func_arith ()
47183 {
47184   func_arith_result=`expr "$@"`
47185 }
47186
47187 # func_len string
47188 # STRING may not start with a hyphen.
47189 func_len ()
47190 {
47191   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
47192 }
47193
47194 _LT_EOF
47195 esac
47196
47197 case $lt_shell_append in
47198   yes)
47199     cat << \_LT_EOF >> "$cfgfile"
47200
47201 # func_append var value
47202 # Append VALUE to the end of shell variable VAR.
47203 func_append ()
47204 {
47205   eval "$1+=\$2"
47206 }
47207 _LT_EOF
47208     ;;
47209   *)
47210     cat << \_LT_EOF >> "$cfgfile"
47211
47212 # func_append var value
47213 # Append VALUE to the end of shell variable VAR.
47214 func_append ()
47215 {
47216   eval "$1=\$$1\$2"
47217 }
47218
47219 _LT_EOF
47220     ;;
47221   esac
47222
47223
47224   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
47225     || (rm -f "$cfgfile"; exit 1)
47226
47227   mv -f "$cfgfile" "$ofile" ||
47228     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47229   chmod +x "$ofile"
47230
47231
47232     cat <<_LT_EOF >> "$ofile"
47233
47234 # ### BEGIN LIBTOOL TAG CONFIG: CXX
47235
47236 # The linker used to build libraries.
47237 LD=$lt_LD_CXX
47238
47239 # Commands used to build an old-style archive.
47240 old_archive_cmds=$lt_old_archive_cmds_CXX
47241
47242 # A language specific compiler.
47243 CC=$lt_compiler_CXX
47244
47245 # Is the compiler the GNU compiler?
47246 with_gcc=$GCC_CXX
47247
47248 # Compiler flag to turn off builtin functions.
47249 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
47250
47251 # How to pass a linker flag through the compiler.
47252 wl=$lt_lt_prog_compiler_wl_CXX
47253
47254 # Additional compiler flags for building library objects.
47255 pic_flag=$lt_lt_prog_compiler_pic_CXX
47256
47257 # Compiler flag to prevent dynamic linking.
47258 link_static_flag=$lt_lt_prog_compiler_static_CXX
47259
47260 # Does compiler simultaneously support -c and -o options?
47261 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
47262
47263 # Whether or not to add -lc for building shared libraries.
47264 build_libtool_need_lc=$archive_cmds_need_lc_CXX
47265
47266 # Whether or not to disallow shared libs when runtime libs are static.
47267 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
47268
47269 # Compiler flag to allow reflexive dlopens.
47270 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
47271
47272 # Compiler flag to generate shared objects directly from archives.
47273 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
47274
47275 # Whether the compiler copes with passing no objects directly.
47276 compiler_needs_object=$lt_compiler_needs_object_CXX
47277
47278 # Create an old-style archive from a shared archive.
47279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
47280
47281 # Create a temporary old-style archive to link instead of a shared archive.
47282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
47283
47284 # Commands used to build a shared archive.
47285 archive_cmds=$lt_archive_cmds_CXX
47286 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
47287
47288 # Commands used to build a loadable module if different from building
47289 # a shared archive.
47290 module_cmds=$lt_module_cmds_CXX
47291 module_expsym_cmds=$lt_module_expsym_cmds_CXX
47292
47293 # Whether we are building with GNU ld or not.
47294 with_gnu_ld=$lt_with_gnu_ld_CXX
47295
47296 # Flag that allows shared libraries with undefined symbols to be built.
47297 allow_undefined_flag=$lt_allow_undefined_flag_CXX
47298
47299 # Flag that enforces no undefined symbols.
47300 no_undefined_flag=$lt_no_undefined_flag_CXX
47301
47302 # Flag to hardcode \$libdir into a binary during linking.
47303 # This must work even if \$libdir does not exist
47304 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
47305
47306 # If ld is used when linking, flag to hardcode \$libdir into a binary
47307 # during linking.  This must work even if \$libdir does not exist.
47308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
47309
47310 # Whether we need a single "-rpath" flag with a separated argument.
47311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
47312
47313 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47314 # DIR into the resulting binary.
47315 hardcode_direct=$hardcode_direct_CXX
47316
47317 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47318 # DIR into the resulting binary and the resulting library dependency is
47319 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47320 # library is relocated.
47321 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
47322
47323 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47324 # into the resulting binary.
47325 hardcode_minus_L=$hardcode_minus_L_CXX
47326
47327 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47328 # into the resulting binary.
47329 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
47330
47331 # Set to "yes" if building a shared library automatically hardcodes DIR
47332 # into the library and all subsequent libraries and executables linked
47333 # against it.
47334 hardcode_automatic=$hardcode_automatic_CXX
47335
47336 # Set to yes if linker adds runtime paths of dependent libraries
47337 # to runtime path list.
47338 inherit_rpath=$inherit_rpath_CXX
47339
47340 # Whether libtool must link a program against all its dependency libraries.
47341 link_all_deplibs=$link_all_deplibs_CXX
47342
47343 # Fix the shell variable \$srcfile for the compiler.
47344 fix_srcfile_path=$lt_fix_srcfile_path_CXX
47345
47346 # Set to "yes" if exported symbols are required.
47347 always_export_symbols=$always_export_symbols_CXX
47348
47349 # The commands to list exported symbols.
47350 export_symbols_cmds=$lt_export_symbols_cmds_CXX
47351
47352 # Symbols that should not be listed in the preloaded symbols.
47353 exclude_expsyms=$lt_exclude_expsyms_CXX
47354
47355 # Symbols that must always be exported.
47356 include_expsyms=$lt_include_expsyms_CXX
47357
47358 # Commands necessary for linking programs (against libraries) with templates.
47359 prelink_cmds=$lt_prelink_cmds_CXX
47360
47361 # Specify filename containing input files.
47362 file_list_spec=$lt_file_list_spec_CXX
47363
47364 # How to hardcode a shared library path into an executable.
47365 hardcode_action=$hardcode_action_CXX
47366
47367 # The directories searched by this compiler when creating a shared library.
47368 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
47369
47370 # Dependencies to place before and after the objects being linked to
47371 # create a shared library.
47372 predep_objects=$lt_predep_objects_CXX
47373 postdep_objects=$lt_postdep_objects_CXX
47374 predeps=$lt_predeps_CXX
47375 postdeps=$lt_postdeps_CXX
47376
47377 # The library search path used internally by the compiler when linking
47378 # a shared library.
47379 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
47380
47381 # ### END LIBTOOL TAG CONFIG: CXX
47382 _LT_EOF
47383
47384  ;;
47385     "default-1":C)
47386     for ac_file in $CONFIG_FILES; do
47387       # Support "outfile[:infile[:infile...]]"
47388       case "$ac_file" in
47389         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
47390       esac
47391       # PO directories have a Makefile.in generated from Makefile.in.in.
47392       case "$ac_file" in */Makefile.in)
47393         # Adjust a relative srcdir.
47394         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
47395         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
47396         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
47397         # In autoconf-2.13 it is called $ac_given_srcdir.
47398         # In autoconf-2.50 it is called $srcdir.
47399         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
47400         case "$ac_given_srcdir" in
47401           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
47402           /*) top_srcdir="$ac_given_srcdir" ;;
47403           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
47404         esac
47405         # Treat a directory as a PO directory if and only if it has a
47406         # POTFILES.in file. This allows packages to have multiple PO
47407         # directories under different names or in different locations.
47408         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
47409           rm -f "$ac_dir/POTFILES"
47410           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
47411           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
47412           POMAKEFILEDEPS="POTFILES.in"
47413           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
47414           # on $ac_dir but don't depend on user-specified configuration
47415           # parameters.
47416           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
47417             # The LINGUAS file contains the set of available languages.
47418             if test -n "$OBSOLETE_ALL_LINGUAS"; then
47419               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
47420             fi
47421             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
47422             # Hide the ALL_LINGUAS assigment from automake.
47423             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
47424             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
47425           else
47426             # The set of available languages was given in configure.in.
47427             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
47428           fi
47429           # Compute POFILES
47430           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
47431           # Compute UPDATEPOFILES
47432           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
47433           # Compute DUMMYPOFILES
47434           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
47435           # Compute GMOFILES
47436           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
47437           case "$ac_given_srcdir" in
47438             .) srcdirpre= ;;
47439             *) srcdirpre='$(srcdir)/' ;;
47440           esac
47441           POFILES=
47442           UPDATEPOFILES=
47443           DUMMYPOFILES=
47444           GMOFILES=
47445           for lang in $ALL_LINGUAS; do
47446             POFILES="$POFILES $srcdirpre$lang.po"
47447             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
47448             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
47449             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
47450           done
47451           # CATALOGS depends on both $ac_dir and the user's LINGUAS
47452           # environment variable.
47453           INST_LINGUAS=
47454           if test -n "$ALL_LINGUAS"; then
47455             for presentlang in $ALL_LINGUAS; do
47456               useit=no
47457               if test "%UNSET%" != "$LINGUAS"; then
47458                 desiredlanguages="$LINGUAS"
47459               else
47460                 desiredlanguages="$ALL_LINGUAS"
47461               fi
47462               for desiredlang in $desiredlanguages; do
47463                 # Use the presentlang catalog if desiredlang is
47464                 #   a. equal to presentlang, or
47465                 #   b. a variant of presentlang (because in this case,
47466                 #      presentlang can be used as a fallback for messages
47467                 #      which are not translated in the desiredlang catalog).
47468                 case "$desiredlang" in
47469                   "$presentlang"*) useit=yes;;
47470                 esac
47471               done
47472               if test $useit = yes; then
47473                 INST_LINGUAS="$INST_LINGUAS $presentlang"
47474               fi
47475             done
47476           fi
47477           CATALOGS=
47478           if test -n "$INST_LINGUAS"; then
47479             for lang in $INST_LINGUAS; do
47480               CATALOGS="$CATALOGS $lang.gmo"
47481             done
47482           fi
47483           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
47484           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"
47485           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
47486             if test -f "$f"; then
47487               case "$f" in
47488                 *.orig | *.bak | *~) ;;
47489                 *) cat "$f" >> "$ac_dir/Makefile" ;;
47490               esac
47491             fi
47492           done
47493         fi
47494         ;;
47495       esac
47496     done ;;
47497     "default":C)
47498  ;;
47499
47500   esac
47501 done # for ac_tag
47502
47503
47504 { (exit 0); exit 0; }
47505 _ACEOF
47506 chmod +x $CONFIG_STATUS
47507 ac_clean_files=$ac_clean_files_save
47508
47509
47510 # configure is writing to config.log, and then calls config.status.
47511 # config.status does its own redirection, appending to config.log.
47512 # Unfortunately, on DOS this fails, as config.log is still kept open
47513 # by configure, so config.status won't be able to write to it; its
47514 # output is simply discarded.  So we exec the FD to /dev/null,
47515 # effectively closing config.log, so it can be properly (re)opened and
47516 # appended to by config.status.  When coming back to configure, we
47517 # need to make the FD available again.
47518 if test "$no_create" != yes; then
47519   ac_cs_success=:
47520   ac_config_status_args=
47521   test "$silent" = yes &&
47522     ac_config_status_args="$ac_config_status_args --quiet"
47523   exec 5>/dev/null
47524   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47525   exec 5>>config.log
47526   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47527   # would make configure fail if this is the last instruction.
47528   $ac_cs_success || { (exit 1); exit 1; }
47529 fi
47530
47531
47532 if test "${support_bat}" = "yes" ; then
47533    if test "x$QMAKE" = "xnone"; then
47534       { { echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
47535 echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
47536    { (exit 1); exit 1; }; }
47537    fi
47538
47539    QMAKEBIN="qmake"
47540    cd src/qt-console
47541    echo "Creating bat Makefile"
47542    touch bat
47543    chmod 755 bat
47544    rm -f Makefile
47545    $QMAKEBIN
47546    ${MAKE:-make} clean
47547    cd ${BUILD_DIR}
47548 fi
47549
47550 if test X"$GCC" = "Xyes" ; then
47551   echo "Doing make of dependencies"
47552   ${MAKE:-make} depend
47553 fi
47554
47555 cd src/qt-console
47556 chmod 755 install_conf_file build-depkgs-qt-console
47557 cd ${BUILD_DIR}
47558
47559 cd scripts
47560 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
47561 chmod 755 dvd-handler dvd-simulator
47562 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
47563 cd ..
47564
47565 c=updatedb
47566 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
47567 chmod 755 $c/update_postgresql_tables_10_to_11
47568
47569 c=src/cats
47570
47571 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
47572 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
47573
47574 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
47575 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
47576
47577 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
47578 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
47579
47580 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
47581 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
47582
47583 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
47584 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
47585
47586 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
47587 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
47588
47589
47590 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
47591 chmod 755 $c/sqlite
47592 chmod 755 $c/mysql
47593
47594 chmod 755 src/win32/build-depkgs-mingw32
47595
47596 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
47597    largefile_support="yes"
47598 fi
47599
47600 if test X"$GCC" = "Xyes" ; then
47601                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47602    if test "x${CCVERSION}" = "x" ; then
47603       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47604    fi
47605    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47606    if test x"${CXXVERSION}" = x ; then
47607       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47608    fi
47609 fi
47610
47611 # clean up any old junk
47612 echo " "
47613 echo "Cleaning up"
47614 echo " "
47615 ${MAKE:-make} clean
47616
47617 if test "x${db_type}" = "xInternal" ; then
47618    echo " "
47619    echo " "
47620    echo "You have not specified either --enable-client-only or one of the"
47621    echo "  supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
47622    echo "  This is not permitted. Please reconfigure."
47623    echo " "
47624    echo "Aborting the configuration ..."
47625    echo " "
47626    echo " "
47627    exit 1
47628 fi
47629
47630 echo "
47631 Configuration on `date`:
47632
47633    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47634    Bacula version:          ${BACULA} ${VERSION} (${DATE})
47635    Source code location:    ${srcdir}
47636    Install binaries:        ${sbindir}
47637    Install libraries:       ${libdir}
47638    Install config files:    ${sysconfdir}
47639    Scripts directory:       ${scriptdir}
47640    Archive directory:       ${archivedir}
47641    Working directory:       ${working_dir}
47642    PID directory:           ${piddir}
47643    Subsys directory:        ${subsysdir}
47644    Man directory:           ${mandir}
47645    Data directory:          ${datarootdir}
47646    Plugin directory:        ${plugindir}
47647    C Compiler:              ${CC} ${CCVERSION}
47648    C++ Compiler:            ${CXX} ${CXXVERSION}
47649    Compiler flags:          ${WCFLAGS} ${CFLAGS}
47650    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
47651    Libraries:               ${LIBS}
47652    Statically Linked Tools: ${support_static_tools}
47653    Statically Linked FD:    ${support_static_fd}
47654    Statically Linked SD:    ${support_static_sd}
47655    Statically Linked DIR:   ${support_static_dir}
47656    Statically Linked CONS:  ${support_static_cons}
47657    Database type:           ${db_type}
47658    Database port:           ${db_port}
47659    Database lib:            ${DB_LIBS}
47660    Database name:           ${db_name}
47661    Database user:           ${db_user}
47662
47663    Job Output Email:        ${job_email}
47664    Traceback Email:         ${dump_email}
47665    SMTP Host Address:       ${smtp_host}
47666
47667    Director Port:           ${dir_port}
47668    File daemon Port:        ${fd_port}
47669    Storage daemon Port:     ${sd_port}
47670
47671    Director User:           ${dir_user}
47672    Director Group:          ${dir_group}
47673    Storage Daemon User:     ${sd_user}
47674    Storage DaemonGroup:     ${sd_group}
47675    File Daemon User:        ${fd_user}
47676    File Daemon Group:       ${fd_group}
47677
47678    SQL binaries Directory   ${SQL_BINDIR}
47679
47680    Large file support:      $largefile_support
47681    Bacula conio support:    ${got_conio} ${CONS_LIBS}
47682    readline support:        ${got_readline} ${PRTREADLINE_SRC}
47683    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
47684    TLS support:             ${support_tls}
47685    Encryption support:      ${support_crypto}
47686    ZLIB support:            ${have_zlib}
47687    enable-smartalloc:       ${support_smartalloc}
47688    enable-lockmgr:          ${support_lockmgr}
47689    bat support:             ${support_bat}
47690    enable-gnome:            ${support_gnome} ${gnome_version}
47691    enable-bwx-console:      ${support_wx_console} ${wx_version}
47692    enable-tray-monitor:     ${support_tray_monitor}
47693    client-only:             ${build_client_only}
47694    build-dird:              ${build_dird}
47695    build-stored:            ${build_stored}
47696    Plugin support:          ${have_plugins}
47697    AFS support:             ${have_afs}
47698    ACL support:             ${have_acl}
47699    XATTR support:           ${have_xattr}
47700    Python support:          ${support_python} ${PYTHON_LIBS}
47701    Batch insert enabled:    ${support_batch_insert}
47702
47703   " > config.out
47704
47705 # create a small shell script useful for support with
47706 # configure options and config.out info
47707 cat > scripts/bacula_config << EOF
47708 #!/bin/sh
47709 cat << __EOC__
47710 $ $0 $ac_configure_args
47711 EOF
47712 cat config.out >> scripts/bacula_config
47713 echo __EOC__ >> scripts/bacula_config
47714 chmod 755 scripts/bacula_config
47715
47716 cat config.out
47717
47718 # Display a warning message if postgresql client lib is <= 8.1
47719 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47720         -a x$support_batch_insert = xyes
47721 then
47722         echo "WARNING: Your PostgreSQL client library is too old to detect "
47723         echo " if it was compiled with --enable-thread-safety, consider to"
47724         echo " upgrade it in order to avoid problems with Batch insert mode"
47725         echo
47726 fi