]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Merge branch 'master' into mvw/1361
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 BUILD_DIR
803 TOP_DIR
804 WIN32BUILDDIR
805 WIN32MAINDIR
806 WIN32TOPDIR
807 TRUEPRG
808 FALSEPRG
809 VERSION
810 DATE
811 LSMDATE
812 BACULA
813 post_host
814 CC
815 CFLAGS
816 LDFLAGS
817 CPPFLAGS
818 ac_ct_CC
819 EXEEXT
820 OBJEXT
821 CXX
822 CXXFLAGS
823 ac_ct_CXX
824 CPP
825 GREP
826 EGREP
827 INSTALL_PROGRAM
828 INSTALL_SCRIPT
829 INSTALL_DATA
830 MV
831 REMOVE
832 CP
833 SED
834 ECHO
835 CMP
836 TBL
837 AR
838 OPENSSL
839 MTX
840 DD
841 MKISOFS
842 PYTHON
843 GROWISOFS
844 DVDRWMEDIAINFO
845 DVDRWFORMAT
846 PKGCONFIG
847 QMAKE
848 QMAKEQT4
849 GMAKE
850 WXCONFIG
851 WXFLAGS
852 CDRECORD
853 PIDOF
854 AWK
855 ARFLAGS
856 MAKE_SHELL
857 LOCAL_LIBS
858 LOCAL_CFLAGS
859 LOCAL_LDFLAGS
860 LOCAL_DEFS
861 LIBTOOL
862 build
863 build_cpu
864 build_vendor
865 build_os
866 host
867 host_cpu
868 host_vendor
869 host_os
870 FGREP
871 LD
872 DUMPBIN
873 ac_ct_DUMPBIN
874 NM
875 LN_S
876 OBJDUMP
877 STRIP
878 RANLIB
879 lt_ECHO
880 DSYMUTIL
881 NMEDIT
882 LIPO
883 OTOOL
884 OTOOL64
885 CXXCPP
886 DEFAULT_OBJECT_TYPE
887 DEFAULT_ARCHIVE_TYPE
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
891 LIBTOOL_CLEAN_TARGET
892 QMAKE_LIBTOOL
893 INCLUDE_INSTALL_TARGET
894 INCLUDE_UNINSTALL_TARGET
895 HAVE_SUN_OS_TRUE
896 HAVE_SUN_OS_FALSE
897 HAVE_OSF1_OS_TRUE
898 HAVE_OSF1_OS_FALSE
899 HAVE_AIX_OS_TRUE
900 HAVE_AIX_OS_FALSE
901 HAVE_HPUX_OS_TRUE
902 HAVE_HPUX_OS_FALSE
903 HAVE_LINUX_OS_TRUE
904 HAVE_LINUX_OS_FALSE
905 HAVE_FREEBSD_OS_TRUE
906 HAVE_FREEBSD_OS_FALSE
907 HAVE_NETBSD_OS_TRUE
908 HAVE_NETBSD_OS_FALSE
909 HAVE_OPENBSD_OS_TRUE
910 HAVE_OPENBSD_OS_FALSE
911 HAVE_BSDI_OS_TRUE
912 HAVE_BSDI_OS_FALSE
913 HAVE_SGI_OS_TRUE
914 HAVE_SGI_OS_FALSE
915 HAVE_IRIX_OS_TRUE
916 HAVE_IRIX_OS_FALSE
917 HAVE_DARWIN_OS_TRUE
918 HAVE_DARWIN_OS_FALSE
919 SET_MAKE
920 MKINSTALLDIRS
921 USE_NLS
922 MSGFMT
923 GMSGFMT
924 XGETTEXT
925 MSGMERGE
926 INTL_MACOSX_LIBS
927 LIBICONV
928 LTLIBICONV
929 INTLLIBS
930 LIBINTL
931 LTLIBINTL
932 POSUB
933 GLIBC2
934 ALLOCA
935 GLIBC21
936 HAVE_POSIX_PRINTF
937 HAVE_ASPRINTF
938 HAVE_SNPRINTF
939 HAVE_WPRINTF
940 INTLBISON
941 BUILD_INCLUDED_LIBINTL
942 USE_INCLUDED_LIBINTL
943 CATOBJEXT
944 DATADIRNAME
945 INSTOBJEXT
946 GENCAT
947 INTLOBJS
948 INTL_LIBTOOL_SUFFIX_PREFIX
949 BAT_DIR
950 QWT_INC
951 QWT_LDFLAGS
952 QWT_LIB
953 QWT
954 WXCONS_CPPFLAGS
955 WXCONS_LDFLAGS
956 WX_DIR
957 TRAY_MONITOR_CPPFLAGS
958 TRAY_MONITOR_LDFLAGS
959 TRAY_MONITOR_DIR
960 TTOOL_LDFLAGS
961 STATIC_FD
962 STATIC_SD
963 STATIC_DIR
964 STATIC_CONS
965 STATIC_GNOME_CONS
966 STATIC_WX_CONS
967 ALL_DIRS
968 DIRD_DIR
969 DIR_TOOLS
970 STORED_DIR
971 CONS_INC
972 CONS_OBJ
973 CONS_SRC
974 CONS_LIBS
975 CONS_LDFLAGS
976 READLINE_SRC
977 PYTHON_LIBS
978 PYTHON_INCDIR
979 OPENSSL_LIBS
980 OPENSSL_INC
981 working_dir
982 archivedir
983 basename
984 hostname
985 scriptdir
986 bsrdir
987 logdir
988 plugindir
989 dump_email
990 job_email
991 smtp_host
992 piddir
993 subsysdir
994 baseport
995 dir_port
996 fd_port
997 sd_port
998 dir_password
999 fd_password
1000 sd_password
1001 mon_dir_password
1002 mon_fd_password
1003 mon_sd_password
1004 db_name
1005 db_user
1006 db_password
1007 db_port
1008 dir_user
1009 dir_group
1010 sd_user
1011 sd_group
1012 fd_user
1013 fd_group
1014 SBINPERM
1015 SQL_LFLAGS
1016 SQL_INCLUDE
1017 SQL_BINDIR
1018 DBI_DBD_DRIVERDIR
1019 uncomment_dbi
1020 DB_PROG
1021 DB_PROG_LIB
1022 cats
1023 DB_TYPE
1024 GETCONF
1025 XMKMF
1026 X_CFLAGS
1027 X_PRE_LIBS
1028 X_LIBS
1029 X_EXTRA_LIBS
1030 LIBOBJS
1031 CAP_LIBS
1032 FDLIBS
1033 DEBUG
1034 DINCLUDE
1035 DLIB
1036 DB_LIBS
1037 WCFLAGS
1038 WLDFLAGS
1039 WRAPLIBS
1040 OBJLIST
1041 TAPEDRIVE
1042 PSCMD
1043 WIN32
1044 MACOSX
1045 DISTNAME
1046 DISTVER
1047 LTLIBOBJS'
1048 ac_subst_files='MCOMMON'
1049       ac_precious_vars='build_alias
1050 host_alias
1051 target_alias
1052 CC
1053 CFLAGS
1054 LDFLAGS
1055 LIBS
1056 CPPFLAGS
1057 CXX
1058 CXXFLAGS
1059 CCC
1060 CPP
1061 WXCONFIG
1062 WXFLAGS
1063 CXXCPP
1064 XMKMF'
1065
1066
1067 # Initialize some variables set by options.
1068 ac_init_help=
1069 ac_init_version=false
1070 # The variables have the same names as the options, with
1071 # dashes changed to underlines.
1072 cache_file=/dev/null
1073 exec_prefix=NONE
1074 no_create=
1075 no_recursion=
1076 prefix=NONE
1077 program_prefix=NONE
1078 program_suffix=NONE
1079 program_transform_name=s,x,x,
1080 silent=
1081 site=
1082 srcdir=
1083 verbose=
1084 x_includes=NONE
1085 x_libraries=NONE
1086
1087 # Installation directory options.
1088 # These are left unexpanded so users can "make install exec_prefix=/foo"
1089 # and all the variables that are supposed to be based on exec_prefix
1090 # by default will actually change.
1091 # Use braces instead of parens because sh, perl, etc. also accept them.
1092 # (The list follows the same order as the GNU Coding Standards.)
1093 bindir='${exec_prefix}/bin'
1094 sbindir='${exec_prefix}/sbin'
1095 libexecdir='${exec_prefix}/libexec'
1096 datarootdir='${prefix}/share'
1097 datadir='${datarootdir}'
1098 sysconfdir='${prefix}/etc'
1099 sharedstatedir='${prefix}/com'
1100 localstatedir='${prefix}/var'
1101 includedir='${prefix}/include'
1102 oldincludedir='/usr/include'
1103 docdir='${datarootdir}/doc/${PACKAGE}'
1104 infodir='${datarootdir}/info'
1105 htmldir='${docdir}'
1106 dvidir='${docdir}'
1107 pdfdir='${docdir}'
1108 psdir='${docdir}'
1109 libdir='${exec_prefix}/lib'
1110 localedir='${datarootdir}/locale'
1111 mandir='${datarootdir}/man'
1112
1113 ac_prev=
1114 ac_dashdash=
1115 for ac_option
1116 do
1117   # If the previous option needs an argument, assign it.
1118   if test -n "$ac_prev"; then
1119     eval $ac_prev=\$ac_option
1120     ac_prev=
1121     continue
1122   fi
1123
1124   case $ac_option in
1125   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1126   *)    ac_optarg=yes ;;
1127   esac
1128
1129   # Accept the important Cygnus configure options, so we can diagnose typos.
1130
1131   case $ac_dashdash$ac_option in
1132   --)
1133     ac_dashdash=yes ;;
1134
1135   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1136     ac_prev=bindir ;;
1137   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1138     bindir=$ac_optarg ;;
1139
1140   -build | --build | --buil | --bui | --bu)
1141     ac_prev=build_alias ;;
1142   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1143     build_alias=$ac_optarg ;;
1144
1145   -cache-file | --cache-file | --cache-fil | --cache-fi \
1146   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1147     ac_prev=cache_file ;;
1148   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1149   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1150     cache_file=$ac_optarg ;;
1151
1152   --config-cache | -C)
1153     cache_file=config.cache ;;
1154
1155   -datadir | --datadir | --datadi | --datad)
1156     ac_prev=datadir ;;
1157   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1158     datadir=$ac_optarg ;;
1159
1160   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1161   | --dataroo | --dataro | --datar)
1162     ac_prev=datarootdir ;;
1163   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1164   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1165     datarootdir=$ac_optarg ;;
1166
1167   -disable-* | --disable-*)
1168     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1169     # Reject names that are not valid shell variable names.
1170     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1172    { (exit 1); exit 1; }; }
1173     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1174     eval enable_$ac_feature=no ;;
1175
1176   -docdir | --docdir | --docdi | --doc | --do)
1177     ac_prev=docdir ;;
1178   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1179     docdir=$ac_optarg ;;
1180
1181   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1182     ac_prev=dvidir ;;
1183   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1184     dvidir=$ac_optarg ;;
1185
1186   -enable-* | --enable-*)
1187     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1191    { (exit 1); exit 1; }; }
1192     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1193     eval enable_$ac_feature=\$ac_optarg ;;
1194
1195   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1196   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1197   | --exec | --exe | --ex)
1198     ac_prev=exec_prefix ;;
1199   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1200   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1201   | --exec=* | --exe=* | --ex=*)
1202     exec_prefix=$ac_optarg ;;
1203
1204   -gas | --gas | --ga | --g)
1205     # Obsolete; use --with-gas.
1206     with_gas=yes ;;
1207
1208   -help | --help | --hel | --he | -h)
1209     ac_init_help=long ;;
1210   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1211     ac_init_help=recursive ;;
1212   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1213     ac_init_help=short ;;
1214
1215   -host | --host | --hos | --ho)
1216     ac_prev=host_alias ;;
1217   -host=* | --host=* | --hos=* | --ho=*)
1218     host_alias=$ac_optarg ;;
1219
1220   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1221     ac_prev=htmldir ;;
1222   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1223   | --ht=*)
1224     htmldir=$ac_optarg ;;
1225
1226   -includedir | --includedir | --includedi | --included | --include \
1227   | --includ | --inclu | --incl | --inc)
1228     ac_prev=includedir ;;
1229   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1230   | --includ=* | --inclu=* | --incl=* | --inc=*)
1231     includedir=$ac_optarg ;;
1232
1233   -infodir | --infodir | --infodi | --infod | --info | --inf)
1234     ac_prev=infodir ;;
1235   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1236     infodir=$ac_optarg ;;
1237
1238   -libdir | --libdir | --libdi | --libd)
1239     ac_prev=libdir ;;
1240   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1241     libdir=$ac_optarg ;;
1242
1243   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1244   | --libexe | --libex | --libe)
1245     ac_prev=libexecdir ;;
1246   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1247   | --libexe=* | --libex=* | --libe=*)
1248     libexecdir=$ac_optarg ;;
1249
1250   -localedir | --localedir | --localedi | --localed | --locale)
1251     ac_prev=localedir ;;
1252   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1253     localedir=$ac_optarg ;;
1254
1255   -localstatedir | --localstatedir | --localstatedi | --localstated \
1256   | --localstate | --localstat | --localsta | --localst | --locals)
1257     ac_prev=localstatedir ;;
1258   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1259   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1260     localstatedir=$ac_optarg ;;
1261
1262   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1263     ac_prev=mandir ;;
1264   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1265     mandir=$ac_optarg ;;
1266
1267   -nfp | --nfp | --nf)
1268     # Obsolete; use --without-fp.
1269     with_fp=no ;;
1270
1271   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1272   | --no-cr | --no-c | -n)
1273     no_create=yes ;;
1274
1275   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1276   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1277     no_recursion=yes ;;
1278
1279   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1280   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1281   | --oldin | --oldi | --old | --ol | --o)
1282     ac_prev=oldincludedir ;;
1283   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1284   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1285   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1286     oldincludedir=$ac_optarg ;;
1287
1288   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1289     ac_prev=prefix ;;
1290   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1291     prefix=$ac_optarg ;;
1292
1293   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1294   | --program-pre | --program-pr | --program-p)
1295     ac_prev=program_prefix ;;
1296   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1297   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1298     program_prefix=$ac_optarg ;;
1299
1300   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1301   | --program-suf | --program-su | --program-s)
1302     ac_prev=program_suffix ;;
1303   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1304   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1305     program_suffix=$ac_optarg ;;
1306
1307   -program-transform-name | --program-transform-name \
1308   | --program-transform-nam | --program-transform-na \
1309   | --program-transform-n | --program-transform- \
1310   | --program-transform | --program-transfor \
1311   | --program-transfo | --program-transf \
1312   | --program-trans | --program-tran \
1313   | --progr-tra | --program-tr | --program-t)
1314     ac_prev=program_transform_name ;;
1315   -program-transform-name=* | --program-transform-name=* \
1316   | --program-transform-nam=* | --program-transform-na=* \
1317   | --program-transform-n=* | --program-transform-=* \
1318   | --program-transform=* | --program-transfor=* \
1319   | --program-transfo=* | --program-transf=* \
1320   | --program-trans=* | --program-tran=* \
1321   | --progr-tra=* | --program-tr=* | --program-t=*)
1322     program_transform_name=$ac_optarg ;;
1323
1324   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1325     ac_prev=pdfdir ;;
1326   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1327     pdfdir=$ac_optarg ;;
1328
1329   -psdir | --psdir | --psdi | --psd | --ps)
1330     ac_prev=psdir ;;
1331   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1332     psdir=$ac_optarg ;;
1333
1334   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1335   | -silent | --silent | --silen | --sile | --sil)
1336     silent=yes ;;
1337
1338   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1339     ac_prev=sbindir ;;
1340   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1341   | --sbi=* | --sb=*)
1342     sbindir=$ac_optarg ;;
1343
1344   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1345   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1346   | --sharedst | --shareds | --shared | --share | --shar \
1347   | --sha | --sh)
1348     ac_prev=sharedstatedir ;;
1349   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1350   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1351   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1352   | --sha=* | --sh=*)
1353     sharedstatedir=$ac_optarg ;;
1354
1355   -site | --site | --sit)
1356     ac_prev=site ;;
1357   -site=* | --site=* | --sit=*)
1358     site=$ac_optarg ;;
1359
1360   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1361     ac_prev=srcdir ;;
1362   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1363     srcdir=$ac_optarg ;;
1364
1365   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1366   | --syscon | --sysco | --sysc | --sys | --sy)
1367     ac_prev=sysconfdir ;;
1368   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1369   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1370     sysconfdir=$ac_optarg ;;
1371
1372   -target | --target | --targe | --targ | --tar | --ta | --t)
1373     ac_prev=target_alias ;;
1374   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1375     target_alias=$ac_optarg ;;
1376
1377   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1378     verbose=yes ;;
1379
1380   -version | --version | --versio | --versi | --vers | -V)
1381     ac_init_version=: ;;
1382
1383   -with-* | --with-*)
1384     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1385     # Reject names that are not valid shell variable names.
1386     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387       { echo "$as_me: error: invalid package name: $ac_package" >&2
1388    { (exit 1); exit 1; }; }
1389     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1390     eval with_$ac_package=\$ac_optarg ;;
1391
1392   -without-* | --without-*)
1393     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1394     # Reject names that are not valid shell variable names.
1395     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396       { echo "$as_me: error: invalid package name: $ac_package" >&2
1397    { (exit 1); exit 1; }; }
1398     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1399     eval with_$ac_package=no ;;
1400
1401   --x)
1402     # Obsolete; use --with-x.
1403     with_x=yes ;;
1404
1405   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1406   | --x-incl | --x-inc | --x-in | --x-i)
1407     ac_prev=x_includes ;;
1408   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1409   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1410     x_includes=$ac_optarg ;;
1411
1412   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1413   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1414     ac_prev=x_libraries ;;
1415   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1416   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1417     x_libraries=$ac_optarg ;;
1418
1419   -*) { echo "$as_me: error: unrecognized option: $ac_option
1420 Try \`$0 --help' for more information." >&2
1421    { (exit 1); exit 1; }; }
1422     ;;
1423
1424   *=*)
1425     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1426     # Reject names that are not valid shell variable names.
1427     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1428       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1429    { (exit 1); exit 1; }; }
1430     eval $ac_envvar=\$ac_optarg
1431     export $ac_envvar ;;
1432
1433   *)
1434     # FIXME: should be removed in autoconf 3.0.
1435     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1436     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1437       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1438     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1439     ;;
1440
1441   esac
1442 done
1443
1444 if test -n "$ac_prev"; then
1445   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1446   { echo "$as_me: error: missing argument to $ac_option" >&2
1447    { (exit 1); exit 1; }; }
1448 fi
1449
1450 # Be sure to have absolute directory names.
1451 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452                 datadir sysconfdir sharedstatedir localstatedir includedir \
1453                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454                 libdir localedir mandir
1455 do
1456   eval ac_val=\$$ac_var
1457   case $ac_val in
1458     [\\/$]* | ?:[\\/]* )  continue;;
1459     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1460   esac
1461   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1462    { (exit 1); exit 1; }; }
1463 done
1464
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1468 build=$build_alias
1469 host=$host_alias
1470 target=$target_alias
1471
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x; then
1474   if test "x$build_alias" = x; then
1475     cross_compiling=maybe
1476     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1477     If a cross compiler is detected then cross compile mode will be used." >&2
1478   elif test "x$build_alias" != "x$host_alias"; then
1479     cross_compiling=yes
1480   fi
1481 fi
1482
1483 ac_tool_prefix=
1484 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1485
1486 test "$silent" = yes && exec 6>/dev/null
1487
1488
1489 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di=`ls -di .` &&
1491 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1492   { echo "$as_me: error: Working directory cannot be determined" >&2
1493    { (exit 1); exit 1; }; }
1494 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1495   { echo "$as_me: error: pwd does not report name of working directory" >&2
1496    { (exit 1); exit 1; }; }
1497
1498
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501   ac_srcdir_defaulted=yes
1502   # Try the directory containing this script, then the parent directory.
1503   ac_confdir=`$as_dirname -- "$0" ||
1504 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505          X"$0" : 'X\(//\)[^/]' \| \
1506          X"$0" : 'X\(//\)$' \| \
1507          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1508 echo X"$0" |
1509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\/\)[^/].*/{
1514             s//\1/
1515             q
1516           }
1517           /^X\(\/\/\)$/{
1518             s//\1/
1519             q
1520           }
1521           /^X\(\/\).*/{
1522             s//\1/
1523             q
1524           }
1525           s/.*/./; q'`
1526   srcdir=$ac_confdir
1527   if test ! -r "$srcdir/$ac_unique_file"; then
1528     srcdir=..
1529   fi
1530 else
1531   ac_srcdir_defaulted=no
1532 fi
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1536    { (exit 1); exit 1; }; }
1537 fi
1538 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1539 ac_abs_confdir=`(
1540         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1541    { (exit 1); exit 1; }; }
1542         pwd)`
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1545   srcdir=.
1546 fi
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1550 case $srcdir in
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1552 esac
1553 for ac_var in $ac_precious_vars; do
1554   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555   eval ac_env_${ac_var}_value=\$${ac_var}
1556   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558 done
1559
1560 #
1561 # Report the --help message.
1562 #
1563 if test "$ac_init_help" = "long"; then
1564   # Omit some internal or obsolete options to make the list less imposing.
1565   # This message is too long to be a string in the A/UX 3.1 sh.
1566   cat <<_ACEOF
1567 \`configure' configures this package to adapt to many kinds of systems.
1568
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1570
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE.  See below for descriptions of some of the useful variables.
1573
1574 Defaults for the options are specified in brackets.
1575
1576 Configuration:
1577   -h, --help              display this help and exit
1578       --help=short        display options specific to this package
1579       --help=recursive    display the short help of all the included packages
1580   -V, --version           display version information and exit
1581   -q, --quiet, --silent   do not print \`checking...' messages
1582       --cache-file=FILE   cache test results in FILE [disabled]
1583   -C, --config-cache      alias for \`--cache-file=config.cache'
1584   -n, --no-create         do not create output files
1585       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1586
1587 Installation directories:
1588   --prefix=PREFIX         install architecture-independent files in PREFIX
1589                           [$ac_default_prefix]
1590   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1591                           [PREFIX]
1592
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1597
1598 For better control, use the options below.
1599
1600 Fine tuning of the installation directories:
1601   --bindir=DIR           user executables [EPREFIX/bin]
1602   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1603   --libexecdir=DIR       program executables [EPREFIX/libexec]
1604   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1605   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1606   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1607   --libdir=DIR           object code libraries [EPREFIX/lib]
1608   --includedir=DIR       C header files [PREFIX/include]
1609   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1610   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1611   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1612   --infodir=DIR          info documentation [DATAROOTDIR/info]
1613   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1614   --mandir=DIR           man documentation [DATAROOTDIR/man]
1615   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1616   --htmldir=DIR          html documentation [DOCDIR]
1617   --dvidir=DIR           dvi documentation [DOCDIR]
1618   --pdfdir=DIR           pdf documentation [DOCDIR]
1619   --psdir=DIR            ps documentation [DOCDIR]
1620 _ACEOF
1621
1622   cat <<\_ACEOF
1623
1624 X features:
1625   --x-includes=DIR    X include files are in DIR
1626   --x-libraries=DIR   X library files are in DIR
1627
1628 System types:
1629   --build=BUILD     configure for building on BUILD [guessed]
1630   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1631 _ACEOF
1632 fi
1633
1634 if test -n "$ac_init_help"; then
1635
1636   cat <<\_ACEOF
1637
1638 Optional Features:
1639   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1640   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1641   --enable-libtool        enable building using GNU libtool [default=yes]
1642   --enable-shared[=PKGS]  build shared libraries [default=yes]
1643   --enable-static[=PKGS]  build static libraries [default=no]
1644   --enable-fast-install[=PKGS]
1645                           optimize for fast installation [default=yes]
1646   --disable-libtool-lock  avoid locking (might break parallel builds)
1647   --enable-includes       enable installing of include files [default=no]
1648   --disable-nls           do not use Native Language Support
1649   --disable-rpath         do not hardcode runtime library paths
1650   --enable-gnome          enable build of bgnome-console GUI [default=no]
1651   --enable-bat            enable build of bat Qt4 GUI [default=no]
1652   --enable-bwx-console    enable build of wxWidgets console [default=no]
1653   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1654                           KDE [default=no]
1655   --enable-smartalloc     enable smartalloc debugging support [default=no]
1656   --enable-lockmgr        enable lock manager support [default=no]
1657   --enable-static-tools   enable static tape tools [default=no]
1658   --enable-static-fd      enable static File daemon [default=no]
1659   --enable-static-sd      enable static Storage daemon [default=no]
1660   --enable-static-dir     enable static Director [default=no]
1661   --enable-static-cons    enable static Console [default=no]
1662   --enable-client-only    build client (File daemon) only [default=no]
1663   --enable-build-dird     enable building of dird (Director) [default=yes]
1664   --enable-build-stored   enable building of stored (Storage daemon)
1665                           [default=yes]
1666   --disable-conio         disable conio support [default=no]
1667   --enable-ipv6           enable ipv6 support [default=yes]
1668   --disable-readline      disable readline support [default=yes]
1669   --enable-batch-insert   enable the DB batch insert code [default=no]
1670   --disable-largefile     omit support for large files
1671   --disable-acl           disable acl support [default=auto]
1672   --disable-xattr         disable xattr support [default=auto]
1673
1674 Optional Packages:
1675   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1676   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1677   --with-pic              try to use only PIC/non-PIC objects [default=use
1678                           both]
1679   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1680   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1681   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1682   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1683   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1684   --without-libintl-prefix     don't search for libintl in includedir and libdir
1685   --with-included-gettext use the GNU gettext library included here
1686   --with-qwt[=DIR]        specify qwt library directory
1687   --with-readline[=DIR]   specify readline library directory
1688   --with-python[=DIR]     Include Python support. DIR is the Python base
1689                           install directory, default is to search through a
1690                           number of common places for the Python files.
1691   --with-tcp-wrappers[=DIR]
1692                           enable tcpwrappers support
1693   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1694   --with-working-dir=PATH specify path of Bacula working directory
1695   --with-archivedir=PATH  specify path of SD archive directory
1696   --with-basename=RESNAME specify base resource name for daemons
1697   --with-hostname=RESNAME specify host name for daemons
1698   --with-scriptdir=PATH   specify path of Bacula scripts directory
1699   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1700   --with-logdir=PATH      specify path of Bacula logs directory
1701   --with-plugindir=PATH   specify path of Bacula plugins directory
1702   --with-dump-email=EMAIL dump email address
1703   --with-job-email=EMAIL  job output email address
1704   --with-smtp-host=HOST   SMTP mail host address
1705   --with-pid-dir=PATH     specify location of Bacula pid files
1706   --with-subsys-dir=PATH  specify location of Bacula subsys file
1707   --with-baseport=PORT    specify base port address for daemons
1708   --with-dir-password=PASSWORD
1709                           specify Director's password
1710   --with-fd-password=PASSWORD
1711                           specify Client's password
1712   --with-sd-password=PASSWORD
1713                           specify Storage daemon's password
1714   --with-mon-dir-password=PASSWORD
1715                           specify Director's password used by the monitor
1716   --with-mon-fd-password=PASSWORD
1717                           specify Client's password used by the monitor
1718   --with-mon-sd-password=PASSWORD
1719                           specify Storage daemon's password used by the
1720                           monitor
1721   --with-db-name=DBNAME   specify database name [default=bacula]
1722   --with-db-user=UNAME    specify database user [default=bacula]
1723   --with-db-password=PWD  specify database password [default=*none*]
1724   --with-db-port=DBPORT   specify a database port [default=null]
1725   --with-dir-user=USER    specify user for Director daemon
1726   --with-dir-group=GROUP  specify group for Director daemon
1727   --with-sd-user=USER     specify user for Storage daemon
1728   --with-sd-group=GROUP   specify group for Storage daemon
1729   --with-fd-user=USER     specify user for File daemon
1730   --with-fd-group=GROUP   specify group for File daemon
1731   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1732   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1733                           base install directory, [default=/usr/local/pgsql]
1734   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1735                           directory, default is to search through a number of
1736                           common places for the MySQL files.
1737   --with-embedded-mysql[=DIR]
1738                           Include MySQL support. DIR is the MySQL base install
1739                           directory, default is to search through a number of
1740                           common places for the MySQL files.
1741   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1742                           install directory, default is to search through a
1743                           number of common places for the SQLite3 files.
1744   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1745                           install directory, default is to search through a
1746                           number of common places for the SQLite files.
1747   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1748                           directory, default is to search through a number of
1749                           common places for the DBI files.
1750   --with-dbi-driver[=DRIVER]
1751                           Suport for DBI driver. DRIVER is the one DBI driver
1752                           like Mysql, Postgresql, others. Default is to not
1753                           configure any driver.
1754   --with-x                use the X Window System
1755
1756 Some influential environment variables:
1757   CC          C compiler command
1758   CFLAGS      C compiler flags
1759   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1760               nonstandard directory <lib dir>
1761   LIBS        libraries to pass to the linker, e.g. -l<library>
1762   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1763               you have headers in a nonstandard directory <include dir>
1764   CXX         C++ compiler command
1765   CXXFLAGS    C++ compiler flags
1766   CPP         C preprocessor
1767   WXCONFIG    wx-config command. On some systems, you must set it to
1768               wx-config-2.6 to use wxWidgets 2.6.
1769   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1770   CXXCPP      C++ preprocessor
1771   XMKMF       Path to xmkmf, Makefile generator for X Window System
1772
1773 Use these variables to override the choices made by `configure' or to help
1774 it to find libraries and programs with nonstandard names/locations.
1775
1776 _ACEOF
1777 ac_status=$?
1778 fi
1779
1780 if test "$ac_init_help" = "recursive"; then
1781   # If there are subdirs, report their specific --help.
1782   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1783     test -d "$ac_dir" || continue
1784     ac_builddir=.
1785
1786 case "$ac_dir" in
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788 *)
1789   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1790   # A ".." for each directory in $ac_dir_suffix.
1791   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1792   case $ac_top_builddir_sub in
1793   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1795   esac ;;
1796 esac
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1801
1802 case $srcdir in
1803   .)  # We are building in place.
1804     ac_srcdir=.
1805     ac_top_srcdir=$ac_top_builddir_sub
1806     ac_abs_top_srcdir=$ac_pwd ;;
1807   [\\/]* | ?:[\\/]* )  # Absolute name.
1808     ac_srcdir=$srcdir$ac_dir_suffix;
1809     ac_top_srcdir=$srcdir
1810     ac_abs_top_srcdir=$srcdir ;;
1811   *) # Relative name.
1812     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813     ac_top_srcdir=$ac_top_build_prefix$srcdir
1814     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1815 esac
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1817
1818     cd "$ac_dir" || { ac_status=$?; continue; }
1819     # Check for guested configure.
1820     if test -f "$ac_srcdir/configure.gnu"; then
1821       echo &&
1822       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823     elif test -f "$ac_srcdir/configure"; then
1824       echo &&
1825       $SHELL "$ac_srcdir/configure" --help=recursive
1826     else
1827       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1828     fi || ac_status=$?
1829     cd "$ac_pwd" || { ac_status=$?; break; }
1830   done
1831 fi
1832
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1835   cat <<\_ACEOF
1836 configure
1837 generated by GNU Autoconf 2.61
1838
1839 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1840 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1841 This configure script is free software; the Free Software Foundation
1842 gives unlimited permission to copy, distribute and modify it.
1843 _ACEOF
1844   exit
1845 fi
1846 cat >config.log <<_ACEOF
1847 This file contains any messages produced by compilers while
1848 running configure, to aid debugging if configure makes a mistake.
1849
1850 It was created by $as_me, which was
1851 generated by GNU Autoconf 2.61.  Invocation command line was
1852
1853   $ $0 $@
1854
1855 _ACEOF
1856 exec 5>>config.log
1857 {
1858 cat <<_ASUNAME
1859 ## --------- ##
1860 ## Platform. ##
1861 ## --------- ##
1862
1863 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1868
1869 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1871
1872 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1873 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1874 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1876 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1877 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1878 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1879
1880 _ASUNAME
1881
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885   IFS=$as_save_IFS
1886   test -z "$as_dir" && as_dir=.
1887   echo "PATH: $as_dir"
1888 done
1889 IFS=$as_save_IFS
1890
1891 } >&5
1892
1893 cat >&5 <<_ACEOF
1894
1895
1896 ## ----------- ##
1897 ## Core tests. ##
1898 ## ----------- ##
1899
1900 _ACEOF
1901
1902
1903 # Keep a trace of the command line.
1904 # Strip out --no-create and --no-recursion so they do not pile up.
1905 # Strip out --silent because we don't want to record it for future runs.
1906 # Also quote any args containing shell meta-characters.
1907 # Make two passes to allow for proper duplicate-argument suppression.
1908 ac_configure_args=
1909 ac_configure_args0=
1910 ac_configure_args1=
1911 ac_must_keep_next=false
1912 for ac_pass in 1 2
1913 do
1914   for ac_arg
1915   do
1916     case $ac_arg in
1917     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1918     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1919     | -silent | --silent | --silen | --sile | --sil)
1920       continue ;;
1921     *\'*)
1922       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1923     esac
1924     case $ac_pass in
1925     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1926     2)
1927       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1928       if test $ac_must_keep_next = true; then
1929         ac_must_keep_next=false # Got value, back to normal.
1930       else
1931         case $ac_arg in
1932           *=* | --config-cache | -C | -disable-* | --disable-* \
1933           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1934           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1935           | -with-* | --with-* | -without-* | --without-* | --x)
1936             case "$ac_configure_args0 " in
1937               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1938             esac
1939             ;;
1940           -* ) ac_must_keep_next=true ;;
1941         esac
1942       fi
1943       ac_configure_args="$ac_configure_args '$ac_arg'"
1944       ;;
1945     esac
1946   done
1947 done
1948 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1949 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1950
1951 # When interrupted or exit'd, cleanup temporary files, and complete
1952 # config.log.  We remove comments because anyway the quotes in there
1953 # would cause problems or look ugly.
1954 # WARNING: Use '\'' to represent an apostrophe within the trap.
1955 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1956 trap 'exit_status=$?
1957   # Save into config.log some information that might help in debugging.
1958   {
1959     echo
1960
1961     cat <<\_ASBOX
1962 ## ---------------- ##
1963 ## Cache variables. ##
1964 ## ---------------- ##
1965 _ASBOX
1966     echo
1967     # The following way of writing the cache mishandles newlines in values,
1968 (
1969   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1970     eval ac_val=\$$ac_var
1971     case $ac_val in #(
1972     *${as_nl}*)
1973       case $ac_var in #(
1974       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1975 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1976       esac
1977       case $ac_var in #(
1978       _ | IFS | as_nl) ;; #(
1979       *) $as_unset $ac_var ;;
1980       esac ;;
1981     esac
1982   done
1983   (set) 2>&1 |
1984     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985     *${as_nl}ac_space=\ *)
1986       sed -n \
1987         "s/'\''/'\''\\\\'\'''\''/g;
1988           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1989       ;; #(
1990     *)
1991       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1992       ;;
1993     esac |
1994     sort
1995 )
1996     echo
1997
1998     cat <<\_ASBOX
1999 ## ----------------- ##
2000 ## Output variables. ##
2001 ## ----------------- ##
2002 _ASBOX
2003     echo
2004     for ac_var in $ac_subst_vars
2005     do
2006       eval ac_val=\$$ac_var
2007       case $ac_val in
2008       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009       esac
2010       echo "$ac_var='\''$ac_val'\''"
2011     done | sort
2012     echo
2013
2014     if test -n "$ac_subst_files"; then
2015       cat <<\_ASBOX
2016 ## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##
2019 _ASBOX
2020       echo
2021       for ac_var in $ac_subst_files
2022       do
2023         eval ac_val=\$$ac_var
2024         case $ac_val in
2025         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026         esac
2027         echo "$ac_var='\''$ac_val'\''"
2028       done | sort
2029       echo
2030     fi
2031
2032     if test -s confdefs.h; then
2033       cat <<\_ASBOX
2034 ## ----------- ##
2035 ## confdefs.h. ##
2036 ## ----------- ##
2037 _ASBOX
2038       echo
2039       cat confdefs.h
2040       echo
2041     fi
2042     test "$ac_signal" != 0 &&
2043       echo "$as_me: caught signal $ac_signal"
2044     echo "$as_me: exit $exit_status"
2045   } >&5
2046   rm -f core *.core core.conftest.* &&
2047     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2048     exit $exit_status
2049 ' 0
2050 for ac_signal in 1 2 13 15; do
2051   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2052 done
2053 ac_signal=0
2054
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2057
2058 # Predefined preprocessor variables.
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_NAME "$PACKAGE_NAME"
2062 _ACEOF
2063
2064
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2067 _ACEOF
2068
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2072 _ACEOF
2073
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_STRING "$PACKAGE_STRING"
2077 _ACEOF
2078
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2082 _ACEOF
2083
2084
2085 # Let the site file select an alternate cache file if it wants to.
2086 # Prefer explicitly selected file to automatically selected ones.
2087 if test -n "$CONFIG_SITE"; then
2088   set x "$CONFIG_SITE"
2089 elif test "x$prefix" != xNONE; then
2090   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2091 else
2092   set x "$ac_default_prefix/share/config.site" \
2093         "$ac_default_prefix/etc/config.site"
2094 fi
2095 shift
2096 for ac_site_file
2097 do
2098   if test -r "$ac_site_file"; then
2099     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2100 echo "$as_me: loading site script $ac_site_file" >&6;}
2101     sed 's/^/| /' "$ac_site_file" >&5
2102     . "$ac_site_file"
2103   fi
2104 done
2105
2106 if test -r "$cache_file"; then
2107   # Some versions of bash will fail to source /dev/null (special
2108   # files actually), so we avoid doing that.
2109   if test -f "$cache_file"; then
2110     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2111 echo "$as_me: loading cache $cache_file" >&6;}
2112     case $cache_file in
2113       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2114       *)                      . "./$cache_file";;
2115     esac
2116   fi
2117 else
2118   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2119 echo "$as_me: creating cache $cache_file" >&6;}
2120   >$cache_file
2121 fi
2122
2123 # Check that the precious variables saved in the cache have kept the same
2124 # value.
2125 ac_cache_corrupted=false
2126 for ac_var in $ac_precious_vars; do
2127   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2128   eval ac_new_set=\$ac_env_${ac_var}_set
2129   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2130   eval ac_new_val=\$ac_env_${ac_var}_value
2131   case $ac_old_set,$ac_new_set in
2132     set,)
2133       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2134 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2135       ac_cache_corrupted=: ;;
2136     ,set)
2137       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2138 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2139       ac_cache_corrupted=: ;;
2140     ,);;
2141     *)
2142       if test "x$ac_old_val" != "x$ac_new_val"; then
2143         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2144 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2146 echo "$as_me:   former value:  $ac_old_val" >&2;}
2147         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2148 echo "$as_me:   current value: $ac_new_val" >&2;}
2149         ac_cache_corrupted=:
2150       fi;;
2151   esac
2152   # Pass precious variables to config.status.
2153   if test "$ac_new_set" = set; then
2154     case $ac_new_val in
2155     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156     *) ac_arg=$ac_var=$ac_new_val ;;
2157     esac
2158     case " $ac_configure_args " in
2159       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2160       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2161     esac
2162   fi
2163 done
2164 if $ac_cache_corrupted; then
2165   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2166 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2167   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2168 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2169    { (exit 1); exit 1; }; }
2170 fi
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188 ac_ext=c
2189 ac_cpp='$CPP $CPPFLAGS'
2190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2193
2194
2195 BUILD_DIR=`pwd`
2196 cd ..
2197 TOP_DIR=`pwd`
2198 cd ${BUILD_DIR}
2199
2200
2201 ac_aux_dir=
2202 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2203   if test -f "$ac_dir/install-sh"; then
2204     ac_aux_dir=$ac_dir
2205     ac_install_sh="$ac_aux_dir/install-sh -c"
2206     break
2207   elif test -f "$ac_dir/install.sh"; then
2208     ac_aux_dir=$ac_dir
2209     ac_install_sh="$ac_aux_dir/install.sh -c"
2210     break
2211   elif test -f "$ac_dir/shtool"; then
2212     ac_aux_dir=$ac_dir
2213     ac_install_sh="$ac_aux_dir/shtool install -c"
2214     break
2215   fi
2216 done
2217 if test -z "$ac_aux_dir"; then
2218   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2219 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2220    { (exit 1); exit 1; }; }
2221 fi
2222
2223 # These three variables are undocumented and unsupported,
2224 # and are intended to be withdrawn in a future Autoconf release.
2225 # They can cause serious problems if a builder's source tree is in a directory
2226 # whose full name contains unusual characters.
2227 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2228 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2229 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2230
2231
2232 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2233
2234
2235 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2236 WIN32MAINDIR=${BUILD_DIR}
2237 WIN32TOPDIR=${TOP_DIR}
2238
2239
2240
2241
2242
2243
2244
2245 for ac_prog in true
2246 do
2247   # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2251 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   case $TRUEPRG in
2255   [\\/]* | ?:[\\/]*)
2256   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2257   ;;
2258   *)
2259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262   IFS=$as_save_IFS
2263   test -z "$as_dir" && as_dir=.
2264   for ac_exec_ext in '' $ac_executable_extensions; do
2265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268     break 2
2269   fi
2270 done
2271 done
2272 IFS=$as_save_IFS
2273
2274   ;;
2275 esac
2276 fi
2277 TRUEPRG=$ac_cv_path_TRUEPRG
2278 if test -n "$TRUEPRG"; then
2279   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2280 echo "${ECHO_T}$TRUEPRG" >&6; }
2281 else
2282   { echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6; }
2284 fi
2285
2286
2287   test -n "$TRUEPRG" && break
2288 done
2289 test -n "$TRUEPRG" || TRUEPRG=":"
2290
2291 for ac_prog in false
2292 do
2293   # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   case $FALSEPRG in
2301   [\\/]* | ?:[\\/]*)
2302   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2303   ;;
2304   *)
2305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2307 do
2308   IFS=$as_save_IFS
2309   test -z "$as_dir" && as_dir=.
2310   for ac_exec_ext in '' $ac_executable_extensions; do
2311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314     break 2
2315   fi
2316 done
2317 done
2318 IFS=$as_save_IFS
2319
2320   ;;
2321 esac
2322 fi
2323 FALSEPRG=$ac_cv_path_FALSEPRG
2324 if test -n "$FALSEPRG"; then
2325   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2326 echo "${ECHO_T}$FALSEPRG" >&6; }
2327 else
2328   { echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6; }
2330 fi
2331
2332
2333   test -n "$FALSEPRG" && break
2334 done
2335 test -n "$FALSEPRG" || FALSEPRG=":"
2336
2337
2338
2339 post_host=
2340 if test "x$BACULA" != x; then
2341    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2342 fi
2343 BACULA=${BACULA:-Bacula}
2344 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2345 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2346 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2347 echo "configuring for ${BACULA} $VERSION ($DATE)"
2348
2349
2350 ac_ext=c
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355 if test -n "$ac_tool_prefix"; then
2356   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2357 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_CC+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   if test -n "$CC"; then
2364   ac_cv_prog_CC="$CC" # Let the user override the test.
2365 else
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2368 do
2369   IFS=$as_save_IFS
2370   test -z "$as_dir" && as_dir=.
2371   for ac_exec_ext in '' $ac_executable_extensions; do
2372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375     break 2
2376   fi
2377 done
2378 done
2379 IFS=$as_save_IFS
2380
2381 fi
2382 fi
2383 CC=$ac_cv_prog_CC
2384 if test -n "$CC"; then
2385   { echo "$as_me:$LINENO: result: $CC" >&5
2386 echo "${ECHO_T}$CC" >&6; }
2387 else
2388   { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2390 fi
2391
2392
2393 fi
2394 if test -z "$ac_cv_prog_CC"; then
2395   ac_ct_CC=$CC
2396   # Extract the first word of "gcc", so it can be a program name with args.
2397 set dummy gcc; ac_word=$2
2398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2401   echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403   if test -n "$ac_ct_CC"; then
2404   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409   IFS=$as_save_IFS
2410   test -z "$as_dir" && as_dir=.
2411   for ac_exec_ext in '' $ac_executable_extensions; do
2412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413     ac_cv_prog_ac_ct_CC="gcc"
2414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415     break 2
2416   fi
2417 done
2418 done
2419 IFS=$as_save_IFS
2420
2421 fi
2422 fi
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2426 echo "${ECHO_T}$ac_ct_CC" >&6; }
2427 else
2428   { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2430 fi
2431
2432   if test "x$ac_ct_CC" = x; then
2433     CC=""
2434   else
2435     case $cross_compiling:$ac_tool_warned in
2436 yes:)
2437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet.  If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&5
2440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2441 whose name does not start with the host triplet.  If you think this
2442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2443 ac_tool_warned=yes ;;
2444 esac
2445     CC=$ac_ct_CC
2446   fi
2447 else
2448   CC="$ac_cv_prog_CC"
2449 fi
2450
2451 if test -z "$CC"; then
2452           if test -n "$ac_tool_prefix"; then
2453     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2454 set dummy ${ac_tool_prefix}cc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_CC+set}" = set; then
2458   echo $ECHO_N "(cached) $ECHO_C" >&6
2459 else
2460   if test -n "$CC"; then
2461   ac_cv_prog_CC="$CC" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466   IFS=$as_save_IFS
2467   test -z "$as_dir" && as_dir=.
2468   for ac_exec_ext in '' $ac_executable_extensions; do
2469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470     ac_cv_prog_CC="${ac_tool_prefix}cc"
2471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472     break 2
2473   fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 CC=$ac_cv_prog_CC
2481 if test -n "$CC"; then
2482   { echo "$as_me:$LINENO: result: $CC" >&5
2483 echo "${ECHO_T}$CC" >&6; }
2484 else
2485   { echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6; }
2487 fi
2488
2489
2490   fi
2491 fi
2492 if test -z "$CC"; then
2493   # Extract the first word of "cc", so it can be a program name with args.
2494 set dummy cc; ac_word=$2
2495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497 if test "${ac_cv_prog_CC+set}" = set; then
2498   echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500   if test -n "$CC"; then
2501   ac_cv_prog_CC="$CC" # Let the user override the test.
2502 else
2503   ac_prog_rejected=no
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509   for ac_exec_ext in '' $ac_executable_extensions; do
2510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2512        ac_prog_rejected=yes
2513        continue
2514      fi
2515     ac_cv_prog_CC="cc"
2516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517     break 2
2518   fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 if test $ac_prog_rejected = yes; then
2524   # We found a bogon in the path, so make sure we never use it.
2525   set dummy $ac_cv_prog_CC
2526   shift
2527   if test $# != 0; then
2528     # We chose a different compiler from the bogus one.
2529     # However, it has the same basename, so the bogon will be chosen
2530     # first if we set CC to just the basename; use the full file name.
2531     shift
2532     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2533   fi
2534 fi
2535 fi
2536 fi
2537 CC=$ac_cv_prog_CC
2538 if test -n "$CC"; then
2539   { echo "$as_me:$LINENO: result: $CC" >&5
2540 echo "${ECHO_T}$CC" >&6; }
2541 else
2542   { echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6; }
2544 fi
2545
2546
2547 fi
2548 if test -z "$CC"; then
2549   if test -n "$ac_tool_prefix"; then
2550   for ac_prog in cl.exe
2551   do
2552     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_CC+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   if test -n "$CC"; then
2560   ac_cv_prog_CC="$CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567   for ac_exec_ext in '' $ac_executable_extensions; do
2568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571     break 2
2572   fi
2573 done
2574 done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581   { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2583 else
2584   { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2586 fi
2587
2588
2589     test -n "$CC" && break
2590   done
2591 fi
2592 if test -z "$CC"; then
2593   ac_ct_CC=$CC
2594   for ac_prog in cl.exe
2595 do
2596   # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   if test -n "$ac_ct_CC"; then
2604   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609   IFS=$as_save_IFS
2610   test -z "$as_dir" && as_dir=.
2611   for ac_exec_ext in '' $ac_executable_extensions; do
2612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613     ac_cv_prog_ac_ct_CC="$ac_prog"
2614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615     break 2
2616   fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2624 if test -n "$ac_ct_CC"; then
2625   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2626 echo "${ECHO_T}$ac_ct_CC" >&6; }
2627 else
2628   { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2630 fi
2631
2632
2633   test -n "$ac_ct_CC" && break
2634 done
2635
2636   if test "x$ac_ct_CC" = x; then
2637     CC=""
2638   else
2639     case $cross_compiling:$ac_tool_warned in
2640 yes:)
2641 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet.  If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&5
2644 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2645 whose name does not start with the host triplet.  If you think this
2646 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2647 ac_tool_warned=yes ;;
2648 esac
2649     CC=$ac_ct_CC
2650   fi
2651 fi
2652
2653 fi
2654
2655
2656 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2657 See \`config.log' for more details." >&5
2658 echo "$as_me: error: no acceptable C compiler found in \$PATH
2659 See \`config.log' for more details." >&2;}
2660    { (exit 1); exit 1; }; }
2661
2662 # Provide some information about the compiler.
2663 echo "$as_me:$LINENO: checking for C compiler version" >&5
2664 ac_compiler=`set X $ac_compile; echo $2`
2665 { (ac_try="$ac_compiler --version >&5"
2666 case "(($ac_try" in
2667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668   *) ac_try_echo=$ac_try;;
2669 esac
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671   (eval "$ac_compiler --version >&5") 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }
2675 { (ac_try="$ac_compiler -v >&5"
2676 case "(($ac_try" in
2677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678   *) ac_try_echo=$ac_try;;
2679 esac
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681   (eval "$ac_compiler -v >&5") 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }
2685 { (ac_try="$ac_compiler -V >&5"
2686 case "(($ac_try" in
2687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688   *) ac_try_echo=$ac_try;;
2689 esac
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691   (eval "$ac_compiler -V >&5") 2>&5
2692   ac_status=$?
2693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694   (exit $ac_status); }
2695
2696 cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702
2703 int
2704 main ()
2705 {
2706
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 ac_clean_files_save=$ac_clean_files
2712 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2713 # Try to create an executable without -o first, disregard a.out.
2714 # It will help us diagnose broken compilers, and finding out an intuition
2715 # of exeext.
2716 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2717 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2718 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2719 #
2720 # List of possible output files, starting from the most likely.
2721 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2722 # only as a last resort.  b.out is created by i960 compilers.
2723 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2724 #
2725 # The IRIX 6 linker writes into existing files which may not be
2726 # executable, retaining their permissions.  Remove them first so a
2727 # subsequent execution test works.
2728 ac_rmfiles=
2729 for ac_file in $ac_files
2730 do
2731   case $ac_file in
2732     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2733     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2734   esac
2735 done
2736 rm -f $ac_rmfiles
2737
2738 if { (ac_try="$ac_link_default"
2739 case "(($ac_try" in
2740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741   *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744   (eval "$ac_link_default") 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); }; then
2748   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2749 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2750 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2751 # so that the user can short-circuit this test for compilers unknown to
2752 # Autoconf.
2753 for ac_file in $ac_files ''
2754 do
2755   test -f "$ac_file" || continue
2756   case $ac_file in
2757     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2758         ;;
2759     [ab].out )
2760         # We found the default executable, but exeext='' is most
2761         # certainly right.
2762         break;;
2763     *.* )
2764         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2765         then :; else
2766            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2767         fi
2768         # We set ac_cv_exeext here because the later test for it is not
2769         # safe: cross compilers may not add the suffix if given an `-o'
2770         # argument, so we may need to know it at that point already.
2771         # Even if this section looks crufty: it has the advantage of
2772         # actually working.
2773         break;;
2774     * )
2775         break;;
2776   esac
2777 done
2778 test "$ac_cv_exeext" = no && ac_cv_exeext=
2779
2780 else
2781   ac_file=''
2782 fi
2783
2784 { echo "$as_me:$LINENO: result: $ac_file" >&5
2785 echo "${ECHO_T}$ac_file" >&6; }
2786 if test -z "$ac_file"; then
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: C compiler cannot create executables
2793 See \`config.log' for more details." >&2;}
2794    { (exit 77); exit 77; }; }
2795 fi
2796
2797 ac_exeext=$ac_cv_exeext
2798
2799 # Check that the compiler produces executables we can run.  If not, either
2800 # the compiler is broken, or we cross compile.
2801 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2802 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2803 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2804 # If not cross compiling, check that we can run a simple program.
2805 if test "$cross_compiling" != yes; then
2806   if { ac_try='./$ac_file'
2807   { (case "(($ac_try" in
2808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809   *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812   (eval "$ac_try") 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; }; then
2816     cross_compiling=no
2817   else
2818     if test "$cross_compiling" = maybe; then
2819         cross_compiling=yes
2820     else
2821         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&2;}
2827    { (exit 1); exit 1; }; }
2828     fi
2829   fi
2830 fi
2831 { echo "$as_me:$LINENO: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6; }
2833
2834 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2835 ac_clean_files=$ac_clean_files_save
2836 # Check that the compiler produces executables we can run.  If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2839 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2840 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841 echo "${ECHO_T}$cross_compiling" >&6; }
2842
2843 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2845 if { (ac_try="$ac_link"
2846 case "(($ac_try" in
2847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848   *) ac_try_echo=$ac_try;;
2849 esac
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851   (eval "$ac_link") 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; then
2855   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2856 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2857 # work properly (i.e., refer to `conftest.exe'), while it won't with
2858 # `rm'.
2859 for ac_file in conftest.exe conftest conftest.*; do
2860   test -f "$ac_file" || continue
2861   case $ac_file in
2862     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2864           break;;
2865     * ) break;;
2866   esac
2867 done
2868 else
2869   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&2;}
2873    { (exit 1); exit 1; }; }
2874 fi
2875
2876 rm -f conftest$ac_cv_exeext
2877 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2878 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2879
2880 rm -f conftest.$ac_ext
2881 EXEEXT=$ac_cv_exeext
2882 ac_exeext=$EXEEXT
2883 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2884 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2885 if test "${ac_cv_objext+set}" = set; then
2886   echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888   cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h.  */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h.  */
2894
2895 int
2896 main ()
2897 {
2898
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 rm -f conftest.o conftest.obj
2904 if { (ac_try="$ac_compile"
2905 case "(($ac_try" in
2906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907   *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910   (eval "$ac_compile") 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; then
2914   for ac_file in conftest.o conftest.obj conftest.*; do
2915   test -f "$ac_file" || continue;
2916   case $ac_file in
2917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2918     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2919        break;;
2920   esac
2921 done
2922 else
2923   echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&2;}
2930    { (exit 1); exit 1; }; }
2931 fi
2932
2933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2934 fi
2935 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2936 echo "${ECHO_T}$ac_cv_objext" >&6; }
2937 OBJEXT=$ac_cv_objext
2938 ac_objext=$OBJEXT
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944   cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h.  */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h.  */
2950
2951 int
2952 main ()
2953 {
2954 #ifndef __GNUC__
2955        choke me
2956 #endif
2957
2958   ;
2959   return 0;
2960 }
2961 _ACEOF
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2964 case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_compile") 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } && {
2976          test -z "$ac_c_werror_flag" ||
2977          test ! -s conftest.err
2978        } && test -s conftest.$ac_objext; then
2979   ac_compiler_gnu=yes
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984         ac_compiler_gnu=no
2985 fi
2986
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2989
2990 fi
2991 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2993 GCC=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CFLAGS=${CFLAGS+set}
2995 ac_save_CFLAGS=$CFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2997 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cc_g+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   ac_save_c_werror_flag=$ac_c_werror_flag
3002    ac_c_werror_flag=yes
3003    ac_cv_prog_cc_g=no
3004    CFLAGS="-g"
3005    cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011
3012 int
3013 main ()
3014 {
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compile") 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } && {
3034          test -z "$ac_c_werror_flag" ||
3035          test ! -s conftest.err
3036        } && test -s conftest.$ac_objext; then
3037   ac_cv_prog_cc_g=yes
3038 else
3039   echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3041
3042         CFLAGS=""
3043       cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049
3050 int
3051 main ()
3052 {
3053
3054   ;
3055   return 0;
3056 }
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3060 case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_compile") 2>conftest.er1
3066   ac_status=$?
3067   grep -v '^ *+' conftest.er1 >conftest.err
3068   rm -f conftest.er1
3069   cat conftest.err >&5
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); } && {
3072          test -z "$ac_c_werror_flag" ||
3073          test ! -s conftest.err
3074        } && test -s conftest.$ac_objext; then
3075   :
3076 else
3077   echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080         ac_c_werror_flag=$ac_save_c_werror_flag
3081          CFLAGS="-g"
3082          cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088
3089 int
3090 main ()
3091 {
3092
3093   ;
3094   return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_compile") 2>conftest.er1
3105   ac_status=$?
3106   grep -v '^ *+' conftest.er1 >conftest.err
3107   rm -f conftest.er1
3108   cat conftest.err >&5
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); } && {
3111          test -z "$ac_c_werror_flag" ||
3112          test ! -s conftest.err
3113        } && test -s conftest.$ac_objext; then
3114   ac_cv_prog_cc_g=yes
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119
3120 fi
3121
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123 fi
3124
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126 fi
3127
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129    ac_c_werror_flag=$ac_save_c_werror_flag
3130 fi
3131 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3132 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3133 if test "$ac_test_CFLAGS" = set; then
3134   CFLAGS=$ac_save_CFLAGS
3135 elif test $ac_cv_prog_cc_g = yes; then
3136   if test "$GCC" = yes; then
3137     CFLAGS="-g -O2"
3138   else
3139     CFLAGS="-g"
3140   fi
3141 else
3142   if test "$GCC" = yes; then
3143     CFLAGS="-O2"
3144   else
3145     CFLAGS=
3146   fi
3147 fi
3148 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3149 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_cc_c89+set}" = set; then
3151   echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153   ac_cv_prog_cc_c89=no
3154 ac_save_CC=$CC
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161 #include <stdarg.h>
3162 #include <stdio.h>
3163 #include <sys/types.h>
3164 #include <sys/stat.h>
3165 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3166 struct buf { int x; };
3167 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3168 static char *e (p, i)
3169      char **p;
3170      int i;
3171 {
3172   return p[i];
3173 }
3174 static char *f (char * (*g) (char **, int), char **p, ...)
3175 {
3176   char *s;
3177   va_list v;
3178   va_start (v,p);
3179   s = g (p, va_arg (v,int));
3180   va_end (v);
3181   return s;
3182 }
3183
3184 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3185    function prototypes and stuff, but not '\xHH' hex character constants.
3186    These don't provoke an error unfortunately, instead are silently treated
3187    as 'x'.  The following induces an error, until -std is added to get
3188    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3189    array size at least.  It's necessary to write '\x00'==0 to get something
3190    that's true only with -std.  */
3191 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3192
3193 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3194    inside strings and character constants.  */
3195 #define FOO(x) 'x'
3196 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3197
3198 int test (int i, double x);
3199 struct s1 {int (*f) (int a);};
3200 struct s2 {int (*f) (double a);};
3201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3202 int argc;
3203 char **argv;
3204 int
3205 main ()
3206 {
3207 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3208   ;
3209   return 0;
3210 }
3211 _ACEOF
3212 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3213         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3214 do
3215   CC="$ac_save_CC $ac_arg"
3216   rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3218 case "(($ac_try" in
3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220   *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223   (eval "$ac_compile") 2>conftest.er1
3224   ac_status=$?
3225   grep -v '^ *+' conftest.er1 >conftest.err
3226   rm -f conftest.er1
3227   cat conftest.err >&5
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } && {
3230          test -z "$ac_c_werror_flag" ||
3231          test ! -s conftest.err
3232        } && test -s conftest.$ac_objext; then
3233   ac_cv_prog_cc_c89=$ac_arg
3234 else
3235   echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238
3239 fi
3240
3241 rm -f core conftest.err conftest.$ac_objext
3242   test "x$ac_cv_prog_cc_c89" != "xno" && break
3243 done
3244 rm -f conftest.$ac_ext
3245 CC=$ac_save_CC
3246
3247 fi
3248 # AC_CACHE_VAL
3249 case "x$ac_cv_prog_cc_c89" in
3250   x)
3251     { echo "$as_me:$LINENO: result: none needed" >&5
3252 echo "${ECHO_T}none needed" >&6; } ;;
3253   xno)
3254     { echo "$as_me:$LINENO: result: unsupported" >&5
3255 echo "${ECHO_T}unsupported" >&6; } ;;
3256   *)
3257     CC="$CC $ac_cv_prog_cc_c89"
3258     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3259 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3260 esac
3261
3262
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268
3269 ac_ext=cpp
3270 ac_cpp='$CXXCPP $CPPFLAGS'
3271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3274 if test -z "$CXX"; then
3275   if test -n "$CCC"; then
3276     CXX=$CCC
3277   else
3278     if test -n "$ac_tool_prefix"; then
3279   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3280   do
3281     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_CXX+set}" = set; then
3286   echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288   if test -n "$CXX"; then
3289   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294   IFS=$as_save_IFS
3295   test -z "$as_dir" && as_dir=.
3296   for ac_exec_ext in '' $ac_executable_extensions; do
3297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300     break 2
3301   fi
3302 done
3303 done
3304 IFS=$as_save_IFS
3305
3306 fi
3307 fi
3308 CXX=$ac_cv_prog_CXX
3309 if test -n "$CXX"; then
3310   { echo "$as_me:$LINENO: result: $CXX" >&5
3311 echo "${ECHO_T}$CXX" >&6; }
3312 else
3313   { echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6; }
3315 fi
3316
3317
3318     test -n "$CXX" && break
3319   done
3320 fi
3321 if test -z "$CXX"; then
3322   ac_ct_CXX=$CXX
3323   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3324 do
3325   # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy $ac_prog; ac_word=$2
3327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3330   echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332   if test -n "$ac_ct_CXX"; then
3333   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338   IFS=$as_save_IFS
3339   test -z "$as_dir" && as_dir=.
3340   for ac_exec_ext in '' $ac_executable_extensions; do
3341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342     ac_cv_prog_ac_ct_CXX="$ac_prog"
3343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344     break 2
3345   fi
3346 done
3347 done
3348 IFS=$as_save_IFS
3349
3350 fi
3351 fi
3352 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3353 if test -n "$ac_ct_CXX"; then
3354   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3355 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3356 else
3357   { echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6; }
3359 fi
3360
3361
3362   test -n "$ac_ct_CXX" && break
3363 done
3364
3365   if test "x$ac_ct_CXX" = x; then
3366     CXX="g++"
3367   else
3368     case $cross_compiling:$ac_tool_warned in
3369 yes:)
3370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3371 whose name does not start with the host triplet.  If you think this
3372 configuration is useful to you, please write to autoconf@gnu.org." >&5
3373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3374 whose name does not start with the host triplet.  If you think this
3375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3376 ac_tool_warned=yes ;;
3377 esac
3378     CXX=$ac_ct_CXX
3379   fi
3380 fi
3381
3382   fi
3383 fi
3384 # Provide some information about the compiler.
3385 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3386 ac_compiler=`set X $ac_compile; echo $2`
3387 { (ac_try="$ac_compiler --version >&5"
3388 case "(($ac_try" in
3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390   *) ac_try_echo=$ac_try;;
3391 esac
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393   (eval "$ac_compiler --version >&5") 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }
3397 { (ac_try="$ac_compiler -v >&5"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403   (eval "$ac_compiler -v >&5") 2>&5
3404   ac_status=$?
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); }
3407 { (ac_try="$ac_compiler -V >&5"
3408 case "(($ac_try" in
3409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410   *) ac_try_echo=$ac_try;;
3411 esac
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413   (eval "$ac_compiler -V >&5") 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }
3417
3418 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3419 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3420 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429
3430 int
3431 main ()
3432 {
3433 #ifndef __GNUC__
3434        choke me
3435 #endif
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448   (eval "$ac_compile") 2>conftest.er1
3449   ac_status=$?
3450   grep -v '^ *+' conftest.er1 >conftest.err
3451   rm -f conftest.er1
3452   cat conftest.err >&5
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); } && {
3455          test -z "$ac_cxx_werror_flag" ||
3456          test ! -s conftest.err
3457        } && test -s conftest.$ac_objext; then
3458   ac_compiler_gnu=yes
3459 else
3460   echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463         ac_compiler_gnu=no
3464 fi
3465
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3468
3469 fi
3470 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3471 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3472 GXX=`test $ac_compiler_gnu = yes && echo yes`
3473 ac_test_CXXFLAGS=${CXXFLAGS+set}
3474 ac_save_CXXFLAGS=$CXXFLAGS
3475 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3476 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3477 if test "${ac_cv_prog_cxx_g+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3481    ac_cxx_werror_flag=yes
3482    ac_cv_prog_cxx_g=no
3483    CXXFLAGS="-g"
3484    cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h.  */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h.  */
3490
3491 int
3492 main ()
3493 {
3494
3495   ;
3496   return 0;
3497 }
3498 _ACEOF
3499 rm -f conftest.$ac_objext
3500 if { (ac_try="$ac_compile"
3501 case "(($ac_try" in
3502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503   *) ac_try_echo=$ac_try;;
3504 esac
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506   (eval "$ac_compile") 2>conftest.er1
3507   ac_status=$?
3508   grep -v '^ *+' conftest.er1 >conftest.err
3509   rm -f conftest.er1
3510   cat conftest.err >&5
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); } && {
3513          test -z "$ac_cxx_werror_flag" ||
3514          test ! -s conftest.err
3515        } && test -s conftest.$ac_objext; then
3516   ac_cv_prog_cxx_g=yes
3517 else
3518   echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3520
3521         CXXFLAGS=""
3522       cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528
3529 int
3530 main ()
3531 {
3532
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3539 case "(($ac_try" in
3540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541   *) ac_try_echo=$ac_try;;
3542 esac
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544   (eval "$ac_compile") 2>conftest.er1
3545   ac_status=$?
3546   grep -v '^ *+' conftest.er1 >conftest.err
3547   rm -f conftest.er1
3548   cat conftest.err >&5
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); } && {
3551          test -z "$ac_cxx_werror_flag" ||
3552          test ! -s conftest.err
3553        } && test -s conftest.$ac_objext; then
3554   :
3555 else
3556   echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3558
3559         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3560          CXXFLAGS="-g"
3561          cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h.  */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h.  */
3567
3568 int
3569 main ()
3570 {
3571
3572   ;
3573   return 0;
3574 }
3575 _ACEOF
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3578 case "(($ac_try" in
3579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580   *) ac_try_echo=$ac_try;;
3581 esac
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583   (eval "$ac_compile") 2>conftest.er1
3584   ac_status=$?
3585   grep -v '^ *+' conftest.er1 >conftest.err
3586   rm -f conftest.er1
3587   cat conftest.err >&5
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); } && {
3590          test -z "$ac_cxx_werror_flag" ||
3591          test ! -s conftest.err
3592        } && test -s conftest.$ac_objext; then
3593   ac_cv_prog_cxx_g=yes
3594 else
3595   echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598
3599 fi
3600
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 fi
3603
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 fi
3606
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3609 fi
3610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3611 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3612 if test "$ac_test_CXXFLAGS" = set; then
3613   CXXFLAGS=$ac_save_CXXFLAGS
3614 elif test $ac_cv_prog_cxx_g = yes; then
3615   if test "$GXX" = yes; then
3616     CXXFLAGS="-g -O2"
3617   else
3618     CXXFLAGS="-g"
3619   fi
3620 else
3621   if test "$GXX" = yes; then
3622     CXXFLAGS="-O2"
3623   else
3624     CXXFLAGS=
3625   fi
3626 fi
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632
3633 if test "x$CC" != xcc; then
3634   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3635 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3636 else
3637   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3638 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3639 fi
3640 set dummy $CC; ac_cc=`echo $2 |
3641                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3642 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3643   echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645   cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h.  */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h.  */
3651
3652 int
3653 main ()
3654 {
3655
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 # Make sure it works both with $CC and with simple cc.
3661 # We do the test twice because some compilers refuse to overwrite an
3662 # existing .o file with -o, though they will create one.
3663 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3664 rm -f conftest2.*
3665 if { (case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670   (eval "$ac_try") 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); } &&
3674    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679   (eval "$ac_try") 2>&5
3680   ac_status=$?
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); };
3683 then
3684   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3685   if test "x$CC" != xcc; then
3686     # Test first that cc exists at all.
3687     if { ac_try='cc -c conftest.$ac_ext >&5'
3688   { (case "(($ac_try" in
3689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690   *) ac_try_echo=$ac_try;;
3691 esac
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693   (eval "$ac_try") 2>&5
3694   ac_status=$?
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); }; }; then
3697       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3698       rm -f conftest2.*
3699       if { (case "(($ac_try" in
3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701   *) ac_try_echo=$ac_try;;
3702 esac
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704   (eval "$ac_try") 2>&5
3705   ac_status=$?
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); } &&
3708          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710   *) ac_try_echo=$ac_try;;
3711 esac
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713   (eval "$ac_try") 2>&5
3714   ac_status=$?
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); };
3717       then
3718         # cc works too.
3719         :
3720       else
3721         # cc exists but doesn't like -o.
3722         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3723       fi
3724     fi
3725   fi
3726 else
3727   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3728 fi
3729 rm -f core conftest*
3730
3731 fi
3732 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3733   { echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6; }
3735 else
3736   { echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6; }
3738
3739 cat >>confdefs.h <<\_ACEOF
3740 #define NO_MINUS_C_MINUS_O 1
3741 _ACEOF
3742
3743 fi
3744
3745 ac_ext=c
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3751 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3752 # On Suns, sometimes $CPP names a directory.
3753 if test -n "$CPP" && test -d "$CPP"; then
3754   CPP=
3755 fi
3756 if test -z "$CPP"; then
3757   if test "${ac_cv_prog_CPP+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760       # Double quotes because CPP needs to be expanded
3761     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3762     do
3763       ac_preproc_ok=false
3764 for ac_c_preproc_warn_flag in '' yes
3765 do
3766   # Use a header file that comes with gcc, so configuring glibc
3767   # with a fresh cross-compiler works.
3768   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3769   # <limits.h> exists even on freestanding compilers.
3770   # On the NeXT, cc -E runs the code through the compiler's parser,
3771   # not just through cpp. "Syntax error" is here to catch this case.
3772   cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h.  */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h.  */
3778 #ifdef __STDC__
3779 # include <limits.h>
3780 #else
3781 # include <assert.h>
3782 #endif
3783                      Syntax error
3784 _ACEOF
3785 if { (ac_try="$ac_cpp conftest.$ac_ext"
3786 case "(($ac_try" in
3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788   *) ac_try_echo=$ac_try;;
3789 esac
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3792   ac_status=$?
3793   grep -v '^ *+' conftest.er1 >conftest.err
3794   rm -f conftest.er1
3795   cat conftest.err >&5
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); } >/dev/null && {
3798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3799          test ! -s conftest.err
3800        }; then
3801   :
3802 else
3803   echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3805
3806   # Broken: fails on valid input.
3807 continue
3808 fi
3809
3810 rm -f conftest.err conftest.$ac_ext
3811
3812   # OK, works on sane cases.  Now check whether nonexistent headers
3813   # can be detected and how.
3814   cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820 #include <ac_nonexistent.h>
3821 _ACEOF
3822 if { (ac_try="$ac_cpp conftest.$ac_ext"
3823 case "(($ac_try" in
3824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825   *) ac_try_echo=$ac_try;;
3826 esac
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3829   ac_status=$?
3830   grep -v '^ *+' conftest.er1 >conftest.err
3831   rm -f conftest.er1
3832   cat conftest.err >&5
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); } >/dev/null && {
3835          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836          test ! -s conftest.err
3837        }; then
3838   # Broken: success on invalid input.
3839 continue
3840 else
3841   echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3843
3844   # Passes both tests.
3845 ac_preproc_ok=:
3846 break
3847 fi
3848
3849 rm -f conftest.err conftest.$ac_ext
3850
3851 done
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3855   break
3856 fi
3857
3858     done
3859     ac_cv_prog_CPP=$CPP
3860
3861 fi
3862   CPP=$ac_cv_prog_CPP
3863 else
3864   ac_cv_prog_CPP=$CPP
3865 fi
3866 { echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6; }
3868 ac_preproc_ok=false
3869 for ac_c_preproc_warn_flag in '' yes
3870 do
3871   # Use a header file that comes with gcc, so configuring glibc
3872   # with a fresh cross-compiler works.
3873   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874   # <limits.h> exists even on freestanding compilers.
3875   # On the NeXT, cc -E runs the code through the compiler's parser,
3876   # not just through cpp. "Syntax error" is here to catch this case.
3877   cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h.  */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h.  */
3883 #ifdef __STDC__
3884 # include <limits.h>
3885 #else
3886 # include <assert.h>
3887 #endif
3888                      Syntax error
3889 _ACEOF
3890 if { (ac_try="$ac_cpp conftest.$ac_ext"
3891 case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3897   ac_status=$?
3898   grep -v '^ *+' conftest.er1 >conftest.err
3899   rm -f conftest.er1
3900   cat conftest.err >&5
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); } >/dev/null && {
3903          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3904          test ! -s conftest.err
3905        }; then
3906   :
3907 else
3908   echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911   # Broken: fails on valid input.
3912 continue
3913 fi
3914
3915 rm -f conftest.err conftest.$ac_ext
3916
3917   # OK, works on sane cases.  Now check whether nonexistent headers
3918   # can be detected and how.
3919   cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h.  */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h.  */
3925 #include <ac_nonexistent.h>
3926 _ACEOF
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3928 case "(($ac_try" in
3929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930   *) ac_try_echo=$ac_try;;
3931 esac
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3934   ac_status=$?
3935   grep -v '^ *+' conftest.er1 >conftest.err
3936   rm -f conftest.er1
3937   cat conftest.err >&5
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); } >/dev/null && {
3940          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3941          test ! -s conftest.err
3942        }; then
3943   # Broken: success on invalid input.
3944 continue
3945 else
3946   echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949   # Passes both tests.
3950 ac_preproc_ok=:
3951 break
3952 fi
3953
3954 rm -f conftest.err conftest.$ac_ext
3955
3956 done
3957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958 rm -f conftest.err conftest.$ac_ext
3959 if $ac_preproc_ok; then
3960   :
3961 else
3962   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details." >&5
3964 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&2;}
3966    { (exit 1); exit 1; }; }
3967 fi
3968
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974
3975
3976 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3977 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3978 if test "${ac_cv_path_GREP+set}" = set; then
3979   echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981   # Extract the first word of "grep ggrep" to use in msg output
3982 if test -z "$GREP"; then
3983 set dummy grep ggrep; ac_prog_name=$2
3984 if test "${ac_cv_path_GREP+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   ac_path_GREP_found=false
3988 # Loop through the user's path and test for each of PROGNAME-LIST
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3991 do
3992   IFS=$as_save_IFS
3993   test -z "$as_dir" && as_dir=.
3994   for ac_prog in grep ggrep; do
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3997     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3998     # Check for GNU ac_path_GREP and select it if it is found.
3999   # Check for GNU $ac_path_GREP
4000 case `"$ac_path_GREP" --version 2>&1` in
4001 *GNU*)
4002   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4003 *)
4004   ac_count=0
4005   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4006   while :
4007   do
4008     cat "conftest.in" "conftest.in" >"conftest.tmp"
4009     mv "conftest.tmp" "conftest.in"
4010     cp "conftest.in" "conftest.nl"
4011     echo 'GREP' >> "conftest.nl"
4012     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014     ac_count=`expr $ac_count + 1`
4015     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4016       # Best one so far, save it but keep looking for a better one
4017       ac_cv_path_GREP="$ac_path_GREP"
4018       ac_path_GREP_max=$ac_count
4019     fi
4020     # 10*(2^10) chars as input seems more than enough
4021     test $ac_count -gt 10 && break
4022   done
4023   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4024 esac
4025
4026
4027     $ac_path_GREP_found && break 3
4028   done
4029 done
4030
4031 done
4032 IFS=$as_save_IFS
4033
4034
4035 fi
4036
4037 GREP="$ac_cv_path_GREP"
4038 if test -z "$GREP"; then
4039   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041    { (exit 1); exit 1; }; }
4042 fi
4043
4044 else
4045   ac_cv_path_GREP=$GREP
4046 fi
4047
4048
4049 fi
4050 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4051 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4052  GREP="$ac_cv_path_GREP"
4053
4054
4055 { echo "$as_me:$LINENO: checking for egrep" >&5
4056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4057 if test "${ac_cv_path_EGREP+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061    then ac_cv_path_EGREP="$GREP -E"
4062    else
4063      # Extract the first word of "egrep" to use in msg output
4064 if test -z "$EGREP"; then
4065 set dummy egrep; ac_prog_name=$2
4066 if test "${ac_cv_path_EGREP+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   ac_path_EGREP_found=false
4070 # Loop through the user's path and test for each of PROGNAME-LIST
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4073 do
4074   IFS=$as_save_IFS
4075   test -z "$as_dir" && as_dir=.
4076   for ac_prog in egrep; do
4077   for ac_exec_ext in '' $ac_executable_extensions; do
4078     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4079     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4080     # Check for GNU ac_path_EGREP and select it if it is found.
4081   # Check for GNU $ac_path_EGREP
4082 case `"$ac_path_EGREP" --version 2>&1` in
4083 *GNU*)
4084   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4085 *)
4086   ac_count=0
4087   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4088   while :
4089   do
4090     cat "conftest.in" "conftest.in" >"conftest.tmp"
4091     mv "conftest.tmp" "conftest.in"
4092     cp "conftest.in" "conftest.nl"
4093     echo 'EGREP' >> "conftest.nl"
4094     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096     ac_count=`expr $ac_count + 1`
4097     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4098       # Best one so far, save it but keep looking for a better one
4099       ac_cv_path_EGREP="$ac_path_EGREP"
4100       ac_path_EGREP_max=$ac_count
4101     fi
4102     # 10*(2^10) chars as input seems more than enough
4103     test $ac_count -gt 10 && break
4104   done
4105   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4106 esac
4107
4108
4109     $ac_path_EGREP_found && break 3
4110   done
4111 done
4112
4113 done
4114 IFS=$as_save_IFS
4115
4116
4117 fi
4118
4119 EGREP="$ac_cv_path_EGREP"
4120 if test -z "$EGREP"; then
4121   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4122 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4123    { (exit 1); exit 1; }; }
4124 fi
4125
4126 else
4127   ac_cv_path_EGREP=$EGREP
4128 fi
4129
4130
4131    fi
4132 fi
4133 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4134 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4135  EGREP="$ac_cv_path_EGREP"
4136
4137
4138 if test $ac_cv_c_compiler_gnu = yes; then
4139     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4140 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4141 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4142   echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144     ac_pattern="Autoconf.*'x'"
4145   cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h.  */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h.  */
4151 #include <sgtty.h>
4152 Autoconf TIOCGETP
4153 _ACEOF
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4156   ac_cv_prog_gcc_traditional=yes
4157 else
4158   ac_cv_prog_gcc_traditional=no
4159 fi
4160 rm -f conftest*
4161
4162
4163   if test $ac_cv_prog_gcc_traditional = no; then
4164     cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h.  */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h.  */
4170 #include <termio.h>
4171 Autoconf TCGETA
4172 _ACEOF
4173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4175   ac_cv_prog_gcc_traditional=yes
4176 fi
4177 rm -f conftest*
4178
4179   fi
4180 fi
4181 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4182 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4183   if test $ac_cv_prog_gcc_traditional = yes; then
4184     CC="$CC -traditional"
4185   fi
4186 fi
4187
4188 BASECC=`basename $CC`
4189 have_gcc=no
4190 if test "x$BASECC" = xgcc; then
4191    cat >>confdefs.h <<\_ACEOF
4192 #define HAVE_GCC 1
4193 _ACEOF
4194
4195    have_gcc=yes
4196 fi
4197 # Extract the first word of "$CXX", so it can be a program name with args.
4198 set dummy $CXX; ac_word=$2
4199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4201 if test "${ac_cv_path_CXX+set}" = set; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   case $CXX in
4205   [\\/]* | ?:[\\/]*)
4206   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4207   ;;
4208   *)
4209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212   IFS=$as_save_IFS
4213   test -z "$as_dir" && as_dir=.
4214   for ac_exec_ext in '' $ac_executable_extensions; do
4215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218     break 2
4219   fi
4220 done
4221 done
4222 IFS=$as_save_IFS
4223
4224   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4225   ;;
4226 esac
4227 fi
4228 CXX=$ac_cv_path_CXX
4229 if test -n "$CXX"; then
4230   { echo "$as_me:$LINENO: result: $CXX" >&5
4231 echo "${ECHO_T}$CXX" >&6; }
4232 else
4233   { echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6; }
4235 fi
4236
4237
4238 if test ! -e $CXX; then
4239    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4240 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4241    { (exit 1); exit 1; }; }
4242 fi
4243
4244 # Find a good install program.  We prefer a C program (faster),
4245 # so one script is as good as another.  But avoid the broken or
4246 # incompatible versions:
4247 # SysV /etc/install, /usr/sbin/install
4248 # SunOS /usr/etc/install
4249 # IRIX /sbin/install
4250 # AIX /bin/install
4251 # AmigaOS /C/install, which installs bootblocks on floppy discs
4252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4255 # OS/2's system install, which has a completely different semantic
4256 # ./install, which can be erroneously created by make from ./install.sh.
4257 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4258 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4259 if test -z "$INSTALL"; then
4260 if test "${ac_cv_path_install+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266   IFS=$as_save_IFS
4267   test -z "$as_dir" && as_dir=.
4268   # Account for people who put trailing slashes in PATH elements.
4269 case $as_dir/ in
4270   ./ | .// | /cC/* | \
4271   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4272   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4273   /usr/ucb/* ) ;;
4274   *)
4275     # OSF1 and SCO ODT 3.0 have their own names for install.
4276     # Don't use installbsd from OSF since it installs stuff as root
4277     # by default.
4278     for ac_prog in ginstall scoinst install; do
4279       for ac_exec_ext in '' $ac_executable_extensions; do
4280         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4281           if test $ac_prog = install &&
4282             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4283             # AIX install.  It has an incompatible calling convention.
4284             :
4285           elif test $ac_prog = install &&
4286             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4287             # program-specific install script used by HP pwplus--don't use.
4288             :
4289           else
4290             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4291             break 3
4292           fi
4293         fi
4294       done
4295     done
4296     ;;
4297 esac
4298 done
4299 IFS=$as_save_IFS
4300
4301
4302 fi
4303   if test "${ac_cv_path_install+set}" = set; then
4304     INSTALL=$ac_cv_path_install
4305   else
4306     # As a last resort, use the slow shell script.  Don't cache a
4307     # value for INSTALL within a source directory, because that will
4308     # break other packages using the cache if that directory is
4309     # removed, or if the value is a relative name.
4310     INSTALL=$ac_install_sh
4311   fi
4312 fi
4313 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4314 echo "${ECHO_T}$INSTALL" >&6; }
4315
4316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4317 # It thinks the first close brace ends the variable substitution.
4318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4319
4320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4321
4322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4323
4324 # Extract the first word of "mv", so it can be a program name with args.
4325 set dummy mv; ac_word=$2
4326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4328 if test "${ac_cv_path_MV+set}" = set; then
4329   echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331   case $MV in
4332   [\\/]* | ?:[\\/]*)
4333   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4334   ;;
4335   *)
4336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339   IFS=$as_save_IFS
4340   test -z "$as_dir" && as_dir=.
4341   for ac_exec_ext in '' $ac_executable_extensions; do
4342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4345     break 2
4346   fi
4347 done
4348 done
4349 IFS=$as_save_IFS
4350
4351   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4352   ;;
4353 esac
4354 fi
4355 MV=$ac_cv_path_MV
4356 if test -n "$MV"; then
4357   { echo "$as_me:$LINENO: result: $MV" >&5
4358 echo "${ECHO_T}$MV" >&6; }
4359 else
4360   { echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6; }
4362 fi
4363
4364
4365 # Extract the first word of "rm", so it can be a program name with args.
4366 set dummy rm; ac_word=$2
4367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4369 if test "${ac_cv_path_REMOVE+set}" = set; then
4370   echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372   case $REMOVE in
4373   [\\/]* | ?:[\\/]*)
4374   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4375   ;;
4376   *)
4377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4379 do
4380   IFS=$as_save_IFS
4381   test -z "$as_dir" && as_dir=.
4382   for ac_exec_ext in '' $ac_executable_extensions; do
4383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386     break 2
4387   fi
4388 done
4389 done
4390 IFS=$as_save_IFS
4391
4392   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4393   ;;
4394 esac
4395 fi
4396 REMOVE=$ac_cv_path_REMOVE
4397 if test -n "$REMOVE"; then
4398   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4399 echo "${ECHO_T}$REMOVE" >&6; }
4400 else
4401   { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4403 fi
4404
4405
4406 # Extract the first word of "cp", so it can be a program name with args.
4407 set dummy cp; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_path_CP+set}" = set; then
4411   echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413   case $CP in
4414   [\\/]* | ?:[\\/]*)
4415   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4416   ;;
4417   *)
4418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423   for ac_exec_ext in '' $ac_executable_extensions; do
4424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430 done
4431 IFS=$as_save_IFS
4432
4433   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4434   ;;
4435 esac
4436 fi
4437 CP=$ac_cv_path_CP
4438 if test -n "$CP"; then
4439   { echo "$as_me:$LINENO: result: $CP" >&5
4440 echo "${ECHO_T}$CP" >&6; }
4441 else
4442   { echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6; }
4444 fi
4445
4446
4447 # Extract the first word of "sed", so it can be a program name with args.
4448 set dummy sed; ac_word=$2
4449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451 if test "${ac_cv_path_SED+set}" = set; then
4452   echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454   case $SED in
4455   [\\/]* | ?:[\\/]*)
4456   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4457   ;;
4458   *)
4459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4461 do
4462   IFS=$as_save_IFS
4463   test -z "$as_dir" && as_dir=.
4464   for ac_exec_ext in '' $ac_executable_extensions; do
4465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468     break 2
4469   fi
4470 done
4471 done
4472 IFS=$as_save_IFS
4473
4474   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4475   ;;
4476 esac
4477 fi
4478 SED=$ac_cv_path_SED
4479 if test -n "$SED"; then
4480   { echo "$as_me:$LINENO: result: $SED" >&5
4481 echo "${ECHO_T}$SED" >&6; }
4482 else
4483   { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4485 fi
4486
4487
4488 # Extract the first word of "echo", so it can be a program name with args.
4489 set dummy echo; ac_word=$2
4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492 if test "${ac_cv_path_ECHO+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   case $ECHO in
4496   [\\/]* | ?:[\\/]*)
4497   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4498   ;;
4499   *)
4500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4502 do
4503   IFS=$as_save_IFS
4504   test -z "$as_dir" && as_dir=.
4505   for ac_exec_ext in '' $ac_executable_extensions; do
4506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509     break 2
4510   fi
4511 done
4512 done
4513 IFS=$as_save_IFS
4514
4515   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4516   ;;
4517 esac
4518 fi
4519 ECHO=$ac_cv_path_ECHO
4520 if test -n "$ECHO"; then
4521   { echo "$as_me:$LINENO: result: $ECHO" >&5
4522 echo "${ECHO_T}$ECHO" >&6; }
4523 else
4524   { echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6; }
4526 fi
4527
4528
4529 # Extract the first word of "cmp", so it can be a program name with args.
4530 set dummy cmp; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_path_CMP+set}" = set; then
4534   echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536   case $CMP in
4537   [\\/]* | ?:[\\/]*)
4538   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4539   ;;
4540   *)
4541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544   IFS=$as_save_IFS
4545   test -z "$as_dir" && as_dir=.
4546   for ac_exec_ext in '' $ac_executable_extensions; do
4547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550     break 2
4551   fi
4552 done
4553 done
4554 IFS=$as_save_IFS
4555
4556   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4557   ;;
4558 esac
4559 fi
4560 CMP=$ac_cv_path_CMP
4561 if test -n "$CMP"; then
4562   { echo "$as_me:$LINENO: result: $CMP" >&5
4563 echo "${ECHO_T}$CMP" >&6; }
4564 else
4565   { echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6; }
4567 fi
4568
4569
4570 # Extract the first word of "tbl", so it can be a program name with args.
4571 set dummy tbl; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_path_TBL+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   case $TBL in
4578   [\\/]* | ?:[\\/]*)
4579   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4580   ;;
4581   *)
4582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585   IFS=$as_save_IFS
4586   test -z "$as_dir" && as_dir=.
4587   for ac_exec_ext in '' $ac_executable_extensions; do
4588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4589     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591     break 2
4592   fi
4593 done
4594 done
4595 IFS=$as_save_IFS
4596
4597   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4598   ;;
4599 esac
4600 fi
4601 TBL=$ac_cv_path_TBL
4602 if test -n "$TBL"; then
4603   { echo "$as_me:$LINENO: result: $TBL" >&5
4604 echo "${ECHO_T}$TBL" >&6; }
4605 else
4606   { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4608 fi
4609
4610
4611 # Extract the first word of "ar", so it can be a program name with args.
4612 set dummy ar; ac_word=$2
4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615 if test "${ac_cv_path_AR+set}" = set; then
4616   echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618   case $AR in
4619   [\\/]* | ?:[\\/]*)
4620   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4621   ;;
4622   *)
4623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4625 do
4626   IFS=$as_save_IFS
4627   test -z "$as_dir" && as_dir=.
4628   for ac_exec_ext in '' $ac_executable_extensions; do
4629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632     break 2
4633   fi
4634 done
4635 done
4636 IFS=$as_save_IFS
4637
4638   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4639   ;;
4640 esac
4641 fi
4642 AR=$ac_cv_path_AR
4643 if test -n "$AR"; then
4644   { echo "$as_me:$LINENO: result: $AR" >&5
4645 echo "${ECHO_T}$AR" >&6; }
4646 else
4647   { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4649 fi
4650
4651
4652 # Extract the first word of "openssl", so it can be a program name with args.
4653 set dummy openssl; ac_word=$2
4654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656 if test "${ac_cv_path_OPENSSL+set}" = set; then
4657   echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659   case $OPENSSL in
4660   [\\/]* | ?:[\\/]*)
4661   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4662   ;;
4663   *)
4664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4666 do
4667   IFS=$as_save_IFS
4668   test -z "$as_dir" && as_dir=.
4669   for ac_exec_ext in '' $ac_executable_extensions; do
4670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673     break 2
4674   fi
4675 done
4676 done
4677 IFS=$as_save_IFS
4678
4679   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4680   ;;
4681 esac
4682 fi
4683 OPENSSL=$ac_cv_path_OPENSSL
4684 if test -n "$OPENSSL"; then
4685   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4686 echo "${ECHO_T}$OPENSSL" >&6; }
4687 else
4688   { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4690 fi
4691
4692
4693 # Extract the first word of "mtx", so it can be a program name with args.
4694 set dummy mtx; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_path_MTX+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   case $MTX in
4701   [\\/]* | ?:[\\/]*)
4702   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4703   ;;
4704   *)
4705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710   for ac_exec_ext in '' $ac_executable_extensions; do
4711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714     break 2
4715   fi
4716 done
4717 done
4718 IFS=$as_save_IFS
4719
4720   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4721   ;;
4722 esac
4723 fi
4724 MTX=$ac_cv_path_MTX
4725 if test -n "$MTX"; then
4726   { echo "$as_me:$LINENO: result: $MTX" >&5
4727 echo "${ECHO_T}$MTX" >&6; }
4728 else
4729   { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4731 fi
4732
4733
4734 # Extract the first word of "dd", so it can be a program name with args.
4735 set dummy dd; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_path_DD+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   case $DD in
4742   [\\/]* | ?:[\\/]*)
4743   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4744   ;;
4745   *)
4746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751   for ac_exec_ext in '' $ac_executable_extensions; do
4752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4762   ;;
4763 esac
4764 fi
4765 DD=$ac_cv_path_DD
4766 if test -n "$DD"; then
4767   { echo "$as_me:$LINENO: result: $DD" >&5
4768 echo "${ECHO_T}$DD" >&6; }
4769 else
4770   { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4772 fi
4773
4774
4775 # Extract the first word of "mkisofs", so it can be a program name with args.
4776 set dummy mkisofs; ac_word=$2
4777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4779 if test "${ac_cv_path_MKISOFS+set}" = set; then
4780   echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782   case $MKISOFS in
4783   [\\/]* | ?:[\\/]*)
4784   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4785   ;;
4786   *)
4787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792   for ac_exec_ext in '' $ac_executable_extensions; do
4793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799 done
4800 IFS=$as_save_IFS
4801
4802   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4803   ;;
4804 esac
4805 fi
4806 MKISOFS=$ac_cv_path_MKISOFS
4807 if test -n "$MKISOFS"; then
4808   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4809 echo "${ECHO_T}$MKISOFS" >&6; }
4810 else
4811   { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4813 fi
4814
4815
4816 # Extract the first word of "python", so it can be a program name with args.
4817 set dummy python; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_path_PYTHON+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   case $PYTHON in
4824   [\\/]* | ?:[\\/]*)
4825   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4826   ;;
4827   *)
4828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831   IFS=$as_save_IFS
4832   test -z "$as_dir" && as_dir=.
4833   for ac_exec_ext in '' $ac_executable_extensions; do
4834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837     break 2
4838   fi
4839 done
4840 done
4841 IFS=$as_save_IFS
4842
4843   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4844   ;;
4845 esac
4846 fi
4847 PYTHON=$ac_cv_path_PYTHON
4848 if test -n "$PYTHON"; then
4849   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4850 echo "${ECHO_T}$PYTHON" >&6; }
4851 else
4852   { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4854 fi
4855
4856
4857 # Extract the first word of "growisofs", so it can be a program name with args.
4858 set dummy growisofs; ac_word=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4862   echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864   case $GROWISOFS in
4865   [\\/]* | ?:[\\/]*)
4866   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4867   ;;
4868   *)
4869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872   IFS=$as_save_IFS
4873   test -z "$as_dir" && as_dir=.
4874   for ac_exec_ext in '' $ac_executable_extensions; do
4875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878     break 2
4879   fi
4880 done
4881 done
4882 IFS=$as_save_IFS
4883
4884   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4885   ;;
4886 esac
4887 fi
4888 GROWISOFS=$ac_cv_path_GROWISOFS
4889 if test -n "$GROWISOFS"; then
4890   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4891 echo "${ECHO_T}$GROWISOFS" >&6; }
4892 else
4893   { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4895 fi
4896
4897
4898 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4899 set dummy dvd+rw-mediainfo; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   case $DVDRWMEDIAINFO in
4906   [\\/]* | ?:[\\/]*)
4907   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4908   ;;
4909   *)
4910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915   for ac_exec_ext in '' $ac_executable_extensions; do
4916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922 done
4923 IFS=$as_save_IFS
4924
4925   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4926   ;;
4927 esac
4928 fi
4929 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4930 if test -n "$DVDRWMEDIAINFO"; then
4931   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4932 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4933 else
4934   { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4936 fi
4937
4938
4939 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4940 set dummy dvd+rw-format; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946   case $DVDRWFORMAT in
4947   [\\/]* | ?:[\\/]*)
4948   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4949   ;;
4950   *)
4951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956   for ac_exec_ext in '' $ac_executable_extensions; do
4957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960     break 2
4961   fi
4962 done
4963 done
4964 IFS=$as_save_IFS
4965
4966   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4967   ;;
4968 esac
4969 fi
4970 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4971 if test -n "$DVDRWFORMAT"; then
4972   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4973 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4974 else
4975   { echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6; }
4977 fi
4978
4979
4980 # Extract the first word of "pkg-config", so it can be a program name with args.
4981 set dummy pkg-config; ac_word=$2
4982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4984 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4985   echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987   case $PKGCONFIG in
4988   [\\/]* | ?:[\\/]*)
4989   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4990   ;;
4991   *)
4992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995   IFS=$as_save_IFS
4996   test -z "$as_dir" && as_dir=.
4997   for ac_exec_ext in '' $ac_executable_extensions; do
4998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001     break 2
5002   fi
5003 done
5004 done
5005 IFS=$as_save_IFS
5006
5007   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5008   ;;
5009 esac
5010 fi
5011 PKGCONFIG=$ac_cv_path_PKGCONFIG
5012 if test -n "$PKGCONFIG"; then
5013   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5014 echo "${ECHO_T}$PKGCONFIG" >&6; }
5015 else
5016   { echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6; }
5018 fi
5019
5020
5021 # Extract the first word of "qmake", so it can be a program name with args.
5022 set dummy qmake; ac_word=$2
5023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025 if test "${ac_cv_path_QMAKE+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028   case $QMAKE in
5029   [\\/]* | ?:[\\/]*)
5030   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5031   ;;
5032   *)
5033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036   IFS=$as_save_IFS
5037   test -z "$as_dir" && as_dir=.
5038   for ac_exec_ext in '' $ac_executable_extensions; do
5039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042     break 2
5043   fi
5044 done
5045 done
5046 IFS=$as_save_IFS
5047
5048   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5049   ;;
5050 esac
5051 fi
5052 QMAKE=$ac_cv_path_QMAKE
5053 if test -n "$QMAKE"; then
5054   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5055 echo "${ECHO_T}$QMAKE" >&6; }
5056 else
5057   { echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6; }
5059 fi
5060
5061
5062 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5063 set dummy qmake-qt4; ac_word=$2
5064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5067   echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069   case $QMAKEQT4 in
5070   [\\/]* | ?:[\\/]*)
5071   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5072   ;;
5073   *)
5074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079   for ac_exec_ext in '' $ac_executable_extensions; do
5080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083     break 2
5084   fi
5085 done
5086 done
5087 IFS=$as_save_IFS
5088
5089   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5090   ;;
5091 esac
5092 fi
5093 QMAKEQT4=$ac_cv_path_QMAKEQT4
5094 if test -n "$QMAKEQT4"; then
5095   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5096 echo "${ECHO_T}$QMAKEQT4" >&6; }
5097 else
5098   { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5100 fi
5101
5102
5103 # Extract the first word of "gmake", so it can be a program name with args.
5104 set dummy gmake; ac_word=$2
5105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_path_GMAKE+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   case $GMAKE in
5111   [\\/]* | ?:[\\/]*)
5112   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5113   ;;
5114   *)
5115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118   IFS=$as_save_IFS
5119   test -z "$as_dir" && as_dir=.
5120   for ac_exec_ext in '' $ac_executable_extensions; do
5121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124     break 2
5125   fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5131   ;;
5132 esac
5133 fi
5134 GMAKE=$ac_cv_path_GMAKE
5135 if test -n "$GMAKE"; then
5136   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5137 echo "${ECHO_T}$GMAKE" >&6; }
5138 else
5139   { echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6; }
5141 fi
5142
5143
5144
5145 if test "x$WXCONFIG" = x; then
5146    WXCONFIG=wx-config
5147 fi
5148 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5149 set dummy ${WXCONFIG}; ac_word=$2
5150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5152 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5153   echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155   case $WXCONFIG in
5156   [\\/]* | ?:[\\/]*)
5157   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5158   ;;
5159   *)
5160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163   IFS=$as_save_IFS
5164   test -z "$as_dir" && as_dir=.
5165   for ac_exec_ext in '' $ac_executable_extensions; do
5166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169     break 2
5170   fi
5171 done
5172 done
5173 IFS=$as_save_IFS
5174
5175   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5176   ;;
5177 esac
5178 fi
5179 WXCONFIG=$ac_cv_path_WXCONFIG
5180 if test -n "$WXCONFIG"; then
5181   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5182 echo "${ECHO_T}$WXCONFIG" >&6; }
5183 else
5184   { echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6; }
5186 fi
5187
5188
5189
5190 # Extract the first word of "cdrecord", so it can be a program name with args.
5191 set dummy cdrecord; ac_word=$2
5192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5194 if test "${ac_cv_path_CDRECORD+set}" = set; then
5195   echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197   case $CDRECORD in
5198   [\\/]* | ?:[\\/]*)
5199   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5200   ;;
5201   *)
5202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205   IFS=$as_save_IFS
5206   test -z "$as_dir" && as_dir=.
5207   for ac_exec_ext in '' $ac_executable_extensions; do
5208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211     break 2
5212   fi
5213 done
5214 done
5215 IFS=$as_save_IFS
5216
5217   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5218   ;;
5219 esac
5220 fi
5221 CDRECORD=$ac_cv_path_CDRECORD
5222 if test -n "$CDRECORD"; then
5223   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5224 echo "${ECHO_T}$CDRECORD" >&6; }
5225 else
5226   { echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6; }
5228 fi
5229
5230
5231 # Extract the first word of "pidof", so it can be a program name with args.
5232 set dummy pidof; ac_word=$2
5233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5235 if test "${ac_cv_path_PIDOF+set}" = set; then
5236   echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238   case $PIDOF in
5239   [\\/]* | ?:[\\/]*)
5240   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5241   ;;
5242   *)
5243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246   IFS=$as_save_IFS
5247   test -z "$as_dir" && as_dir=.
5248   for ac_exec_ext in '' $ac_executable_extensions; do
5249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252     break 2
5253   fi
5254 done
5255 done
5256 IFS=$as_save_IFS
5257
5258   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5259   ;;
5260 esac
5261 fi
5262 PIDOF=$ac_cv_path_PIDOF
5263 if test -n "$PIDOF"; then
5264   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5265 echo "${ECHO_T}$PIDOF" >&6; }
5266 else
5267   { echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6; }
5269 fi
5270
5271
5272 for ac_prog in gawk mawk nawk awk
5273 do
5274   # Extract the first word of "$ac_prog", so it can be a program name with args.
5275 set dummy $ac_prog; ac_word=$2
5276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5278 if test "${ac_cv_prog_AWK+set}" = set; then
5279   echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281   if test -n "$AWK"; then
5282   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287   IFS=$as_save_IFS
5288   test -z "$as_dir" && as_dir=.
5289   for ac_exec_ext in '' $ac_executable_extensions; do
5290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291     ac_cv_prog_AWK="$ac_prog"
5292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293     break 2
5294   fi
5295 done
5296 done
5297 IFS=$as_save_IFS
5298
5299 fi
5300 fi
5301 AWK=$ac_cv_prog_AWK
5302 if test -n "$AWK"; then
5303   { echo "$as_me:$LINENO: result: $AWK" >&5
5304 echo "${ECHO_T}$AWK" >&6; }
5305 else
5306   { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5308 fi
5309
5310
5311   test -n "$AWK" && break
5312 done
5313
5314 # Some AWK programs fail, so test it and warn the user
5315 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5316       { if ((prog == $2) || (("(" prog ")") == $2) ||
5317       (("" prog "") == $2) ||
5318       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5319 else
5320   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5321    The regex engine of $AWK is too broken to be used you
5322    might want to install GNU AWK.
5323    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5324 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5325    The regex engine of $AWK is too broken to be used you
5326    might want to install GNU AWK.
5327    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5328    { (exit 1); exit 1; }; }
5329 fi
5330 THE_AWK=$AWK
5331 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5332 set dummy $THE_AWK; ac_word=$2
5333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5335 if test "${ac_cv_path_AWK+set}" = set; then
5336   echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338   case $AWK in
5339   [\\/]* | ?:[\\/]*)
5340   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5341   ;;
5342   *)
5343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348   for ac_exec_ext in '' $ac_executable_extensions; do
5349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355 done
5356 IFS=$as_save_IFS
5357
5358   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5359   ;;
5360 esac
5361 fi
5362 AWK=$ac_cv_path_AWK
5363 if test -n "$AWK"; then
5364   { echo "$as_me:$LINENO: result: $AWK" >&5
5365 echo "${ECHO_T}$AWK" >&6; }
5366 else
5367   { echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6; }
5369 fi
5370
5371
5372
5373
5374 test -n "$ARFLAG" || ARFLAGS="cr"
5375
5376
5377 MAKE_SHELL=/bin/sh
5378
5379
5380
5381
5382
5383
5384
5385 # Check whether --enable-libtool was given.
5386 if test "${enable_libtool+set}" = set; then
5387   enableval=$enable_libtool;
5388        if test x$enableval = xno; then
5389           use_libtool=no
5390        fi
5391
5392
5393 fi
5394
5395 case `pwd` in
5396   *\ * | *\     *)
5397     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5398 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5399 esac
5400
5401
5402
5403 macro_version='2.2.6'
5404 macro_revision='1.3012'
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418 ltmain="$ac_aux_dir/ltmain.sh"
5419
5420 # Make sure we can run config.sub.
5421 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5422   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5423 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5424    { (exit 1); exit 1; }; }
5425
5426 { echo "$as_me:$LINENO: checking build system type" >&5
5427 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5428 if test "${ac_cv_build+set}" = set; then
5429   echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431   ac_build_alias=$build_alias
5432 test "x$ac_build_alias" = x &&
5433   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5434 test "x$ac_build_alias" = x &&
5435   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5436 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5437    { (exit 1); exit 1; }; }
5438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5439   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5440 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5441    { (exit 1); exit 1; }; }
5442
5443 fi
5444 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5445 echo "${ECHO_T}$ac_cv_build" >&6; }
5446 case $ac_cv_build in
5447 *-*-*) ;;
5448 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5449 echo "$as_me: error: invalid value of canonical build" >&2;}
5450    { (exit 1); exit 1; }; };;
5451 esac
5452 build=$ac_cv_build
5453 ac_save_IFS=$IFS; IFS='-'
5454 set x $ac_cv_build
5455 shift
5456 build_cpu=$1
5457 build_vendor=$2
5458 shift; shift
5459 # Remember, the first character of IFS is used to create $*,
5460 # except with old shells:
5461 build_os=$*
5462 IFS=$ac_save_IFS
5463 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5464
5465
5466 { echo "$as_me:$LINENO: checking host system type" >&5
5467 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5468 if test "${ac_cv_host+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   if test "x$host_alias" = x; then
5472   ac_cv_host=$ac_cv_build
5473 else
5474   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5475     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5476 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5477    { (exit 1); exit 1; }; }
5478 fi
5479
5480 fi
5481 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5482 echo "${ECHO_T}$ac_cv_host" >&6; }
5483 case $ac_cv_host in
5484 *-*-*) ;;
5485 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5486 echo "$as_me: error: invalid value of canonical host" >&2;}
5487    { (exit 1); exit 1; }; };;
5488 esac
5489 host=$ac_cv_host
5490 ac_save_IFS=$IFS; IFS='-'
5491 set x $ac_cv_host
5492 shift
5493 host_cpu=$1
5494 host_vendor=$2
5495 shift; shift
5496 # Remember, the first character of IFS is used to create $*,
5497 # except with old shells:
5498 host_os=$*
5499 IFS=$ac_save_IFS
5500 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5501
5502
5503 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5504 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5505 if test "${ac_cv_path_SED+set}" = set; then
5506   echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5509      for ac_i in 1 2 3 4 5 6 7; do
5510        ac_script="$ac_script$as_nl$ac_script"
5511      done
5512      echo "$ac_script" | sed 99q >conftest.sed
5513      $as_unset ac_script || ac_script=
5514      # Extract the first word of "sed gsed" to use in msg output
5515 if test -z "$SED"; then
5516 set dummy sed gsed; ac_prog_name=$2
5517 if test "${ac_cv_path_SED+set}" = set; then
5518   echo $ECHO_N "(cached) $ECHO_C" >&6
5519 else
5520   ac_path_SED_found=false
5521 # Loop through the user's path and test for each of PROGNAME-LIST
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525   IFS=$as_save_IFS
5526   test -z "$as_dir" && as_dir=.
5527   for ac_prog in sed gsed; do
5528   for ac_exec_ext in '' $ac_executable_extensions; do
5529     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5530     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5531     # Check for GNU ac_path_SED and select it if it is found.
5532   # Check for GNU $ac_path_SED
5533 case `"$ac_path_SED" --version 2>&1` in
5534 *GNU*)
5535   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5536 *)
5537   ac_count=0
5538   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5539   while :
5540   do
5541     cat "conftest.in" "conftest.in" >"conftest.tmp"
5542     mv "conftest.tmp" "conftest.in"
5543     cp "conftest.in" "conftest.nl"
5544     echo '' >> "conftest.nl"
5545     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5546     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5547     ac_count=`expr $ac_count + 1`
5548     if test $ac_count -gt ${ac_path_SED_max-0}; then
5549       # Best one so far, save it but keep looking for a better one
5550       ac_cv_path_SED="$ac_path_SED"
5551       ac_path_SED_max=$ac_count
5552     fi
5553     # 10*(2^10) chars as input seems more than enough
5554     test $ac_count -gt 10 && break
5555   done
5556   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5557 esac
5558
5559
5560     $ac_path_SED_found && break 3
5561   done
5562 done
5563
5564 done
5565 IFS=$as_save_IFS
5566
5567
5568 fi
5569
5570 SED="$ac_cv_path_SED"
5571 if test -z "$SED"; then
5572   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5573 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5574    { (exit 1); exit 1; }; }
5575 fi
5576
5577 else
5578   ac_cv_path_SED=$SED
5579 fi
5580
5581 fi
5582 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5583 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5584  SED="$ac_cv_path_SED"
5585   rm -f conftest.sed
5586
5587 test -z "$SED" && SED=sed
5588 Xsed="$SED -e 1s/^X//"
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600 { echo "$as_me:$LINENO: checking for fgrep" >&5
5601 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5602 if test "${ac_cv_path_FGREP+set}" = set; then
5603   echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5606    then ac_cv_path_FGREP="$GREP -F"
5607    else
5608      # Extract the first word of "fgrep" to use in msg output
5609 if test -z "$FGREP"; then
5610 set dummy fgrep; ac_prog_name=$2
5611 if test "${ac_cv_path_FGREP+set}" = set; then
5612   echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614   ac_path_FGREP_found=false
5615 # Loop through the user's path and test for each of PROGNAME-LIST
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5618 do
5619   IFS=$as_save_IFS
5620   test -z "$as_dir" && as_dir=.
5621   for ac_prog in fgrep; do
5622   for ac_exec_ext in '' $ac_executable_extensions; do
5623     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5624     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5625     # Check for GNU ac_path_FGREP and select it if it is found.
5626   # Check for GNU $ac_path_FGREP
5627 case `"$ac_path_FGREP" --version 2>&1` in
5628 *GNU*)
5629   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5630 *)
5631   ac_count=0
5632   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5633   while :
5634   do
5635     cat "conftest.in" "conftest.in" >"conftest.tmp"
5636     mv "conftest.tmp" "conftest.in"
5637     cp "conftest.in" "conftest.nl"
5638     echo 'FGREP' >> "conftest.nl"
5639     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5640     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5641     ac_count=`expr $ac_count + 1`
5642     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5643       # Best one so far, save it but keep looking for a better one
5644       ac_cv_path_FGREP="$ac_path_FGREP"
5645       ac_path_FGREP_max=$ac_count
5646     fi
5647     # 10*(2^10) chars as input seems more than enough
5648     test $ac_count -gt 10 && break
5649   done
5650   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5651 esac
5652
5653
5654     $ac_path_FGREP_found && break 3
5655   done
5656 done
5657
5658 done
5659 IFS=$as_save_IFS
5660
5661
5662 fi
5663
5664 FGREP="$ac_cv_path_FGREP"
5665 if test -z "$FGREP"; then
5666   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5667 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5668    { (exit 1); exit 1; }; }
5669 fi
5670
5671 else
5672   ac_cv_path_FGREP=$FGREP
5673 fi
5674
5675
5676    fi
5677 fi
5678 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5679 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5680  FGREP="$ac_cv_path_FGREP"
5681
5682
5683 test -z "$GREP" && GREP=grep
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703 # Check whether --with-gnu-ld was given.
5704 if test "${with_gnu_ld+set}" = set; then
5705   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5706 else
5707   with_gnu_ld=no
5708 fi
5709
5710 ac_prog=ld
5711 if test "$GCC" = yes; then
5712   # Check if gcc -print-prog-name=ld gives a path.
5713   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5714 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5715   case $host in
5716   *-*-mingw*)
5717     # gcc leaves a trailing carriage return which upsets mingw
5718     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5719   *)
5720     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5721   esac
5722   case $ac_prog in
5723     # Accept absolute paths.
5724     [\\/]* | ?:[\\/]*)
5725       re_direlt='/[^/][^/]*/\.\./'
5726       # Canonicalize the pathname of ld
5727       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5728       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5729         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5730       done
5731       test -z "$LD" && LD="$ac_prog"
5732       ;;
5733   "")
5734     # If it fails, then pretend we aren't using GCC.
5735     ac_prog=ld
5736     ;;
5737   *)
5738     # If it is relative, then search for the first ld in PATH.
5739     with_gnu_ld=unknown
5740     ;;
5741   esac
5742 elif test "$with_gnu_ld" = yes; then
5743   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5744 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5745 else
5746   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5747 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5748 fi
5749 if test "${lt_cv_path_LD+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   if test -z "$LD"; then
5753   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5754   for ac_dir in $PATH; do
5755     IFS="$lt_save_ifs"
5756     test -z "$ac_dir" && ac_dir=.
5757     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5758       lt_cv_path_LD="$ac_dir/$ac_prog"
5759       # Check to see if the program is GNU ld.  I'd rather use --version,
5760       # but apparently some variants of GNU ld only accept -v.
5761       # Break only if it was the GNU/non-GNU ld that we prefer.
5762       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5763       *GNU* | *'with BFD'*)
5764         test "$with_gnu_ld" != no && break
5765         ;;
5766       *)
5767         test "$with_gnu_ld" != yes && break
5768         ;;
5769       esac
5770     fi
5771   done
5772   IFS="$lt_save_ifs"
5773 else
5774   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5775 fi
5776 fi
5777
5778 LD="$lt_cv_path_LD"
5779 if test -n "$LD"; then
5780   { echo "$as_me:$LINENO: result: $LD" >&5
5781 echo "${ECHO_T}$LD" >&6; }
5782 else
5783   { echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6; }
5785 fi
5786 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5787 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5788    { (exit 1); exit 1; }; }
5789 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5790 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5791 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5795 case `$LD -v 2>&1 </dev/null` in
5796 *GNU* | *'with BFD'*)
5797   lt_cv_prog_gnu_ld=yes
5798   ;;
5799 *)
5800   lt_cv_prog_gnu_ld=no
5801   ;;
5802 esac
5803 fi
5804 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5805 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5806 with_gnu_ld=$lt_cv_prog_gnu_ld
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5817 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5818 if test "${lt_cv_path_NM+set}" = set; then
5819   echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821   if test -n "$NM"; then
5822   # Let the user override the test.
5823   lt_cv_path_NM="$NM"
5824 else
5825   lt_nm_to_check="${ac_tool_prefix}nm"
5826   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5827     lt_nm_to_check="$lt_nm_to_check nm"
5828   fi
5829   for lt_tmp_nm in $lt_nm_to_check; do
5830     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5831     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5832       IFS="$lt_save_ifs"
5833       test -z "$ac_dir" && ac_dir=.
5834       tmp_nm="$ac_dir/$lt_tmp_nm"
5835       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5836         # Check to see if the nm accepts a BSD-compat flag.
5837         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5838         #   nm: unknown option "B" ignored
5839         # Tru64's nm complains that /dev/null is an invalid object file
5840         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5841         */dev/null* | *'Invalid file or object type'*)
5842           lt_cv_path_NM="$tmp_nm -B"
5843           break
5844           ;;
5845         *)
5846           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5847           */dev/null*)
5848             lt_cv_path_NM="$tmp_nm -p"
5849             break
5850             ;;
5851           *)
5852             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5853             continue # so that we can try to find one that supports BSD flags
5854             ;;
5855           esac
5856           ;;
5857         esac
5858       fi
5859     done
5860     IFS="$lt_save_ifs"
5861   done
5862   : ${lt_cv_path_NM=no}
5863 fi
5864 fi
5865 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5866 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5867 if test "$lt_cv_path_NM" != "no"; then
5868   NM="$lt_cv_path_NM"
5869 else
5870   # Didn't find any BSD compatible name lister, look for dumpbin.
5871   if test -n "$ac_tool_prefix"; then
5872   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5873   do
5874     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   if test -n "$DUMPBIN"; then
5882   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889   for ac_exec_ext in '' $ac_executable_extensions; do
5890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5891     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896 done
5897 IFS=$as_save_IFS
5898
5899 fi
5900 fi
5901 DUMPBIN=$ac_cv_prog_DUMPBIN
5902 if test -n "$DUMPBIN"; then
5903   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5904 echo "${ECHO_T}$DUMPBIN" >&6; }
5905 else
5906   { echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6; }
5908 fi
5909
5910
5911     test -n "$DUMPBIN" && break
5912   done
5913 fi
5914 if test -z "$DUMPBIN"; then
5915   ac_ct_DUMPBIN=$DUMPBIN
5916   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5917 do
5918   # Extract the first word of "$ac_prog", so it can be a program name with args.
5919 set dummy $ac_prog; ac_word=$2
5920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925   if test -n "$ac_ct_DUMPBIN"; then
5926   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933   for ac_exec_ext in '' $ac_executable_extensions; do
5934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5942
5943 fi
5944 fi
5945 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5946 if test -n "$ac_ct_DUMPBIN"; then
5947   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5948 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5949 else
5950   { echo "$as_me:$LINENO: result: no" >&5
5951 echo "${ECHO_T}no" >&6; }
5952 fi
5953
5954
5955   test -n "$ac_ct_DUMPBIN" && break
5956 done
5957
5958   if test "x$ac_ct_DUMPBIN" = x; then
5959     DUMPBIN=":"
5960   else
5961     case $cross_compiling:$ac_tool_warned in
5962 yes:)
5963 { echo "$as_me:$LINENO: 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." >&5
5966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5967 whose name does not start with the host triplet.  If you think this
5968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5969 ac_tool_warned=yes ;;
5970 esac
5971     DUMPBIN=$ac_ct_DUMPBIN
5972   fi
5973 fi
5974
5975
5976   if test "$DUMPBIN" != ":"; then
5977     NM="$DUMPBIN"
5978   fi
5979 fi
5980 test -z "$NM" && NM=nm
5981
5982
5983
5984
5985
5986
5987 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5988 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5989 if test "${lt_cv_nm_interface+set}" = set; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992   lt_cv_nm_interface="BSD nm"
5993   echo "int some_variable = 0;" > conftest.$ac_ext
5994   (eval echo "\"\$as_me:5994: $ac_compile\"" >&5)
5995   (eval "$ac_compile" 2>conftest.err)
5996   cat conftest.err >&5
5997   (eval echo "\"\$as_me:5997: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5998   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5999   cat conftest.err >&5
6000   (eval echo "\"\$as_me:6000: output\"" >&5)
6001   cat conftest.out >&5
6002   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6003     lt_cv_nm_interface="MS dumpbin"
6004   fi
6005   rm -f conftest*
6006 fi
6007 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6008 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6009
6010 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6011 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6012 LN_S=$as_ln_s
6013 if test "$LN_S" = "ln -s"; then
6014   { echo "$as_me:$LINENO: result: yes" >&5
6015 echo "${ECHO_T}yes" >&6; }
6016 else
6017   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6018 echo "${ECHO_T}no, using $LN_S" >&6; }
6019 fi
6020
6021 # find the maximum length of command line arguments
6022 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6023 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6024 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6025   echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027     i=0
6028   teststring="ABCD"
6029
6030   case $build_os in
6031   msdosdjgpp*)
6032     # On DJGPP, this test can blow up pretty badly due to problems in libc
6033     # (any single argument exceeding 2000 bytes causes a buffer overrun
6034     # during glob expansion).  Even if it were fixed, the result of this
6035     # check would be larger than it should be.
6036     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6037     ;;
6038
6039   gnu*)
6040     # Under GNU Hurd, this test is not required because there is
6041     # no limit to the length of command line arguments.
6042     # Libtool will interpret -1 as no limit whatsoever
6043     lt_cv_sys_max_cmd_len=-1;
6044     ;;
6045
6046   cygwin* | mingw* | cegcc*)
6047     # On Win9x/ME, this test blows up -- it succeeds, but takes
6048     # about 5 minutes as the teststring grows exponentially.
6049     # Worse, since 9x/ME are not pre-emptively multitasking,
6050     # you end up with a "frozen" computer, even though with patience
6051     # the test eventually succeeds (with a max line length of 256k).
6052     # Instead, let's just punt: use the minimum linelength reported by
6053     # all of the supported platforms: 8192 (on NT/2K/XP).
6054     lt_cv_sys_max_cmd_len=8192;
6055     ;;
6056
6057   amigaos*)
6058     # On AmigaOS with pdksh, this test takes hours, literally.
6059     # So we just punt and use a minimum line length of 8192.
6060     lt_cv_sys_max_cmd_len=8192;
6061     ;;
6062
6063   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6064     # This has been around since 386BSD, at least.  Likely further.
6065     if test -x /sbin/sysctl; then
6066       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6067     elif test -x /usr/sbin/sysctl; then
6068       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6069     else
6070       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6071     fi
6072     # And add a safety zone
6073     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6074     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6075     ;;
6076
6077   interix*)
6078     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6079     lt_cv_sys_max_cmd_len=196608
6080     ;;
6081
6082   osf*)
6083     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6084     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6085     # nice to cause kernel panics so lets avoid the loop below.
6086     # First set a reasonable default.
6087     lt_cv_sys_max_cmd_len=16384
6088     #
6089     if test -x /sbin/sysconfig; then
6090       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6091         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6092       esac
6093     fi
6094     ;;
6095   sco3.2v5*)
6096     lt_cv_sys_max_cmd_len=102400
6097     ;;
6098   sysv5* | sco5v6* | sysv4.2uw2*)
6099     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6100     if test -n "$kargmax"; then
6101       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6102     else
6103       lt_cv_sys_max_cmd_len=32768
6104     fi
6105     ;;
6106   *)
6107     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6108     if test -n "$lt_cv_sys_max_cmd_len"; then
6109       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6110       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6111     else
6112       # Make teststring a little bigger before we do anything with it.
6113       # a 1K string should be a reasonable start.
6114       for i in 1 2 3 4 5 6 7 8 ; do
6115         teststring=$teststring$teststring
6116       done
6117       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6118       # If test is not a shell built-in, we'll probably end up computing a
6119       # maximum length that is only half of the actual maximum length, but
6120       # we can't tell.
6121       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6122                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6123               test $i != 17 # 1/2 MB should be enough
6124       do
6125         i=`expr $i + 1`
6126         teststring=$teststring$teststring
6127       done
6128       # Only check the string length outside the loop.
6129       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6130       teststring=
6131       # Add a significant safety factor because C++ compilers can tack on
6132       # massive amounts of additional arguments before passing them to the
6133       # linker.  It appears as though 1/2 is a usable value.
6134       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6135     fi
6136     ;;
6137   esac
6138
6139 fi
6140
6141 if test -n $lt_cv_sys_max_cmd_len ; then
6142   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6143 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6144 else
6145   { echo "$as_me:$LINENO: result: none" >&5
6146 echo "${ECHO_T}none" >&6; }
6147 fi
6148 max_cmd_len=$lt_cv_sys_max_cmd_len
6149
6150
6151
6152
6153
6154
6155 : ${CP="cp -f"}
6156 : ${MV="mv -f"}
6157 : ${RM="rm -f"}
6158
6159 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6160 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6161 # Try some XSI features
6162 xsi_shell=no
6163 ( _lt_dummy="a/b/c"
6164   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6165       = c,a/b,, \
6166     && eval 'test $(( 1 + 1 )) -eq 2 \
6167     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6168   && xsi_shell=yes
6169 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6170 echo "${ECHO_T}$xsi_shell" >&6; }
6171
6172
6173 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6174 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6175 lt_shell_append=no
6176 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6177     >/dev/null 2>&1 \
6178   && lt_shell_append=yes
6179 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6180 echo "${ECHO_T}$lt_shell_append" >&6; }
6181
6182
6183 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6184   lt_unset=unset
6185 else
6186   lt_unset=false
6187 fi
6188
6189
6190
6191
6192
6193 # test EBCDIC or ASCII
6194 case `echo X|tr X '\101'` in
6195  A) # ASCII based system
6196     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6197   lt_SP2NL='tr \040 \012'
6198   lt_NL2SP='tr \015\012 \040\040'
6199   ;;
6200  *) # EBCDIC based system
6201   lt_SP2NL='tr \100 \n'
6202   lt_NL2SP='tr \r\n \100\100'
6203   ;;
6204 esac
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6215 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6216 if test "${lt_cv_ld_reload_flag+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   lt_cv_ld_reload_flag='-r'
6220 fi
6221 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6222 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6223 reload_flag=$lt_cv_ld_reload_flag
6224 case $reload_flag in
6225 "" | " "*) ;;
6226 *) reload_flag=" $reload_flag" ;;
6227 esac
6228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6229 case $host_os in
6230   darwin*)
6231     if test "$GCC" = yes; then
6232       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6233     else
6234       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6235     fi
6236     ;;
6237 esac
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247 if test -n "$ac_tool_prefix"; then
6248   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6253   echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255   if test -n "$OBJDUMP"; then
6256   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261   IFS=$as_save_IFS
6262   test -z "$as_dir" && as_dir=.
6263   for ac_exec_ext in '' $ac_executable_extensions; do
6264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267     break 2
6268   fi
6269 done
6270 done
6271 IFS=$as_save_IFS
6272
6273 fi
6274 fi
6275 OBJDUMP=$ac_cv_prog_OBJDUMP
6276 if test -n "$OBJDUMP"; then
6277   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6278 echo "${ECHO_T}$OBJDUMP" >&6; }
6279 else
6280   { echo "$as_me:$LINENO: result: no" >&5
6281 echo "${ECHO_T}no" >&6; }
6282 fi
6283
6284
6285 fi
6286 if test -z "$ac_cv_prog_OBJDUMP"; then
6287   ac_ct_OBJDUMP=$OBJDUMP
6288   # Extract the first word of "objdump", so it can be a program name with args.
6289 set dummy objdump; ac_word=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6293   echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295   if test -n "$ac_ct_OBJDUMP"; then
6296   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303   for ac_exec_ext in '' $ac_executable_extensions; do
6304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308   fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6316 if test -n "$ac_ct_OBJDUMP"; then
6317   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6318 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6319 else
6320   { echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6; }
6322 fi
6323
6324   if test "x$ac_ct_OBJDUMP" = x; then
6325     OBJDUMP="false"
6326   else
6327     case $cross_compiling:$ac_tool_warned in
6328 yes:)
6329 { echo "$as_me:$LINENO: 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." >&5
6332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6333 whose name does not start with the host triplet.  If you think this
6334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6335 ac_tool_warned=yes ;;
6336 esac
6337     OBJDUMP=$ac_ct_OBJDUMP
6338   fi
6339 else
6340   OBJDUMP="$ac_cv_prog_OBJDUMP"
6341 fi
6342
6343 test -z "$OBJDUMP" && OBJDUMP=objdump
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6354 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6355 if test "${lt_cv_deplibs_check_method+set}" = set; then
6356   echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358   lt_cv_file_magic_cmd='$MAGIC_CMD'
6359 lt_cv_file_magic_test_file=
6360 lt_cv_deplibs_check_method='unknown'
6361 # Need to set the preceding variable on all platforms that support
6362 # interlibrary dependencies.
6363 # 'none' -- dependencies not supported.
6364 # `unknown' -- same as none, but documents that we really don't know.
6365 # 'pass_all' -- all dependencies passed with no checks.
6366 # 'test_compile' -- check by making test program.
6367 # 'file_magic [[regex]]' -- check by looking for files in library path
6368 # which responds to the $file_magic_cmd with a given extended regex.
6369 # If you have `file' or equivalent on your system and you're not sure
6370 # whether `pass_all' will *always* work, you probably want this one.
6371
6372 case $host_os in
6373 aix[4-9]*)
6374   lt_cv_deplibs_check_method=pass_all
6375   ;;
6376
6377 beos*)
6378   lt_cv_deplibs_check_method=pass_all
6379   ;;
6380
6381 bsdi[45]*)
6382   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6383   lt_cv_file_magic_cmd='/usr/bin/file -L'
6384   lt_cv_file_magic_test_file=/shlib/libc.so
6385   ;;
6386
6387 cygwin*)
6388   # func_win32_libid is a shell function defined in ltmain.sh
6389   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6390   lt_cv_file_magic_cmd='func_win32_libid'
6391   ;;
6392
6393 mingw* | pw32*)
6394   # Base MSYS/MinGW do not provide the 'file' command needed by
6395   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6396   # unless we find 'file', for example because we are cross-compiling.
6397   if ( file / ) >/dev/null 2>&1; then
6398     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6399     lt_cv_file_magic_cmd='func_win32_libid'
6400   else
6401     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6402     lt_cv_file_magic_cmd='$OBJDUMP -f'
6403   fi
6404   ;;
6405
6406 cegcc)
6407   # use the weaker test based on 'objdump'. See mingw*.
6408   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6409   lt_cv_file_magic_cmd='$OBJDUMP -f'
6410   ;;
6411
6412 darwin* | rhapsody*)
6413   lt_cv_deplibs_check_method=pass_all
6414   ;;
6415
6416 freebsd* | dragonfly*)
6417   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6418     case $host_cpu in
6419     i*86 )
6420       # Not sure whether the presence of OpenBSD here was a mistake.
6421       # Let's accept both of them until this is cleared up.
6422       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6423       lt_cv_file_magic_cmd=/usr/bin/file
6424       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6425       ;;
6426     esac
6427   else
6428     lt_cv_deplibs_check_method=pass_all
6429   fi
6430   ;;
6431
6432 gnu*)
6433   lt_cv_deplibs_check_method=pass_all
6434   ;;
6435
6436 hpux10.20* | hpux11*)
6437   lt_cv_file_magic_cmd=/usr/bin/file
6438   case $host_cpu in
6439   ia64*)
6440     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6441     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6442     ;;
6443   hppa*64*)
6444     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]'
6445     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6446     ;;
6447   *)
6448     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6449     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6450     ;;
6451   esac
6452   ;;
6453
6454 interix[3-9]*)
6455   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6456   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6457   ;;
6458
6459 irix5* | irix6* | nonstopux*)
6460   case $LD in
6461   *-32|*"-32 ") libmagic=32-bit;;
6462   *-n32|*"-n32 ") libmagic=N32;;
6463   *-64|*"-64 ") libmagic=64-bit;;
6464   *) libmagic=never-match;;
6465   esac
6466   lt_cv_deplibs_check_method=pass_all
6467   ;;
6468
6469 # This must be Linux ELF.
6470 linux* | k*bsd*-gnu)
6471   lt_cv_deplibs_check_method=pass_all
6472   ;;
6473
6474 netbsd*)
6475   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6476     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6477   else
6478     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6479   fi
6480   ;;
6481
6482 newos6*)
6483   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6484   lt_cv_file_magic_cmd=/usr/bin/file
6485   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6486   ;;
6487
6488 *nto* | *qnx*)
6489   lt_cv_deplibs_check_method=pass_all
6490   ;;
6491
6492 openbsd*)
6493   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6494     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6495   else
6496     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6497   fi
6498   ;;
6499
6500 osf3* | osf4* | osf5*)
6501   lt_cv_deplibs_check_method=pass_all
6502   ;;
6503
6504 rdos*)
6505   lt_cv_deplibs_check_method=pass_all
6506   ;;
6507
6508 solaris*)
6509   lt_cv_deplibs_check_method=pass_all
6510   ;;
6511
6512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6513   lt_cv_deplibs_check_method=pass_all
6514   ;;
6515
6516 sysv4 | sysv4.3*)
6517   case $host_vendor in
6518   motorola)
6519     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]'
6520     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6521     ;;
6522   ncr)
6523     lt_cv_deplibs_check_method=pass_all
6524     ;;
6525   sequent)
6526     lt_cv_file_magic_cmd='/bin/file'
6527     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6528     ;;
6529   sni)
6530     lt_cv_file_magic_cmd='/bin/file'
6531     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6532     lt_cv_file_magic_test_file=/lib/libc.so
6533     ;;
6534   siemens)
6535     lt_cv_deplibs_check_method=pass_all
6536     ;;
6537   pc)
6538     lt_cv_deplibs_check_method=pass_all
6539     ;;
6540   esac
6541   ;;
6542
6543 tpf*)
6544   lt_cv_deplibs_check_method=pass_all
6545   ;;
6546 esac
6547
6548 fi
6549 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6550 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6551 file_magic_cmd=$lt_cv_file_magic_cmd
6552 deplibs_check_method=$lt_cv_deplibs_check_method
6553 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566 if test -n "$ac_tool_prefix"; then
6567   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6568 set dummy ${ac_tool_prefix}ar; ac_word=$2
6569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6571 if test "${ac_cv_prog_AR+set}" = set; then
6572   echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574   if test -n "$AR"; then
6575   ac_cv_prog_AR="$AR" # Let the user override the test.
6576 else
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in $PATH
6579 do
6580   IFS=$as_save_IFS
6581   test -z "$as_dir" && as_dir=.
6582   for ac_exec_ext in '' $ac_executable_extensions; do
6583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6584     ac_cv_prog_AR="${ac_tool_prefix}ar"
6585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586     break 2
6587   fi
6588 done
6589 done
6590 IFS=$as_save_IFS
6591
6592 fi
6593 fi
6594 AR=$ac_cv_prog_AR
6595 if test -n "$AR"; then
6596   { echo "$as_me:$LINENO: result: $AR" >&5
6597 echo "${ECHO_T}$AR" >&6; }
6598 else
6599   { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6601 fi
6602
6603
6604 fi
6605 if test -z "$ac_cv_prog_AR"; then
6606   ac_ct_AR=$AR
6607   # Extract the first word of "ar", so it can be a program name with args.
6608 set dummy ar; ac_word=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   if test -n "$ac_ct_AR"; then
6615   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
6621   test -z "$as_dir" && as_dir=.
6622   for ac_exec_ext in '' $ac_executable_extensions; do
6623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624     ac_cv_prog_ac_ct_AR="ar"
6625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626     break 2
6627   fi
6628 done
6629 done
6630 IFS=$as_save_IFS
6631
6632 fi
6633 fi
6634 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6635 if test -n "$ac_ct_AR"; then
6636   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6637 echo "${ECHO_T}$ac_ct_AR" >&6; }
6638 else
6639   { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6641 fi
6642
6643   if test "x$ac_ct_AR" = x; then
6644     AR="false"
6645   else
6646     case $cross_compiling:$ac_tool_warned in
6647 yes:)
6648 { echo "$as_me:$LINENO: 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." >&5
6651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6652 whose name does not start with the host triplet.  If you think this
6653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6654 ac_tool_warned=yes ;;
6655 esac
6656     AR=$ac_ct_AR
6657   fi
6658 else
6659   AR="$ac_cv_prog_AR"
6660 fi
6661
6662 test -z "$AR" && AR=ar
6663 test -z "$AR_FLAGS" && AR_FLAGS=cru
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675 if test -n "$ac_tool_prefix"; then
6676   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6677 set dummy ${ac_tool_prefix}strip; ac_word=$2
6678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680 if test "${ac_cv_prog_STRIP+set}" = set; then
6681   echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683   if test -n "$STRIP"; then
6684   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689   IFS=$as_save_IFS
6690   test -z "$as_dir" && as_dir=.
6691   for ac_exec_ext in '' $ac_executable_extensions; do
6692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695     break 2
6696   fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 STRIP=$ac_cv_prog_STRIP
6704 if test -n "$STRIP"; then
6705   { echo "$as_me:$LINENO: result: $STRIP" >&5
6706 echo "${ECHO_T}$STRIP" >&6; }
6707 else
6708   { echo "$as_me:$LINENO: result: no" >&5
6709 echo "${ECHO_T}no" >&6; }
6710 fi
6711
6712
6713 fi
6714 if test -z "$ac_cv_prog_STRIP"; then
6715   ac_ct_STRIP=$STRIP
6716   # Extract the first word of "strip", so it can be a program name with args.
6717 set dummy strip; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   if test -n "$ac_ct_STRIP"; then
6724   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731   for ac_exec_ext in '' $ac_executable_extensions; do
6732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733     ac_cv_prog_ac_ct_STRIP="strip"
6734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6744 if test -n "$ac_ct_STRIP"; then
6745   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6746 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6747 else
6748   { echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6; }
6750 fi
6751
6752   if test "x$ac_ct_STRIP" = x; then
6753     STRIP=":"
6754   else
6755     case $cross_compiling:$ac_tool_warned in
6756 yes:)
6757 { echo "$as_me:$LINENO: 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." >&5
6760 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6761 whose name does not start with the host triplet.  If you think this
6762 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6763 ac_tool_warned=yes ;;
6764 esac
6765     STRIP=$ac_ct_STRIP
6766   fi
6767 else
6768   STRIP="$ac_cv_prog_STRIP"
6769 fi
6770
6771 test -z "$STRIP" && STRIP=:
6772
6773
6774
6775
6776
6777
6778 if test -n "$ac_tool_prefix"; then
6779   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_prog_RANLIB+set}" = set; then
6784   echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786   if test -n "$RANLIB"; then
6787   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794   for ac_exec_ext in '' $ac_executable_extensions; do
6795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801 done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 RANLIB=$ac_cv_prog_RANLIB
6807 if test -n "$RANLIB"; then
6808   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6809 echo "${ECHO_T}$RANLIB" >&6; }
6810 else
6811   { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6813 fi
6814
6815
6816 fi
6817 if test -z "$ac_cv_prog_RANLIB"; then
6818   ac_ct_RANLIB=$RANLIB
6819   # Extract the first word of "ranlib", so it can be a program name with args.
6820 set dummy ranlib; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6824   echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826   if test -n "$ac_ct_RANLIB"; then
6827   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834   for ac_exec_ext in '' $ac_executable_extensions; do
6835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836     ac_cv_prog_ac_ct_RANLIB="ranlib"
6837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6847 if test -n "$ac_ct_RANLIB"; then
6848   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6849 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6850 else
6851   { echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6; }
6853 fi
6854
6855   if test "x$ac_ct_RANLIB" = x; then
6856     RANLIB=":"
6857   else
6858     case $cross_compiling:$ac_tool_warned in
6859 yes:)
6860 { echo "$as_me:$LINENO: 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." >&5
6863 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6864 whose name does not start with the host triplet.  If you think this
6865 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6866 ac_tool_warned=yes ;;
6867 esac
6868     RANLIB=$ac_ct_RANLIB
6869   fi
6870 else
6871   RANLIB="$ac_cv_prog_RANLIB"
6872 fi
6873
6874 test -z "$RANLIB" && RANLIB=:
6875
6876
6877
6878
6879
6880
6881 # Determine commands to create old-style static archives.
6882 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6883 old_postinstall_cmds='chmod 644 $oldlib'
6884 old_postuninstall_cmds=
6885
6886 if test -n "$RANLIB"; then
6887   case $host_os in
6888   openbsd*)
6889     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6890     ;;
6891   *)
6892     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6893     ;;
6894   esac
6895   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6896 fi
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931 # If no C compiler was specified, use CC.
6932 LTCC=${LTCC-"$CC"}
6933
6934 # If no C compiler flags were specified, use CFLAGS.
6935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6936
6937 # Allow CC to be a program name with arguments.
6938 compiler=$CC
6939
6940
6941 # Check for command to grab the raw symbol name followed by C symbol from nm.
6942 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6943 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6944 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6945   echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947
6948 # These are sane defaults that work on at least a few old systems.
6949 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6950
6951 # Character class describing NM global symbol codes.
6952 symcode='[BCDEGRST]'
6953
6954 # Regexp to match symbols that can be accessed directly from C.
6955 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6956
6957 # Define system-specific variables.
6958 case $host_os in
6959 aix*)
6960   symcode='[BCDT]'
6961   ;;
6962 cygwin* | mingw* | pw32* | cegcc*)
6963   symcode='[ABCDGISTW]'
6964   ;;
6965 hpux*)
6966   if test "$host_cpu" = ia64; then
6967     symcode='[ABCDEGRST]'
6968   fi
6969   ;;
6970 irix* | nonstopux*)
6971   symcode='[BCDEGRST]'
6972   ;;
6973 osf*)
6974   symcode='[BCDEGQRST]'
6975   ;;
6976 solaris*)
6977   symcode='[BDRT]'
6978   ;;
6979 sco3.2v5*)
6980   symcode='[DT]'
6981   ;;
6982 sysv4.2uw2*)
6983   symcode='[DT]'
6984   ;;
6985 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6986   symcode='[ABDT]'
6987   ;;
6988 sysv4)
6989   symcode='[DFNSTU]'
6990   ;;
6991 esac
6992
6993 # If we're using GNU nm, then use its standard symbol codes.
6994 case `$NM -V 2>&1` in
6995 *GNU* | *'with BFD'*)
6996   symcode='[ABCDGIRSTW]' ;;
6997 esac
6998
6999 # Transform an extracted symbol line into a proper C declaration.
7000 # Some systems (esp. on ia64) link data and code symbols differently,
7001 # so use this general approach.
7002 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7003
7004 # Transform an extracted symbol line into symbol name and symbol address
7005 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7006 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'"
7007
7008 # Handle CRLF in mingw tool chain
7009 opt_cr=
7010 case $build_os in
7011 mingw*)
7012   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7013   ;;
7014 esac
7015
7016 # Try without a prefix underscore, then with it.
7017 for ac_symprfx in "" "_"; do
7018
7019   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7020   symxfrm="\\1 $ac_symprfx\\2 \\2"
7021
7022   # Write the raw and C identifiers.
7023   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7024     # Fake it for dumpbin and say T for any non-static function
7025     # and D for any global variable.
7026     # Also find C++ and __fastcall symbols from MSVC++,
7027     # which start with @ or ?.
7028     lt_cv_sys_global_symbol_pipe="$AWK '"\
7029 "     {last_section=section; section=\$ 3};"\
7030 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7031 "     \$ 0!~/External *\|/{next};"\
7032 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7033 "     {if(hide[section]) next};"\
7034 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7035 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7036 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7037 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7038 "     ' prfx=^$ac_symprfx"
7039   else
7040     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7041   fi
7042
7043   # Check to see that the pipe works correctly.
7044   pipe_works=no
7045
7046   rm -f conftest*
7047   cat > conftest.$ac_ext <<_LT_EOF
7048 #ifdef __cplusplus
7049 extern "C" {
7050 #endif
7051 char nm_test_var;
7052 void nm_test_func(void);
7053 void nm_test_func(void){}
7054 #ifdef __cplusplus
7055 }
7056 #endif
7057 int main(){nm_test_var='a';nm_test_func();return(0);}
7058 _LT_EOF
7059
7060   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7061   (eval $ac_compile) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); }; then
7065     # Now try to grab the symbols.
7066     nlist=conftest.nm
7067     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7068   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } && test -s "$nlist"; then
7072       # Try sorting and uniquifying the output.
7073       if sort "$nlist" | uniq > "$nlist"T; then
7074         mv -f "$nlist"T "$nlist"
7075       else
7076         rm -f "$nlist"T
7077       fi
7078
7079       # Make sure that we snagged all the symbols we need.
7080       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7081         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7082           cat <<_LT_EOF > conftest.$ac_ext
7083 #ifdef __cplusplus
7084 extern "C" {
7085 #endif
7086
7087 _LT_EOF
7088           # Now generate the symbol file.
7089           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7090
7091           cat <<_LT_EOF >> conftest.$ac_ext
7092
7093 /* The mapping between symbol names and symbols.  */
7094 const struct {
7095   const char *name;
7096   void       *address;
7097 }
7098 lt__PROGRAM__LTX_preloaded_symbols[] =
7099 {
7100   { "@PROGRAM@", (void *) 0 },
7101 _LT_EOF
7102           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7103           cat <<\_LT_EOF >> conftest.$ac_ext
7104   {0, (void *) 0}
7105 };
7106
7107 /* This works around a problem in FreeBSD linker */
7108 #ifdef FREEBSD_WORKAROUND
7109 static const void *lt_preloaded_setup() {
7110   return lt__PROGRAM__LTX_preloaded_symbols;
7111 }
7112 #endif
7113
7114 #ifdef __cplusplus
7115 }
7116 #endif
7117 _LT_EOF
7118           # Now try linking the two files.
7119           mv conftest.$ac_objext conftstm.$ac_objext
7120           lt_save_LIBS="$LIBS"
7121           lt_save_CFLAGS="$CFLAGS"
7122           LIBS="conftstm.$ac_objext"
7123           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7124           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7125   (eval $ac_link) 2>&5
7126   ac_status=$?
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7129             pipe_works=yes
7130           fi
7131           LIBS="$lt_save_LIBS"
7132           CFLAGS="$lt_save_CFLAGS"
7133         else
7134           echo "cannot find nm_test_func in $nlist" >&5
7135         fi
7136       else
7137         echo "cannot find nm_test_var in $nlist" >&5
7138       fi
7139     else
7140       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7141     fi
7142   else
7143     echo "$progname: failed program was:" >&5
7144     cat conftest.$ac_ext >&5
7145   fi
7146   rm -rf conftest* conftst*
7147
7148   # Do not use the global_symbol_pipe unless it works.
7149   if test "$pipe_works" = yes; then
7150     break
7151   else
7152     lt_cv_sys_global_symbol_pipe=
7153   fi
7154 done
7155
7156 fi
7157
7158 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7159   lt_cv_sys_global_symbol_to_cdecl=
7160 fi
7161 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7162   { echo "$as_me:$LINENO: result: failed" >&5
7163 echo "${ECHO_T}failed" >&6; }
7164 else
7165   { echo "$as_me:$LINENO: result: ok" >&5
7166 echo "${ECHO_T}ok" >&6; }
7167 fi
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190 # Check whether --enable-libtool-lock was given.
7191 if test "${enable_libtool_lock+set}" = set; then
7192   enableval=$enable_libtool_lock;
7193 fi
7194
7195 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7196
7197 # Some flags need to be propagated to the compiler or linker for good
7198 # libtool support.
7199 case $host in
7200 ia64-*-hpux*)
7201   # Find out which ABI we are using.
7202   echo 'int i;' > conftest.$ac_ext
7203   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7204   (eval $ac_compile) 2>&5
7205   ac_status=$?
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; then
7208     case `/usr/bin/file conftest.$ac_objext` in
7209       *ELF-32*)
7210         HPUX_IA64_MODE="32"
7211         ;;
7212       *ELF-64*)
7213         HPUX_IA64_MODE="64"
7214         ;;
7215     esac
7216   fi
7217   rm -rf conftest*
7218   ;;
7219 *-*-irix6*)
7220   # Find out which ABI we are using.
7221   echo '#line 7221 "configure"' > conftest.$ac_ext
7222   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7223   (eval $ac_compile) 2>&5
7224   ac_status=$?
7225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226   (exit $ac_status); }; then
7227     if test "$lt_cv_prog_gnu_ld" = yes; then
7228       case `/usr/bin/file conftest.$ac_objext` in
7229         *32-bit*)
7230           LD="${LD-ld} -melf32bsmip"
7231           ;;
7232         *N32*)
7233           LD="${LD-ld} -melf32bmipn32"
7234           ;;
7235         *64-bit*)
7236           LD="${LD-ld} -melf64bmip"
7237         ;;
7238       esac
7239     else
7240       case `/usr/bin/file conftest.$ac_objext` in
7241         *32-bit*)
7242           LD="${LD-ld} -32"
7243           ;;
7244         *N32*)
7245           LD="${LD-ld} -n32"
7246           ;;
7247         *64-bit*)
7248           LD="${LD-ld} -64"
7249           ;;
7250       esac
7251     fi
7252   fi
7253   rm -rf conftest*
7254   ;;
7255
7256 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7257 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7258   # Find out which ABI we are using.
7259   echo 'int i;' > conftest.$ac_ext
7260   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261   (eval $ac_compile) 2>&5
7262   ac_status=$?
7263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); }; then
7265     case `/usr/bin/file conftest.o` in
7266       *32-bit*)
7267         case $host in
7268           x86_64-*kfreebsd*-gnu)
7269             LD="${LD-ld} -m elf_i386_fbsd"
7270             ;;
7271           x86_64-*linux*)
7272             LD="${LD-ld} -m elf_i386"
7273             ;;
7274           ppc64-*linux*|powerpc64-*linux*)
7275             LD="${LD-ld} -m elf32ppclinux"
7276             ;;
7277           s390x-*linux*)
7278             LD="${LD-ld} -m elf_s390"
7279             ;;
7280           sparc64-*linux*)
7281             LD="${LD-ld} -m elf32_sparc"
7282             ;;
7283         esac
7284         ;;
7285       *64-bit*)
7286         case $host in
7287           x86_64-*kfreebsd*-gnu)
7288             LD="${LD-ld} -m elf_x86_64_fbsd"
7289             ;;
7290           x86_64-*linux*)
7291             LD="${LD-ld} -m elf_x86_64"
7292             ;;
7293           ppc*-*linux*|powerpc*-*linux*)
7294             LD="${LD-ld} -m elf64ppc"
7295             ;;
7296           s390*-*linux*|s390*-*tpf*)
7297             LD="${LD-ld} -m elf64_s390"
7298             ;;
7299           sparc*-*linux*)
7300             LD="${LD-ld} -m elf64_sparc"
7301             ;;
7302         esac
7303         ;;
7304     esac
7305   fi
7306   rm -rf conftest*
7307   ;;
7308
7309 *-*-sco3.2v5*)
7310   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7311   SAVE_CFLAGS="$CFLAGS"
7312   CFLAGS="$CFLAGS -belf"
7313   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7314 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7315 if test "${lt_cv_cc_needs_belf+set}" = set; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318   ac_ext=c
7319 ac_cpp='$CPP $CPPFLAGS'
7320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7323
7324      cat >conftest.$ac_ext <<_ACEOF
7325 /* confdefs.h.  */
7326 _ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h.  */
7330
7331 int
7332 main ()
7333 {
7334
7335   ;
7336   return 0;
7337 }
7338 _ACEOF
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (ac_try="$ac_link"
7341 case "(($ac_try" in
7342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343   *) ac_try_echo=$ac_try;;
7344 esac
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346   (eval "$ac_link") 2>conftest.er1
7347   ac_status=$?
7348   grep -v '^ *+' conftest.er1 >conftest.err
7349   rm -f conftest.er1
7350   cat conftest.err >&5
7351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352   (exit $ac_status); } && {
7353          test -z "$ac_c_werror_flag" ||
7354          test ! -s conftest.err
7355        } && test -s conftest$ac_exeext &&
7356        $as_test_x conftest$ac_exeext; then
7357   lt_cv_cc_needs_belf=yes
7358 else
7359   echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7361
7362         lt_cv_cc_needs_belf=no
7363 fi
7364
7365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7366       conftest$ac_exeext conftest.$ac_ext
7367      ac_ext=c
7368 ac_cpp='$CPP $CPPFLAGS'
7369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372
7373 fi
7374 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7375 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7376   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7377     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7378     CFLAGS="$SAVE_CFLAGS"
7379   fi
7380   ;;
7381 sparc*-*solaris*)
7382   # Find out which ABI we are using.
7383   echo 'int i;' > conftest.$ac_ext
7384   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7385   (eval $ac_compile) 2>&5
7386   ac_status=$?
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); }; then
7389     case `/usr/bin/file conftest.o` in
7390     *64-bit*)
7391       case $lt_cv_prog_gnu_ld in
7392       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7393       *)
7394         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7395           LD="${LD-ld} -64"
7396         fi
7397         ;;
7398       esac
7399       ;;
7400     esac
7401   fi
7402   rm -rf conftest*
7403   ;;
7404 esac
7405
7406 need_locks="$enable_libtool_lock"
7407
7408
7409   case $host_os in
7410     rhapsody* | darwin*)
7411     if test -n "$ac_tool_prefix"; then
7412   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7413 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   if test -n "$DSYMUTIL"; then
7420   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427   for ac_exec_ext in '' $ac_executable_extensions; do
7428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437 fi
7438 fi
7439 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7440 if test -n "$DSYMUTIL"; then
7441   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7442 echo "${ECHO_T}$DSYMUTIL" >&6; }
7443 else
7444   { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7446 fi
7447
7448
7449 fi
7450 if test -z "$ac_cv_prog_DSYMUTIL"; then
7451   ac_ct_DSYMUTIL=$DSYMUTIL
7452   # Extract the first word of "dsymutil", so it can be a program name with args.
7453 set dummy dsymutil; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7457   echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459   if test -n "$ac_ct_DSYMUTIL"; then
7460   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7461 else
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467   for ac_exec_ext in '' $ac_executable_extensions; do
7468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477 fi
7478 fi
7479 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7480 if test -n "$ac_ct_DSYMUTIL"; then
7481   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7482 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7483 else
7484   { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7486 fi
7487
7488   if test "x$ac_ct_DSYMUTIL" = x; then
7489     DSYMUTIL=":"
7490   else
7491     case $cross_compiling:$ac_tool_warned in
7492 yes:)
7493 { echo "$as_me:$LINENO: 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." >&5
7496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7497 whose name does not start with the host triplet.  If you think this
7498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7499 ac_tool_warned=yes ;;
7500 esac
7501     DSYMUTIL=$ac_ct_DSYMUTIL
7502   fi
7503 else
7504   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7505 fi
7506
7507     if test -n "$ac_tool_prefix"; then
7508   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7509 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7512 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7513   echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515   if test -n "$NMEDIT"; then
7516   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521   IFS=$as_save_IFS
7522   test -z "$as_dir" && as_dir=.
7523   for ac_exec_ext in '' $ac_executable_extensions; do
7524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527     break 2
7528   fi
7529 done
7530 done
7531 IFS=$as_save_IFS
7532
7533 fi
7534 fi
7535 NMEDIT=$ac_cv_prog_NMEDIT
7536 if test -n "$NMEDIT"; then
7537   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7538 echo "${ECHO_T}$NMEDIT" >&6; }
7539 else
7540   { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7542 fi
7543
7544
7545 fi
7546 if test -z "$ac_cv_prog_NMEDIT"; then
7547   ac_ct_NMEDIT=$NMEDIT
7548   # Extract the first word of "nmedit", so it can be a program name with args.
7549 set dummy nmedit; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   if test -n "$ac_ct_NMEDIT"; then
7556   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561   IFS=$as_save_IFS
7562   test -z "$as_dir" && as_dir=.
7563   for ac_exec_ext in '' $ac_executable_extensions; do
7564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567     break 2
7568   fi
7569 done
7570 done
7571 IFS=$as_save_IFS
7572
7573 fi
7574 fi
7575 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7576 if test -n "$ac_ct_NMEDIT"; then
7577   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7578 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7579 else
7580   { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7582 fi
7583
7584   if test "x$ac_ct_NMEDIT" = x; then
7585     NMEDIT=":"
7586   else
7587     case $cross_compiling:$ac_tool_warned in
7588 yes:)
7589 { echo "$as_me:$LINENO: 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." >&5
7592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7593 whose name does not start with the host triplet.  If you think this
7594 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7595 ac_tool_warned=yes ;;
7596 esac
7597     NMEDIT=$ac_ct_NMEDIT
7598   fi
7599 else
7600   NMEDIT="$ac_cv_prog_NMEDIT"
7601 fi
7602
7603     if test -n "$ac_tool_prefix"; then
7604   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7605 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7608 if test "${ac_cv_prog_LIPO+set}" = set; then
7609   echo $ECHO_N "(cached) $ECHO_C" >&6
7610 else
7611   if test -n "$LIPO"; then
7612   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617   IFS=$as_save_IFS
7618   test -z "$as_dir" && as_dir=.
7619   for ac_exec_ext in '' $ac_executable_extensions; do
7620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623     break 2
7624   fi
7625 done
7626 done
7627 IFS=$as_save_IFS
7628
7629 fi
7630 fi
7631 LIPO=$ac_cv_prog_LIPO
7632 if test -n "$LIPO"; then
7633   { echo "$as_me:$LINENO: result: $LIPO" >&5
7634 echo "${ECHO_T}$LIPO" >&6; }
7635 else
7636   { echo "$as_me:$LINENO: result: no" >&5
7637 echo "${ECHO_T}no" >&6; }
7638 fi
7639
7640
7641 fi
7642 if test -z "$ac_cv_prog_LIPO"; then
7643   ac_ct_LIPO=$LIPO
7644   # Extract the first word of "lipo", so it can be a program name with args.
7645 set dummy lipo; ac_word=$2
7646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7648 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7649   echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651   if test -n "$ac_ct_LIPO"; then
7652   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659   for ac_exec_ext in '' $ac_executable_extensions; do
7660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661     ac_cv_prog_ac_ct_LIPO="lipo"
7662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666 done
7667 IFS=$as_save_IFS
7668
7669 fi
7670 fi
7671 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7672 if test -n "$ac_ct_LIPO"; then
7673   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7674 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7675 else
7676   { echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6; }
7678 fi
7679
7680   if test "x$ac_ct_LIPO" = x; then
7681     LIPO=":"
7682   else
7683     case $cross_compiling:$ac_tool_warned in
7684 yes:)
7685 { echo "$as_me:$LINENO: 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." >&5
7688 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7689 whose name does not start with the host triplet.  If you think this
7690 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7691 ac_tool_warned=yes ;;
7692 esac
7693     LIPO=$ac_ct_LIPO
7694   fi
7695 else
7696   LIPO="$ac_cv_prog_LIPO"
7697 fi
7698
7699     if test -n "$ac_tool_prefix"; then
7700   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7701 set dummy ${ac_tool_prefix}otool; ac_word=$2
7702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7704 if test "${ac_cv_prog_OTOOL+set}" = set; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707   if test -n "$OTOOL"; then
7708   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7712 do
7713   IFS=$as_save_IFS
7714   test -z "$as_dir" && as_dir=.
7715   for ac_exec_ext in '' $ac_executable_extensions; do
7716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719     break 2
7720   fi
7721 done
7722 done
7723 IFS=$as_save_IFS
7724
7725 fi
7726 fi
7727 OTOOL=$ac_cv_prog_OTOOL
7728 if test -n "$OTOOL"; then
7729   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7730 echo "${ECHO_T}$OTOOL" >&6; }
7731 else
7732   { echo "$as_me:$LINENO: result: no" >&5
7733 echo "${ECHO_T}no" >&6; }
7734 fi
7735
7736
7737 fi
7738 if test -z "$ac_cv_prog_OTOOL"; then
7739   ac_ct_OTOOL=$OTOOL
7740   # Extract the first word of "otool", so it can be a program name with args.
7741 set dummy otool; ac_word=$2
7742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7744 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747   if test -n "$ac_ct_OTOOL"; then
7748   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753   IFS=$as_save_IFS
7754   test -z "$as_dir" && as_dir=.
7755   for ac_exec_ext in '' $ac_executable_extensions; do
7756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757     ac_cv_prog_ac_ct_OTOOL="otool"
7758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759     break 2
7760   fi
7761 done
7762 done
7763 IFS=$as_save_IFS
7764
7765 fi
7766 fi
7767 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7768 if test -n "$ac_ct_OTOOL"; then
7769   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7770 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7771 else
7772   { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7774 fi
7775
7776   if test "x$ac_ct_OTOOL" = x; then
7777     OTOOL=":"
7778   else
7779     case $cross_compiling:$ac_tool_warned in
7780 yes:)
7781 { echo "$as_me:$LINENO: 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." >&5
7784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7785 whose name does not start with the host triplet.  If you think this
7786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7787 ac_tool_warned=yes ;;
7788 esac
7789     OTOOL=$ac_ct_OTOOL
7790   fi
7791 else
7792   OTOOL="$ac_cv_prog_OTOOL"
7793 fi
7794
7795     if test -n "$ac_tool_prefix"; then
7796   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7800 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803   if test -n "$OTOOL64"; then
7804   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811   for ac_exec_ext in '' $ac_executable_extensions; do
7812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7820
7821 fi
7822 fi
7823 OTOOL64=$ac_cv_prog_OTOOL64
7824 if test -n "$OTOOL64"; then
7825   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7826 echo "${ECHO_T}$OTOOL64" >&6; }
7827 else
7828   { echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6; }
7830 fi
7831
7832
7833 fi
7834 if test -z "$ac_cv_prog_OTOOL64"; then
7835   ac_ct_OTOOL64=$OTOOL64
7836   # Extract the first word of "otool64", so it can be a program name with args.
7837 set dummy otool64; ac_word=$2
7838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7840 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7841   echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843   if test -n "$ac_ct_OTOOL64"; then
7844   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7845 else
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7848 do
7849   IFS=$as_save_IFS
7850   test -z "$as_dir" && as_dir=.
7851   for ac_exec_ext in '' $ac_executable_extensions; do
7852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853     ac_cv_prog_ac_ct_OTOOL64="otool64"
7854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7855     break 2
7856   fi
7857 done
7858 done
7859 IFS=$as_save_IFS
7860
7861 fi
7862 fi
7863 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7864 if test -n "$ac_ct_OTOOL64"; then
7865   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7866 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7867 else
7868   { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7870 fi
7871
7872   if test "x$ac_ct_OTOOL64" = x; then
7873     OTOOL64=":"
7874   else
7875     case $cross_compiling:$ac_tool_warned in
7876 yes:)
7877 { echo "$as_me:$LINENO: 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." >&5
7880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7881 whose name does not start with the host triplet.  If you think this
7882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7883 ac_tool_warned=yes ;;
7884 esac
7885     OTOOL64=$ac_ct_OTOOL64
7886   fi
7887 else
7888   OTOOL64="$ac_cv_prog_OTOOL64"
7889 fi
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7918 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7919 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7920   echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922   lt_cv_apple_cc_single_mod=no
7923       if test -z "${LT_MULTI_MODULE}"; then
7924         # By default we will add the -single_module flag. You can override
7925         # by either setting the environment variable LT_MULTI_MODULE
7926         # non-empty at configure time, or by adding -multi_module to the
7927         # link flags.
7928         rm -rf libconftest.dylib*
7929         echo "int foo(void){return 1;}" > conftest.c
7930         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7931 -dynamiclib -Wl,-single_module conftest.c" >&5
7932         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7933           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7934         _lt_result=$?
7935         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7936           lt_cv_apple_cc_single_mod=yes
7937         else
7938           cat conftest.err >&5
7939         fi
7940         rm -rf libconftest.dylib*
7941         rm -f conftest.*
7942       fi
7943 fi
7944 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7945 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7946     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7947 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7948 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7949   echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951   lt_cv_ld_exported_symbols_list=no
7952       save_LDFLAGS=$LDFLAGS
7953       echo "_main" > conftest.sym
7954       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7955       cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h.  */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h.  */
7961
7962 int
7963 main ()
7964 {
7965
7966   ;
7967   return 0;
7968 }
7969 _ACEOF
7970 rm -f conftest.$ac_objext conftest$ac_exeext
7971 if { (ac_try="$ac_link"
7972 case "(($ac_try" in
7973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974   *) ac_try_echo=$ac_try;;
7975 esac
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977   (eval "$ac_link") 2>conftest.er1
7978   ac_status=$?
7979   grep -v '^ *+' conftest.er1 >conftest.err
7980   rm -f conftest.er1
7981   cat conftest.err >&5
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); } && {
7984          test -z "$ac_c_werror_flag" ||
7985          test ! -s conftest.err
7986        } && test -s conftest$ac_exeext &&
7987        $as_test_x conftest$ac_exeext; then
7988   lt_cv_ld_exported_symbols_list=yes
7989 else
7990   echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7992
7993         lt_cv_ld_exported_symbols_list=no
7994 fi
7995
7996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7997       conftest$ac_exeext conftest.$ac_ext
7998         LDFLAGS="$save_LDFLAGS"
7999
8000 fi
8001 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8002 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8003     case $host_os in
8004     rhapsody* | darwin1.[012])
8005       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8006     darwin1.*)
8007       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8008     darwin*) # darwin 5.x on
8009       # if running on 10.5 or later, the deployment target defaults
8010       # to the OS version, if on x86, and 10.4, the deployment
8011       # target defaults to 10.4. Don't you love it?
8012       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8013         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8014           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8015         10.[012]*)
8016           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8017         10.*)
8018           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8019       esac
8020     ;;
8021   esac
8022     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8023       _lt_dar_single_mod='$single_module'
8024     fi
8025     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8026       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8027     else
8028       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8029     fi
8030     if test "$DSYMUTIL" != ":"; then
8031       _lt_dsymutil='~$DSYMUTIL $lib || :'
8032     else
8033       _lt_dsymutil=
8034     fi
8035     ;;
8036   esac
8037
8038 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8039 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8040 if test "${ac_cv_header_stdc+set}" = set; then
8041   echo $ECHO_N "(cached) $ECHO_C" >&6
8042 else
8043   cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h.  */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h.  */
8049 #include <stdlib.h>
8050 #include <stdarg.h>
8051 #include <string.h>
8052 #include <float.h>
8053
8054 int
8055 main ()
8056 {
8057
8058   ;
8059   return 0;
8060 }
8061 _ACEOF
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8064 case "(($ac_try" in
8065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066   *) ac_try_echo=$ac_try;;
8067 esac
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069   (eval "$ac_compile") 2>conftest.er1
8070   ac_status=$?
8071   grep -v '^ *+' conftest.er1 >conftest.err
8072   rm -f conftest.er1
8073   cat conftest.err >&5
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); } && {
8076          test -z "$ac_c_werror_flag" ||
8077          test ! -s conftest.err
8078        } && test -s conftest.$ac_objext; then
8079   ac_cv_header_stdc=yes
8080 else
8081   echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8083
8084         ac_cv_header_stdc=no
8085 fi
8086
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088
8089 if test $ac_cv_header_stdc = yes; then
8090   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8091   cat >conftest.$ac_ext <<_ACEOF
8092 /* confdefs.h.  */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h.  */
8097 #include <string.h>
8098
8099 _ACEOF
8100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8101   $EGREP "memchr" >/dev/null 2>&1; then
8102   :
8103 else
8104   ac_cv_header_stdc=no
8105 fi
8106 rm -f conftest*
8107
8108 fi
8109
8110 if test $ac_cv_header_stdc = yes; then
8111   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8112   cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h.  */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h.  */
8118 #include <stdlib.h>
8119
8120 _ACEOF
8121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8122   $EGREP "free" >/dev/null 2>&1; then
8123   :
8124 else
8125   ac_cv_header_stdc=no
8126 fi
8127 rm -f conftest*
8128
8129 fi
8130
8131 if test $ac_cv_header_stdc = yes; then
8132   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8133   if test "$cross_compiling" = yes; then
8134   :
8135 else
8136   cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h.  */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h.  */
8142 #include <ctype.h>
8143 #include <stdlib.h>
8144 #if ((' ' & 0x0FF) == 0x020)
8145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8147 #else
8148 # define ISLOWER(c) \
8149                    (('a' <= (c) && (c) <= 'i') \
8150                      || ('j' <= (c) && (c) <= 'r') \
8151                      || ('s' <= (c) && (c) <= 'z'))
8152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8153 #endif
8154
8155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8156 int
8157 main ()
8158 {
8159   int i;
8160   for (i = 0; i < 256; i++)
8161     if (XOR (islower (i), ISLOWER (i))
8162         || toupper (i) != TOUPPER (i))
8163       return 2;
8164   return 0;
8165 }
8166 _ACEOF
8167 rm -f conftest$ac_exeext
8168 if { (ac_try="$ac_link"
8169 case "(($ac_try" in
8170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171   *) ac_try_echo=$ac_try;;
8172 esac
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174   (eval "$ac_link") 2>&5
8175   ac_status=$?
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8178   { (case "(($ac_try" in
8179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180   *) ac_try_echo=$ac_try;;
8181 esac
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183   (eval "$ac_try") 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; }; then
8187   :
8188 else
8189   echo "$as_me: program exited with status $ac_status" >&5
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8192
8193 ( exit $ac_status )
8194 ac_cv_header_stdc=no
8195 fi
8196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8197 fi
8198
8199
8200 fi
8201 fi
8202 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8203 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8204 if test $ac_cv_header_stdc = yes; then
8205
8206 cat >>confdefs.h <<\_ACEOF
8207 #define STDC_HEADERS 1
8208 _ACEOF
8209
8210 fi
8211
8212 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8223                   inttypes.h stdint.h unistd.h
8224 do
8225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8229   echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231   cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h.  */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h.  */
8237 $ac_includes_default
8238
8239 #include <$ac_header>
8240 _ACEOF
8241 rm -f conftest.$ac_objext
8242 if { (ac_try="$ac_compile"
8243 case "(($ac_try" in
8244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245   *) ac_try_echo=$ac_try;;
8246 esac
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248   (eval "$ac_compile") 2>conftest.er1
8249   ac_status=$?
8250   grep -v '^ *+' conftest.er1 >conftest.err
8251   rm -f conftest.er1
8252   cat conftest.err >&5
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } && {
8255          test -z "$ac_c_werror_flag" ||
8256          test ! -s conftest.err
8257        } && test -s conftest.$ac_objext; then
8258   eval "$as_ac_Header=yes"
8259 else
8260   echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263         eval "$as_ac_Header=no"
8264 fi
8265
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 fi
8268 ac_res=`eval echo '${'$as_ac_Header'}'`
8269                { echo "$as_me:$LINENO: result: $ac_res" >&5
8270 echo "${ECHO_T}$ac_res" >&6; }
8271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8272   cat >>confdefs.h <<_ACEOF
8273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8274 _ACEOF
8275
8276 fi
8277
8278 done
8279
8280
8281
8282 for ac_header in dlfcn.h
8283 do
8284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8288   echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290   cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h.  */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h.  */
8296 $ac_includes_default
8297
8298 #include <$ac_header>
8299 _ACEOF
8300 rm -f conftest.$ac_objext
8301 if { (ac_try="$ac_compile"
8302 case "(($ac_try" in
8303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304   *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307   (eval "$ac_compile") 2>conftest.er1
8308   ac_status=$?
8309   grep -v '^ *+' conftest.er1 >conftest.err
8310   rm -f conftest.er1
8311   cat conftest.err >&5
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); } && {
8314          test -z "$ac_c_werror_flag" ||
8315          test ! -s conftest.err
8316        } && test -s conftest.$ac_objext; then
8317   eval "$as_ac_Header=yes"
8318 else
8319   echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322         eval "$as_ac_Header=no"
8323 fi
8324
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 fi
8327 ac_res=`eval echo '${'$as_ac_Header'}'`
8328                { echo "$as_me:$LINENO: result: $ac_res" >&5
8329 echo "${ECHO_T}$ac_res" >&6; }
8330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8331   cat >>confdefs.h <<_ACEOF
8332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8333 _ACEOF
8334
8335 fi
8336
8337 done
8338
8339
8340
8341 ac_ext=cpp
8342 ac_cpp='$CXXCPP $CPPFLAGS'
8343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8346 if test -z "$CXX"; then
8347   if test -n "$CCC"; then
8348     CXX=$CCC
8349   else
8350     if test -n "$ac_tool_prefix"; then
8351   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8352   do
8353     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8357 if test "${ac_cv_prog_CXX+set}" = set; then
8358   echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360   if test -n "$CXX"; then
8361   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8365 do
8366   IFS=$as_save_IFS
8367   test -z "$as_dir" && as_dir=.
8368   for ac_exec_ext in '' $ac_executable_extensions; do
8369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8370     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8372     break 2
8373   fi
8374 done
8375 done
8376 IFS=$as_save_IFS
8377
8378 fi
8379 fi
8380 CXX=$ac_cv_prog_CXX
8381 if test -n "$CXX"; then
8382   { echo "$as_me:$LINENO: result: $CXX" >&5
8383 echo "${ECHO_T}$CXX" >&6; }
8384 else
8385   { echo "$as_me:$LINENO: result: no" >&5
8386 echo "${ECHO_T}no" >&6; }
8387 fi
8388
8389
8390     test -n "$CXX" && break
8391   done
8392 fi
8393 if test -z "$CXX"; then
8394   ac_ct_CXX=$CXX
8395   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8396 do
8397   # Extract the first word of "$ac_prog", so it can be a program name with args.
8398 set dummy $ac_prog; ac_word=$2
8399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8401 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8402   echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404   if test -n "$ac_ct_CXX"; then
8405   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8409 do
8410   IFS=$as_save_IFS
8411   test -z "$as_dir" && as_dir=.
8412   for ac_exec_ext in '' $ac_executable_extensions; do
8413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414     ac_cv_prog_ac_ct_CXX="$ac_prog"
8415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8416     break 2
8417   fi
8418 done
8419 done
8420 IFS=$as_save_IFS
8421
8422 fi
8423 fi
8424 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8425 if test -n "$ac_ct_CXX"; then
8426   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8427 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8428 else
8429   { echo "$as_me:$LINENO: result: no" >&5
8430 echo "${ECHO_T}no" >&6; }
8431 fi
8432
8433
8434   test -n "$ac_ct_CXX" && break
8435 done
8436
8437   if test "x$ac_ct_CXX" = x; then
8438     CXX="g++"
8439   else
8440     case $cross_compiling:$ac_tool_warned in
8441 yes:)
8442 { echo "$as_me:$LINENO: 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." >&5
8445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8446 whose name does not start with the host triplet.  If you think this
8447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8448 ac_tool_warned=yes ;;
8449 esac
8450     CXX=$ac_ct_CXX
8451   fi
8452 fi
8453
8454   fi
8455 fi
8456 # Provide some information about the compiler.
8457 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8458 ac_compiler=`set X $ac_compile; echo $2`
8459 { (ac_try="$ac_compiler --version >&5"
8460 case "(($ac_try" in
8461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462   *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465   (eval "$ac_compiler --version >&5") 2>&5
8466   ac_status=$?
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); }
8469 { (ac_try="$ac_compiler -v >&5"
8470 case "(($ac_try" in
8471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472   *) ac_try_echo=$ac_try;;
8473 esac
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475   (eval "$ac_compiler -v >&5") 2>&5
8476   ac_status=$?
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); }
8479 { (ac_try="$ac_compiler -V >&5"
8480 case "(($ac_try" in
8481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482   *) ac_try_echo=$ac_try;;
8483 esac
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485   (eval "$ac_compiler -V >&5") 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }
8489
8490 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8491 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8492 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h.  */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h.  */
8501
8502 int
8503 main ()
8504 {
8505 #ifndef __GNUC__
8506        choke me
8507 #endif
8508
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8515 case "(($ac_try" in
8516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517   *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520   (eval "$ac_compile") 2>conftest.er1
8521   ac_status=$?
8522   grep -v '^ *+' conftest.er1 >conftest.err
8523   rm -f conftest.er1
8524   cat conftest.err >&5
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); } && {
8527          test -z "$ac_cxx_werror_flag" ||
8528          test ! -s conftest.err
8529        } && test -s conftest.$ac_objext; then
8530   ac_compiler_gnu=yes
8531 else
8532   echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535         ac_compiler_gnu=no
8536 fi
8537
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8540
8541 fi
8542 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8543 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8544 GXX=`test $ac_compiler_gnu = yes && echo yes`
8545 ac_test_CXXFLAGS=${CXXFLAGS+set}
8546 ac_save_CXXFLAGS=$CXXFLAGS
8547 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8548 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8549 if test "${ac_cv_prog_cxx_g+set}" = set; then
8550   echo $ECHO_N "(cached) $ECHO_C" >&6
8551 else
8552   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8553    ac_cxx_werror_flag=yes
8554    ac_cv_prog_cxx_g=no
8555    CXXFLAGS="-g"
8556    cat >conftest.$ac_ext <<_ACEOF
8557 /* confdefs.h.  */
8558 _ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h.  */
8562
8563 int
8564 main ()
8565 {
8566
8567   ;
8568   return 0;
8569 }
8570 _ACEOF
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8573 case "(($ac_try" in
8574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575   *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578   (eval "$ac_compile") 2>conftest.er1
8579   ac_status=$?
8580   grep -v '^ *+' conftest.er1 >conftest.err
8581   rm -f conftest.er1
8582   cat conftest.err >&5
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); } && {
8585          test -z "$ac_cxx_werror_flag" ||
8586          test ! -s conftest.err
8587        } && test -s conftest.$ac_objext; then
8588   ac_cv_prog_cxx_g=yes
8589 else
8590   echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8592
8593         CXXFLAGS=""
8594       cat >conftest.$ac_ext <<_ACEOF
8595 /* confdefs.h.  */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h.  */
8600
8601 int
8602 main ()
8603 {
8604
8605   ;
8606   return 0;
8607 }
8608 _ACEOF
8609 rm -f conftest.$ac_objext
8610 if { (ac_try="$ac_compile"
8611 case "(($ac_try" in
8612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613   *) ac_try_echo=$ac_try;;
8614 esac
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616   (eval "$ac_compile") 2>conftest.er1
8617   ac_status=$?
8618   grep -v '^ *+' conftest.er1 >conftest.err
8619   rm -f conftest.er1
8620   cat conftest.err >&5
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); } && {
8623          test -z "$ac_cxx_werror_flag" ||
8624          test ! -s conftest.err
8625        } && test -s conftest.$ac_objext; then
8626   :
8627 else
8628   echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8630
8631         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8632          CXXFLAGS="-g"
8633          cat >conftest.$ac_ext <<_ACEOF
8634 /* confdefs.h.  */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h.  */
8639
8640 int
8641 main ()
8642 {
8643
8644   ;
8645   return 0;
8646 }
8647 _ACEOF
8648 rm -f conftest.$ac_objext
8649 if { (ac_try="$ac_compile"
8650 case "(($ac_try" in
8651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652   *) ac_try_echo=$ac_try;;
8653 esac
8654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8655   (eval "$ac_compile") 2>conftest.er1
8656   ac_status=$?
8657   grep -v '^ *+' conftest.er1 >conftest.err
8658   rm -f conftest.er1
8659   cat conftest.err >&5
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); } && {
8662          test -z "$ac_cxx_werror_flag" ||
8663          test ! -s conftest.err
8664        } && test -s conftest.$ac_objext; then
8665   ac_cv_prog_cxx_g=yes
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8669
8670
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 fi
8678
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8681 fi
8682 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8683 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8684 if test "$ac_test_CXXFLAGS" = set; then
8685   CXXFLAGS=$ac_save_CXXFLAGS
8686 elif test $ac_cv_prog_cxx_g = yes; then
8687   if test "$GXX" = yes; then
8688     CXXFLAGS="-g -O2"
8689   else
8690     CXXFLAGS="-g"
8691   fi
8692 else
8693   if test "$GXX" = yes; then
8694     CXXFLAGS="-O2"
8695   else
8696     CXXFLAGS=
8697   fi
8698 fi
8699 ac_ext=c
8700 ac_cpp='$CPP $CPPFLAGS'
8701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8704
8705 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8706     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8707     (test "X$CXX" != "Xg++"))) ; then
8708   ac_ext=cpp
8709 ac_cpp='$CXXCPP $CPPFLAGS'
8710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8713 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8714 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8715 if test -z "$CXXCPP"; then
8716   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8717   echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719       # Double quotes because CXXCPP needs to be expanded
8720     for CXXCPP in "$CXX -E" "/lib/cpp"
8721     do
8722       ac_preproc_ok=false
8723 for ac_cxx_preproc_warn_flag in '' yes
8724 do
8725   # Use a header file that comes with gcc, so configuring glibc
8726   # with a fresh cross-compiler works.
8727   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8728   # <limits.h> exists even on freestanding compilers.
8729   # On the NeXT, cc -E runs the code through the compiler's parser,
8730   # not just through cpp. "Syntax error" is here to catch this case.
8731   cat >conftest.$ac_ext <<_ACEOF
8732 /* confdefs.h.  */
8733 _ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h.  */
8737 #ifdef __STDC__
8738 # include <limits.h>
8739 #else
8740 # include <assert.h>
8741 #endif
8742                      Syntax error
8743 _ACEOF
8744 if { (ac_try="$ac_cpp conftest.$ac_ext"
8745 case "(($ac_try" in
8746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747   *) ac_try_echo=$ac_try;;
8748 esac
8749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8751   ac_status=$?
8752   grep -v '^ *+' conftest.er1 >conftest.err
8753   rm -f conftest.er1
8754   cat conftest.err >&5
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); } >/dev/null && {
8757          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8758          test ! -s conftest.err
8759        }; then
8760   :
8761 else
8762   echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8764
8765   # Broken: fails on valid input.
8766 continue
8767 fi
8768
8769 rm -f conftest.err conftest.$ac_ext
8770
8771   # OK, works on sane cases.  Now check whether nonexistent headers
8772   # can be detected and how.
8773   cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h.  */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h.  */
8779 #include <ac_nonexistent.h>
8780 _ACEOF
8781 if { (ac_try="$ac_cpp conftest.$ac_ext"
8782 case "(($ac_try" in
8783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784   *) ac_try_echo=$ac_try;;
8785 esac
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8788   ac_status=$?
8789   grep -v '^ *+' conftest.er1 >conftest.err
8790   rm -f conftest.er1
8791   cat conftest.err >&5
8792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793   (exit $ac_status); } >/dev/null && {
8794          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8795          test ! -s conftest.err
8796        }; then
8797   # Broken: success on invalid input.
8798 continue
8799 else
8800   echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8802
8803   # Passes both tests.
8804 ac_preproc_ok=:
8805 break
8806 fi
8807
8808 rm -f conftest.err conftest.$ac_ext
8809
8810 done
8811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8812 rm -f conftest.err conftest.$ac_ext
8813 if $ac_preproc_ok; then
8814   break
8815 fi
8816
8817     done
8818     ac_cv_prog_CXXCPP=$CXXCPP
8819
8820 fi
8821   CXXCPP=$ac_cv_prog_CXXCPP
8822 else
8823   ac_cv_prog_CXXCPP=$CXXCPP
8824 fi
8825 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8826 echo "${ECHO_T}$CXXCPP" >&6; }
8827 ac_preproc_ok=false
8828 for ac_cxx_preproc_warn_flag in '' yes
8829 do
8830   # Use a header file that comes with gcc, so configuring glibc
8831   # with a fresh cross-compiler works.
8832   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8833   # <limits.h> exists even on freestanding compilers.
8834   # On the NeXT, cc -E runs the code through the compiler's parser,
8835   # not just through cpp. "Syntax error" is here to catch this case.
8836   cat >conftest.$ac_ext <<_ACEOF
8837 /* confdefs.h.  */
8838 _ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h.  */
8842 #ifdef __STDC__
8843 # include <limits.h>
8844 #else
8845 # include <assert.h>
8846 #endif
8847                      Syntax error
8848 _ACEOF
8849 if { (ac_try="$ac_cpp conftest.$ac_ext"
8850 case "(($ac_try" in
8851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852   *) ac_try_echo=$ac_try;;
8853 esac
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8856   ac_status=$?
8857   grep -v '^ *+' conftest.er1 >conftest.err
8858   rm -f conftest.er1
8859   cat conftest.err >&5
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); } >/dev/null && {
8862          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8863          test ! -s conftest.err
8864        }; then
8865   :
8866 else
8867   echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8869
8870   # Broken: fails on valid input.
8871 continue
8872 fi
8873
8874 rm -f conftest.err conftest.$ac_ext
8875
8876   # OK, works on sane cases.  Now check whether nonexistent headers
8877   # can be detected and how.
8878   cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h.  */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h.  */
8884 #include <ac_nonexistent.h>
8885 _ACEOF
8886 if { (ac_try="$ac_cpp conftest.$ac_ext"
8887 case "(($ac_try" in
8888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889   *) ac_try_echo=$ac_try;;
8890 esac
8891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8893   ac_status=$?
8894   grep -v '^ *+' conftest.er1 >conftest.err
8895   rm -f conftest.er1
8896   cat conftest.err >&5
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); } >/dev/null && {
8899          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8900          test ! -s conftest.err
8901        }; then
8902   # Broken: success on invalid input.
8903 continue
8904 else
8905   echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8907
8908   # Passes both tests.
8909 ac_preproc_ok=:
8910 break
8911 fi
8912
8913 rm -f conftest.err conftest.$ac_ext
8914
8915 done
8916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8917 rm -f conftest.err conftest.$ac_ext
8918 if $ac_preproc_ok; then
8919   :
8920 else
8921   _lt_caught_CXX_error=yes
8922 fi
8923
8924 ac_ext=c
8925 ac_cpp='$CPP $CPPFLAGS'
8926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8929
8930 else
8931   _lt_caught_CXX_error=yes
8932 fi
8933
8934
8935
8936
8937
8938 # Set options
8939 # Check whether --enable-shared was given.
8940 if test "${enable_shared+set}" = set; then
8941   enableval=$enable_shared; p=${PACKAGE-default}
8942     case $enableval in
8943     yes) enable_shared=yes ;;
8944     no) enable_shared=no ;;
8945     *)
8946       enable_shared=no
8947       # Look at the argument we got.  We use all the common list separators.
8948       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8949       for pkg in $enableval; do
8950         IFS="$lt_save_ifs"
8951         if test "X$pkg" = "X$p"; then
8952           enable_shared=yes
8953         fi
8954       done
8955       IFS="$lt_save_ifs"
8956       ;;
8957     esac
8958 else
8959   enable_shared=yes
8960 fi
8961
8962
8963
8964
8965
8966
8967
8968 # Check whether --enable-static was given.
8969 if test "${enable_static+set}" = set; then
8970   enableval=$enable_static; p=${PACKAGE-default}
8971     case $enableval in
8972     yes) enable_static=yes ;;
8973     no) enable_static=no ;;
8974     *)
8975      enable_static=no
8976       # Look at the argument we got.  We use all the common list separators.
8977       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8978       for pkg in $enableval; do
8979         IFS="$lt_save_ifs"
8980         if test "X$pkg" = "X$p"; then
8981           enable_static=yes
8982         fi
8983       done
8984       IFS="$lt_save_ifs"
8985       ;;
8986     esac
8987 else
8988   enable_static=no
8989 fi
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000         enable_dlopen=no
9001
9002
9003   enable_win32_dll=no
9004
9005
9006
9007
9008
9009 # Check whether --with-pic was given.
9010 if test "${with_pic+set}" = set; then
9011   withval=$with_pic; pic_mode="$withval"
9012 else
9013   pic_mode=default
9014 fi
9015
9016
9017 test -z "$pic_mode" && pic_mode=default
9018
9019
9020
9021
9022
9023
9024
9025   # Check whether --enable-fast-install was given.
9026 if test "${enable_fast_install+set}" = set; then
9027   enableval=$enable_fast_install; p=${PACKAGE-default}
9028     case $enableval in
9029     yes) enable_fast_install=yes ;;
9030     no) enable_fast_install=no ;;
9031     *)
9032       enable_fast_install=no
9033       # Look at the argument we got.  We use all the common list separators.
9034       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9035       for pkg in $enableval; do
9036         IFS="$lt_save_ifs"
9037         if test "X$pkg" = "X$p"; then
9038           enable_fast_install=yes
9039         fi
9040       done
9041       IFS="$lt_save_ifs"
9042       ;;
9043     esac
9044 else
9045   enable_fast_install=yes
9046 fi
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058 # This can be used to rebuild libtool when needed
9059 LIBTOOL_DEPS="$ltmain"
9060
9061 # Always use our own libtool.
9062 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088 test -z "$LN_S" && LN_S="ln -s"
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103 if test -n "${ZSH_VERSION+set}" ; then
9104    setopt NO_GLOB_SUBST
9105 fi
9106
9107 { echo "$as_me:$LINENO: checking for objdir" >&5
9108 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9109 if test "${lt_cv_objdir+set}" = set; then
9110   echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112   rm -f .libs 2>/dev/null
9113 mkdir .libs 2>/dev/null
9114 if test -d .libs; then
9115   lt_cv_objdir=.libs
9116 else
9117   # MS-DOS does not allow filenames that begin with a dot.
9118   lt_cv_objdir=_libs
9119 fi
9120 rmdir .libs 2>/dev/null
9121 fi
9122 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9123 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9124 objdir=$lt_cv_objdir
9125
9126
9127
9128
9129
9130 cat >>confdefs.h <<_ACEOF
9131 #define LT_OBJDIR "$lt_cv_objdir/"
9132 _ACEOF
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150 case $host_os in
9151 aix3*)
9152   # AIX sometimes has problems with the GCC collect2 program.  For some
9153   # reason, if we set the COLLECT_NAMES environment variable, the problems
9154   # vanish in a puff of smoke.
9155   if test "X${COLLECT_NAMES+set}" != Xset; then
9156     COLLECT_NAMES=
9157     export COLLECT_NAMES
9158   fi
9159   ;;
9160 esac
9161
9162 # Sed substitution that helps us do robust quoting.  It backslashifies
9163 # metacharacters that are still active within double-quoted strings.
9164 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9165
9166 # Same as above, but do not quote variable references.
9167 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9168
9169 # Sed substitution to delay expansion of an escaped shell variable in a
9170 # double_quote_subst'ed string.
9171 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9172
9173 # Sed substitution to delay expansion of an escaped single quote.
9174 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9175
9176 # Sed substitution to avoid accidental globbing in evaled expressions
9177 no_glob_subst='s/\*/\\\*/g'
9178
9179 # Global variables:
9180 ofile=libtool
9181 can_build_shared=yes
9182
9183 # All known linkers require a `.a' archive for static linking (except MSVC,
9184 # which needs '.lib').
9185 libext=a
9186
9187 with_gnu_ld="$lt_cv_prog_gnu_ld"
9188
9189 old_CC="$CC"
9190 old_CFLAGS="$CFLAGS"
9191
9192 # Set sane defaults for various variables
9193 test -z "$CC" && CC=cc
9194 test -z "$LTCC" && LTCC=$CC
9195 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9196 test -z "$LD" && LD=ld
9197 test -z "$ac_objext" && ac_objext=o
9198
9199 for cc_temp in $compiler""; do
9200   case $cc_temp in
9201     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9202     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9203     \-*) ;;
9204     *) break;;
9205   esac
9206 done
9207 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9208
9209
9210 # Only perform the check for file, if the check method requires it
9211 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9212 case $deplibs_check_method in
9213 file_magic*)
9214   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9215     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9216 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9217 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9218   echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220   case $MAGIC_CMD in
9221 [\\/*] |  ?:[\\/]*)
9222   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9223   ;;
9224 *)
9225   lt_save_MAGIC_CMD="$MAGIC_CMD"
9226   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9227   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9228   for ac_dir in $ac_dummy; do
9229     IFS="$lt_save_ifs"
9230     test -z "$ac_dir" && ac_dir=.
9231     if test -f $ac_dir/${ac_tool_prefix}file; then
9232       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9233       if test -n "$file_magic_test_file"; then
9234         case $deplibs_check_method in
9235         "file_magic "*)
9236           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9237           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9238           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9239             $EGREP "$file_magic_regex" > /dev/null; then
9240             :
9241           else
9242             cat <<_LT_EOF 1>&2
9243
9244 *** Warning: the command libtool uses to detect shared libraries,
9245 *** $file_magic_cmd, produces output that libtool cannot recognize.
9246 *** The result is that libtool may fail to recognize shared libraries
9247 *** as such.  This will affect the creation of libtool libraries that
9248 *** depend on shared libraries, but programs linked with such libtool
9249 *** libraries will work regardless of this problem.  Nevertheless, you
9250 *** may want to report the problem to your system manager and/or to
9251 *** bug-libtool@gnu.org
9252
9253 _LT_EOF
9254           fi ;;
9255         esac
9256       fi
9257       break
9258     fi
9259   done
9260   IFS="$lt_save_ifs"
9261   MAGIC_CMD="$lt_save_MAGIC_CMD"
9262   ;;
9263 esac
9264 fi
9265
9266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9267 if test -n "$MAGIC_CMD"; then
9268   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9269 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9270 else
9271   { echo "$as_me:$LINENO: result: no" >&5
9272 echo "${ECHO_T}no" >&6; }
9273 fi
9274
9275
9276
9277
9278
9279 if test -z "$lt_cv_path_MAGIC_CMD"; then
9280   if test -n "$ac_tool_prefix"; then
9281     { echo "$as_me:$LINENO: checking for file" >&5
9282 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9283 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286   case $MAGIC_CMD in
9287 [\\/*] |  ?:[\\/]*)
9288   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9289   ;;
9290 *)
9291   lt_save_MAGIC_CMD="$MAGIC_CMD"
9292   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9293   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9294   for ac_dir in $ac_dummy; do
9295     IFS="$lt_save_ifs"
9296     test -z "$ac_dir" && ac_dir=.
9297     if test -f $ac_dir/file; then
9298       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9299       if test -n "$file_magic_test_file"; then
9300         case $deplibs_check_method in
9301         "file_magic "*)
9302           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9303           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9304           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9305             $EGREP "$file_magic_regex" > /dev/null; then
9306             :
9307           else
9308             cat <<_LT_EOF 1>&2
9309
9310 *** Warning: the command libtool uses to detect shared libraries,
9311 *** $file_magic_cmd, produces output that libtool cannot recognize.
9312 *** The result is that libtool may fail to recognize shared libraries
9313 *** as such.  This will affect the creation of libtool libraries that
9314 *** depend on shared libraries, but programs linked with such libtool
9315 *** libraries will work regardless of this problem.  Nevertheless, you
9316 *** may want to report the problem to your system manager and/or to
9317 *** bug-libtool@gnu.org
9318
9319 _LT_EOF
9320           fi ;;
9321         esac
9322       fi
9323       break
9324     fi
9325   done
9326   IFS="$lt_save_ifs"
9327   MAGIC_CMD="$lt_save_MAGIC_CMD"
9328   ;;
9329 esac
9330 fi
9331
9332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9333 if test -n "$MAGIC_CMD"; then
9334   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9335 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9336 else
9337   { echo "$as_me:$LINENO: result: no" >&5
9338 echo "${ECHO_T}no" >&6; }
9339 fi
9340
9341
9342   else
9343     MAGIC_CMD=:
9344   fi
9345 fi
9346
9347   fi
9348   ;;
9349 esac
9350
9351 # Use C for the default configuration in the libtool script
9352
9353 lt_save_CC="$CC"
9354 ac_ext=c
9355 ac_cpp='$CPP $CPPFLAGS'
9356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9359
9360
9361 # Source file extension for C test sources.
9362 ac_ext=c
9363
9364 # Object file extension for compiled C test sources.
9365 objext=o
9366 objext=$objext
9367
9368 # Code to be used in simple compile tests
9369 lt_simple_compile_test_code="int some_variable = 0;"
9370
9371 # Code to be used in simple link tests
9372 lt_simple_link_test_code='int main(){return(0);}'
9373
9374
9375
9376
9377
9378
9379
9380 # If no C compiler was specified, use CC.
9381 LTCC=${LTCC-"$CC"}
9382
9383 # If no C compiler flags were specified, use CFLAGS.
9384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9385
9386 # Allow CC to be a program name with arguments.
9387 compiler=$CC
9388
9389 # Save the default compiler, since it gets overwritten when the other
9390 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9391 compiler_DEFAULT=$CC
9392
9393 # save warnings/boilerplate of simple test code
9394 ac_outfile=conftest.$ac_objext
9395 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9396 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9397 _lt_compiler_boilerplate=`cat conftest.err`
9398 $RM conftest*
9399
9400 ac_outfile=conftest.$ac_objext
9401 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9402 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9403 _lt_linker_boilerplate=`cat conftest.err`
9404 $RM -r conftest*
9405
9406
9407 ## CAVEAT EMPTOR:
9408 ## There is no encapsulation within the following macros, do not change
9409 ## the running order or otherwise move them around unless you know exactly
9410 ## what you are doing...
9411 if test -n "$compiler"; then
9412
9413 lt_prog_compiler_no_builtin_flag=
9414
9415 if test "$GCC" = yes; then
9416   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9417
9418   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9419 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9420 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9421   echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423   lt_cv_prog_compiler_rtti_exceptions=no
9424    ac_outfile=conftest.$ac_objext
9425    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9426    lt_compiler_flag="-fno-rtti -fno-exceptions"
9427    # Insert the option either (1) after the last *FLAGS variable, or
9428    # (2) before a word containing "conftest.", or (3) at the end.
9429    # Note that $ac_compile itself does not contain backslashes and begins
9430    # with a dollar sign (not a hyphen), so the echo should work correctly.
9431    # The option is referenced via a variable to avoid confusing sed.
9432    lt_compile=`echo "$ac_compile" | $SED \
9433    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9434    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9435    -e 's:$: $lt_compiler_flag:'`
9436    (eval echo "\"\$as_me:9436: $lt_compile\"" >&5)
9437    (eval "$lt_compile" 2>conftest.err)
9438    ac_status=$?
9439    cat conftest.err >&5
9440    echo "$as_me:9440: \$? = $ac_status" >&5
9441    if (exit $ac_status) && test -s "$ac_outfile"; then
9442      # The compiler can only warn and ignore the option if not recognized
9443      # So say no if there are warnings other than the usual output.
9444      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9445      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9446      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9447        lt_cv_prog_compiler_rtti_exceptions=yes
9448      fi
9449    fi
9450    $RM conftest*
9451
9452 fi
9453 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9454 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9455
9456 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9457     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9458 else
9459     :
9460 fi
9461
9462 fi
9463
9464
9465
9466
9467
9468
9469   lt_prog_compiler_wl=
9470 lt_prog_compiler_pic=
9471 lt_prog_compiler_static=
9472
9473 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9474 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9475
9476   if test "$GCC" = yes; then
9477     lt_prog_compiler_wl='-Wl,'
9478     lt_prog_compiler_static='-static'
9479
9480     case $host_os in
9481       aix*)
9482       # All AIX code is PIC.
9483       if test "$host_cpu" = ia64; then
9484         # AIX 5 now supports IA64 processor
9485         lt_prog_compiler_static='-Bstatic'
9486       fi
9487       ;;
9488
9489     amigaos*)
9490       case $host_cpu in
9491       powerpc)
9492             # see comment about AmigaOS4 .so support
9493             lt_prog_compiler_pic='-fPIC'
9494         ;;
9495       m68k)
9496             # FIXME: we need at least 68020 code to build shared libraries, but
9497             # adding the `-m68020' flag to GCC prevents building anything better,
9498             # like `-m68040'.
9499             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9500         ;;
9501       esac
9502       ;;
9503
9504     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9505       # PIC is the default for these OSes.
9506       ;;
9507
9508     mingw* | cygwin* | pw32* | os2* | cegcc*)
9509       # This hack is so that the source file can tell whether it is being
9510       # built for inclusion in a dll (and should export symbols for example).
9511       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9512       # (--disable-auto-import) libraries
9513       lt_prog_compiler_pic='-DDLL_EXPORT'
9514       ;;
9515
9516     darwin* | rhapsody*)
9517       # PIC is the default on this platform
9518       # Common symbols not allowed in MH_DYLIB files
9519       lt_prog_compiler_pic='-fno-common'
9520       ;;
9521
9522     hpux*)
9523       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9524       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9525       # sets the default TLS model and affects inlining.
9526       case $host_cpu in
9527       hppa*64*)
9528         # +Z the default
9529         ;;
9530       *)
9531         lt_prog_compiler_pic='-fPIC'
9532         ;;
9533       esac
9534       ;;
9535
9536     interix[3-9]*)
9537       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9538       # Instead, we relocate shared libraries at runtime.
9539       ;;
9540
9541     msdosdjgpp*)
9542       # Just because we use GCC doesn't mean we suddenly get shared libraries
9543       # on systems that don't support them.
9544       lt_prog_compiler_can_build_shared=no
9545       enable_shared=no
9546       ;;
9547
9548     *nto* | *qnx*)
9549       # QNX uses GNU C++, but need to define -shared option too, otherwise
9550       # it will coredump.
9551       lt_prog_compiler_pic='-fPIC -shared'
9552       ;;
9553
9554     sysv4*MP*)
9555       if test -d /usr/nec; then
9556         lt_prog_compiler_pic=-Kconform_pic
9557       fi
9558       ;;
9559
9560     *)
9561       lt_prog_compiler_pic='-fPIC'
9562       ;;
9563     esac
9564   else
9565     # PORTME Check for flag to pass linker flags through the system compiler.
9566     case $host_os in
9567     aix*)
9568       lt_prog_compiler_wl='-Wl,'
9569       if test "$host_cpu" = ia64; then
9570         # AIX 5 now supports IA64 processor
9571         lt_prog_compiler_static='-Bstatic'
9572       else
9573         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9574       fi
9575       ;;
9576
9577     mingw* | cygwin* | pw32* | os2* | cegcc*)
9578       # This hack is so that the source file can tell whether it is being
9579       # built for inclusion in a dll (and should export symbols for example).
9580       lt_prog_compiler_pic='-DDLL_EXPORT'
9581       ;;
9582
9583     hpux9* | hpux10* | hpux11*)
9584       lt_prog_compiler_wl='-Wl,'
9585       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9586       # not for PA HP-UX.
9587       case $host_cpu in
9588       hppa*64*|ia64*)
9589         # +Z the default
9590         ;;
9591       *)
9592         lt_prog_compiler_pic='+Z'
9593         ;;
9594       esac
9595       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9596       lt_prog_compiler_static='${wl}-a ${wl}archive'
9597       ;;
9598
9599     irix5* | irix6* | nonstopux*)
9600       lt_prog_compiler_wl='-Wl,'
9601       # PIC (with -KPIC) is the default.
9602       lt_prog_compiler_static='-non_shared'
9603       ;;
9604
9605     linux* | k*bsd*-gnu)
9606       case $cc_basename in
9607       # old Intel for x86_64 which still supported -KPIC.
9608       ecc*)
9609         lt_prog_compiler_wl='-Wl,'
9610         lt_prog_compiler_pic='-KPIC'
9611         lt_prog_compiler_static='-static'
9612         ;;
9613       # icc used to be incompatible with GCC.
9614       # ICC 10 doesn't accept -KPIC any more.
9615       icc* | ifort*)
9616         lt_prog_compiler_wl='-Wl,'
9617         lt_prog_compiler_pic='-fPIC'
9618         lt_prog_compiler_static='-static'
9619         ;;
9620       # Lahey Fortran 8.1.
9621       lf95*)
9622         lt_prog_compiler_wl='-Wl,'
9623         lt_prog_compiler_pic='--shared'
9624         lt_prog_compiler_static='--static'
9625         ;;
9626       pgcc* | pgf77* | pgf90* | pgf95*)
9627         # Portland Group compilers (*not* the Pentium gcc compiler,
9628         # which looks to be a dead project)
9629         lt_prog_compiler_wl='-Wl,'
9630         lt_prog_compiler_pic='-fpic'
9631         lt_prog_compiler_static='-Bstatic'
9632         ;;
9633       ccc*)
9634         lt_prog_compiler_wl='-Wl,'
9635         # All Alpha code is PIC.
9636         lt_prog_compiler_static='-non_shared'
9637         ;;
9638       xl*)
9639         # IBM XL C 8.0/Fortran 10.1 on PPC
9640         lt_prog_compiler_wl='-Wl,'
9641         lt_prog_compiler_pic='-qpic'
9642         lt_prog_compiler_static='-qstaticlink'
9643         ;;
9644       *)
9645         case `$CC -V 2>&1 | sed 5q` in
9646         *Sun\ C*)
9647           # Sun C 5.9
9648           lt_prog_compiler_pic='-KPIC'
9649           lt_prog_compiler_static='-Bstatic'
9650           lt_prog_compiler_wl='-Wl,'
9651           ;;
9652         *Sun\ F*)
9653           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9654           lt_prog_compiler_pic='-KPIC'
9655           lt_prog_compiler_static='-Bstatic'
9656           lt_prog_compiler_wl=''
9657           ;;
9658         esac
9659         ;;
9660       esac
9661       ;;
9662
9663     newsos6)
9664       lt_prog_compiler_pic='-KPIC'
9665       lt_prog_compiler_static='-Bstatic'
9666       ;;
9667
9668     *nto* | *qnx*)
9669       # QNX uses GNU C++, but need to define -shared option too, otherwise
9670       # it will coredump.
9671       lt_prog_compiler_pic='-fPIC -shared'
9672       ;;
9673
9674     osf3* | osf4* | osf5*)
9675       lt_prog_compiler_wl='-Wl,'
9676       # All OSF/1 code is PIC.
9677       lt_prog_compiler_static='-non_shared'
9678       ;;
9679
9680     rdos*)
9681       lt_prog_compiler_static='-non_shared'
9682       ;;
9683
9684     solaris*)
9685       lt_prog_compiler_pic='-KPIC'
9686       lt_prog_compiler_static='-Bstatic'
9687       case $cc_basename in
9688       f77* | f90* | f95*)
9689         lt_prog_compiler_wl='-Qoption ld ';;
9690       *)
9691         lt_prog_compiler_wl='-Wl,';;
9692       esac
9693       ;;
9694
9695     sunos4*)
9696       lt_prog_compiler_wl='-Qoption ld '
9697       lt_prog_compiler_pic='-PIC'
9698       lt_prog_compiler_static='-Bstatic'
9699       ;;
9700
9701     sysv4 | sysv4.2uw2* | sysv4.3*)
9702       lt_prog_compiler_wl='-Wl,'
9703       lt_prog_compiler_pic='-KPIC'
9704       lt_prog_compiler_static='-Bstatic'
9705       ;;
9706
9707     sysv4*MP*)
9708       if test -d /usr/nec ;then
9709         lt_prog_compiler_pic='-Kconform_pic'
9710         lt_prog_compiler_static='-Bstatic'
9711       fi
9712       ;;
9713
9714     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9715       lt_prog_compiler_wl='-Wl,'
9716       lt_prog_compiler_pic='-KPIC'
9717       lt_prog_compiler_static='-Bstatic'
9718       ;;
9719
9720     unicos*)
9721       lt_prog_compiler_wl='-Wl,'
9722       lt_prog_compiler_can_build_shared=no
9723       ;;
9724
9725     uts4*)
9726       lt_prog_compiler_pic='-pic'
9727       lt_prog_compiler_static='-Bstatic'
9728       ;;
9729
9730     *)
9731       lt_prog_compiler_can_build_shared=no
9732       ;;
9733     esac
9734   fi
9735
9736 case $host_os in
9737   # For platforms which do not support PIC, -DPIC is meaningless:
9738   *djgpp*)
9739     lt_prog_compiler_pic=
9740     ;;
9741   *)
9742     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9743     ;;
9744 esac
9745 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9746 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9747
9748
9749
9750
9751
9752
9753 #
9754 # Check to make sure the PIC flag actually works.
9755 #
9756 if test -n "$lt_prog_compiler_pic"; then
9757   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9758 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9759 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9760   echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762   lt_cv_prog_compiler_pic_works=no
9763    ac_outfile=conftest.$ac_objext
9764    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9765    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9766    # Insert the option either (1) after the last *FLAGS variable, or
9767    # (2) before a word containing "conftest.", or (3) at the end.
9768    # Note that $ac_compile itself does not contain backslashes and begins
9769    # with a dollar sign (not a hyphen), so the echo should work correctly.
9770    # The option is referenced via a variable to avoid confusing sed.
9771    lt_compile=`echo "$ac_compile" | $SED \
9772    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9773    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9774    -e 's:$: $lt_compiler_flag:'`
9775    (eval echo "\"\$as_me:9775: $lt_compile\"" >&5)
9776    (eval "$lt_compile" 2>conftest.err)
9777    ac_status=$?
9778    cat conftest.err >&5
9779    echo "$as_me:9779: \$? = $ac_status" >&5
9780    if (exit $ac_status) && test -s "$ac_outfile"; then
9781      # The compiler can only warn and ignore the option if not recognized
9782      # So say no if there are warnings other than the usual output.
9783      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9784      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9785      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9786        lt_cv_prog_compiler_pic_works=yes
9787      fi
9788    fi
9789    $RM conftest*
9790
9791 fi
9792 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9793 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9794
9795 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9796     case $lt_prog_compiler_pic in
9797      "" | " "*) ;;
9798      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9799      esac
9800 else
9801     lt_prog_compiler_pic=
9802      lt_prog_compiler_can_build_shared=no
9803 fi
9804
9805 fi
9806
9807
9808
9809
9810
9811
9812 #
9813 # Check to make sure the static flag actually works.
9814 #
9815 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9816 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9817 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9818 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   lt_cv_prog_compiler_static_works=no
9822    save_LDFLAGS="$LDFLAGS"
9823    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9824    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9825    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9826      # The linker can only warn and ignore the option if not recognized
9827      # So say no if there are warnings
9828      if test -s conftest.err; then
9829        # Append any errors to the config.log.
9830        cat conftest.err 1>&5
9831        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9832        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9833        if diff conftest.exp conftest.er2 >/dev/null; then
9834          lt_cv_prog_compiler_static_works=yes
9835        fi
9836      else
9837        lt_cv_prog_compiler_static_works=yes
9838      fi
9839    fi
9840    $RM -r conftest*
9841    LDFLAGS="$save_LDFLAGS"
9842
9843 fi
9844 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9845 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9846
9847 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9848     :
9849 else
9850     lt_prog_compiler_static=
9851 fi
9852
9853
9854
9855
9856
9857
9858
9859   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9860 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9861 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9862   echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864   lt_cv_prog_compiler_c_o=no
9865    $RM -r conftest 2>/dev/null
9866    mkdir conftest
9867    cd conftest
9868    mkdir out
9869    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9870
9871    lt_compiler_flag="-o out/conftest2.$ac_objext"
9872    # Insert the option either (1) after the last *FLAGS variable, or
9873    # (2) before a word containing "conftest.", or (3) at the end.
9874    # Note that $ac_compile itself does not contain backslashes and begins
9875    # with a dollar sign (not a hyphen), so the echo should work correctly.
9876    lt_compile=`echo "$ac_compile" | $SED \
9877    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9878    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9879    -e 's:$: $lt_compiler_flag:'`
9880    (eval echo "\"\$as_me:9880: $lt_compile\"" >&5)
9881    (eval "$lt_compile" 2>out/conftest.err)
9882    ac_status=$?
9883    cat out/conftest.err >&5
9884    echo "$as_me:9884: \$? = $ac_status" >&5
9885    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9886    then
9887      # The compiler can only warn and ignore the option if not recognized
9888      # So say no if there are warnings
9889      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9890      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9891      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9892        lt_cv_prog_compiler_c_o=yes
9893      fi
9894    fi
9895    chmod u+w . 2>&5
9896    $RM conftest*
9897    # SGI C++ compiler will create directory out/ii_files/ for
9898    # template instantiation
9899    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9900    $RM out/* && rmdir out
9901    cd ..
9902    $RM -r conftest
9903    $RM conftest*
9904
9905 fi
9906 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9907 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9908
9909
9910
9911
9912
9913
9914   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9915 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9916 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9917   echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919   lt_cv_prog_compiler_c_o=no
9920    $RM -r conftest 2>/dev/null
9921    mkdir conftest
9922    cd conftest
9923    mkdir out
9924    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9925
9926    lt_compiler_flag="-o out/conftest2.$ac_objext"
9927    # Insert the option either (1) after the last *FLAGS variable, or
9928    # (2) before a word containing "conftest.", or (3) at the end.
9929    # Note that $ac_compile itself does not contain backslashes and begins
9930    # with a dollar sign (not a hyphen), so the echo should work correctly.
9931    lt_compile=`echo "$ac_compile" | $SED \
9932    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9933    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9934    -e 's:$: $lt_compiler_flag:'`
9935    (eval echo "\"\$as_me:9935: $lt_compile\"" >&5)
9936    (eval "$lt_compile" 2>out/conftest.err)
9937    ac_status=$?
9938    cat out/conftest.err >&5
9939    echo "$as_me:9939: \$? = $ac_status" >&5
9940    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9941    then
9942      # The compiler can only warn and ignore the option if not recognized
9943      # So say no if there are warnings
9944      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9945      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9946      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9947        lt_cv_prog_compiler_c_o=yes
9948      fi
9949    fi
9950    chmod u+w . 2>&5
9951    $RM conftest*
9952    # SGI C++ compiler will create directory out/ii_files/ for
9953    # template instantiation
9954    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9955    $RM out/* && rmdir out
9956    cd ..
9957    $RM -r conftest
9958    $RM conftest*
9959
9960 fi
9961 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9962 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9963
9964
9965
9966
9967 hard_links="nottested"
9968 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9969   # do not overwrite the value of need_locks provided by the user
9970   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9971 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9972   hard_links=yes
9973   $RM conftest*
9974   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9975   touch conftest.a
9976   ln conftest.a conftest.b 2>&5 || hard_links=no
9977   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9978   { echo "$as_me:$LINENO: result: $hard_links" >&5
9979 echo "${ECHO_T}$hard_links" >&6; }
9980   if test "$hard_links" = no; then
9981     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9982 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9983     need_locks=warn
9984   fi
9985 else
9986   need_locks=no
9987 fi
9988
9989
9990
9991
9992
9993
9994   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9995 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9996
9997   runpath_var=
9998   allow_undefined_flag=
9999   always_export_symbols=no
10000   archive_cmds=
10001   archive_expsym_cmds=
10002   compiler_needs_object=no
10003   enable_shared_with_static_runtimes=no
10004   export_dynamic_flag_spec=
10005   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10006   hardcode_automatic=no
10007   hardcode_direct=no
10008   hardcode_direct_absolute=no
10009   hardcode_libdir_flag_spec=
10010   hardcode_libdir_flag_spec_ld=
10011   hardcode_libdir_separator=
10012   hardcode_minus_L=no
10013   hardcode_shlibpath_var=unsupported
10014   inherit_rpath=no
10015   link_all_deplibs=unknown
10016   module_cmds=
10017   module_expsym_cmds=
10018   old_archive_from_new_cmds=
10019   old_archive_from_expsyms_cmds=
10020   thread_safe_flag_spec=
10021   whole_archive_flag_spec=
10022   # include_expsyms should be a list of space-separated symbols to be *always*
10023   # included in the symbol list
10024   include_expsyms=
10025   # exclude_expsyms can be an extended regexp of symbols to exclude
10026   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10027   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10028   # as well as any symbol that contains `d'.
10029   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10030   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10031   # platforms (ab)use it in PIC code, but their linkers get confused if
10032   # the symbol is explicitly referenced.  Since portable code cannot
10033   # rely on this symbol name, it's probably fine to never include it in
10034   # preloaded symbol tables.
10035   # Exclude shared library initialization/finalization symbols.
10036   extract_expsyms_cmds=
10037
10038   case $host_os in
10039   cygwin* | mingw* | pw32* | cegcc*)
10040     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10041     # When not using gcc, we currently assume that we are using
10042     # Microsoft Visual C++.
10043     if test "$GCC" != yes; then
10044       with_gnu_ld=no
10045     fi
10046     ;;
10047   interix*)
10048     # we just hope/assume this is gcc and not c89 (= MSVC++)
10049     with_gnu_ld=yes
10050     ;;
10051   openbsd*)
10052     with_gnu_ld=no
10053     ;;
10054   esac
10055
10056   ld_shlibs=yes
10057   if test "$with_gnu_ld" = yes; then
10058     # If archive_cmds runs LD, not CC, wlarc should be empty
10059     wlarc='${wl}'
10060
10061     # Set some defaults for GNU ld with shared library support. These
10062     # are reset later if shared libraries are not supported. Putting them
10063     # here allows them to be overridden if necessary.
10064     runpath_var=LD_RUN_PATH
10065     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10066     export_dynamic_flag_spec='${wl}--export-dynamic'
10067     # ancient GNU ld didn't support --whole-archive et. al.
10068     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10069       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10070     else
10071       whole_archive_flag_spec=
10072     fi
10073     supports_anon_versioning=no
10074     case `$LD -v 2>&1` in
10075       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10076       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10077       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10078       *\ 2.11.*) ;; # other 2.11 versions
10079       *) supports_anon_versioning=yes ;;
10080     esac
10081
10082     # See if GNU ld supports shared libraries.
10083     case $host_os in
10084     aix[3-9]*)
10085       # On AIX/PPC, the GNU linker is very broken
10086       if test "$host_cpu" != ia64; then
10087         ld_shlibs=no
10088         cat <<_LT_EOF 1>&2
10089
10090 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10091 *** to be unable to reliably create shared libraries on AIX.
10092 *** Therefore, libtool is disabling shared libraries support.  If you
10093 *** really care for shared libraries, you may want to modify your PATH
10094 *** so that a non-GNU linker is found, and then restart.
10095
10096 _LT_EOF
10097       fi
10098       ;;
10099
10100     amigaos*)
10101       case $host_cpu in
10102       powerpc)
10103             # see comment about AmigaOS4 .so support
10104             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105             archive_expsym_cmds=''
10106         ;;
10107       m68k)
10108             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)'
10109             hardcode_libdir_flag_spec='-L$libdir'
10110             hardcode_minus_L=yes
10111         ;;
10112       esac
10113       ;;
10114
10115     beos*)
10116       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10117         allow_undefined_flag=unsupported
10118         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10119         # support --undefined.  This deserves some investigation.  FIXME
10120         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10121       else
10122         ld_shlibs=no
10123       fi
10124       ;;
10125
10126     cygwin* | mingw* | pw32* | cegcc*)
10127       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10128       # as there is no search path for DLLs.
10129       hardcode_libdir_flag_spec='-L$libdir'
10130       allow_undefined_flag=unsupported
10131       always_export_symbols=no
10132       enable_shared_with_static_runtimes=yes
10133       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10134
10135       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10136         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10137         # If the export-symbols file already is a .def file (1st line
10138         # is EXPORTS), use it as is; otherwise, prepend...
10139         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10140           cp $export_symbols $output_objdir/$soname.def;
10141         else
10142           echo EXPORTS > $output_objdir/$soname.def;
10143           cat $export_symbols >> $output_objdir/$soname.def;
10144         fi~
10145         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10146       else
10147         ld_shlibs=no
10148       fi
10149       ;;
10150
10151     interix[3-9]*)
10152       hardcode_direct=no
10153       hardcode_shlibpath_var=no
10154       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10155       export_dynamic_flag_spec='${wl}-E'
10156       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10157       # Instead, shared libraries are loaded at an image base (0x10000000 by
10158       # default) and relocated if they conflict, which is a slow very memory
10159       # consuming and fragmenting process.  To avoid this, we pick a random,
10160       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10161       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10162       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10163       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'
10164       ;;
10165
10166     gnu* | linux* | tpf* | k*bsd*-gnu)
10167       tmp_diet=no
10168       if test "$host_os" = linux-dietlibc; then
10169         case $cc_basename in
10170           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10171         esac
10172       fi
10173       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10174          && test "$tmp_diet" = no
10175       then
10176         tmp_addflag=
10177         tmp_sharedflag='-shared'
10178         case $cc_basename,$host_cpu in
10179         pgcc*)                          # Portland Group C compiler
10180           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'
10181           tmp_addflag=' $pic_flag'
10182           ;;
10183         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10184           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'
10185           tmp_addflag=' $pic_flag -Mnomain' ;;
10186         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10187           tmp_addflag=' -i_dynamic' ;;
10188         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10189           tmp_addflag=' -i_dynamic -nofor_main' ;;
10190         ifc* | ifort*)                  # Intel Fortran compiler
10191           tmp_addflag=' -nofor_main' ;;
10192         lf95*)                          # Lahey Fortran 8.1
10193           whole_archive_flag_spec=
10194           tmp_sharedflag='--shared' ;;
10195         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10196           tmp_sharedflag='-qmkshrobj'
10197           tmp_addflag= ;;
10198         esac
10199         case `$CC -V 2>&1 | sed 5q` in
10200         *Sun\ C*)                       # Sun C 5.9
10201           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'
10202           compiler_needs_object=yes
10203           tmp_sharedflag='-G' ;;
10204         *Sun\ F*)                       # Sun Fortran 8.3
10205           tmp_sharedflag='-G' ;;
10206         esac
10207         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10208
10209         if test "x$supports_anon_versioning" = xyes; then
10210           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10211             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10212             echo "local: *; };" >> $output_objdir/$libname.ver~
10213             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10214         fi
10215
10216         case $cc_basename in
10217         xlf*)
10218           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10219           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10220           hardcode_libdir_flag_spec=
10221           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10222           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10223           if test "x$supports_anon_versioning" = xyes; then
10224             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10225               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10226               echo "local: *; };" >> $output_objdir/$libname.ver~
10227               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10228           fi
10229           ;;
10230         esac
10231       else
10232         ld_shlibs=no
10233       fi
10234       ;;
10235
10236     netbsd*)
10237       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10238         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10239         wlarc=
10240       else
10241         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10242         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10243       fi
10244       ;;
10245
10246     solaris*)
10247       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10248         ld_shlibs=no
10249         cat <<_LT_EOF 1>&2
10250
10251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10252 *** create shared libraries on Solaris systems.  Therefore, libtool
10253 *** is disabling shared libraries support.  We urge you to upgrade GNU
10254 *** binutils to release 2.9.1 or newer.  Another option is to modify
10255 *** your PATH or compiler configuration so that the native linker is
10256 *** used, and then restart.
10257
10258 _LT_EOF
10259       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10260         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10261         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10262       else
10263         ld_shlibs=no
10264       fi
10265       ;;
10266
10267     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10268       case `$LD -v 2>&1` in
10269         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10270         ld_shlibs=no
10271         cat <<_LT_EOF 1>&2
10272
10273 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10274 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10275 *** is disabling shared libraries support.  We urge you to upgrade GNU
10276 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10277 *** your PATH or compiler configuration so that the native linker is
10278 *** used, and then restart.
10279
10280 _LT_EOF
10281         ;;
10282         *)
10283           # For security reasons, it is highly recommended that you always
10284           # use absolute paths for naming shared libraries, and exclude the
10285           # DT_RUNPATH tag from executables and libraries.  But doing so
10286           # requires that you compile everything twice, which is a pain.
10287           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10288             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10289             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10290             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10291           else
10292             ld_shlibs=no
10293           fi
10294         ;;
10295       esac
10296       ;;
10297
10298     sunos4*)
10299       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10300       wlarc=
10301       hardcode_direct=yes
10302       hardcode_shlibpath_var=no
10303       ;;
10304
10305     *)
10306       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10307         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10308         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10309       else
10310         ld_shlibs=no
10311       fi
10312       ;;
10313     esac
10314
10315     if test "$ld_shlibs" = no; then
10316       runpath_var=
10317       hardcode_libdir_flag_spec=
10318       export_dynamic_flag_spec=
10319       whole_archive_flag_spec=
10320     fi
10321   else
10322     # PORTME fill in a description of your system's linker (not GNU ld)
10323     case $host_os in
10324     aix3*)
10325       allow_undefined_flag=unsupported
10326       always_export_symbols=yes
10327       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'
10328       # Note: this linker hardcodes the directories in LIBPATH if there
10329       # are no directories specified by -L.
10330       hardcode_minus_L=yes
10331       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10332         # Neither direct hardcoding nor static linking is supported with a
10333         # broken collect2.
10334         hardcode_direct=unsupported
10335       fi
10336       ;;
10337
10338     aix[4-9]*)
10339       if test "$host_cpu" = ia64; then
10340         # On IA64, the linker does run time linking by default, so we don't
10341         # have to do anything special.
10342         aix_use_runtimelinking=no
10343         exp_sym_flag='-Bexport'
10344         no_entry_flag=""
10345       else
10346         # If we're using GNU nm, then we don't want the "-C" option.
10347         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10348         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10349           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'
10350         else
10351           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'
10352         fi
10353         aix_use_runtimelinking=no
10354
10355         # Test if we are trying to use run time linking or normal
10356         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10357         # need to do runtime linking.
10358         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10359           for ld_flag in $LDFLAGS; do
10360           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10361             aix_use_runtimelinking=yes
10362             break
10363           fi
10364           done
10365           ;;
10366         esac
10367
10368         exp_sym_flag='-bexport'
10369         no_entry_flag='-bnoentry'
10370       fi
10371
10372       # When large executables or shared objects are built, AIX ld can
10373       # have problems creating the table of contents.  If linking a library
10374       # or program results in "error TOC overflow" add -mminimal-toc to
10375       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10376       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10377
10378       archive_cmds=''
10379       hardcode_direct=yes
10380       hardcode_direct_absolute=yes
10381       hardcode_libdir_separator=':'
10382       link_all_deplibs=yes
10383       file_list_spec='${wl}-f,'
10384
10385       if test "$GCC" = yes; then
10386         case $host_os in aix4.[012]|aix4.[012].*)
10387         # We only want to do this on AIX 4.2 and lower, the check
10388         # below for broken collect2 doesn't work under 4.3+
10389           collect2name=`${CC} -print-prog-name=collect2`
10390           if test -f "$collect2name" &&
10391            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10392           then
10393           # We have reworked collect2
10394           :
10395           else
10396           # We have old collect2
10397           hardcode_direct=unsupported
10398           # It fails to find uninstalled libraries when the uninstalled
10399           # path is not listed in the libpath.  Setting hardcode_minus_L
10400           # to unsupported forces relinking
10401           hardcode_minus_L=yes
10402           hardcode_libdir_flag_spec='-L$libdir'
10403           hardcode_libdir_separator=
10404           fi
10405           ;;
10406         esac
10407         shared_flag='-shared'
10408         if test "$aix_use_runtimelinking" = yes; then
10409           shared_flag="$shared_flag "'${wl}-G'
10410         fi
10411       else
10412         # not using gcc
10413         if test "$host_cpu" = ia64; then
10414         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10415         # chokes on -Wl,-G. The following line is correct:
10416           shared_flag='-G'
10417         else
10418           if test "$aix_use_runtimelinking" = yes; then
10419             shared_flag='${wl}-G'
10420           else
10421             shared_flag='${wl}-bM:SRE'
10422           fi
10423         fi
10424       fi
10425
10426       export_dynamic_flag_spec='${wl}-bexpall'
10427       # It seems that -bexpall does not export symbols beginning with
10428       # underscore (_), so it is better to generate a list of symbols to export.
10429       always_export_symbols=yes
10430       if test "$aix_use_runtimelinking" = yes; then
10431         # Warning - without using the other runtime loading flags (-brtl),
10432         # -berok will link without error, but may produce a broken library.
10433         allow_undefined_flag='-berok'
10434         # Determine the default libpath from the value encoded in an
10435         # empty executable.
10436         cat >conftest.$ac_ext <<_ACEOF
10437 /* confdefs.h.  */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h.  */
10442
10443 int
10444 main ()
10445 {
10446
10447   ;
10448   return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455   *) ac_try_echo=$ac_try;;
10456 esac
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458   (eval "$ac_link") 2>conftest.er1
10459   ac_status=$?
10460   grep -v '^ *+' conftest.er1 >conftest.err
10461   rm -f conftest.er1
10462   cat conftest.err >&5
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); } && {
10465          test -z "$ac_c_werror_flag" ||
10466          test ! -s conftest.err
10467        } && test -s conftest$ac_exeext &&
10468        $as_test_x conftest$ac_exeext; then
10469
10470 lt_aix_libpath_sed='
10471     /Import File Strings/,/^$/ {
10472         /^0/ {
10473             s/^0  *\(.*\)$/\1/
10474             p
10475         }
10476     }'
10477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478 # Check for a 64-bit object if we didn't find anything.
10479 if test -z "$aix_libpath"; then
10480   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10481 fi
10482 else
10483   echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10485
10486
10487 fi
10488
10489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10490       conftest$ac_exeext conftest.$ac_ext
10491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10492
10493         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10494         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"
10495       else
10496         if test "$host_cpu" = ia64; then
10497           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10498           allow_undefined_flag="-z nodefs"
10499           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"
10500         else
10501          # Determine the default libpath from the value encoded in an
10502          # empty executable.
10503          cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509
10510 int
10511 main ()
10512 {
10513
10514   ;
10515   return 0;
10516 }
10517 _ACEOF
10518 rm -f conftest.$ac_objext conftest$ac_exeext
10519 if { (ac_try="$ac_link"
10520 case "(($ac_try" in
10521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522   *) ac_try_echo=$ac_try;;
10523 esac
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525   (eval "$ac_link") 2>conftest.er1
10526   ac_status=$?
10527   grep -v '^ *+' conftest.er1 >conftest.err
10528   rm -f conftest.er1
10529   cat conftest.err >&5
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); } && {
10532          test -z "$ac_c_werror_flag" ||
10533          test ! -s conftest.err
10534        } && test -s conftest$ac_exeext &&
10535        $as_test_x conftest$ac_exeext; then
10536
10537 lt_aix_libpath_sed='
10538     /Import File Strings/,/^$/ {
10539         /^0/ {
10540             s/^0  *\(.*\)$/\1/
10541             p
10542         }
10543     }'
10544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 # Check for a 64-bit object if we didn't find anything.
10546 if test -z "$aix_libpath"; then
10547   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10548 fi
10549 else
10550   echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553
10554 fi
10555
10556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557       conftest$ac_exeext conftest.$ac_ext
10558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10559
10560          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10561           # Warning - without using the other run time loading flags,
10562           # -berok will link without error, but may produce a broken library.
10563           no_undefined_flag=' ${wl}-bernotok'
10564           allow_undefined_flag=' ${wl}-berok'
10565           # Exported symbols can be pulled into shared objects from archives
10566           whole_archive_flag_spec='$convenience'
10567           archive_cmds_need_lc=yes
10568           # This is similar to how AIX traditionally builds its shared libraries.
10569           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'
10570         fi
10571       fi
10572       ;;
10573
10574     amigaos*)
10575       case $host_cpu in
10576       powerpc)
10577             # see comment about AmigaOS4 .so support
10578             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10579             archive_expsym_cmds=''
10580         ;;
10581       m68k)
10582             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)'
10583             hardcode_libdir_flag_spec='-L$libdir'
10584             hardcode_minus_L=yes
10585         ;;
10586       esac
10587       ;;
10588
10589     bsdi[45]*)
10590       export_dynamic_flag_spec=-rdynamic
10591       ;;
10592
10593     cygwin* | mingw* | pw32* | cegcc*)
10594       # When not using gcc, we currently assume that we are using
10595       # Microsoft Visual C++.
10596       # hardcode_libdir_flag_spec is actually meaningless, as there is
10597       # no search path for DLLs.
10598       hardcode_libdir_flag_spec=' '
10599       allow_undefined_flag=unsupported
10600       # Tell ltmain to make .lib files, not .a files.
10601       libext=lib
10602       # Tell ltmain to make .dll files, not .so files.
10603       shrext_cmds=".dll"
10604       # FIXME: Setting linknames here is a bad hack.
10605       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10606       # The linker will automatically build a .lib file if we build a DLL.
10607       old_archive_from_new_cmds='true'
10608       # FIXME: Should let the user specify the lib program.
10609       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10610       fix_srcfile_path='`cygpath -w "$srcfile"`'
10611       enable_shared_with_static_runtimes=yes
10612       ;;
10613
10614     darwin* | rhapsody*)
10615
10616
10617   archive_cmds_need_lc=no
10618   hardcode_direct=no
10619   hardcode_automatic=yes
10620   hardcode_shlibpath_var=unsupported
10621   whole_archive_flag_spec=''
10622   link_all_deplibs=yes
10623   allow_undefined_flag="$_lt_dar_allow_undefined"
10624   case $cc_basename in
10625      ifort*) _lt_dar_can_shared=yes ;;
10626      *) _lt_dar_can_shared=$GCC ;;
10627   esac
10628   if test "$_lt_dar_can_shared" = "yes"; then
10629     output_verbose_link_cmd=echo
10630     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10631     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10632     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}"
10633     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}"
10634
10635   else
10636   ld_shlibs=no
10637   fi
10638
10639       ;;
10640
10641     dgux*)
10642       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643       hardcode_libdir_flag_spec='-L$libdir'
10644       hardcode_shlibpath_var=no
10645       ;;
10646
10647     freebsd1*)
10648       ld_shlibs=no
10649       ;;
10650
10651     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10652     # support.  Future versions do this automatically, but an explicit c++rt0.o
10653     # does not break anything, and helps significantly (at the cost of a little
10654     # extra space).
10655     freebsd2.2*)
10656       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10657       hardcode_libdir_flag_spec='-R$libdir'
10658       hardcode_direct=yes
10659       hardcode_shlibpath_var=no
10660       ;;
10661
10662     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10663     freebsd2*)
10664       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10665       hardcode_direct=yes
10666       hardcode_minus_L=yes
10667       hardcode_shlibpath_var=no
10668       ;;
10669
10670     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10671     freebsd* | dragonfly*)
10672       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10673       hardcode_libdir_flag_spec='-R$libdir'
10674       hardcode_direct=yes
10675       hardcode_shlibpath_var=no
10676       ;;
10677
10678     hpux9*)
10679       if test "$GCC" = yes; then
10680         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'
10681       else
10682         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'
10683       fi
10684       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10685       hardcode_libdir_separator=:
10686       hardcode_direct=yes
10687
10688       # hardcode_minus_L: Not really in the search PATH,
10689       # but as the default location of the library.
10690       hardcode_minus_L=yes
10691       export_dynamic_flag_spec='${wl}-E'
10692       ;;
10693
10694     hpux10*)
10695       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10696         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10697       else
10698         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10699       fi
10700       if test "$with_gnu_ld" = no; then
10701         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10702         hardcode_libdir_flag_spec_ld='+b $libdir'
10703         hardcode_libdir_separator=:
10704         hardcode_direct=yes
10705         hardcode_direct_absolute=yes
10706         export_dynamic_flag_spec='${wl}-E'
10707         # hardcode_minus_L: Not really in the search PATH,
10708         # but as the default location of the library.
10709         hardcode_minus_L=yes
10710       fi
10711       ;;
10712
10713     hpux11*)
10714       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10715         case $host_cpu in
10716         hppa*64*)
10717           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10718           ;;
10719         ia64*)
10720           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10721           ;;
10722         *)
10723           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10724           ;;
10725         esac
10726       else
10727         case $host_cpu in
10728         hppa*64*)
10729           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10730           ;;
10731         ia64*)
10732           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10733           ;;
10734         *)
10735           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10736           ;;
10737         esac
10738       fi
10739       if test "$with_gnu_ld" = no; then
10740         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10741         hardcode_libdir_separator=:
10742
10743         case $host_cpu in
10744         hppa*64*|ia64*)
10745           hardcode_direct=no
10746           hardcode_shlibpath_var=no
10747           ;;
10748         *)
10749           hardcode_direct=yes
10750           hardcode_direct_absolute=yes
10751           export_dynamic_flag_spec='${wl}-E'
10752
10753           # hardcode_minus_L: Not really in the search PATH,
10754           # but as the default location of the library.
10755           hardcode_minus_L=yes
10756           ;;
10757         esac
10758       fi
10759       ;;
10760
10761     irix5* | irix6* | nonstopux*)
10762       if test "$GCC" = yes; then
10763         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'
10764         # Try to use the -exported_symbol ld option, if it does not
10765         # work, assume that -exports_file does not work either and
10766         # implicitly export all symbols.
10767         save_LDFLAGS="$LDFLAGS"
10768         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10769         cat >conftest.$ac_ext <<_ACEOF
10770 int foo(void) {}
10771 _ACEOF
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (ac_try="$ac_link"
10774 case "(($ac_try" in
10775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776   *) ac_try_echo=$ac_try;;
10777 esac
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779   (eval "$ac_link") 2>conftest.er1
10780   ac_status=$?
10781   grep -v '^ *+' conftest.er1 >conftest.err
10782   rm -f conftest.er1
10783   cat conftest.err >&5
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } && {
10786          test -z "$ac_c_werror_flag" ||
10787          test ! -s conftest.err
10788        } && test -s conftest$ac_exeext &&
10789        $as_test_x conftest$ac_exeext; then
10790   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'
10791
10792 else
10793   echo "$as_me: failed program was:" >&5
10794 sed 's/^/| /' conftest.$ac_ext >&5
10795
10796
10797 fi
10798
10799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10800       conftest$ac_exeext conftest.$ac_ext
10801         LDFLAGS="$save_LDFLAGS"
10802       else
10803         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'
10804         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'
10805       fi
10806       archive_cmds_need_lc='no'
10807       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10808       hardcode_libdir_separator=:
10809       inherit_rpath=yes
10810       link_all_deplibs=yes
10811       ;;
10812
10813     netbsd*)
10814       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10815         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10816       else
10817         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10818       fi
10819       hardcode_libdir_flag_spec='-R$libdir'
10820       hardcode_direct=yes
10821       hardcode_shlibpath_var=no
10822       ;;
10823
10824     newsos6)
10825       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826       hardcode_direct=yes
10827       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10828       hardcode_libdir_separator=:
10829       hardcode_shlibpath_var=no
10830       ;;
10831
10832     *nto* | *qnx*)
10833       ;;
10834
10835     openbsd*)
10836       if test -f /usr/libexec/ld.so; then
10837         hardcode_direct=yes
10838         hardcode_shlibpath_var=no
10839         hardcode_direct_absolute=yes
10840         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10841           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10842           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10843           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10844           export_dynamic_flag_spec='${wl}-E'
10845         else
10846           case $host_os in
10847            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10848              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10849              hardcode_libdir_flag_spec='-R$libdir'
10850              ;;
10851            *)
10852              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10853              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10854              ;;
10855           esac
10856         fi
10857       else
10858         ld_shlibs=no
10859       fi
10860       ;;
10861
10862     os2*)
10863       hardcode_libdir_flag_spec='-L$libdir'
10864       hardcode_minus_L=yes
10865       allow_undefined_flag=unsupported
10866       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'
10867       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10868       ;;
10869
10870     osf3*)
10871       if test "$GCC" = yes; then
10872         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10873         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'
10874       else
10875         allow_undefined_flag=' -expect_unresolved \*'
10876         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'
10877       fi
10878       archive_cmds_need_lc='no'
10879       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10880       hardcode_libdir_separator=:
10881       ;;
10882
10883     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10884       if test "$GCC" = yes; then
10885         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10886         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'
10887         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10888       else
10889         allow_undefined_flag=' -expect_unresolved \*'
10890         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'
10891         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~
10892         $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'
10893
10894         # Both c and cxx compiler support -rpath directly
10895         hardcode_libdir_flag_spec='-rpath $libdir'
10896       fi
10897       archive_cmds_need_lc='no'
10898       hardcode_libdir_separator=:
10899       ;;
10900
10901     solaris*)
10902       no_undefined_flag=' -z defs'
10903       if test "$GCC" = yes; then
10904         wlarc='${wl}'
10905         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10906         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10907           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10908       else
10909         case `$CC -V 2>&1` in
10910         *"Compilers 5.0"*)
10911           wlarc=''
10912           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10913           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10914           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10915           ;;
10916         *)
10917           wlarc='${wl}'
10918           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10919           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10920           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10921           ;;
10922         esac
10923       fi
10924       hardcode_libdir_flag_spec='-R$libdir'
10925       hardcode_shlibpath_var=no
10926       case $host_os in
10927       solaris2.[0-5] | solaris2.[0-5].*) ;;
10928       *)
10929         # The compiler driver will combine and reorder linker options,
10930         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10931         # but is careful enough not to reorder.
10932         # Supported since Solaris 2.6 (maybe 2.5.1?)
10933         if test "$GCC" = yes; then
10934           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10935         else
10936           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10937         fi
10938         ;;
10939       esac
10940       link_all_deplibs=yes
10941       ;;
10942
10943     sunos4*)
10944       if test "x$host_vendor" = xsequent; then
10945         # Use $CC to link under sequent, because it throws in some extra .o
10946         # files that make .init and .fini sections work.
10947         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10948       else
10949         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10950       fi
10951       hardcode_libdir_flag_spec='-L$libdir'
10952       hardcode_direct=yes
10953       hardcode_minus_L=yes
10954       hardcode_shlibpath_var=no
10955       ;;
10956
10957     sysv4)
10958       case $host_vendor in
10959         sni)
10960           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10961           hardcode_direct=yes # is this really true???
10962         ;;
10963         siemens)
10964           ## LD is ld it makes a PLAMLIB
10965           ## CC just makes a GrossModule.
10966           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10967           reload_cmds='$CC -r -o $output$reload_objs'
10968           hardcode_direct=no
10969         ;;
10970         motorola)
10971           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10972           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10973         ;;
10974       esac
10975       runpath_var='LD_RUN_PATH'
10976       hardcode_shlibpath_var=no
10977       ;;
10978
10979     sysv4.3*)
10980       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981       hardcode_shlibpath_var=no
10982       export_dynamic_flag_spec='-Bexport'
10983       ;;
10984
10985     sysv4*MP*)
10986       if test -d /usr/nec; then
10987         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988         hardcode_shlibpath_var=no
10989         runpath_var=LD_RUN_PATH
10990         hardcode_runpath_var=yes
10991         ld_shlibs=yes
10992       fi
10993       ;;
10994
10995     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10996       no_undefined_flag='${wl}-z,text'
10997       archive_cmds_need_lc=no
10998       hardcode_shlibpath_var=no
10999       runpath_var='LD_RUN_PATH'
11000
11001       if test "$GCC" = yes; then
11002         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004       else
11005         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007       fi
11008       ;;
11009
11010     sysv5* | sco3.2v5* | sco5v6*)
11011       # Note: We can NOT use -z defs as we might desire, because we do not
11012       # link with -lc, and that would cause any symbols used from libc to
11013       # always be unresolved, which means just about no library would
11014       # ever link correctly.  If we're not using GNU ld we use -z text
11015       # though, which does catch some bad symbols but isn't as heavy-handed
11016       # as -z defs.
11017       no_undefined_flag='${wl}-z,text'
11018       allow_undefined_flag='${wl}-z,nodefs'
11019       archive_cmds_need_lc=no
11020       hardcode_shlibpath_var=no
11021       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11022       hardcode_libdir_separator=':'
11023       link_all_deplibs=yes
11024       export_dynamic_flag_spec='${wl}-Bexport'
11025       runpath_var='LD_RUN_PATH'
11026
11027       if test "$GCC" = yes; then
11028         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030       else
11031         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033       fi
11034       ;;
11035
11036     uts4*)
11037       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11038       hardcode_libdir_flag_spec='-L$libdir'
11039       hardcode_shlibpath_var=no
11040       ;;
11041
11042     *)
11043       ld_shlibs=no
11044       ;;
11045     esac
11046
11047     if test x$host_vendor = xsni; then
11048       case $host in
11049       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11050         export_dynamic_flag_spec='${wl}-Blargedynsym'
11051         ;;
11052       esac
11053     fi
11054   fi
11055
11056 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11057 echo "${ECHO_T}$ld_shlibs" >&6; }
11058 test "$ld_shlibs" = no && can_build_shared=no
11059
11060 with_gnu_ld=$with_gnu_ld
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076 #
11077 # Do we need to explicitly link libc?
11078 #
11079 case "x$archive_cmds_need_lc" in
11080 x|xyes)
11081   # Assume -lc should be added
11082   archive_cmds_need_lc=yes
11083
11084   if test "$enable_shared" = yes && test "$GCC" = yes; then
11085     case $archive_cmds in
11086     *'~'*)
11087       # FIXME: we may have to deal with multi-command sequences.
11088       ;;
11089     '$CC '*)
11090       # Test whether the compiler implicitly links with -lc since on some
11091       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11092       # to ld, don't add -lc before -lgcc.
11093       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11094 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11095       $RM conftest*
11096       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11097
11098       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11099   (eval $ac_compile) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); } 2>conftest.err; then
11103         soname=conftest
11104         lib=conftest
11105         libobjs=conftest.$ac_objext
11106         deplibs=
11107         wl=$lt_prog_compiler_wl
11108         pic_flag=$lt_prog_compiler_pic
11109         compiler_flags=-v
11110         linker_flags=-v
11111         verstring=
11112         output_objdir=.
11113         libname=conftest
11114         lt_save_allow_undefined_flag=$allow_undefined_flag
11115         allow_undefined_flag=
11116         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11117   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11118   ac_status=$?
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); }
11121         then
11122           archive_cmds_need_lc=no
11123         else
11124           archive_cmds_need_lc=yes
11125         fi
11126         allow_undefined_flag=$lt_save_allow_undefined_flag
11127       else
11128         cat conftest.err 1>&5
11129       fi
11130       $RM conftest*
11131       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11132 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11133       ;;
11134     esac
11135   fi
11136   ;;
11137 esac
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11296 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11297
11298 if test "$GCC" = yes; then
11299   case $host_os in
11300     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11301     *) lt_awk_arg="/^libraries:/" ;;
11302   esac
11303   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11304   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11305     # if the path contains ";" then we assume it to be the separator
11306     # otherwise default to the standard path separator (i.e. ":") - it is
11307     # assumed that no part of a normal pathname contains ";" but that should
11308     # okay in the real world where ";" in dirpaths is itself problematic.
11309     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11310   else
11311     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11312   fi
11313   # Ok, now we have the path, separated by spaces, we can step through it
11314   # and add multilib dir if necessary.
11315   lt_tmp_lt_search_path_spec=
11316   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11317   for lt_sys_path in $lt_search_path_spec; do
11318     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11319       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11320     else
11321       test -d "$lt_sys_path" && \
11322         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11323     fi
11324   done
11325   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11326 BEGIN {RS=" "; FS="/|\n";} {
11327   lt_foo="";
11328   lt_count=0;
11329   for (lt_i = NF; lt_i > 0; lt_i--) {
11330     if ($lt_i != "" && $lt_i != ".") {
11331       if ($lt_i == "..") {
11332         lt_count++;
11333       } else {
11334         if (lt_count == 0) {
11335           lt_foo="/" $lt_i lt_foo;
11336         } else {
11337           lt_count--;
11338         }
11339       }
11340     }
11341   }
11342   if (lt_foo != "") { lt_freq[lt_foo]++; }
11343   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11344 }'`
11345   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11346 else
11347   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11348 fi
11349 library_names_spec=
11350 libname_spec='lib$name'
11351 soname_spec=
11352 shrext_cmds=".so"
11353 postinstall_cmds=
11354 postuninstall_cmds=
11355 finish_cmds=
11356 finish_eval=
11357 shlibpath_var=
11358 shlibpath_overrides_runpath=unknown
11359 version_type=none
11360 dynamic_linker="$host_os ld.so"
11361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11362 need_lib_prefix=unknown
11363 hardcode_into_libs=no
11364
11365 # when you set need_version to no, make sure it does not cause -set_version
11366 # flags to be left without arguments
11367 need_version=unknown
11368
11369 case $host_os in
11370 aix3*)
11371   version_type=linux
11372   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11373   shlibpath_var=LIBPATH
11374
11375   # AIX 3 has no versioning support, so we append a major version to the name.
11376   soname_spec='${libname}${release}${shared_ext}$major'
11377   ;;
11378
11379 aix[4-9]*)
11380   version_type=linux
11381   need_lib_prefix=no
11382   need_version=no
11383   hardcode_into_libs=yes
11384   if test "$host_cpu" = ia64; then
11385     # AIX 5 supports IA64
11386     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11387     shlibpath_var=LD_LIBRARY_PATH
11388   else
11389     # With GCC up to 2.95.x, collect2 would create an import file
11390     # for dependence libraries.  The import file would start with
11391     # the line `#! .'.  This would cause the generated library to
11392     # depend on `.', always an invalid library.  This was fixed in
11393     # development snapshots of GCC prior to 3.0.
11394     case $host_os in
11395       aix4 | aix4.[01] | aix4.[01].*)
11396       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11397            echo ' yes '
11398            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11399         :
11400       else
11401         can_build_shared=no
11402       fi
11403       ;;
11404     esac
11405     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11406     # soname into executable. Probably we can add versioning support to
11407     # collect2, so additional links can be useful in future.
11408     if test "$aix_use_runtimelinking" = yes; then
11409       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11410       # instead of lib<name>.a to let people know that these are not
11411       # typical AIX shared libraries.
11412       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11413     else
11414       # We preserve .a as extension for shared libraries through AIX4.2
11415       # and later when we are not doing run time linking.
11416       library_names_spec='${libname}${release}.a $libname.a'
11417       soname_spec='${libname}${release}${shared_ext}$major'
11418     fi
11419     shlibpath_var=LIBPATH
11420   fi
11421   ;;
11422
11423 amigaos*)
11424   case $host_cpu in
11425   powerpc)
11426     # Since July 2007 AmigaOS4 officially supports .so libraries.
11427     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11429     ;;
11430   m68k)
11431     library_names_spec='$libname.ixlibrary $libname.a'
11432     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11433     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'
11434     ;;
11435   esac
11436   ;;
11437
11438 beos*)
11439   library_names_spec='${libname}${shared_ext}'
11440   dynamic_linker="$host_os ld.so"
11441   shlibpath_var=LIBRARY_PATH
11442   ;;
11443
11444 bsdi[45]*)
11445   version_type=linux
11446   need_version=no
11447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448   soname_spec='${libname}${release}${shared_ext}$major'
11449   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11450   shlibpath_var=LD_LIBRARY_PATH
11451   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11452   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11453   # the default ld.so.conf also contains /usr/contrib/lib and
11454   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11455   # libtool to hard-code these into programs
11456   ;;
11457
11458 cygwin* | mingw* | pw32* | cegcc*)
11459   version_type=windows
11460   shrext_cmds=".dll"
11461   need_version=no
11462   need_lib_prefix=no
11463
11464   case $GCC,$host_os in
11465   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11466     library_names_spec='$libname.dll.a'
11467     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11468     postinstall_cmds='base_file=`basename \${file}`~
11469       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11470       dldir=$destdir/`dirname \$dlpath`~
11471       test -d \$dldir || mkdir -p \$dldir~
11472       $install_prog $dir/$dlname \$dldir/$dlname~
11473       chmod a+x \$dldir/$dlname~
11474       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11475         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11476       fi'
11477     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11478       dlpath=$dir/\$dldll~
11479        $RM \$dlpath'
11480     shlibpath_overrides_runpath=yes
11481
11482     case $host_os in
11483     cygwin*)
11484       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11485       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11486       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11487       ;;
11488     mingw* | cegcc*)
11489       # MinGW DLLs use traditional 'lib' prefix
11490       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11491       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11492       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11493         # It is most probably a Windows format PATH printed by
11494         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11495         # path with ; separators, and with drive letters. We can handle the
11496         # drive letters (cygwin fileutils understands them), so leave them,
11497         # especially as we might pass files found there to a mingw objdump,
11498         # which wouldn't understand a cygwinified path. Ahh.
11499         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11500       else
11501         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11502       fi
11503       ;;
11504     pw32*)
11505       # pw32 DLLs use 'pw' prefix rather than 'lib'
11506       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11507       ;;
11508     esac
11509     ;;
11510
11511   *)
11512     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11513     ;;
11514   esac
11515   dynamic_linker='Win32 ld.exe'
11516   # FIXME: first we should search . and the directory the executable is in
11517   shlibpath_var=PATH
11518   ;;
11519
11520 darwin* | rhapsody*)
11521   dynamic_linker="$host_os dyld"
11522   version_type=darwin
11523   need_lib_prefix=no
11524   need_version=no
11525   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11526   soname_spec='${libname}${release}${major}$shared_ext'
11527   shlibpath_overrides_runpath=yes
11528   shlibpath_var=DYLD_LIBRARY_PATH
11529   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11530
11531   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11532   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11533   ;;
11534
11535 dgux*)
11536   version_type=linux
11537   need_lib_prefix=no
11538   need_version=no
11539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11540   soname_spec='${libname}${release}${shared_ext}$major'
11541   shlibpath_var=LD_LIBRARY_PATH
11542   ;;
11543
11544 freebsd1*)
11545   dynamic_linker=no
11546   ;;
11547
11548 freebsd* | dragonfly*)
11549   # DragonFly does not have aout.  When/if they implement a new
11550   # versioning mechanism, adjust this.
11551   if test -x /usr/bin/objformat; then
11552     objformat=`/usr/bin/objformat`
11553   else
11554     case $host_os in
11555     freebsd[123]*) objformat=aout ;;
11556     *) objformat=elf ;;
11557     esac
11558   fi
11559   version_type=freebsd-$objformat
11560   case $version_type in
11561     freebsd-elf*)
11562       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11563       need_version=no
11564       need_lib_prefix=no
11565       ;;
11566     freebsd-*)
11567       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11568       need_version=yes
11569       ;;
11570   esac
11571   shlibpath_var=LD_LIBRARY_PATH
11572   case $host_os in
11573   freebsd2*)
11574     shlibpath_overrides_runpath=yes
11575     ;;
11576   freebsd3.[01]* | freebsdelf3.[01]*)
11577     shlibpath_overrides_runpath=yes
11578     hardcode_into_libs=yes
11579     ;;
11580   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11581   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11582     shlibpath_overrides_runpath=no
11583     hardcode_into_libs=yes
11584     ;;
11585   *) # from 4.6 on, and DragonFly
11586     shlibpath_overrides_runpath=yes
11587     hardcode_into_libs=yes
11588     ;;
11589   esac
11590   ;;
11591
11592 gnu*)
11593   version_type=linux
11594   need_lib_prefix=no
11595   need_version=no
11596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11597   soname_spec='${libname}${release}${shared_ext}$major'
11598   shlibpath_var=LD_LIBRARY_PATH
11599   hardcode_into_libs=yes
11600   ;;
11601
11602 hpux9* | hpux10* | hpux11*)
11603   # Give a soname corresponding to the major version so that dld.sl refuses to
11604   # link against other versions.
11605   version_type=sunos
11606   need_lib_prefix=no
11607   need_version=no
11608   case $host_cpu in
11609   ia64*)
11610     shrext_cmds='.so'
11611     hardcode_into_libs=yes
11612     dynamic_linker="$host_os dld.so"
11613     shlibpath_var=LD_LIBRARY_PATH
11614     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616     soname_spec='${libname}${release}${shared_ext}$major'
11617     if test "X$HPUX_IA64_MODE" = X32; then
11618       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11619     else
11620       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11621     fi
11622     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11623     ;;
11624   hppa*64*)
11625     shrext_cmds='.sl'
11626     hardcode_into_libs=yes
11627     dynamic_linker="$host_os dld.sl"
11628     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11629     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11630     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631     soname_spec='${libname}${release}${shared_ext}$major'
11632     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11633     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11634     ;;
11635   *)
11636     shrext_cmds='.sl'
11637     dynamic_linker="$host_os dld.sl"
11638     shlibpath_var=SHLIB_PATH
11639     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641     soname_spec='${libname}${release}${shared_ext}$major'
11642     ;;
11643   esac
11644   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11645   postinstall_cmds='chmod 555 $lib'
11646   ;;
11647
11648 interix[3-9]*)
11649   version_type=linux
11650   need_lib_prefix=no
11651   need_version=no
11652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11653   soname_spec='${libname}${release}${shared_ext}$major'
11654   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11655   shlibpath_var=LD_LIBRARY_PATH
11656   shlibpath_overrides_runpath=no
11657   hardcode_into_libs=yes
11658   ;;
11659
11660 irix5* | irix6* | nonstopux*)
11661   case $host_os in
11662     nonstopux*) version_type=nonstopux ;;
11663     *)
11664         if test "$lt_cv_prog_gnu_ld" = yes; then
11665                 version_type=linux
11666         else
11667                 version_type=irix
11668         fi ;;
11669   esac
11670   need_lib_prefix=no
11671   need_version=no
11672   soname_spec='${libname}${release}${shared_ext}$major'
11673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11674   case $host_os in
11675   irix5* | nonstopux*)
11676     libsuff= shlibsuff=
11677     ;;
11678   *)
11679     case $LD in # libtool.m4 will add one of these switches to LD
11680     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11681       libsuff= shlibsuff= libmagic=32-bit;;
11682     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11683       libsuff=32 shlibsuff=N32 libmagic=N32;;
11684     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11685       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11686     *) libsuff= shlibsuff= libmagic=never-match;;
11687     esac
11688     ;;
11689   esac
11690   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11691   shlibpath_overrides_runpath=no
11692   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11693   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11694   hardcode_into_libs=yes
11695   ;;
11696
11697 # No shared lib support for Linux oldld, aout, or coff.
11698 linux*oldld* | linux*aout* | linux*coff*)
11699   dynamic_linker=no
11700   ;;
11701
11702 # This must be Linux ELF.
11703 linux* | k*bsd*-gnu)
11704   version_type=linux
11705   need_lib_prefix=no
11706   need_version=no
11707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708   soname_spec='${libname}${release}${shared_ext}$major'
11709   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11710   shlibpath_var=LD_LIBRARY_PATH
11711   shlibpath_overrides_runpath=no
11712   # Some binutils ld are patched to set DT_RUNPATH
11713   save_LDFLAGS=$LDFLAGS
11714   save_libdir=$libdir
11715   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11716        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11717   cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h.  */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h.  */
11723
11724 int
11725 main ()
11726 {
11727
11728   ;
11729   return 0;
11730 }
11731 _ACEOF
11732 rm -f conftest.$ac_objext conftest$ac_exeext
11733 if { (ac_try="$ac_link"
11734 case "(($ac_try" in
11735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736   *) ac_try_echo=$ac_try;;
11737 esac
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739   (eval "$ac_link") 2>conftest.er1
11740   ac_status=$?
11741   grep -v '^ *+' conftest.er1 >conftest.err
11742   rm -f conftest.er1
11743   cat conftest.err >&5
11744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745   (exit $ac_status); } && {
11746          test -z "$ac_c_werror_flag" ||
11747          test ! -s conftest.err
11748        } && test -s conftest$ac_exeext &&
11749        $as_test_x conftest$ac_exeext; then
11750   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11751   shlibpath_overrides_runpath=yes
11752 fi
11753
11754 else
11755   echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11757
11758
11759 fi
11760
11761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11762       conftest$ac_exeext conftest.$ac_ext
11763   LDFLAGS=$save_LDFLAGS
11764   libdir=$save_libdir
11765
11766   # This implies no fast_install, which is unacceptable.
11767   # Some rework will be needed to allow for fast_install
11768   # before this can be enabled.
11769   hardcode_into_libs=yes
11770
11771   # Append ld.so.conf contents to the search path
11772   if test -f /etc/ld.so.conf; then
11773     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' ' '`
11774     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11775   fi
11776
11777   # We used to test for /lib/ld.so.1 and disable shared libraries on
11778   # powerpc, because MkLinux only supported shared libraries with the
11779   # GNU dynamic linker.  Since this was broken with cross compilers,
11780   # most powerpc-linux boxes support dynamic linking these days and
11781   # people can always --disable-shared, the test was removed, and we
11782   # assume the GNU/Linux dynamic linker is in use.
11783   dynamic_linker='GNU/Linux ld.so'
11784   ;;
11785
11786 netbsd*)
11787   version_type=sunos
11788   need_lib_prefix=no
11789   need_version=no
11790   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11791     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11792     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11793     dynamic_linker='NetBSD (a.out) ld.so'
11794   else
11795     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11796     soname_spec='${libname}${release}${shared_ext}$major'
11797     dynamic_linker='NetBSD ld.elf_so'
11798   fi
11799   shlibpath_var=LD_LIBRARY_PATH
11800   shlibpath_overrides_runpath=yes
11801   hardcode_into_libs=yes
11802   ;;
11803
11804 newsos6)
11805   version_type=linux
11806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807   shlibpath_var=LD_LIBRARY_PATH
11808   shlibpath_overrides_runpath=yes
11809   ;;
11810
11811 *nto* | *qnx*)
11812   version_type=qnx
11813   need_lib_prefix=no
11814   need_version=no
11815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816   soname_spec='${libname}${release}${shared_ext}$major'
11817   shlibpath_var=LD_LIBRARY_PATH
11818   shlibpath_overrides_runpath=no
11819   hardcode_into_libs=yes
11820   dynamic_linker='ldqnx.so'
11821   ;;
11822
11823 openbsd*)
11824   version_type=sunos
11825   sys_lib_dlsearch_path_spec="/usr/lib"
11826   need_lib_prefix=no
11827   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11828   case $host_os in
11829     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11830     *)                          need_version=no  ;;
11831   esac
11832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11833   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11834   shlibpath_var=LD_LIBRARY_PATH
11835   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11836     case $host_os in
11837       openbsd2.[89] | openbsd2.[89].*)
11838         shlibpath_overrides_runpath=no
11839         ;;
11840       *)
11841         shlibpath_overrides_runpath=yes
11842         ;;
11843       esac
11844   else
11845     shlibpath_overrides_runpath=yes
11846   fi
11847   ;;
11848
11849 os2*)
11850   libname_spec='$name'
11851   shrext_cmds=".dll"
11852   need_lib_prefix=no
11853   library_names_spec='$libname${shared_ext} $libname.a'
11854   dynamic_linker='OS/2 ld.exe'
11855   shlibpath_var=LIBPATH
11856   ;;
11857
11858 osf3* | osf4* | osf5*)
11859   version_type=osf
11860   need_lib_prefix=no
11861   need_version=no
11862   soname_spec='${libname}${release}${shared_ext}$major'
11863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11864   shlibpath_var=LD_LIBRARY_PATH
11865   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11866   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11867   ;;
11868
11869 rdos*)
11870   dynamic_linker=no
11871   ;;
11872
11873 solaris*)
11874   version_type=linux
11875   need_lib_prefix=no
11876   need_version=no
11877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878   soname_spec='${libname}${release}${shared_ext}$major'
11879   shlibpath_var=LD_LIBRARY_PATH
11880   shlibpath_overrides_runpath=yes
11881   hardcode_into_libs=yes
11882   # ldd complains unless libraries are executable
11883   postinstall_cmds='chmod +x $lib'
11884   ;;
11885
11886 sunos4*)
11887   version_type=sunos
11888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11889   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11890   shlibpath_var=LD_LIBRARY_PATH
11891   shlibpath_overrides_runpath=yes
11892   if test "$with_gnu_ld" = yes; then
11893     need_lib_prefix=no
11894   fi
11895   need_version=yes
11896   ;;
11897
11898 sysv4 | sysv4.3*)
11899   version_type=linux
11900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11901   soname_spec='${libname}${release}${shared_ext}$major'
11902   shlibpath_var=LD_LIBRARY_PATH
11903   case $host_vendor in
11904     sni)
11905       shlibpath_overrides_runpath=no
11906       need_lib_prefix=no
11907       runpath_var=LD_RUN_PATH
11908       ;;
11909     siemens)
11910       need_lib_prefix=no
11911       ;;
11912     motorola)
11913       need_lib_prefix=no
11914       need_version=no
11915       shlibpath_overrides_runpath=no
11916       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11917       ;;
11918   esac
11919   ;;
11920
11921 sysv4*MP*)
11922   if test -d /usr/nec ;then
11923     version_type=linux
11924     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11925     soname_spec='$libname${shared_ext}.$major'
11926     shlibpath_var=LD_LIBRARY_PATH
11927   fi
11928   ;;
11929
11930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11931   version_type=freebsd-elf
11932   need_lib_prefix=no
11933   need_version=no
11934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11935   soname_spec='${libname}${release}${shared_ext}$major'
11936   shlibpath_var=LD_LIBRARY_PATH
11937   shlibpath_overrides_runpath=yes
11938   hardcode_into_libs=yes
11939   if test "$with_gnu_ld" = yes; then
11940     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11941   else
11942     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11943     case $host_os in
11944       sco3.2v5*)
11945         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11946         ;;
11947     esac
11948   fi
11949   sys_lib_dlsearch_path_spec='/usr/lib'
11950   ;;
11951
11952 tpf*)
11953   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11954   version_type=linux
11955   need_lib_prefix=no
11956   need_version=no
11957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11958   shlibpath_var=LD_LIBRARY_PATH
11959   shlibpath_overrides_runpath=no
11960   hardcode_into_libs=yes
11961   ;;
11962
11963 uts4*)
11964   version_type=linux
11965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11966   soname_spec='${libname}${release}${shared_ext}$major'
11967   shlibpath_var=LD_LIBRARY_PATH
11968   ;;
11969
11970 *)
11971   dynamic_linker=no
11972   ;;
11973 esac
11974 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11975 echo "${ECHO_T}$dynamic_linker" >&6; }
11976 test "$dynamic_linker" = no && can_build_shared=no
11977
11978 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11979 if test "$GCC" = yes; then
11980   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11981 fi
11982
11983 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11984   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11985 fi
11986 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11987   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11988 fi
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12078 hardcode_action=
12079 if test -n "$hardcode_libdir_flag_spec" ||
12080    test -n "$runpath_var" ||
12081    test "X$hardcode_automatic" = "Xyes" ; then
12082
12083   # We can hardcode non-existent directories.
12084   if test "$hardcode_direct" != no &&
12085      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12086      # have to relink, otherwise we might link with an installed library
12087      # when we should be linking with a yet-to-be-installed one
12088      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12089      test "$hardcode_minus_L" != no; then
12090     # Linking always hardcodes the temporary library directory.
12091     hardcode_action=relink
12092   else
12093     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12094     hardcode_action=immediate
12095   fi
12096 else
12097   # We cannot hardcode anything, or else we can only hardcode existing
12098   # directories.
12099   hardcode_action=unsupported
12100 fi
12101 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12102 echo "${ECHO_T}$hardcode_action" >&6; }
12103
12104 if test "$hardcode_action" = relink ||
12105    test "$inherit_rpath" = yes; then
12106   # Fast installation is not supported
12107   enable_fast_install=no
12108 elif test "$shlibpath_overrides_runpath" = yes ||
12109      test "$enable_shared" = no; then
12110   # Fast installation is not necessary
12111   enable_fast_install=needless
12112 fi
12113
12114
12115
12116
12117
12118
12119   if test "x$enable_dlopen" != xyes; then
12120   enable_dlopen=unknown
12121   enable_dlopen_self=unknown
12122   enable_dlopen_self_static=unknown
12123 else
12124   lt_cv_dlopen=no
12125   lt_cv_dlopen_libs=
12126
12127   case $host_os in
12128   beos*)
12129     lt_cv_dlopen="load_add_on"
12130     lt_cv_dlopen_libs=
12131     lt_cv_dlopen_self=yes
12132     ;;
12133
12134   mingw* | pw32* | cegcc*)
12135     lt_cv_dlopen="LoadLibrary"
12136     lt_cv_dlopen_libs=
12137     ;;
12138
12139   cygwin*)
12140     lt_cv_dlopen="dlopen"
12141     lt_cv_dlopen_libs=
12142     ;;
12143
12144   darwin*)
12145   # if libdl is installed we need to link against it
12146     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12147 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12148 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12149   echo $ECHO_N "(cached) $ECHO_C" >&6
12150 else
12151   ac_check_lib_save_LIBS=$LIBS
12152 LIBS="-ldl  $LIBS"
12153 cat >conftest.$ac_ext <<_ACEOF
12154 /* confdefs.h.  */
12155 _ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h.  */
12159
12160 /* Override any GCC internal prototype to avoid an error.
12161    Use char because int might match the return type of a GCC
12162    builtin and then its argument prototype would still apply.  */
12163 #ifdef __cplusplus
12164 extern "C"
12165 #endif
12166 char dlopen ();
12167 int
12168 main ()
12169 {
12170 return dlopen ();
12171   ;
12172   return 0;
12173 }
12174 _ACEOF
12175 rm -f conftest.$ac_objext conftest$ac_exeext
12176 if { (ac_try="$ac_link"
12177 case "(($ac_try" in
12178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179   *) ac_try_echo=$ac_try;;
12180 esac
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182   (eval "$ac_link") 2>conftest.er1
12183   ac_status=$?
12184   grep -v '^ *+' conftest.er1 >conftest.err
12185   rm -f conftest.er1
12186   cat conftest.err >&5
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); } && {
12189          test -z "$ac_c_werror_flag" ||
12190          test ! -s conftest.err
12191        } && test -s conftest$ac_exeext &&
12192        $as_test_x conftest$ac_exeext; then
12193   ac_cv_lib_dl_dlopen=yes
12194 else
12195   echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12197
12198         ac_cv_lib_dl_dlopen=no
12199 fi
12200
12201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12202       conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12204 fi
12205 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12206 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12207 if test $ac_cv_lib_dl_dlopen = yes; then
12208   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12209 else
12210
12211     lt_cv_dlopen="dyld"
12212     lt_cv_dlopen_libs=
12213     lt_cv_dlopen_self=yes
12214
12215 fi
12216
12217     ;;
12218
12219   *)
12220     { echo "$as_me:$LINENO: checking for shl_load" >&5
12221 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12222 if test "${ac_cv_func_shl_load+set}" = set; then
12223   echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225   cat >conftest.$ac_ext <<_ACEOF
12226 /* confdefs.h.  */
12227 _ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h.  */
12231 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12233 #define shl_load innocuous_shl_load
12234
12235 /* System header to define __stub macros and hopefully few prototypes,
12236     which can conflict with char shl_load (); below.
12237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12238     <limits.h> exists even on freestanding compilers.  */
12239
12240 #ifdef __STDC__
12241 # include <limits.h>
12242 #else
12243 # include <assert.h>
12244 #endif
12245
12246 #undef shl_load
12247
12248 /* Override any GCC internal prototype to avoid an error.
12249    Use char because int might match the return type of a GCC
12250    builtin and then its argument prototype would still apply.  */
12251 #ifdef __cplusplus
12252 extern "C"
12253 #endif
12254 char shl_load ();
12255 /* The GNU C library defines this for functions which it implements
12256     to always fail with ENOSYS.  Some functions are actually named
12257     something starting with __ and the normal name is an alias.  */
12258 #if defined __stub_shl_load || defined __stub___shl_load
12259 choke me
12260 #endif
12261
12262 int
12263 main ()
12264 {
12265 return shl_load ();
12266   ;
12267   return 0;
12268 }
12269 _ACEOF
12270 rm -f conftest.$ac_objext conftest$ac_exeext
12271 if { (ac_try="$ac_link"
12272 case "(($ac_try" in
12273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274   *) ac_try_echo=$ac_try;;
12275 esac
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277   (eval "$ac_link") 2>conftest.er1
12278   ac_status=$?
12279   grep -v '^ *+' conftest.er1 >conftest.err
12280   rm -f conftest.er1
12281   cat conftest.err >&5
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); } && {
12284          test -z "$ac_c_werror_flag" ||
12285          test ! -s conftest.err
12286        } && test -s conftest$ac_exeext &&
12287        $as_test_x conftest$ac_exeext; then
12288   ac_cv_func_shl_load=yes
12289 else
12290   echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12292
12293         ac_cv_func_shl_load=no
12294 fi
12295
12296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12297       conftest$ac_exeext conftest.$ac_ext
12298 fi
12299 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12300 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12301 if test $ac_cv_func_shl_load = yes; then
12302   lt_cv_dlopen="shl_load"
12303 else
12304   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12305 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12306 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12307   echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309   ac_check_lib_save_LIBS=$LIBS
12310 LIBS="-ldld  $LIBS"
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h.  */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h.  */
12317
12318 /* Override any GCC internal prototype to avoid an error.
12319    Use char because int might match the return type of a GCC
12320    builtin and then its argument prototype would still apply.  */
12321 #ifdef __cplusplus
12322 extern "C"
12323 #endif
12324 char shl_load ();
12325 int
12326 main ()
12327 {
12328 return shl_load ();
12329   ;
12330   return 0;
12331 }
12332 _ACEOF
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (ac_try="$ac_link"
12335 case "(($ac_try" in
12336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337   *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340   (eval "$ac_link") 2>conftest.er1
12341   ac_status=$?
12342   grep -v '^ *+' conftest.er1 >conftest.err
12343   rm -f conftest.er1
12344   cat conftest.err >&5
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); } && {
12347          test -z "$ac_c_werror_flag" ||
12348          test ! -s conftest.err
12349        } && test -s conftest$ac_exeext &&
12350        $as_test_x conftest$ac_exeext; then
12351   ac_cv_lib_dld_shl_load=yes
12352 else
12353   echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12355
12356         ac_cv_lib_dld_shl_load=no
12357 fi
12358
12359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12360       conftest$ac_exeext conftest.$ac_ext
12361 LIBS=$ac_check_lib_save_LIBS
12362 fi
12363 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12364 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12365 if test $ac_cv_lib_dld_shl_load = yes; then
12366   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12367 else
12368   { echo "$as_me:$LINENO: checking for dlopen" >&5
12369 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12370 if test "${ac_cv_func_dlopen+set}" = set; then
12371   echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373   cat >conftest.$ac_ext <<_ACEOF
12374 /* confdefs.h.  */
12375 _ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h.  */
12379 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12381 #define dlopen innocuous_dlopen
12382
12383 /* System header to define __stub macros and hopefully few prototypes,
12384     which can conflict with char dlopen (); below.
12385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12386     <limits.h> exists even on freestanding compilers.  */
12387
12388 #ifdef __STDC__
12389 # include <limits.h>
12390 #else
12391 # include <assert.h>
12392 #endif
12393
12394 #undef dlopen
12395
12396 /* Override any GCC internal prototype to avoid an error.
12397    Use char because int might match the return type of a GCC
12398    builtin and then its argument prototype would still apply.  */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 char dlopen ();
12403 /* The GNU C library defines this for functions which it implements
12404     to always fail with ENOSYS.  Some functions are actually named
12405     something starting with __ and the normal name is an alias.  */
12406 #if defined __stub_dlopen || defined __stub___dlopen
12407 choke me
12408 #endif
12409
12410 int
12411 main ()
12412 {
12413 return dlopen ();
12414   ;
12415   return 0;
12416 }
12417 _ACEOF
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (ac_try="$ac_link"
12420 case "(($ac_try" in
12421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422   *) ac_try_echo=$ac_try;;
12423 esac
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425   (eval "$ac_link") 2>conftest.er1
12426   ac_status=$?
12427   grep -v '^ *+' conftest.er1 >conftest.err
12428   rm -f conftest.er1
12429   cat conftest.err >&5
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); } && {
12432          test -z "$ac_c_werror_flag" ||
12433          test ! -s conftest.err
12434        } && test -s conftest$ac_exeext &&
12435        $as_test_x conftest$ac_exeext; then
12436   ac_cv_func_dlopen=yes
12437 else
12438   echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12440
12441         ac_cv_func_dlopen=no
12442 fi
12443
12444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12445       conftest$ac_exeext conftest.$ac_ext
12446 fi
12447 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12448 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12449 if test $ac_cv_func_dlopen = yes; then
12450   lt_cv_dlopen="dlopen"
12451 else
12452   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12453 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12454 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12455   echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457   ac_check_lib_save_LIBS=$LIBS
12458 LIBS="-ldl  $LIBS"
12459 cat >conftest.$ac_ext <<_ACEOF
12460 /* confdefs.h.  */
12461 _ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h.  */
12465
12466 /* Override any GCC internal prototype to avoid an error.
12467    Use char because int might match the return type of a GCC
12468    builtin and then its argument prototype would still apply.  */
12469 #ifdef __cplusplus
12470 extern "C"
12471 #endif
12472 char dlopen ();
12473 int
12474 main ()
12475 {
12476 return dlopen ();
12477   ;
12478   return 0;
12479 }
12480 _ACEOF
12481 rm -f conftest.$ac_objext conftest$ac_exeext
12482 if { (ac_try="$ac_link"
12483 case "(($ac_try" in
12484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485   *) ac_try_echo=$ac_try;;
12486 esac
12487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488   (eval "$ac_link") 2>conftest.er1
12489   ac_status=$?
12490   grep -v '^ *+' conftest.er1 >conftest.err
12491   rm -f conftest.er1
12492   cat conftest.err >&5
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); } && {
12495          test -z "$ac_c_werror_flag" ||
12496          test ! -s conftest.err
12497        } && test -s conftest$ac_exeext &&
12498        $as_test_x conftest$ac_exeext; then
12499   ac_cv_lib_dl_dlopen=yes
12500 else
12501   echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12503
12504         ac_cv_lib_dl_dlopen=no
12505 fi
12506
12507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12508       conftest$ac_exeext conftest.$ac_ext
12509 LIBS=$ac_check_lib_save_LIBS
12510 fi
12511 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12512 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12513 if test $ac_cv_lib_dl_dlopen = yes; then
12514   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12515 else
12516   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12517 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12518 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12519   echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521   ac_check_lib_save_LIBS=$LIBS
12522 LIBS="-lsvld  $LIBS"
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h.  */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h.  */
12529
12530 /* Override any GCC internal prototype to avoid an error.
12531    Use char because int might match the return type of a GCC
12532    builtin and then its argument prototype would still apply.  */
12533 #ifdef __cplusplus
12534 extern "C"
12535 #endif
12536 char dlopen ();
12537 int
12538 main ()
12539 {
12540 return dlopen ();
12541   ;
12542   return 0;
12543 }
12544 _ACEOF
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (ac_try="$ac_link"
12547 case "(($ac_try" in
12548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549   *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552   (eval "$ac_link") 2>conftest.er1
12553   ac_status=$?
12554   grep -v '^ *+' conftest.er1 >conftest.err
12555   rm -f conftest.er1
12556   cat conftest.err >&5
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); } && {
12559          test -z "$ac_c_werror_flag" ||
12560          test ! -s conftest.err
12561        } && test -s conftest$ac_exeext &&
12562        $as_test_x conftest$ac_exeext; then
12563   ac_cv_lib_svld_dlopen=yes
12564 else
12565   echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568         ac_cv_lib_svld_dlopen=no
12569 fi
12570
12571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12572       conftest$ac_exeext conftest.$ac_ext
12573 LIBS=$ac_check_lib_save_LIBS
12574 fi
12575 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12576 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12577 if test $ac_cv_lib_svld_dlopen = yes; then
12578   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12579 else
12580   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12581 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12582 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12583   echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585   ac_check_lib_save_LIBS=$LIBS
12586 LIBS="-ldld  $LIBS"
12587 cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593
12594 /* Override any GCC internal prototype to avoid an error.
12595    Use char because int might match the return type of a GCC
12596    builtin and then its argument prototype would still apply.  */
12597 #ifdef __cplusplus
12598 extern "C"
12599 #endif
12600 char dld_link ();
12601 int
12602 main ()
12603 {
12604 return dld_link ();
12605   ;
12606   return 0;
12607 }
12608 _ACEOF
12609 rm -f conftest.$ac_objext conftest$ac_exeext
12610 if { (ac_try="$ac_link"
12611 case "(($ac_try" in
12612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613   *) ac_try_echo=$ac_try;;
12614 esac
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616   (eval "$ac_link") 2>conftest.er1
12617   ac_status=$?
12618   grep -v '^ *+' conftest.er1 >conftest.err
12619   rm -f conftest.er1
12620   cat conftest.err >&5
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); } && {
12623          test -z "$ac_c_werror_flag" ||
12624          test ! -s conftest.err
12625        } && test -s conftest$ac_exeext &&
12626        $as_test_x conftest$ac_exeext; then
12627   ac_cv_lib_dld_dld_link=yes
12628 else
12629   echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12631
12632         ac_cv_lib_dld_dld_link=no
12633 fi
12634
12635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12636       conftest$ac_exeext conftest.$ac_ext
12637 LIBS=$ac_check_lib_save_LIBS
12638 fi
12639 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12640 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12641 if test $ac_cv_lib_dld_dld_link = yes; then
12642   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12643 fi
12644
12645
12646 fi
12647
12648
12649 fi
12650
12651
12652 fi
12653
12654
12655 fi
12656
12657
12658 fi
12659
12660     ;;
12661   esac
12662
12663   if test "x$lt_cv_dlopen" != xno; then
12664     enable_dlopen=yes
12665   else
12666     enable_dlopen=no
12667   fi
12668
12669   case $lt_cv_dlopen in
12670   dlopen)
12671     save_CPPFLAGS="$CPPFLAGS"
12672     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12673
12674     save_LDFLAGS="$LDFLAGS"
12675     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12676
12677     save_LIBS="$LIBS"
12678     LIBS="$lt_cv_dlopen_libs $LIBS"
12679
12680     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12681 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12682 if test "${lt_cv_dlopen_self+set}" = set; then
12683   echo $ECHO_N "(cached) $ECHO_C" >&6
12684 else
12685           if test "$cross_compiling" = yes; then :
12686   lt_cv_dlopen_self=cross
12687 else
12688   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12689   lt_status=$lt_dlunknown
12690   cat > conftest.$ac_ext <<_LT_EOF
12691 #line 12691 "configure"
12692 #include "confdefs.h"
12693
12694 #if HAVE_DLFCN_H
12695 #include <dlfcn.h>
12696 #endif
12697
12698 #include <stdio.h>
12699
12700 #ifdef RTLD_GLOBAL
12701 #  define LT_DLGLOBAL           RTLD_GLOBAL
12702 #else
12703 #  ifdef DL_GLOBAL
12704 #    define LT_DLGLOBAL         DL_GLOBAL
12705 #  else
12706 #    define LT_DLGLOBAL         0
12707 #  endif
12708 #endif
12709
12710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12711    find out it does not work in some platform. */
12712 #ifndef LT_DLLAZY_OR_NOW
12713 #  ifdef RTLD_LAZY
12714 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12715 #  else
12716 #    ifdef DL_LAZY
12717 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12718 #    else
12719 #      ifdef RTLD_NOW
12720 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12721 #      else
12722 #        ifdef DL_NOW
12723 #          define LT_DLLAZY_OR_NOW      DL_NOW
12724 #        else
12725 #          define LT_DLLAZY_OR_NOW      0
12726 #        endif
12727 #      endif
12728 #    endif
12729 #  endif
12730 #endif
12731
12732 void fnord() { int i=42;}
12733 int main ()
12734 {
12735   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12736   int status = $lt_dlunknown;
12737
12738   if (self)
12739     {
12740       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12741       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12742       /* dlclose (self); */
12743     }
12744   else
12745     puts (dlerror ());
12746
12747   return status;
12748 }
12749 _LT_EOF
12750   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12751   (eval $ac_link) 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12755     (./conftest; exit; ) >&5 2>/dev/null
12756     lt_status=$?
12757     case x$lt_status in
12758       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12759       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12760       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12761     esac
12762   else :
12763     # compilation failed
12764     lt_cv_dlopen_self=no
12765   fi
12766 fi
12767 rm -fr conftest*
12768
12769
12770 fi
12771 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12772 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12773
12774     if test "x$lt_cv_dlopen_self" = xyes; then
12775       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12776       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12777 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12778 if test "${lt_cv_dlopen_self_static+set}" = set; then
12779   echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781           if test "$cross_compiling" = yes; then :
12782   lt_cv_dlopen_self_static=cross
12783 else
12784   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12785   lt_status=$lt_dlunknown
12786   cat > conftest.$ac_ext <<_LT_EOF
12787 #line 12787 "configure"
12788 #include "confdefs.h"
12789
12790 #if HAVE_DLFCN_H
12791 #include <dlfcn.h>
12792 #endif
12793
12794 #include <stdio.h>
12795
12796 #ifdef RTLD_GLOBAL
12797 #  define LT_DLGLOBAL           RTLD_GLOBAL
12798 #else
12799 #  ifdef DL_GLOBAL
12800 #    define LT_DLGLOBAL         DL_GLOBAL
12801 #  else
12802 #    define LT_DLGLOBAL         0
12803 #  endif
12804 #endif
12805
12806 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12807    find out it does not work in some platform. */
12808 #ifndef LT_DLLAZY_OR_NOW
12809 #  ifdef RTLD_LAZY
12810 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12811 #  else
12812 #    ifdef DL_LAZY
12813 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12814 #    else
12815 #      ifdef RTLD_NOW
12816 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12817 #      else
12818 #        ifdef DL_NOW
12819 #          define LT_DLLAZY_OR_NOW      DL_NOW
12820 #        else
12821 #          define LT_DLLAZY_OR_NOW      0
12822 #        endif
12823 #      endif
12824 #    endif
12825 #  endif
12826 #endif
12827
12828 void fnord() { int i=42;}
12829 int main ()
12830 {
12831   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12832   int status = $lt_dlunknown;
12833
12834   if (self)
12835     {
12836       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12837       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12838       /* dlclose (self); */
12839     }
12840   else
12841     puts (dlerror ());
12842
12843   return status;
12844 }
12845 _LT_EOF
12846   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847   (eval $ac_link) 2>&5
12848   ac_status=$?
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12851     (./conftest; exit; ) >&5 2>/dev/null
12852     lt_status=$?
12853     case x$lt_status in
12854       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12855       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12856       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12857     esac
12858   else :
12859     # compilation failed
12860     lt_cv_dlopen_self_static=no
12861   fi
12862 fi
12863 rm -fr conftest*
12864
12865
12866 fi
12867 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12868 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12869     fi
12870
12871     CPPFLAGS="$save_CPPFLAGS"
12872     LDFLAGS="$save_LDFLAGS"
12873     LIBS="$save_LIBS"
12874     ;;
12875   esac
12876
12877   case $lt_cv_dlopen_self in
12878   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12879   *) enable_dlopen_self=unknown ;;
12880   esac
12881
12882   case $lt_cv_dlopen_self_static in
12883   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12884   *) enable_dlopen_self_static=unknown ;;
12885   esac
12886 fi
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904 striplib=
12905 old_striplib=
12906 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12907 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12908 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12909   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12910   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12911   { echo "$as_me:$LINENO: result: yes" >&5
12912 echo "${ECHO_T}yes" >&6; }
12913 else
12914 # FIXME - insert some real tests, host_os isn't really good enough
12915   case $host_os in
12916   darwin*)
12917     if test -n "$STRIP" ; then
12918       striplib="$STRIP -x"
12919       old_striplib="$STRIP -S"
12920       { echo "$as_me:$LINENO: result: yes" >&5
12921 echo "${ECHO_T}yes" >&6; }
12922     else
12923       { echo "$as_me:$LINENO: result: no" >&5
12924 echo "${ECHO_T}no" >&6; }
12925     fi
12926     ;;
12927   *)
12928     { echo "$as_me:$LINENO: result: no" >&5
12929 echo "${ECHO_T}no" >&6; }
12930     ;;
12931   esac
12932 fi
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945   # Report which library types will actually be built
12946   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12947 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12948   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12949 echo "${ECHO_T}$can_build_shared" >&6; }
12950
12951   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12952 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12953   test "$can_build_shared" = "no" && enable_shared=no
12954
12955   # On AIX, shared libraries and static libraries use the same namespace, and
12956   # are all built from PIC.
12957   case $host_os in
12958   aix3*)
12959     test "$enable_shared" = yes && enable_static=no
12960     if test -n "$RANLIB"; then
12961       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12962       postinstall_cmds='$RANLIB $lib'
12963     fi
12964     ;;
12965
12966   aix[4-9]*)
12967     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12968       test "$enable_shared" = yes && enable_static=no
12969     fi
12970     ;;
12971   esac
12972   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12973 echo "${ECHO_T}$enable_shared" >&6; }
12974
12975   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12976 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12977   # Make sure either enable_shared or enable_static is yes.
12978   test "$enable_shared" = yes || enable_static=yes
12979   { echo "$as_me:$LINENO: result: $enable_static" >&5
12980 echo "${ECHO_T}$enable_static" >&6; }
12981
12982
12983
12984
12985 fi
12986 ac_ext=c
12987 ac_cpp='$CPP $CPPFLAGS'
12988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12991
12992 CC="$lt_save_CC"
12993
12994
12995 ac_ext=cpp
12996 ac_cpp='$CXXCPP $CPPFLAGS'
12997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13000
13001 archive_cmds_need_lc_CXX=no
13002 allow_undefined_flag_CXX=
13003 always_export_symbols_CXX=no
13004 archive_expsym_cmds_CXX=
13005 compiler_needs_object_CXX=no
13006 export_dynamic_flag_spec_CXX=
13007 hardcode_direct_CXX=no
13008 hardcode_direct_absolute_CXX=no
13009 hardcode_libdir_flag_spec_CXX=
13010 hardcode_libdir_flag_spec_ld_CXX=
13011 hardcode_libdir_separator_CXX=
13012 hardcode_minus_L_CXX=no
13013 hardcode_shlibpath_var_CXX=unsupported
13014 hardcode_automatic_CXX=no
13015 inherit_rpath_CXX=no
13016 module_cmds_CXX=
13017 module_expsym_cmds_CXX=
13018 link_all_deplibs_CXX=unknown
13019 old_archive_cmds_CXX=$old_archive_cmds
13020 no_undefined_flag_CXX=
13021 whole_archive_flag_spec_CXX=
13022 enable_shared_with_static_runtimes_CXX=no
13023
13024 # Source file extension for C++ test sources.
13025 ac_ext=cpp
13026
13027 # Object file extension for compiled C++ test sources.
13028 objext=o
13029 objext_CXX=$objext
13030
13031 # No sense in running all these tests if we already determined that
13032 # the CXX compiler isn't working.  Some variables (like enable_shared)
13033 # are currently assumed to apply to all compilers on this platform,
13034 # and will be corrupted by setting them based on a non-working compiler.
13035 if test "$_lt_caught_CXX_error" != yes; then
13036   # Code to be used in simple compile tests
13037   lt_simple_compile_test_code="int some_variable = 0;"
13038
13039   # Code to be used in simple link tests
13040   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13041
13042   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13043
13044
13045
13046
13047
13048
13049 # If no C compiler was specified, use CC.
13050 LTCC=${LTCC-"$CC"}
13051
13052 # If no C compiler flags were specified, use CFLAGS.
13053 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13054
13055 # Allow CC to be a program name with arguments.
13056 compiler=$CC
13057
13058
13059   # save warnings/boilerplate of simple test code
13060   ac_outfile=conftest.$ac_objext
13061 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13063 _lt_compiler_boilerplate=`cat conftest.err`
13064 $RM conftest*
13065
13066   ac_outfile=conftest.$ac_objext
13067 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13069 _lt_linker_boilerplate=`cat conftest.err`
13070 $RM -r conftest*
13071
13072
13073   # Allow CC to be a program name with arguments.
13074   lt_save_CC=$CC
13075   lt_save_LD=$LD
13076   lt_save_GCC=$GCC
13077   GCC=$GXX
13078   lt_save_with_gnu_ld=$with_gnu_ld
13079   lt_save_path_LD=$lt_cv_path_LD
13080   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13081     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13082   else
13083     $as_unset lt_cv_prog_gnu_ld
13084   fi
13085   if test -n "${lt_cv_path_LDCXX+set}"; then
13086     lt_cv_path_LD=$lt_cv_path_LDCXX
13087   else
13088     $as_unset lt_cv_path_LD
13089   fi
13090   test -z "${LDCXX+set}" || LD=$LDCXX
13091   CC=${CXX-"c++"}
13092   compiler=$CC
13093   compiler_CXX=$CC
13094   for cc_temp in $compiler""; do
13095   case $cc_temp in
13096     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13097     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13098     \-*) ;;
13099     *) break;;
13100   esac
13101 done
13102 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13103
13104
13105   if test -n "$compiler"; then
13106     # We don't want -fno-exception when compiling C++ code, so set the
13107     # no_builtin_flag separately
13108     if test "$GXX" = yes; then
13109       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13110     else
13111       lt_prog_compiler_no_builtin_flag_CXX=
13112     fi
13113
13114     if test "$GXX" = yes; then
13115       # Set up default GNU C++ configuration
13116
13117
13118
13119 # Check whether --with-gnu-ld was given.
13120 if test "${with_gnu_ld+set}" = set; then
13121   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13122 else
13123   with_gnu_ld=no
13124 fi
13125
13126 ac_prog=ld
13127 if test "$GCC" = yes; then
13128   # Check if gcc -print-prog-name=ld gives a path.
13129   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13130 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13131   case $host in
13132   *-*-mingw*)
13133     # gcc leaves a trailing carriage return which upsets mingw
13134     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13135   *)
13136     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13137   esac
13138   case $ac_prog in
13139     # Accept absolute paths.
13140     [\\/]* | ?:[\\/]*)
13141       re_direlt='/[^/][^/]*/\.\./'
13142       # Canonicalize the pathname of ld
13143       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13144       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13145         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13146       done
13147       test -z "$LD" && LD="$ac_prog"
13148       ;;
13149   "")
13150     # If it fails, then pretend we aren't using GCC.
13151     ac_prog=ld
13152     ;;
13153   *)
13154     # If it is relative, then search for the first ld in PATH.
13155     with_gnu_ld=unknown
13156     ;;
13157   esac
13158 elif test "$with_gnu_ld" = yes; then
13159   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13160 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13161 else
13162   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13163 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13164 fi
13165 if test "${lt_cv_path_LD+set}" = set; then
13166   echo $ECHO_N "(cached) $ECHO_C" >&6
13167 else
13168   if test -z "$LD"; then
13169   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13170   for ac_dir in $PATH; do
13171     IFS="$lt_save_ifs"
13172     test -z "$ac_dir" && ac_dir=.
13173     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13174       lt_cv_path_LD="$ac_dir/$ac_prog"
13175       # Check to see if the program is GNU ld.  I'd rather use --version,
13176       # but apparently some variants of GNU ld only accept -v.
13177       # Break only if it was the GNU/non-GNU ld that we prefer.
13178       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13179       *GNU* | *'with BFD'*)
13180         test "$with_gnu_ld" != no && break
13181         ;;
13182       *)
13183         test "$with_gnu_ld" != yes && break
13184         ;;
13185       esac
13186     fi
13187   done
13188   IFS="$lt_save_ifs"
13189 else
13190   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13191 fi
13192 fi
13193
13194 LD="$lt_cv_path_LD"
13195 if test -n "$LD"; then
13196   { echo "$as_me:$LINENO: result: $LD" >&5
13197 echo "${ECHO_T}$LD" >&6; }
13198 else
13199   { echo "$as_me:$LINENO: result: no" >&5
13200 echo "${ECHO_T}no" >&6; }
13201 fi
13202 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13203 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13204    { (exit 1); exit 1; }; }
13205 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13206 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13207 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13208   echo $ECHO_N "(cached) $ECHO_C" >&6
13209 else
13210   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13211 case `$LD -v 2>&1 </dev/null` in
13212 *GNU* | *'with BFD'*)
13213   lt_cv_prog_gnu_ld=yes
13214   ;;
13215 *)
13216   lt_cv_prog_gnu_ld=no
13217   ;;
13218 esac
13219 fi
13220 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13221 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13222 with_gnu_ld=$lt_cv_prog_gnu_ld
13223
13224
13225
13226
13227
13228
13229
13230       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13231       # archiving commands below assume that GNU ld is being used.
13232       if test "$with_gnu_ld" = yes; then
13233         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13234         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'
13235
13236         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13237         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13238
13239         # If archive_cmds runs LD, not CC, wlarc should be empty
13240         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13241         #     investigate it a little bit more. (MM)
13242         wlarc='${wl}'
13243
13244         # ancient GNU ld didn't support --whole-archive et. al.
13245         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13246           $GREP 'no-whole-archive' > /dev/null; then
13247           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13248         else
13249           whole_archive_flag_spec_CXX=
13250         fi
13251       else
13252         with_gnu_ld=no
13253         wlarc=
13254
13255         # A generic and very simple default shared library creation
13256         # command for GNU C++ for the case where it uses the native
13257         # linker, instead of GNU ld.  If possible, this setting should
13258         # overridden to take advantage of the native linker features on
13259         # the platform it is being used on.
13260         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13261       fi
13262
13263       # Commands to make compiler produce verbose output that lists
13264       # what "hidden" libraries, object files and flags are used when
13265       # linking a shared library.
13266       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13267
13268     else
13269       GXX=no
13270       with_gnu_ld=no
13271       wlarc=
13272     fi
13273
13274     # PORTME: fill in a description of your system's C++ link characteristics
13275     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13277     ld_shlibs_CXX=yes
13278     case $host_os in
13279       aix3*)
13280         # FIXME: insert proper C++ library support
13281         ld_shlibs_CXX=no
13282         ;;
13283       aix[4-9]*)
13284         if test "$host_cpu" = ia64; then
13285           # On IA64, the linker does run time linking by default, so we don't
13286           # have to do anything special.
13287           aix_use_runtimelinking=no
13288           exp_sym_flag='-Bexport'
13289           no_entry_flag=""
13290         else
13291           aix_use_runtimelinking=no
13292
13293           # Test if we are trying to use run time linking or normal
13294           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13295           # need to do runtime linking.
13296           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13297             for ld_flag in $LDFLAGS; do
13298               case $ld_flag in
13299               *-brtl*)
13300                 aix_use_runtimelinking=yes
13301                 break
13302                 ;;
13303               esac
13304             done
13305             ;;
13306           esac
13307
13308           exp_sym_flag='-bexport'
13309           no_entry_flag='-bnoentry'
13310         fi
13311
13312         # When large executables or shared objects are built, AIX ld can
13313         # have problems creating the table of contents.  If linking a library
13314         # or program results in "error TOC overflow" add -mminimal-toc to
13315         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13316         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13317
13318         archive_cmds_CXX=''
13319         hardcode_direct_CXX=yes
13320         hardcode_direct_absolute_CXX=yes
13321         hardcode_libdir_separator_CXX=':'
13322         link_all_deplibs_CXX=yes
13323         file_list_spec_CXX='${wl}-f,'
13324
13325         if test "$GXX" = yes; then
13326           case $host_os in aix4.[012]|aix4.[012].*)
13327           # We only want to do this on AIX 4.2 and lower, the check
13328           # below for broken collect2 doesn't work under 4.3+
13329           collect2name=`${CC} -print-prog-name=collect2`
13330           if test -f "$collect2name" &&
13331              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13332           then
13333             # We have reworked collect2
13334             :
13335           else
13336             # We have old collect2
13337             hardcode_direct_CXX=unsupported
13338             # It fails to find uninstalled libraries when the uninstalled
13339             # path is not listed in the libpath.  Setting hardcode_minus_L
13340             # to unsupported forces relinking
13341             hardcode_minus_L_CXX=yes
13342             hardcode_libdir_flag_spec_CXX='-L$libdir'
13343             hardcode_libdir_separator_CXX=
13344           fi
13345           esac
13346           shared_flag='-shared'
13347           if test "$aix_use_runtimelinking" = yes; then
13348             shared_flag="$shared_flag "'${wl}-G'
13349           fi
13350         else
13351           # not using gcc
13352           if test "$host_cpu" = ia64; then
13353           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13354           # chokes on -Wl,-G. The following line is correct:
13355           shared_flag='-G'
13356           else
13357             if test "$aix_use_runtimelinking" = yes; then
13358               shared_flag='${wl}-G'
13359             else
13360               shared_flag='${wl}-bM:SRE'
13361             fi
13362           fi
13363         fi
13364
13365         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13366         # It seems that -bexpall does not export symbols beginning with
13367         # underscore (_), so it is better to generate a list of symbols to
13368         # export.
13369         always_export_symbols_CXX=yes
13370         if test "$aix_use_runtimelinking" = yes; then
13371           # Warning - without using the other runtime loading flags (-brtl),
13372           # -berok will link without error, but may produce a broken library.
13373           allow_undefined_flag_CXX='-berok'
13374           # Determine the default libpath from the value encoded in an empty
13375           # executable.
13376           cat >conftest.$ac_ext <<_ACEOF
13377 /* confdefs.h.  */
13378 _ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h.  */
13382
13383 int
13384 main ()
13385 {
13386
13387   ;
13388   return 0;
13389 }
13390 _ACEOF
13391 rm -f conftest.$ac_objext conftest$ac_exeext
13392 if { (ac_try="$ac_link"
13393 case "(($ac_try" in
13394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395   *) ac_try_echo=$ac_try;;
13396 esac
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398   (eval "$ac_link") 2>conftest.er1
13399   ac_status=$?
13400   grep -v '^ *+' conftest.er1 >conftest.err
13401   rm -f conftest.er1
13402   cat conftest.err >&5
13403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404   (exit $ac_status); } && {
13405          test -z "$ac_cxx_werror_flag" ||
13406          test ! -s conftest.err
13407        } && test -s conftest$ac_exeext &&
13408        $as_test_x conftest$ac_exeext; then
13409
13410 lt_aix_libpath_sed='
13411     /Import File Strings/,/^$/ {
13412         /^0/ {
13413             s/^0  *\(.*\)$/\1/
13414             p
13415         }
13416     }'
13417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13418 # Check for a 64-bit object if we didn't find anything.
13419 if test -z "$aix_libpath"; then
13420   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13421 fi
13422 else
13423   echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13425
13426
13427 fi
13428
13429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13430       conftest$ac_exeext conftest.$ac_ext
13431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13432
13433           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13434
13435           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"
13436         else
13437           if test "$host_cpu" = ia64; then
13438             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13439             allow_undefined_flag_CXX="-z nodefs"
13440             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"
13441           else
13442             # Determine the default libpath from the value encoded in an
13443             # empty executable.
13444             cat >conftest.$ac_ext <<_ACEOF
13445 /* confdefs.h.  */
13446 _ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h.  */
13450
13451 int
13452 main ()
13453 {
13454
13455   ;
13456   return 0;
13457 }
13458 _ACEOF
13459 rm -f conftest.$ac_objext conftest$ac_exeext
13460 if { (ac_try="$ac_link"
13461 case "(($ac_try" in
13462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463   *) ac_try_echo=$ac_try;;
13464 esac
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466   (eval "$ac_link") 2>conftest.er1
13467   ac_status=$?
13468   grep -v '^ *+' conftest.er1 >conftest.err
13469   rm -f conftest.er1
13470   cat conftest.err >&5
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); } && {
13473          test -z "$ac_cxx_werror_flag" ||
13474          test ! -s conftest.err
13475        } && test -s conftest$ac_exeext &&
13476        $as_test_x conftest$ac_exeext; then
13477
13478 lt_aix_libpath_sed='
13479     /Import File Strings/,/^$/ {
13480         /^0/ {
13481             s/^0  *\(.*\)$/\1/
13482             p
13483         }
13484     }'
13485 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13486 # Check for a 64-bit object if we didn't find anything.
13487 if test -z "$aix_libpath"; then
13488   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13489 fi
13490 else
13491   echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13493
13494
13495 fi
13496
13497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13498       conftest$ac_exeext conftest.$ac_ext
13499 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13500
13501             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13502             # Warning - without using the other run time loading flags,
13503             # -berok will link without error, but may produce a broken library.
13504             no_undefined_flag_CXX=' ${wl}-bernotok'
13505             allow_undefined_flag_CXX=' ${wl}-berok'
13506             # Exported symbols can be pulled into shared objects from archives
13507             whole_archive_flag_spec_CXX='$convenience'
13508             archive_cmds_need_lc_CXX=yes
13509             # This is similar to how AIX traditionally builds its shared
13510             # libraries.
13511             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'
13512           fi
13513         fi
13514         ;;
13515
13516       beos*)
13517         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13518           allow_undefined_flag_CXX=unsupported
13519           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13520           # support --undefined.  This deserves some investigation.  FIXME
13521           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13522         else
13523           ld_shlibs_CXX=no
13524         fi
13525         ;;
13526
13527       chorus*)
13528         case $cc_basename in
13529           *)
13530           # FIXME: insert proper C++ library support
13531           ld_shlibs_CXX=no
13532           ;;
13533         esac
13534         ;;
13535
13536       cygwin* | mingw* | pw32* | cegcc*)
13537         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13538         # as there is no search path for DLLs.
13539         hardcode_libdir_flag_spec_CXX='-L$libdir'
13540         allow_undefined_flag_CXX=unsupported
13541         always_export_symbols_CXX=no
13542         enable_shared_with_static_runtimes_CXX=yes
13543
13544         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13545           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'
13546           # If the export-symbols file already is a .def file (1st line
13547           # is EXPORTS), use it as is; otherwise, prepend...
13548           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13549             cp $export_symbols $output_objdir/$soname.def;
13550           else
13551             echo EXPORTS > $output_objdir/$soname.def;
13552             cat $export_symbols >> $output_objdir/$soname.def;
13553           fi~
13554           $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'
13555         else
13556           ld_shlibs_CXX=no
13557         fi
13558         ;;
13559       darwin* | rhapsody*)
13560
13561
13562   archive_cmds_need_lc_CXX=no
13563   hardcode_direct_CXX=no
13564   hardcode_automatic_CXX=yes
13565   hardcode_shlibpath_var_CXX=unsupported
13566   whole_archive_flag_spec_CXX=''
13567   link_all_deplibs_CXX=yes
13568   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13569   case $cc_basename in
13570      ifort*) _lt_dar_can_shared=yes ;;
13571      *) _lt_dar_can_shared=$GCC ;;
13572   esac
13573   if test "$_lt_dar_can_shared" = "yes"; then
13574     output_verbose_link_cmd=echo
13575     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}"
13576     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13577     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}"
13578     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}"
13579        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13580       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}"
13581       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}"
13582     fi
13583
13584   else
13585   ld_shlibs_CXX=no
13586   fi
13587
13588         ;;
13589
13590       dgux*)
13591         case $cc_basename in
13592           ec++*)
13593             # FIXME: insert proper C++ library support
13594             ld_shlibs_CXX=no
13595             ;;
13596           ghcx*)
13597             # Green Hills C++ Compiler
13598             # FIXME: insert proper C++ library support
13599             ld_shlibs_CXX=no
13600             ;;
13601           *)
13602             # FIXME: insert proper C++ library support
13603             ld_shlibs_CXX=no
13604             ;;
13605         esac
13606         ;;
13607
13608       freebsd[12]*)
13609         # C++ shared libraries reported to be fairly broken before
13610         # switch to ELF
13611         ld_shlibs_CXX=no
13612         ;;
13613
13614       freebsd-elf*)
13615         archive_cmds_need_lc_CXX=no
13616         ;;
13617
13618       freebsd* | dragonfly*)
13619         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13620         # conventions
13621         ld_shlibs_CXX=yes
13622         ;;
13623
13624       gnu*)
13625         ;;
13626
13627       hpux9*)
13628         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13629         hardcode_libdir_separator_CXX=:
13630         export_dynamic_flag_spec_CXX='${wl}-E'
13631         hardcode_direct_CXX=yes
13632         hardcode_minus_L_CXX=yes # Not in the search PATH,
13633                                              # but as the default
13634                                              # location of the library.
13635
13636         case $cc_basename in
13637           CC*)
13638             # FIXME: insert proper C++ library support
13639             ld_shlibs_CXX=no
13640             ;;
13641           aCC*)
13642             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'
13643             # Commands to make compiler produce verbose output that lists
13644             # what "hidden" libraries, object files and flags are used when
13645             # linking a shared library.
13646             #
13647             # There doesn't appear to be a way to prevent this compiler from
13648             # explicitly linking system object files so we need to strip them
13649             # from the output so that they don't get included in the library
13650             # dependencies.
13651             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'
13652             ;;
13653           *)
13654             if test "$GXX" = yes; then
13655               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'
13656             else
13657               # FIXME: insert proper C++ library support
13658               ld_shlibs_CXX=no
13659             fi
13660             ;;
13661         esac
13662         ;;
13663
13664       hpux10*|hpux11*)
13665         if test $with_gnu_ld = no; then
13666           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13667           hardcode_libdir_separator_CXX=:
13668
13669           case $host_cpu in
13670             hppa*64*|ia64*)
13671               ;;
13672             *)
13673               export_dynamic_flag_spec_CXX='${wl}-E'
13674               ;;
13675           esac
13676         fi
13677         case $host_cpu in
13678           hppa*64*|ia64*)
13679             hardcode_direct_CXX=no
13680             hardcode_shlibpath_var_CXX=no
13681             ;;
13682           *)
13683             hardcode_direct_CXX=yes
13684             hardcode_direct_absolute_CXX=yes
13685             hardcode_minus_L_CXX=yes # Not in the search PATH,
13686                                                  # but as the default
13687                                                  # location of the library.
13688             ;;
13689         esac
13690
13691         case $cc_basename in
13692           CC*)
13693             # FIXME: insert proper C++ library support
13694             ld_shlibs_CXX=no
13695             ;;
13696           aCC*)
13697             case $host_cpu in
13698               hppa*64*)
13699                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13700                 ;;
13701               ia64*)
13702                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13703                 ;;
13704               *)
13705                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13706                 ;;
13707             esac
13708             # Commands to make compiler produce verbose output that lists
13709             # what "hidden" libraries, object files and flags are used when
13710             # linking a shared library.
13711             #
13712             # There doesn't appear to be a way to prevent this compiler from
13713             # explicitly linking system object files so we need to strip them
13714             # from the output so that they don't get included in the library
13715             # dependencies.
13716             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'
13717             ;;
13718           *)
13719             if test "$GXX" = yes; then
13720               if test $with_gnu_ld = no; then
13721                 case $host_cpu in
13722                   hppa*64*)
13723                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13724                     ;;
13725                   ia64*)
13726                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13727                     ;;
13728                   *)
13729                     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'
13730                     ;;
13731                 esac
13732               fi
13733             else
13734               # FIXME: insert proper C++ library support
13735               ld_shlibs_CXX=no
13736             fi
13737             ;;
13738         esac
13739         ;;
13740
13741       interix[3-9]*)
13742         hardcode_direct_CXX=no
13743         hardcode_shlibpath_var_CXX=no
13744         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13745         export_dynamic_flag_spec_CXX='${wl}-E'
13746         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13747         # Instead, shared libraries are loaded at an image base (0x10000000 by
13748         # default) and relocated if they conflict, which is a slow very memory
13749         # consuming and fragmenting process.  To avoid this, we pick a random,
13750         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13751         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13752         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'
13753         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'
13754         ;;
13755       irix5* | irix6*)
13756         case $cc_basename in
13757           CC*)
13758             # SGI C++
13759             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'
13760
13761             # Archives containing C++ object files must be created using
13762             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13763             # necessary to make sure instantiated templates are included
13764             # in the archive.
13765             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13766             ;;
13767           *)
13768             if test "$GXX" = yes; then
13769               if test "$with_gnu_ld" = no; then
13770                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13771               else
13772                 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'
13773               fi
13774             fi
13775             link_all_deplibs_CXX=yes
13776             ;;
13777         esac
13778         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13779         hardcode_libdir_separator_CXX=:
13780         inherit_rpath_CXX=yes
13781         ;;
13782
13783       linux* | k*bsd*-gnu)
13784         case $cc_basename in
13785           KCC*)
13786             # Kuck and Associates, Inc. (KAI) C++ Compiler
13787
13788             # KCC will only create a shared library if the output file
13789             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13790             # to its proper name (with version) after linking.
13791             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'
13792             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'
13793             # Commands to make compiler produce verbose output that lists
13794             # what "hidden" libraries, object files and flags are used when
13795             # linking a shared library.
13796             #
13797             # There doesn't appear to be a way to prevent this compiler from
13798             # explicitly linking system object files so we need to strip them
13799             # from the output so that they don't get included in the library
13800             # dependencies.
13801             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'
13802
13803             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13804             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13805
13806             # Archives containing C++ object files must be created using
13807             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13808             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13809             ;;
13810           icpc* | ecpc* )
13811             # Intel C++
13812             with_gnu_ld=yes
13813             # version 8.0 and above of icpc choke on multiply defined symbols
13814             # if we add $predep_objects and $postdep_objects, however 7.1 and
13815             # earlier do not add the objects themselves.
13816             case `$CC -V 2>&1` in
13817               *"Version 7."*)
13818                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13819                 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'
13820                 ;;
13821               *)  # Version 8.0 or newer
13822                 tmp_idyn=
13823                 case $host_cpu in
13824                   ia64*) tmp_idyn=' -i_dynamic';;
13825                 esac
13826                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13827                 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'
13828                 ;;
13829             esac
13830             archive_cmds_need_lc_CXX=no
13831             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13832             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13833             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13834             ;;
13835           pgCC* | pgcpp*)
13836             # Portland Group C++ compiler
13837             case `$CC -V` in
13838             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13839               prelink_cmds_CXX='tpldir=Template.dir~
13840                 rm -rf $tpldir~
13841                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13842                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13843               old_archive_cmds_CXX='tpldir=Template.dir~
13844                 rm -rf $tpldir~
13845                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13846                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13847                 $RANLIB $oldlib'
13848               archive_cmds_CXX='tpldir=Template.dir~
13849                 rm -rf $tpldir~
13850                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13851                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13852               archive_expsym_cmds_CXX='tpldir=Template.dir~
13853                 rm -rf $tpldir~
13854                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13855                 $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'
13856               ;;
13857             *) # Version 6 will use weak symbols
13858               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13859               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'
13860               ;;
13861             esac
13862
13863             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13864             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13865             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'
13866             ;;
13867           cxx*)
13868             # Compaq C++
13869             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13870             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'
13871
13872             runpath_var=LD_RUN_PATH
13873             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13874             hardcode_libdir_separator_CXX=:
13875
13876             # Commands to make compiler produce verbose output that lists
13877             # what "hidden" libraries, object files and flags are used when
13878             # linking a shared library.
13879             #
13880             # There doesn't appear to be a way to prevent this compiler from
13881             # explicitly linking system object files so we need to strip them
13882             # from the output so that they don't get included in the library
13883             # dependencies.
13884             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'
13885             ;;
13886           xl*)
13887             # IBM XL 8.0 on PPC, with GNU ld
13888             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13889             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13890             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13891             if test "x$supports_anon_versioning" = xyes; then
13892               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13893                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13894                 echo "local: *; };" >> $output_objdir/$libname.ver~
13895                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13896             fi
13897             ;;
13898           *)
13899             case `$CC -V 2>&1 | sed 5q` in
13900             *Sun\ C*)
13901               # Sun C++ 5.9
13902               no_undefined_flag_CXX=' -zdefs'
13903               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13904               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'
13905               hardcode_libdir_flag_spec_CXX='-R$libdir'
13906               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'
13907               compiler_needs_object_CXX=yes
13908
13909               # Not sure whether something based on
13910               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13911               # would be better.
13912               output_verbose_link_cmd='echo'
13913
13914               # Archives containing C++ object files must be created using
13915               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13916               # necessary to make sure instantiated templates are included
13917               # in the archive.
13918               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13919               ;;
13920             esac
13921             ;;
13922         esac
13923         ;;
13924
13925       lynxos*)
13926         # FIXME: insert proper C++ library support
13927         ld_shlibs_CXX=no
13928         ;;
13929
13930       m88k*)
13931         # FIXME: insert proper C++ library support
13932         ld_shlibs_CXX=no
13933         ;;
13934
13935       mvs*)
13936         case $cc_basename in
13937           cxx*)
13938             # FIXME: insert proper C++ library support
13939             ld_shlibs_CXX=no
13940             ;;
13941           *)
13942             # FIXME: insert proper C++ library support
13943             ld_shlibs_CXX=no
13944             ;;
13945         esac
13946         ;;
13947
13948       netbsd*)
13949         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13950           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13951           wlarc=
13952           hardcode_libdir_flag_spec_CXX='-R$libdir'
13953           hardcode_direct_CXX=yes
13954           hardcode_shlibpath_var_CXX=no
13955         fi
13956         # Workaround some broken pre-1.5 toolchains
13957         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13958         ;;
13959
13960       *nto* | *qnx*)
13961         ld_shlibs_CXX=yes
13962         ;;
13963
13964       openbsd2*)
13965         # C++ shared libraries are fairly broken
13966         ld_shlibs_CXX=no
13967         ;;
13968
13969       openbsd*)
13970         if test -f /usr/libexec/ld.so; then
13971           hardcode_direct_CXX=yes
13972           hardcode_shlibpath_var_CXX=no
13973           hardcode_direct_absolute_CXX=yes
13974           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13975           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13976           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13977             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13978             export_dynamic_flag_spec_CXX='${wl}-E'
13979             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13980           fi
13981           output_verbose_link_cmd=echo
13982         else
13983           ld_shlibs_CXX=no
13984         fi
13985         ;;
13986
13987       osf3* | osf4* | osf5*)
13988         case $cc_basename in
13989           KCC*)
13990             # Kuck and Associates, Inc. (KAI) C++ Compiler
13991
13992             # KCC will only create a shared library if the output file
13993             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13994             # to its proper name (with version) after linking.
13995             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'
13996
13997             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13998             hardcode_libdir_separator_CXX=:
13999
14000             # Archives containing C++ object files must be created using
14001             # the KAI C++ compiler.
14002             case $host in
14003               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14004               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14005             esac
14006             ;;
14007           RCC*)
14008             # Rational C++ 2.4.1
14009             # FIXME: insert proper C++ library support
14010             ld_shlibs_CXX=no
14011             ;;
14012           cxx*)
14013             case $host in
14014               osf3*)
14015                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14016                 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'
14017                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14018                 ;;
14019               *)
14020                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14021                 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'
14022                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14023                   echo "-hidden">> $lib.exp~
14024                   $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~
14025                   $RM $lib.exp'
14026                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14027                 ;;
14028             esac
14029
14030             hardcode_libdir_separator_CXX=:
14031
14032             # Commands to make compiler produce verbose output that lists
14033             # what "hidden" libraries, object files and flags are used when
14034             # linking a shared library.
14035             #
14036             # There doesn't appear to be a way to prevent this compiler from
14037             # explicitly linking system object files so we need to strip them
14038             # from the output so that they don't get included in the library
14039             # dependencies.
14040             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'
14041             ;;
14042           *)
14043             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14044               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14045               case $host in
14046                 osf3*)
14047                   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'
14048                   ;;
14049                 *)
14050                   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'
14051                   ;;
14052               esac
14053
14054               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14055               hardcode_libdir_separator_CXX=:
14056
14057               # Commands to make compiler produce verbose output that lists
14058               # what "hidden" libraries, object files and flags are used when
14059               # linking a shared library.
14060               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14061
14062             else
14063               # FIXME: insert proper C++ library support
14064               ld_shlibs_CXX=no
14065             fi
14066             ;;
14067         esac
14068         ;;
14069
14070       psos*)
14071         # FIXME: insert proper C++ library support
14072         ld_shlibs_CXX=no
14073         ;;
14074
14075       sunos4*)
14076         case $cc_basename in
14077           CC*)
14078             # Sun C++ 4.x
14079             # FIXME: insert proper C++ library support
14080             ld_shlibs_CXX=no
14081             ;;
14082           lcc*)
14083             # Lucid
14084             # FIXME: insert proper C++ library support
14085             ld_shlibs_CXX=no
14086             ;;
14087           *)
14088             # FIXME: insert proper C++ library support
14089             ld_shlibs_CXX=no
14090             ;;
14091         esac
14092         ;;
14093
14094       solaris*)
14095         case $cc_basename in
14096           CC*)
14097             # Sun C++ 4.2, 5.x and Centerline C++
14098             archive_cmds_need_lc_CXX=yes
14099             no_undefined_flag_CXX=' -zdefs'
14100             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14101             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14102               $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'
14103
14104             hardcode_libdir_flag_spec_CXX='-R$libdir'
14105             hardcode_shlibpath_var_CXX=no
14106             case $host_os in
14107               solaris2.[0-5] | solaris2.[0-5].*) ;;
14108               *)
14109                 # The compiler driver will combine and reorder linker options,
14110                 # but understands `-z linker_flag'.
14111                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14112                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14113                 ;;
14114             esac
14115             link_all_deplibs_CXX=yes
14116
14117             output_verbose_link_cmd='echo'
14118
14119             # Archives containing C++ object files must be created using
14120             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14121             # necessary to make sure instantiated templates are included
14122             # in the archive.
14123             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14124             ;;
14125           gcx*)
14126             # Green Hills C++ Compiler
14127             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14128
14129             # The C++ compiler must be used to create the archive.
14130             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14131             ;;
14132           *)
14133             # GNU C++ compiler with Solaris linker
14134             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14135               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14136               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14137                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14138                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14139                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14140
14141                 # Commands to make compiler produce verbose output that lists
14142                 # what "hidden" libraries, object files and flags are used when
14143                 # linking a shared library.
14144                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14145               else
14146                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14147                 # platform.
14148                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14149                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14150                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14151
14152                 # Commands to make compiler produce verbose output that lists
14153                 # what "hidden" libraries, object files and flags are used when
14154                 # linking a shared library.
14155                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14156               fi
14157
14158               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14159               case $host_os in
14160                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14161                 *)
14162                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14163                   ;;
14164               esac
14165             fi
14166             ;;
14167         esac
14168         ;;
14169
14170     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14171       no_undefined_flag_CXX='${wl}-z,text'
14172       archive_cmds_need_lc_CXX=no
14173       hardcode_shlibpath_var_CXX=no
14174       runpath_var='LD_RUN_PATH'
14175
14176       case $cc_basename in
14177         CC*)
14178           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14179           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180           ;;
14181         *)
14182           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14184           ;;
14185       esac
14186       ;;
14187
14188       sysv5* | sco3.2v5* | sco5v6*)
14189         # Note: We can NOT use -z defs as we might desire, because we do not
14190         # link with -lc, and that would cause any symbols used from libc to
14191         # always be unresolved, which means just about no library would
14192         # ever link correctly.  If we're not using GNU ld we use -z text
14193         # though, which does catch some bad symbols but isn't as heavy-handed
14194         # as -z defs.
14195         no_undefined_flag_CXX='${wl}-z,text'
14196         allow_undefined_flag_CXX='${wl}-z,nodefs'
14197         archive_cmds_need_lc_CXX=no
14198         hardcode_shlibpath_var_CXX=no
14199         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14200         hardcode_libdir_separator_CXX=':'
14201         link_all_deplibs_CXX=yes
14202         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14203         runpath_var='LD_RUN_PATH'
14204
14205         case $cc_basename in
14206           CC*)
14207             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14208             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209             ;;
14210           *)
14211             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14212             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14213             ;;
14214         esac
14215       ;;
14216
14217       tandem*)
14218         case $cc_basename in
14219           NCC*)
14220             # NonStop-UX NCC 3.20
14221             # FIXME: insert proper C++ library support
14222             ld_shlibs_CXX=no
14223             ;;
14224           *)
14225             # FIXME: insert proper C++ library support
14226             ld_shlibs_CXX=no
14227             ;;
14228         esac
14229         ;;
14230
14231       vxworks*)
14232         # FIXME: insert proper C++ library support
14233         ld_shlibs_CXX=no
14234         ;;
14235
14236       *)
14237         # FIXME: insert proper C++ library support
14238         ld_shlibs_CXX=no
14239         ;;
14240     esac
14241
14242     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14243 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14244     test "$ld_shlibs_CXX" = no && can_build_shared=no
14245
14246     GCC_CXX="$GXX"
14247     LD_CXX="$LD"
14248
14249     ## CAVEAT EMPTOR:
14250     ## There is no encapsulation within the following macros, do not change
14251     ## the running order or otherwise move them around unless you know exactly
14252     ## what you are doing...
14253     # Dependencies to place before and after the object being linked:
14254 predep_objects_CXX=
14255 postdep_objects_CXX=
14256 predeps_CXX=
14257 postdeps_CXX=
14258 compiler_lib_search_path_CXX=
14259
14260 cat > conftest.$ac_ext <<_LT_EOF
14261 class Foo
14262 {
14263 public:
14264   Foo (void) { a = 0; }
14265 private:
14266   int a;
14267 };
14268 _LT_EOF
14269
14270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14271   (eval $ac_compile) 2>&5
14272   ac_status=$?
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; then
14275   # Parse the compiler output and extract the necessary
14276   # objects, libraries and library flags.
14277
14278   # Sentinel used to keep track of whether or not we are before
14279   # the conftest object file.
14280   pre_test_object_deps_done=no
14281
14282   for p in `eval "$output_verbose_link_cmd"`; do
14283     case $p in
14284
14285     -L* | -R* | -l*)
14286        # Some compilers place space between "-{L,R}" and the path.
14287        # Remove the space.
14288        if test $p = "-L" ||
14289           test $p = "-R"; then
14290          prev=$p
14291          continue
14292        else
14293          prev=
14294        fi
14295
14296        if test "$pre_test_object_deps_done" = no; then
14297          case $p in
14298          -L* | -R*)
14299            # Internal compiler library paths should come after those
14300            # provided the user.  The postdeps already come after the
14301            # user supplied libs so there is no need to process them.
14302            if test -z "$compiler_lib_search_path_CXX"; then
14303              compiler_lib_search_path_CXX="${prev}${p}"
14304            else
14305              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14306            fi
14307            ;;
14308          # The "-l" case would never come before the object being
14309          # linked, so don't bother handling this case.
14310          esac
14311        else
14312          if test -z "$postdeps_CXX"; then
14313            postdeps_CXX="${prev}${p}"
14314          else
14315            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14316          fi
14317        fi
14318        ;;
14319
14320     *.$objext)
14321        # This assumes that the test object file only shows up
14322        # once in the compiler output.
14323        if test "$p" = "conftest.$objext"; then
14324          pre_test_object_deps_done=yes
14325          continue
14326        fi
14327
14328        if test "$pre_test_object_deps_done" = no; then
14329          if test -z "$predep_objects_CXX"; then
14330            predep_objects_CXX="$p"
14331          else
14332            predep_objects_CXX="$predep_objects_CXX $p"
14333          fi
14334        else
14335          if test -z "$postdep_objects_CXX"; then
14336            postdep_objects_CXX="$p"
14337          else
14338            postdep_objects_CXX="$postdep_objects_CXX $p"
14339          fi
14340        fi
14341        ;;
14342
14343     *) ;; # Ignore the rest.
14344
14345     esac
14346   done
14347
14348   # Clean up.
14349   rm -f a.out a.exe
14350 else
14351   echo "libtool.m4: error: problem compiling CXX test program"
14352 fi
14353
14354 $RM -f confest.$objext
14355
14356 # PORTME: override above test on systems where it is broken
14357 case $host_os in
14358 interix[3-9]*)
14359   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14360   # hack all around it, let's just trust "g++" to DTRT.
14361   predep_objects_CXX=
14362   postdep_objects_CXX=
14363   postdeps_CXX=
14364   ;;
14365
14366 linux*)
14367   case `$CC -V 2>&1 | sed 5q` in
14368   *Sun\ C*)
14369     # Sun C++ 5.9
14370
14371     # The more standards-conforming stlport4 library is
14372     # incompatible with the Cstd library. Avoid specifying
14373     # it if it's in CXXFLAGS. Ignore libCrun as
14374     # -library=stlport4 depends on it.
14375     case " $CXX $CXXFLAGS " in
14376     *" -library=stlport4 "*)
14377       solaris_use_stlport4=yes
14378       ;;
14379     esac
14380
14381     if test "$solaris_use_stlport4" != yes; then
14382       postdeps_CXX='-library=Cstd -library=Crun'
14383     fi
14384     ;;
14385   esac
14386   ;;
14387
14388 solaris*)
14389   case $cc_basename in
14390   CC*)
14391     # The more standards-conforming stlport4 library is
14392     # incompatible with the Cstd library. Avoid specifying
14393     # it if it's in CXXFLAGS. Ignore libCrun as
14394     # -library=stlport4 depends on it.
14395     case " $CXX $CXXFLAGS " in
14396     *" -library=stlport4 "*)
14397       solaris_use_stlport4=yes
14398       ;;
14399     esac
14400
14401     # Adding this requires a known-good setup of shared libraries for
14402     # Sun compiler versions before 5.6, else PIC objects from an old
14403     # archive will be linked into the output, leading to subtle bugs.
14404     if test "$solaris_use_stlport4" != yes; then
14405       postdeps_CXX='-library=Cstd -library=Crun'
14406     fi
14407     ;;
14408   esac
14409   ;;
14410 esac
14411
14412
14413 case " $postdeps_CXX " in
14414 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14415 esac
14416  compiler_lib_search_dirs_CXX=
14417 if test -n "${compiler_lib_search_path_CXX}"; then
14418  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14419 fi
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451     lt_prog_compiler_wl_CXX=
14452 lt_prog_compiler_pic_CXX=
14453 lt_prog_compiler_static_CXX=
14454
14455 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14456 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14457
14458   # C++ specific cases for pic, static, wl, etc.
14459   if test "$GXX" = yes; then
14460     lt_prog_compiler_wl_CXX='-Wl,'
14461     lt_prog_compiler_static_CXX='-static'
14462
14463     case $host_os in
14464     aix*)
14465       # All AIX code is PIC.
14466       if test "$host_cpu" = ia64; then
14467         # AIX 5 now supports IA64 processor
14468         lt_prog_compiler_static_CXX='-Bstatic'
14469       fi
14470       ;;
14471
14472     amigaos*)
14473       case $host_cpu in
14474       powerpc)
14475             # see comment about AmigaOS4 .so support
14476             lt_prog_compiler_pic_CXX='-fPIC'
14477         ;;
14478       m68k)
14479             # FIXME: we need at least 68020 code to build shared libraries, but
14480             # adding the `-m68020' flag to GCC prevents building anything better,
14481             # like `-m68040'.
14482             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14483         ;;
14484       esac
14485       ;;
14486
14487     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14488       # PIC is the default for these OSes.
14489       ;;
14490     mingw* | cygwin* | os2* | pw32* | cegcc*)
14491       # This hack is so that the source file can tell whether it is being
14492       # built for inclusion in a dll (and should export symbols for example).
14493       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14494       # (--disable-auto-import) libraries
14495       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14496       ;;
14497     darwin* | rhapsody*)
14498       # PIC is the default on this platform
14499       # Common symbols not allowed in MH_DYLIB files
14500       lt_prog_compiler_pic_CXX='-fno-common'
14501       ;;
14502     *djgpp*)
14503       # DJGPP does not support shared libraries at all
14504       lt_prog_compiler_pic_CXX=
14505       ;;
14506     interix[3-9]*)
14507       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14508       # Instead, we relocate shared libraries at runtime.
14509       ;;
14510     sysv4*MP*)
14511       if test -d /usr/nec; then
14512         lt_prog_compiler_pic_CXX=-Kconform_pic
14513       fi
14514       ;;
14515     hpux*)
14516       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14517       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14518       # sets the default TLS model and affects inlining.
14519       case $host_cpu in
14520       hppa*64*)
14521         ;;
14522       *)
14523         lt_prog_compiler_pic_CXX='-fPIC'
14524         ;;
14525       esac
14526       ;;
14527     *qnx* | *nto*)
14528       # QNX uses GNU C++, but need to define -shared option too, otherwise
14529       # it will coredump.
14530       lt_prog_compiler_pic_CXX='-fPIC -shared'
14531       ;;
14532     *)
14533       lt_prog_compiler_pic_CXX='-fPIC'
14534       ;;
14535     esac
14536   else
14537     case $host_os in
14538       aix[4-9]*)
14539         # All AIX code is PIC.
14540         if test "$host_cpu" = ia64; then
14541           # AIX 5 now supports IA64 processor
14542           lt_prog_compiler_static_CXX='-Bstatic'
14543         else
14544           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14545         fi
14546         ;;
14547       chorus*)
14548         case $cc_basename in
14549         cxch68*)
14550           # Green Hills C++ Compiler
14551           # _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"
14552           ;;
14553         esac
14554         ;;
14555       dgux*)
14556         case $cc_basename in
14557           ec++*)
14558             lt_prog_compiler_pic_CXX='-KPIC'
14559             ;;
14560           ghcx*)
14561             # Green Hills C++ Compiler
14562             lt_prog_compiler_pic_CXX='-pic'
14563             ;;
14564           *)
14565             ;;
14566         esac
14567         ;;
14568       freebsd* | dragonfly*)
14569         # FreeBSD uses GNU C++
14570         ;;
14571       hpux9* | hpux10* | hpux11*)
14572         case $cc_basename in
14573           CC*)
14574             lt_prog_compiler_wl_CXX='-Wl,'
14575             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14576             if test "$host_cpu" != ia64; then
14577               lt_prog_compiler_pic_CXX='+Z'
14578             fi
14579             ;;
14580           aCC*)
14581             lt_prog_compiler_wl_CXX='-Wl,'
14582             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14583             case $host_cpu in
14584             hppa*64*|ia64*)
14585               # +Z the default
14586               ;;
14587             *)
14588               lt_prog_compiler_pic_CXX='+Z'
14589               ;;
14590             esac
14591             ;;
14592           *)
14593             ;;
14594         esac
14595         ;;
14596       interix*)
14597         # This is c89, which is MS Visual C++ (no shared libs)
14598         # Anyone wants to do a port?
14599         ;;
14600       irix5* | irix6* | nonstopux*)
14601         case $cc_basename in
14602           CC*)
14603             lt_prog_compiler_wl_CXX='-Wl,'
14604             lt_prog_compiler_static_CXX='-non_shared'
14605             # CC pic flag -KPIC is the default.
14606             ;;
14607           *)
14608             ;;
14609         esac
14610         ;;
14611       linux* | k*bsd*-gnu)
14612         case $cc_basename in
14613           KCC*)
14614             # KAI C++ Compiler
14615             lt_prog_compiler_wl_CXX='--backend -Wl,'
14616             lt_prog_compiler_pic_CXX='-fPIC'
14617             ;;
14618           ecpc* )
14619             # old Intel C++ for x86_64 which still supported -KPIC.
14620             lt_prog_compiler_wl_CXX='-Wl,'
14621             lt_prog_compiler_pic_CXX='-KPIC'
14622             lt_prog_compiler_static_CXX='-static'
14623             ;;
14624           icpc* )
14625             # Intel C++, used to be incompatible with GCC.
14626             # ICC 10 doesn't accept -KPIC any more.
14627             lt_prog_compiler_wl_CXX='-Wl,'
14628             lt_prog_compiler_pic_CXX='-fPIC'
14629             lt_prog_compiler_static_CXX='-static'
14630             ;;
14631           pgCC* | pgcpp*)
14632             # Portland Group C++ compiler
14633             lt_prog_compiler_wl_CXX='-Wl,'
14634             lt_prog_compiler_pic_CXX='-fpic'
14635             lt_prog_compiler_static_CXX='-Bstatic'
14636             ;;
14637           cxx*)
14638             # Compaq C++
14639             # Make sure the PIC flag is empty.  It appears that all Alpha
14640             # Linux and Compaq Tru64 Unix objects are PIC.
14641             lt_prog_compiler_pic_CXX=
14642             lt_prog_compiler_static_CXX='-non_shared'
14643             ;;
14644           xlc* | xlC*)
14645             # IBM XL 8.0 on PPC
14646             lt_prog_compiler_wl_CXX='-Wl,'
14647             lt_prog_compiler_pic_CXX='-qpic'
14648             lt_prog_compiler_static_CXX='-qstaticlink'
14649             ;;
14650           *)
14651             case `$CC -V 2>&1 | sed 5q` in
14652             *Sun\ C*)
14653               # Sun C++ 5.9
14654               lt_prog_compiler_pic_CXX='-KPIC'
14655               lt_prog_compiler_static_CXX='-Bstatic'
14656               lt_prog_compiler_wl_CXX='-Qoption ld '
14657               ;;
14658             esac
14659             ;;
14660         esac
14661         ;;
14662       lynxos*)
14663         ;;
14664       m88k*)
14665         ;;
14666       mvs*)
14667         case $cc_basename in
14668           cxx*)
14669             lt_prog_compiler_pic_CXX='-W c,exportall'
14670             ;;
14671           *)
14672             ;;
14673         esac
14674         ;;
14675       netbsd*)
14676         ;;
14677       *qnx* | *nto*)
14678         # QNX uses GNU C++, but need to define -shared option too, otherwise
14679         # it will coredump.
14680         lt_prog_compiler_pic_CXX='-fPIC -shared'
14681         ;;
14682       osf3* | osf4* | osf5*)
14683         case $cc_basename in
14684           KCC*)
14685             lt_prog_compiler_wl_CXX='--backend -Wl,'
14686             ;;
14687           RCC*)
14688             # Rational C++ 2.4.1
14689             lt_prog_compiler_pic_CXX='-pic'
14690             ;;
14691           cxx*)
14692             # Digital/Compaq C++
14693             lt_prog_compiler_wl_CXX='-Wl,'
14694             # Make sure the PIC flag is empty.  It appears that all Alpha
14695             # Linux and Compaq Tru64 Unix objects are PIC.
14696             lt_prog_compiler_pic_CXX=
14697             lt_prog_compiler_static_CXX='-non_shared'
14698             ;;
14699           *)
14700             ;;
14701         esac
14702         ;;
14703       psos*)
14704         ;;
14705       solaris*)
14706         case $cc_basename in
14707           CC*)
14708             # Sun C++ 4.2, 5.x and Centerline C++
14709             lt_prog_compiler_pic_CXX='-KPIC'
14710             lt_prog_compiler_static_CXX='-Bstatic'
14711             lt_prog_compiler_wl_CXX='-Qoption ld '
14712             ;;
14713           gcx*)
14714             # Green Hills C++ Compiler
14715             lt_prog_compiler_pic_CXX='-PIC'
14716             ;;
14717           *)
14718             ;;
14719         esac
14720         ;;
14721       sunos4*)
14722         case $cc_basename in
14723           CC*)
14724             # Sun C++ 4.x
14725             lt_prog_compiler_pic_CXX='-pic'
14726             lt_prog_compiler_static_CXX='-Bstatic'
14727             ;;
14728           lcc*)
14729             # Lucid
14730             lt_prog_compiler_pic_CXX='-pic'
14731             ;;
14732           *)
14733             ;;
14734         esac
14735         ;;
14736       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14737         case $cc_basename in
14738           CC*)
14739             lt_prog_compiler_wl_CXX='-Wl,'
14740             lt_prog_compiler_pic_CXX='-KPIC'
14741             lt_prog_compiler_static_CXX='-Bstatic'
14742             ;;
14743         esac
14744         ;;
14745       tandem*)
14746         case $cc_basename in
14747           NCC*)
14748             # NonStop-UX NCC 3.20
14749             lt_prog_compiler_pic_CXX='-KPIC'
14750             ;;
14751           *)
14752             ;;
14753         esac
14754         ;;
14755       vxworks*)
14756         ;;
14757       *)
14758         lt_prog_compiler_can_build_shared_CXX=no
14759         ;;
14760     esac
14761   fi
14762
14763 case $host_os in
14764   # For platforms which do not support PIC, -DPIC is meaningless:
14765   *djgpp*)
14766     lt_prog_compiler_pic_CXX=
14767     ;;
14768   *)
14769     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14770     ;;
14771 esac
14772 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14773 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14774
14775
14776
14777 #
14778 # Check to make sure the PIC flag actually works.
14779 #
14780 if test -n "$lt_prog_compiler_pic_CXX"; then
14781   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14782 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14783 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14784   echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786   lt_cv_prog_compiler_pic_works_CXX=no
14787    ac_outfile=conftest.$ac_objext
14788    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14789    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14790    # Insert the option either (1) after the last *FLAGS variable, or
14791    # (2) before a word containing "conftest.", or (3) at the end.
14792    # Note that $ac_compile itself does not contain backslashes and begins
14793    # with a dollar sign (not a hyphen), so the echo should work correctly.
14794    # The option is referenced via a variable to avoid confusing sed.
14795    lt_compile=`echo "$ac_compile" | $SED \
14796    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14797    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14798    -e 's:$: $lt_compiler_flag:'`
14799    (eval echo "\"\$as_me:14799: $lt_compile\"" >&5)
14800    (eval "$lt_compile" 2>conftest.err)
14801    ac_status=$?
14802    cat conftest.err >&5
14803    echo "$as_me:14803: \$? = $ac_status" >&5
14804    if (exit $ac_status) && test -s "$ac_outfile"; then
14805      # The compiler can only warn and ignore the option if not recognized
14806      # So say no if there are warnings other than the usual output.
14807      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14808      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14809      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14810        lt_cv_prog_compiler_pic_works_CXX=yes
14811      fi
14812    fi
14813    $RM conftest*
14814
14815 fi
14816 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14817 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14818
14819 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14820     case $lt_prog_compiler_pic_CXX in
14821      "" | " "*) ;;
14822      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14823      esac
14824 else
14825     lt_prog_compiler_pic_CXX=
14826      lt_prog_compiler_can_build_shared_CXX=no
14827 fi
14828
14829 fi
14830
14831
14832
14833 #
14834 # Check to make sure the static flag actually works.
14835 #
14836 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14837 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14838 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14839 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14840   echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842   lt_cv_prog_compiler_static_works_CXX=no
14843    save_LDFLAGS="$LDFLAGS"
14844    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14845    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14846    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14847      # The linker can only warn and ignore the option if not recognized
14848      # So say no if there are warnings
14849      if test -s conftest.err; then
14850        # Append any errors to the config.log.
14851        cat conftest.err 1>&5
14852        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14853        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14854        if diff conftest.exp conftest.er2 >/dev/null; then
14855          lt_cv_prog_compiler_static_works_CXX=yes
14856        fi
14857      else
14858        lt_cv_prog_compiler_static_works_CXX=yes
14859      fi
14860    fi
14861    $RM -r conftest*
14862    LDFLAGS="$save_LDFLAGS"
14863
14864 fi
14865 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14866 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14867
14868 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14869     :
14870 else
14871     lt_prog_compiler_static_CXX=
14872 fi
14873
14874
14875
14876
14877     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14878 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14879 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14880   echo $ECHO_N "(cached) $ECHO_C" >&6
14881 else
14882   lt_cv_prog_compiler_c_o_CXX=no
14883    $RM -r conftest 2>/dev/null
14884    mkdir conftest
14885    cd conftest
14886    mkdir out
14887    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14888
14889    lt_compiler_flag="-o out/conftest2.$ac_objext"
14890    # Insert the option either (1) after the last *FLAGS variable, or
14891    # (2) before a word containing "conftest.", or (3) at the end.
14892    # Note that $ac_compile itself does not contain backslashes and begins
14893    # with a dollar sign (not a hyphen), so the echo should work correctly.
14894    lt_compile=`echo "$ac_compile" | $SED \
14895    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14896    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14897    -e 's:$: $lt_compiler_flag:'`
14898    (eval echo "\"\$as_me:14898: $lt_compile\"" >&5)
14899    (eval "$lt_compile" 2>out/conftest.err)
14900    ac_status=$?
14901    cat out/conftest.err >&5
14902    echo "$as_me:14902: \$? = $ac_status" >&5
14903    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14904    then
14905      # The compiler can only warn and ignore the option if not recognized
14906      # So say no if there are warnings
14907      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14908      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14909      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14910        lt_cv_prog_compiler_c_o_CXX=yes
14911      fi
14912    fi
14913    chmod u+w . 2>&5
14914    $RM conftest*
14915    # SGI C++ compiler will create directory out/ii_files/ for
14916    # template instantiation
14917    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14918    $RM out/* && rmdir out
14919    cd ..
14920    $RM -r conftest
14921    $RM conftest*
14922
14923 fi
14924 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14925 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14926
14927
14928
14929     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14930 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14931 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14932   echo $ECHO_N "(cached) $ECHO_C" >&6
14933 else
14934   lt_cv_prog_compiler_c_o_CXX=no
14935    $RM -r conftest 2>/dev/null
14936    mkdir conftest
14937    cd conftest
14938    mkdir out
14939    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14940
14941    lt_compiler_flag="-o out/conftest2.$ac_objext"
14942    # Insert the option either (1) after the last *FLAGS variable, or
14943    # (2) before a word containing "conftest.", or (3) at the end.
14944    # Note that $ac_compile itself does not contain backslashes and begins
14945    # with a dollar sign (not a hyphen), so the echo should work correctly.
14946    lt_compile=`echo "$ac_compile" | $SED \
14947    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14948    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14949    -e 's:$: $lt_compiler_flag:'`
14950    (eval echo "\"\$as_me:14950: $lt_compile\"" >&5)
14951    (eval "$lt_compile" 2>out/conftest.err)
14952    ac_status=$?
14953    cat out/conftest.err >&5
14954    echo "$as_me:14954: \$? = $ac_status" >&5
14955    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14956    then
14957      # The compiler can only warn and ignore the option if not recognized
14958      # So say no if there are warnings
14959      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14960      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14961      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14962        lt_cv_prog_compiler_c_o_CXX=yes
14963      fi
14964    fi
14965    chmod u+w . 2>&5
14966    $RM conftest*
14967    # SGI C++ compiler will create directory out/ii_files/ for
14968    # template instantiation
14969    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14970    $RM out/* && rmdir out
14971    cd ..
14972    $RM -r conftest
14973    $RM conftest*
14974
14975 fi
14976 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14977 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14978
14979
14980
14981
14982 hard_links="nottested"
14983 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14984   # do not overwrite the value of need_locks provided by the user
14985   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14986 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14987   hard_links=yes
14988   $RM conftest*
14989   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14990   touch conftest.a
14991   ln conftest.a conftest.b 2>&5 || hard_links=no
14992   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14993   { echo "$as_me:$LINENO: result: $hard_links" >&5
14994 echo "${ECHO_T}$hard_links" >&6; }
14995   if test "$hard_links" = no; then
14996     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14997 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14998     need_locks=warn
14999   fi
15000 else
15001   need_locks=no
15002 fi
15003
15004
15005
15006     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15007 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15008
15009   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15010   case $host_os in
15011   aix[4-9]*)
15012     # If we're using GNU nm, then we don't want the "-C" option.
15013     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15014     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15015       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'
15016     else
15017       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'
15018     fi
15019     ;;
15020   pw32*)
15021     export_symbols_cmds_CXX="$ltdll_cmds"
15022   ;;
15023   cygwin* | mingw* | cegcc*)
15024     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'
15025   ;;
15026   *)
15027     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15028   ;;
15029   esac
15030   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15031
15032 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15033 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15034 test "$ld_shlibs_CXX" = no && can_build_shared=no
15035
15036 with_gnu_ld_CXX=$with_gnu_ld
15037
15038
15039
15040
15041
15042
15043 #
15044 # Do we need to explicitly link libc?
15045 #
15046 case "x$archive_cmds_need_lc_CXX" in
15047 x|xyes)
15048   # Assume -lc should be added
15049   archive_cmds_need_lc_CXX=yes
15050
15051   if test "$enable_shared" = yes && test "$GCC" = yes; then
15052     case $archive_cmds_CXX in
15053     *'~'*)
15054       # FIXME: we may have to deal with multi-command sequences.
15055       ;;
15056     '$CC '*)
15057       # Test whether the compiler implicitly links with -lc since on some
15058       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15059       # to ld, don't add -lc before -lgcc.
15060       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15061 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15062       $RM conftest*
15063       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15064
15065       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15066   (eval $ac_compile) 2>&5
15067   ac_status=$?
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); } 2>conftest.err; then
15070         soname=conftest
15071         lib=conftest
15072         libobjs=conftest.$ac_objext
15073         deplibs=
15074         wl=$lt_prog_compiler_wl_CXX
15075         pic_flag=$lt_prog_compiler_pic_CXX
15076         compiler_flags=-v
15077         linker_flags=-v
15078         verstring=
15079         output_objdir=.
15080         libname=conftest
15081         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15082         allow_undefined_flag_CXX=
15083         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15084   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15085   ac_status=$?
15086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087   (exit $ac_status); }
15088         then
15089           archive_cmds_need_lc_CXX=no
15090         else
15091           archive_cmds_need_lc_CXX=yes
15092         fi
15093         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15094       else
15095         cat conftest.err 1>&5
15096       fi
15097       $RM conftest*
15098       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15099 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15100       ;;
15101     esac
15102   fi
15103   ;;
15104 esac
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15170 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15171
15172 library_names_spec=
15173 libname_spec='lib$name'
15174 soname_spec=
15175 shrext_cmds=".so"
15176 postinstall_cmds=
15177 postuninstall_cmds=
15178 finish_cmds=
15179 finish_eval=
15180 shlibpath_var=
15181 shlibpath_overrides_runpath=unknown
15182 version_type=none
15183 dynamic_linker="$host_os ld.so"
15184 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15185 need_lib_prefix=unknown
15186 hardcode_into_libs=no
15187
15188 # when you set need_version to no, make sure it does not cause -set_version
15189 # flags to be left without arguments
15190 need_version=unknown
15191
15192 case $host_os in
15193 aix3*)
15194   version_type=linux
15195   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15196   shlibpath_var=LIBPATH
15197
15198   # AIX 3 has no versioning support, so we append a major version to the name.
15199   soname_spec='${libname}${release}${shared_ext}$major'
15200   ;;
15201
15202 aix[4-9]*)
15203   version_type=linux
15204   need_lib_prefix=no
15205   need_version=no
15206   hardcode_into_libs=yes
15207   if test "$host_cpu" = ia64; then
15208     # AIX 5 supports IA64
15209     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15210     shlibpath_var=LD_LIBRARY_PATH
15211   else
15212     # With GCC up to 2.95.x, collect2 would create an import file
15213     # for dependence libraries.  The import file would start with
15214     # the line `#! .'.  This would cause the generated library to
15215     # depend on `.', always an invalid library.  This was fixed in
15216     # development snapshots of GCC prior to 3.0.
15217     case $host_os in
15218       aix4 | aix4.[01] | aix4.[01].*)
15219       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15220            echo ' yes '
15221            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15222         :
15223       else
15224         can_build_shared=no
15225       fi
15226       ;;
15227     esac
15228     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15229     # soname into executable. Probably we can add versioning support to
15230     # collect2, so additional links can be useful in future.
15231     if test "$aix_use_runtimelinking" = yes; then
15232       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15233       # instead of lib<name>.a to let people know that these are not
15234       # typical AIX shared libraries.
15235       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15236     else
15237       # We preserve .a as extension for shared libraries through AIX4.2
15238       # and later when we are not doing run time linking.
15239       library_names_spec='${libname}${release}.a $libname.a'
15240       soname_spec='${libname}${release}${shared_ext}$major'
15241     fi
15242     shlibpath_var=LIBPATH
15243   fi
15244   ;;
15245
15246 amigaos*)
15247   case $host_cpu in
15248   powerpc)
15249     # Since July 2007 AmigaOS4 officially supports .so libraries.
15250     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15252     ;;
15253   m68k)
15254     library_names_spec='$libname.ixlibrary $libname.a'
15255     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15256     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'
15257     ;;
15258   esac
15259   ;;
15260
15261 beos*)
15262   library_names_spec='${libname}${shared_ext}'
15263   dynamic_linker="$host_os ld.so"
15264   shlibpath_var=LIBRARY_PATH
15265   ;;
15266
15267 bsdi[45]*)
15268   version_type=linux
15269   need_version=no
15270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271   soname_spec='${libname}${release}${shared_ext}$major'
15272   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15273   shlibpath_var=LD_LIBRARY_PATH
15274   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15275   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15276   # the default ld.so.conf also contains /usr/contrib/lib and
15277   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15278   # libtool to hard-code these into programs
15279   ;;
15280
15281 cygwin* | mingw* | pw32* | cegcc*)
15282   version_type=windows
15283   shrext_cmds=".dll"
15284   need_version=no
15285   need_lib_prefix=no
15286
15287   case $GCC,$host_os in
15288   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15289     library_names_spec='$libname.dll.a'
15290     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15291     postinstall_cmds='base_file=`basename \${file}`~
15292       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15293       dldir=$destdir/`dirname \$dlpath`~
15294       test -d \$dldir || mkdir -p \$dldir~
15295       $install_prog $dir/$dlname \$dldir/$dlname~
15296       chmod a+x \$dldir/$dlname~
15297       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15298         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15299       fi'
15300     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15301       dlpath=$dir/\$dldll~
15302        $RM \$dlpath'
15303     shlibpath_overrides_runpath=yes
15304
15305     case $host_os in
15306     cygwin*)
15307       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15308       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15309       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15310       ;;
15311     mingw* | cegcc*)
15312       # MinGW DLLs use traditional 'lib' prefix
15313       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15314       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15315       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15316         # It is most probably a Windows format PATH printed by
15317         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15318         # path with ; separators, and with drive letters. We can handle the
15319         # drive letters (cygwin fileutils understands them), so leave them,
15320         # especially as we might pass files found there to a mingw objdump,
15321         # which wouldn't understand a cygwinified path. Ahh.
15322         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15323       else
15324         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15325       fi
15326       ;;
15327     pw32*)
15328       # pw32 DLLs use 'pw' prefix rather than 'lib'
15329       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15330       ;;
15331     esac
15332     ;;
15333
15334   *)
15335     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15336     ;;
15337   esac
15338   dynamic_linker='Win32 ld.exe'
15339   # FIXME: first we should search . and the directory the executable is in
15340   shlibpath_var=PATH
15341   ;;
15342
15343 darwin* | rhapsody*)
15344   dynamic_linker="$host_os dyld"
15345   version_type=darwin
15346   need_lib_prefix=no
15347   need_version=no
15348   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15349   soname_spec='${libname}${release}${major}$shared_ext'
15350   shlibpath_overrides_runpath=yes
15351   shlibpath_var=DYLD_LIBRARY_PATH
15352   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15353
15354   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15355   ;;
15356
15357 dgux*)
15358   version_type=linux
15359   need_lib_prefix=no
15360   need_version=no
15361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15362   soname_spec='${libname}${release}${shared_ext}$major'
15363   shlibpath_var=LD_LIBRARY_PATH
15364   ;;
15365
15366 freebsd1*)
15367   dynamic_linker=no
15368   ;;
15369
15370 freebsd* | dragonfly*)
15371   # DragonFly does not have aout.  When/if they implement a new
15372   # versioning mechanism, adjust this.
15373   if test -x /usr/bin/objformat; then
15374     objformat=`/usr/bin/objformat`
15375   else
15376     case $host_os in
15377     freebsd[123]*) objformat=aout ;;
15378     *) objformat=elf ;;
15379     esac
15380   fi
15381   version_type=freebsd-$objformat
15382   case $version_type in
15383     freebsd-elf*)
15384       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15385       need_version=no
15386       need_lib_prefix=no
15387       ;;
15388     freebsd-*)
15389       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15390       need_version=yes
15391       ;;
15392   esac
15393   shlibpath_var=LD_LIBRARY_PATH
15394   case $host_os in
15395   freebsd2*)
15396     shlibpath_overrides_runpath=yes
15397     ;;
15398   freebsd3.[01]* | freebsdelf3.[01]*)
15399     shlibpath_overrides_runpath=yes
15400     hardcode_into_libs=yes
15401     ;;
15402   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15403   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15404     shlibpath_overrides_runpath=no
15405     hardcode_into_libs=yes
15406     ;;
15407   *) # from 4.6 on, and DragonFly
15408     shlibpath_overrides_runpath=yes
15409     hardcode_into_libs=yes
15410     ;;
15411   esac
15412   ;;
15413
15414 gnu*)
15415   version_type=linux
15416   need_lib_prefix=no
15417   need_version=no
15418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15419   soname_spec='${libname}${release}${shared_ext}$major'
15420   shlibpath_var=LD_LIBRARY_PATH
15421   hardcode_into_libs=yes
15422   ;;
15423
15424 hpux9* | hpux10* | hpux11*)
15425   # Give a soname corresponding to the major version so that dld.sl refuses to
15426   # link against other versions.
15427   version_type=sunos
15428   need_lib_prefix=no
15429   need_version=no
15430   case $host_cpu in
15431   ia64*)
15432     shrext_cmds='.so'
15433     hardcode_into_libs=yes
15434     dynamic_linker="$host_os dld.so"
15435     shlibpath_var=LD_LIBRARY_PATH
15436     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438     soname_spec='${libname}${release}${shared_ext}$major'
15439     if test "X$HPUX_IA64_MODE" = X32; then
15440       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15441     else
15442       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15443     fi
15444     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15445     ;;
15446   hppa*64*)
15447     shrext_cmds='.sl'
15448     hardcode_into_libs=yes
15449     dynamic_linker="$host_os dld.sl"
15450     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15451     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15452     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453     soname_spec='${libname}${release}${shared_ext}$major'
15454     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15455     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15456     ;;
15457   *)
15458     shrext_cmds='.sl'
15459     dynamic_linker="$host_os dld.sl"
15460     shlibpath_var=SHLIB_PATH
15461     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15462     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15463     soname_spec='${libname}${release}${shared_ext}$major'
15464     ;;
15465   esac
15466   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15467   postinstall_cmds='chmod 555 $lib'
15468   ;;
15469
15470 interix[3-9]*)
15471   version_type=linux
15472   need_lib_prefix=no
15473   need_version=no
15474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15475   soname_spec='${libname}${release}${shared_ext}$major'
15476   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15477   shlibpath_var=LD_LIBRARY_PATH
15478   shlibpath_overrides_runpath=no
15479   hardcode_into_libs=yes
15480   ;;
15481
15482 irix5* | irix6* | nonstopux*)
15483   case $host_os in
15484     nonstopux*) version_type=nonstopux ;;
15485     *)
15486         if test "$lt_cv_prog_gnu_ld" = yes; then
15487                 version_type=linux
15488         else
15489                 version_type=irix
15490         fi ;;
15491   esac
15492   need_lib_prefix=no
15493   need_version=no
15494   soname_spec='${libname}${release}${shared_ext}$major'
15495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15496   case $host_os in
15497   irix5* | nonstopux*)
15498     libsuff= shlibsuff=
15499     ;;
15500   *)
15501     case $LD in # libtool.m4 will add one of these switches to LD
15502     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15503       libsuff= shlibsuff= libmagic=32-bit;;
15504     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15505       libsuff=32 shlibsuff=N32 libmagic=N32;;
15506     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15507       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15508     *) libsuff= shlibsuff= libmagic=never-match;;
15509     esac
15510     ;;
15511   esac
15512   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15513   shlibpath_overrides_runpath=no
15514   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15515   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15516   hardcode_into_libs=yes
15517   ;;
15518
15519 # No shared lib support for Linux oldld, aout, or coff.
15520 linux*oldld* | linux*aout* | linux*coff*)
15521   dynamic_linker=no
15522   ;;
15523
15524 # This must be Linux ELF.
15525 linux* | k*bsd*-gnu)
15526   version_type=linux
15527   need_lib_prefix=no
15528   need_version=no
15529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15530   soname_spec='${libname}${release}${shared_ext}$major'
15531   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15532   shlibpath_var=LD_LIBRARY_PATH
15533   shlibpath_overrides_runpath=no
15534   # Some binutils ld are patched to set DT_RUNPATH
15535   save_LDFLAGS=$LDFLAGS
15536   save_libdir=$libdir
15537   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15538        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15539   cat >conftest.$ac_ext <<_ACEOF
15540 /* confdefs.h.  */
15541 _ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h.  */
15545
15546 int
15547 main ()
15548 {
15549
15550   ;
15551   return 0;
15552 }
15553 _ACEOF
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (ac_try="$ac_link"
15556 case "(($ac_try" in
15557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558   *) ac_try_echo=$ac_try;;
15559 esac
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561   (eval "$ac_link") 2>conftest.er1
15562   ac_status=$?
15563   grep -v '^ *+' conftest.er1 >conftest.err
15564   rm -f conftest.er1
15565   cat conftest.err >&5
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); } && {
15568          test -z "$ac_cxx_werror_flag" ||
15569          test ! -s conftest.err
15570        } && test -s conftest$ac_exeext &&
15571        $as_test_x conftest$ac_exeext; then
15572   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15573   shlibpath_overrides_runpath=yes
15574 fi
15575
15576 else
15577   echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15579
15580
15581 fi
15582
15583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15584       conftest$ac_exeext conftest.$ac_ext
15585   LDFLAGS=$save_LDFLAGS
15586   libdir=$save_libdir
15587
15588   # This implies no fast_install, which is unacceptable.
15589   # Some rework will be needed to allow for fast_install
15590   # before this can be enabled.
15591   hardcode_into_libs=yes
15592
15593   # Append ld.so.conf contents to the search path
15594   if test -f /etc/ld.so.conf; then
15595     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' ' '`
15596     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15597   fi
15598
15599   # We used to test for /lib/ld.so.1 and disable shared libraries on
15600   # powerpc, because MkLinux only supported shared libraries with the
15601   # GNU dynamic linker.  Since this was broken with cross compilers,
15602   # most powerpc-linux boxes support dynamic linking these days and
15603   # people can always --disable-shared, the test was removed, and we
15604   # assume the GNU/Linux dynamic linker is in use.
15605   dynamic_linker='GNU/Linux ld.so'
15606   ;;
15607
15608 netbsd*)
15609   version_type=sunos
15610   need_lib_prefix=no
15611   need_version=no
15612   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15613     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15614     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15615     dynamic_linker='NetBSD (a.out) ld.so'
15616   else
15617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15618     soname_spec='${libname}${release}${shared_ext}$major'
15619     dynamic_linker='NetBSD ld.elf_so'
15620   fi
15621   shlibpath_var=LD_LIBRARY_PATH
15622   shlibpath_overrides_runpath=yes
15623   hardcode_into_libs=yes
15624   ;;
15625
15626 newsos6)
15627   version_type=linux
15628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15629   shlibpath_var=LD_LIBRARY_PATH
15630   shlibpath_overrides_runpath=yes
15631   ;;
15632
15633 *nto* | *qnx*)
15634   version_type=qnx
15635   need_lib_prefix=no
15636   need_version=no
15637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15638   soname_spec='${libname}${release}${shared_ext}$major'
15639   shlibpath_var=LD_LIBRARY_PATH
15640   shlibpath_overrides_runpath=no
15641   hardcode_into_libs=yes
15642   dynamic_linker='ldqnx.so'
15643   ;;
15644
15645 openbsd*)
15646   version_type=sunos
15647   sys_lib_dlsearch_path_spec="/usr/lib"
15648   need_lib_prefix=no
15649   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15650   case $host_os in
15651     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15652     *)                          need_version=no  ;;
15653   esac
15654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15655   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15656   shlibpath_var=LD_LIBRARY_PATH
15657   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15658     case $host_os in
15659       openbsd2.[89] | openbsd2.[89].*)
15660         shlibpath_overrides_runpath=no
15661         ;;
15662       *)
15663         shlibpath_overrides_runpath=yes
15664         ;;
15665       esac
15666   else
15667     shlibpath_overrides_runpath=yes
15668   fi
15669   ;;
15670
15671 os2*)
15672   libname_spec='$name'
15673   shrext_cmds=".dll"
15674   need_lib_prefix=no
15675   library_names_spec='$libname${shared_ext} $libname.a'
15676   dynamic_linker='OS/2 ld.exe'
15677   shlibpath_var=LIBPATH
15678   ;;
15679
15680 osf3* | osf4* | osf5*)
15681   version_type=osf
15682   need_lib_prefix=no
15683   need_version=no
15684   soname_spec='${libname}${release}${shared_ext}$major'
15685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15686   shlibpath_var=LD_LIBRARY_PATH
15687   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15688   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15689   ;;
15690
15691 rdos*)
15692   dynamic_linker=no
15693   ;;
15694
15695 solaris*)
15696   version_type=linux
15697   need_lib_prefix=no
15698   need_version=no
15699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15700   soname_spec='${libname}${release}${shared_ext}$major'
15701   shlibpath_var=LD_LIBRARY_PATH
15702   shlibpath_overrides_runpath=yes
15703   hardcode_into_libs=yes
15704   # ldd complains unless libraries are executable
15705   postinstall_cmds='chmod +x $lib'
15706   ;;
15707
15708 sunos4*)
15709   version_type=sunos
15710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15711   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15712   shlibpath_var=LD_LIBRARY_PATH
15713   shlibpath_overrides_runpath=yes
15714   if test "$with_gnu_ld" = yes; then
15715     need_lib_prefix=no
15716   fi
15717   need_version=yes
15718   ;;
15719
15720 sysv4 | sysv4.3*)
15721   version_type=linux
15722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15723   soname_spec='${libname}${release}${shared_ext}$major'
15724   shlibpath_var=LD_LIBRARY_PATH
15725   case $host_vendor in
15726     sni)
15727       shlibpath_overrides_runpath=no
15728       need_lib_prefix=no
15729       runpath_var=LD_RUN_PATH
15730       ;;
15731     siemens)
15732       need_lib_prefix=no
15733       ;;
15734     motorola)
15735       need_lib_prefix=no
15736       need_version=no
15737       shlibpath_overrides_runpath=no
15738       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15739       ;;
15740   esac
15741   ;;
15742
15743 sysv4*MP*)
15744   if test -d /usr/nec ;then
15745     version_type=linux
15746     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15747     soname_spec='$libname${shared_ext}.$major'
15748     shlibpath_var=LD_LIBRARY_PATH
15749   fi
15750   ;;
15751
15752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15753   version_type=freebsd-elf
15754   need_lib_prefix=no
15755   need_version=no
15756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15757   soname_spec='${libname}${release}${shared_ext}$major'
15758   shlibpath_var=LD_LIBRARY_PATH
15759   shlibpath_overrides_runpath=yes
15760   hardcode_into_libs=yes
15761   if test "$with_gnu_ld" = yes; then
15762     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15763   else
15764     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15765     case $host_os in
15766       sco3.2v5*)
15767         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15768         ;;
15769     esac
15770   fi
15771   sys_lib_dlsearch_path_spec='/usr/lib'
15772   ;;
15773
15774 tpf*)
15775   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15776   version_type=linux
15777   need_lib_prefix=no
15778   need_version=no
15779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780   shlibpath_var=LD_LIBRARY_PATH
15781   shlibpath_overrides_runpath=no
15782   hardcode_into_libs=yes
15783   ;;
15784
15785 uts4*)
15786   version_type=linux
15787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788   soname_spec='${libname}${release}${shared_ext}$major'
15789   shlibpath_var=LD_LIBRARY_PATH
15790   ;;
15791
15792 *)
15793   dynamic_linker=no
15794   ;;
15795 esac
15796 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15797 echo "${ECHO_T}$dynamic_linker" >&6; }
15798 test "$dynamic_linker" = no && can_build_shared=no
15799
15800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15801 if test "$GCC" = yes; then
15802   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15803 fi
15804
15805 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15806   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15807 fi
15808 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15809   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15810 fi
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15849 hardcode_action_CXX=
15850 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15851    test -n "$runpath_var_CXX" ||
15852    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15853
15854   # We can hardcode non-existent directories.
15855   if test "$hardcode_direct_CXX" != no &&
15856      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15857      # have to relink, otherwise we might link with an installed library
15858      # when we should be linking with a yet-to-be-installed one
15859      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15860      test "$hardcode_minus_L_CXX" != no; then
15861     # Linking always hardcodes the temporary library directory.
15862     hardcode_action_CXX=relink
15863   else
15864     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15865     hardcode_action_CXX=immediate
15866   fi
15867 else
15868   # We cannot hardcode anything, or else we can only hardcode existing
15869   # directories.
15870   hardcode_action_CXX=unsupported
15871 fi
15872 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15873 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15874
15875 if test "$hardcode_action_CXX" = relink ||
15876    test "$inherit_rpath_CXX" = yes; then
15877   # Fast installation is not supported
15878   enable_fast_install=no
15879 elif test "$shlibpath_overrides_runpath" = yes ||
15880      test "$enable_shared" = no; then
15881   # Fast installation is not necessary
15882   enable_fast_install=needless
15883 fi
15884
15885
15886
15887
15888
15889
15890
15891   fi # test -n "$compiler"
15892
15893   CC=$lt_save_CC
15894   LDCXX=$LD
15895   LD=$lt_save_LD
15896   GCC=$lt_save_GCC
15897   with_gnu_ld=$lt_save_with_gnu_ld
15898   lt_cv_path_LDCXX=$lt_cv_path_LD
15899   lt_cv_path_LD=$lt_save_path_LD
15900   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15901   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15902 fi # test "$_lt_caught_CXX_error" != yes
15903
15904 ac_ext=c
15905 ac_cpp='$CPP $CPPFLAGS'
15906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922         ac_config_commands="$ac_config_commands libtool"
15923
15924
15925
15926
15927 # Only expand once:
15928
15929
15930
15931
15932 if test x$use_libtool != xno; then
15933    DEFAULT_OBJECT_TYPE=".lo"
15934    DEFAULT_ARCHIVE_TYPE=".la"
15935    DEFAULT_SHARED_OBJECT_TYPE=".la"
15936    LIBTOOL="\$(LIBTOOL)"
15937    LIBTOOL_INSTALL_TARGET="libtool-install"
15938    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15939    LIBTOOL_CLEAN_TARGET="libtool-clean"
15940    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15941 else
15942    DEFAULT_OBJECT_TYPE=".o"
15943    DEFAULT_ARCHIVE_TYPE=".a"
15944    DEFAULT_SHARED_OBJECT_TYPE=".so"
15945    LIBTOOL="# \$(LIBTOOL)"
15946    LIBTOOL_INSTALL_TARGET=""
15947    LIBTOOL_UNINSTALL_TARGET=""
15948    LIBTOOL_CLEAN_TARGET=""
15949    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15950 fi
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961 # Check whether --enable-includes was given.
15962 if test "${enable_includes+set}" = set; then
15963   enableval=$enable_includes;
15964        if test x$enableval = xyes; then
15965           install_includes=yes
15966        fi
15967
15968
15969 fi
15970
15971
15972
15973 if test x$use_libtool != xno -a x$install_includes = xyes; then
15974    INCLUDE_INSTALL_TARGET="install-includes"
15975    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15976 else
15977    INCLUDE_INSTALL_TARGET=""
15978    INCLUDE_UNINSTALL_TARGET=""
15979 fi
15980
15981
15982
15983
15984 { echo "$as_me:$LINENO: checking host system type" >&5
15985 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15986 if test "${ac_cv_host+set}" = set; then
15987   echo $ECHO_N "(cached) $ECHO_C" >&6
15988 else
15989   if test "x$host_alias" = x; then
15990   ac_cv_host=$ac_cv_build
15991 else
15992   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15993     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15994 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15995    { (exit 1); exit 1; }; }
15996 fi
15997
15998 fi
15999 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16000 echo "${ECHO_T}$ac_cv_host" >&6; }
16001 case $ac_cv_host in
16002 *-*-*) ;;
16003 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16004 echo "$as_me: error: invalid value of canonical host" >&2;}
16005    { (exit 1); exit 1; }; };;
16006 esac
16007 host=$ac_cv_host
16008 ac_save_IFS=$IFS; IFS='-'
16009 set x $ac_cv_host
16010 shift
16011 host_cpu=$1
16012 host_vendor=$2
16013 shift; shift
16014 # Remember, the first character of IFS is used to create $*,
16015 # except with old shells:
16016 host_os=$*
16017 IFS=$ac_save_IFS
16018 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16019
16020
16021 case $host_os in
16022   *cygwin* ) CYGWIN=yes;;
16023          * ) CYGWIN=no;;
16024 esac
16025
16026 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16027 then
16028
16029
16030 if $TRUEPRG; then
16031   HAVE_SUN_OS_TRUE=
16032   HAVE_SUN_OS_FALSE='#'
16033 else
16034   HAVE_SUN_OS_TRUE='#'
16035   HAVE_SUN_OS_FALSE=
16036 fi
16037         cat >>confdefs.h <<\_ACEOF
16038 #define HAVE_SUN_OS 1
16039 _ACEOF
16040
16041 else
16042
16043
16044 if $FALSEPRG; then
16045   HAVE_SUN_OS_TRUE=
16046   HAVE_SUN_OS_FALSE='#'
16047 else
16048   HAVE_SUN_OS_TRUE='#'
16049   HAVE_SUN_OS_FALSE=
16050 fi
16051 fi
16052
16053 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16054 then
16055
16056
16057 if $TRUEPRG; then
16058   HAVE_OSF1_OS_TRUE=
16059   HAVE_OSF1_OS_FALSE='#'
16060 else
16061   HAVE_OSF1_OS_TRUE='#'
16062   HAVE_OSF1_OS_FALSE=
16063 fi
16064         cat >>confdefs.h <<\_ACEOF
16065 #define HAVE_OSF1_OS 1
16066 _ACEOF
16067
16068 else
16069
16070
16071 if $FALSEPRG; then
16072   HAVE_OSF1_OS_TRUE=
16073   HAVE_OSF1_OS_FALSE='#'
16074 else
16075   HAVE_OSF1_OS_TRUE='#'
16076   HAVE_OSF1_OS_FALSE=
16077 fi
16078 fi
16079
16080 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16081 then
16082
16083
16084 if $TRUEPRG; then
16085   HAVE_AIX_OS_TRUE=
16086   HAVE_AIX_OS_FALSE='#'
16087 else
16088   HAVE_AIX_OS_TRUE='#'
16089   HAVE_AIX_OS_FALSE=
16090 fi
16091         cat >>confdefs.h <<\_ACEOF
16092 #define HAVE_AIX_OS 1
16093 _ACEOF
16094
16095 else
16096
16097
16098 if $FALSEPRG; then
16099   HAVE_AIX_OS_TRUE=
16100   HAVE_AIX_OS_FALSE='#'
16101 else
16102   HAVE_AIX_OS_TRUE='#'
16103   HAVE_AIX_OS_FALSE=
16104 fi
16105 fi
16106
16107 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16108 then
16109
16110
16111 if $TRUEPRG; then
16112   HAVE_HPUX_OS_TRUE=
16113   HAVE_HPUX_OS_FALSE='#'
16114 else
16115   HAVE_HPUX_OS_TRUE='#'
16116   HAVE_HPUX_OS_FALSE=
16117 fi
16118         cat >>confdefs.h <<\_ACEOF
16119 #define HAVE_HPUX_OS 1
16120 _ACEOF
16121
16122 else
16123
16124
16125 if $FALSEPRG; then
16126   HAVE_HPUX_OS_TRUE=
16127   HAVE_HPUX_OS_FALSE='#'
16128 else
16129   HAVE_HPUX_OS_TRUE='#'
16130   HAVE_HPUX_OS_FALSE=
16131 fi
16132 fi
16133
16134 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16135 then
16136
16137
16138 if $TRUEPRG; then
16139   HAVE_LINUX_OS_TRUE=
16140   HAVE_LINUX_OS_FALSE='#'
16141 else
16142   HAVE_LINUX_OS_TRUE='#'
16143   HAVE_LINUX_OS_FALSE=
16144 fi
16145         cat >>confdefs.h <<\_ACEOF
16146 #define HAVE_LINUX_OS 1
16147 _ACEOF
16148
16149 else
16150
16151
16152 if $FALSEPRG; then
16153   HAVE_LINUX_OS_TRUE=
16154   HAVE_LINUX_OS_FALSE='#'
16155 else
16156   HAVE_LINUX_OS_TRUE='#'
16157   HAVE_LINUX_OS_FALSE=
16158 fi
16159 fi
16160
16161 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16162 then
16163
16164
16165 if $TRUEPRG; then
16166   HAVE_FREEBSD_OS_TRUE=
16167   HAVE_FREEBSD_OS_FALSE='#'
16168 else
16169   HAVE_FREEBSD_OS_TRUE='#'
16170   HAVE_FREEBSD_OS_FALSE=
16171 fi
16172         cat >>confdefs.h <<\_ACEOF
16173 #define HAVE_FREEBSD_OS 1
16174 _ACEOF
16175
16176 else
16177
16178
16179 if $FALSEPRG; then
16180   HAVE_FREEBSD_OS_TRUE=
16181   HAVE_FREEBSD_OS_FALSE='#'
16182 else
16183   HAVE_FREEBSD_OS_TRUE='#'
16184   HAVE_FREEBSD_OS_FALSE=
16185 fi
16186 fi
16187
16188 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16189 then
16190
16191
16192 if $TRUEPRG; then
16193   HAVE_NETBSD_OS_TRUE=
16194   HAVE_NETBSD_OS_FALSE='#'
16195 else
16196   HAVE_NETBSD_OS_TRUE='#'
16197   HAVE_NETBSD_OS_FALSE=
16198 fi
16199         cat >>confdefs.h <<\_ACEOF
16200 #define HAVE_NETBSD_OS 1
16201 _ACEOF
16202
16203 else
16204
16205
16206 if $FALSEPRG; then
16207   HAVE_NETBSD_OS_TRUE=
16208   HAVE_NETBSD_OS_FALSE='#'
16209 else
16210   HAVE_NETBSD_OS_TRUE='#'
16211   HAVE_NETBSD_OS_FALSE=
16212 fi
16213 fi
16214
16215 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16216 then
16217
16218
16219 if $TRUEPRG; then
16220   HAVE_OPENBSD_OS_TRUE=
16221   HAVE_OPENBSD_OS_FALSE='#'
16222 else
16223   HAVE_OPENBSD_OS_TRUE='#'
16224   HAVE_OPENBSD_OS_FALSE=
16225 fi
16226         cat >>confdefs.h <<\_ACEOF
16227 #define HAVE_OPENBSD_OS 1
16228 _ACEOF
16229
16230 else
16231
16232
16233 if $FALSEPRG; then
16234   HAVE_OPENBSD_OS_TRUE=
16235   HAVE_OPENBSD_OS_FALSE='#'
16236 else
16237   HAVE_OPENBSD_OS_TRUE='#'
16238   HAVE_OPENBSD_OS_FALSE=
16239 fi
16240 fi
16241
16242 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16243 then
16244
16245
16246 if $TRUEPRG; then
16247   HAVE_BSDI_OS_TRUE=
16248   HAVE_BSDI_OS_FALSE='#'
16249 else
16250   HAVE_BSDI_OS_TRUE='#'
16251   HAVE_BSDI_OS_FALSE=
16252 fi
16253         cat >>confdefs.h <<\_ACEOF
16254 #define HAVE_BSDI_OS 1
16255 _ACEOF
16256
16257 else
16258
16259
16260 if $FALSEPRG; then
16261   HAVE_BSDI_OS_TRUE=
16262   HAVE_BSDI_OS_FALSE='#'
16263 else
16264   HAVE_BSDI_OS_TRUE='#'
16265   HAVE_BSDI_OS_FALSE=
16266 fi
16267 fi
16268
16269 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16270 then
16271
16272
16273 if $TRUEPRG; then
16274   HAVE_SGI_OS_TRUE=
16275   HAVE_SGI_OS_FALSE='#'
16276 else
16277   HAVE_SGI_OS_TRUE='#'
16278   HAVE_SGI_OS_FALSE=
16279 fi
16280         cat >>confdefs.h <<\_ACEOF
16281 #define HAVE_SGI_OS 1
16282 _ACEOF
16283
16284 else
16285
16286
16287 if $FALSEPRG; then
16288   HAVE_SGI_OS_TRUE=
16289   HAVE_SGI_OS_FALSE='#'
16290 else
16291   HAVE_SGI_OS_TRUE='#'
16292   HAVE_SGI_OS_FALSE=
16293 fi
16294 fi
16295
16296 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16297 then
16298
16299
16300 if $TRUEPRG; then
16301   HAVE_IRIX_OS_TRUE=
16302   HAVE_IRIX_OS_FALSE='#'
16303 else
16304   HAVE_IRIX_OS_TRUE='#'
16305   HAVE_IRIX_OS_FALSE=
16306 fi
16307         cat >>confdefs.h <<\_ACEOF
16308 #define HAVE_IRIX_OS 1
16309 _ACEOF
16310
16311 else
16312
16313
16314 if $FALSEPRG; then
16315   HAVE_IRIX_OS_TRUE=
16316   HAVE_IRIX_OS_FALSE='#'
16317 else
16318   HAVE_IRIX_OS_TRUE='#'
16319   HAVE_IRIX_OS_FALSE=
16320 fi
16321 fi
16322
16323 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16324 then
16325
16326
16327 if $TRUEPRG; then
16328   HAVE_DARWIN_OS_TRUE=
16329   HAVE_DARWIN_OS_FALSE='#'
16330 else
16331   HAVE_DARWIN_OS_TRUE='#'
16332   HAVE_DARWIN_OS_FALSE=
16333 fi
16334     cat >>confdefs.h <<\_ACEOF
16335 #define HAVE_DARWIN_OS 1
16336 _ACEOF
16337
16338 else
16339
16340
16341 if $FALSEPRG; then
16342   HAVE_DARWIN_OS_TRUE=
16343   HAVE_DARWIN_OS_FALSE='#'
16344 else
16345   HAVE_DARWIN_OS_TRUE='#'
16346   HAVE_DARWIN_OS_FALSE=
16347 fi
16348 fi
16349
16350
16351 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16352 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16353 if test "x$DISTNAME" != "x"
16354 then
16355         echo "distname set to $DISTNAME"
16356 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16357 then
16358         DISTNAME=alpha
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16360 then
16361         DISTNAME=aix
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16363 then
16364         DISTNAME=hpux
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16366 then
16367         DISTNAME=solaris
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16369 then
16370         DISTNAME=freebsd
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16372 then
16373         DISTNAME=netbsd
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16375 then
16376         DISTNAME=openbsd
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16378 then
16379         DISTNAME=irix
16380 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16381 then
16382         DISTNAME=bsdi
16383 elif test -f /etc/SuSE-release
16384 then
16385         DISTNAME=suse
16386 elif test -d /etc/SuSEconfig
16387 then
16388         DISTNAME=suse5
16389 elif test -f /etc/mandrake-release
16390 then
16391         DISTNAME=mandrake
16392 elif test -f /etc/whitebox-release
16393 then
16394        DISTNAME=redhat
16395 elif test -f /etc/redhat-release
16396 then
16397         DISTNAME=redhat
16398 elif test -f /etc/gentoo-release
16399 then
16400         DISTNAME=gentoo
16401 elif test -f /etc/debian_version
16402 then
16403         DISTNAME=debian
16404 elif test -f /etc/slackware-version
16405 then
16406         DISTNAME=slackware
16407 elif test x$host_vendor = xapple
16408 then
16409     DISTNAME=osx
16410 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16411 then
16412     DISTNAME=darwin
16413 elif test -f /etc/engarde-version
16414 then
16415         DISTNAME=engarde
16416 elif test "$CYGWIN" = yes
16417 then
16418         DISTNAME=cygwin
16419         cat >>confdefs.h <<\_ACEOF
16420 #define HAVE_CYGWIN 1
16421 _ACEOF
16422
16423 else
16424         DISTNAME=unknown
16425 fi
16426 { echo "$as_me:$LINENO: result: done" >&5
16427 echo "${ECHO_T}done" >&6; }
16428
16429
16430 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16431 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16432 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16433 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16434   echo $ECHO_N "(cached) $ECHO_C" >&6
16435 else
16436   cat >conftest.make <<\_ACEOF
16437 SHELL = /bin/sh
16438 all:
16439         @echo '@@@%%%=$(MAKE)=@@@%%%'
16440 _ACEOF
16441 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16442 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16443   *@@@%%%=?*=@@@%%%*)
16444     eval ac_cv_prog_make_${ac_make}_set=yes;;
16445   *)
16446     eval ac_cv_prog_make_${ac_make}_set=no;;
16447 esac
16448 rm -f conftest.make
16449 fi
16450 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16451   { echo "$as_me:$LINENO: result: yes" >&5
16452 echo "${ECHO_T}yes" >&6; }
16453   SET_MAKE=
16454 else
16455   { echo "$as_me:$LINENO: result: no" >&5
16456 echo "${ECHO_T}no" >&6; }
16457   SET_MAKE="MAKE=${MAKE-make}"
16458 fi
16459
16460
16461
16462         MKINSTALLDIRS=
16463   if test -n "$ac_aux_dir"; then
16464     case "$ac_aux_dir" in
16465       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16466       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16467     esac
16468   fi
16469   if test -z "$MKINSTALLDIRS"; then
16470     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16471   fi
16472
16473
16474
16475   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16476 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16477     # Check whether --enable-nls was given.
16478 if test "${enable_nls+set}" = set; then
16479   enableval=$enable_nls; USE_NLS=$enableval
16480 else
16481   USE_NLS=yes
16482 fi
16483
16484   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16485 echo "${ECHO_T}$USE_NLS" >&6; }
16486
16487
16488
16489
16490
16491
16492 # Prepare PATH_SEPARATOR.
16493 # The user is always right.
16494 if test "${PATH_SEPARATOR+set}" != set; then
16495   echo "#! /bin/sh" >conf$$.sh
16496   echo  "exit 0"   >>conf$$.sh
16497   chmod +x conf$$.sh
16498   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16499     PATH_SEPARATOR=';'
16500   else
16501     PATH_SEPARATOR=:
16502   fi
16503   rm -f conf$$.sh
16504 fi
16505
16506 # Find out how to test for executable files. Don't use a zero-byte file,
16507 # as systems may use methods other than mode bits to determine executability.
16508 cat >conf$$.file <<_ASEOF
16509 #! /bin/sh
16510 exit 0
16511 _ASEOF
16512 chmod +x conf$$.file
16513 if test -x conf$$.file >/dev/null 2>&1; then
16514   ac_executable_p="test -x"
16515 else
16516   ac_executable_p="test -f"
16517 fi
16518 rm -f conf$$.file
16519
16520 # Extract the first word of "msgfmt", so it can be a program name with args.
16521 set dummy msgfmt; ac_word=$2
16522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16524 if test "${ac_cv_path_MSGFMT+set}" = set; then
16525   echo $ECHO_N "(cached) $ECHO_C" >&6
16526 else
16527   case "$MSGFMT" in
16528   [\\/]* | ?:[\\/]*)
16529     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16530     ;;
16531   *)
16532     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16533     for ac_dir in $PATH; do
16534       IFS="$ac_save_IFS"
16535       test -z "$ac_dir" && ac_dir=.
16536       for ac_exec_ext in '' $ac_executable_extensions; do
16537         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16538           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16539           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16540      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16541             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16542             break 2
16543           fi
16544         fi
16545       done
16546     done
16547     IFS="$ac_save_IFS"
16548   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16549     ;;
16550 esac
16551 fi
16552 MSGFMT="$ac_cv_path_MSGFMT"
16553 if test "$MSGFMT" != ":"; then
16554   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16555 echo "${ECHO_T}$MSGFMT" >&6; }
16556 else
16557   { echo "$as_me:$LINENO: result: no" >&5
16558 echo "${ECHO_T}no" >&6; }
16559 fi
16560
16561   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16562 set dummy gmsgfmt; ac_word=$2
16563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16565 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16566   echo $ECHO_N "(cached) $ECHO_C" >&6
16567 else
16568   case $GMSGFMT in
16569   [\\/]* | ?:[\\/]*)
16570   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16571   ;;
16572   *)
16573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16574 for as_dir in $PATH
16575 do
16576   IFS=$as_save_IFS
16577   test -z "$as_dir" && as_dir=.
16578   for ac_exec_ext in '' $ac_executable_extensions; do
16579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16580     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16582     break 2
16583   fi
16584 done
16585 done
16586 IFS=$as_save_IFS
16587
16588   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16589   ;;
16590 esac
16591 fi
16592 GMSGFMT=$ac_cv_path_GMSGFMT
16593 if test -n "$GMSGFMT"; then
16594   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16595 echo "${ECHO_T}$GMSGFMT" >&6; }
16596 else
16597   { echo "$as_me:$LINENO: result: no" >&5
16598 echo "${ECHO_T}no" >&6; }
16599 fi
16600
16601
16602
16603
16604 # Prepare PATH_SEPARATOR.
16605 # The user is always right.
16606 if test "${PATH_SEPARATOR+set}" != set; then
16607   echo "#! /bin/sh" >conf$$.sh
16608   echo  "exit 0"   >>conf$$.sh
16609   chmod +x conf$$.sh
16610   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16611     PATH_SEPARATOR=';'
16612   else
16613     PATH_SEPARATOR=:
16614   fi
16615   rm -f conf$$.sh
16616 fi
16617
16618 # Find out how to test for executable files. Don't use a zero-byte file,
16619 # as systems may use methods other than mode bits to determine executability.
16620 cat >conf$$.file <<_ASEOF
16621 #! /bin/sh
16622 exit 0
16623 _ASEOF
16624 chmod +x conf$$.file
16625 if test -x conf$$.file >/dev/null 2>&1; then
16626   ac_executable_p="test -x"
16627 else
16628   ac_executable_p="test -f"
16629 fi
16630 rm -f conf$$.file
16631
16632 # Extract the first word of "xgettext", so it can be a program name with args.
16633 set dummy xgettext; ac_word=$2
16634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16636 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16637   echo $ECHO_N "(cached) $ECHO_C" >&6
16638 else
16639   case "$XGETTEXT" in
16640   [\\/]* | ?:[\\/]*)
16641     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16642     ;;
16643   *)
16644     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16645     for ac_dir in $PATH; do
16646       IFS="$ac_save_IFS"
16647       test -z "$ac_dir" && ac_dir=.
16648       for ac_exec_ext in '' $ac_executable_extensions; do
16649         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16650           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16651           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16652      (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
16653             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16654             break 2
16655           fi
16656         fi
16657       done
16658     done
16659     IFS="$ac_save_IFS"
16660   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16661     ;;
16662 esac
16663 fi
16664 XGETTEXT="$ac_cv_path_XGETTEXT"
16665 if test "$XGETTEXT" != ":"; then
16666   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16667 echo "${ECHO_T}$XGETTEXT" >&6; }
16668 else
16669   { echo "$as_me:$LINENO: result: no" >&5
16670 echo "${ECHO_T}no" >&6; }
16671 fi
16672
16673     rm -f messages.po
16674
16675
16676 # Prepare PATH_SEPARATOR.
16677 # The user is always right.
16678 if test "${PATH_SEPARATOR+set}" != set; then
16679   echo "#! /bin/sh" >conf$$.sh
16680   echo  "exit 0"   >>conf$$.sh
16681   chmod +x conf$$.sh
16682   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16683     PATH_SEPARATOR=';'
16684   else
16685     PATH_SEPARATOR=:
16686   fi
16687   rm -f conf$$.sh
16688 fi
16689
16690 # Find out how to test for executable files. Don't use a zero-byte file,
16691 # as systems may use methods other than mode bits to determine executability.
16692 cat >conf$$.file <<_ASEOF
16693 #! /bin/sh
16694 exit 0
16695 _ASEOF
16696 chmod +x conf$$.file
16697 if test -x conf$$.file >/dev/null 2>&1; then
16698   ac_executable_p="test -x"
16699 else
16700   ac_executable_p="test -f"
16701 fi
16702 rm -f conf$$.file
16703
16704 # Extract the first word of "msgmerge", so it can be a program name with args.
16705 set dummy msgmerge; ac_word=$2
16706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16708 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16709   echo $ECHO_N "(cached) $ECHO_C" >&6
16710 else
16711   case "$MSGMERGE" in
16712   [\\/]* | ?:[\\/]*)
16713     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16714     ;;
16715   *)
16716     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16717     for ac_dir in $PATH; do
16718       IFS="$ac_save_IFS"
16719       test -z "$ac_dir" && ac_dir=.
16720       for ac_exec_ext in '' $ac_executable_extensions; do
16721         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16722           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16723           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16724             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16725             break 2
16726           fi
16727         fi
16728       done
16729     done
16730     IFS="$ac_save_IFS"
16731   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16732     ;;
16733 esac
16734 fi
16735 MSGMERGE="$ac_cv_path_MSGMERGE"
16736 if test "$MSGMERGE" != ":"; then
16737   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16738 echo "${ECHO_T}$MSGMERGE" >&6; }
16739 else
16740   { echo "$as_me:$LINENO: result: no" >&5
16741 echo "${ECHO_T}no" >&6; }
16742 fi
16743
16744
16745       if test "$GMSGFMT" != ":"; then
16746             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16747        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16748       : ;
16749     else
16750       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16751       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16752 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16753       GMSGFMT=":"
16754     fi
16755   fi
16756
16757       if test "$XGETTEXT" != ":"; then
16758             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16759        (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
16760       : ;
16761     else
16762       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16763 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16764       XGETTEXT=":"
16765     fi
16766         rm -f messages.po
16767   fi
16768
16769   ac_config_commands="$ac_config_commands default-1"
16770
16771
16772
16773       if test "X$prefix" = "XNONE"; then
16774     acl_final_prefix="$ac_default_prefix"
16775   else
16776     acl_final_prefix="$prefix"
16777   fi
16778   if test "X$exec_prefix" = "XNONE"; then
16779     acl_final_exec_prefix='${prefix}'
16780   else
16781     acl_final_exec_prefix="$exec_prefix"
16782   fi
16783   acl_save_prefix="$prefix"
16784   prefix="$acl_final_prefix"
16785   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16786   prefix="$acl_save_prefix"
16787
16788
16789 # Check whether --with-gnu-ld was given.
16790 if test "${with_gnu_ld+set}" = set; then
16791   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16792 else
16793   with_gnu_ld=no
16794 fi
16795
16796 # Prepare PATH_SEPARATOR.
16797 # The user is always right.
16798 if test "${PATH_SEPARATOR+set}" != set; then
16799   echo "#! /bin/sh" >conf$$.sh
16800   echo  "exit 0"   >>conf$$.sh
16801   chmod +x conf$$.sh
16802   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16803     PATH_SEPARATOR=';'
16804   else
16805     PATH_SEPARATOR=:
16806   fi
16807   rm -f conf$$.sh
16808 fi
16809 ac_prog=ld
16810 if test "$GCC" = yes; then
16811   # Check if gcc -print-prog-name=ld gives a path.
16812   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16813 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16814   case $host in
16815   *-*-mingw*)
16816     # gcc leaves a trailing carriage return which upsets mingw
16817     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16818   *)
16819     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16820   esac
16821   case $ac_prog in
16822     # Accept absolute paths.
16823     [\\/]* | [A-Za-z]:[\\/]*)
16824       re_direlt='/[^/][^/]*/\.\./'
16825       # Canonicalize the path of ld
16826       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16827       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16828         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16829       done
16830       test -z "$LD" && LD="$ac_prog"
16831       ;;
16832   "")
16833     # If it fails, then pretend we aren't using GCC.
16834     ac_prog=ld
16835     ;;
16836   *)
16837     # If it is relative, then search for the first ld in PATH.
16838     with_gnu_ld=unknown
16839     ;;
16840   esac
16841 elif test "$with_gnu_ld" = yes; then
16842   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16843 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16844 else
16845   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16846 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16847 fi
16848 if test "${acl_cv_path_LD+set}" = set; then
16849   echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851   if test -z "$LD"; then
16852   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16853   for ac_dir in $PATH; do
16854     test -z "$ac_dir" && ac_dir=.
16855     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16856       acl_cv_path_LD="$ac_dir/$ac_prog"
16857       # Check to see if the program is GNU ld.  I'd rather use --version,
16858       # but apparently some GNU ld's only accept -v.
16859       # Break only if it was the GNU/non-GNU ld that we prefer.
16860       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16861       *GNU* | *'with BFD'*)
16862         test "$with_gnu_ld" != no && break ;;
16863       *)
16864         test "$with_gnu_ld" != yes && break ;;
16865       esac
16866     fi
16867   done
16868   IFS="$ac_save_ifs"
16869 else
16870   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16871 fi
16872 fi
16873
16874 LD="$acl_cv_path_LD"
16875 if test -n "$LD"; then
16876   { echo "$as_me:$LINENO: result: $LD" >&5
16877 echo "${ECHO_T}$LD" >&6; }
16878 else
16879   { echo "$as_me:$LINENO: result: no" >&5
16880 echo "${ECHO_T}no" >&6; }
16881 fi
16882 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16883 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16884    { (exit 1); exit 1; }; }
16885 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16886 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16887 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16888   echo $ECHO_N "(cached) $ECHO_C" >&6
16889 else
16890   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16891 case `$LD -v 2>&1 </dev/null` in
16892 *GNU* | *'with BFD'*)
16893   acl_cv_prog_gnu_ld=yes ;;
16894 *)
16895   acl_cv_prog_gnu_ld=no ;;
16896 esac
16897 fi
16898 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16899 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16900 with_gnu_ld=$acl_cv_prog_gnu_ld
16901
16902
16903
16904
16905                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16906 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16907 if test "${acl_cv_rpath+set}" = set; then
16908   echo $ECHO_N "(cached) $ECHO_C" >&6
16909 else
16910
16911     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16912     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16913     . ./conftest.sh
16914     rm -f ./conftest.sh
16915     acl_cv_rpath=done
16916
16917 fi
16918 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16919 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16920   wl="$acl_cv_wl"
16921   libext="$acl_cv_libext"
16922   shlibext="$acl_cv_shlibext"
16923   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16924   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16925   hardcode_direct="$acl_cv_hardcode_direct"
16926   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16927     # Check whether --enable-rpath was given.
16928 if test "${enable_rpath+set}" = set; then
16929   enableval=$enable_rpath; :
16930 else
16931   enable_rpath=yes
16932 fi
16933
16934
16935
16936
16937
16938
16939
16940
16941     use_additional=yes
16942
16943   acl_save_prefix="$prefix"
16944   prefix="$acl_final_prefix"
16945   acl_save_exec_prefix="$exec_prefix"
16946   exec_prefix="$acl_final_exec_prefix"
16947
16948     eval additional_includedir=\"$includedir\"
16949     eval additional_libdir=\"$libdir\"
16950
16951   exec_prefix="$acl_save_exec_prefix"
16952   prefix="$acl_save_prefix"
16953
16954
16955 # Check whether --with-libiconv-prefix was given.
16956 if test "${with_libiconv_prefix+set}" = set; then
16957   withval=$with_libiconv_prefix;
16958     if test "X$withval" = "Xno"; then
16959       use_additional=no
16960     else
16961       if test "X$withval" = "X"; then
16962
16963   acl_save_prefix="$prefix"
16964   prefix="$acl_final_prefix"
16965   acl_save_exec_prefix="$exec_prefix"
16966   exec_prefix="$acl_final_exec_prefix"
16967
16968           eval additional_includedir=\"$includedir\"
16969           eval additional_libdir=\"$libdir\"
16970
16971   exec_prefix="$acl_save_exec_prefix"
16972   prefix="$acl_save_prefix"
16973
16974       else
16975         additional_includedir="$withval/include"
16976         additional_libdir="$withval/lib"
16977       fi
16978     fi
16979
16980 fi
16981
16982       LIBICONV=
16983   LTLIBICONV=
16984   INCICONV=
16985   rpathdirs=
16986   ltrpathdirs=
16987   names_already_handled=
16988   names_next_round='iconv '
16989   while test -n "$names_next_round"; do
16990     names_this_round="$names_next_round"
16991     names_next_round=
16992     for name in $names_this_round; do
16993       already_handled=
16994       for n in $names_already_handled; do
16995         if test "$n" = "$name"; then
16996           already_handled=yes
16997           break
16998         fi
16999       done
17000       if test -z "$already_handled"; then
17001         names_already_handled="$names_already_handled $name"
17002                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17003         eval value=\"\$HAVE_LIB$uppername\"
17004         if test -n "$value"; then
17005           if test "$value" = yes; then
17006             eval value=\"\$LIB$uppername\"
17007             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17008             eval value=\"\$LTLIB$uppername\"
17009             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17010           else
17011                                     :
17012           fi
17013         else
17014                               found_dir=
17015           found_la=
17016           found_so=
17017           found_a=
17018           if test $use_additional = yes; then
17019             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17020               found_dir="$additional_libdir"
17021               found_so="$additional_libdir/lib$name.$shlibext"
17022               if test -f "$additional_libdir/lib$name.la"; then
17023                 found_la="$additional_libdir/lib$name.la"
17024               fi
17025             else
17026               if test -f "$additional_libdir/lib$name.$libext"; then
17027                 found_dir="$additional_libdir"
17028                 found_a="$additional_libdir/lib$name.$libext"
17029                 if test -f "$additional_libdir/lib$name.la"; then
17030                   found_la="$additional_libdir/lib$name.la"
17031                 fi
17032               fi
17033             fi
17034           fi
17035           if test "X$found_dir" = "X"; then
17036             for x in $LDFLAGS $LTLIBICONV; do
17037
17038   acl_save_prefix="$prefix"
17039   prefix="$acl_final_prefix"
17040   acl_save_exec_prefix="$exec_prefix"
17041   exec_prefix="$acl_final_exec_prefix"
17042   eval x=\"$x\"
17043   exec_prefix="$acl_save_exec_prefix"
17044   prefix="$acl_save_prefix"
17045
17046               case "$x" in
17047                 -L*)
17048                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17049                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17050                     found_dir="$dir"
17051                     found_so="$dir/lib$name.$shlibext"
17052                     if test -f "$dir/lib$name.la"; then
17053                       found_la="$dir/lib$name.la"
17054                     fi
17055                   else
17056                     if test -f "$dir/lib$name.$libext"; then
17057                       found_dir="$dir"
17058                       found_a="$dir/lib$name.$libext"
17059                       if test -f "$dir/lib$name.la"; then
17060                         found_la="$dir/lib$name.la"
17061                       fi
17062                     fi
17063                   fi
17064                   ;;
17065               esac
17066               if test "X$found_dir" != "X"; then
17067                 break
17068               fi
17069             done
17070           fi
17071           if test "X$found_dir" != "X"; then
17072                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17073             if test "X$found_so" != "X"; then
17074                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17075                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17076               else
17077                                                                                 haveit=
17078                 for x in $ltrpathdirs; do
17079                   if test "X$x" = "X$found_dir"; then
17080                     haveit=yes
17081                     break
17082                   fi
17083                 done
17084                 if test -z "$haveit"; then
17085                   ltrpathdirs="$ltrpathdirs $found_dir"
17086                 fi
17087                                 if test "$hardcode_direct" = yes; then
17088                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17089                 else
17090                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17091                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17092                                                             haveit=
17093                     for x in $rpathdirs; do
17094                       if test "X$x" = "X$found_dir"; then
17095                         haveit=yes
17096                         break
17097                       fi
17098                     done
17099                     if test -z "$haveit"; then
17100                       rpathdirs="$rpathdirs $found_dir"
17101                     fi
17102                   else
17103                                                                                 haveit=
17104                     for x in $LDFLAGS $LIBICONV; do
17105
17106   acl_save_prefix="$prefix"
17107   prefix="$acl_final_prefix"
17108   acl_save_exec_prefix="$exec_prefix"
17109   exec_prefix="$acl_final_exec_prefix"
17110   eval x=\"$x\"
17111   exec_prefix="$acl_save_exec_prefix"
17112   prefix="$acl_save_prefix"
17113
17114                       if test "X$x" = "X-L$found_dir"; then
17115                         haveit=yes
17116                         break
17117                       fi
17118                     done
17119                     if test -z "$haveit"; then
17120                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17121                     fi
17122                     if test "$hardcode_minus_L" != no; then
17123                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17124                     else
17125                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17126                     fi
17127                   fi
17128                 fi
17129               fi
17130             else
17131               if test "X$found_a" != "X"; then
17132                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17133               else
17134                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17135               fi
17136             fi
17137                         additional_includedir=
17138             case "$found_dir" in
17139               */lib | */lib/)
17140                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17141                 additional_includedir="$basedir/include"
17142                 ;;
17143             esac
17144             if test "X$additional_includedir" != "X"; then
17145                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17146                 haveit=
17147                 if test "X$additional_includedir" = "X/usr/local/include"; then
17148                   if test -n "$GCC"; then
17149                     case $host_os in
17150                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17151                     esac
17152                   fi
17153                 fi
17154                 if test -z "$haveit"; then
17155                   for x in $CPPFLAGS $INCICONV; do
17156
17157   acl_save_prefix="$prefix"
17158   prefix="$acl_final_prefix"
17159   acl_save_exec_prefix="$exec_prefix"
17160   exec_prefix="$acl_final_exec_prefix"
17161   eval x=\"$x\"
17162   exec_prefix="$acl_save_exec_prefix"
17163   prefix="$acl_save_prefix"
17164
17165                     if test "X$x" = "X-I$additional_includedir"; then
17166                       haveit=yes
17167                       break
17168                     fi
17169                   done
17170                   if test -z "$haveit"; then
17171                     if test -d "$additional_includedir"; then
17172                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17173                     fi
17174                   fi
17175                 fi
17176               fi
17177             fi
17178                         if test -n "$found_la"; then
17179                                                         save_libdir="$libdir"
17180               case "$found_la" in
17181                 */* | *\\*) . "$found_la" ;;
17182                 *) . "./$found_la" ;;
17183               esac
17184               libdir="$save_libdir"
17185                             for dep in $dependency_libs; do
17186                 case "$dep" in
17187                   -L*)
17188                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17189                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17190                       haveit=
17191                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17192                         if test -n "$GCC"; then
17193                           case $host_os in
17194                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17195                           esac
17196                         fi
17197                       fi
17198                       if test -z "$haveit"; then
17199                         haveit=
17200                         for x in $LDFLAGS $LIBICONV; do
17201
17202   acl_save_prefix="$prefix"
17203   prefix="$acl_final_prefix"
17204   acl_save_exec_prefix="$exec_prefix"
17205   exec_prefix="$acl_final_exec_prefix"
17206   eval x=\"$x\"
17207   exec_prefix="$acl_save_exec_prefix"
17208   prefix="$acl_save_prefix"
17209
17210                           if test "X$x" = "X-L$additional_libdir"; then
17211                             haveit=yes
17212                             break
17213                           fi
17214                         done
17215                         if test -z "$haveit"; then
17216                           if test -d "$additional_libdir"; then
17217                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17218                           fi
17219                         fi
17220                         haveit=
17221                         for x in $LDFLAGS $LTLIBICONV; do
17222
17223   acl_save_prefix="$prefix"
17224   prefix="$acl_final_prefix"
17225   acl_save_exec_prefix="$exec_prefix"
17226   exec_prefix="$acl_final_exec_prefix"
17227   eval x=\"$x\"
17228   exec_prefix="$acl_save_exec_prefix"
17229   prefix="$acl_save_prefix"
17230
17231                           if test "X$x" = "X-L$additional_libdir"; then
17232                             haveit=yes
17233                             break
17234                           fi
17235                         done
17236                         if test -z "$haveit"; then
17237                           if test -d "$additional_libdir"; then
17238                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17239                           fi
17240                         fi
17241                       fi
17242                     fi
17243                     ;;
17244                   -R*)
17245                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17246                     if test "$enable_rpath" != no; then
17247                                                                   haveit=
17248                       for x in $rpathdirs; do
17249                         if test "X$x" = "X$dir"; then
17250                           haveit=yes
17251                           break
17252                         fi
17253                       done
17254                       if test -z "$haveit"; then
17255                         rpathdirs="$rpathdirs $dir"
17256                       fi
17257                                                                   haveit=
17258                       for x in $ltrpathdirs; do
17259                         if test "X$x" = "X$dir"; then
17260                           haveit=yes
17261                           break
17262                         fi
17263                       done
17264                       if test -z "$haveit"; then
17265                         ltrpathdirs="$ltrpathdirs $dir"
17266                       fi
17267                     fi
17268                     ;;
17269                   -l*)
17270                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17271                     ;;
17272                   *.la)
17273                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17274                     ;;
17275                   *)
17276                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17277                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17278                     ;;
17279                 esac
17280               done
17281             fi
17282           else
17283                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17284             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17285           fi
17286         fi
17287       fi
17288     done
17289   done
17290   if test "X$rpathdirs" != "X"; then
17291     if test -n "$hardcode_libdir_separator"; then
17292                         alldirs=
17293       for found_dir in $rpathdirs; do
17294         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17295       done
17296             acl_save_libdir="$libdir"
17297       libdir="$alldirs"
17298       eval flag=\"$hardcode_libdir_flag_spec\"
17299       libdir="$acl_save_libdir"
17300       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17301     else
17302             for found_dir in $rpathdirs; do
17303         acl_save_libdir="$libdir"
17304         libdir="$found_dir"
17305         eval flag=\"$hardcode_libdir_flag_spec\"
17306         libdir="$acl_save_libdir"
17307         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17308       done
17309     fi
17310   fi
17311   if test "X$ltrpathdirs" != "X"; then
17312             for found_dir in $ltrpathdirs; do
17313       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17314     done
17315   fi
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17335 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17336 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17337   echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339   gt_save_CPPFLAGS="$CPPFLAGS"
17340      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17341      gt_save_LIBS="$LIBS"
17342      LIBS="$LIBS -framework CoreFoundation"
17343      cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h.  */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h.  */
17349 #include <CFPreferences.h>
17350 int
17351 main ()
17352 {
17353 CFPreferencesCopyAppValue(NULL, NULL)
17354   ;
17355   return 0;
17356 }
17357 _ACEOF
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (ac_try="$ac_link"
17360 case "(($ac_try" in
17361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362   *) ac_try_echo=$ac_try;;
17363 esac
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365   (eval "$ac_link") 2>conftest.er1
17366   ac_status=$?
17367   grep -v '^ *+' conftest.er1 >conftest.err
17368   rm -f conftest.er1
17369   cat conftest.err >&5
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); } && {
17372          test -z "$ac_c_werror_flag" ||
17373          test ! -s conftest.err
17374        } && test -s conftest$ac_exeext &&
17375        $as_test_x conftest$ac_exeext; then
17376   gt_cv_func_CFPreferencesCopyAppValue=yes
17377 else
17378   echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17380
17381         gt_cv_func_CFPreferencesCopyAppValue=no
17382 fi
17383
17384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17385       conftest$ac_exeext conftest.$ac_ext
17386      CPPFLAGS="$gt_save_CPPFLAGS"
17387      LIBS="$gt_save_LIBS"
17388 fi
17389 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17390 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17391   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17392
17393 cat >>confdefs.h <<\_ACEOF
17394 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17395 _ACEOF
17396
17397   fi
17398     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17399 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17400 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17401   echo $ECHO_N "(cached) $ECHO_C" >&6
17402 else
17403   gt_save_CPPFLAGS="$CPPFLAGS"
17404      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17405      gt_save_LIBS="$LIBS"
17406      LIBS="$LIBS -framework CoreFoundation"
17407      cat >conftest.$ac_ext <<_ACEOF
17408 /* confdefs.h.  */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h.  */
17413 #include <CFLocale.h>
17414 int
17415 main ()
17416 {
17417 CFLocaleCopyCurrent();
17418   ;
17419   return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426   *) ac_try_echo=$ac_try;;
17427 esac
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429   (eval "$ac_link") 2>conftest.er1
17430   ac_status=$?
17431   grep -v '^ *+' conftest.er1 >conftest.err
17432   rm -f conftest.er1
17433   cat conftest.err >&5
17434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435   (exit $ac_status); } && {
17436          test -z "$ac_c_werror_flag" ||
17437          test ! -s conftest.err
17438        } && test -s conftest$ac_exeext &&
17439        $as_test_x conftest$ac_exeext; then
17440   gt_cv_func_CFLocaleCopyCurrent=yes
17441 else
17442   echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17444
17445         gt_cv_func_CFLocaleCopyCurrent=no
17446 fi
17447
17448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17449       conftest$ac_exeext conftest.$ac_ext
17450      CPPFLAGS="$gt_save_CPPFLAGS"
17451      LIBS="$gt_save_LIBS"
17452 fi
17453 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17454 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17455   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17456
17457 cat >>confdefs.h <<\_ACEOF
17458 #define HAVE_CFLOCALECOPYCURRENT 1
17459 _ACEOF
17460
17461   fi
17462   INTL_MACOSX_LIBS=
17463   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17464     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17465   fi
17466
17467
17468
17469
17470   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17471 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17472     # Check whether --enable-nls was given.
17473 if test "${enable_nls+set}" = set; then
17474   enableval=$enable_nls; USE_NLS=$enableval
17475 else
17476   USE_NLS=yes
17477 fi
17478
17479   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17480 echo "${ECHO_T}$USE_NLS" >&6; }
17481
17482
17483
17484
17485   LIBINTL=
17486   LTLIBINTL=
17487   POSUB=
17488
17489     if test "$USE_NLS" = "yes"; then
17490     gt_use_preinstalled_gnugettext=no
17491
17492
17493
17494
17495
17496
17497         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17498 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17499 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17500   echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502   cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h.  */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h.  */
17508 #include <libintl.h>
17509 extern int _nl_msg_cat_cntr;
17510 extern int *_nl_domain_bindings;
17511 int
17512 main ()
17513 {
17514 bindtextdomain ("", "");
17515 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17516   ;
17517   return 0;
17518 }
17519 _ACEOF
17520 rm -f conftest.$ac_objext conftest$ac_exeext
17521 if { (ac_try="$ac_link"
17522 case "(($ac_try" in
17523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524   *) ac_try_echo=$ac_try;;
17525 esac
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527   (eval "$ac_link") 2>conftest.er1
17528   ac_status=$?
17529   grep -v '^ *+' conftest.er1 >conftest.err
17530   rm -f conftest.er1
17531   cat conftest.err >&5
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); } && {
17534          test -z "$ac_c_werror_flag" ||
17535          test ! -s conftest.err
17536        } && test -s conftest$ac_exeext &&
17537        $as_test_x conftest$ac_exeext; then
17538   gt_cv_func_gnugettext1_libc=yes
17539 else
17540   echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17542
17543         gt_cv_func_gnugettext1_libc=no
17544 fi
17545
17546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17547       conftest$ac_exeext conftest.$ac_ext
17548 fi
17549 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17550 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17551
17552         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17553
17554
17555
17556
17557
17558           am_save_CPPFLAGS="$CPPFLAGS"
17559
17560   for element in $INCICONV; do
17561     haveit=
17562     for x in $CPPFLAGS; do
17563
17564   acl_save_prefix="$prefix"
17565   prefix="$acl_final_prefix"
17566   acl_save_exec_prefix="$exec_prefix"
17567   exec_prefix="$acl_final_exec_prefix"
17568   eval x=\"$x\"
17569   exec_prefix="$acl_save_exec_prefix"
17570   prefix="$acl_save_prefix"
17571
17572       if test "X$x" = "X$element"; then
17573         haveit=yes
17574         break
17575       fi
17576     done
17577     if test -z "$haveit"; then
17578       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17579     fi
17580   done
17581
17582
17583   { echo "$as_me:$LINENO: checking for iconv" >&5
17584 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17585 if test "${am_cv_func_iconv+set}" = set; then
17586   echo $ECHO_N "(cached) $ECHO_C" >&6
17587 else
17588
17589     am_cv_func_iconv="no, consider installing GNU libiconv"
17590     am_cv_lib_iconv=no
17591     cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17597 #include <stdlib.h>
17598 #include <iconv.h>
17599 int
17600 main ()
17601 {
17602 iconv_t cd = iconv_open("","");
17603        iconv(cd,NULL,NULL,NULL,NULL);
17604        iconv_close(cd);
17605   ;
17606   return 0;
17607 }
17608 _ACEOF
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613   *) ac_try_echo=$ac_try;;
17614 esac
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616   (eval "$ac_link") 2>conftest.er1
17617   ac_status=$?
17618   grep -v '^ *+' conftest.er1 >conftest.err
17619   rm -f conftest.er1
17620   cat conftest.err >&5
17621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622   (exit $ac_status); } && {
17623          test -z "$ac_c_werror_flag" ||
17624          test ! -s conftest.err
17625        } && test -s conftest$ac_exeext &&
17626        $as_test_x conftest$ac_exeext; then
17627   am_cv_func_iconv=yes
17628 else
17629   echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17631
17632
17633 fi
17634
17635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17636       conftest$ac_exeext conftest.$ac_ext
17637     if test "$am_cv_func_iconv" != yes; then
17638       am_save_LIBS="$LIBS"
17639       LIBS="$LIBS $LIBICONV"
17640       cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h.  */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h.  */
17646 #include <stdlib.h>
17647 #include <iconv.h>
17648 int
17649 main ()
17650 {
17651 iconv_t cd = iconv_open("","");
17652          iconv(cd,NULL,NULL,NULL,NULL);
17653          iconv_close(cd);
17654   ;
17655   return 0;
17656 }
17657 _ACEOF
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662   *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665   (eval "$ac_link") 2>conftest.er1
17666   ac_status=$?
17667   grep -v '^ *+' conftest.er1 >conftest.err
17668   rm -f conftest.er1
17669   cat conftest.err >&5
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); } && {
17672          test -z "$ac_c_werror_flag" ||
17673          test ! -s conftest.err
17674        } && test -s conftest$ac_exeext &&
17675        $as_test_x conftest$ac_exeext; then
17676   am_cv_lib_iconv=yes
17677         am_cv_func_iconv=yes
17678 else
17679   echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17681
17682
17683 fi
17684
17685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17686       conftest$ac_exeext conftest.$ac_ext
17687       LIBS="$am_save_LIBS"
17688     fi
17689
17690 fi
17691 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17692 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17693   if test "$am_cv_func_iconv" = yes; then
17694
17695 cat >>confdefs.h <<\_ACEOF
17696 #define HAVE_ICONV 1
17697 _ACEOF
17698
17699   fi
17700   if test "$am_cv_lib_iconv" = yes; then
17701     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17702 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17703     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17704 echo "${ECHO_T}$LIBICONV" >&6; }
17705   else
17706             CPPFLAGS="$am_save_CPPFLAGS"
17707     LIBICONV=
17708     LTLIBICONV=
17709   fi
17710
17711
17712
17713
17714
17715
17716     use_additional=yes
17717
17718   acl_save_prefix="$prefix"
17719   prefix="$acl_final_prefix"
17720   acl_save_exec_prefix="$exec_prefix"
17721   exec_prefix="$acl_final_exec_prefix"
17722
17723     eval additional_includedir=\"$includedir\"
17724     eval additional_libdir=\"$libdir\"
17725
17726   exec_prefix="$acl_save_exec_prefix"
17727   prefix="$acl_save_prefix"
17728
17729
17730 # Check whether --with-libintl-prefix was given.
17731 if test "${with_libintl_prefix+set}" = set; then
17732   withval=$with_libintl_prefix;
17733     if test "X$withval" = "Xno"; then
17734       use_additional=no
17735     else
17736       if test "X$withval" = "X"; then
17737
17738   acl_save_prefix="$prefix"
17739   prefix="$acl_final_prefix"
17740   acl_save_exec_prefix="$exec_prefix"
17741   exec_prefix="$acl_final_exec_prefix"
17742
17743           eval additional_includedir=\"$includedir\"
17744           eval additional_libdir=\"$libdir\"
17745
17746   exec_prefix="$acl_save_exec_prefix"
17747   prefix="$acl_save_prefix"
17748
17749       else
17750         additional_includedir="$withval/include"
17751         additional_libdir="$withval/lib"
17752       fi
17753     fi
17754
17755 fi
17756
17757       LIBINTL=
17758   LTLIBINTL=
17759   INCINTL=
17760   rpathdirs=
17761   ltrpathdirs=
17762   names_already_handled=
17763   names_next_round='intl '
17764   while test -n "$names_next_round"; do
17765     names_this_round="$names_next_round"
17766     names_next_round=
17767     for name in $names_this_round; do
17768       already_handled=
17769       for n in $names_already_handled; do
17770         if test "$n" = "$name"; then
17771           already_handled=yes
17772           break
17773         fi
17774       done
17775       if test -z "$already_handled"; then
17776         names_already_handled="$names_already_handled $name"
17777                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17778         eval value=\"\$HAVE_LIB$uppername\"
17779         if test -n "$value"; then
17780           if test "$value" = yes; then
17781             eval value=\"\$LIB$uppername\"
17782             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17783             eval value=\"\$LTLIB$uppername\"
17784             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17785           else
17786                                     :
17787           fi
17788         else
17789                               found_dir=
17790           found_la=
17791           found_so=
17792           found_a=
17793           if test $use_additional = yes; then
17794             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17795               found_dir="$additional_libdir"
17796               found_so="$additional_libdir/lib$name.$shlibext"
17797               if test -f "$additional_libdir/lib$name.la"; then
17798                 found_la="$additional_libdir/lib$name.la"
17799               fi
17800             else
17801               if test -f "$additional_libdir/lib$name.$libext"; then
17802                 found_dir="$additional_libdir"
17803                 found_a="$additional_libdir/lib$name.$libext"
17804                 if test -f "$additional_libdir/lib$name.la"; then
17805                   found_la="$additional_libdir/lib$name.la"
17806                 fi
17807               fi
17808             fi
17809           fi
17810           if test "X$found_dir" = "X"; then
17811             for x in $LDFLAGS $LTLIBINTL; do
17812
17813   acl_save_prefix="$prefix"
17814   prefix="$acl_final_prefix"
17815   acl_save_exec_prefix="$exec_prefix"
17816   exec_prefix="$acl_final_exec_prefix"
17817   eval x=\"$x\"
17818   exec_prefix="$acl_save_exec_prefix"
17819   prefix="$acl_save_prefix"
17820
17821               case "$x" in
17822                 -L*)
17823                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17824                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17825                     found_dir="$dir"
17826                     found_so="$dir/lib$name.$shlibext"
17827                     if test -f "$dir/lib$name.la"; then
17828                       found_la="$dir/lib$name.la"
17829                     fi
17830                   else
17831                     if test -f "$dir/lib$name.$libext"; then
17832                       found_dir="$dir"
17833                       found_a="$dir/lib$name.$libext"
17834                       if test -f "$dir/lib$name.la"; then
17835                         found_la="$dir/lib$name.la"
17836                       fi
17837                     fi
17838                   fi
17839                   ;;
17840               esac
17841               if test "X$found_dir" != "X"; then
17842                 break
17843               fi
17844             done
17845           fi
17846           if test "X$found_dir" != "X"; then
17847                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17848             if test "X$found_so" != "X"; then
17849                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17850                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17851               else
17852                                                                                 haveit=
17853                 for x in $ltrpathdirs; do
17854                   if test "X$x" = "X$found_dir"; then
17855                     haveit=yes
17856                     break
17857                   fi
17858                 done
17859                 if test -z "$haveit"; then
17860                   ltrpathdirs="$ltrpathdirs $found_dir"
17861                 fi
17862                                 if test "$hardcode_direct" = yes; then
17863                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17864                 else
17865                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17866                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17867                                                             haveit=
17868                     for x in $rpathdirs; do
17869                       if test "X$x" = "X$found_dir"; then
17870                         haveit=yes
17871                         break
17872                       fi
17873                     done
17874                     if test -z "$haveit"; then
17875                       rpathdirs="$rpathdirs $found_dir"
17876                     fi
17877                   else
17878                                                                                 haveit=
17879                     for x in $LDFLAGS $LIBINTL; do
17880
17881   acl_save_prefix="$prefix"
17882   prefix="$acl_final_prefix"
17883   acl_save_exec_prefix="$exec_prefix"
17884   exec_prefix="$acl_final_exec_prefix"
17885   eval x=\"$x\"
17886   exec_prefix="$acl_save_exec_prefix"
17887   prefix="$acl_save_prefix"
17888
17889                       if test "X$x" = "X-L$found_dir"; then
17890                         haveit=yes
17891                         break
17892                       fi
17893                     done
17894                     if test -z "$haveit"; then
17895                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17896                     fi
17897                     if test "$hardcode_minus_L" != no; then
17898                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17899                     else
17900                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17901                     fi
17902                   fi
17903                 fi
17904               fi
17905             else
17906               if test "X$found_a" != "X"; then
17907                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17908               else
17909                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17910               fi
17911             fi
17912                         additional_includedir=
17913             case "$found_dir" in
17914               */lib | */lib/)
17915                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17916                 additional_includedir="$basedir/include"
17917                 ;;
17918             esac
17919             if test "X$additional_includedir" != "X"; then
17920                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17921                 haveit=
17922                 if test "X$additional_includedir" = "X/usr/local/include"; then
17923                   if test -n "$GCC"; then
17924                     case $host_os in
17925                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17926                     esac
17927                   fi
17928                 fi
17929                 if test -z "$haveit"; then
17930                   for x in $CPPFLAGS $INCINTL; do
17931
17932   acl_save_prefix="$prefix"
17933   prefix="$acl_final_prefix"
17934   acl_save_exec_prefix="$exec_prefix"
17935   exec_prefix="$acl_final_exec_prefix"
17936   eval x=\"$x\"
17937   exec_prefix="$acl_save_exec_prefix"
17938   prefix="$acl_save_prefix"
17939
17940                     if test "X$x" = "X-I$additional_includedir"; then
17941                       haveit=yes
17942                       break
17943                     fi
17944                   done
17945                   if test -z "$haveit"; then
17946                     if test -d "$additional_includedir"; then
17947                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17948                     fi
17949                   fi
17950                 fi
17951               fi
17952             fi
17953                         if test -n "$found_la"; then
17954                                                         save_libdir="$libdir"
17955               case "$found_la" in
17956                 */* | *\\*) . "$found_la" ;;
17957                 *) . "./$found_la" ;;
17958               esac
17959               libdir="$save_libdir"
17960                             for dep in $dependency_libs; do
17961                 case "$dep" in
17962                   -L*)
17963                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17964                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17965                       haveit=
17966                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17967                         if test -n "$GCC"; then
17968                           case $host_os in
17969                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17970                           esac
17971                         fi
17972                       fi
17973                       if test -z "$haveit"; then
17974                         haveit=
17975                         for x in $LDFLAGS $LIBINTL; do
17976
17977   acl_save_prefix="$prefix"
17978   prefix="$acl_final_prefix"
17979   acl_save_exec_prefix="$exec_prefix"
17980   exec_prefix="$acl_final_exec_prefix"
17981   eval x=\"$x\"
17982   exec_prefix="$acl_save_exec_prefix"
17983   prefix="$acl_save_prefix"
17984
17985                           if test "X$x" = "X-L$additional_libdir"; then
17986                             haveit=yes
17987                             break
17988                           fi
17989                         done
17990                         if test -z "$haveit"; then
17991                           if test -d "$additional_libdir"; then
17992                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17993                           fi
17994                         fi
17995                         haveit=
17996                         for x in $LDFLAGS $LTLIBINTL; do
17997
17998   acl_save_prefix="$prefix"
17999   prefix="$acl_final_prefix"
18000   acl_save_exec_prefix="$exec_prefix"
18001   exec_prefix="$acl_final_exec_prefix"
18002   eval x=\"$x\"
18003   exec_prefix="$acl_save_exec_prefix"
18004   prefix="$acl_save_prefix"
18005
18006                           if test "X$x" = "X-L$additional_libdir"; then
18007                             haveit=yes
18008                             break
18009                           fi
18010                         done
18011                         if test -z "$haveit"; then
18012                           if test -d "$additional_libdir"; then
18013                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18014                           fi
18015                         fi
18016                       fi
18017                     fi
18018                     ;;
18019                   -R*)
18020                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18021                     if test "$enable_rpath" != no; then
18022                                                                   haveit=
18023                       for x in $rpathdirs; do
18024                         if test "X$x" = "X$dir"; then
18025                           haveit=yes
18026                           break
18027                         fi
18028                       done
18029                       if test -z "$haveit"; then
18030                         rpathdirs="$rpathdirs $dir"
18031                       fi
18032                                                                   haveit=
18033                       for x in $ltrpathdirs; do
18034                         if test "X$x" = "X$dir"; then
18035                           haveit=yes
18036                           break
18037                         fi
18038                       done
18039                       if test -z "$haveit"; then
18040                         ltrpathdirs="$ltrpathdirs $dir"
18041                       fi
18042                     fi
18043                     ;;
18044                   -l*)
18045                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18046                     ;;
18047                   *.la)
18048                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18049                     ;;
18050                   *)
18051                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18052                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18053                     ;;
18054                 esac
18055               done
18056             fi
18057           else
18058                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18059             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18060           fi
18061         fi
18062       fi
18063     done
18064   done
18065   if test "X$rpathdirs" != "X"; then
18066     if test -n "$hardcode_libdir_separator"; then
18067                         alldirs=
18068       for found_dir in $rpathdirs; do
18069         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18070       done
18071             acl_save_libdir="$libdir"
18072       libdir="$alldirs"
18073       eval flag=\"$hardcode_libdir_flag_spec\"
18074       libdir="$acl_save_libdir"
18075       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18076     else
18077             for found_dir in $rpathdirs; do
18078         acl_save_libdir="$libdir"
18079         libdir="$found_dir"
18080         eval flag=\"$hardcode_libdir_flag_spec\"
18081         libdir="$acl_save_libdir"
18082         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18083       done
18084     fi
18085   fi
18086   if test "X$ltrpathdirs" != "X"; then
18087             for found_dir in $ltrpathdirs; do
18088       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18089     done
18090   fi
18091
18092           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18093 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18094 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18095   echo $ECHO_N "(cached) $ECHO_C" >&6
18096 else
18097   gt_save_CPPFLAGS="$CPPFLAGS"
18098             CPPFLAGS="$CPPFLAGS $INCINTL"
18099             gt_save_LIBS="$LIBS"
18100             LIBS="$LIBS $LIBINTL"
18101                         cat >conftest.$ac_ext <<_ACEOF
18102 /* confdefs.h.  */
18103 _ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h.  */
18107 #include <libintl.h>
18108 extern int _nl_msg_cat_cntr;
18109 extern
18110 #ifdef __cplusplus
18111 "C"
18112 #endif
18113 const char *_nl_expand_alias (const char *);
18114 int
18115 main ()
18116 {
18117 bindtextdomain ("", "");
18118 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18119   ;
18120   return 0;
18121 }
18122 _ACEOF
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127   *) ac_try_echo=$ac_try;;
18128 esac
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130   (eval "$ac_link") 2>conftest.er1
18131   ac_status=$?
18132   grep -v '^ *+' conftest.er1 >conftest.err
18133   rm -f conftest.er1
18134   cat conftest.err >&5
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); } && {
18137          test -z "$ac_c_werror_flag" ||
18138          test ! -s conftest.err
18139        } && test -s conftest$ac_exeext &&
18140        $as_test_x conftest$ac_exeext; then
18141   gt_cv_func_gnugettext1_libintl=yes
18142 else
18143   echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18145
18146         gt_cv_func_gnugettext1_libintl=no
18147 fi
18148
18149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18150       conftest$ac_exeext conftest.$ac_ext
18151                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18152               LIBS="$LIBS $LIBICONV"
18153               cat >conftest.$ac_ext <<_ACEOF
18154 /* confdefs.h.  */
18155 _ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h.  */
18159 #include <libintl.h>
18160 extern int _nl_msg_cat_cntr;
18161 extern
18162 #ifdef __cplusplus
18163 "C"
18164 #endif
18165 const char *_nl_expand_alias (const char *);
18166 int
18167 main ()
18168 {
18169 bindtextdomain ("", "");
18170 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18171   ;
18172   return 0;
18173 }
18174 _ACEOF
18175 rm -f conftest.$ac_objext conftest$ac_exeext
18176 if { (ac_try="$ac_link"
18177 case "(($ac_try" in
18178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179   *) ac_try_echo=$ac_try;;
18180 esac
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182   (eval "$ac_link") 2>conftest.er1
18183   ac_status=$?
18184   grep -v '^ *+' conftest.er1 >conftest.err
18185   rm -f conftest.er1
18186   cat conftest.err >&5
18187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188   (exit $ac_status); } && {
18189          test -z "$ac_c_werror_flag" ||
18190          test ! -s conftest.err
18191        } && test -s conftest$ac_exeext &&
18192        $as_test_x conftest$ac_exeext; then
18193   LIBINTL="$LIBINTL $LIBICONV"
18194                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18195                 gt_cv_func_gnugettext1_libintl=yes
18196
18197 else
18198   echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201
18202 fi
18203
18204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18205       conftest$ac_exeext conftest.$ac_ext
18206             fi
18207             CPPFLAGS="$gt_save_CPPFLAGS"
18208             LIBS="$gt_save_LIBS"
18209 fi
18210 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18211 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18212         fi
18213
18214                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18215            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18216                 && test "$PACKAGE" != gettext-runtime \
18217                 && test "$PACKAGE" != gettext-tools; }; then
18218           gt_use_preinstalled_gnugettext=yes
18219         else
18220                     LIBINTL=
18221           LTLIBINTL=
18222           INCINTL=
18223         fi
18224
18225
18226
18227     if test -n "$INTL_MACOSX_LIBS"; then
18228       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18229          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18230                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18231         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18232       fi
18233     fi
18234
18235     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18236        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18237
18238 cat >>confdefs.h <<\_ACEOF
18239 #define ENABLE_NLS 1
18240 _ACEOF
18241
18242     else
18243       USE_NLS=no
18244     fi
18245   fi
18246
18247   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18248 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18249   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18250 echo "${ECHO_T}$USE_NLS" >&6; }
18251   if test "$USE_NLS" = "yes"; then
18252     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18253 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18254     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18255       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18256         gt_source="external libintl"
18257       else
18258         gt_source="libc"
18259       fi
18260     else
18261       gt_source="included intl directory"
18262     fi
18263     { echo "$as_me:$LINENO: result: $gt_source" >&5
18264 echo "${ECHO_T}$gt_source" >&6; }
18265   fi
18266
18267   if test "$USE_NLS" = "yes"; then
18268
18269     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18270       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18271         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18272 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18273         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18274 echo "${ECHO_T}$LIBINTL" >&6; }
18275
18276   for element in $INCINTL; do
18277     haveit=
18278     for x in $CPPFLAGS; do
18279
18280   acl_save_prefix="$prefix"
18281   prefix="$acl_final_prefix"
18282   acl_save_exec_prefix="$exec_prefix"
18283   exec_prefix="$acl_final_exec_prefix"
18284   eval x=\"$x\"
18285   exec_prefix="$acl_save_exec_prefix"
18286   prefix="$acl_save_prefix"
18287
18288       if test "X$x" = "X$element"; then
18289         haveit=yes
18290         break
18291       fi
18292     done
18293     if test -z "$haveit"; then
18294       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18295     fi
18296   done
18297
18298       fi
18299
18300
18301 cat >>confdefs.h <<\_ACEOF
18302 #define HAVE_GETTEXT 1
18303 _ACEOF
18304
18305
18306 cat >>confdefs.h <<\_ACEOF
18307 #define HAVE_DCGETTEXT 1
18308 _ACEOF
18309
18310     fi
18311
18312         POSUB=po
18313   fi
18314
18315
18316
18317     INTLLIBS="$LIBINTL"
18318
18319
18320
18321
18322
18323
18324
18325 if test x${prefix} = xNONE ; then
18326    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18327       sysconfdir=/etc/bacula
18328    fi
18329
18330    if test `eval echo ${libdir}` = NONE/lib ; then
18331       libdir=/usr/lib
18332    fi
18333
18334    if test `eval echo ${includedir}` = NONE/include ; then
18335       includedir=/usr/include
18336    fi
18337
18338    if test `eval echo ${datarootdir}` = NONE/share ; then
18339       datarootdir=/usr/share
18340    fi
18341    prefix=
18342 fi
18343
18344 if test x${exec_prefix} = xNONE ; then
18345    exec_prefix=${prefix}
18346 fi
18347
18348 sysconfdir=`eval echo ${sysconfdir}`
18349 datarootdir=`eval echo ${datarootdir}`
18350 docdir=`eval echo ${docdir}`
18351 htmldir=`eval echo ${htmldir}`
18352 libdir=`eval echo ${libdir}`
18353 includedir=`eval echo ${includedir}`
18354 localedir=`eval echo ${datarootdir}/locale`
18355 cat >>confdefs.h <<_ACEOF
18356 #define SYSCONFDIR "$sysconfdir"
18357 _ACEOF
18358
18359 cat >>confdefs.h <<_ACEOF
18360 #define LOCALEDIR "$localedir"
18361 _ACEOF
18362
18363
18364 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18365    sbindir=${exec_prefix}/sbin
18366 fi
18367 sbindir=`eval echo ${sbindir}`
18368
18369 if test x$mandir = x'${prefix}/man' ; then
18370    mandir=/usr/share/man
18371 fi
18372
18373 if test x$htmldir = x${docdir} ; then
18374    htmldir=`eval echo ${docdir}bacula/html`
18375 fi
18376
18377 if test x$docdir = x'/usr/share/doc/' ; then
18378    docdir=`eval echo ${docdir}bacula`
18379 fi
18380
18381
18382 for ac_prog in msgfmt
18383 do
18384   # Extract the first word of "$ac_prog", so it can be a program name with args.
18385 set dummy $ac_prog; ac_word=$2
18386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18388 if test "${ac_cv_path_MSGFMT+set}" = set; then
18389   echo $ECHO_N "(cached) $ECHO_C" >&6
18390 else
18391   case $MSGFMT in
18392   [\\/]* | ?:[\\/]*)
18393   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18394   ;;
18395   *)
18396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18397 for as_dir in $PATH
18398 do
18399   IFS=$as_save_IFS
18400   test -z "$as_dir" && as_dir=.
18401   for ac_exec_ext in '' $ac_executable_extensions; do
18402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18403     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18405     break 2
18406   fi
18407 done
18408 done
18409 IFS=$as_save_IFS
18410
18411   ;;
18412 esac
18413 fi
18414 MSGFMT=$ac_cv_path_MSGFMT
18415 if test -n "$MSGFMT"; then
18416   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18417 echo "${ECHO_T}$MSGFMT" >&6; }
18418 else
18419   { echo "$as_me:$LINENO: result: no" >&5
18420 echo "${ECHO_T}no" >&6; }
18421 fi
18422
18423
18424   test -n "$MSGFMT" && break
18425 done
18426 test -n "$MSGFMT" || MSGFMT="no"
18427
18428 if test "$MSGFMT" = "no"
18429 then
18430    echo 'msgfmt program not found, disabling NLS !'
18431    USE_NLS=no
18432    USE_INCLUDED_LIBINTL=no
18433 #else
18434
18435     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18436 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18437 if test "${ac_cv_gnu_library_2+set}" = set; then
18438   echo $ECHO_N "(cached) $ECHO_C" >&6
18439 else
18440   cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h.  */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h.  */
18446
18447 #include <features.h>
18448 #ifdef __GNU_LIBRARY__
18449  #if (__GLIBC__ >= 2)
18450   Lucky GNU user
18451  #endif
18452 #endif
18453
18454 _ACEOF
18455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18456   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18457   ac_cv_gnu_library_2=yes
18458 else
18459   ac_cv_gnu_library_2=no
18460 fi
18461 rm -f conftest*
18462
18463
18464
18465 fi
18466 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18467 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18468
18469     GLIBC2="$ac_cv_gnu_library_2"
18470
18471
18472 if test -n "$ac_tool_prefix"; then
18473   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18477 if test "${ac_cv_prog_RANLIB+set}" = set; then
18478   echo $ECHO_N "(cached) $ECHO_C" >&6
18479 else
18480   if test -n "$RANLIB"; then
18481   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18482 else
18483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18484 for as_dir in $PATH
18485 do
18486   IFS=$as_save_IFS
18487   test -z "$as_dir" && as_dir=.
18488   for ac_exec_ext in '' $ac_executable_extensions; do
18489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18490     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18492     break 2
18493   fi
18494 done
18495 done
18496 IFS=$as_save_IFS
18497
18498 fi
18499 fi
18500 RANLIB=$ac_cv_prog_RANLIB
18501 if test -n "$RANLIB"; then
18502   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18503 echo "${ECHO_T}$RANLIB" >&6; }
18504 else
18505   { echo "$as_me:$LINENO: result: no" >&5
18506 echo "${ECHO_T}no" >&6; }
18507 fi
18508
18509
18510 fi
18511 if test -z "$ac_cv_prog_RANLIB"; then
18512   ac_ct_RANLIB=$RANLIB
18513   # Extract the first word of "ranlib", so it can be a program name with args.
18514 set dummy ranlib; ac_word=$2
18515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18517 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18518   echo $ECHO_N "(cached) $ECHO_C" >&6
18519 else
18520   if test -n "$ac_ct_RANLIB"; then
18521   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18522 else
18523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18524 for as_dir in $PATH
18525 do
18526   IFS=$as_save_IFS
18527   test -z "$as_dir" && as_dir=.
18528   for ac_exec_ext in '' $ac_executable_extensions; do
18529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18530     ac_cv_prog_ac_ct_RANLIB="ranlib"
18531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18532     break 2
18533   fi
18534 done
18535 done
18536 IFS=$as_save_IFS
18537
18538 fi
18539 fi
18540 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18541 if test -n "$ac_ct_RANLIB"; then
18542   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18543 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18544 else
18545   { echo "$as_me:$LINENO: result: no" >&5
18546 echo "${ECHO_T}no" >&6; }
18547 fi
18548
18549   if test "x$ac_ct_RANLIB" = x; then
18550     RANLIB=":"
18551   else
18552     case $cross_compiling:$ac_tool_warned in
18553 yes:)
18554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18555 whose name does not start with the host triplet.  If you think this
18556 configuration is useful to you, please write to autoconf@gnu.org." >&5
18557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18558 whose name does not start with the host triplet.  If you think this
18559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18560 ac_tool_warned=yes ;;
18561 esac
18562     RANLIB=$ac_ct_RANLIB
18563   fi
18564 else
18565   RANLIB="$ac_cv_prog_RANLIB"
18566 fi
18567
18568
18569         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18570 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18571 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18572   echo $ECHO_N "(cached) $ECHO_C" >&6
18573 else
18574   ac_check_lib_save_LIBS=$LIBS
18575 LIBS="-lcposix  $LIBS"
18576 cat >conftest.$ac_ext <<_ACEOF
18577 /* confdefs.h.  */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h.  */
18582
18583 /* Override any GCC internal prototype to avoid an error.
18584    Use char because int might match the return type of a GCC
18585    builtin and then its argument prototype would still apply.  */
18586 #ifdef __cplusplus
18587 extern "C"
18588 #endif
18589 char strerror ();
18590 int
18591 main ()
18592 {
18593 return strerror ();
18594   ;
18595   return 0;
18596 }
18597 _ACEOF
18598 rm -f conftest.$ac_objext conftest$ac_exeext
18599 if { (ac_try="$ac_link"
18600 case "(($ac_try" in
18601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602   *) ac_try_echo=$ac_try;;
18603 esac
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605   (eval "$ac_link") 2>conftest.er1
18606   ac_status=$?
18607   grep -v '^ *+' conftest.er1 >conftest.err
18608   rm -f conftest.er1
18609   cat conftest.err >&5
18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); } && {
18612          test -z "$ac_c_werror_flag" ||
18613          test ! -s conftest.err
18614        } && test -s conftest$ac_exeext &&
18615        $as_test_x conftest$ac_exeext; then
18616   ac_cv_lib_cposix_strerror=yes
18617 else
18618   echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18620
18621         ac_cv_lib_cposix_strerror=no
18622 fi
18623
18624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18625       conftest$ac_exeext conftest.$ac_ext
18626 LIBS=$ac_check_lib_save_LIBS
18627 fi
18628 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18629 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18630 if test $ac_cv_lib_cposix_strerror = yes; then
18631   LIBS="$LIBS -lcposix"
18632 fi
18633
18634
18635
18636 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18637 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18638 if test "${ac_cv_c_const+set}" = set; then
18639   echo $ECHO_N "(cached) $ECHO_C" >&6
18640 else
18641   cat >conftest.$ac_ext <<_ACEOF
18642 /* confdefs.h.  */
18643 _ACEOF
18644 cat confdefs.h >>conftest.$ac_ext
18645 cat >>conftest.$ac_ext <<_ACEOF
18646 /* end confdefs.h.  */
18647
18648 int
18649 main ()
18650 {
18651 /* FIXME: Include the comments suggested by Paul. */
18652 #ifndef __cplusplus
18653   /* Ultrix mips cc rejects this.  */
18654   typedef int charset[2];
18655   const charset cs;
18656   /* SunOS 4.1.1 cc rejects this.  */
18657   char const *const *pcpcc;
18658   char **ppc;
18659   /* NEC SVR4.0.2 mips cc rejects this.  */
18660   struct point {int x, y;};
18661   static struct point const zero = {0,0};
18662   /* AIX XL C 1.02.0.0 rejects this.
18663      It does not let you subtract one const X* pointer from another in
18664      an arm of an if-expression whose if-part is not a constant
18665      expression */
18666   const char *g = "string";
18667   pcpcc = &g + (g ? g-g : 0);
18668   /* HPUX 7.0 cc rejects these. */
18669   ++pcpcc;
18670   ppc = (char**) pcpcc;
18671   pcpcc = (char const *const *) ppc;
18672   { /* SCO 3.2v4 cc rejects this.  */
18673     char *t;
18674     char const *s = 0 ? (char *) 0 : (char const *) 0;
18675
18676     *t++ = 0;
18677     if (s) return 0;
18678   }
18679   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18680     int x[] = {25, 17};
18681     const int *foo = &x[0];
18682     ++foo;
18683   }
18684   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18685     typedef const int *iptr;
18686     iptr p = 0;
18687     ++p;
18688   }
18689   { /* AIX XL C 1.02.0.0 rejects this saying
18690        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18691     struct s { int j; const int *ap[3]; };
18692     struct s *b; b->j = 5;
18693   }
18694   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18695     const int foo = 10;
18696     if (!foo) return 0;
18697   }
18698   return !cs[0] && !zero.x;
18699 #endif
18700
18701   ;
18702   return 0;
18703 }
18704 _ACEOF
18705 rm -f conftest.$ac_objext
18706 if { (ac_try="$ac_compile"
18707 case "(($ac_try" in
18708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709   *) ac_try_echo=$ac_try;;
18710 esac
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712   (eval "$ac_compile") 2>conftest.er1
18713   ac_status=$?
18714   grep -v '^ *+' conftest.er1 >conftest.err
18715   rm -f conftest.er1
18716   cat conftest.err >&5
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); } && {
18719          test -z "$ac_c_werror_flag" ||
18720          test ! -s conftest.err
18721        } && test -s conftest.$ac_objext; then
18722   ac_cv_c_const=yes
18723 else
18724   echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18726
18727         ac_cv_c_const=no
18728 fi
18729
18730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18731 fi
18732 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18733 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18734 if test $ac_cv_c_const = no; then
18735
18736 cat >>confdefs.h <<\_ACEOF
18737 #define const
18738 _ACEOF
18739
18740 fi
18741
18742
18743   { echo "$as_me:$LINENO: checking for signed" >&5
18744 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18745 if test "${bh_cv_c_signed+set}" = set; then
18746   echo $ECHO_N "(cached) $ECHO_C" >&6
18747 else
18748   cat >conftest.$ac_ext <<_ACEOF
18749 /* confdefs.h.  */
18750 _ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h.  */
18754
18755 int
18756 main ()
18757 {
18758 signed char x;
18759   ;
18760   return 0;
18761 }
18762 _ACEOF
18763 rm -f conftest.$ac_objext
18764 if { (ac_try="$ac_compile"
18765 case "(($ac_try" in
18766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767   *) ac_try_echo=$ac_try;;
18768 esac
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770   (eval "$ac_compile") 2>conftest.er1
18771   ac_status=$?
18772   grep -v '^ *+' conftest.er1 >conftest.err
18773   rm -f conftest.er1
18774   cat conftest.err >&5
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); } && {
18777          test -z "$ac_c_werror_flag" ||
18778          test ! -s conftest.err
18779        } && test -s conftest.$ac_objext; then
18780   bh_cv_c_signed=yes
18781 else
18782   echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18784
18785         bh_cv_c_signed=no
18786 fi
18787
18788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18789 fi
18790 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18791 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18792   if test $bh_cv_c_signed = no; then
18793
18794 cat >>confdefs.h <<\_ACEOF
18795 #define signed
18796 _ACEOF
18797
18798   fi
18799
18800 { echo "$as_me:$LINENO: checking for inline" >&5
18801 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18802 if test "${ac_cv_c_inline+set}" = set; then
18803   echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805   ac_cv_c_inline=no
18806 for ac_kw in inline __inline__ __inline; do
18807   cat >conftest.$ac_ext <<_ACEOF
18808 /* confdefs.h.  */
18809 _ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h.  */
18813 #ifndef __cplusplus
18814 typedef int foo_t;
18815 static $ac_kw foo_t static_foo () {return 0; }
18816 $ac_kw foo_t foo () {return 0; }
18817 #endif
18818
18819 _ACEOF
18820 rm -f conftest.$ac_objext
18821 if { (ac_try="$ac_compile"
18822 case "(($ac_try" in
18823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824   *) ac_try_echo=$ac_try;;
18825 esac
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827   (eval "$ac_compile") 2>conftest.er1
18828   ac_status=$?
18829   grep -v '^ *+' conftest.er1 >conftest.err
18830   rm -f conftest.er1
18831   cat conftest.err >&5
18832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833   (exit $ac_status); } && {
18834          test -z "$ac_c_werror_flag" ||
18835          test ! -s conftest.err
18836        } && test -s conftest.$ac_objext; then
18837   ac_cv_c_inline=$ac_kw
18838 else
18839   echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18841
18842
18843 fi
18844
18845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18846   test "$ac_cv_c_inline" != no && break
18847 done
18848
18849 fi
18850 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18851 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18852
18853
18854 case $ac_cv_c_inline in
18855   inline | yes) ;;
18856   *)
18857     case $ac_cv_c_inline in
18858       no) ac_val=;;
18859       *) ac_val=$ac_cv_c_inline;;
18860     esac
18861     cat >>confdefs.h <<_ACEOF
18862 #ifndef __cplusplus
18863 #define inline $ac_val
18864 #endif
18865 _ACEOF
18866     ;;
18867 esac
18868
18869 { echo "$as_me:$LINENO: checking for off_t" >&5
18870 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18871 if test "${ac_cv_type_off_t+set}" = set; then
18872   echo $ECHO_N "(cached) $ECHO_C" >&6
18873 else
18874   cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h.  */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h.  */
18880 $ac_includes_default
18881 typedef off_t ac__type_new_;
18882 int
18883 main ()
18884 {
18885 if ((ac__type_new_ *) 0)
18886   return 0;
18887 if (sizeof (ac__type_new_))
18888   return 0;
18889   ;
18890   return 0;
18891 }
18892 _ACEOF
18893 rm -f conftest.$ac_objext
18894 if { (ac_try="$ac_compile"
18895 case "(($ac_try" in
18896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897   *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900   (eval "$ac_compile") 2>conftest.er1
18901   ac_status=$?
18902   grep -v '^ *+' conftest.er1 >conftest.err
18903   rm -f conftest.er1
18904   cat conftest.err >&5
18905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); } && {
18907          test -z "$ac_c_werror_flag" ||
18908          test ! -s conftest.err
18909        } && test -s conftest.$ac_objext; then
18910   ac_cv_type_off_t=yes
18911 else
18912   echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18914
18915         ac_cv_type_off_t=no
18916 fi
18917
18918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18919 fi
18920 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18921 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18922 if test $ac_cv_type_off_t = yes; then
18923   :
18924 else
18925
18926 cat >>confdefs.h <<_ACEOF
18927 #define off_t long int
18928 _ACEOF
18929
18930 fi
18931
18932 { echo "$as_me:$LINENO: checking for size_t" >&5
18933 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18934 if test "${ac_cv_type_size_t+set}" = set; then
18935   echo $ECHO_N "(cached) $ECHO_C" >&6
18936 else
18937   cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h.  */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h.  */
18943 $ac_includes_default
18944 typedef size_t ac__type_new_;
18945 int
18946 main ()
18947 {
18948 if ((ac__type_new_ *) 0)
18949   return 0;
18950 if (sizeof (ac__type_new_))
18951   return 0;
18952   ;
18953   return 0;
18954 }
18955 _ACEOF
18956 rm -f conftest.$ac_objext
18957 if { (ac_try="$ac_compile"
18958 case "(($ac_try" in
18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960   *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963   (eval "$ac_compile") 2>conftest.er1
18964   ac_status=$?
18965   grep -v '^ *+' conftest.er1 >conftest.err
18966   rm -f conftest.er1
18967   cat conftest.err >&5
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); } && {
18970          test -z "$ac_c_werror_flag" ||
18971          test ! -s conftest.err
18972        } && test -s conftest.$ac_objext; then
18973   ac_cv_type_size_t=yes
18974 else
18975   echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18977
18978         ac_cv_type_size_t=no
18979 fi
18980
18981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18982 fi
18983 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18984 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18985 if test $ac_cv_type_size_t = yes; then
18986   :
18987 else
18988
18989 cat >>confdefs.h <<_ACEOF
18990 #define size_t unsigned int
18991 _ACEOF
18992
18993 fi
18994
18995
18996   { echo "$as_me:$LINENO: checking for long long" >&5
18997 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18998 if test "${ac_cv_type_long_long+set}" = set; then
18999   echo $ECHO_N "(cached) $ECHO_C" >&6
19000 else
19001   cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h.  */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h.  */
19007 long long ll = 1LL; int i = 63;
19008 int
19009 main ()
19010 {
19011 long long llmax = (long long) -1;
19012      return ll << i | ll >> i | llmax / ll | llmax % ll;
19013   ;
19014   return 0;
19015 }
19016 _ACEOF
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021   *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024   (eval "$ac_link") 2>conftest.er1
19025   ac_status=$?
19026   grep -v '^ *+' conftest.er1 >conftest.err
19027   rm -f conftest.er1
19028   cat conftest.err >&5
19029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030   (exit $ac_status); } && {
19031          test -z "$ac_c_werror_flag" ||
19032          test ! -s conftest.err
19033        } && test -s conftest$ac_exeext &&
19034        $as_test_x conftest$ac_exeext; then
19035   ac_cv_type_long_long=yes
19036 else
19037   echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19039
19040         ac_cv_type_long_long=no
19041 fi
19042
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044       conftest$ac_exeext conftest.$ac_ext
19045 fi
19046 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19047 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19048   if test $ac_cv_type_long_long = yes; then
19049
19050 cat >>confdefs.h <<\_ACEOF
19051 #define HAVE_LONG_LONG 1
19052 _ACEOF
19053
19054   fi
19055
19056
19057   { echo "$as_me:$LINENO: checking for long double" >&5
19058 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19059 if test "${gt_cv_c_long_double+set}" = set; then
19060   echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062   if test "$GCC" = yes; then
19063        gt_cv_c_long_double=yes
19064      else
19065        cat >conftest.$ac_ext <<_ACEOF
19066 /* confdefs.h.  */
19067 _ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h.  */
19071
19072          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19073          long double foo = 0.0;
19074          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19075          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19076
19077 int
19078 main ()
19079 {
19080
19081   ;
19082   return 0;
19083 }
19084 _ACEOF
19085 rm -f conftest.$ac_objext
19086 if { (ac_try="$ac_compile"
19087 case "(($ac_try" in
19088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089   *) ac_try_echo=$ac_try;;
19090 esac
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092   (eval "$ac_compile") 2>conftest.er1
19093   ac_status=$?
19094   grep -v '^ *+' conftest.er1 >conftest.err
19095   rm -f conftest.er1
19096   cat conftest.err >&5
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); } && {
19099          test -z "$ac_c_werror_flag" ||
19100          test ! -s conftest.err
19101        } && test -s conftest.$ac_objext; then
19102   gt_cv_c_long_double=yes
19103 else
19104   echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19106
19107         gt_cv_c_long_double=no
19108 fi
19109
19110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19111      fi
19112 fi
19113 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19114 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19115   if test $gt_cv_c_long_double = yes; then
19116
19117 cat >>confdefs.h <<\_ACEOF
19118 #define HAVE_LONG_DOUBLE 1
19119 _ACEOF
19120
19121   fi
19122
19123
19124   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19125 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19126 if test "${gt_cv_c_wchar_t+set}" = set; then
19127   echo $ECHO_N "(cached) $ECHO_C" >&6
19128 else
19129   cat >conftest.$ac_ext <<_ACEOF
19130 /* confdefs.h.  */
19131 _ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h.  */
19135 #include <stddef.h>
19136        wchar_t foo = (wchar_t)'\0';
19137 int
19138 main ()
19139 {
19140
19141   ;
19142   return 0;
19143 }
19144 _ACEOF
19145 rm -f conftest.$ac_objext
19146 if { (ac_try="$ac_compile"
19147 case "(($ac_try" in
19148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149   *) ac_try_echo=$ac_try;;
19150 esac
19151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152   (eval "$ac_compile") 2>conftest.er1
19153   ac_status=$?
19154   grep -v '^ *+' conftest.er1 >conftest.err
19155   rm -f conftest.er1
19156   cat conftest.err >&5
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); } && {
19159          test -z "$ac_c_werror_flag" ||
19160          test ! -s conftest.err
19161        } && test -s conftest.$ac_objext; then
19162   gt_cv_c_wchar_t=yes
19163 else
19164   echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19166
19167         gt_cv_c_wchar_t=no
19168 fi
19169
19170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19171 fi
19172 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19173 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19174   if test $gt_cv_c_wchar_t = yes; then
19175
19176 cat >>confdefs.h <<\_ACEOF
19177 #define HAVE_WCHAR_T 1
19178 _ACEOF
19179
19180   fi
19181
19182
19183   { echo "$as_me:$LINENO: checking for wint_t" >&5
19184 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19185 if test "${gt_cv_c_wint_t+set}" = set; then
19186   echo $ECHO_N "(cached) $ECHO_C" >&6
19187 else
19188   cat >conftest.$ac_ext <<_ACEOF
19189 /* confdefs.h.  */
19190 _ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h.  */
19194 #include <wchar.h>
19195        wint_t foo = (wchar_t)'\0';
19196 int
19197 main ()
19198 {
19199
19200   ;
19201   return 0;
19202 }
19203 _ACEOF
19204 rm -f conftest.$ac_objext
19205 if { (ac_try="$ac_compile"
19206 case "(($ac_try" in
19207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208   *) ac_try_echo=$ac_try;;
19209 esac
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211   (eval "$ac_compile") 2>conftest.er1
19212   ac_status=$?
19213   grep -v '^ *+' conftest.er1 >conftest.err
19214   rm -f conftest.er1
19215   cat conftest.err >&5
19216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217   (exit $ac_status); } && {
19218          test -z "$ac_c_werror_flag" ||
19219          test ! -s conftest.err
19220        } && test -s conftest.$ac_objext; then
19221   gt_cv_c_wint_t=yes
19222 else
19223   echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19225
19226         gt_cv_c_wint_t=no
19227 fi
19228
19229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19230 fi
19231 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19232 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19233   if test $gt_cv_c_wint_t = yes; then
19234
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_WINT_T 1
19237 _ACEOF
19238
19239   fi
19240
19241
19242   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19243 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19244 if test "${gl_cv_header_inttypes_h+set}" = set; then
19245   echo $ECHO_N "(cached) $ECHO_C" >&6
19246 else
19247   cat >conftest.$ac_ext <<_ACEOF
19248 /* confdefs.h.  */
19249 _ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h.  */
19253 #include <sys/types.h>
19254 #include <inttypes.h>
19255 int
19256 main ()
19257 {
19258 uintmax_t i = (uintmax_t) -1;
19259   ;
19260   return 0;
19261 }
19262 _ACEOF
19263 rm -f conftest.$ac_objext
19264 if { (ac_try="$ac_compile"
19265 case "(($ac_try" in
19266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267   *) ac_try_echo=$ac_try;;
19268 esac
19269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270   (eval "$ac_compile") 2>conftest.er1
19271   ac_status=$?
19272   grep -v '^ *+' conftest.er1 >conftest.err
19273   rm -f conftest.er1
19274   cat conftest.err >&5
19275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276   (exit $ac_status); } && {
19277          test -z "$ac_c_werror_flag" ||
19278          test ! -s conftest.err
19279        } && test -s conftest.$ac_objext; then
19280   gl_cv_header_inttypes_h=yes
19281 else
19282   echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19284
19285         gl_cv_header_inttypes_h=no
19286 fi
19287
19288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19289 fi
19290 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19291 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19292   if test $gl_cv_header_inttypes_h = yes; then
19293
19294 cat >>confdefs.h <<_ACEOF
19295 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19296 _ACEOF
19297
19298   fi
19299
19300
19301   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19302 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19303 if test "${gl_cv_header_stdint_h+set}" = set; then
19304   echo $ECHO_N "(cached) $ECHO_C" >&6
19305 else
19306   cat >conftest.$ac_ext <<_ACEOF
19307 /* confdefs.h.  */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h.  */
19312 #include <sys/types.h>
19313 #include <stdint.h>
19314 int
19315 main ()
19316 {
19317 uintmax_t i = (uintmax_t) -1;
19318   ;
19319   return 0;
19320 }
19321 _ACEOF
19322 rm -f conftest.$ac_objext
19323 if { (ac_try="$ac_compile"
19324 case "(($ac_try" in
19325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326   *) ac_try_echo=$ac_try;;
19327 esac
19328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329   (eval "$ac_compile") 2>conftest.er1
19330   ac_status=$?
19331   grep -v '^ *+' conftest.er1 >conftest.err
19332   rm -f conftest.er1
19333   cat conftest.err >&5
19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335   (exit $ac_status); } && {
19336          test -z "$ac_c_werror_flag" ||
19337          test ! -s conftest.err
19338        } && test -s conftest.$ac_objext; then
19339   gl_cv_header_stdint_h=yes
19340 else
19341   echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19343
19344         gl_cv_header_stdint_h=no
19345 fi
19346
19347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19348 fi
19349 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19350 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19351   if test $gl_cv_header_stdint_h = yes; then
19352
19353 cat >>confdefs.h <<_ACEOF
19354 #define HAVE_STDINT_H_WITH_UINTMAX 1
19355 _ACEOF
19356
19357   fi
19358
19359
19360
19361
19362   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19363 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19364 if test "${gt_cv_c_intmax_t+set}" = set; then
19365   echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367   cat >conftest.$ac_ext <<_ACEOF
19368 /* confdefs.h.  */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h.  */
19373
19374 #include <stddef.h>
19375 #include <stdlib.h>
19376 #if HAVE_STDINT_H_WITH_UINTMAX
19377 #include <stdint.h>
19378 #endif
19379 #if HAVE_INTTYPES_H_WITH_UINTMAX
19380 #include <inttypes.h>
19381 #endif
19382
19383 int
19384 main ()
19385 {
19386 intmax_t x = -1;
19387   ;
19388   return 0;
19389 }
19390 _ACEOF
19391 rm -f conftest.$ac_objext
19392 if { (ac_try="$ac_compile"
19393 case "(($ac_try" in
19394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19395   *) ac_try_echo=$ac_try;;
19396 esac
19397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398   (eval "$ac_compile") 2>conftest.er1
19399   ac_status=$?
19400   grep -v '^ *+' conftest.er1 >conftest.err
19401   rm -f conftest.er1
19402   cat conftest.err >&5
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); } && {
19405          test -z "$ac_c_werror_flag" ||
19406          test ! -s conftest.err
19407        } && test -s conftest.$ac_objext; then
19408   gt_cv_c_intmax_t=yes
19409 else
19410   echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19412
19413         gt_cv_c_intmax_t=no
19414 fi
19415
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19417 fi
19418 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19419 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19420   if test $gt_cv_c_intmax_t = yes; then
19421
19422 cat >>confdefs.h <<\_ACEOF
19423 #define HAVE_INTMAX_T 1
19424 _ACEOF
19425
19426   fi
19427
19428
19429
19430   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19431 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19432 if test "${gt_cv_func_printf_posix+set}" = set; then
19433   echo $ECHO_N "(cached) $ECHO_C" >&6
19434 else
19435
19436       if test "$cross_compiling" = yes; then
19437
19438         cat >conftest.$ac_ext <<_ACEOF
19439 /* confdefs.h.  */
19440 _ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h.  */
19444
19445 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19446   notposix
19447 #endif
19448
19449 _ACEOF
19450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19451   $EGREP "notposix" >/dev/null 2>&1; then
19452   gt_cv_func_printf_posix="guessing no"
19453 else
19454   gt_cv_func_printf_posix="guessing yes"
19455 fi
19456 rm -f conftest*
19457
19458
19459 else
19460   cat >conftest.$ac_ext <<_ACEOF
19461 /* confdefs.h.  */
19462 _ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h.  */
19466
19467 #include <stdio.h>
19468 #include <string.h>
19469 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19470    dollar expansion (possibly an autoconf bug).  */
19471 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19472 static char buf[100];
19473 int main ()
19474 {
19475   sprintf (buf, format, 33, 55);
19476   return (strcmp (buf, "55 33") != 0);
19477 }
19478 _ACEOF
19479 rm -f conftest$ac_exeext
19480 if { (ac_try="$ac_link"
19481 case "(($ac_try" in
19482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483   *) ac_try_echo=$ac_try;;
19484 esac
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486   (eval "$ac_link") 2>&5
19487   ac_status=$?
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19490   { (case "(($ac_try" in
19491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492   *) ac_try_echo=$ac_try;;
19493 esac
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495   (eval "$ac_try") 2>&5
19496   ac_status=$?
19497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498   (exit $ac_status); }; }; then
19499   gt_cv_func_printf_posix=yes
19500 else
19501   echo "$as_me: program exited with status $ac_status" >&5
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19504
19505 ( exit $ac_status )
19506 gt_cv_func_printf_posix=no
19507 fi
19508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19509 fi
19510
19511
19512
19513 fi
19514 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19515 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19516   case $gt_cv_func_printf_posix in
19517     *yes)
19518
19519 cat >>confdefs.h <<\_ACEOF
19520 #define HAVE_POSIX_PRINTF 1
19521 _ACEOF
19522
19523       ;;
19524   esac
19525
19526 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19527 # for constant arguments.  Useless!
19528 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19529 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19530 if test "${ac_cv_working_alloca_h+set}" = set; then
19531   echo $ECHO_N "(cached) $ECHO_C" >&6
19532 else
19533   cat >conftest.$ac_ext <<_ACEOF
19534 /* confdefs.h.  */
19535 _ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h.  */
19539 #include <alloca.h>
19540 int
19541 main ()
19542 {
19543 char *p = (char *) alloca (2 * sizeof (int));
19544                           if (p) return 0;
19545   ;
19546   return 0;
19547 }
19548 _ACEOF
19549 rm -f conftest.$ac_objext conftest$ac_exeext
19550 if { (ac_try="$ac_link"
19551 case "(($ac_try" in
19552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553   *) ac_try_echo=$ac_try;;
19554 esac
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556   (eval "$ac_link") 2>conftest.er1
19557   ac_status=$?
19558   grep -v '^ *+' conftest.er1 >conftest.err
19559   rm -f conftest.er1
19560   cat conftest.err >&5
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); } && {
19563          test -z "$ac_c_werror_flag" ||
19564          test ! -s conftest.err
19565        } && test -s conftest$ac_exeext &&
19566        $as_test_x conftest$ac_exeext; then
19567   ac_cv_working_alloca_h=yes
19568 else
19569   echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19571
19572         ac_cv_working_alloca_h=no
19573 fi
19574
19575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19576       conftest$ac_exeext conftest.$ac_ext
19577 fi
19578 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19579 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19580 if test $ac_cv_working_alloca_h = yes; then
19581
19582 cat >>confdefs.h <<\_ACEOF
19583 #define HAVE_ALLOCA_H 1
19584 _ACEOF
19585
19586 fi
19587
19588 { echo "$as_me:$LINENO: checking for alloca" >&5
19589 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19590 if test "${ac_cv_func_alloca_works+set}" = set; then
19591   echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593   cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h.  */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h.  */
19599 #ifdef __GNUC__
19600 # define alloca __builtin_alloca
19601 #else
19602 # ifdef _MSC_VER
19603 #  include <malloc.h>
19604 #  define alloca _alloca
19605 # else
19606 #  ifdef HAVE_ALLOCA_H
19607 #   include <alloca.h>
19608 #  else
19609 #   ifdef _AIX
19610  #pragma alloca
19611 #   else
19612 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19613 char *alloca ();
19614 #    endif
19615 #   endif
19616 #  endif
19617 # endif
19618 #endif
19619
19620 int
19621 main ()
19622 {
19623 char *p = (char *) alloca (1);
19624                                     if (p) return 0;
19625   ;
19626   return 0;
19627 }
19628 _ACEOF
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (ac_try="$ac_link"
19631 case "(($ac_try" in
19632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633   *) ac_try_echo=$ac_try;;
19634 esac
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636   (eval "$ac_link") 2>conftest.er1
19637   ac_status=$?
19638   grep -v '^ *+' conftest.er1 >conftest.err
19639   rm -f conftest.er1
19640   cat conftest.err >&5
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); } && {
19643          test -z "$ac_c_werror_flag" ||
19644          test ! -s conftest.err
19645        } && test -s conftest$ac_exeext &&
19646        $as_test_x conftest$ac_exeext; then
19647   ac_cv_func_alloca_works=yes
19648 else
19649   echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19651
19652         ac_cv_func_alloca_works=no
19653 fi
19654
19655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19656       conftest$ac_exeext conftest.$ac_ext
19657 fi
19658 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19659 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19660
19661 if test $ac_cv_func_alloca_works = yes; then
19662
19663 cat >>confdefs.h <<\_ACEOF
19664 #define HAVE_ALLOCA 1
19665 _ACEOF
19666
19667 else
19668   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19669 # that cause trouble.  Some versions do not even contain alloca or
19670 # contain a buggy version.  If you still want to use their alloca,
19671 # use ar to extract alloca.o from them instead of compiling alloca.c.
19672
19673 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19674
19675 cat >>confdefs.h <<\_ACEOF
19676 #define C_ALLOCA 1
19677 _ACEOF
19678
19679
19680 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19681 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19682 if test "${ac_cv_os_cray+set}" = set; then
19683   echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685   cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h.  */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h.  */
19691 #if defined CRAY && ! defined CRAY2
19692 webecray
19693 #else
19694 wenotbecray
19695 #endif
19696
19697 _ACEOF
19698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19699   $EGREP "webecray" >/dev/null 2>&1; then
19700   ac_cv_os_cray=yes
19701 else
19702   ac_cv_os_cray=no
19703 fi
19704 rm -f conftest*
19705
19706 fi
19707 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19708 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19709 if test $ac_cv_os_cray = yes; then
19710   for ac_func in _getb67 GETB67 getb67; do
19711     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19715   echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717   cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h.  */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h.  */
19723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19725 #define $ac_func innocuous_$ac_func
19726
19727 /* System header to define __stub macros and hopefully few prototypes,
19728     which can conflict with char $ac_func (); below.
19729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19730     <limits.h> exists even on freestanding compilers.  */
19731
19732 #ifdef __STDC__
19733 # include <limits.h>
19734 #else
19735 # include <assert.h>
19736 #endif
19737
19738 #undef $ac_func
19739
19740 /* Override any GCC internal prototype to avoid an error.
19741    Use char because int might match the return type of a GCC
19742    builtin and then its argument prototype would still apply.  */
19743 #ifdef __cplusplus
19744 extern "C"
19745 #endif
19746 char $ac_func ();
19747 /* The GNU C library defines this for functions which it implements
19748     to always fail with ENOSYS.  Some functions are actually named
19749     something starting with __ and the normal name is an alias.  */
19750 #if defined __stub_$ac_func || defined __stub___$ac_func
19751 choke me
19752 #endif
19753
19754 int
19755 main ()
19756 {
19757 return $ac_func ();
19758   ;
19759   return 0;
19760 }
19761 _ACEOF
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (ac_try="$ac_link"
19764 case "(($ac_try" in
19765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766   *) ac_try_echo=$ac_try;;
19767 esac
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769   (eval "$ac_link") 2>conftest.er1
19770   ac_status=$?
19771   grep -v '^ *+' conftest.er1 >conftest.err
19772   rm -f conftest.er1
19773   cat conftest.err >&5
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); } && {
19776          test -z "$ac_c_werror_flag" ||
19777          test ! -s conftest.err
19778        } && test -s conftest$ac_exeext &&
19779        $as_test_x conftest$ac_exeext; then
19780   eval "$as_ac_var=yes"
19781 else
19782   echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785         eval "$as_ac_var=no"
19786 fi
19787
19788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19789       conftest$ac_exeext conftest.$ac_ext
19790 fi
19791 ac_res=`eval echo '${'$as_ac_var'}'`
19792                { echo "$as_me:$LINENO: result: $ac_res" >&5
19793 echo "${ECHO_T}$ac_res" >&6; }
19794 if test `eval echo '${'$as_ac_var'}'` = yes; then
19795
19796 cat >>confdefs.h <<_ACEOF
19797 #define CRAY_STACKSEG_END $ac_func
19798 _ACEOF
19799
19800     break
19801 fi
19802
19803   done
19804 fi
19805
19806 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19807 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19808 if test "${ac_cv_c_stack_direction+set}" = set; then
19809   echo $ECHO_N "(cached) $ECHO_C" >&6
19810 else
19811   if test "$cross_compiling" = yes; then
19812   ac_cv_c_stack_direction=0
19813 else
19814   cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h.  */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h.  */
19820 $ac_includes_default
19821 int
19822 find_stack_direction ()
19823 {
19824   static char *addr = 0;
19825   auto char dummy;
19826   if (addr == 0)
19827     {
19828       addr = &dummy;
19829       return find_stack_direction ();
19830     }
19831   else
19832     return (&dummy > addr) ? 1 : -1;
19833 }
19834
19835 int
19836 main ()
19837 {
19838   return find_stack_direction () < 0;
19839 }
19840 _ACEOF
19841 rm -f conftest$ac_exeext
19842 if { (ac_try="$ac_link"
19843 case "(($ac_try" in
19844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845   *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848   (eval "$ac_link") 2>&5
19849   ac_status=$?
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19852   { (case "(($ac_try" in
19853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854   *) ac_try_echo=$ac_try;;
19855 esac
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857   (eval "$ac_try") 2>&5
19858   ac_status=$?
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); }; }; then
19861   ac_cv_c_stack_direction=1
19862 else
19863   echo "$as_me: program exited with status $ac_status" >&5
19864 echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19866
19867 ( exit $ac_status )
19868 ac_cv_c_stack_direction=-1
19869 fi
19870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19871 fi
19872
19873
19874 fi
19875 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19876 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19877
19878 cat >>confdefs.h <<_ACEOF
19879 #define STACK_DIRECTION $ac_cv_c_stack_direction
19880 _ACEOF
19881
19882
19883 fi
19884
19885
19886
19887 for ac_header in stdlib.h unistd.h
19888 do
19889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19891   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19894   echo $ECHO_N "(cached) $ECHO_C" >&6
19895 fi
19896 ac_res=`eval echo '${'$as_ac_Header'}'`
19897                { echo "$as_me:$LINENO: result: $ac_res" >&5
19898 echo "${ECHO_T}$ac_res" >&6; }
19899 else
19900   # Is the header compilable?
19901 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19903 cat >conftest.$ac_ext <<_ACEOF
19904 /* confdefs.h.  */
19905 _ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h.  */
19909 $ac_includes_default
19910 #include <$ac_header>
19911 _ACEOF
19912 rm -f conftest.$ac_objext
19913 if { (ac_try="$ac_compile"
19914 case "(($ac_try" in
19915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916   *) ac_try_echo=$ac_try;;
19917 esac
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919   (eval "$ac_compile") 2>conftest.er1
19920   ac_status=$?
19921   grep -v '^ *+' conftest.er1 >conftest.err
19922   rm -f conftest.er1
19923   cat conftest.err >&5
19924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925   (exit $ac_status); } && {
19926          test -z "$ac_c_werror_flag" ||
19927          test ! -s conftest.err
19928        } && test -s conftest.$ac_objext; then
19929   ac_header_compiler=yes
19930 else
19931   echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19933
19934         ac_header_compiler=no
19935 fi
19936
19937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19939 echo "${ECHO_T}$ac_header_compiler" >&6; }
19940
19941 # Is the header present?
19942 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19944 cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950 #include <$ac_header>
19951 _ACEOF
19952 if { (ac_try="$ac_cpp conftest.$ac_ext"
19953 case "(($ac_try" in
19954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955   *) ac_try_echo=$ac_try;;
19956 esac
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19959   ac_status=$?
19960   grep -v '^ *+' conftest.er1 >conftest.err
19961   rm -f conftest.er1
19962   cat conftest.err >&5
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); } >/dev/null && {
19965          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19966          test ! -s conftest.err
19967        }; then
19968   ac_header_preproc=yes
19969 else
19970   echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19972
19973   ac_header_preproc=no
19974 fi
19975
19976 rm -f conftest.err conftest.$ac_ext
19977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19978 echo "${ECHO_T}$ac_header_preproc" >&6; }
19979
19980 # So?  What about this header?
19981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19982   yes:no: )
19983     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19987     ac_header_preproc=yes
19988     ;;
19989   no:yes:* )
19990     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19992     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19993 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19994     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19996     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19997 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20000     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20002
20003     ;;
20004 esac
20005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20008   echo $ECHO_N "(cached) $ECHO_C" >&6
20009 else
20010   eval "$as_ac_Header=\$ac_header_preproc"
20011 fi
20012 ac_res=`eval echo '${'$as_ac_Header'}'`
20013                { echo "$as_me:$LINENO: result: $ac_res" >&5
20014 echo "${ECHO_T}$ac_res" >&6; }
20015
20016 fi
20017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20018   cat >>confdefs.h <<_ACEOF
20019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20020 _ACEOF
20021
20022 fi
20023
20024 done
20025
20026
20027 for ac_func in getpagesize
20028 do
20029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20033   echo $ECHO_N "(cached) $ECHO_C" >&6
20034 else
20035   cat >conftest.$ac_ext <<_ACEOF
20036 /* confdefs.h.  */
20037 _ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h.  */
20041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20043 #define $ac_func innocuous_$ac_func
20044
20045 /* System header to define __stub macros and hopefully few prototypes,
20046     which can conflict with char $ac_func (); below.
20047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20048     <limits.h> exists even on freestanding compilers.  */
20049
20050 #ifdef __STDC__
20051 # include <limits.h>
20052 #else
20053 # include <assert.h>
20054 #endif
20055
20056 #undef $ac_func
20057
20058 /* Override any GCC internal prototype to avoid an error.
20059    Use char because int might match the return type of a GCC
20060    builtin and then its argument prototype would still apply.  */
20061 #ifdef __cplusplus
20062 extern "C"
20063 #endif
20064 char $ac_func ();
20065 /* The GNU C library defines this for functions which it implements
20066     to always fail with ENOSYS.  Some functions are actually named
20067     something starting with __ and the normal name is an alias.  */
20068 #if defined __stub_$ac_func || defined __stub___$ac_func
20069 choke me
20070 #endif
20071
20072 int
20073 main ()
20074 {
20075 return $ac_func ();
20076   ;
20077   return 0;
20078 }
20079 _ACEOF
20080 rm -f conftest.$ac_objext conftest$ac_exeext
20081 if { (ac_try="$ac_link"
20082 case "(($ac_try" in
20083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084   *) ac_try_echo=$ac_try;;
20085 esac
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087   (eval "$ac_link") 2>conftest.er1
20088   ac_status=$?
20089   grep -v '^ *+' conftest.er1 >conftest.err
20090   rm -f conftest.er1
20091   cat conftest.err >&5
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); } && {
20094          test -z "$ac_c_werror_flag" ||
20095          test ! -s conftest.err
20096        } && test -s conftest$ac_exeext &&
20097        $as_test_x conftest$ac_exeext; then
20098   eval "$as_ac_var=yes"
20099 else
20100   echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20102
20103         eval "$as_ac_var=no"
20104 fi
20105
20106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20107       conftest$ac_exeext conftest.$ac_ext
20108 fi
20109 ac_res=`eval echo '${'$as_ac_var'}'`
20110                { echo "$as_me:$LINENO: result: $ac_res" >&5
20111 echo "${ECHO_T}$ac_res" >&6; }
20112 if test `eval echo '${'$as_ac_var'}'` = yes; then
20113   cat >>confdefs.h <<_ACEOF
20114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20115 _ACEOF
20116
20117 fi
20118 done
20119
20120 { echo "$as_me:$LINENO: checking for working mmap" >&5
20121 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20122 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20123   echo $ECHO_N "(cached) $ECHO_C" >&6
20124 else
20125   if test "$cross_compiling" = yes; then
20126   ac_cv_func_mmap_fixed_mapped=no
20127 else
20128   cat >conftest.$ac_ext <<_ACEOF
20129 /* confdefs.h.  */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h.  */
20134 $ac_includes_default
20135 /* malloc might have been renamed as rpl_malloc. */
20136 #undef malloc
20137
20138 /* Thanks to Mike Haertel and Jim Avera for this test.
20139    Here is a matrix of mmap possibilities:
20140         mmap private not fixed
20141         mmap private fixed at somewhere currently unmapped
20142         mmap private fixed at somewhere already mapped
20143         mmap shared not fixed
20144         mmap shared fixed at somewhere currently unmapped
20145         mmap shared fixed at somewhere already mapped
20146    For private mappings, we should verify that changes cannot be read()
20147    back from the file, nor mmap's back from the file at a different
20148    address.  (There have been systems where private was not correctly
20149    implemented like the infamous i386 svr4.0, and systems where the
20150    VM page cache was not coherent with the file system buffer cache
20151    like early versions of FreeBSD and possibly contemporary NetBSD.)
20152    For shared mappings, we should conversely verify that changes get
20153    propagated back to all the places they're supposed to be.
20154
20155    Grep wants private fixed already mapped.
20156    The main things grep needs to know about mmap are:
20157    * does it exist and is it safe to write into the mmap'd area
20158    * how to use it (BSD variants)  */
20159
20160 #include <fcntl.h>
20161 #include <sys/mman.h>
20162
20163 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20164 char *malloc ();
20165 #endif
20166
20167 /* This mess was copied from the GNU getpagesize.h.  */
20168 #ifndef HAVE_GETPAGESIZE
20169 /* Assume that all systems that can run configure have sys/param.h.  */
20170 # ifndef HAVE_SYS_PARAM_H
20171 #  define HAVE_SYS_PARAM_H 1
20172 # endif
20173
20174 # ifdef _SC_PAGESIZE
20175 #  define getpagesize() sysconf(_SC_PAGESIZE)
20176 # else /* no _SC_PAGESIZE */
20177 #  ifdef HAVE_SYS_PARAM_H
20178 #   include <sys/param.h>
20179 #   ifdef EXEC_PAGESIZE
20180 #    define getpagesize() EXEC_PAGESIZE
20181 #   else /* no EXEC_PAGESIZE */
20182 #    ifdef NBPG
20183 #     define getpagesize() NBPG * CLSIZE
20184 #     ifndef CLSIZE
20185 #      define CLSIZE 1
20186 #     endif /* no CLSIZE */
20187 #    else /* no NBPG */
20188 #     ifdef NBPC
20189 #      define getpagesize() NBPC
20190 #     else /* no NBPC */
20191 #      ifdef PAGESIZE
20192 #       define getpagesize() PAGESIZE
20193 #      endif /* PAGESIZE */
20194 #     endif /* no NBPC */
20195 #    endif /* no NBPG */
20196 #   endif /* no EXEC_PAGESIZE */
20197 #  else /* no HAVE_SYS_PARAM_H */
20198 #   define getpagesize() 8192   /* punt totally */
20199 #  endif /* no HAVE_SYS_PARAM_H */
20200 # endif /* no _SC_PAGESIZE */
20201
20202 #endif /* no HAVE_GETPAGESIZE */
20203
20204 int
20205 main ()
20206 {
20207   char *data, *data2, *data3;
20208   int i, pagesize;
20209   int fd;
20210
20211   pagesize = getpagesize ();
20212
20213   /* First, make a file with some known garbage in it. */
20214   data = (char *) malloc (pagesize);
20215   if (!data)
20216     return 1;
20217   for (i = 0; i < pagesize; ++i)
20218     *(data + i) = rand ();
20219   umask (0);
20220   fd = creat ("conftest.mmap", 0600);
20221   if (fd < 0)
20222     return 1;
20223   if (write (fd, data, pagesize) != pagesize)
20224     return 1;
20225   close (fd);
20226
20227   /* Next, try to mmap the file at a fixed address which already has
20228      something else allocated at it.  If we can, also make sure that
20229      we see the same garbage.  */
20230   fd = open ("conftest.mmap", O_RDWR);
20231   if (fd < 0)
20232     return 1;
20233   data2 = (char *) malloc (2 * pagesize);
20234   if (!data2)
20235     return 1;
20236   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20237   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20238                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20239     return 1;
20240   for (i = 0; i < pagesize; ++i)
20241     if (*(data + i) != *(data2 + i))
20242       return 1;
20243
20244   /* Finally, make sure that changes to the mapped area do not
20245      percolate back to the file as seen by read().  (This is a bug on
20246      some variants of i386 svr4.0.)  */
20247   for (i = 0; i < pagesize; ++i)
20248     *(data2 + i) = *(data2 + i) + 1;
20249   data3 = (char *) malloc (pagesize);
20250   if (!data3)
20251     return 1;
20252   if (read (fd, data3, pagesize) != pagesize)
20253     return 1;
20254   for (i = 0; i < pagesize; ++i)
20255     if (*(data + i) != *(data3 + i))
20256       return 1;
20257   close (fd);
20258   return 0;
20259 }
20260 _ACEOF
20261 rm -f conftest$ac_exeext
20262 if { (ac_try="$ac_link"
20263 case "(($ac_try" in
20264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265   *) ac_try_echo=$ac_try;;
20266 esac
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268   (eval "$ac_link") 2>&5
20269   ac_status=$?
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20272   { (case "(($ac_try" in
20273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274   *) ac_try_echo=$ac_try;;
20275 esac
20276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20277   (eval "$ac_try") 2>&5
20278   ac_status=$?
20279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280   (exit $ac_status); }; }; then
20281   ac_cv_func_mmap_fixed_mapped=yes
20282 else
20283   echo "$as_me: program exited with status $ac_status" >&5
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20286
20287 ( exit $ac_status )
20288 ac_cv_func_mmap_fixed_mapped=no
20289 fi
20290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20291 fi
20292
20293
20294 fi
20295 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20296 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20297 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20298
20299 cat >>confdefs.h <<\_ACEOF
20300 #define HAVE_MMAP 1
20301 _ACEOF
20302
20303 fi
20304 rm -f conftest.mmap
20305
20306
20307     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20308 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20309 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20310   echo $ECHO_N "(cached) $ECHO_C" >&6
20311 else
20312   cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318
20319 #include <features.h>
20320 #ifdef __GNU_LIBRARY__
20321  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20322   Lucky GNU user
20323  #endif
20324 #endif
20325
20326 _ACEOF
20327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20328   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20329   ac_cv_gnu_library_2_1=yes
20330 else
20331   ac_cv_gnu_library_2_1=no
20332 fi
20333 rm -f conftest*
20334
20335
20336
20337 fi
20338 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20339 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20340
20341     GLIBC21="$ac_cv_gnu_library_2_1"
20342
20343
20344
20345
20346   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20347 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20348 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20349   echo $ECHO_N "(cached) $ECHO_C" >&6
20350 else
20351
20352       if test "$cross_compiling" = yes; then
20353
20354           # Guess based on the CPU.
20355           case "$host_cpu" in
20356             alpha* | i3456786 | m68k | s390*)
20357               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20358             *)
20359               gt_cv_int_divbyzero_sigfpe="guessing no";;
20360           esac
20361
20362 else
20363   cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h.  */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h.  */
20369
20370 #include <stdlib.h>
20371 #include <signal.h>
20372
20373 static void
20374 #ifdef __cplusplus
20375 sigfpe_handler (int sig)
20376 #else
20377 sigfpe_handler (sig) int sig;
20378 #endif
20379 {
20380   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20381   exit (sig != SIGFPE);
20382 }
20383
20384 int x = 1;
20385 int y = 0;
20386 int z;
20387 int nan;
20388
20389 int main ()
20390 {
20391   signal (SIGFPE, sigfpe_handler);
20392 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20393 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20394   signal (SIGTRAP, sigfpe_handler);
20395 #endif
20396 /* Linux/SPARC yields signal SIGILL.  */
20397 #if defined (__sparc__) && defined (__linux__)
20398   signal (SIGILL, sigfpe_handler);
20399 #endif
20400
20401   z = x / y;
20402   nan = y / y;
20403   exit (1);
20404 }
20405
20406 _ACEOF
20407 rm -f conftest$ac_exeext
20408 if { (ac_try="$ac_link"
20409 case "(($ac_try" in
20410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411   *) ac_try_echo=$ac_try;;
20412 esac
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414   (eval "$ac_link") 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20418   { (case "(($ac_try" in
20419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420   *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423   (eval "$ac_try") 2>&5
20424   ac_status=$?
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); }; }; then
20427   gt_cv_int_divbyzero_sigfpe=yes
20428 else
20429   echo "$as_me: program exited with status $ac_status" >&5
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20432
20433 ( exit $ac_status )
20434 gt_cv_int_divbyzero_sigfpe=no
20435 fi
20436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20437 fi
20438
20439
20440
20441 fi
20442 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20443 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20444   case "$gt_cv_int_divbyzero_sigfpe" in
20445     *yes) value=1;;
20446     *) value=0;;
20447   esac
20448
20449 cat >>confdefs.h <<_ACEOF
20450 #define INTDIV0_RAISES_SIGFPE $value
20451 _ACEOF
20452
20453
20454
20455   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20456 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20457 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20458   echo $ECHO_N "(cached) $ECHO_C" >&6
20459 else
20460   cat >conftest.$ac_ext <<_ACEOF
20461 /* confdefs.h.  */
20462 _ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h.  */
20466 unsigned long long ull = 1ULL; int i = 63;
20467 int
20468 main ()
20469 {
20470 unsigned long long ullmax = (unsigned long long) -1;
20471      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20472   ;
20473   return 0;
20474 }
20475 _ACEOF
20476 rm -f conftest.$ac_objext conftest$ac_exeext
20477 if { (ac_try="$ac_link"
20478 case "(($ac_try" in
20479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480   *) ac_try_echo=$ac_try;;
20481 esac
20482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483   (eval "$ac_link") 2>conftest.er1
20484   ac_status=$?
20485   grep -v '^ *+' conftest.er1 >conftest.err
20486   rm -f conftest.er1
20487   cat conftest.err >&5
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); } && {
20490          test -z "$ac_c_werror_flag" ||
20491          test ! -s conftest.err
20492        } && test -s conftest$ac_exeext &&
20493        $as_test_x conftest$ac_exeext; then
20494   ac_cv_type_unsigned_long_long=yes
20495 else
20496   echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498
20499         ac_cv_type_unsigned_long_long=no
20500 fi
20501
20502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20503       conftest$ac_exeext conftest.$ac_ext
20504 fi
20505 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20506 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20507   if test $ac_cv_type_unsigned_long_long = yes; then
20508
20509 cat >>confdefs.h <<\_ACEOF
20510 #define HAVE_UNSIGNED_LONG_LONG 1
20511 _ACEOF
20512
20513   fi
20514
20515
20516
20517
20518   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20519
20520     test $ac_cv_type_unsigned_long_long = yes \
20521       && ac_type='unsigned long long' \
20522       || ac_type='unsigned long'
20523
20524 cat >>confdefs.h <<_ACEOF
20525 #define uintmax_t $ac_type
20526 _ACEOF
20527
20528   else
20529
20530 cat >>confdefs.h <<\_ACEOF
20531 #define HAVE_UINTMAX_T 1
20532 _ACEOF
20533
20534   fi
20535
20536
20537   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20538 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20539 if test "${gt_cv_header_inttypes_h+set}" = set; then
20540   echo $ECHO_N "(cached) $ECHO_C" >&6
20541 else
20542
20543     cat >conftest.$ac_ext <<_ACEOF
20544 /* confdefs.h.  */
20545 _ACEOF
20546 cat confdefs.h >>conftest.$ac_ext
20547 cat >>conftest.$ac_ext <<_ACEOF
20548 /* end confdefs.h.  */
20549 #include <sys/types.h>
20550 #include <inttypes.h>
20551 int
20552 main ()
20553 {
20554
20555   ;
20556   return 0;
20557 }
20558 _ACEOF
20559 rm -f conftest.$ac_objext
20560 if { (ac_try="$ac_compile"
20561 case "(($ac_try" in
20562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563   *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566   (eval "$ac_compile") 2>conftest.er1
20567   ac_status=$?
20568   grep -v '^ *+' conftest.er1 >conftest.err
20569   rm -f conftest.er1
20570   cat conftest.err >&5
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); } && {
20573          test -z "$ac_c_werror_flag" ||
20574          test ! -s conftest.err
20575        } && test -s conftest.$ac_objext; then
20576   gt_cv_header_inttypes_h=yes
20577 else
20578   echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20580
20581         gt_cv_header_inttypes_h=no
20582 fi
20583
20584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20585
20586 fi
20587 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20588 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20589   if test $gt_cv_header_inttypes_h = yes; then
20590
20591 cat >>confdefs.h <<_ACEOF
20592 #define HAVE_INTTYPES_H 1
20593 _ACEOF
20594
20595   fi
20596
20597
20598
20599   if test $gt_cv_header_inttypes_h = yes; then
20600     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20601 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20602 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20603   echo $ECHO_N "(cached) $ECHO_C" >&6
20604 else
20605
20606         cat >conftest.$ac_ext <<_ACEOF
20607 /* confdefs.h.  */
20608 _ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h.  */
20612 #include <inttypes.h>
20613 #ifdef PRId32
20614 char *p = PRId32;
20615 #endif
20616
20617 int
20618 main ()
20619 {
20620
20621   ;
20622   return 0;
20623 }
20624 _ACEOF
20625 rm -f conftest.$ac_objext
20626 if { (ac_try="$ac_compile"
20627 case "(($ac_try" in
20628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629   *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632   (eval "$ac_compile") 2>conftest.er1
20633   ac_status=$?
20634   grep -v '^ *+' conftest.er1 >conftest.err
20635   rm -f conftest.er1
20636   cat conftest.err >&5
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); } && {
20639          test -z "$ac_c_werror_flag" ||
20640          test ! -s conftest.err
20641        } && test -s conftest.$ac_objext; then
20642   gt_cv_inttypes_pri_broken=no
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647         gt_cv_inttypes_pri_broken=yes
20648 fi
20649
20650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20651
20652 fi
20653 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20654 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20655   fi
20656   if test "$gt_cv_inttypes_pri_broken" = yes; then
20657
20658 cat >>confdefs.h <<_ACEOF
20659 #define PRI_MACROS_BROKEN 1
20660 _ACEOF
20661
20662   fi
20663
20664
20665
20666 for ac_header in stdint.h
20667 do
20668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20670   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20673   echo $ECHO_N "(cached) $ECHO_C" >&6
20674 fi
20675 ac_res=`eval echo '${'$as_ac_Header'}'`
20676                { echo "$as_me:$LINENO: result: $ac_res" >&5
20677 echo "${ECHO_T}$ac_res" >&6; }
20678 else
20679   # Is the header compilable?
20680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20682 cat >conftest.$ac_ext <<_ACEOF
20683 /* confdefs.h.  */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h.  */
20688 $ac_includes_default
20689 #include <$ac_header>
20690 _ACEOF
20691 rm -f conftest.$ac_objext
20692 if { (ac_try="$ac_compile"
20693 case "(($ac_try" in
20694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695   *) ac_try_echo=$ac_try;;
20696 esac
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698   (eval "$ac_compile") 2>conftest.er1
20699   ac_status=$?
20700   grep -v '^ *+' conftest.er1 >conftest.err
20701   rm -f conftest.er1
20702   cat conftest.err >&5
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); } && {
20705          test -z "$ac_c_werror_flag" ||
20706          test ! -s conftest.err
20707        } && test -s conftest.$ac_objext; then
20708   ac_header_compiler=yes
20709 else
20710   echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20712
20713         ac_header_compiler=no
20714 fi
20715
20716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20718 echo "${ECHO_T}$ac_header_compiler" >&6; }
20719
20720 # Is the header present?
20721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20723 cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h.  */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h.  */
20729 #include <$ac_header>
20730 _ACEOF
20731 if { (ac_try="$ac_cpp conftest.$ac_ext"
20732 case "(($ac_try" in
20733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734   *) ac_try_echo=$ac_try;;
20735 esac
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20738   ac_status=$?
20739   grep -v '^ *+' conftest.er1 >conftest.err
20740   rm -f conftest.er1
20741   cat conftest.err >&5
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); } >/dev/null && {
20744          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20745          test ! -s conftest.err
20746        }; then
20747   ac_header_preproc=yes
20748 else
20749   echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20751
20752   ac_header_preproc=no
20753 fi
20754
20755 rm -f conftest.err conftest.$ac_ext
20756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20757 echo "${ECHO_T}$ac_header_preproc" >&6; }
20758
20759 # So?  What about this header?
20760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20761   yes:no: )
20762     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20766     ac_header_preproc=yes
20767     ;;
20768   no:yes:* )
20769     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20771     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20772 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20773     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20775     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20776 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20779     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20781
20782     ;;
20783 esac
20784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20787   echo $ECHO_N "(cached) $ECHO_C" >&6
20788 else
20789   eval "$as_ac_Header=\$ac_header_preproc"
20790 fi
20791 ac_res=`eval echo '${'$as_ac_Header'}'`
20792                { echo "$as_me:$LINENO: result: $ac_res" >&5
20793 echo "${ECHO_T}$ac_res" >&6; }
20794
20795 fi
20796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20797   cat >>confdefs.h <<_ACEOF
20798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20799 _ACEOF
20800
20801 fi
20802
20803 done
20804
20805     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20806 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20807   result=
20808   cat >conftest.$ac_ext <<_ACEOF
20809 /* confdefs.h.  */
20810 _ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h.  */
20814
20815 #include <limits.h>
20816 #if HAVE_STDINT_H
20817 #include <stdint.h>
20818 #endif
20819 #ifdef SIZE_MAX
20820 Found it
20821 #endif
20822
20823 _ACEOF
20824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20825   $EGREP "Found it" >/dev/null 2>&1; then
20826   result=yes
20827 fi
20828 rm -f conftest*
20829
20830   if test -z "$result"; then
20831                     if test "$cross_compiling" = yes; then
20832   # Depending upon the size, compute the lo and hi bounds.
20833 cat >conftest.$ac_ext <<_ACEOF
20834 /* confdefs.h.  */
20835 _ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h.  */
20839 #include <stddef.h>
20840 int
20841 main ()
20842 {
20843 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20844 test_array [0] = 0
20845
20846   ;
20847   return 0;
20848 }
20849 _ACEOF
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854   *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857   (eval "$ac_compile") 2>conftest.er1
20858   ac_status=$?
20859   grep -v '^ *+' conftest.er1 >conftest.err
20860   rm -f conftest.er1
20861   cat conftest.err >&5
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); } && {
20864          test -z "$ac_c_werror_flag" ||
20865          test ! -s conftest.err
20866        } && test -s conftest.$ac_objext; then
20867   ac_lo=0 ac_mid=0
20868   while :; do
20869     cat >conftest.$ac_ext <<_ACEOF
20870 /* confdefs.h.  */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h.  */
20875 #include <stddef.h>
20876 int
20877 main ()
20878 {
20879 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20880 test_array [0] = 0
20881
20882   ;
20883   return 0;
20884 }
20885 _ACEOF
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890   *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893   (eval "$ac_compile") 2>conftest.er1
20894   ac_status=$?
20895   grep -v '^ *+' conftest.er1 >conftest.err
20896   rm -f conftest.er1
20897   cat conftest.err >&5
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); } && {
20900          test -z "$ac_c_werror_flag" ||
20901          test ! -s conftest.err
20902        } && test -s conftest.$ac_objext; then
20903   ac_hi=$ac_mid; break
20904 else
20905   echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908         ac_lo=`expr $ac_mid + 1`
20909                         if test $ac_lo -le $ac_mid; then
20910                           ac_lo= ac_hi=
20911                           break
20912                         fi
20913                         ac_mid=`expr 2 '*' $ac_mid + 1`
20914 fi
20915
20916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917   done
20918 else
20919   echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20921
20922         cat >conftest.$ac_ext <<_ACEOF
20923 /* confdefs.h.  */
20924 _ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h.  */
20928 #include <stddef.h>
20929 int
20930 main ()
20931 {
20932 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20933 test_array [0] = 0
20934
20935   ;
20936   return 0;
20937 }
20938 _ACEOF
20939 rm -f conftest.$ac_objext
20940 if { (ac_try="$ac_compile"
20941 case "(($ac_try" in
20942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943   *) ac_try_echo=$ac_try;;
20944 esac
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946   (eval "$ac_compile") 2>conftest.er1
20947   ac_status=$?
20948   grep -v '^ *+' conftest.er1 >conftest.err
20949   rm -f conftest.er1
20950   cat conftest.err >&5
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); } && {
20953          test -z "$ac_c_werror_flag" ||
20954          test ! -s conftest.err
20955        } && test -s conftest.$ac_objext; then
20956   ac_hi=-1 ac_mid=-1
20957   while :; do
20958     cat >conftest.$ac_ext <<_ACEOF
20959 /* confdefs.h.  */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h.  */
20964 #include <stddef.h>
20965 int
20966 main ()
20967 {
20968 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20969 test_array [0] = 0
20970
20971   ;
20972   return 0;
20973 }
20974 _ACEOF
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979   *) ac_try_echo=$ac_try;;
20980 esac
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982   (eval "$ac_compile") 2>conftest.er1
20983   ac_status=$?
20984   grep -v '^ *+' conftest.er1 >conftest.err
20985   rm -f conftest.er1
20986   cat conftest.err >&5
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } && {
20989          test -z "$ac_c_werror_flag" ||
20990          test ! -s conftest.err
20991        } && test -s conftest.$ac_objext; then
20992   ac_lo=$ac_mid; break
20993 else
20994   echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20996
20997         ac_hi=`expr '(' $ac_mid ')' - 1`
20998                         if test $ac_mid -le $ac_hi; then
20999                           ac_lo= ac_hi=
21000                           break
21001                         fi
21002                         ac_mid=`expr 2 '*' $ac_mid`
21003 fi
21004
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006   done
21007 else
21008   echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011         ac_lo= ac_hi=
21012 fi
21013
21014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21015 fi
21016
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018 # Binary search between lo and hi bounds.
21019 while test "x$ac_lo" != "x$ac_hi"; do
21020   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21021   cat >conftest.$ac_ext <<_ACEOF
21022 /* confdefs.h.  */
21023 _ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h.  */
21027 #include <stddef.h>
21028 int
21029 main ()
21030 {
21031 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21032 test_array [0] = 0
21033
21034   ;
21035   return 0;
21036 }
21037 _ACEOF
21038 rm -f conftest.$ac_objext
21039 if { (ac_try="$ac_compile"
21040 case "(($ac_try" in
21041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042   *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045   (eval "$ac_compile") 2>conftest.er1
21046   ac_status=$?
21047   grep -v '^ *+' conftest.er1 >conftest.err
21048   rm -f conftest.er1
21049   cat conftest.err >&5
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); } && {
21052          test -z "$ac_c_werror_flag" ||
21053          test ! -s conftest.err
21054        } && test -s conftest.$ac_objext; then
21055   ac_hi=$ac_mid
21056 else
21057   echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21059
21060         ac_lo=`expr '(' $ac_mid ')' + 1`
21061 fi
21062
21063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21064 done
21065 case $ac_lo in
21066 ?*) res_hi=$ac_lo;;
21067 '') result=? ;;
21068 esac
21069 else
21070   cat >conftest.$ac_ext <<_ACEOF
21071 /* confdefs.h.  */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h.  */
21076 #include <stddef.h>
21077 static long int longval () { return ~(size_t)0 / 10; }
21078 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21079 #include <stdio.h>
21080 #include <stdlib.h>
21081 int
21082 main ()
21083 {
21084
21085   FILE *f = fopen ("conftest.val", "w");
21086   if (! f)
21087     return 1;
21088   if ((~(size_t)0 / 10) < 0)
21089     {
21090       long int i = longval ();
21091       if (i != (~(size_t)0 / 10))
21092         return 1;
21093       fprintf (f, "%ld\n", i);
21094     }
21095   else
21096     {
21097       unsigned long int i = ulongval ();
21098       if (i != (~(size_t)0 / 10))
21099         return 1;
21100       fprintf (f, "%lu\n", i);
21101     }
21102   return ferror (f) || fclose (f) != 0;
21103
21104   ;
21105   return 0;
21106 }
21107 _ACEOF
21108 rm -f conftest$ac_exeext
21109 if { (ac_try="$ac_link"
21110 case "(($ac_try" in
21111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112   *) ac_try_echo=$ac_try;;
21113 esac
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115   (eval "$ac_link") 2>&5
21116   ac_status=$?
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21119   { (case "(($ac_try" in
21120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121   *) ac_try_echo=$ac_try;;
21122 esac
21123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124   (eval "$ac_try") 2>&5
21125   ac_status=$?
21126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127   (exit $ac_status); }; }; then
21128   res_hi=`cat conftest.val`
21129 else
21130   echo "$as_me: program exited with status $ac_status" >&5
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21133
21134 ( exit $ac_status )
21135 result=?
21136 fi
21137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21138 fi
21139 rm -f conftest.val
21140
21141     if test "$cross_compiling" = yes; then
21142   # Depending upon the size, compute the lo and hi bounds.
21143 cat >conftest.$ac_ext <<_ACEOF
21144 /* confdefs.h.  */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h.  */
21149 #include <stddef.h>
21150 int
21151 main ()
21152 {
21153 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21154 test_array [0] = 0
21155
21156   ;
21157   return 0;
21158 }
21159 _ACEOF
21160 rm -f conftest.$ac_objext
21161 if { (ac_try="$ac_compile"
21162 case "(($ac_try" in
21163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164   *) ac_try_echo=$ac_try;;
21165 esac
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167   (eval "$ac_compile") 2>conftest.er1
21168   ac_status=$?
21169   grep -v '^ *+' conftest.er1 >conftest.err
21170   rm -f conftest.er1
21171   cat conftest.err >&5
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); } && {
21174          test -z "$ac_c_werror_flag" ||
21175          test ! -s conftest.err
21176        } && test -s conftest.$ac_objext; then
21177   ac_lo=0 ac_mid=0
21178   while :; do
21179     cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h.  */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h.  */
21185 #include <stddef.h>
21186 int
21187 main ()
21188 {
21189 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21190 test_array [0] = 0
21191
21192   ;
21193   return 0;
21194 }
21195 _ACEOF
21196 rm -f conftest.$ac_objext
21197 if { (ac_try="$ac_compile"
21198 case "(($ac_try" in
21199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200   *) ac_try_echo=$ac_try;;
21201 esac
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203   (eval "$ac_compile") 2>conftest.er1
21204   ac_status=$?
21205   grep -v '^ *+' conftest.er1 >conftest.err
21206   rm -f conftest.er1
21207   cat conftest.err >&5
21208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209   (exit $ac_status); } && {
21210          test -z "$ac_c_werror_flag" ||
21211          test ! -s conftest.err
21212        } && test -s conftest.$ac_objext; then
21213   ac_hi=$ac_mid; break
21214 else
21215   echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21217
21218         ac_lo=`expr $ac_mid + 1`
21219                         if test $ac_lo -le $ac_mid; then
21220                           ac_lo= ac_hi=
21221                           break
21222                         fi
21223                         ac_mid=`expr 2 '*' $ac_mid + 1`
21224 fi
21225
21226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21227   done
21228 else
21229   echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21231
21232         cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h.  */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h.  */
21238 #include <stddef.h>
21239 int
21240 main ()
21241 {
21242 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21243 test_array [0] = 0
21244
21245   ;
21246   return 0;
21247 }
21248 _ACEOF
21249 rm -f conftest.$ac_objext
21250 if { (ac_try="$ac_compile"
21251 case "(($ac_try" in
21252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253   *) ac_try_echo=$ac_try;;
21254 esac
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256   (eval "$ac_compile") 2>conftest.er1
21257   ac_status=$?
21258   grep -v '^ *+' conftest.er1 >conftest.err
21259   rm -f conftest.er1
21260   cat conftest.err >&5
21261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262   (exit $ac_status); } && {
21263          test -z "$ac_c_werror_flag" ||
21264          test ! -s conftest.err
21265        } && test -s conftest.$ac_objext; then
21266   ac_hi=-1 ac_mid=-1
21267   while :; do
21268     cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h.  */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h.  */
21274 #include <stddef.h>
21275 int
21276 main ()
21277 {
21278 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21279 test_array [0] = 0
21280
21281   ;
21282   return 0;
21283 }
21284 _ACEOF
21285 rm -f conftest.$ac_objext
21286 if { (ac_try="$ac_compile"
21287 case "(($ac_try" in
21288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289   *) ac_try_echo=$ac_try;;
21290 esac
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292   (eval "$ac_compile") 2>conftest.er1
21293   ac_status=$?
21294   grep -v '^ *+' conftest.er1 >conftest.err
21295   rm -f conftest.er1
21296   cat conftest.err >&5
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); } && {
21299          test -z "$ac_c_werror_flag" ||
21300          test ! -s conftest.err
21301        } && test -s conftest.$ac_objext; then
21302   ac_lo=$ac_mid; break
21303 else
21304   echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21306
21307         ac_hi=`expr '(' $ac_mid ')' - 1`
21308                         if test $ac_mid -le $ac_hi; then
21309                           ac_lo= ac_hi=
21310                           break
21311                         fi
21312                         ac_mid=`expr 2 '*' $ac_mid`
21313 fi
21314
21315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316   done
21317 else
21318   echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21320
21321         ac_lo= ac_hi=
21322 fi
21323
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 fi
21326
21327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 # Binary search between lo and hi bounds.
21329 while test "x$ac_lo" != "x$ac_hi"; do
21330   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21331   cat >conftest.$ac_ext <<_ACEOF
21332 /* confdefs.h.  */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h.  */
21337 #include <stddef.h>
21338 int
21339 main ()
21340 {
21341 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21342 test_array [0] = 0
21343
21344   ;
21345   return 0;
21346 }
21347 _ACEOF
21348 rm -f conftest.$ac_objext
21349 if { (ac_try="$ac_compile"
21350 case "(($ac_try" in
21351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352   *) ac_try_echo=$ac_try;;
21353 esac
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355   (eval "$ac_compile") 2>conftest.er1
21356   ac_status=$?
21357   grep -v '^ *+' conftest.er1 >conftest.err
21358   rm -f conftest.er1
21359   cat conftest.err >&5
21360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); } && {
21362          test -z "$ac_c_werror_flag" ||
21363          test ! -s conftest.err
21364        } && test -s conftest.$ac_objext; then
21365   ac_hi=$ac_mid
21366 else
21367   echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21369
21370         ac_lo=`expr '(' $ac_mid ')' + 1`
21371 fi
21372
21373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21374 done
21375 case $ac_lo in
21376 ?*) res_lo=$ac_lo;;
21377 '') result=? ;;
21378 esac
21379 else
21380   cat >conftest.$ac_ext <<_ACEOF
21381 /* confdefs.h.  */
21382 _ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h.  */
21386 #include <stddef.h>
21387 static long int longval () { return ~(size_t)0 % 10; }
21388 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21389 #include <stdio.h>
21390 #include <stdlib.h>
21391 int
21392 main ()
21393 {
21394
21395   FILE *f = fopen ("conftest.val", "w");
21396   if (! f)
21397     return 1;
21398   if ((~(size_t)0 % 10) < 0)
21399     {
21400       long int i = longval ();
21401       if (i != (~(size_t)0 % 10))
21402         return 1;
21403       fprintf (f, "%ld\n", i);
21404     }
21405   else
21406     {
21407       unsigned long int i = ulongval ();
21408       if (i != (~(size_t)0 % 10))
21409         return 1;
21410       fprintf (f, "%lu\n", i);
21411     }
21412   return ferror (f) || fclose (f) != 0;
21413
21414   ;
21415   return 0;
21416 }
21417 _ACEOF
21418 rm -f conftest$ac_exeext
21419 if { (ac_try="$ac_link"
21420 case "(($ac_try" in
21421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21422   *) ac_try_echo=$ac_try;;
21423 esac
21424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21425   (eval "$ac_link") 2>&5
21426   ac_status=$?
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21429   { (case "(($ac_try" in
21430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431   *) ac_try_echo=$ac_try;;
21432 esac
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434   (eval "$ac_try") 2>&5
21435   ac_status=$?
21436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437   (exit $ac_status); }; }; then
21438   res_lo=`cat conftest.val`
21439 else
21440   echo "$as_me: program exited with status $ac_status" >&5
21441 echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21443
21444 ( exit $ac_status )
21445 result=?
21446 fi
21447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21448 fi
21449 rm -f conftest.val
21450
21451     if test "$cross_compiling" = yes; then
21452   # Depending upon the size, compute the lo and hi bounds.
21453 cat >conftest.$ac_ext <<_ACEOF
21454 /* confdefs.h.  */
21455 _ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h.  */
21459 #include <stddef.h>
21460 int
21461 main ()
21462 {
21463 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21464 test_array [0] = 0
21465
21466   ;
21467   return 0;
21468 }
21469 _ACEOF
21470 rm -f conftest.$ac_objext
21471 if { (ac_try="$ac_compile"
21472 case "(($ac_try" in
21473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474   *) ac_try_echo=$ac_try;;
21475 esac
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477   (eval "$ac_compile") 2>conftest.er1
21478   ac_status=$?
21479   grep -v '^ *+' conftest.er1 >conftest.err
21480   rm -f conftest.er1
21481   cat conftest.err >&5
21482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483   (exit $ac_status); } && {
21484          test -z "$ac_c_werror_flag" ||
21485          test ! -s conftest.err
21486        } && test -s conftest.$ac_objext; then
21487   ac_lo=0 ac_mid=0
21488   while :; do
21489     cat >conftest.$ac_ext <<_ACEOF
21490 /* confdefs.h.  */
21491 _ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h.  */
21495 #include <stddef.h>
21496 int
21497 main ()
21498 {
21499 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21500 test_array [0] = 0
21501
21502   ;
21503   return 0;
21504 }
21505 _ACEOF
21506 rm -f conftest.$ac_objext
21507 if { (ac_try="$ac_compile"
21508 case "(($ac_try" in
21509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510   *) ac_try_echo=$ac_try;;
21511 esac
21512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513   (eval "$ac_compile") 2>conftest.er1
21514   ac_status=$?
21515   grep -v '^ *+' conftest.er1 >conftest.err
21516   rm -f conftest.er1
21517   cat conftest.err >&5
21518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519   (exit $ac_status); } && {
21520          test -z "$ac_c_werror_flag" ||
21521          test ! -s conftest.err
21522        } && test -s conftest.$ac_objext; then
21523   ac_hi=$ac_mid; break
21524 else
21525   echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21527
21528         ac_lo=`expr $ac_mid + 1`
21529                         if test $ac_lo -le $ac_mid; then
21530                           ac_lo= ac_hi=
21531                           break
21532                         fi
21533                         ac_mid=`expr 2 '*' $ac_mid + 1`
21534 fi
21535
21536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21537   done
21538 else
21539   echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21541
21542         cat >conftest.$ac_ext <<_ACEOF
21543 /* confdefs.h.  */
21544 _ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h.  */
21548 #include <stddef.h>
21549 int
21550 main ()
21551 {
21552 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21553 test_array [0] = 0
21554
21555   ;
21556   return 0;
21557 }
21558 _ACEOF
21559 rm -f conftest.$ac_objext
21560 if { (ac_try="$ac_compile"
21561 case "(($ac_try" in
21562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563   *) ac_try_echo=$ac_try;;
21564 esac
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566   (eval "$ac_compile") 2>conftest.er1
21567   ac_status=$?
21568   grep -v '^ *+' conftest.er1 >conftest.err
21569   rm -f conftest.er1
21570   cat conftest.err >&5
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); } && {
21573          test -z "$ac_c_werror_flag" ||
21574          test ! -s conftest.err
21575        } && test -s conftest.$ac_objext; then
21576   ac_hi=-1 ac_mid=-1
21577   while :; do
21578     cat >conftest.$ac_ext <<_ACEOF
21579 /* confdefs.h.  */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h.  */
21584 #include <stddef.h>
21585 int
21586 main ()
21587 {
21588 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21589 test_array [0] = 0
21590
21591   ;
21592   return 0;
21593 }
21594 _ACEOF
21595 rm -f conftest.$ac_objext
21596 if { (ac_try="$ac_compile"
21597 case "(($ac_try" in
21598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599   *) ac_try_echo=$ac_try;;
21600 esac
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602   (eval "$ac_compile") 2>conftest.er1
21603   ac_status=$?
21604   grep -v '^ *+' conftest.er1 >conftest.err
21605   rm -f conftest.er1
21606   cat conftest.err >&5
21607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); } && {
21609          test -z "$ac_c_werror_flag" ||
21610          test ! -s conftest.err
21611        } && test -s conftest.$ac_objext; then
21612   ac_lo=$ac_mid; break
21613 else
21614   echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21616
21617         ac_hi=`expr '(' $ac_mid ')' - 1`
21618                         if test $ac_mid -le $ac_hi; then
21619                           ac_lo= ac_hi=
21620                           break
21621                         fi
21622                         ac_mid=`expr 2 '*' $ac_mid`
21623 fi
21624
21625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21626   done
21627 else
21628   echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21630
21631         ac_lo= ac_hi=
21632 fi
21633
21634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21635 fi
21636
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 # Binary search between lo and hi bounds.
21639 while test "x$ac_lo" != "x$ac_hi"; do
21640   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21641   cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h.  */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h.  */
21647 #include <stddef.h>
21648 int
21649 main ()
21650 {
21651 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21652 test_array [0] = 0
21653
21654   ;
21655   return 0;
21656 }
21657 _ACEOF
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662   *) ac_try_echo=$ac_try;;
21663 esac
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665   (eval "$ac_compile") 2>conftest.er1
21666   ac_status=$?
21667   grep -v '^ *+' conftest.er1 >conftest.err
21668   rm -f conftest.er1
21669   cat conftest.err >&5
21670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671   (exit $ac_status); } && {
21672          test -z "$ac_c_werror_flag" ||
21673          test ! -s conftest.err
21674        } && test -s conftest.$ac_objext; then
21675   ac_hi=$ac_mid
21676 else
21677   echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21679
21680         ac_lo=`expr '(' $ac_mid ')' + 1`
21681 fi
21682
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21684 done
21685 case $ac_lo in
21686 ?*) fits_in_uint=$ac_lo;;
21687 '') result=? ;;
21688 esac
21689 else
21690   cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h.  */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h.  */
21696 #include <stddef.h>
21697 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21698 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21699 #include <stdio.h>
21700 #include <stdlib.h>
21701 int
21702 main ()
21703 {
21704
21705   FILE *f = fopen ("conftest.val", "w");
21706   if (! f)
21707     return 1;
21708   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21709     {
21710       long int i = longval ();
21711       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21712         return 1;
21713       fprintf (f, "%ld\n", i);
21714     }
21715   else
21716     {
21717       unsigned long int i = ulongval ();
21718       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21719         return 1;
21720       fprintf (f, "%lu\n", i);
21721     }
21722   return ferror (f) || fclose (f) != 0;
21723
21724   ;
21725   return 0;
21726 }
21727 _ACEOF
21728 rm -f conftest$ac_exeext
21729 if { (ac_try="$ac_link"
21730 case "(($ac_try" in
21731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21732   *) ac_try_echo=$ac_try;;
21733 esac
21734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21735   (eval "$ac_link") 2>&5
21736   ac_status=$?
21737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21739   { (case "(($ac_try" in
21740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741   *) ac_try_echo=$ac_try;;
21742 esac
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744   (eval "$ac_try") 2>&5
21745   ac_status=$?
21746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747   (exit $ac_status); }; }; then
21748   fits_in_uint=`cat conftest.val`
21749 else
21750   echo "$as_me: program exited with status $ac_status" >&5
21751 echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21753
21754 ( exit $ac_status )
21755 result=?
21756 fi
21757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21758 fi
21759 rm -f conftest.val
21760
21761     if test "$fits_in_uint" = 1; then
21762                   cat >conftest.$ac_ext <<_ACEOF
21763 /* confdefs.h.  */
21764 _ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h.  */
21768 #include <stddef.h>
21769         extern size_t foo;
21770         extern unsigned long foo;
21771
21772 int
21773 main ()
21774 {
21775
21776   ;
21777   return 0;
21778 }
21779 _ACEOF
21780 rm -f conftest.$ac_objext
21781 if { (ac_try="$ac_compile"
21782 case "(($ac_try" in
21783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784   *) ac_try_echo=$ac_try;;
21785 esac
21786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21787   (eval "$ac_compile") 2>conftest.er1
21788   ac_status=$?
21789   grep -v '^ *+' conftest.er1 >conftest.err
21790   rm -f conftest.er1
21791   cat conftest.err >&5
21792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793   (exit $ac_status); } && {
21794          test -z "$ac_c_werror_flag" ||
21795          test ! -s conftest.err
21796        } && test -s conftest.$ac_objext; then
21797   fits_in_uint=0
21798 else
21799   echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21801
21802
21803 fi
21804
21805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21806     fi
21807     if test -z "$result"; then
21808       if test "$fits_in_uint" = 1; then
21809         result="$res_hi$res_lo"U
21810       else
21811         result="$res_hi$res_lo"UL
21812       fi
21813     else
21814             result='~(size_t)0'
21815     fi
21816   fi
21817   { echo "$as_me:$LINENO: result: $result" >&5
21818 echo "${ECHO_T}$result" >&6; }
21819   if test "$result" != yes; then
21820
21821 cat >>confdefs.h <<_ACEOF
21822 #define SIZE_MAX $result
21823 _ACEOF
21824
21825   fi
21826
21827
21828
21829
21830
21831 for ac_header in stdint.h
21832 do
21833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21835   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21838   echo $ECHO_N "(cached) $ECHO_C" >&6
21839 fi
21840 ac_res=`eval echo '${'$as_ac_Header'}'`
21841                { echo "$as_me:$LINENO: result: $ac_res" >&5
21842 echo "${ECHO_T}$ac_res" >&6; }
21843 else
21844   # Is the header compilable?
21845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21847 cat >conftest.$ac_ext <<_ACEOF
21848 /* confdefs.h.  */
21849 _ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h.  */
21853 $ac_includes_default
21854 #include <$ac_header>
21855 _ACEOF
21856 rm -f conftest.$ac_objext
21857 if { (ac_try="$ac_compile"
21858 case "(($ac_try" in
21859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860   *) ac_try_echo=$ac_try;;
21861 esac
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863   (eval "$ac_compile") 2>conftest.er1
21864   ac_status=$?
21865   grep -v '^ *+' conftest.er1 >conftest.err
21866   rm -f conftest.er1
21867   cat conftest.err >&5
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); } && {
21870          test -z "$ac_c_werror_flag" ||
21871          test ! -s conftest.err
21872        } && test -s conftest.$ac_objext; then
21873   ac_header_compiler=yes
21874 else
21875   echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21877
21878         ac_header_compiler=no
21879 fi
21880
21881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21883 echo "${ECHO_T}$ac_header_compiler" >&6; }
21884
21885 # Is the header present?
21886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21888 cat >conftest.$ac_ext <<_ACEOF
21889 /* confdefs.h.  */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h.  */
21894 #include <$ac_header>
21895 _ACEOF
21896 if { (ac_try="$ac_cpp conftest.$ac_ext"
21897 case "(($ac_try" in
21898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899   *) ac_try_echo=$ac_try;;
21900 esac
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21903   ac_status=$?
21904   grep -v '^ *+' conftest.er1 >conftest.err
21905   rm -f conftest.er1
21906   cat conftest.err >&5
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); } >/dev/null && {
21909          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21910          test ! -s conftest.err
21911        }; then
21912   ac_header_preproc=yes
21913 else
21914   echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21916
21917   ac_header_preproc=no
21918 fi
21919
21920 rm -f conftest.err conftest.$ac_ext
21921 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21922 echo "${ECHO_T}$ac_header_preproc" >&6; }
21923
21924 # So?  What about this header?
21925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21926   yes:no: )
21927     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21931     ac_header_preproc=yes
21932     ;;
21933   no:yes:* )
21934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21936     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21937 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21938     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21940     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21941 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21944     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21946
21947     ;;
21948 esac
21949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21952   echo $ECHO_N "(cached) $ECHO_C" >&6
21953 else
21954   eval "$as_ac_Header=\$ac_header_preproc"
21955 fi
21956 ac_res=`eval echo '${'$as_ac_Header'}'`
21957                { echo "$as_me:$LINENO: result: $ac_res" >&5
21958 echo "${ECHO_T}$ac_res" >&6; }
21959
21960 fi
21961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21962   cat >>confdefs.h <<_ACEOF
21963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21964 _ACEOF
21965
21966 fi
21967
21968 done
21969
21970
21971
21972
21973
21974
21975
21976
21977   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21978 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21979 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21980   echo $ECHO_N "(cached) $ECHO_C" >&6
21981 else
21982   cat >conftest.$ac_ext <<_ACEOF
21983 /* confdefs.h.  */
21984 _ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h.  */
21988 $ac_includes_default
21989 typedef ptrdiff_t ac__type_new_;
21990 int
21991 main ()
21992 {
21993 if ((ac__type_new_ *) 0)
21994   return 0;
21995 if (sizeof (ac__type_new_))
21996   return 0;
21997   ;
21998   return 0;
21999 }
22000 _ACEOF
22001 rm -f conftest.$ac_objext
22002 if { (ac_try="$ac_compile"
22003 case "(($ac_try" in
22004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005   *) ac_try_echo=$ac_try;;
22006 esac
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008   (eval "$ac_compile") 2>conftest.er1
22009   ac_status=$?
22010   grep -v '^ *+' conftest.er1 >conftest.err
22011   rm -f conftest.er1
22012   cat conftest.err >&5
22013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014   (exit $ac_status); } && {
22015          test -z "$ac_c_werror_flag" ||
22016          test ! -s conftest.err
22017        } && test -s conftest.$ac_objext; then
22018   ac_cv_type_ptrdiff_t=yes
22019 else
22020   echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22022
22023         ac_cv_type_ptrdiff_t=no
22024 fi
22025
22026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22027 fi
22028 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22029 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22030 if test $ac_cv_type_ptrdiff_t = yes; then
22031   :
22032 else
22033
22034 cat >>confdefs.h <<\_ACEOF
22035 #define ptrdiff_t long
22036 _ACEOF
22037
22038
22039 fi
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22052 stdlib.h string.h unistd.h sys/param.h
22053 do
22054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22056   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22059   echo $ECHO_N "(cached) $ECHO_C" >&6
22060 fi
22061 ac_res=`eval echo '${'$as_ac_Header'}'`
22062                { echo "$as_me:$LINENO: result: $ac_res" >&5
22063 echo "${ECHO_T}$ac_res" >&6; }
22064 else
22065   # Is the header compilable?
22066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22068 cat >conftest.$ac_ext <<_ACEOF
22069 /* confdefs.h.  */
22070 _ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h.  */
22074 $ac_includes_default
22075 #include <$ac_header>
22076 _ACEOF
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081   *) ac_try_echo=$ac_try;;
22082 esac
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084   (eval "$ac_compile") 2>conftest.er1
22085   ac_status=$?
22086   grep -v '^ *+' conftest.er1 >conftest.err
22087   rm -f conftest.er1
22088   cat conftest.err >&5
22089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); } && {
22091          test -z "$ac_c_werror_flag" ||
22092          test ! -s conftest.err
22093        } && test -s conftest.$ac_objext; then
22094   ac_header_compiler=yes
22095 else
22096   echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22098
22099         ac_header_compiler=no
22100 fi
22101
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22104 echo "${ECHO_T}$ac_header_compiler" >&6; }
22105
22106 # Is the header present?
22107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22109 cat >conftest.$ac_ext <<_ACEOF
22110 /* confdefs.h.  */
22111 _ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h.  */
22115 #include <$ac_header>
22116 _ACEOF
22117 if { (ac_try="$ac_cpp conftest.$ac_ext"
22118 case "(($ac_try" in
22119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120   *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22124   ac_status=$?
22125   grep -v '^ *+' conftest.er1 >conftest.err
22126   rm -f conftest.er1
22127   cat conftest.err >&5
22128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129   (exit $ac_status); } >/dev/null && {
22130          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22131          test ! -s conftest.err
22132        }; then
22133   ac_header_preproc=yes
22134 else
22135   echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22137
22138   ac_header_preproc=no
22139 fi
22140
22141 rm -f conftest.err conftest.$ac_ext
22142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22143 echo "${ECHO_T}$ac_header_preproc" >&6; }
22144
22145 # So?  What about this header?
22146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22147   yes:no: )
22148     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22152     ac_header_preproc=yes
22153     ;;
22154   no:yes:* )
22155     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22157     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22158 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22159     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22161     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22162 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22165     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22167
22168     ;;
22169 esac
22170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22173   echo $ECHO_N "(cached) $ECHO_C" >&6
22174 else
22175   eval "$as_ac_Header=\$ac_header_preproc"
22176 fi
22177 ac_res=`eval echo '${'$as_ac_Header'}'`
22178                { echo "$as_me:$LINENO: result: $ac_res" >&5
22179 echo "${ECHO_T}$ac_res" >&6; }
22180
22181 fi
22182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22183   cat >>confdefs.h <<_ACEOF
22184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22185 _ACEOF
22186
22187 fi
22188
22189 done
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22215 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22216 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22217 __fsetlocking
22218 do
22219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22223   echo $ECHO_N "(cached) $ECHO_C" >&6
22224 else
22225   cat >conftest.$ac_ext <<_ACEOF
22226 /* confdefs.h.  */
22227 _ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h.  */
22231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22233 #define $ac_func innocuous_$ac_func
22234
22235 /* System header to define __stub macros and hopefully few prototypes,
22236     which can conflict with char $ac_func (); below.
22237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22238     <limits.h> exists even on freestanding compilers.  */
22239
22240 #ifdef __STDC__
22241 # include <limits.h>
22242 #else
22243 # include <assert.h>
22244 #endif
22245
22246 #undef $ac_func
22247
22248 /* Override any GCC internal prototype to avoid an error.
22249    Use char because int might match the return type of a GCC
22250    builtin and then its argument prototype would still apply.  */
22251 #ifdef __cplusplus
22252 extern "C"
22253 #endif
22254 char $ac_func ();
22255 /* The GNU C library defines this for functions which it implements
22256     to always fail with ENOSYS.  Some functions are actually named
22257     something starting with __ and the normal name is an alias.  */
22258 #if defined __stub_$ac_func || defined __stub___$ac_func
22259 choke me
22260 #endif
22261
22262 int
22263 main ()
22264 {
22265 return $ac_func ();
22266   ;
22267   return 0;
22268 }
22269 _ACEOF
22270 rm -f conftest.$ac_objext conftest$ac_exeext
22271 if { (ac_try="$ac_link"
22272 case "(($ac_try" in
22273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274   *) ac_try_echo=$ac_try;;
22275 esac
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277   (eval "$ac_link") 2>conftest.er1
22278   ac_status=$?
22279   grep -v '^ *+' conftest.er1 >conftest.err
22280   rm -f conftest.er1
22281   cat conftest.err >&5
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); } && {
22284          test -z "$ac_c_werror_flag" ||
22285          test ! -s conftest.err
22286        } && test -s conftest$ac_exeext &&
22287        $as_test_x conftest$ac_exeext; then
22288   eval "$as_ac_var=yes"
22289 else
22290   echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22292
22293         eval "$as_ac_var=no"
22294 fi
22295
22296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22297       conftest$ac_exeext conftest.$ac_ext
22298 fi
22299 ac_res=`eval echo '${'$as_ac_var'}'`
22300                { echo "$as_me:$LINENO: result: $ac_res" >&5
22301 echo "${ECHO_T}$ac_res" >&6; }
22302 if test `eval echo '${'$as_ac_var'}'` = yes; then
22303   cat >>confdefs.h <<_ACEOF
22304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22305 _ACEOF
22306
22307 fi
22308 done
22309
22310
22311
22312   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22313 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22314 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22315   echo $ECHO_N "(cached) $ECHO_C" >&6
22316 else
22317   cat >conftest.$ac_ext <<_ACEOF
22318 /* confdefs.h.  */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h.  */
22323 #include <stdio.h>
22324 int
22325 main ()
22326 {
22327
22328 #ifndef _snprintf
22329   char *p = (char *) _snprintf;
22330 #endif
22331
22332   ;
22333   return 0;
22334 }
22335 _ACEOF
22336 rm -f conftest.$ac_objext
22337 if { (ac_try="$ac_compile"
22338 case "(($ac_try" in
22339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340   *) ac_try_echo=$ac_try;;
22341 esac
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343   (eval "$ac_compile") 2>conftest.er1
22344   ac_status=$?
22345   grep -v '^ *+' conftest.er1 >conftest.err
22346   rm -f conftest.er1
22347   cat conftest.err >&5
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); } && {
22350          test -z "$ac_c_werror_flag" ||
22351          test ! -s conftest.err
22352        } && test -s conftest.$ac_objext; then
22353   ac_cv_have_decl__snprintf=yes
22354 else
22355   echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22357
22358         ac_cv_have_decl__snprintf=no
22359 fi
22360
22361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22362 fi
22363 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22364 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22365   if test $ac_cv_have_decl__snprintf = yes; then
22366     gt_value=1
22367   else
22368     gt_value=0
22369   fi
22370
22371 cat >>confdefs.h <<_ACEOF
22372 #define HAVE_DECL__SNPRINTF $gt_value
22373 _ACEOF
22374
22375
22376
22377   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22378 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22379 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22380   echo $ECHO_N "(cached) $ECHO_C" >&6
22381 else
22382   cat >conftest.$ac_ext <<_ACEOF
22383 /* confdefs.h.  */
22384 _ACEOF
22385 cat confdefs.h >>conftest.$ac_ext
22386 cat >>conftest.$ac_ext <<_ACEOF
22387 /* end confdefs.h.  */
22388 #include <stdio.h>
22389 int
22390 main ()
22391 {
22392
22393 #ifndef _snwprintf
22394   char *p = (char *) _snwprintf;
22395 #endif
22396
22397   ;
22398   return 0;
22399 }
22400 _ACEOF
22401 rm -f conftest.$ac_objext
22402 if { (ac_try="$ac_compile"
22403 case "(($ac_try" in
22404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22405   *) ac_try_echo=$ac_try;;
22406 esac
22407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22408   (eval "$ac_compile") 2>conftest.er1
22409   ac_status=$?
22410   grep -v '^ *+' conftest.er1 >conftest.err
22411   rm -f conftest.er1
22412   cat conftest.err >&5
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); } && {
22415          test -z "$ac_c_werror_flag" ||
22416          test ! -s conftest.err
22417        } && test -s conftest.$ac_objext; then
22418   ac_cv_have_decl__snwprintf=yes
22419 else
22420   echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22422
22423         ac_cv_have_decl__snwprintf=no
22424 fi
22425
22426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22427 fi
22428 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22429 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22430   if test $ac_cv_have_decl__snwprintf = yes; then
22431     gt_value=1
22432   else
22433     gt_value=0
22434   fi
22435
22436 cat >>confdefs.h <<_ACEOF
22437 #define HAVE_DECL__SNWPRINTF $gt_value
22438 _ACEOF
22439
22440
22441
22442
22443   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22444 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22445 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22446   echo $ECHO_N "(cached) $ECHO_C" >&6
22447 else
22448   cat >conftest.$ac_ext <<_ACEOF
22449 /* confdefs.h.  */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h.  */
22454 #include <stdio.h>
22455 int
22456 main ()
22457 {
22458
22459 #ifndef feof_unlocked
22460   char *p = (char *) feof_unlocked;
22461 #endif
22462
22463   ;
22464   return 0;
22465 }
22466 _ACEOF
22467 rm -f conftest.$ac_objext
22468 if { (ac_try="$ac_compile"
22469 case "(($ac_try" in
22470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471   *) ac_try_echo=$ac_try;;
22472 esac
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474   (eval "$ac_compile") 2>conftest.er1
22475   ac_status=$?
22476   grep -v '^ *+' conftest.er1 >conftest.err
22477   rm -f conftest.er1
22478   cat conftest.err >&5
22479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480   (exit $ac_status); } && {
22481          test -z "$ac_c_werror_flag" ||
22482          test ! -s conftest.err
22483        } && test -s conftest.$ac_objext; then
22484   ac_cv_have_decl_feof_unlocked=yes
22485 else
22486   echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22488
22489         ac_cv_have_decl_feof_unlocked=no
22490 fi
22491
22492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22493 fi
22494 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22495 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22496   if test $ac_cv_have_decl_feof_unlocked = yes; then
22497     gt_value=1
22498   else
22499     gt_value=0
22500   fi
22501
22502 cat >>confdefs.h <<_ACEOF
22503 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22504 _ACEOF
22505
22506
22507
22508   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22509 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22510 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22511   echo $ECHO_N "(cached) $ECHO_C" >&6
22512 else
22513   cat >conftest.$ac_ext <<_ACEOF
22514 /* confdefs.h.  */
22515 _ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h.  */
22519 #include <stdio.h>
22520 int
22521 main ()
22522 {
22523
22524 #ifndef fgets_unlocked
22525   char *p = (char *) fgets_unlocked;
22526 #endif
22527
22528   ;
22529   return 0;
22530 }
22531 _ACEOF
22532 rm -f conftest.$ac_objext
22533 if { (ac_try="$ac_compile"
22534 case "(($ac_try" in
22535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536   *) ac_try_echo=$ac_try;;
22537 esac
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539   (eval "$ac_compile") 2>conftest.er1
22540   ac_status=$?
22541   grep -v '^ *+' conftest.er1 >conftest.err
22542   rm -f conftest.er1
22543   cat conftest.err >&5
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); } && {
22546          test -z "$ac_c_werror_flag" ||
22547          test ! -s conftest.err
22548        } && test -s conftest.$ac_objext; then
22549   ac_cv_have_decl_fgets_unlocked=yes
22550 else
22551   echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22553
22554         ac_cv_have_decl_fgets_unlocked=no
22555 fi
22556
22557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22558 fi
22559 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22560 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22561   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22562     gt_value=1
22563   else
22564     gt_value=0
22565   fi
22566
22567 cat >>confdefs.h <<_ACEOF
22568 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22569 _ACEOF
22570
22571
22572
22573   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22574 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22575 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22576   echo $ECHO_N "(cached) $ECHO_C" >&6
22577 else
22578   cat >conftest.$ac_ext <<_ACEOF
22579 /* confdefs.h.  */
22580 _ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h.  */
22584 #include <stdio.h>
22585 int
22586 main ()
22587 {
22588
22589 #ifndef getc_unlocked
22590   char *p = (char *) getc_unlocked;
22591 #endif
22592
22593   ;
22594   return 0;
22595 }
22596 _ACEOF
22597 rm -f conftest.$ac_objext
22598 if { (ac_try="$ac_compile"
22599 case "(($ac_try" in
22600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601   *) ac_try_echo=$ac_try;;
22602 esac
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604   (eval "$ac_compile") 2>conftest.er1
22605   ac_status=$?
22606   grep -v '^ *+' conftest.er1 >conftest.err
22607   rm -f conftest.er1
22608   cat conftest.err >&5
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); } && {
22611          test -z "$ac_c_werror_flag" ||
22612          test ! -s conftest.err
22613        } && test -s conftest.$ac_objext; then
22614   ac_cv_have_decl_getc_unlocked=yes
22615 else
22616   echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22618
22619         ac_cv_have_decl_getc_unlocked=no
22620 fi
22621
22622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22623 fi
22624 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22625 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22626   if test $ac_cv_have_decl_getc_unlocked = yes; then
22627     gt_value=1
22628   else
22629     gt_value=0
22630   fi
22631
22632 cat >>confdefs.h <<_ACEOF
22633 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22634 _ACEOF
22635
22636
22637
22638   case $gt_cv_func_printf_posix in
22639     *yes) HAVE_POSIX_PRINTF=1 ;;
22640     *) HAVE_POSIX_PRINTF=0 ;;
22641   esac
22642
22643   if test "$ac_cv_func_asprintf" = yes; then
22644     HAVE_ASPRINTF=1
22645   else
22646     HAVE_ASPRINTF=0
22647   fi
22648
22649   if test "$ac_cv_func_snprintf" = yes; then
22650     HAVE_SNPRINTF=1
22651   else
22652     HAVE_SNPRINTF=0
22653   fi
22654
22655   if test "$ac_cv_func_wprintf" = yes; then
22656     HAVE_WPRINTF=1
22657   else
22658     HAVE_WPRINTF=0
22659   fi
22660
22661
22662
22663
22664
22665
22666
22667           am_save_CPPFLAGS="$CPPFLAGS"
22668
22669   for element in $INCICONV; do
22670     haveit=
22671     for x in $CPPFLAGS; do
22672
22673   acl_save_prefix="$prefix"
22674   prefix="$acl_final_prefix"
22675   acl_save_exec_prefix="$exec_prefix"
22676   exec_prefix="$acl_final_exec_prefix"
22677   eval x=\"$x\"
22678   exec_prefix="$acl_save_exec_prefix"
22679   prefix="$acl_save_prefix"
22680
22681       if test "X$x" = "X$element"; then
22682         haveit=yes
22683         break
22684       fi
22685     done
22686     if test -z "$haveit"; then
22687       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22688     fi
22689   done
22690
22691
22692   { echo "$as_me:$LINENO: checking for iconv" >&5
22693 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22694 if test "${am_cv_func_iconv+set}" = set; then
22695   echo $ECHO_N "(cached) $ECHO_C" >&6
22696 else
22697
22698     am_cv_func_iconv="no, consider installing GNU libiconv"
22699     am_cv_lib_iconv=no
22700     cat >conftest.$ac_ext <<_ACEOF
22701 /* confdefs.h.  */
22702 _ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h.  */
22706 #include <stdlib.h>
22707 #include <iconv.h>
22708 int
22709 main ()
22710 {
22711 iconv_t cd = iconv_open("","");
22712        iconv(cd,NULL,NULL,NULL,NULL);
22713        iconv_close(cd);
22714   ;
22715   return 0;
22716 }
22717 _ACEOF
22718 rm -f conftest.$ac_objext conftest$ac_exeext
22719 if { (ac_try="$ac_link"
22720 case "(($ac_try" in
22721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22722   *) ac_try_echo=$ac_try;;
22723 esac
22724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22725   (eval "$ac_link") 2>conftest.er1
22726   ac_status=$?
22727   grep -v '^ *+' conftest.er1 >conftest.err
22728   rm -f conftest.er1
22729   cat conftest.err >&5
22730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731   (exit $ac_status); } && {
22732          test -z "$ac_c_werror_flag" ||
22733          test ! -s conftest.err
22734        } && test -s conftest$ac_exeext &&
22735        $as_test_x conftest$ac_exeext; then
22736   am_cv_func_iconv=yes
22737 else
22738   echo "$as_me: failed program was:" >&5
22739 sed 's/^/| /' conftest.$ac_ext >&5
22740
22741
22742 fi
22743
22744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22745       conftest$ac_exeext conftest.$ac_ext
22746     if test "$am_cv_func_iconv" != yes; then
22747       am_save_LIBS="$LIBS"
22748       LIBS="$LIBS $LIBICONV"
22749       cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h.  */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h.  */
22755 #include <stdlib.h>
22756 #include <iconv.h>
22757 int
22758 main ()
22759 {
22760 iconv_t cd = iconv_open("","");
22761          iconv(cd,NULL,NULL,NULL,NULL);
22762          iconv_close(cd);
22763   ;
22764   return 0;
22765 }
22766 _ACEOF
22767 rm -f conftest.$ac_objext conftest$ac_exeext
22768 if { (ac_try="$ac_link"
22769 case "(($ac_try" in
22770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22771   *) ac_try_echo=$ac_try;;
22772 esac
22773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22774   (eval "$ac_link") 2>conftest.er1
22775   ac_status=$?
22776   grep -v '^ *+' conftest.er1 >conftest.err
22777   rm -f conftest.er1
22778   cat conftest.err >&5
22779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780   (exit $ac_status); } && {
22781          test -z "$ac_c_werror_flag" ||
22782          test ! -s conftest.err
22783        } && test -s conftest$ac_exeext &&
22784        $as_test_x conftest$ac_exeext; then
22785   am_cv_lib_iconv=yes
22786         am_cv_func_iconv=yes
22787 else
22788   echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22790
22791
22792 fi
22793
22794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22795       conftest$ac_exeext conftest.$ac_ext
22796       LIBS="$am_save_LIBS"
22797     fi
22798
22799 fi
22800 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22801 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22802   if test "$am_cv_func_iconv" = yes; then
22803
22804 cat >>confdefs.h <<\_ACEOF
22805 #define HAVE_ICONV 1
22806 _ACEOF
22807
22808   fi
22809   if test "$am_cv_lib_iconv" = yes; then
22810     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22811 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22812     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22813 echo "${ECHO_T}$LIBICONV" >&6; }
22814   else
22815             CPPFLAGS="$am_save_CPPFLAGS"
22816     LIBICONV=
22817     LTLIBICONV=
22818   fi
22819
22820
22821
22822   if test "$am_cv_func_iconv" = yes; then
22823     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22824 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22825     if test "${am_cv_proto_iconv+set}" = set; then
22826   echo $ECHO_N "(cached) $ECHO_C" >&6
22827 else
22828
22829       cat >conftest.$ac_ext <<_ACEOF
22830 /* confdefs.h.  */
22831 _ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h.  */
22835
22836 #include <stdlib.h>
22837 #include <iconv.h>
22838 extern
22839 #ifdef __cplusplus
22840 "C"
22841 #endif
22842 #if defined(__STDC__) || defined(__cplusplus)
22843 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22844 #else
22845 size_t iconv();
22846 #endif
22847
22848 int
22849 main ()
22850 {
22851
22852   ;
22853   return 0;
22854 }
22855 _ACEOF
22856 rm -f conftest.$ac_objext
22857 if { (ac_try="$ac_compile"
22858 case "(($ac_try" in
22859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860   *) ac_try_echo=$ac_try;;
22861 esac
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863   (eval "$ac_compile") 2>conftest.er1
22864   ac_status=$?
22865   grep -v '^ *+' conftest.er1 >conftest.err
22866   rm -f conftest.er1
22867   cat conftest.err >&5
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); } && {
22870          test -z "$ac_c_werror_flag" ||
22871          test ! -s conftest.err
22872        } && test -s conftest.$ac_objext; then
22873   am_cv_proto_iconv_arg1=""
22874 else
22875   echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22877
22878         am_cv_proto_iconv_arg1="const"
22879 fi
22880
22881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882       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);"
22883 fi
22884
22885     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22886     { echo "$as_me:$LINENO: result: ${ac_t:-
22887          }$am_cv_proto_iconv" >&5
22888 echo "${ECHO_T}${ac_t:-
22889          }$am_cv_proto_iconv" >&6; }
22890
22891 cat >>confdefs.h <<_ACEOF
22892 #define ICONV_CONST $am_cv_proto_iconv_arg1
22893 _ACEOF
22894
22895   fi
22896
22897
22898   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22899 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22900 if test "${am_cv_langinfo_codeset+set}" = set; then
22901   echo $ECHO_N "(cached) $ECHO_C" >&6
22902 else
22903   cat >conftest.$ac_ext <<_ACEOF
22904 /* confdefs.h.  */
22905 _ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h.  */
22909 #include <langinfo.h>
22910 int
22911 main ()
22912 {
22913 char* cs = nl_langinfo(CODESET);
22914   ;
22915   return 0;
22916 }
22917 _ACEOF
22918 rm -f conftest.$ac_objext conftest$ac_exeext
22919 if { (ac_try="$ac_link"
22920 case "(($ac_try" in
22921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22922   *) ac_try_echo=$ac_try;;
22923 esac
22924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22925   (eval "$ac_link") 2>conftest.er1
22926   ac_status=$?
22927   grep -v '^ *+' conftest.er1 >conftest.err
22928   rm -f conftest.er1
22929   cat conftest.err >&5
22930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); } && {
22932          test -z "$ac_c_werror_flag" ||
22933          test ! -s conftest.err
22934        } && test -s conftest$ac_exeext &&
22935        $as_test_x conftest$ac_exeext; then
22936   am_cv_langinfo_codeset=yes
22937 else
22938   echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22940
22941         am_cv_langinfo_codeset=no
22942 fi
22943
22944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22945       conftest$ac_exeext conftest.$ac_ext
22946
22947 fi
22948 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22949 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22950   if test $am_cv_langinfo_codeset = yes; then
22951
22952 cat >>confdefs.h <<\_ACEOF
22953 #define HAVE_LANGINFO_CODESET 1
22954 _ACEOF
22955
22956   fi
22957
22958   if test $ac_cv_header_locale_h = yes; then
22959
22960   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22961 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22962 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22963   echo $ECHO_N "(cached) $ECHO_C" >&6
22964 else
22965   cat >conftest.$ac_ext <<_ACEOF
22966 /* confdefs.h.  */
22967 _ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h.  */
22971 #include <locale.h>
22972 int
22973 main ()
22974 {
22975 return LC_MESSAGES
22976   ;
22977   return 0;
22978 }
22979 _ACEOF
22980 rm -f conftest.$ac_objext conftest$ac_exeext
22981 if { (ac_try="$ac_link"
22982 case "(($ac_try" in
22983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984   *) ac_try_echo=$ac_try;;
22985 esac
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987   (eval "$ac_link") 2>conftest.er1
22988   ac_status=$?
22989   grep -v '^ *+' conftest.er1 >conftest.err
22990   rm -f conftest.er1
22991   cat conftest.err >&5
22992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993   (exit $ac_status); } && {
22994          test -z "$ac_c_werror_flag" ||
22995          test ! -s conftest.err
22996        } && test -s conftest$ac_exeext &&
22997        $as_test_x conftest$ac_exeext; then
22998   gt_cv_val_LC_MESSAGES=yes
22999 else
23000   echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23002
23003         gt_cv_val_LC_MESSAGES=no
23004 fi
23005
23006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23007       conftest$ac_exeext conftest.$ac_ext
23008 fi
23009 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23010 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23011   if test $gt_cv_val_LC_MESSAGES = yes; then
23012
23013 cat >>confdefs.h <<\_ACEOF
23014 #define HAVE_LC_MESSAGES 1
23015 _ACEOF
23016
23017   fi
23018
23019   fi
23020
23021   if test -n "$INTL_MACOSX_LIBS"; then
23022     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23023   fi
23024
23025                       for ac_prog in bison
23026 do
23027   # Extract the first word of "$ac_prog", so it can be a program name with args.
23028 set dummy $ac_prog; ac_word=$2
23029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23031 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23032   echo $ECHO_N "(cached) $ECHO_C" >&6
23033 else
23034   if test -n "$INTLBISON"; then
23035   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23036 else
23037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23038 for as_dir in $PATH
23039 do
23040   IFS=$as_save_IFS
23041   test -z "$as_dir" && as_dir=.
23042   for ac_exec_ext in '' $ac_executable_extensions; do
23043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23044     ac_cv_prog_INTLBISON="$ac_prog"
23045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23046     break 2
23047   fi
23048 done
23049 done
23050 IFS=$as_save_IFS
23051
23052 fi
23053 fi
23054 INTLBISON=$ac_cv_prog_INTLBISON
23055 if test -n "$INTLBISON"; then
23056   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23057 echo "${ECHO_T}$INTLBISON" >&6; }
23058 else
23059   { echo "$as_me:$LINENO: result: no" >&5
23060 echo "${ECHO_T}no" >&6; }
23061 fi
23062
23063
23064   test -n "$INTLBISON" && break
23065 done
23066
23067   if test -z "$INTLBISON"; then
23068     ac_verc_fail=yes
23069   else
23070         { echo "$as_me:$LINENO: checking version of bison" >&5
23071 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23072     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23073     case $ac_prog_version in
23074       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23075       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23076          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23077       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23078     esac
23079     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23080 echo "${ECHO_T}$ac_prog_version" >&6; }
23081   fi
23082   if test $ac_verc_fail = yes; then
23083     INTLBISON=:
23084   fi
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23102 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23103 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23104   echo $ECHO_N "(cached) $ECHO_C" >&6
23105 else
23106   gt_save_CPPFLAGS="$CPPFLAGS"
23107      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23108      gt_save_LIBS="$LIBS"
23109      LIBS="$LIBS -framework CoreFoundation"
23110      cat >conftest.$ac_ext <<_ACEOF
23111 /* confdefs.h.  */
23112 _ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h.  */
23116 #include <CFPreferences.h>
23117 int
23118 main ()
23119 {
23120 CFPreferencesCopyAppValue(NULL, NULL)
23121   ;
23122   return 0;
23123 }
23124 _ACEOF
23125 rm -f conftest.$ac_objext conftest$ac_exeext
23126 if { (ac_try="$ac_link"
23127 case "(($ac_try" in
23128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129   *) ac_try_echo=$ac_try;;
23130 esac
23131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132   (eval "$ac_link") 2>conftest.er1
23133   ac_status=$?
23134   grep -v '^ *+' conftest.er1 >conftest.err
23135   rm -f conftest.er1
23136   cat conftest.err >&5
23137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138   (exit $ac_status); } && {
23139          test -z "$ac_c_werror_flag" ||
23140          test ! -s conftest.err
23141        } && test -s conftest$ac_exeext &&
23142        $as_test_x conftest$ac_exeext; then
23143   gt_cv_func_CFPreferencesCopyAppValue=yes
23144 else
23145   echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23147
23148         gt_cv_func_CFPreferencesCopyAppValue=no
23149 fi
23150
23151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23152       conftest$ac_exeext conftest.$ac_ext
23153      CPPFLAGS="$gt_save_CPPFLAGS"
23154      LIBS="$gt_save_LIBS"
23155 fi
23156 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23157 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23158   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23159
23160 cat >>confdefs.h <<\_ACEOF
23161 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23162 _ACEOF
23163
23164   fi
23165     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23166 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23167 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23168   echo $ECHO_N "(cached) $ECHO_C" >&6
23169 else
23170   gt_save_CPPFLAGS="$CPPFLAGS"
23171      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23172      gt_save_LIBS="$LIBS"
23173      LIBS="$LIBS -framework CoreFoundation"
23174      cat >conftest.$ac_ext <<_ACEOF
23175 /* confdefs.h.  */
23176 _ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h.  */
23180 #include <CFLocale.h>
23181 int
23182 main ()
23183 {
23184 CFLocaleCopyCurrent();
23185   ;
23186   return 0;
23187 }
23188 _ACEOF
23189 rm -f conftest.$ac_objext conftest$ac_exeext
23190 if { (ac_try="$ac_link"
23191 case "(($ac_try" in
23192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193   *) ac_try_echo=$ac_try;;
23194 esac
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196   (eval "$ac_link") 2>conftest.er1
23197   ac_status=$?
23198   grep -v '^ *+' conftest.er1 >conftest.err
23199   rm -f conftest.er1
23200   cat conftest.err >&5
23201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202   (exit $ac_status); } && {
23203          test -z "$ac_c_werror_flag" ||
23204          test ! -s conftest.err
23205        } && test -s conftest$ac_exeext &&
23206        $as_test_x conftest$ac_exeext; then
23207   gt_cv_func_CFLocaleCopyCurrent=yes
23208 else
23209   echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23211
23212         gt_cv_func_CFLocaleCopyCurrent=no
23213 fi
23214
23215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23216       conftest$ac_exeext conftest.$ac_ext
23217      CPPFLAGS="$gt_save_CPPFLAGS"
23218      LIBS="$gt_save_LIBS"
23219 fi
23220 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23221 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23222   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23223
23224 cat >>confdefs.h <<\_ACEOF
23225 #define HAVE_CFLOCALECOPYCURRENT 1
23226 _ACEOF
23227
23228   fi
23229   INTL_MACOSX_LIBS=
23230   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23231     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23232   fi
23233
23234
23235
23236
23237   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23238 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23239     # Check whether --enable-nls was given.
23240 if test "${enable_nls+set}" = set; then
23241   enableval=$enable_nls; USE_NLS=$enableval
23242 else
23243   USE_NLS=yes
23244 fi
23245
23246   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23247 echo "${ECHO_T}$USE_NLS" >&6; }
23248
23249
23250
23251
23252     BUILD_INCLUDED_LIBINTL=no
23253     USE_INCLUDED_LIBINTL=no
23254
23255   LIBINTL=
23256   LTLIBINTL=
23257   POSUB=
23258
23259     if test "$USE_NLS" = "yes"; then
23260     gt_use_preinstalled_gnugettext=no
23261
23262       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23263 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23264
23265 # Check whether --with-included-gettext was given.
23266 if test "${with_included_gettext+set}" = set; then
23267   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23268 else
23269   nls_cv_force_use_gnu_gettext=no
23270 fi
23271
23272       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23273 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23274
23275       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23276       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23277
23278
23279
23280
23281
23282
23283         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23284 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23285 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23286   echo $ECHO_N "(cached) $ECHO_C" >&6
23287 else
23288   cat >conftest.$ac_ext <<_ACEOF
23289 /* confdefs.h.  */
23290 _ACEOF
23291 cat confdefs.h >>conftest.$ac_ext
23292 cat >>conftest.$ac_ext <<_ACEOF
23293 /* end confdefs.h.  */
23294 #include <libintl.h>
23295 extern int _nl_msg_cat_cntr;
23296 extern int *_nl_domain_bindings;
23297 int
23298 main ()
23299 {
23300 bindtextdomain ("", "");
23301 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23302   ;
23303   return 0;
23304 }
23305 _ACEOF
23306 rm -f conftest.$ac_objext conftest$ac_exeext
23307 if { (ac_try="$ac_link"
23308 case "(($ac_try" in
23309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23310   *) ac_try_echo=$ac_try;;
23311 esac
23312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23313   (eval "$ac_link") 2>conftest.er1
23314   ac_status=$?
23315   grep -v '^ *+' conftest.er1 >conftest.err
23316   rm -f conftest.er1
23317   cat conftest.err >&5
23318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319   (exit $ac_status); } && {
23320          test -z "$ac_c_werror_flag" ||
23321          test ! -s conftest.err
23322        } && test -s conftest$ac_exeext &&
23323        $as_test_x conftest$ac_exeext; then
23324   gt_cv_func_gnugettext1_libc=yes
23325 else
23326   echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23328
23329         gt_cv_func_gnugettext1_libc=no
23330 fi
23331
23332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23333       conftest$ac_exeext conftest.$ac_ext
23334 fi
23335 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23336 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23337
23338         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23339
23340
23341
23342     use_additional=yes
23343
23344   acl_save_prefix="$prefix"
23345   prefix="$acl_final_prefix"
23346   acl_save_exec_prefix="$exec_prefix"
23347   exec_prefix="$acl_final_exec_prefix"
23348
23349     eval additional_includedir=\"$includedir\"
23350     eval additional_libdir=\"$libdir\"
23351
23352   exec_prefix="$acl_save_exec_prefix"
23353   prefix="$acl_save_prefix"
23354
23355
23356 # Check whether --with-libintl-prefix was given.
23357 if test "${with_libintl_prefix+set}" = set; then
23358   withval=$with_libintl_prefix;
23359     if test "X$withval" = "Xno"; then
23360       use_additional=no
23361     else
23362       if test "X$withval" = "X"; then
23363
23364   acl_save_prefix="$prefix"
23365   prefix="$acl_final_prefix"
23366   acl_save_exec_prefix="$exec_prefix"
23367   exec_prefix="$acl_final_exec_prefix"
23368
23369           eval additional_includedir=\"$includedir\"
23370           eval additional_libdir=\"$libdir\"
23371
23372   exec_prefix="$acl_save_exec_prefix"
23373   prefix="$acl_save_prefix"
23374
23375       else
23376         additional_includedir="$withval/include"
23377         additional_libdir="$withval/lib"
23378       fi
23379     fi
23380
23381 fi
23382
23383       LIBINTL=
23384   LTLIBINTL=
23385   INCINTL=
23386   rpathdirs=
23387   ltrpathdirs=
23388   names_already_handled=
23389   names_next_round='intl '
23390   while test -n "$names_next_round"; do
23391     names_this_round="$names_next_round"
23392     names_next_round=
23393     for name in $names_this_round; do
23394       already_handled=
23395       for n in $names_already_handled; do
23396         if test "$n" = "$name"; then
23397           already_handled=yes
23398           break
23399         fi
23400       done
23401       if test -z "$already_handled"; then
23402         names_already_handled="$names_already_handled $name"
23403                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23404         eval value=\"\$HAVE_LIB$uppername\"
23405         if test -n "$value"; then
23406           if test "$value" = yes; then
23407             eval value=\"\$LIB$uppername\"
23408             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23409             eval value=\"\$LTLIB$uppername\"
23410             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23411           else
23412                                     :
23413           fi
23414         else
23415                               found_dir=
23416           found_la=
23417           found_so=
23418           found_a=
23419           if test $use_additional = yes; then
23420             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23421               found_dir="$additional_libdir"
23422               found_so="$additional_libdir/lib$name.$shlibext"
23423               if test -f "$additional_libdir/lib$name.la"; then
23424                 found_la="$additional_libdir/lib$name.la"
23425               fi
23426             else
23427               if test -f "$additional_libdir/lib$name.$libext"; then
23428                 found_dir="$additional_libdir"
23429                 found_a="$additional_libdir/lib$name.$libext"
23430                 if test -f "$additional_libdir/lib$name.la"; then
23431                   found_la="$additional_libdir/lib$name.la"
23432                 fi
23433               fi
23434             fi
23435           fi
23436           if test "X$found_dir" = "X"; then
23437             for x in $LDFLAGS $LTLIBINTL; do
23438
23439   acl_save_prefix="$prefix"
23440   prefix="$acl_final_prefix"
23441   acl_save_exec_prefix="$exec_prefix"
23442   exec_prefix="$acl_final_exec_prefix"
23443   eval x=\"$x\"
23444   exec_prefix="$acl_save_exec_prefix"
23445   prefix="$acl_save_prefix"
23446
23447               case "$x" in
23448                 -L*)
23449                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23450                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23451                     found_dir="$dir"
23452                     found_so="$dir/lib$name.$shlibext"
23453                     if test -f "$dir/lib$name.la"; then
23454                       found_la="$dir/lib$name.la"
23455                     fi
23456                   else
23457                     if test -f "$dir/lib$name.$libext"; then
23458                       found_dir="$dir"
23459                       found_a="$dir/lib$name.$libext"
23460                       if test -f "$dir/lib$name.la"; then
23461                         found_la="$dir/lib$name.la"
23462                       fi
23463                     fi
23464                   fi
23465                   ;;
23466               esac
23467               if test "X$found_dir" != "X"; then
23468                 break
23469               fi
23470             done
23471           fi
23472           if test "X$found_dir" != "X"; then
23473                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23474             if test "X$found_so" != "X"; then
23475                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23476                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23477               else
23478                                                                                 haveit=
23479                 for x in $ltrpathdirs; do
23480                   if test "X$x" = "X$found_dir"; then
23481                     haveit=yes
23482                     break
23483                   fi
23484                 done
23485                 if test -z "$haveit"; then
23486                   ltrpathdirs="$ltrpathdirs $found_dir"
23487                 fi
23488                                 if test "$hardcode_direct" = yes; then
23489                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23490                 else
23491                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23492                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23493                                                             haveit=
23494                     for x in $rpathdirs; do
23495                       if test "X$x" = "X$found_dir"; then
23496                         haveit=yes
23497                         break
23498                       fi
23499                     done
23500                     if test -z "$haveit"; then
23501                       rpathdirs="$rpathdirs $found_dir"
23502                     fi
23503                   else
23504                                                                                 haveit=
23505                     for x in $LDFLAGS $LIBINTL; do
23506
23507   acl_save_prefix="$prefix"
23508   prefix="$acl_final_prefix"
23509   acl_save_exec_prefix="$exec_prefix"
23510   exec_prefix="$acl_final_exec_prefix"
23511   eval x=\"$x\"
23512   exec_prefix="$acl_save_exec_prefix"
23513   prefix="$acl_save_prefix"
23514
23515                       if test "X$x" = "X-L$found_dir"; then
23516                         haveit=yes
23517                         break
23518                       fi
23519                     done
23520                     if test -z "$haveit"; then
23521                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23522                     fi
23523                     if test "$hardcode_minus_L" != no; then
23524                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23525                     else
23526                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23527                     fi
23528                   fi
23529                 fi
23530               fi
23531             else
23532               if test "X$found_a" != "X"; then
23533                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23534               else
23535                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23536               fi
23537             fi
23538                         additional_includedir=
23539             case "$found_dir" in
23540               */lib | */lib/)
23541                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23542                 additional_includedir="$basedir/include"
23543                 ;;
23544             esac
23545             if test "X$additional_includedir" != "X"; then
23546                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23547                 haveit=
23548                 if test "X$additional_includedir" = "X/usr/local/include"; then
23549                   if test -n "$GCC"; then
23550                     case $host_os in
23551                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23552                     esac
23553                   fi
23554                 fi
23555                 if test -z "$haveit"; then
23556                   for x in $CPPFLAGS $INCINTL; do
23557
23558   acl_save_prefix="$prefix"
23559   prefix="$acl_final_prefix"
23560   acl_save_exec_prefix="$exec_prefix"
23561   exec_prefix="$acl_final_exec_prefix"
23562   eval x=\"$x\"
23563   exec_prefix="$acl_save_exec_prefix"
23564   prefix="$acl_save_prefix"
23565
23566                     if test "X$x" = "X-I$additional_includedir"; then
23567                       haveit=yes
23568                       break
23569                     fi
23570                   done
23571                   if test -z "$haveit"; then
23572                     if test -d "$additional_includedir"; then
23573                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23574                     fi
23575                   fi
23576                 fi
23577               fi
23578             fi
23579                         if test -n "$found_la"; then
23580                                                         save_libdir="$libdir"
23581               case "$found_la" in
23582                 */* | *\\*) . "$found_la" ;;
23583                 *) . "./$found_la" ;;
23584               esac
23585               libdir="$save_libdir"
23586                             for dep in $dependency_libs; do
23587                 case "$dep" in
23588                   -L*)
23589                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23590                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23591                       haveit=
23592                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23593                         if test -n "$GCC"; then
23594                           case $host_os in
23595                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23596                           esac
23597                         fi
23598                       fi
23599                       if test -z "$haveit"; then
23600                         haveit=
23601                         for x in $LDFLAGS $LIBINTL; do
23602
23603   acl_save_prefix="$prefix"
23604   prefix="$acl_final_prefix"
23605   acl_save_exec_prefix="$exec_prefix"
23606   exec_prefix="$acl_final_exec_prefix"
23607   eval x=\"$x\"
23608   exec_prefix="$acl_save_exec_prefix"
23609   prefix="$acl_save_prefix"
23610
23611                           if test "X$x" = "X-L$additional_libdir"; then
23612                             haveit=yes
23613                             break
23614                           fi
23615                         done
23616                         if test -z "$haveit"; then
23617                           if test -d "$additional_libdir"; then
23618                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23619                           fi
23620                         fi
23621                         haveit=
23622                         for x in $LDFLAGS $LTLIBINTL; do
23623
23624   acl_save_prefix="$prefix"
23625   prefix="$acl_final_prefix"
23626   acl_save_exec_prefix="$exec_prefix"
23627   exec_prefix="$acl_final_exec_prefix"
23628   eval x=\"$x\"
23629   exec_prefix="$acl_save_exec_prefix"
23630   prefix="$acl_save_prefix"
23631
23632                           if test "X$x" = "X-L$additional_libdir"; then
23633                             haveit=yes
23634                             break
23635                           fi
23636                         done
23637                         if test -z "$haveit"; then
23638                           if test -d "$additional_libdir"; then
23639                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23640                           fi
23641                         fi
23642                       fi
23643                     fi
23644                     ;;
23645                   -R*)
23646                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23647                     if test "$enable_rpath" != no; then
23648                                                                   haveit=
23649                       for x in $rpathdirs; do
23650                         if test "X$x" = "X$dir"; then
23651                           haveit=yes
23652                           break
23653                         fi
23654                       done
23655                       if test -z "$haveit"; then
23656                         rpathdirs="$rpathdirs $dir"
23657                       fi
23658                                                                   haveit=
23659                       for x in $ltrpathdirs; do
23660                         if test "X$x" = "X$dir"; then
23661                           haveit=yes
23662                           break
23663                         fi
23664                       done
23665                       if test -z "$haveit"; then
23666                         ltrpathdirs="$ltrpathdirs $dir"
23667                       fi
23668                     fi
23669                     ;;
23670                   -l*)
23671                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23672                     ;;
23673                   *.la)
23674                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23675                     ;;
23676                   *)
23677                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23678                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23679                     ;;
23680                 esac
23681               done
23682             fi
23683           else
23684                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23685             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23686           fi
23687         fi
23688       fi
23689     done
23690   done
23691   if test "X$rpathdirs" != "X"; then
23692     if test -n "$hardcode_libdir_separator"; then
23693                         alldirs=
23694       for found_dir in $rpathdirs; do
23695         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23696       done
23697             acl_save_libdir="$libdir"
23698       libdir="$alldirs"
23699       eval flag=\"$hardcode_libdir_flag_spec\"
23700       libdir="$acl_save_libdir"
23701       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23702     else
23703             for found_dir in $rpathdirs; do
23704         acl_save_libdir="$libdir"
23705         libdir="$found_dir"
23706         eval flag=\"$hardcode_libdir_flag_spec\"
23707         libdir="$acl_save_libdir"
23708         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23709       done
23710     fi
23711   fi
23712   if test "X$ltrpathdirs" != "X"; then
23713             for found_dir in $ltrpathdirs; do
23714       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23715     done
23716   fi
23717
23718           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23719 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23720 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23721   echo $ECHO_N "(cached) $ECHO_C" >&6
23722 else
23723   gt_save_CPPFLAGS="$CPPFLAGS"
23724             CPPFLAGS="$CPPFLAGS $INCINTL"
23725             gt_save_LIBS="$LIBS"
23726             LIBS="$LIBS $LIBINTL"
23727                         cat >conftest.$ac_ext <<_ACEOF
23728 /* confdefs.h.  */
23729 _ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h.  */
23733 #include <libintl.h>
23734 extern int _nl_msg_cat_cntr;
23735 extern
23736 #ifdef __cplusplus
23737 "C"
23738 #endif
23739 const char *_nl_expand_alias (const char *);
23740 int
23741 main ()
23742 {
23743 bindtextdomain ("", "");
23744 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23745   ;
23746   return 0;
23747 }
23748 _ACEOF
23749 rm -f conftest.$ac_objext conftest$ac_exeext
23750 if { (ac_try="$ac_link"
23751 case "(($ac_try" in
23752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23753   *) ac_try_echo=$ac_try;;
23754 esac
23755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23756   (eval "$ac_link") 2>conftest.er1
23757   ac_status=$?
23758   grep -v '^ *+' conftest.er1 >conftest.err
23759   rm -f conftest.er1
23760   cat conftest.err >&5
23761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762   (exit $ac_status); } && {
23763          test -z "$ac_c_werror_flag" ||
23764          test ! -s conftest.err
23765        } && test -s conftest$ac_exeext &&
23766        $as_test_x conftest$ac_exeext; then
23767   gt_cv_func_gnugettext1_libintl=yes
23768 else
23769   echo "$as_me: failed program was:" >&5
23770 sed 's/^/| /' conftest.$ac_ext >&5
23771
23772         gt_cv_func_gnugettext1_libintl=no
23773 fi
23774
23775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23776       conftest$ac_exeext conftest.$ac_ext
23777                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23778               LIBS="$LIBS $LIBICONV"
23779               cat >conftest.$ac_ext <<_ACEOF
23780 /* confdefs.h.  */
23781 _ACEOF
23782 cat confdefs.h >>conftest.$ac_ext
23783 cat >>conftest.$ac_ext <<_ACEOF
23784 /* end confdefs.h.  */
23785 #include <libintl.h>
23786 extern int _nl_msg_cat_cntr;
23787 extern
23788 #ifdef __cplusplus
23789 "C"
23790 #endif
23791 const char *_nl_expand_alias (const char *);
23792 int
23793 main ()
23794 {
23795 bindtextdomain ("", "");
23796 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23797   ;
23798   return 0;
23799 }
23800 _ACEOF
23801 rm -f conftest.$ac_objext conftest$ac_exeext
23802 if { (ac_try="$ac_link"
23803 case "(($ac_try" in
23804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805   *) ac_try_echo=$ac_try;;
23806 esac
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808   (eval "$ac_link") 2>conftest.er1
23809   ac_status=$?
23810   grep -v '^ *+' conftest.er1 >conftest.err
23811   rm -f conftest.er1
23812   cat conftest.err >&5
23813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814   (exit $ac_status); } && {
23815          test -z "$ac_c_werror_flag" ||
23816          test ! -s conftest.err
23817        } && test -s conftest$ac_exeext &&
23818        $as_test_x conftest$ac_exeext; then
23819   LIBINTL="$LIBINTL $LIBICONV"
23820                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23821                 gt_cv_func_gnugettext1_libintl=yes
23822
23823 else
23824   echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23826
23827
23828 fi
23829
23830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23831       conftest$ac_exeext conftest.$ac_ext
23832             fi
23833             CPPFLAGS="$gt_save_CPPFLAGS"
23834             LIBS="$gt_save_LIBS"
23835 fi
23836 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23837 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23838         fi
23839
23840                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23841            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23842                 && test "$PACKAGE" != gettext-runtime \
23843                 && test "$PACKAGE" != gettext-tools; }; then
23844           gt_use_preinstalled_gnugettext=yes
23845         else
23846                     LIBINTL=
23847           LTLIBINTL=
23848           INCINTL=
23849         fi
23850
23851
23852         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23853                               nls_cv_use_gnu_gettext=yes
23854         fi
23855       fi
23856
23857       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23858                 BUILD_INCLUDED_LIBINTL=yes
23859         USE_INCLUDED_LIBINTL=yes
23860         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23861         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23862         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23863       fi
23864
23865       CATOBJEXT=
23866       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23867          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23868                 CATOBJEXT=.gmo
23869       fi
23870
23871
23872     if test -n "$INTL_MACOSX_LIBS"; then
23873       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23874          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23875                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23876         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23877       fi
23878     fi
23879
23880     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23881        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23882
23883 cat >>confdefs.h <<\_ACEOF
23884 #define ENABLE_NLS 1
23885 _ACEOF
23886
23887     else
23888       USE_NLS=no
23889     fi
23890   fi
23891
23892   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23893 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23894   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23895 echo "${ECHO_T}$USE_NLS" >&6; }
23896   if test "$USE_NLS" = "yes"; then
23897     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23898 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23899     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23900       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23901         gt_source="external libintl"
23902       else
23903         gt_source="libc"
23904       fi
23905     else
23906       gt_source="included intl directory"
23907     fi
23908     { echo "$as_me:$LINENO: result: $gt_source" >&5
23909 echo "${ECHO_T}$gt_source" >&6; }
23910   fi
23911
23912   if test "$USE_NLS" = "yes"; then
23913
23914     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23915       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23916         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23917 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23918         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23919 echo "${ECHO_T}$LIBINTL" >&6; }
23920
23921   for element in $INCINTL; do
23922     haveit=
23923     for x in $CPPFLAGS; do
23924
23925   acl_save_prefix="$prefix"
23926   prefix="$acl_final_prefix"
23927   acl_save_exec_prefix="$exec_prefix"
23928   exec_prefix="$acl_final_exec_prefix"
23929   eval x=\"$x\"
23930   exec_prefix="$acl_save_exec_prefix"
23931   prefix="$acl_save_prefix"
23932
23933       if test "X$x" = "X$element"; then
23934         haveit=yes
23935         break
23936       fi
23937     done
23938     if test -z "$haveit"; then
23939       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23940     fi
23941   done
23942
23943       fi
23944
23945
23946 cat >>confdefs.h <<\_ACEOF
23947 #define HAVE_GETTEXT 1
23948 _ACEOF
23949
23950
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_DCGETTEXT 1
23953 _ACEOF
23954
23955     fi
23956
23957         POSUB=po
23958   fi
23959
23960
23961             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23962       BUILD_INCLUDED_LIBINTL=yes
23963     fi
23964
23965
23966
23967
23968
23969         nls_cv_header_intl=
23970     nls_cv_header_libgt=
23971
23972         DATADIRNAME=share
23973
23974
23975         INSTOBJEXT=.mo
23976
23977
23978         GENCAT=gencat
23979
23980
23981         INTLOBJS=
23982     if test "$USE_INCLUDED_LIBINTL" = yes; then
23983       INTLOBJS="\$(GETTOBJS)"
23984     fi
23985
23986
23987         INTL_LIBTOOL_SUFFIX_PREFIX=
23988
23989
23990
23991     INTLLIBS="$LIBINTL"
23992
23993
23994
23995
23996
23997
23998 fi
23999
24000 support_mysql=no
24001 support_sqlite=no
24002 support_sqlite3=no
24003 support_postgresql=no
24004 support_dbi=no
24005 support_smartalloc=yes
24006 support_readline=yes
24007 support_conio=yes
24008 support_gnome=no
24009 support_bat=no
24010 support_wx_console=no
24011 support_tray_monitor=no
24012 support_tls=no
24013 support_crypto=no
24014 gnome_version=
24015 wx_version=
24016 support_static_tools=no
24017 support_static_fd=no
24018 support_static_sd=no
24019 support_static_dir=no
24020 support_static_cons=no
24021 support_python=no
24022 build_client_only=no
24023 build_dird=yes
24024 build_stored=yes
24025 cats=
24026 db_type=Internal
24027 support_lockmgr=no
24028 DB_TYPE=bdb
24029
24030
24031 # Check whether --enable-gnome was given.
24032 if test "${enable_gnome+set}" = set; then
24033   enableval=$enable_gnome;
24034        if test x$enableval = xyes; then
24035           support_gnome=yes
24036        fi
24037
24038
24039 fi
24040
24041
24042 GNOME_DIR=
24043 if test x$support_gnome = xyes; then
24044    { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24045 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24046    { (exit 1); exit 1; }; }
24047    { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24048 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24049    { (exit 1); exit 1; }; }
24050 fi
24051 # AC_SUBST(GNOME_DIR)
24052
24053 # Check whether --enable-bat was given.
24054 if test "${enable_bat+set}" = set; then
24055   enableval=$enable_bat;
24056        if test x$enableval = xyes; then
24057
24058 cat >>confdefs.h <<\_ACEOF
24059 #define HAVE_BAT 1
24060 _ACEOF
24061
24062           support_bat=yes
24063        fi
24064
24065
24066 fi
24067
24068
24069 BAT_DIR=
24070 if test x$support_bat = xyes; then
24071    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24072    pkg=$?
24073    if test $pkg = 0; then
24074       BAT_DIR=src/qt-console
24075    else
24076       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24077 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24078    { (exit 1); exit 1; }; }
24079    fi
24080 fi
24081
24082 got_qwt=no
24083 QWT_INC=
24084 QWT_LDFLAGS=
24085 QWT_LIB=
24086 QWT=
24087 no_qwt=no
24088 if test x$support_bat = xyes; then
24089    { echo "$as_me:$LINENO: checking for qwt support" >&5
24090 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24091
24092 # Check whether --with-qwt was given.
24093 if test "${with_qwt+set}" = set; then
24094   withval=$with_qwt;
24095           case "$with_qwt" in
24096           no)
24097              no_qwt=yes
24098              ;;
24099           yes|*)
24100              if test -f ${with_qwt}/include/qwt.h; then
24101                 QWT_INC="${with_qwt}/include"
24102                 QWT_LDFLAGS="-L${with_qwt}/lib"
24103                 QWT_LIB="-lqwt"
24104                 QWT="qwt"
24105              fi
24106              ;;
24107           esac
24108
24109
24110 fi
24111
24112
24113             if test $no_qwt = no; then
24114       if test x$QWT_INC = x; then
24115          for root in /usr /usr/local; do
24116             for ver in qwt qwt5 qwt-qt4; do
24117                if test -f ${root}/include/${ver}/qwt.h; then
24118                   QWT_INC="${root}/include/${ver}"
24119                   if test -d ${root}/lib64/; then
24120                      QWT_LDFLAGS="-L${root}/lib64"
24121                   elif test -d ${root}/lib/64/; then
24122                      QWT_LDFLAGS="-L${root}/64"
24123                   else
24124                      QWT_LDFLAGS="-L${root}/lib"
24125                   fi
24126                   QWT_LIB="-lqwt"
24127                   QWT="qwt"
24128                   got_qwt=yes
24129                   break;
24130                fi
24131             done
24132          done
24133       fi
24134    fi
24135    if test x$QWT_INC = x; then
24136       { echo "$as_me:$LINENO: result: no" >&5
24137 echo "${ECHO_T}no" >&6; }
24138    else
24139
24140 cat >>confdefs.h <<\_ACEOF
24141 #define HAVE_QWT 1
24142 _ACEOF
24143
24144       { echo "$as_me:$LINENO: result: yes" >&5
24145 echo "${ECHO_T}yes" >&6; }
24146    fi
24147 fi
24148
24149
24150
24151
24152
24153
24154
24155 # Check whether --enable-bwx-console was given.
24156 if test "${enable_bwx_console+set}" = set; then
24157   enableval=$enable_bwx_console;
24158        if test x$enableval = xyes; then
24159           support_wx_console=yes
24160        fi
24161
24162
24163 fi
24164
24165
24166 WX_DIR=
24167 if test x$support_wx_console = xyes; then
24168    abc=`$WXCONFIG $WXFLAGS --cppflags`
24169    pkg=$?
24170    if test $pkg = 0; then
24171       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24172       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24173       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24174
24175
24176
24177       WX_DIR="src/wx-console"
24178    else
24179       echo " "
24180       echo "wx-config program not found. bwx-console disabled."
24181       echo " "
24182       support_wx_console=no
24183    fi
24184 fi
24185
24186
24187 # Check whether --enable-tray-monitor was given.
24188 if test "${enable_tray_monitor+set}" = set; then
24189   enableval=$enable_tray_monitor;
24190        if test x$enableval = xyes; then
24191           support_tray_monitor=yes
24192        fi
24193
24194
24195 fi
24196
24197
24198 TRAY_MONITOR_DIR=
24199 if test x$support_tray_monitor = xyes; then
24200    abc=`$PKGCONFIG --exists gtk+-2.0`
24201    pkg=$?
24202    if test $pkg = 0; then
24203       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24204       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24205
24206
24207       TRAY_MONITOR_DIR=src/tray-monitor
24208       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24209       pkg=$?
24210       if test $pkg = 0; then
24211
24212 cat >>confdefs.h <<\_ACEOF
24213 #define HAVE_GTK_2_4 1
24214 _ACEOF
24215
24216       fi
24217    fi
24218 fi
24219
24220
24221 # Check whether --enable-smartalloc was given.
24222 if test "${enable_smartalloc+set}" = set; then
24223   enableval=$enable_smartalloc;
24224        if test x$enableval = xno; then
24225           support_smartalloc=no
24226        fi
24227
24228
24229 fi
24230
24231
24232 if test x$support_smartalloc = xyes; then
24233
24234 cat >>confdefs.h <<\_ACEOF
24235 #define SMARTALLOC 1
24236 _ACEOF
24237
24238 fi
24239
24240 # Check whether --enable-lockmgr was given.
24241 if test "${enable_lockmgr+set}" = set; then
24242   enableval=$enable_lockmgr;
24243        if test x$enableval = xyes; then
24244           support_lockmgr=yes
24245        fi
24246
24247
24248 fi
24249
24250
24251 if test x$support_lockmgr = xyes; then
24252
24253 cat >>confdefs.h <<\_ACEOF
24254 #define _USE_LOCKMGR 1
24255 _ACEOF
24256
24257 fi
24258
24259
24260 # Check whether --enable-static-tools was given.
24261 if test "${enable_static_tools+set}" = set; then
24262   enableval=$enable_static_tools;
24263        if test x$enableval = xyes; then
24264           if test x$use_libtool = xyes; then
24265              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24266   please rerun configure with --disable-libtool" >&5
24267 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24268   please rerun configure with --disable-libtool" >&2;}
24269    { (exit 1); exit 1; }; }
24270           fi
24271           support_static_tools=yes
24272        fi
24273
24274
24275 fi
24276
24277
24278 TTOOL_LDFLAGS=
24279 if test x$support_static_tools = xyes; then
24280    TTOOL_LDFLAGS="-static"
24281 fi
24282
24283
24284 # Check whether --enable-static-fd was given.
24285 if test "${enable_static_fd+set}" = set; then
24286   enableval=$enable_static_fd;
24287        if test x$enableval = xyes; then
24288           if test x$use_libtool = xyes; then
24289              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24290   please rerun configure with --disable-libtool" >&5
24291 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24292   please rerun configure with --disable-libtool" >&2;}
24293    { (exit 1); exit 1; }; }
24294           fi
24295           support_static_fd=yes
24296        fi
24297
24298
24299 fi
24300
24301
24302 STATIC_FD=
24303 if test x$support_static_fd = xyes; then
24304    STATIC_FD="static-bacula-fd"
24305 fi
24306
24307
24308 # Check whether --enable-static-sd was given.
24309 if test "${enable_static_sd+set}" = set; then
24310   enableval=$enable_static_sd;
24311        if test x$enableval = xyes; then
24312           if test x$use_libtool = xyes; then
24313              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24314   please rerun configure with --disable-libtool" >&5
24315 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24316   please rerun configure with --disable-libtool" >&2;}
24317    { (exit 1); exit 1; }; }
24318           fi
24319           support_static_sd=yes
24320        fi
24321
24322
24323 fi
24324
24325
24326 STATIC_SD=
24327 if test x$support_static_sd = xyes; then
24328    STATIC_SD="static-bacula-sd"
24329 fi
24330
24331
24332 # Check whether --enable-static-dir was given.
24333 if test "${enable_static_dir+set}" = set; then
24334   enableval=$enable_static_dir;
24335        if test x$enableval = xyes; then
24336           if test x$use_libtool = xyes; then
24337              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24338   please rerun configure with --disable-libtool" >&5
24339 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24340   please rerun configure with --disable-libtool" >&2;}
24341    { (exit 1); exit 1; }; }
24342           fi
24343           support_static_dir=yes
24344        fi
24345
24346
24347 fi
24348
24349
24350 STATIC_DIR=
24351 if test x$support_static_dir = xyes; then
24352    STATIC_DIR="static-bacula-dir"
24353 fi
24354
24355
24356 # Check whether --enable-static-cons was given.
24357 if test "${enable_static_cons+set}" = set; then
24358   enableval=$enable_static_cons;
24359        if test x$enableval = xyes; then
24360           if test x$use_libtool = xyes; then
24361              { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24362   please rerun configure with --disable-libtool" >&5
24363 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24364   please rerun configure with --disable-libtool" >&2;}
24365    { (exit 1); exit 1; }; }
24366           fi
24367           support_static_cons=yes
24368        fi
24369
24370
24371 fi
24372
24373
24374 STATIC_CONS=
24375 STATIC_GNOME_CONS=
24376 STATIC_WX_CONS=
24377 if test x$support_static_cons = xyes; then
24378    STATIC_CONS="static-bconsole"
24379    STATIC_GNOME_CONS="static-bgnome-console"
24380    STATIC_WX_CONS="static-bwx-console"
24381 fi
24382
24383
24384
24385
24386 # Check whether --enable-client-only was given.
24387 if test "${enable_client_only+set}" = set; then
24388   enableval=$enable_client_only;
24389        if test x$enableval = xyes; then
24390           build_client_only=yes
24391           db_type=None
24392           DB_TYPE=none
24393        fi
24394
24395
24396 fi
24397
24398 if test x$build_client_only = xno; then
24399    ALL_DIRS="subdirs"
24400 else
24401    ALL_DIRS=""
24402 fi
24403
24404
24405 # Check whether --enable-build-dird was given.
24406 if test "${enable_build_dird+set}" = set; then
24407   enableval=$enable_build_dird;
24408        if test x$enableval = xno; then
24409           build_dird=no
24410        fi
24411
24412
24413 fi
24414
24415 if test x$build_dird = xyes; then
24416    DIRD_DIR="src/dird"
24417    DIR_TOOLS="DIRTOOLS"
24418 else
24419    DIRD_DIR=""
24420    DIR_TOOLS="NODIRTOOLS"
24421 fi
24422
24423
24424
24425 # Check whether --enable-build-stored was given.
24426 if test "${enable_build_stored+set}" = set; then
24427   enableval=$enable_build_stored;
24428       if test x$enableval = xno; then
24429          build_stored=no
24430       fi
24431
24432
24433 fi
24434
24435 if test x$build_stored = xyes; then
24436    STORED_DIR="src/stored"
24437 else
24438    STORED_DIR=""
24439 fi
24440
24441
24442 # Check whether --enable-conio was given.
24443 if test "${enable_conio+set}" = set; then
24444   enableval=$enable_conio;
24445        if test x$enableval = xno; then
24446           support_conio=no
24447        fi
24448
24449
24450 fi
24451
24452
24453
24454 support_ipv6=yes
24455 # Check whether --enable-ipv6 was given.
24456 if test "${enable_ipv6+set}" = set; then
24457   enableval=$enable_ipv6;
24458        if test x$enableval = xno; then
24459           support_ipv6=no
24460        fi
24461
24462
24463 fi
24464
24465
24466 if test x$support_ipv6 = xyes; then
24467     cat >conftest.$ac_ext <<_ACEOF
24468 /* confdefs.h.  */
24469 _ACEOF
24470 cat confdefs.h >>conftest.$ac_ext
24471 cat >>conftest.$ac_ext <<_ACEOF
24472 /* end confdefs.h.  */
24473  #include <sys/types.h>
24474 #include <sys/socket.h>
24475 #include <netinet/in.h>
24476 int
24477 main ()
24478 {
24479 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24480   ;
24481   return 0;
24482 }
24483 _ACEOF
24484 rm -f conftest.$ac_objext conftest$ac_exeext
24485 if { (ac_try="$ac_link"
24486 case "(($ac_try" in
24487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24488   *) ac_try_echo=$ac_try;;
24489 esac
24490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24491   (eval "$ac_link") 2>conftest.er1
24492   ac_status=$?
24493   grep -v '^ *+' conftest.er1 >conftest.err
24494   rm -f conftest.er1
24495   cat conftest.err >&5
24496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497   (exit $ac_status); } && {
24498          test -z "$ac_c_werror_flag" ||
24499          test ! -s conftest.err
24500        } && test -s conftest$ac_exeext &&
24501        $as_test_x conftest$ac_exeext; then
24502   support_ipv6=yes
24503 else
24504   echo "$as_me: failed program was:" >&5
24505 sed 's/^/| /' conftest.$ac_ext >&5
24506
24507         support_ipv6=no
24508 fi
24509
24510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24511       conftest$ac_exeext conftest.$ac_ext
24512 fi
24513
24514 if test x$support_ipv6 = xyes; then
24515
24516 cat >>confdefs.h <<\_ACEOF
24517 #define HAVE_IPV6 1
24518 _ACEOF
24519
24520 fi
24521
24522 got_conio="no"
24523 if test x$support_conio = xyes; then
24524    if test "${ac_cv_header_termcap_h+set}" = set; then
24525   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24526 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24527 if test "${ac_cv_header_termcap_h+set}" = set; then
24528   echo $ECHO_N "(cached) $ECHO_C" >&6
24529 fi
24530 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24531 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24532 else
24533   # Is the header compilable?
24534 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24535 echo $ECHO_N "checking termcap.h usability... $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 $ac_includes_default
24543 #include <termcap.h>
24544 _ACEOF
24545 rm -f conftest.$ac_objext
24546 if { (ac_try="$ac_compile"
24547 case "(($ac_try" in
24548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24549   *) ac_try_echo=$ac_try;;
24550 esac
24551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24552   (eval "$ac_compile") 2>conftest.er1
24553   ac_status=$?
24554   grep -v '^ *+' conftest.er1 >conftest.err
24555   rm -f conftest.er1
24556   cat conftest.err >&5
24557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558   (exit $ac_status); } && {
24559          test -z "$ac_c_werror_flag" ||
24560          test ! -s conftest.err
24561        } && test -s conftest.$ac_objext; then
24562   ac_header_compiler=yes
24563 else
24564   echo "$as_me: failed program was:" >&5
24565 sed 's/^/| /' conftest.$ac_ext >&5
24566
24567         ac_header_compiler=no
24568 fi
24569
24570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24572 echo "${ECHO_T}$ac_header_compiler" >&6; }
24573
24574 # Is the header present?
24575 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24576 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24577 cat >conftest.$ac_ext <<_ACEOF
24578 /* confdefs.h.  */
24579 _ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h.  */
24583 #include <termcap.h>
24584 _ACEOF
24585 if { (ac_try="$ac_cpp conftest.$ac_ext"
24586 case "(($ac_try" in
24587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24588   *) ac_try_echo=$ac_try;;
24589 esac
24590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24591   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24592   ac_status=$?
24593   grep -v '^ *+' conftest.er1 >conftest.err
24594   rm -f conftest.er1
24595   cat conftest.err >&5
24596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597   (exit $ac_status); } >/dev/null && {
24598          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24599          test ! -s conftest.err
24600        }; then
24601   ac_header_preproc=yes
24602 else
24603   echo "$as_me: failed program was:" >&5
24604 sed 's/^/| /' conftest.$ac_ext >&5
24605
24606   ac_header_preproc=no
24607 fi
24608
24609 rm -f conftest.err conftest.$ac_ext
24610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24611 echo "${ECHO_T}$ac_header_preproc" >&6; }
24612
24613 # So?  What about this header?
24614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24615   yes:no: )
24616     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24617 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24618     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24619 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24620     ac_header_preproc=yes
24621     ;;
24622   no:yes:* )
24623     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24624 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24625     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24626 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24627     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24628 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24629     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24630 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24631     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24632 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24633     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24634 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24635
24636     ;;
24637 esac
24638 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24639 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24640 if test "${ac_cv_header_termcap_h+set}" = set; then
24641   echo $ECHO_N "(cached) $ECHO_C" >&6
24642 else
24643   ac_cv_header_termcap_h=$ac_header_preproc
24644 fi
24645 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24646 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24647
24648 fi
24649 if test $ac_cv_header_termcap_h = yes; then
24650    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24651 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24652 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24653   echo $ECHO_N "(cached) $ECHO_C" >&6
24654 else
24655   ac_check_lib_save_LIBS=$LIBS
24656 LIBS="-ltermcap  $LIBS"
24657 cat >conftest.$ac_ext <<_ACEOF
24658 /* confdefs.h.  */
24659 _ACEOF
24660 cat confdefs.h >>conftest.$ac_ext
24661 cat >>conftest.$ac_ext <<_ACEOF
24662 /* end confdefs.h.  */
24663
24664 /* Override any GCC internal prototype to avoid an error.
24665    Use char because int might match the return type of a GCC
24666    builtin and then its argument prototype would still apply.  */
24667 #ifdef __cplusplus
24668 extern "C"
24669 #endif
24670 char tgetent ();
24671 int
24672 main ()
24673 {
24674 return tgetent ();
24675   ;
24676   return 0;
24677 }
24678 _ACEOF
24679 rm -f conftest.$ac_objext conftest$ac_exeext
24680 if { (ac_try="$ac_link"
24681 case "(($ac_try" in
24682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683   *) ac_try_echo=$ac_try;;
24684 esac
24685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24686   (eval "$ac_link") 2>conftest.er1
24687   ac_status=$?
24688   grep -v '^ *+' conftest.er1 >conftest.err
24689   rm -f conftest.er1
24690   cat conftest.err >&5
24691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692   (exit $ac_status); } && {
24693          test -z "$ac_c_werror_flag" ||
24694          test ! -s conftest.err
24695        } && test -s conftest$ac_exeext &&
24696        $as_test_x conftest$ac_exeext; then
24697   ac_cv_lib_termcap_tgetent=yes
24698 else
24699   echo "$as_me: failed program was:" >&5
24700 sed 's/^/| /' conftest.$ac_ext >&5
24701
24702         ac_cv_lib_termcap_tgetent=no
24703 fi
24704
24705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24706       conftest$ac_exeext conftest.$ac_ext
24707 LIBS=$ac_check_lib_save_LIBS
24708 fi
24709 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24710 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24711 if test $ac_cv_lib_termcap_tgetent = yes; then
24712    CONS_LIBS="-ltermcap"
24713     CONS_OBJ="conio.o"
24714     CONS_SRC="conio.c"
24715     got_conio="yes"
24716     support_readline=no
24717
24718 cat >>confdefs.h <<\_ACEOF
24719 #define HAVE_CONIO 1
24720 _ACEOF
24721
24722
24723 else
24724    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24725 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24726 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24727   echo $ECHO_N "(cached) $ECHO_C" >&6
24728 else
24729   ac_check_lib_save_LIBS=$LIBS
24730 LIBS="-lncurses  $LIBS"
24731 cat >conftest.$ac_ext <<_ACEOF
24732 /* confdefs.h.  */
24733 _ACEOF
24734 cat confdefs.h >>conftest.$ac_ext
24735 cat >>conftest.$ac_ext <<_ACEOF
24736 /* end confdefs.h.  */
24737
24738 /* Override any GCC internal prototype to avoid an error.
24739    Use char because int might match the return type of a GCC
24740    builtin and then its argument prototype would still apply.  */
24741 #ifdef __cplusplus
24742 extern "C"
24743 #endif
24744 char tgetent ();
24745 int
24746 main ()
24747 {
24748 return tgetent ();
24749   ;
24750   return 0;
24751 }
24752 _ACEOF
24753 rm -f conftest.$ac_objext conftest$ac_exeext
24754 if { (ac_try="$ac_link"
24755 case "(($ac_try" in
24756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757   *) ac_try_echo=$ac_try;;
24758 esac
24759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24760   (eval "$ac_link") 2>conftest.er1
24761   ac_status=$?
24762   grep -v '^ *+' conftest.er1 >conftest.err
24763   rm -f conftest.er1
24764   cat conftest.err >&5
24765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766   (exit $ac_status); } && {
24767          test -z "$ac_c_werror_flag" ||
24768          test ! -s conftest.err
24769        } && test -s conftest$ac_exeext &&
24770        $as_test_x conftest$ac_exeext; then
24771   ac_cv_lib_ncurses_tgetent=yes
24772 else
24773   echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24775
24776         ac_cv_lib_ncurses_tgetent=no
24777 fi
24778
24779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24780       conftest$ac_exeext conftest.$ac_ext
24781 LIBS=$ac_check_lib_save_LIBS
24782 fi
24783 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24784 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24785 if test $ac_cv_lib_ncurses_tgetent = yes; then
24786    CONS_LIBS="-lncurses"
24787       CONS_OBJ="conio.o"
24788       CONS_SRC="conio.c"
24789       got_conio="yes"
24790       support_readline=no
24791
24792 cat >>confdefs.h <<\_ACEOF
24793 #define HAVE_CONIO 1
24794 _ACEOF
24795
24796
24797 fi
24798
24799
24800 fi
24801
24802
24803 else
24804
24805
24806 for ac_header in curses.h
24807 do
24808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24810   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24813   echo $ECHO_N "(cached) $ECHO_C" >&6
24814 fi
24815 ac_res=`eval echo '${'$as_ac_Header'}'`
24816                { echo "$as_me:$LINENO: result: $ac_res" >&5
24817 echo "${ECHO_T}$ac_res" >&6; }
24818 else
24819   # Is the header compilable?
24820 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24822 cat >conftest.$ac_ext <<_ACEOF
24823 /* confdefs.h.  */
24824 _ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h.  */
24828 $ac_includes_default
24829 #include <$ac_header>
24830 _ACEOF
24831 rm -f conftest.$ac_objext
24832 if { (ac_try="$ac_compile"
24833 case "(($ac_try" in
24834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24835   *) ac_try_echo=$ac_try;;
24836 esac
24837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24838   (eval "$ac_compile") 2>conftest.er1
24839   ac_status=$?
24840   grep -v '^ *+' conftest.er1 >conftest.err
24841   rm -f conftest.er1
24842   cat conftest.err >&5
24843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844   (exit $ac_status); } && {
24845          test -z "$ac_c_werror_flag" ||
24846          test ! -s conftest.err
24847        } && test -s conftest.$ac_objext; then
24848   ac_header_compiler=yes
24849 else
24850   echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24852
24853         ac_header_compiler=no
24854 fi
24855
24856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24858 echo "${ECHO_T}$ac_header_compiler" >&6; }
24859
24860 # Is the header present?
24861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24863 cat >conftest.$ac_ext <<_ACEOF
24864 /* confdefs.h.  */
24865 _ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h.  */
24869 #include <$ac_header>
24870 _ACEOF
24871 if { (ac_try="$ac_cpp conftest.$ac_ext"
24872 case "(($ac_try" in
24873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874   *) ac_try_echo=$ac_try;;
24875 esac
24876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24878   ac_status=$?
24879   grep -v '^ *+' conftest.er1 >conftest.err
24880   rm -f conftest.er1
24881   cat conftest.err >&5
24882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883   (exit $ac_status); } >/dev/null && {
24884          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24885          test ! -s conftest.err
24886        }; then
24887   ac_header_preproc=yes
24888 else
24889   echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24891
24892   ac_header_preproc=no
24893 fi
24894
24895 rm -f conftest.err conftest.$ac_ext
24896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24897 echo "${ECHO_T}$ac_header_preproc" >&6; }
24898
24899 # So?  What about this header?
24900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24901   yes:no: )
24902     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24906     ac_header_preproc=yes
24907     ;;
24908   no:yes:* )
24909     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24911     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24912 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24913     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24915     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24916 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24917     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24919     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24921
24922     ;;
24923 esac
24924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24927   echo $ECHO_N "(cached) $ECHO_C" >&6
24928 else
24929   eval "$as_ac_Header=\$ac_header_preproc"
24930 fi
24931 ac_res=`eval echo '${'$as_ac_Header'}'`
24932                { echo "$as_me:$LINENO: result: $ac_res" >&5
24933 echo "${ECHO_T}$ac_res" >&6; }
24934
24935 fi
24936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24937   cat >>confdefs.h <<_ACEOF
24938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24939 _ACEOF
24940
24941 fi
24942
24943 done
24944
24945     { echo "$as_me:$LINENO: checking for term.h" >&5
24946 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24947 if test "${ac_cv_header_term_h+set}" = set; then
24948   echo $ECHO_N "(cached) $ECHO_C" >&6
24949 else
24950   cat >conftest.$ac_ext <<_ACEOF
24951 /* confdefs.h.  */
24952 _ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h.  */
24956 #if HAVE_CURSES_H
24957 #include <curses.h>
24958 #endif
24959
24960
24961 #include <term.h>
24962 _ACEOF
24963 rm -f conftest.$ac_objext
24964 if { (ac_try="$ac_compile"
24965 case "(($ac_try" in
24966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967   *) ac_try_echo=$ac_try;;
24968 esac
24969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24970   (eval "$ac_compile") 2>conftest.er1
24971   ac_status=$?
24972   grep -v '^ *+' conftest.er1 >conftest.err
24973   rm -f conftest.er1
24974   cat conftest.err >&5
24975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976   (exit $ac_status); } && {
24977          test -z "$ac_c_werror_flag" ||
24978          test ! -s conftest.err
24979        } && test -s conftest.$ac_objext; then
24980   ac_cv_header_term_h=yes
24981 else
24982   echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24984
24985         ac_cv_header_term_h=no
24986 fi
24987
24988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24989 fi
24990 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24991 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24992 if test $ac_cv_header_term_h = yes; then
24993    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24994 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24995 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24996   echo $ECHO_N "(cached) $ECHO_C" >&6
24997 else
24998   ac_check_lib_save_LIBS=$LIBS
24999 LIBS="-lcurses  $LIBS"
25000 cat >conftest.$ac_ext <<_ACEOF
25001 /* confdefs.h.  */
25002 _ACEOF
25003 cat confdefs.h >>conftest.$ac_ext
25004 cat >>conftest.$ac_ext <<_ACEOF
25005 /* end confdefs.h.  */
25006
25007 /* Override any GCC internal prototype to avoid an error.
25008    Use char because int might match the return type of a GCC
25009    builtin and then its argument prototype would still apply.  */
25010 #ifdef __cplusplus
25011 extern "C"
25012 #endif
25013 char tgetent ();
25014 int
25015 main ()
25016 {
25017 return tgetent ();
25018   ;
25019   return 0;
25020 }
25021 _ACEOF
25022 rm -f conftest.$ac_objext conftest$ac_exeext
25023 if { (ac_try="$ac_link"
25024 case "(($ac_try" in
25025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25026   *) ac_try_echo=$ac_try;;
25027 esac
25028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25029   (eval "$ac_link") 2>conftest.er1
25030   ac_status=$?
25031   grep -v '^ *+' conftest.er1 >conftest.err
25032   rm -f conftest.er1
25033   cat conftest.err >&5
25034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035   (exit $ac_status); } && {
25036          test -z "$ac_c_werror_flag" ||
25037          test ! -s conftest.err
25038        } && test -s conftest$ac_exeext &&
25039        $as_test_x conftest$ac_exeext; then
25040   ac_cv_lib_curses_tgetent=yes
25041 else
25042   echo "$as_me: failed program was:" >&5
25043 sed 's/^/| /' conftest.$ac_ext >&5
25044
25045         ac_cv_lib_curses_tgetent=no
25046 fi
25047
25048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25049       conftest$ac_exeext conftest.$ac_ext
25050 LIBS=$ac_check_lib_save_LIBS
25051 fi
25052 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25053 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25054 if test $ac_cv_lib_curses_tgetent = yes; then
25055    CONS_LIBS="-lcurses"
25056          CONS_OBJ="conio.o"
25057          CONS_SRC="conio.c"
25058          got_conio="yes"
25059          support_readline=no
25060
25061 cat >>confdefs.h <<\_ACEOF
25062 #define HAVE_CONIO 1
25063 _ACEOF
25064
25065
25066 fi
25067
25068
25069 else
25070    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25071 fi
25072
25073
25074
25075 fi
25076
25077
25078 fi
25079
25080
25081 # Check whether --enable-readline was given.
25082 if test "${enable_readline+set}" = set; then
25083   enableval=$enable_readline;
25084        if test x$enableval = xno; then
25085           support_readline=no
25086        fi
25087
25088
25089 fi
25090
25091
25092 got_readline="no"
25093 READLINE_SRC=
25094 if test x$support_readline = xyes; then
25095
25096 # Check whether --with-readline was given.
25097 if test "${with_readline+set}" = set; then
25098   withval=$with_readline;
25099           case "$with_readline" in
25100           no)
25101              :
25102              ;;
25103           yes|*)
25104              if test -f ${with_readline}/readline.h; then
25105                 CONS_INC="-I${with_readline}"
25106                 CONS_LDFLAGS="-L$with_readline"
25107              elif test -f ${with_readline}/include/readline/readline.h; then
25108                 CONS_INC="-I${with_readline}/include/readline"
25109                 CONS_LDFLAGS="-L${with_readline}/lib"
25110                 with_readline="${with_readline}/include/readline"
25111              else
25112                 with_readline="/usr/include/readline"
25113              fi
25114
25115              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25117   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25118 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25120   echo $ECHO_N "(cached) $ECHO_C" >&6
25121 fi
25122 ac_res=`eval echo '${'$as_ac_Header'}'`
25123                { echo "$as_me:$LINENO: result: $ac_res" >&5
25124 echo "${ECHO_T}$ac_res" >&6; }
25125 else
25126   # Is the header compilable?
25127 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25128 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25129 cat >conftest.$ac_ext <<_ACEOF
25130 /* confdefs.h.  */
25131 _ACEOF
25132 cat confdefs.h >>conftest.$ac_ext
25133 cat >>conftest.$ac_ext <<_ACEOF
25134 /* end confdefs.h.  */
25135 $ac_includes_default
25136 #include <${with_readline}/readline.h>
25137 _ACEOF
25138 rm -f conftest.$ac_objext
25139 if { (ac_try="$ac_compile"
25140 case "(($ac_try" in
25141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142   *) ac_try_echo=$ac_try;;
25143 esac
25144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25145   (eval "$ac_compile") 2>conftest.er1
25146   ac_status=$?
25147   grep -v '^ *+' conftest.er1 >conftest.err
25148   rm -f conftest.er1
25149   cat conftest.err >&5
25150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151   (exit $ac_status); } && {
25152          test -z "$ac_c_werror_flag" ||
25153          test ! -s conftest.err
25154        } && test -s conftest.$ac_objext; then
25155   ac_header_compiler=yes
25156 else
25157   echo "$as_me: failed program was:" >&5
25158 sed 's/^/| /' conftest.$ac_ext >&5
25159
25160         ac_header_compiler=no
25161 fi
25162
25163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25165 echo "${ECHO_T}$ac_header_compiler" >&6; }
25166
25167 # Is the header present?
25168 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25169 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25170 cat >conftest.$ac_ext <<_ACEOF
25171 /* confdefs.h.  */
25172 _ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h.  */
25176 #include <${with_readline}/readline.h>
25177 _ACEOF
25178 if { (ac_try="$ac_cpp conftest.$ac_ext"
25179 case "(($ac_try" in
25180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25181   *) ac_try_echo=$ac_try;;
25182 esac
25183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25185   ac_status=$?
25186   grep -v '^ *+' conftest.er1 >conftest.err
25187   rm -f conftest.er1
25188   cat conftest.err >&5
25189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190   (exit $ac_status); } >/dev/null && {
25191          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25192          test ! -s conftest.err
25193        }; then
25194   ac_header_preproc=yes
25195 else
25196   echo "$as_me: failed program was:" >&5
25197 sed 's/^/| /' conftest.$ac_ext >&5
25198
25199   ac_header_preproc=no
25200 fi
25201
25202 rm -f conftest.err conftest.$ac_ext
25203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25204 echo "${ECHO_T}$ac_header_preproc" >&6; }
25205
25206 # So?  What about this header?
25207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25208   yes:no: )
25209     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25210 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25211     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25212 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25213     ac_header_preproc=yes
25214     ;;
25215   no:yes:* )
25216     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25217 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25218     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25219 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25220     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25221 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25222     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25223 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25224     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25225 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25226     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25227 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25228
25229     ;;
25230 esac
25231 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25232 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25234   echo $ECHO_N "(cached) $ECHO_C" >&6
25235 else
25236   eval "$as_ac_Header=\$ac_header_preproc"
25237 fi
25238 ac_res=`eval echo '${'$as_ac_Header'}'`
25239                { echo "$as_me:$LINENO: result: $ac_res" >&5
25240 echo "${ECHO_T}$ac_res" >&6; }
25241
25242 fi
25243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25244
25245
25246 cat >>confdefs.h <<\_ACEOF
25247 #define HAVE_READLINE 1
25248 _ACEOF
25249
25250                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25251                     got_readline="yes"
25252
25253 else
25254
25255                     echo " "
25256                     echo "readline.h not found. readline turned off ..."
25257                     echo " "
25258
25259
25260 fi
25261
25262
25263              ;;
25264           esac
25265
25266 else
25267
25268                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25269   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25270 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25271 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25272   echo $ECHO_N "(cached) $ECHO_C" >&6
25273 fi
25274 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25275 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25276 else
25277   # Is the header compilable?
25278 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25279 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25280 cat >conftest.$ac_ext <<_ACEOF
25281 /* confdefs.h.  */
25282 _ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h.  */
25286 $ac_includes_default
25287 #include </usr/include/readline/readline.h>
25288 _ACEOF
25289 rm -f conftest.$ac_objext
25290 if { (ac_try="$ac_compile"
25291 case "(($ac_try" in
25292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25293   *) ac_try_echo=$ac_try;;
25294 esac
25295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25296   (eval "$ac_compile") 2>conftest.er1
25297   ac_status=$?
25298   grep -v '^ *+' conftest.er1 >conftest.err
25299   rm -f conftest.er1
25300   cat conftest.err >&5
25301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302   (exit $ac_status); } && {
25303          test -z "$ac_c_werror_flag" ||
25304          test ! -s conftest.err
25305        } && test -s conftest.$ac_objext; then
25306   ac_header_compiler=yes
25307 else
25308   echo "$as_me: failed program was:" >&5
25309 sed 's/^/| /' conftest.$ac_ext >&5
25310
25311         ac_header_compiler=no
25312 fi
25313
25314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25316 echo "${ECHO_T}$ac_header_compiler" >&6; }
25317
25318 # Is the header present?
25319 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25320 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25321 cat >conftest.$ac_ext <<_ACEOF
25322 /* confdefs.h.  */
25323 _ACEOF
25324 cat confdefs.h >>conftest.$ac_ext
25325 cat >>conftest.$ac_ext <<_ACEOF
25326 /* end confdefs.h.  */
25327 #include </usr/include/readline/readline.h>
25328 _ACEOF
25329 if { (ac_try="$ac_cpp conftest.$ac_ext"
25330 case "(($ac_try" in
25331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25332   *) ac_try_echo=$ac_try;;
25333 esac
25334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25335   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25336   ac_status=$?
25337   grep -v '^ *+' conftest.er1 >conftest.err
25338   rm -f conftest.er1
25339   cat conftest.err >&5
25340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341   (exit $ac_status); } >/dev/null && {
25342          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25343          test ! -s conftest.err
25344        }; then
25345   ac_header_preproc=yes
25346 else
25347   echo "$as_me: failed program was:" >&5
25348 sed 's/^/| /' conftest.$ac_ext >&5
25349
25350   ac_header_preproc=no
25351 fi
25352
25353 rm -f conftest.err conftest.$ac_ext
25354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25355 echo "${ECHO_T}$ac_header_preproc" >&6; }
25356
25357 # So?  What about this header?
25358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25359   yes:no: )
25360     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25361 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25362     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25363 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25364     ac_header_preproc=yes
25365     ;;
25366   no:yes:* )
25367     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25368 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25369     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25370 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25371     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25372 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25373     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25374 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25375     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25376 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25377     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25378 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25379
25380     ;;
25381 esac
25382 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25383 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25384 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25385   echo $ECHO_N "(cached) $ECHO_C" >&6
25386 else
25387   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25388 fi
25389 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25390 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25391
25392 fi
25393 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25394
25395
25396 cat >>confdefs.h <<\_ACEOF
25397 #define HAVE_READLINE 1
25398 _ACEOF
25399
25400                 got_readline="yes"
25401                 CONS_INC="-I/usr/include/readline"
25402                 CONS_LIBS="-lreadline -ltermcap"
25403
25404 else
25405
25406                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25408   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25409 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25411   echo $ECHO_N "(cached) $ECHO_C" >&6
25412 fi
25413 ac_res=`eval echo '${'$as_ac_Header'}'`
25414                { echo "$as_me:$LINENO: result: $ac_res" >&5
25415 echo "${ECHO_T}$ac_res" >&6; }
25416 else
25417   # Is the header compilable?
25418 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25419 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25420 cat >conftest.$ac_ext <<_ACEOF
25421 /* confdefs.h.  */
25422 _ACEOF
25423 cat confdefs.h >>conftest.$ac_ext
25424 cat >>conftest.$ac_ext <<_ACEOF
25425 /* end confdefs.h.  */
25426 $ac_includes_default
25427 #include <${TOP_DIR}/depkgs/readline/readline.h>
25428 _ACEOF
25429 rm -f conftest.$ac_objext
25430 if { (ac_try="$ac_compile"
25431 case "(($ac_try" in
25432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433   *) ac_try_echo=$ac_try;;
25434 esac
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436   (eval "$ac_compile") 2>conftest.er1
25437   ac_status=$?
25438   grep -v '^ *+' conftest.er1 >conftest.err
25439   rm -f conftest.er1
25440   cat conftest.err >&5
25441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442   (exit $ac_status); } && {
25443          test -z "$ac_c_werror_flag" ||
25444          test ! -s conftest.err
25445        } && test -s conftest.$ac_objext; then
25446   ac_header_compiler=yes
25447 else
25448   echo "$as_me: failed program was:" >&5
25449 sed 's/^/| /' conftest.$ac_ext >&5
25450
25451         ac_header_compiler=no
25452 fi
25453
25454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25456 echo "${ECHO_T}$ac_header_compiler" >&6; }
25457
25458 # Is the header present?
25459 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25460 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25461 cat >conftest.$ac_ext <<_ACEOF
25462 /* confdefs.h.  */
25463 _ACEOF
25464 cat confdefs.h >>conftest.$ac_ext
25465 cat >>conftest.$ac_ext <<_ACEOF
25466 /* end confdefs.h.  */
25467 #include <${TOP_DIR}/depkgs/readline/readline.h>
25468 _ACEOF
25469 if { (ac_try="$ac_cpp conftest.$ac_ext"
25470 case "(($ac_try" in
25471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472   *) ac_try_echo=$ac_try;;
25473 esac
25474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25476   ac_status=$?
25477   grep -v '^ *+' conftest.er1 >conftest.err
25478   rm -f conftest.er1
25479   cat conftest.err >&5
25480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481   (exit $ac_status); } >/dev/null && {
25482          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25483          test ! -s conftest.err
25484        }; then
25485   ac_header_preproc=yes
25486 else
25487   echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25489
25490   ac_header_preproc=no
25491 fi
25492
25493 rm -f conftest.err conftest.$ac_ext
25494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25495 echo "${ECHO_T}$ac_header_preproc" >&6; }
25496
25497 # So?  What about this header?
25498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25499   yes:no: )
25500     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25501 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25502     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25503 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25504     ac_header_preproc=yes
25505     ;;
25506   no:yes:* )
25507     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25508 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25509     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25510 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25511     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25512 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25513     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25514 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25515     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25516 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25517     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25518 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25519
25520     ;;
25521 esac
25522 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25523 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25525   echo $ECHO_N "(cached) $ECHO_C" >&6
25526 else
25527   eval "$as_ac_Header=\$ac_header_preproc"
25528 fi
25529 ac_res=`eval echo '${'$as_ac_Header'}'`
25530                { echo "$as_me:$LINENO: result: $ac_res" >&5
25531 echo "${ECHO_T}$ac_res" >&6; }
25532
25533 fi
25534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25535
25536
25537 cat >>confdefs.h <<\_ACEOF
25538 #define HAVE_READLINE 1
25539 _ACEOF
25540
25541                         got_readline="yes"
25542                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25543                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25544                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25545                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25546
25547 else
25548
25549                         echo " "
25550                         echo "readline.h not found. readline turned off ..."
25551                         echo " "
25552
25553
25554 fi
25555
25556
25557
25558
25559 fi
25560
25561
25562
25563
25564 fi
25565
25566 fi
25567
25568
25569
25570
25571
25572
25573
25574
25575 MAKE_SHELL=/bin/sh
25576
25577 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25578 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25579 if test "${ac_cv_header_stat_broken+set}" = set; then
25580   echo $ECHO_N "(cached) $ECHO_C" >&6
25581 else
25582   cat >conftest.$ac_ext <<_ACEOF
25583 /* confdefs.h.  */
25584 _ACEOF
25585 cat confdefs.h >>conftest.$ac_ext
25586 cat >>conftest.$ac_ext <<_ACEOF
25587 /* end confdefs.h.  */
25588 #include <sys/types.h>
25589 #include <sys/stat.h>
25590
25591 #if defined S_ISBLK && defined S_IFDIR
25592 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25593 #endif
25594
25595 #if defined S_ISBLK && defined S_IFCHR
25596 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25597 #endif
25598
25599 #if defined S_ISLNK && defined S_IFREG
25600 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25601 #endif
25602
25603 #if defined S_ISSOCK && defined S_IFREG
25604 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25605 #endif
25606
25607 _ACEOF
25608 rm -f conftest.$ac_objext
25609 if { (ac_try="$ac_compile"
25610 case "(($ac_try" in
25611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25612   *) ac_try_echo=$ac_try;;
25613 esac
25614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25615   (eval "$ac_compile") 2>conftest.er1
25616   ac_status=$?
25617   grep -v '^ *+' conftest.er1 >conftest.err
25618   rm -f conftest.er1
25619   cat conftest.err >&5
25620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621   (exit $ac_status); } && {
25622          test -z "$ac_c_werror_flag" ||
25623          test ! -s conftest.err
25624        } && test -s conftest.$ac_objext; then
25625   ac_cv_header_stat_broken=no
25626 else
25627   echo "$as_me: failed program was:" >&5
25628 sed 's/^/| /' conftest.$ac_ext >&5
25629
25630         ac_cv_header_stat_broken=yes
25631 fi
25632
25633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25634 fi
25635 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25636 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25637 if test $ac_cv_header_stat_broken = yes; then
25638
25639 cat >>confdefs.h <<\_ACEOF
25640 #define STAT_MACROS_BROKEN 1
25641 _ACEOF
25642
25643 fi
25644
25645
25646
25647
25648
25649
25650 ac_header_dirent=no
25651 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25652   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25653 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25654 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25656   echo $ECHO_N "(cached) $ECHO_C" >&6
25657 else
25658   cat >conftest.$ac_ext <<_ACEOF
25659 /* confdefs.h.  */
25660 _ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h.  */
25664 #include <sys/types.h>
25665 #include <$ac_hdr>
25666
25667 int
25668 main ()
25669 {
25670 if ((DIR *) 0)
25671 return 0;
25672   ;
25673   return 0;
25674 }
25675 _ACEOF
25676 rm -f conftest.$ac_objext
25677 if { (ac_try="$ac_compile"
25678 case "(($ac_try" in
25679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25680   *) ac_try_echo=$ac_try;;
25681 esac
25682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25683   (eval "$ac_compile") 2>conftest.er1
25684   ac_status=$?
25685   grep -v '^ *+' conftest.er1 >conftest.err
25686   rm -f conftest.er1
25687   cat conftest.err >&5
25688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689   (exit $ac_status); } && {
25690          test -z "$ac_c_werror_flag" ||
25691          test ! -s conftest.err
25692        } && test -s conftest.$ac_objext; then
25693   eval "$as_ac_Header=yes"
25694 else
25695   echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25697
25698         eval "$as_ac_Header=no"
25699 fi
25700
25701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25702 fi
25703 ac_res=`eval echo '${'$as_ac_Header'}'`
25704                { echo "$as_me:$LINENO: result: $ac_res" >&5
25705 echo "${ECHO_T}$ac_res" >&6; }
25706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25707   cat >>confdefs.h <<_ACEOF
25708 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25709 _ACEOF
25710
25711 ac_header_dirent=$ac_hdr; break
25712 fi
25713
25714 done
25715 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25716 if test $ac_header_dirent = dirent.h; then
25717   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25718 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25719 if test "${ac_cv_search_opendir+set}" = set; then
25720   echo $ECHO_N "(cached) $ECHO_C" >&6
25721 else
25722   ac_func_search_save_LIBS=$LIBS
25723 cat >conftest.$ac_ext <<_ACEOF
25724 /* confdefs.h.  */
25725 _ACEOF
25726 cat confdefs.h >>conftest.$ac_ext
25727 cat >>conftest.$ac_ext <<_ACEOF
25728 /* end confdefs.h.  */
25729
25730 /* Override any GCC internal prototype to avoid an error.
25731    Use char because int might match the return type of a GCC
25732    builtin and then its argument prototype would still apply.  */
25733 #ifdef __cplusplus
25734 extern "C"
25735 #endif
25736 char opendir ();
25737 int
25738 main ()
25739 {
25740 return opendir ();
25741   ;
25742   return 0;
25743 }
25744 _ACEOF
25745 for ac_lib in '' dir; do
25746   if test -z "$ac_lib"; then
25747     ac_res="none required"
25748   else
25749     ac_res=-l$ac_lib
25750     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25751   fi
25752   rm -f conftest.$ac_objext conftest$ac_exeext
25753 if { (ac_try="$ac_link"
25754 case "(($ac_try" in
25755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25756   *) ac_try_echo=$ac_try;;
25757 esac
25758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25759   (eval "$ac_link") 2>conftest.er1
25760   ac_status=$?
25761   grep -v '^ *+' conftest.er1 >conftest.err
25762   rm -f conftest.er1
25763   cat conftest.err >&5
25764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765   (exit $ac_status); } && {
25766          test -z "$ac_c_werror_flag" ||
25767          test ! -s conftest.err
25768        } && test -s conftest$ac_exeext &&
25769        $as_test_x conftest$ac_exeext; then
25770   ac_cv_search_opendir=$ac_res
25771 else
25772   echo "$as_me: failed program was:" >&5
25773 sed 's/^/| /' conftest.$ac_ext >&5
25774
25775
25776 fi
25777
25778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25779       conftest$ac_exeext
25780   if test "${ac_cv_search_opendir+set}" = set; then
25781   break
25782 fi
25783 done
25784 if test "${ac_cv_search_opendir+set}" = set; then
25785   :
25786 else
25787   ac_cv_search_opendir=no
25788 fi
25789 rm conftest.$ac_ext
25790 LIBS=$ac_func_search_save_LIBS
25791 fi
25792 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25793 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25794 ac_res=$ac_cv_search_opendir
25795 if test "$ac_res" != no; then
25796   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25797
25798 fi
25799
25800 else
25801   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25802 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25803 if test "${ac_cv_search_opendir+set}" = set; then
25804   echo $ECHO_N "(cached) $ECHO_C" >&6
25805 else
25806   ac_func_search_save_LIBS=$LIBS
25807 cat >conftest.$ac_ext <<_ACEOF
25808 /* confdefs.h.  */
25809 _ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h.  */
25813
25814 /* Override any GCC internal prototype to avoid an error.
25815    Use char because int might match the return type of a GCC
25816    builtin and then its argument prototype would still apply.  */
25817 #ifdef __cplusplus
25818 extern "C"
25819 #endif
25820 char opendir ();
25821 int
25822 main ()
25823 {
25824 return opendir ();
25825   ;
25826   return 0;
25827 }
25828 _ACEOF
25829 for ac_lib in '' x; do
25830   if test -z "$ac_lib"; then
25831     ac_res="none required"
25832   else
25833     ac_res=-l$ac_lib
25834     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25835   fi
25836   rm -f conftest.$ac_objext conftest$ac_exeext
25837 if { (ac_try="$ac_link"
25838 case "(($ac_try" in
25839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25840   *) ac_try_echo=$ac_try;;
25841 esac
25842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25843   (eval "$ac_link") 2>conftest.er1
25844   ac_status=$?
25845   grep -v '^ *+' conftest.er1 >conftest.err
25846   rm -f conftest.er1
25847   cat conftest.err >&5
25848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849   (exit $ac_status); } && {
25850          test -z "$ac_c_werror_flag" ||
25851          test ! -s conftest.err
25852        } && test -s conftest$ac_exeext &&
25853        $as_test_x conftest$ac_exeext; then
25854   ac_cv_search_opendir=$ac_res
25855 else
25856   echo "$as_me: failed program was:" >&5
25857 sed 's/^/| /' conftest.$ac_ext >&5
25858
25859
25860 fi
25861
25862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25863       conftest$ac_exeext
25864   if test "${ac_cv_search_opendir+set}" = set; then
25865   break
25866 fi
25867 done
25868 if test "${ac_cv_search_opendir+set}" = set; then
25869   :
25870 else
25871   ac_cv_search_opendir=no
25872 fi
25873 rm conftest.$ac_ext
25874 LIBS=$ac_func_search_save_LIBS
25875 fi
25876 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25877 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25878 ac_res=$ac_cv_search_opendir
25879 if test "$ac_res" != no; then
25880   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25881
25882 fi
25883
25884 fi
25885
25886
25887
25888
25889
25890
25891
25892
25893 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25894 do
25895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25896 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25899   echo $ECHO_N "(cached) $ECHO_C" >&6
25900 else
25901   cat >conftest.$ac_ext <<_ACEOF
25902 /* confdefs.h.  */
25903 _ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h.  */
25907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25909 #define $ac_func innocuous_$ac_func
25910
25911 /* System header to define __stub macros and hopefully few prototypes,
25912     which can conflict with char $ac_func (); below.
25913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25914     <limits.h> exists even on freestanding compilers.  */
25915
25916 #ifdef __STDC__
25917 # include <limits.h>
25918 #else
25919 # include <assert.h>
25920 #endif
25921
25922 #undef $ac_func
25923
25924 /* Override any GCC internal prototype to avoid an error.
25925    Use char because int might match the return type of a GCC
25926    builtin and then its argument prototype would still apply.  */
25927 #ifdef __cplusplus
25928 extern "C"
25929 #endif
25930 char $ac_func ();
25931 /* The GNU C library defines this for functions which it implements
25932     to always fail with ENOSYS.  Some functions are actually named
25933     something starting with __ and the normal name is an alias.  */
25934 #if defined __stub_$ac_func || defined __stub___$ac_func
25935 choke me
25936 #endif
25937
25938 int
25939 main ()
25940 {
25941 return $ac_func ();
25942   ;
25943   return 0;
25944 }
25945 _ACEOF
25946 rm -f conftest.$ac_objext conftest$ac_exeext
25947 if { (ac_try="$ac_link"
25948 case "(($ac_try" in
25949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950   *) ac_try_echo=$ac_try;;
25951 esac
25952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953   (eval "$ac_link") 2>conftest.er1
25954   ac_status=$?
25955   grep -v '^ *+' conftest.er1 >conftest.err
25956   rm -f conftest.er1
25957   cat conftest.err >&5
25958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959   (exit $ac_status); } && {
25960          test -z "$ac_c_werror_flag" ||
25961          test ! -s conftest.err
25962        } && test -s conftest$ac_exeext &&
25963        $as_test_x conftest$ac_exeext; then
25964   eval "$as_ac_var=yes"
25965 else
25966   echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25968
25969         eval "$as_ac_var=no"
25970 fi
25971
25972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25973       conftest$ac_exeext conftest.$ac_ext
25974 fi
25975 ac_res=`eval echo '${'$as_ac_var'}'`
25976                { echo "$as_me:$LINENO: result: $ac_res" >&5
25977 echo "${ECHO_T}$ac_res" >&6; }
25978 if test `eval echo '${'$as_ac_var'}'` = yes; then
25979   cat >>confdefs.h <<_ACEOF
25980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25981 _ACEOF
25982
25983 fi
25984 done
25985
25986
25987
25988 for ac_func in nanosleep nl_langinfo
25989 do
25990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25994   echo $ECHO_N "(cached) $ECHO_C" >&6
25995 else
25996   cat >conftest.$ac_ext <<_ACEOF
25997 /* confdefs.h.  */
25998 _ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h.  */
26002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26004 #define $ac_func innocuous_$ac_func
26005
26006 /* System header to define __stub macros and hopefully few prototypes,
26007     which can conflict with char $ac_func (); below.
26008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26009     <limits.h> exists even on freestanding compilers.  */
26010
26011 #ifdef __STDC__
26012 # include <limits.h>
26013 #else
26014 # include <assert.h>
26015 #endif
26016
26017 #undef $ac_func
26018
26019 /* Override any GCC internal prototype to avoid an error.
26020    Use char because int might match the return type of a GCC
26021    builtin and then its argument prototype would still apply.  */
26022 #ifdef __cplusplus
26023 extern "C"
26024 #endif
26025 char $ac_func ();
26026 /* The GNU C library defines this for functions which it implements
26027     to always fail with ENOSYS.  Some functions are actually named
26028     something starting with __ and the normal name is an alias.  */
26029 #if defined __stub_$ac_func || defined __stub___$ac_func
26030 choke me
26031 #endif
26032
26033 int
26034 main ()
26035 {
26036 return $ac_func ();
26037   ;
26038   return 0;
26039 }
26040 _ACEOF
26041 rm -f conftest.$ac_objext conftest$ac_exeext
26042 if { (ac_try="$ac_link"
26043 case "(($ac_try" in
26044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26045   *) ac_try_echo=$ac_try;;
26046 esac
26047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26048   (eval "$ac_link") 2>conftest.er1
26049   ac_status=$?
26050   grep -v '^ *+' conftest.er1 >conftest.err
26051   rm -f conftest.er1
26052   cat conftest.err >&5
26053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054   (exit $ac_status); } && {
26055          test -z "$ac_c_werror_flag" ||
26056          test ! -s conftest.err
26057        } && test -s conftest$ac_exeext &&
26058        $as_test_x conftest$ac_exeext; then
26059   eval "$as_ac_var=yes"
26060 else
26061   echo "$as_me: failed program was:" >&5
26062 sed 's/^/| /' conftest.$ac_ext >&5
26063
26064         eval "$as_ac_var=no"
26065 fi
26066
26067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26068       conftest$ac_exeext conftest.$ac_ext
26069 fi
26070 ac_res=`eval echo '${'$as_ac_var'}'`
26071                { echo "$as_me:$LINENO: result: $ac_res" >&5
26072 echo "${ECHO_T}$ac_res" >&6; }
26073 if test `eval echo '${'$as_ac_var'}'` = yes; then
26074   cat >>confdefs.h <<_ACEOF
26075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26076 _ACEOF
26077
26078 fi
26079 done
26080
26081
26082 for ac_header in varargs.h
26083 do
26084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26086   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26089   echo $ECHO_N "(cached) $ECHO_C" >&6
26090 fi
26091 ac_res=`eval echo '${'$as_ac_Header'}'`
26092                { echo "$as_me:$LINENO: result: $ac_res" >&5
26093 echo "${ECHO_T}$ac_res" >&6; }
26094 else
26095   # Is the header compilable?
26096 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26098 cat >conftest.$ac_ext <<_ACEOF
26099 /* confdefs.h.  */
26100 _ACEOF
26101 cat confdefs.h >>conftest.$ac_ext
26102 cat >>conftest.$ac_ext <<_ACEOF
26103 /* end confdefs.h.  */
26104 $ac_includes_default
26105 #include <$ac_header>
26106 _ACEOF
26107 rm -f conftest.$ac_objext
26108 if { (ac_try="$ac_compile"
26109 case "(($ac_try" in
26110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26111   *) ac_try_echo=$ac_try;;
26112 esac
26113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26114   (eval "$ac_compile") 2>conftest.er1
26115   ac_status=$?
26116   grep -v '^ *+' conftest.er1 >conftest.err
26117   rm -f conftest.er1
26118   cat conftest.err >&5
26119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120   (exit $ac_status); } && {
26121          test -z "$ac_c_werror_flag" ||
26122          test ! -s conftest.err
26123        } && test -s conftest.$ac_objext; then
26124   ac_header_compiler=yes
26125 else
26126   echo "$as_me: failed program was:" >&5
26127 sed 's/^/| /' conftest.$ac_ext >&5
26128
26129         ac_header_compiler=no
26130 fi
26131
26132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26134 echo "${ECHO_T}$ac_header_compiler" >&6; }
26135
26136 # Is the header present?
26137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26139 cat >conftest.$ac_ext <<_ACEOF
26140 /* confdefs.h.  */
26141 _ACEOF
26142 cat confdefs.h >>conftest.$ac_ext
26143 cat >>conftest.$ac_ext <<_ACEOF
26144 /* end confdefs.h.  */
26145 #include <$ac_header>
26146 _ACEOF
26147 if { (ac_try="$ac_cpp conftest.$ac_ext"
26148 case "(($ac_try" in
26149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26150   *) ac_try_echo=$ac_try;;
26151 esac
26152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26153   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26154   ac_status=$?
26155   grep -v '^ *+' conftest.er1 >conftest.err
26156   rm -f conftest.er1
26157   cat conftest.err >&5
26158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159   (exit $ac_status); } >/dev/null && {
26160          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26161          test ! -s conftest.err
26162        }; then
26163   ac_header_preproc=yes
26164 else
26165   echo "$as_me: failed program was:" >&5
26166 sed 's/^/| /' conftest.$ac_ext >&5
26167
26168   ac_header_preproc=no
26169 fi
26170
26171 rm -f conftest.err conftest.$ac_ext
26172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26173 echo "${ECHO_T}$ac_header_preproc" >&6; }
26174
26175 # So?  What about this header?
26176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26177   yes:no: )
26178     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26182     ac_header_preproc=yes
26183     ;;
26184   no:yes:* )
26185     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26187     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26188 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26189     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26191     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26192 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26195     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26197
26198     ;;
26199 esac
26200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26203   echo $ECHO_N "(cached) $ECHO_C" >&6
26204 else
26205   eval "$as_ac_Header=\$ac_header_preproc"
26206 fi
26207 ac_res=`eval echo '${'$as_ac_Header'}'`
26208                { echo "$as_me:$LINENO: result: $ac_res" >&5
26209 echo "${ECHO_T}$ac_res" >&6; }
26210
26211 fi
26212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26213   cat >>confdefs.h <<_ACEOF
26214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26215 _ACEOF
26216
26217 fi
26218
26219 done
26220
26221
26222
26223 { echo "$as_me:$LINENO: checking for Python support" >&5
26224 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26225
26226 # Check whether --with-python was given.
26227 if test "${with_python+set}" = set; then
26228   withval=$with_python;
26229        PYTHON_INCDIR=
26230        PYTHON_LIBS=
26231        if test "$withval" != "no"; then
26232           if test "$withval" = "yes"; then
26233              if test -e /usr/bin/python-config ; then
26234                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26235                 PYTHON_LIBS=`/usr/bin/python-config --libs`
26236              else
26237                 for python_root in /usr /usr/local /usr/sfw; do
26238                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26239                       if test -f $python_root/include/${ver}/Python.h; then
26240                          PYTHON_INCDIR=-I$python_root/include/${ver}
26241                          if test -d $python_root/lib64/${ver}/config; then
26242                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26243                          else
26244                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26245                          fi
26246                          break
26247                       fi
26248                    done
26249                 done
26250
26251                 if test x$PYTHON_INCDIR = x; then
26252                    if test -f $prefix/include/Python.h; then
26253                       PYTHON_INCDIR=-I$prefix/include
26254                       if test -d $prefix/lib64/config; then
26255                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26256                       else
26257                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
26258                       fi
26259                    else
26260                       { echo "$as_me:$LINENO: result: no" >&5
26261 echo "${ECHO_T}no" >&6; }
26262                       { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26263 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26264    { (exit 1); exit 1; }; }
26265                    fi
26266                 fi
26267              fi
26268           else
26269              if test -e $withval/bin/python-config ; then
26270                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26271                 PYTHON_LIBS=`$withval/bin/python-config --libs`
26272              elif test -f $withval/Python.h; then
26273                 PYTHON_INCDIR=-I$withval
26274                 PYTHON_LIBS="-L$withval/config -lpython"
26275              elif test -f $withval/include/Python.h; then
26276                 PYTHON_INCDIR=-I$withval/include
26277                 if test -d $withval/lib64/config; then
26278                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26279                 else
26280                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26281                 fi
26282              elif test -f $withval/include/python/Python.h; then
26283                 PYTHON_INCDIR=-I$withval/include/python
26284                 if test -d $withval/lib64/python/config; then
26285                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26286                 else
26287                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26288                 fi
26289              else
26290                 { echo "$as_me:$LINENO: result: no" >&5
26291 echo "${ECHO_T}no" >&6; }
26292                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26293 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26294    { (exit 1); exit 1; }; }
26295              fi
26296           fi
26297
26298           cat >>confdefs.h <<\_ACEOF
26299 #define HAVE_PYTHON 1
26300 _ACEOF
26301
26302           { echo "$as_me:$LINENO: result: yes" >&5
26303 echo "${ECHO_T}yes" >&6; }
26304           support_python=yes
26305           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26306 echo "$as_me: checking for more Python libs" >&6;}
26307           saved_LIBS="$LIBS"; LIBS=
26308           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26309 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26310 if test "${ac_cv_search_shm_open+set}" = set; then
26311   echo $ECHO_N "(cached) $ECHO_C" >&6
26312 else
26313   ac_func_search_save_LIBS=$LIBS
26314 cat >conftest.$ac_ext <<_ACEOF
26315 /* confdefs.h.  */
26316 _ACEOF
26317 cat confdefs.h >>conftest.$ac_ext
26318 cat >>conftest.$ac_ext <<_ACEOF
26319 /* end confdefs.h.  */
26320
26321 /* Override any GCC internal prototype to avoid an error.
26322    Use char because int might match the return type of a GCC
26323    builtin and then its argument prototype would still apply.  */
26324 #ifdef __cplusplus
26325 extern "C"
26326 #endif
26327 char shm_open ();
26328 int
26329 main ()
26330 {
26331 return shm_open ();
26332   ;
26333   return 0;
26334 }
26335 _ACEOF
26336 for ac_lib in '' rt; do
26337   if test -z "$ac_lib"; then
26338     ac_res="none required"
26339   else
26340     ac_res=-l$ac_lib
26341     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26342   fi
26343   rm -f conftest.$ac_objext conftest$ac_exeext
26344 if { (ac_try="$ac_link"
26345 case "(($ac_try" in
26346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26347   *) ac_try_echo=$ac_try;;
26348 esac
26349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26350   (eval "$ac_link") 2>conftest.er1
26351   ac_status=$?
26352   grep -v '^ *+' conftest.er1 >conftest.err
26353   rm -f conftest.er1
26354   cat conftest.err >&5
26355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356   (exit $ac_status); } && {
26357          test -z "$ac_c_werror_flag" ||
26358          test ! -s conftest.err
26359        } && test -s conftest$ac_exeext &&
26360        $as_test_x conftest$ac_exeext; then
26361   ac_cv_search_shm_open=$ac_res
26362 else
26363   echo "$as_me: failed program was:" >&5
26364 sed 's/^/| /' conftest.$ac_ext >&5
26365
26366
26367 fi
26368
26369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26370       conftest$ac_exeext
26371   if test "${ac_cv_search_shm_open+set}" = set; then
26372   break
26373 fi
26374 done
26375 if test "${ac_cv_search_shm_open+set}" = set; then
26376   :
26377 else
26378   ac_cv_search_shm_open=no
26379 fi
26380 rm conftest.$ac_ext
26381 LIBS=$ac_func_search_save_LIBS
26382 fi
26383 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26384 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26385 ac_res=$ac_cv_search_shm_open
26386 if test "$ac_res" != no; then
26387   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26388
26389 fi
26390
26391
26392 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26393 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26394 if test "${ac_cv_lib_util_openpty+set}" = set; then
26395   echo $ECHO_N "(cached) $ECHO_C" >&6
26396 else
26397   ac_check_lib_save_LIBS=$LIBS
26398 LIBS="-lutil  $LIBS"
26399 cat >conftest.$ac_ext <<_ACEOF
26400 /* confdefs.h.  */
26401 _ACEOF
26402 cat confdefs.h >>conftest.$ac_ext
26403 cat >>conftest.$ac_ext <<_ACEOF
26404 /* end confdefs.h.  */
26405
26406 /* Override any GCC internal prototype to avoid an error.
26407    Use char because int might match the return type of a GCC
26408    builtin and then its argument prototype would still apply.  */
26409 #ifdef __cplusplus
26410 extern "C"
26411 #endif
26412 char openpty ();
26413 int
26414 main ()
26415 {
26416 return openpty ();
26417   ;
26418   return 0;
26419 }
26420 _ACEOF
26421 rm -f conftest.$ac_objext conftest$ac_exeext
26422 if { (ac_try="$ac_link"
26423 case "(($ac_try" in
26424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425   *) ac_try_echo=$ac_try;;
26426 esac
26427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26428   (eval "$ac_link") 2>conftest.er1
26429   ac_status=$?
26430   grep -v '^ *+' conftest.er1 >conftest.err
26431   rm -f conftest.er1
26432   cat conftest.err >&5
26433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434   (exit $ac_status); } && {
26435          test -z "$ac_c_werror_flag" ||
26436          test ! -s conftest.err
26437        } && test -s conftest$ac_exeext &&
26438        $as_test_x conftest$ac_exeext; then
26439   ac_cv_lib_util_openpty=yes
26440 else
26441   echo "$as_me: failed program was:" >&5
26442 sed 's/^/| /' conftest.$ac_ext >&5
26443
26444         ac_cv_lib_util_openpty=no
26445 fi
26446
26447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26448       conftest$ac_exeext conftest.$ac_ext
26449 LIBS=$ac_check_lib_save_LIBS
26450 fi
26451 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26452 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26453 if test $ac_cv_lib_util_openpty = yes; then
26454   cat >>confdefs.h <<_ACEOF
26455 #define HAVE_LIBUTIL 1
26456 _ACEOF
26457
26458   LIBS="-lutil $LIBS"
26459
26460 fi
26461
26462           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26463           LIBS="$saved_LIBS"
26464        else
26465           { echo "$as_me:$LINENO: result: no" >&5
26466 echo "${ECHO_T}no" >&6; }
26467        fi
26468
26469 else
26470
26471        { echo "$as_me:$LINENO: result: no" >&5
26472 echo "${ECHO_T}no" >&6; }
26473
26474
26475 fi
26476
26477
26478
26479
26480 { echo "$as_me:$LINENO: checking for socket" >&5
26481 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26482 if test "${ac_cv_func_socket+set}" = set; then
26483   echo $ECHO_N "(cached) $ECHO_C" >&6
26484 else
26485   cat >conftest.$ac_ext <<_ACEOF
26486 /* confdefs.h.  */
26487 _ACEOF
26488 cat confdefs.h >>conftest.$ac_ext
26489 cat >>conftest.$ac_ext <<_ACEOF
26490 /* end confdefs.h.  */
26491 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26493 #define socket innocuous_socket
26494
26495 /* System header to define __stub macros and hopefully few prototypes,
26496     which can conflict with char socket (); below.
26497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26498     <limits.h> exists even on freestanding compilers.  */
26499
26500 #ifdef __STDC__
26501 # include <limits.h>
26502 #else
26503 # include <assert.h>
26504 #endif
26505
26506 #undef socket
26507
26508 /* Override any GCC internal prototype to avoid an error.
26509    Use char because int might match the return type of a GCC
26510    builtin and then its argument prototype would still apply.  */
26511 #ifdef __cplusplus
26512 extern "C"
26513 #endif
26514 char socket ();
26515 /* The GNU C library defines this for functions which it implements
26516     to always fail with ENOSYS.  Some functions are actually named
26517     something starting with __ and the normal name is an alias.  */
26518 #if defined __stub_socket || defined __stub___socket
26519 choke me
26520 #endif
26521
26522 int
26523 main ()
26524 {
26525 return socket ();
26526   ;
26527   return 0;
26528 }
26529 _ACEOF
26530 rm -f conftest.$ac_objext conftest$ac_exeext
26531 if { (ac_try="$ac_link"
26532 case "(($ac_try" in
26533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26534   *) ac_try_echo=$ac_try;;
26535 esac
26536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26537   (eval "$ac_link") 2>conftest.er1
26538   ac_status=$?
26539   grep -v '^ *+' conftest.er1 >conftest.err
26540   rm -f conftest.er1
26541   cat conftest.err >&5
26542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543   (exit $ac_status); } && {
26544          test -z "$ac_c_werror_flag" ||
26545          test ! -s conftest.err
26546        } && test -s conftest$ac_exeext &&
26547        $as_test_x conftest$ac_exeext; then
26548   ac_cv_func_socket=yes
26549 else
26550   echo "$as_me: failed program was:" >&5
26551 sed 's/^/| /' conftest.$ac_ext >&5
26552
26553         ac_cv_func_socket=no
26554 fi
26555
26556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26557       conftest$ac_exeext conftest.$ac_ext
26558 fi
26559 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26560 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26561 if test $ac_cv_func_socket = yes; then
26562   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26563 echo "${ECHO_T}using libc's socket" >&6; }
26564 else
26565
26566 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26567 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26568 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26569   echo $ECHO_N "(cached) $ECHO_C" >&6
26570 else
26571   ac_check_lib_save_LIBS=$LIBS
26572 LIBS="-lxnet  $LIBS"
26573 cat >conftest.$ac_ext <<_ACEOF
26574 /* confdefs.h.  */
26575 _ACEOF
26576 cat confdefs.h >>conftest.$ac_ext
26577 cat >>conftest.$ac_ext <<_ACEOF
26578 /* end confdefs.h.  */
26579
26580 /* Override any GCC internal prototype to avoid an error.
26581    Use char because int might match the return type of a GCC
26582    builtin and then its argument prototype would still apply.  */
26583 #ifdef __cplusplus
26584 extern "C"
26585 #endif
26586 char socket ();
26587 int
26588 main ()
26589 {
26590 return socket ();
26591   ;
26592   return 0;
26593 }
26594 _ACEOF
26595 rm -f conftest.$ac_objext conftest$ac_exeext
26596 if { (ac_try="$ac_link"
26597 case "(($ac_try" in
26598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26599   *) ac_try_echo=$ac_try;;
26600 esac
26601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26602   (eval "$ac_link") 2>conftest.er1
26603   ac_status=$?
26604   grep -v '^ *+' conftest.er1 >conftest.err
26605   rm -f conftest.er1
26606   cat conftest.err >&5
26607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608   (exit $ac_status); } && {
26609          test -z "$ac_c_werror_flag" ||
26610          test ! -s conftest.err
26611        } && test -s conftest$ac_exeext &&
26612        $as_test_x conftest$ac_exeext; then
26613   ac_cv_lib_xnet_socket=yes
26614 else
26615   echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26617
26618         ac_cv_lib_xnet_socket=no
26619 fi
26620
26621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26622       conftest$ac_exeext conftest.$ac_ext
26623 LIBS=$ac_check_lib_save_LIBS
26624 fi
26625 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26626 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26627 if test $ac_cv_lib_xnet_socket = yes; then
26628   cat >>confdefs.h <<_ACEOF
26629 #define HAVE_LIBXNET 1
26630 _ACEOF
26631
26632   LIBS="-lxnet $LIBS"
26633
26634 fi
26635
26636
26637 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26638 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26639 if test "${ac_cv_lib_socket_socket+set}" = set; then
26640   echo $ECHO_N "(cached) $ECHO_C" >&6
26641 else
26642   ac_check_lib_save_LIBS=$LIBS
26643 LIBS="-lsocket  $LIBS"
26644 cat >conftest.$ac_ext <<_ACEOF
26645 /* confdefs.h.  */
26646 _ACEOF
26647 cat confdefs.h >>conftest.$ac_ext
26648 cat >>conftest.$ac_ext <<_ACEOF
26649 /* end confdefs.h.  */
26650
26651 /* Override any GCC internal prototype to avoid an error.
26652    Use char because int might match the return type of a GCC
26653    builtin and then its argument prototype would still apply.  */
26654 #ifdef __cplusplus
26655 extern "C"
26656 #endif
26657 char socket ();
26658 int
26659 main ()
26660 {
26661 return socket ();
26662   ;
26663   return 0;
26664 }
26665 _ACEOF
26666 rm -f conftest.$ac_objext conftest$ac_exeext
26667 if { (ac_try="$ac_link"
26668 case "(($ac_try" in
26669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26670   *) ac_try_echo=$ac_try;;
26671 esac
26672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26673   (eval "$ac_link") 2>conftest.er1
26674   ac_status=$?
26675   grep -v '^ *+' conftest.er1 >conftest.err
26676   rm -f conftest.er1
26677   cat conftest.err >&5
26678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679   (exit $ac_status); } && {
26680          test -z "$ac_c_werror_flag" ||
26681          test ! -s conftest.err
26682        } && test -s conftest$ac_exeext &&
26683        $as_test_x conftest$ac_exeext; then
26684   ac_cv_lib_socket_socket=yes
26685 else
26686   echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26688
26689         ac_cv_lib_socket_socket=no
26690 fi
26691
26692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26693       conftest$ac_exeext conftest.$ac_ext
26694 LIBS=$ac_check_lib_save_LIBS
26695 fi
26696 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26697 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26698 if test $ac_cv_lib_socket_socket = yes; then
26699   cat >>confdefs.h <<_ACEOF
26700 #define HAVE_LIBSOCKET 1
26701 _ACEOF
26702
26703   LIBS="-lsocket $LIBS"
26704
26705 fi
26706
26707
26708 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26709 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26710 if test "${ac_cv_lib_inet_socket+set}" = set; then
26711   echo $ECHO_N "(cached) $ECHO_C" >&6
26712 else
26713   ac_check_lib_save_LIBS=$LIBS
26714 LIBS="-linet  $LIBS"
26715 cat >conftest.$ac_ext <<_ACEOF
26716 /* confdefs.h.  */
26717 _ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h.  */
26721
26722 /* Override any GCC internal prototype to avoid an error.
26723    Use char because int might match the return type of a GCC
26724    builtin and then its argument prototype would still apply.  */
26725 #ifdef __cplusplus
26726 extern "C"
26727 #endif
26728 char socket ();
26729 int
26730 main ()
26731 {
26732 return socket ();
26733   ;
26734   return 0;
26735 }
26736 _ACEOF
26737 rm -f conftest.$ac_objext conftest$ac_exeext
26738 if { (ac_try="$ac_link"
26739 case "(($ac_try" in
26740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26741   *) ac_try_echo=$ac_try;;
26742 esac
26743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26744   (eval "$ac_link") 2>conftest.er1
26745   ac_status=$?
26746   grep -v '^ *+' conftest.er1 >conftest.err
26747   rm -f conftest.er1
26748   cat conftest.err >&5
26749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750   (exit $ac_status); } && {
26751          test -z "$ac_c_werror_flag" ||
26752          test ! -s conftest.err
26753        } && test -s conftest$ac_exeext &&
26754        $as_test_x conftest$ac_exeext; then
26755   ac_cv_lib_inet_socket=yes
26756 else
26757   echo "$as_me: failed program was:" >&5
26758 sed 's/^/| /' conftest.$ac_ext >&5
26759
26760         ac_cv_lib_inet_socket=no
26761 fi
26762
26763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26764       conftest$ac_exeext conftest.$ac_ext
26765 LIBS=$ac_check_lib_save_LIBS
26766 fi
26767 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26768 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26769 if test $ac_cv_lib_inet_socket = yes; then
26770   cat >>confdefs.h <<_ACEOF
26771 #define HAVE_LIBINET 1
26772 _ACEOF
26773
26774   LIBS="-linet $LIBS"
26775
26776 fi
26777
26778 fi
26779
26780
26781 TCPW_MSG="no"
26782 WRAPLIBS=""
26783
26784 # Check whether --with-tcp-wrappers was given.
26785 if test "${with_tcp_wrappers+set}" = set; then
26786   withval=$with_tcp_wrappers;
26787        if test "x$withval" != "xno" ; then
26788           saved_LIBS="$LIBS"
26789           LIBS="$saved_LIBS -lwrap"
26790           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26791 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26792 if test "${ac_cv_search_nanosleep+set}" = set; then
26793   echo $ECHO_N "(cached) $ECHO_C" >&6
26794 else
26795   ac_func_search_save_LIBS=$LIBS
26796 cat >conftest.$ac_ext <<_ACEOF
26797 /* confdefs.h.  */
26798 _ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h.  */
26802
26803 /* Override any GCC internal prototype to avoid an error.
26804    Use char because int might match the return type of a GCC
26805    builtin and then its argument prototype would still apply.  */
26806 #ifdef __cplusplus
26807 extern "C"
26808 #endif
26809 char nanosleep ();
26810 int
26811 main ()
26812 {
26813 return nanosleep ();
26814   ;
26815   return 0;
26816 }
26817 _ACEOF
26818 for ac_lib in '' rt; do
26819   if test -z "$ac_lib"; then
26820     ac_res="none required"
26821   else
26822     ac_res=-l$ac_lib
26823     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26824   fi
26825   rm -f conftest.$ac_objext conftest$ac_exeext
26826 if { (ac_try="$ac_link"
26827 case "(($ac_try" in
26828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26829   *) ac_try_echo=$ac_try;;
26830 esac
26831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26832   (eval "$ac_link") 2>conftest.er1
26833   ac_status=$?
26834   grep -v '^ *+' conftest.er1 >conftest.err
26835   rm -f conftest.er1
26836   cat conftest.err >&5
26837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838   (exit $ac_status); } && {
26839          test -z "$ac_c_werror_flag" ||
26840          test ! -s conftest.err
26841        } && test -s conftest$ac_exeext &&
26842        $as_test_x conftest$ac_exeext; then
26843   ac_cv_search_nanosleep=$ac_res
26844 else
26845   echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26847
26848
26849 fi
26850
26851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26852       conftest$ac_exeext
26853   if test "${ac_cv_search_nanosleep+set}" = set; then
26854   break
26855 fi
26856 done
26857 if test "${ac_cv_search_nanosleep+set}" = set; then
26858   :
26859 else
26860   ac_cv_search_nanosleep=no
26861 fi
26862 rm conftest.$ac_ext
26863 LIBS=$ac_func_search_save_LIBS
26864 fi
26865 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26866 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26867 ac_res=$ac_cv_search_nanosleep
26868 if test "$ac_res" != no; then
26869   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26870
26871 fi
26872
26873           { echo "$as_me:$LINENO: checking for libwrap" >&5
26874 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26875           cat >conftest.$ac_ext <<_ACEOF
26876 /* confdefs.h.  */
26877 _ACEOF
26878 cat confdefs.h >>conftest.$ac_ext
26879 cat >>conftest.$ac_ext <<_ACEOF
26880 /* end confdefs.h.  */
26881
26882                #include <sys/types.h>
26883                #include <tcpd.h>
26884                int deny_severity = 0;
26885                int allow_severity = 0;
26886                struct request_info *req;
26887
26888 int
26889 main ()
26890 {
26891
26892                 hosts_access(req);
26893
26894   ;
26895   return 0;
26896 }
26897 _ACEOF
26898 rm -f conftest.$ac_objext conftest$ac_exeext
26899 if { (ac_try="$ac_link"
26900 case "(($ac_try" in
26901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26902   *) ac_try_echo=$ac_try;;
26903 esac
26904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26905   (eval "$ac_link") 2>conftest.er1
26906   ac_status=$?
26907   grep -v '^ *+' conftest.er1 >conftest.err
26908   rm -f conftest.er1
26909   cat conftest.err >&5
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); } && {
26912          test -z "$ac_c_werror_flag" ||
26913          test ! -s conftest.err
26914        } && test -s conftest$ac_exeext &&
26915        $as_test_x conftest$ac_exeext; then
26916
26917                  { echo "$as_me:$LINENO: result: yes" >&5
26918 echo "${ECHO_T}yes" >&6; }
26919
26920 cat >>confdefs.h <<\_ACEOF
26921 #define HAVE_LIBWRAP 1
26922 _ACEOF
26923
26924                  TCPW_MSG="yes"
26925                  LIBS="$saved_LIBS"
26926                  WRAPLIBS="-lwrap"
26927
26928 else
26929   echo "$as_me: failed program was:" >&5
26930 sed 's/^/| /' conftest.$ac_ext >&5
26931
26932
26933                  LIBS="$saved_LIBS -lwrap -lnsl"
26934                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26935                  cat >conftest.$ac_ext <<_ACEOF
26936 /* confdefs.h.  */
26937 _ACEOF
26938 cat confdefs.h >>conftest.$ac_ext
26939 cat >>conftest.$ac_ext <<_ACEOF
26940 /* end confdefs.h.  */
26941
26942                        #include <sys/types.h>
26943                        #include <tcpd.h>
26944                        int deny_severity = 0;
26945                        int allow_severity = 0;
26946                        struct request_info *req;
26947
26948 int
26949 main ()
26950 {
26951
26952                        hosts_access(req);
26953
26954   ;
26955   return 0;
26956 }
26957 _ACEOF
26958 rm -f conftest.$ac_objext conftest$ac_exeext
26959 if { (ac_try="$ac_link"
26960 case "(($ac_try" in
26961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26962   *) ac_try_echo=$ac_try;;
26963 esac
26964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26965   (eval "$ac_link") 2>conftest.er1
26966   ac_status=$?
26967   grep -v '^ *+' conftest.er1 >conftest.err
26968   rm -f conftest.er1
26969   cat conftest.err >&5
26970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971   (exit $ac_status); } && {
26972          test -z "$ac_c_werror_flag" ||
26973          test ! -s conftest.err
26974        } && test -s conftest$ac_exeext &&
26975        $as_test_x conftest$ac_exeext; then
26976
26977                       { echo "$as_me:$LINENO: result: yes" >&5
26978 echo "${ECHO_T}yes" >&6; }
26979
26980 cat >>confdefs.h <<\_ACEOF
26981 #define HAVE_LIBWRAP 1
26982 _ACEOF
26983
26984                       TCPW_MSG="yes"
26985                       LIBS="$saved_LIBS"
26986                       WRAPLIBS="-lwrap"
26987
26988 else
26989   echo "$as_me: failed program was:" >&5
26990 sed 's/^/| /' conftest.$ac_ext >&5
26991
26992
26993                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26994 echo "$as_me: error: *** libwrap missing" >&2;}
26995    { (exit 1); exit 1; }; }
26996
26997
26998 fi
26999
27000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27001       conftest$ac_exeext conftest.$ac_ext
27002
27003
27004 fi
27005
27006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27007       conftest$ac_exeext conftest.$ac_ext
27008        fi
27009
27010
27011 fi
27012
27013
27014 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27015 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27016
27017 # Check whether --with-openssl was given.
27018 if test "${with_openssl+set}" = set; then
27019   withval=$with_openssl;
27020         with_openssl_directory=${withval}
27021
27022
27023 fi
27024
27025
27026 if test "x$with_openssl_directory" != "xno"; then
27027    OPENSSL_LIBS="-lssl -lcrypto"
27028    OPENSSL_INC=""
27029
27030    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27031       #
27032       # Make sure the $with_openssl_directory also makes sense
27033       #
27034       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27035          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27036          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27037       fi
27038    fi
27039
27040    saved_LIBS="${LIBS}"
27041    saved_CFLAGS="${CFLAGS}"
27042    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27043    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27044
27045    cat >conftest.$ac_ext <<_ACEOF
27046 /* confdefs.h.  */
27047 _ACEOF
27048 cat confdefs.h >>conftest.$ac_ext
27049 cat >>conftest.$ac_ext <<_ACEOF
27050 /* end confdefs.h.  */
27051
27052           #include <openssl/ssl.h>
27053
27054 int
27055 main ()
27056 {
27057
27058            CRYPTO_set_id_callback(NULL);
27059
27060   ;
27061   return 0;
27062 }
27063 _ACEOF
27064 rm -f conftest.$ac_objext conftest$ac_exeext
27065 if { (ac_try="$ac_link"
27066 case "(($ac_try" in
27067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27068   *) ac_try_echo=$ac_try;;
27069 esac
27070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27071   (eval "$ac_link") 2>conftest.er1
27072   ac_status=$?
27073   grep -v '^ *+' conftest.er1 >conftest.err
27074   rm -f conftest.er1
27075   cat conftest.err >&5
27076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077   (exit $ac_status); } && {
27078          test -z "$ac_c_werror_flag" ||
27079          test ! -s conftest.err
27080        } && test -s conftest$ac_exeext &&
27081        $as_test_x conftest$ac_exeext; then
27082
27083           support_tls="yes"
27084           support_crypto="yes"
27085
27086 else
27087   echo "$as_me: failed program was:" >&5
27088 sed 's/^/| /' conftest.$ac_ext >&5
27089
27090
27091           support_tls="no"
27092
27093
27094 fi
27095
27096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27097       conftest$ac_exeext conftest.$ac_ext
27098
27099    cat >conftest.$ac_ext <<_ACEOF
27100 /* confdefs.h.  */
27101 _ACEOF
27102 cat confdefs.h >>conftest.$ac_ext
27103 cat >>conftest.$ac_ext <<_ACEOF
27104 /* end confdefs.h.  */
27105
27106           #include <openssl/evp.h>
27107
27108 int
27109 main ()
27110 {
27111
27112           EVP_sha512();
27113
27114   ;
27115   return 0;
27116 }
27117 _ACEOF
27118 rm -f conftest.$ac_objext conftest$ac_exeext
27119 if { (ac_try="$ac_link"
27120 case "(($ac_try" in
27121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122   *) ac_try_echo=$ac_try;;
27123 esac
27124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27125   (eval "$ac_link") 2>conftest.er1
27126   ac_status=$?
27127   grep -v '^ *+' conftest.er1 >conftest.err
27128   rm -f conftest.er1
27129   cat conftest.err >&5
27130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131   (exit $ac_status); } && {
27132          test -z "$ac_c_werror_flag" ||
27133          test ! -s conftest.err
27134        } && test -s conftest$ac_exeext &&
27135        $as_test_x conftest$ac_exeext; then
27136
27137           ac_cv_openssl_sha2="yes"
27138
27139 else
27140   echo "$as_me: failed program was:" >&5
27141 sed 's/^/| /' conftest.$ac_ext >&5
27142
27143
27144           ac_cv_openssl_sha2="no"
27145
27146
27147 fi
27148
27149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27150       conftest$ac_exeext conftest.$ac_ext
27151
27152                cat >conftest.$ac_ext <<_ACEOF
27153 /* confdefs.h.  */
27154 _ACEOF
27155 cat confdefs.h >>conftest.$ac_ext
27156 cat >>conftest.$ac_ext <<_ACEOF
27157 /* end confdefs.h.  */
27158
27159           #include <openssl/evp.h>
27160
27161 int
27162 main ()
27163 {
27164
27165           EVP_aes_192_cbc();
27166
27167   ;
27168   return 0;
27169 }
27170 _ACEOF
27171 rm -f conftest.$ac_objext conftest$ac_exeext
27172 if { (ac_try="$ac_link"
27173 case "(($ac_try" in
27174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27175   *) ac_try_echo=$ac_try;;
27176 esac
27177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27178   (eval "$ac_link") 2>conftest.er1
27179   ac_status=$?
27180   grep -v '^ *+' conftest.er1 >conftest.err
27181   rm -f conftest.er1
27182   cat conftest.err >&5
27183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184   (exit $ac_status); } && {
27185          test -z "$ac_c_werror_flag" ||
27186          test ! -s conftest.err
27187        } && test -s conftest$ac_exeext &&
27188        $as_test_x conftest$ac_exeext; then
27189
27190           ac_cv_openssl_export="no"
27191
27192 else
27193   echo "$as_me: failed program was:" >&5
27194 sed 's/^/| /' conftest.$ac_ext >&5
27195
27196
27197           ac_cv_openssl_export="yes"
27198
27199
27200 fi
27201
27202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27203       conftest$ac_exeext conftest.$ac_ext
27204
27205    LIBS="${saved_LIBS}"
27206    CFLAGS="${saved_CFLAGS}"
27207
27208    if test "$support_tls" = "yes"; then
27209
27210 cat >>confdefs.h <<\_ACEOF
27211 #define HAVE_OPENSSL 1
27212 _ACEOF
27213
27214
27215 cat >>confdefs.h <<\_ACEOF
27216 #define HAVE_TLS 1
27217 _ACEOF
27218
27219
27220 cat >>confdefs.h <<\_ACEOF
27221 #define HAVE_CRYPTO 1
27222 _ACEOF
27223
27224    fi
27225
27226    if test "$ac_cv_openssl_sha2" = "yes"; then
27227
27228 cat >>confdefs.h <<\_ACEOF
27229 #define HAVE_SHA2 1
27230 _ACEOF
27231
27232    fi
27233
27234    if test "$ac_cv_openssl_export" = "yes"; then
27235
27236 cat >>confdefs.h <<\_ACEOF
27237 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27238 _ACEOF
27239
27240    fi
27241 else
27242    support_tls="no"
27243    support_crypto="no"
27244    OPENSSL_LIBS=""
27245    OPENSSL_INC=""
27246 fi
27247
27248 if test "$support_tls" = "no"; then
27249    OPENSSL_LIBS=""
27250    OPENSSL_INC=""
27251 fi
27252
27253 { echo "$as_me:$LINENO: result: $support_tls" >&5
27254 echo "${ECHO_T}$support_tls" >&6; }
27255
27256
27257
27258 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27259 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27260 if test "${ac_cv_search_dlopen+set}" = set; then
27261   echo $ECHO_N "(cached) $ECHO_C" >&6
27262 else
27263   ac_func_search_save_LIBS=$LIBS
27264 cat >conftest.$ac_ext <<_ACEOF
27265 /* confdefs.h.  */
27266 _ACEOF
27267 cat confdefs.h >>conftest.$ac_ext
27268 cat >>conftest.$ac_ext <<_ACEOF
27269 /* end confdefs.h.  */
27270
27271 /* Override any GCC internal prototype to avoid an error.
27272    Use char because int might match the return type of a GCC
27273    builtin and then its argument prototype would still apply.  */
27274 #ifdef __cplusplus
27275 extern "C"
27276 #endif
27277 char dlopen ();
27278 int
27279 main ()
27280 {
27281 return dlopen ();
27282   ;
27283   return 0;
27284 }
27285 _ACEOF
27286 for ac_lib in '' dl; do
27287   if test -z "$ac_lib"; then
27288     ac_res="none required"
27289   else
27290     ac_res=-l$ac_lib
27291     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27292   fi
27293   rm -f conftest.$ac_objext conftest$ac_exeext
27294 if { (ac_try="$ac_link"
27295 case "(($ac_try" in
27296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297   *) ac_try_echo=$ac_try;;
27298 esac
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300   (eval "$ac_link") 2>conftest.er1
27301   ac_status=$?
27302   grep -v '^ *+' conftest.er1 >conftest.err
27303   rm -f conftest.er1
27304   cat conftest.err >&5
27305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306   (exit $ac_status); } && {
27307          test -z "$ac_c_werror_flag" ||
27308          test ! -s conftest.err
27309        } && test -s conftest$ac_exeext &&
27310        $as_test_x conftest$ac_exeext; then
27311   ac_cv_search_dlopen=$ac_res
27312 else
27313   echo "$as_me: failed program was:" >&5
27314 sed 's/^/| /' conftest.$ac_ext >&5
27315
27316
27317 fi
27318
27319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27320       conftest$ac_exeext
27321   if test "${ac_cv_search_dlopen+set}" = set; then
27322   break
27323 fi
27324 done
27325 if test "${ac_cv_search_dlopen+set}" = set; then
27326   :
27327 else
27328   ac_cv_search_dlopen=no
27329 fi
27330 rm conftest.$ac_ext
27331 LIBS=$ac_func_search_save_LIBS
27332 fi
27333 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27334 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27335 ac_res=$ac_cv_search_dlopen
27336 if test "$ac_res" != no; then
27337   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27338
27339 fi
27340
27341
27342 working_dir=`eval echo ${prefix}/var/bacula/working`
27343
27344 # Check whether --with-working-dir was given.
27345 if test "${with_working_dir+set}" = set; then
27346   withval=$with_working_dir;
27347        if test "x$withval" != "xno" ; then
27348          working_dir=$withval
27349        fi
27350
27351
27352 fi
27353
27354
27355
27356
27357 archivedir=/tmp
27358
27359 # Check whether --with-archivedir was given.
27360 if test "${with_archivedir+set}" = set; then
27361   withval=$with_archivedir;
27362        if test "x$withval" != "xno" ; then
27363           archivedir=$withval
27364        fi
27365
27366
27367 fi
27368
27369
27370
27371
27372 basename=`hostname`
27373
27374 # Check whether --with-basename was given.
27375 if test "${with_basename+set}" = set; then
27376   withval=$with_basename;
27377        if test "x$withval" != "xno" ; then
27378           basename=$withval
27379        fi
27380
27381
27382 fi
27383
27384
27385
27386
27387 hostname=`uname -n | cut -d '.' -f 1`
27388 if test x${hostname} = x ; then
27389   hostname="localhost"
27390 fi
27391
27392 # Check whether --with-hostname was given.
27393 if test "${with_hostname+set}" = set; then
27394   withval=$with_hostname;
27395        if test "x$withval" != "xno" ; then
27396          hostname=$withval
27397        fi
27398
27399
27400 fi
27401
27402
27403
27404
27405
27406 scriptdir=`eval echo ${sysconfdir}`
27407
27408 # Check whether --with-scriptdir was given.
27409 if test "${with_scriptdir+set}" = set; then
27410   withval=$with_scriptdir;
27411        if test "x$withval" != "xno" ; then
27412           scriptdir=$withval
27413        fi
27414
27415
27416 fi
27417
27418
27419
27420
27421
27422 bsrdir=/tmp
27423
27424 # Check whether --with-bsrdir was given.
27425 if test "${with_bsrdir+set}" = set; then
27426   withval=$with_bsrdir;
27427        if test "x$withval" != "xno" ; then
27428           bsrdir=$withval
27429        fi
27430
27431
27432 fi
27433
27434
27435
27436
27437 logdir=/tmp
27438
27439 # Check whether --with-logdir was given.
27440 if test "${with_logdir+set}" = set; then
27441   withval=$with_logdir;
27442        if test "x$withval" != "xno" ; then
27443           logdir=$withval
27444        fi
27445
27446
27447 fi
27448
27449
27450
27451
27452
27453 # ------------------------------------------
27454 # Where to place plugindir (plugin files)
27455 # ------------------------------------------
27456 plugindir=`eval echo ${libdir}`
27457
27458 # Check whether --with-plugindir was given.
27459 if test "${with_plugindir+set}" = set; then
27460   withval=$with_plugindir;
27461        if test "x$withval" != "xno" ; then
27462           plugindir=$withval
27463        fi
27464
27465
27466 fi
27467
27468
27469
27470
27471 dump_email=root@localhost
27472
27473 # Check whether --with-dump-email was given.
27474 if test "${with_dump_email+set}" = set; then
27475   withval=$with_dump_email;
27476        if test "x$withval" != "xno" ; then
27477           dump_email=$withval
27478        fi
27479
27480
27481 fi
27482
27483
27484
27485
27486 job_email=root@localhost
27487
27488 # Check whether --with-job-email was given.
27489 if test "${with_job_email+set}" = set; then
27490   withval=$with_job_email;
27491        if test "x$withval" != "xno" ; then
27492           job_email=$withval
27493        fi
27494
27495
27496 fi
27497
27498
27499
27500
27501 smtp_host=localhost
27502
27503 # Check whether --with-smtp_host was given.
27504 if test "${with_smtp_host+set}" = set; then
27505   withval=$with_smtp_host;
27506        if test "x$withval" != "xno" ; then
27507           smtp_host=$withval
27508        fi
27509
27510
27511 fi
27512
27513
27514
27515
27516 piddir=/var/run
27517
27518 # Check whether --with-pid-dir was given.
27519 if test "${with_pid_dir+set}" = set; then
27520   withval=$with_pid_dir;
27521        if test "x$withval" != "xno" ; then
27522           piddir=$withval
27523        fi
27524
27525
27526 fi
27527
27528
27529 cat >>confdefs.h <<_ACEOF
27530 #define _PATH_BACULA_PIDDIR "$piddir"
27531 _ACEOF
27532
27533
27534
27535 subsysdir=/var/run/subsys
27536 if test -d /var/run/subsys; then
27537    subsysdir=/var/run/subsys
27538 elif test -d /var/lock/subsys; then
27539    subsysdir=/var/lock/subsys
27540 else
27541    subsysdir=/var/run/subsys
27542 fi
27543
27544 # Check whether --with-subsys-dir was given.
27545 if test "${with_subsys_dir+set}" = set; then
27546   withval=$with_subsys_dir;
27547        if test "x$withval" != "xno" ; then
27548           subsysdir=$withval
27549        fi
27550
27551
27552 fi
27553
27554
27555
27556
27557 baseport=9101
27558
27559 # Check whether --with-baseport was given.
27560 if test "${with_baseport+set}" = set; then
27561   withval=$with_baseport;
27562        if test "x$withval" != "xno" ; then
27563           baseport=$withval
27564        fi
27565
27566
27567 fi
27568
27569
27570
27571 dir_port=`expr $baseport`
27572 fd_port=`expr $baseport + 1`
27573 sd_port=`expr $fd_port + 1`
27574
27575
27576
27577
27578
27579 dir_password=
27580
27581 # Check whether --with-dir-password was given.
27582 if test "${with_dir_password+set}" = set; then
27583   withval=$with_dir_password;
27584        if test "x$withval" != "xno" ; then
27585           dir_password=$withval
27586        fi
27587
27588
27589 fi
27590
27591
27592 if test "x$dir_password" = "x" ; then
27593    if test "x$OPENSSL" = "xnone" ; then
27594       key=`autoconf/randpass 33`
27595    else
27596       key=`openssl rand -base64 33`
27597    fi
27598    dir_password=$key
27599 fi
27600
27601 fd_password=
27602
27603 # Check whether --with-fd-password was given.
27604 if test "${with_fd_password+set}" = set; then
27605   withval=$with_fd_password;
27606        if test "x$withval" != "xno" ; then
27607           fd_password=$withval
27608        fi
27609
27610
27611 fi
27612
27613
27614 if test "x$fd_password" = "x" ; then
27615    if test "x$OPENSSL" = "xnone" ; then
27616       key=`autoconf/randpass 37`
27617    else
27618       key=`openssl rand -base64 33`
27619    fi
27620    fd_password=$key
27621 fi
27622
27623 sd_password=
27624
27625 # Check whether --with-sd-password was given.
27626 if test "${with_sd_password+set}" = set; then
27627   withval=$with_sd_password;
27628        if test "x$withval" != "xno" ; then
27629           sd_password=$withval
27630        fi
27631
27632
27633 fi
27634
27635
27636 if test "x$sd_password" = "x" ; then
27637    if test "x$OPENSSL" = "xnone" ; then
27638       key=`autoconf/randpass 41`
27639    else
27640       key=`openssl rand -base64 33`
27641    fi
27642    sd_password=$key
27643 fi
27644
27645 mon_dir_password=
27646
27647 # Check whether --with-mon-dir-password was given.
27648 if test "${with_mon_dir_password+set}" = set; then
27649   withval=$with_mon_dir_password;
27650        if test "x$withval" != "xno" ; then
27651           mon_dir_password=$withval
27652        fi
27653
27654
27655 fi
27656
27657
27658 if test "x$mon_dir_password" = "x" ; then
27659    if test "x$OPENSSL" = "xnone" ; then
27660       key=`autoconf/randpass 33`
27661    else
27662       key=`openssl rand -base64 33`
27663    fi
27664    mon_dir_password=$key
27665 fi
27666
27667 mon_fd_password=
27668
27669 # Check whether --with-mon-fd-password was given.
27670 if test "${with_mon_fd_password+set}" = set; then
27671   withval=$with_mon_fd_password;
27672        if test "x$withval" != "xno" ; then
27673           mon_fd_password=$withval
27674        fi
27675
27676
27677 fi
27678
27679
27680 if test "x$mon_fd_password" = "x" ; then
27681    if test "x$OPENSSL" = "xnone" ; then
27682       key=`autoconf/randpass 37`
27683    else
27684       key=`openssl rand -base64 33`
27685    fi
27686    mon_fd_password=$key
27687 fi
27688
27689 mon_sd_password=
27690
27691 # Check whether --with-mon-sd-password was given.
27692 if test "${with_mon_sd_password+set}" = set; then
27693   withval=$with_mon_sd_password;
27694        if test "x$withval" != "xno" ; then
27695           mon_sd_password=$withval
27696        fi
27697
27698
27699 fi
27700
27701
27702 if test "x$mon_sd_password" = "x" ; then
27703    if test "x$OPENSSL" = "xnone" ; then
27704       key=`autoconf/randpass 41`
27705    else
27706       key=`openssl rand -base64 33`
27707    fi
27708    mon_sd_password=$key
27709 fi
27710
27711
27712
27713
27714
27715
27716
27717
27718 db_name=bacula
27719
27720 # Check whether --with-db_name was given.
27721 if test "${with_db_name+set}" = set; then
27722   withval=$with_db_name;
27723        if test "x$withval" != "x" ; then
27724           db_name=$withval
27725        fi
27726
27727
27728 fi
27729
27730
27731
27732 db_user=bacula
27733
27734 # Check whether --with-db_user was given.
27735 if test "${with_db_user+set}" = set; then
27736   withval=$with_db_user;
27737        if test "x$withval" != "x" ; then
27738           db_user=$withval
27739        fi
27740
27741
27742 fi
27743
27744
27745
27746 db_password=
27747
27748 # Check whether --with-db_password was given.
27749 if test "${with_db_password+set}" = set; then
27750   withval=$with_db_password;
27751        if test "x$withval" != "x" ; then
27752           db_password=$withval
27753        fi
27754
27755
27756 fi
27757
27758
27759
27760 db_port=" "
27761
27762 # Check whether --with-db_port was given.
27763 if test "${with_db_port+set}" = set; then
27764   withval=$with_db_port;
27765        if test "x$withval" != "x" ; then
27766           db_port=$withval
27767        fi
27768
27769
27770 fi
27771
27772
27773
27774 #
27775 # Handle users and groups for each daemon
27776 #
27777 dir_user=
27778
27779 # Check whether --with-dir_user was given.
27780 if test "${with_dir_user+set}" = set; then
27781   withval=$with_dir_user;
27782        if test "x$withval" != "x" ; then
27783            dir_user=$withval
27784        fi
27785
27786
27787 fi
27788
27789
27790 dir_group=
27791
27792 # Check whether --with-dir_group was given.
27793 if test "${with_dir_group+set}" = set; then
27794   withval=$with_dir_group;
27795        if test "x$withval" != "x" ; then
27796           dir_group=$withval
27797        fi
27798
27799
27800 fi
27801
27802
27803 sd_user=
27804
27805 # Check whether --with-sd_user was given.
27806 if test "${with_sd_user+set}" = set; then
27807   withval=$with_sd_user;
27808        if test "x$withval" != "x" ; then
27809           sd_user=$withval
27810        fi
27811
27812
27813 fi
27814
27815
27816 sd_group=
27817
27818 # Check whether --with-sd_group was given.
27819 if test "${with_sd_group+set}" = set; then
27820   withval=$with_sd_group;
27821        if test "x$withval" != "x" ; then
27822           sd_group=$withval
27823        fi
27824
27825
27826 fi
27827
27828
27829 fd_user=
27830
27831 # Check whether --with-fd_user was given.
27832 if test "${with_fd_user+set}" = set; then
27833   withval=$with_fd_user;
27834        if test "x$withval" != "x" ; then
27835           fd_user=$withval
27836        fi
27837
27838
27839 fi
27840
27841
27842 fd_group=
27843
27844 # Check whether --with-fd_group was given.
27845 if test "${with_fd_group+set}" = set; then
27846   withval=$with_fd_group;
27847        if test "x$withval" != "x" ; then
27848           fd_group=$withval
27849        fi
27850
27851
27852 fi
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862 SBINPERM=0754
27863
27864 # Check whether --with-sbin-perm was given.
27865 if test "${with_sbin_perm+set}" = set; then
27866   withval=$with_sbin_perm;
27867        if test "x$withval" != "x" ; then
27868           SBINPERM=$withval
27869        fi
27870
27871
27872 fi
27873
27874
27875
27876
27877 SQL_LIB=
27878
27879 db_found=no
27880 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27881 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27882
27883 # Check whether --with-postgresql was given.
27884 if test "${with_postgresql+set}" = set; then
27885   withval=$with_postgresql;
27886   if test "$withval" != "no"; then
27887       if test "$db_found" = "yes"; then
27888           { echo "$as_me:$LINENO: result: error" >&5
27889 echo "${ECHO_T}error" >&6; }
27890           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27891 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27892    { (exit 1); exit 1; }; };
27893       fi
27894       if test "$withval" = "yes"; then
27895           PG_CONFIG=`which pg_config`
27896           if test -n "$PG_CONFIG";then
27897               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27898               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27899               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27900           elif test -f /usr/local/include/libpq-fe.h; then
27901               POSTGRESQL_INCDIR=/usr/local/include
27902               if test -d /usr/local/lib64; then
27903                  POSTGRESQL_LIBDIR=/usr/local/lib64
27904               else
27905                  POSTGRESQL_LIBDIR=/usr/local/lib
27906               fi
27907               POSTGRESQL_BINDIR=/usr/local/bin
27908           elif test -f /usr/include/libpq-fe.h; then
27909               POSTGRESQL_INCDIR=/usr/include
27910               if test -d /usr/lib64; then
27911                  POSTGRESQL_LIBDIR=/usr/lib64
27912               else
27913                  POSTGRESQL_LIBDIR=/usr/lib
27914               fi
27915               POSTGRESQL_BINDIR=/usr/bin
27916           elif test -f /usr/include/pgsql/libpq-fe.h; then
27917               POSTGRESQL_INCDIR=/usr/include/pgsql
27918               if test -d /usr/lib64/pgsql; then
27919                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27920               else
27921                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27922               fi
27923               POSTGRESQL_BINDIR=/usr/bin
27924           elif test -f /usr/include/postgresql/libpq-fe.h; then
27925               POSTGRESQL_INCDIR=/usr/include/postgresql
27926               if test -d /usr/lib64/postgresql; then
27927                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27928               else
27929                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27930               fi
27931               POSTGRESQL_BINDIR=/usr/bin
27932           else
27933               { echo "$as_me:$LINENO: result: no" >&5
27934 echo "${ECHO_T}no" >&6; }
27935               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27936 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27937    { (exit 1); exit 1; }; }
27938           fi
27939       elif test -f $withval/include/libpq-fe.h; then
27940           POSTGRESQL_INCDIR=$withval/include
27941           POSTGRESQL_LIBDIR=$withval/lib
27942           POSTGRESQL_BINDIR=$withval/bin
27943       elif test -f $withval/include/postgresql/libpq-fe.h; then
27944           POSTGRESQL_INCDIR=$withval/include/postgresql
27945      if test -d $withval/lib64; then
27946          POSTGRESQL_LIBDIR=$withval/lib64
27947      else
27948          POSTGRESQL_LIBDIR=$withval/lib
27949      fi
27950           POSTGRESQL_BINDIR=$withval/bin
27951       else
27952           { echo "$as_me:$LINENO: result: no" >&5
27953 echo "${ECHO_T}no" >&6; }
27954           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27955 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27956    { (exit 1); exit 1; }; }
27957       fi
27958       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27959       { echo "$as_me:$LINENO: checking for crypt" >&5
27960 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27961 if test "${ac_cv_func_crypt+set}" = set; then
27962   echo $ECHO_N "(cached) $ECHO_C" >&6
27963 else
27964   cat >conftest.$ac_ext <<_ACEOF
27965 /* confdefs.h.  */
27966 _ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h.  */
27970 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27972 #define crypt innocuous_crypt
27973
27974 /* System header to define __stub macros and hopefully few prototypes,
27975     which can conflict with char crypt (); below.
27976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27977     <limits.h> exists even on freestanding compilers.  */
27978
27979 #ifdef __STDC__
27980 # include <limits.h>
27981 #else
27982 # include <assert.h>
27983 #endif
27984
27985 #undef crypt
27986
27987 /* Override any GCC internal prototype to avoid an error.
27988    Use char because int might match the return type of a GCC
27989    builtin and then its argument prototype would still apply.  */
27990 #ifdef __cplusplus
27991 extern "C"
27992 #endif
27993 char crypt ();
27994 /* The GNU C library defines this for functions which it implements
27995     to always fail with ENOSYS.  Some functions are actually named
27996     something starting with __ and the normal name is an alias.  */
27997 #if defined __stub_crypt || defined __stub___crypt
27998 choke me
27999 #endif
28000
28001 int
28002 main ()
28003 {
28004 return crypt ();
28005   ;
28006   return 0;
28007 }
28008 _ACEOF
28009 rm -f conftest.$ac_objext conftest$ac_exeext
28010 if { (ac_try="$ac_link"
28011 case "(($ac_try" in
28012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013   *) ac_try_echo=$ac_try;;
28014 esac
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016   (eval "$ac_link") 2>conftest.er1
28017   ac_status=$?
28018   grep -v '^ *+' conftest.er1 >conftest.err
28019   rm -f conftest.er1
28020   cat conftest.err >&5
28021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022   (exit $ac_status); } && {
28023          test -z "$ac_c_werror_flag" ||
28024          test ! -s conftest.err
28025        } && test -s conftest$ac_exeext &&
28026        $as_test_x conftest$ac_exeext; then
28027   ac_cv_func_crypt=yes
28028 else
28029   echo "$as_me: failed program was:" >&5
28030 sed 's/^/| /' conftest.$ac_ext >&5
28031
28032         ac_cv_func_crypt=no
28033 fi
28034
28035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28036       conftest$ac_exeext conftest.$ac_ext
28037 fi
28038 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28039 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28040 if test $ac_cv_func_crypt = yes; then
28041   :
28042 else
28043   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28044 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28045 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28046   echo $ECHO_N "(cached) $ECHO_C" >&6
28047 else
28048   ac_check_lib_save_LIBS=$LIBS
28049 LIBS="-lcrypt  $LIBS"
28050 cat >conftest.$ac_ext <<_ACEOF
28051 /* confdefs.h.  */
28052 _ACEOF
28053 cat confdefs.h >>conftest.$ac_ext
28054 cat >>conftest.$ac_ext <<_ACEOF
28055 /* end confdefs.h.  */
28056
28057 /* Override any GCC internal prototype to avoid an error.
28058    Use char because int might match the return type of a GCC
28059    builtin and then its argument prototype would still apply.  */
28060 #ifdef __cplusplus
28061 extern "C"
28062 #endif
28063 char crypt ();
28064 int
28065 main ()
28066 {
28067 return crypt ();
28068   ;
28069   return 0;
28070 }
28071 _ACEOF
28072 rm -f conftest.$ac_objext conftest$ac_exeext
28073 if { (ac_try="$ac_link"
28074 case "(($ac_try" in
28075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076   *) ac_try_echo=$ac_try;;
28077 esac
28078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079   (eval "$ac_link") 2>conftest.er1
28080   ac_status=$?
28081   grep -v '^ *+' conftest.er1 >conftest.err
28082   rm -f conftest.er1
28083   cat conftest.err >&5
28084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085   (exit $ac_status); } && {
28086          test -z "$ac_c_werror_flag" ||
28087          test ! -s conftest.err
28088        } && test -s conftest$ac_exeext &&
28089        $as_test_x conftest$ac_exeext; then
28090   ac_cv_lib_crypt_crypt=yes
28091 else
28092   echo "$as_me: failed program was:" >&5
28093 sed 's/^/| /' conftest.$ac_ext >&5
28094
28095         ac_cv_lib_crypt_crypt=no
28096 fi
28097
28098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28099       conftest$ac_exeext conftest.$ac_ext
28100 LIBS=$ac_check_lib_save_LIBS
28101 fi
28102 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28103 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28104 if test $ac_cv_lib_crypt_crypt = yes; then
28105   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28106 fi
28107
28108 fi
28109
28110       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28111       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28112       SQL_BINDIR=$POSTGRESQL_BINDIR
28113       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28114
28115       cat >>confdefs.h <<\_ACEOF
28116 #define HAVE_POSTGRESQL 1
28117 _ACEOF
28118
28119       { echo "$as_me:$LINENO: result: yes" >&5
28120 echo "${ECHO_T}yes" >&6; }
28121       db_found=yes
28122       support_postgresql=yes
28123       db_type=PostgreSQL
28124       DB_TYPE=postgresql
28125   else
28126       { echo "$as_me:$LINENO: result: no" >&5
28127 echo "${ECHO_T}no" >&6; }
28128   fi
28129
28130 else
28131
28132   { echo "$as_me:$LINENO: result: no" >&5
28133 echo "${ECHO_T}no" >&6; }
28134
28135 fi
28136
28137
28138
28139
28140
28141
28142
28143
28144 db_found=no
28145 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28146 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28147
28148 # Check whether --with-mysql was given.
28149 if test "${with_mysql+set}" = set; then
28150   withval=$with_mysql;
28151   if test "$withval" != "no"; then
28152         if test "$withval" = "yes"; then
28153            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28154                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28155                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28156                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28157                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28158                    else
28159                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28160                    fi
28161                    MYSQL_BINDIR=/usr/local/mysql/bin
28162            elif test -f /usr/include/mysql/mysql.h; then
28163                    MYSQL_INCDIR=/usr/include/mysql
28164                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28165                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28166                            MYSQL_LIBDIR=/usr/lib64/mysql
28167                    elif test -f /usr/lib64/libmysqlclient_r.a \
28168                         -o -f /usr/lib64/libmysqlclient_r.so; then
28169                            MYSQL_LIBDIR=/usr/lib64
28170                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28171                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28172                            MYSQL_LIBDIR=/usr/lib/mysql
28173                    else
28174                            MYSQL_LIBDIR=/usr/lib
28175                    fi
28176                    MYSQL_BINDIR=/usr/bin
28177            elif test -f /usr/include/mysql.h; then
28178                    MYSQL_INCDIR=/usr/include
28179                    if test -f /usr/lib64/libmysqlclient_r.a \
28180                         -o -f /usr/lib64/libmysqlclient_r.so; then
28181                            MYSQL_LIBDIR=/usr/lib64
28182                    else
28183                            MYSQL_LIBDIR=/usr/lib
28184                    fi
28185                    MYSQL_BINDIR=/usr/bin
28186            elif test -f /usr/local/include/mysql/mysql.h; then
28187                    MYSQL_INCDIR=/usr/local/include/mysql
28188                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28189                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28190                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28191                    else
28192                            MYSQL_LIBDIR=/usr/local/lib/mysql
28193                    fi
28194                    MYSQL_BINDIR=/usr/local/bin
28195            elif test -f /usr/local/include/mysql.h; then
28196                    MYSQL_INCDIR=/usr/local/include
28197                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28198                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28199                            MYSQL_LIBDIR=/usr/local/lib64
28200                    else
28201                            MYSQL_LIBDIR=/usr/local/lib
28202                    fi
28203                    MYSQL_BINDIR=/usr/local/bin
28204            else
28205               { echo "$as_me:$LINENO: result: no" >&5
28206 echo "${ECHO_T}no" >&6; }
28207               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28208 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28209    { (exit 1); exit 1; }; }
28210            fi
28211         else
28212            if test -f $withval/include/mysql/mysql.h; then
28213               MYSQL_INCDIR=$withval/include/mysql
28214               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28215                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28216                  MYSQL_LIBDIR=$withval/lib64/mysql
28217               elif test -f $withval/lib64/libmysqlclient_r.a \
28218                    -o -f $withval/lib64/libmysqlclient_r.so; then
28219                  MYSQL_LIBDIR=$withval/lib64
28220               elif test -f $withval/lib/libmysqlclient_r.a \
28221                    -o -f $withval/lib/libmysqlclient_r.so; then
28222                  MYSQL_LIBDIR=$withval/lib
28223               else
28224                  MYSQL_LIBDIR=$withval/lib/mysql
28225               fi
28226               MYSQL_BINDIR=$withval/bin
28227            elif test -f $withval/include/mysql.h; then
28228               MYSQL_INCDIR=$withval/include
28229               if test -f $withval/lib64/libmysqlclient_r.a \
28230                    -o -f $withval/lib64/libmysqlclient_r.so; then
28231                  MYSQL_LIBDIR=$withval/lib64
28232               else
28233                  MYSQL_LIBDIR=$withval/lib
28234               fi
28235               MYSQL_BINDIR=$withval/bin
28236            else
28237               { echo "$as_me:$LINENO: result: no" >&5
28238 echo "${ECHO_T}no" >&6; }
28239               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28240 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28241    { (exit 1); exit 1; }; }
28242            fi
28243         fi
28244     SQL_INCLUDE=-I$MYSQL_INCDIR
28245     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28246          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28247        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28248        cat >>confdefs.h <<\_ACEOF
28249 #define HAVE_THREAD_SAFE_MYSQL 1
28250 _ACEOF
28251
28252     fi
28253     SQL_BINDIR=$MYSQL_BINDIR
28254     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28255
28256     cat >>confdefs.h <<\_ACEOF
28257 #define HAVE_MYSQL 1
28258 _ACEOF
28259
28260     { echo "$as_me:$LINENO: result: yes" >&5
28261 echo "${ECHO_T}yes" >&6; }
28262     db_found=yes
28263     support_mysql=yes
28264     db_type=MySQL
28265     DB_TYPE=mysql
28266
28267   else
28268         { echo "$as_me:$LINENO: result: no" >&5
28269 echo "${ECHO_T}no" >&6; }
28270   fi
28271
28272
28273 fi
28274
28275
28276
28277 # Check whether --with-embedded-mysql was given.
28278 if test "${with_embedded_mysql+set}" = set; then
28279   withval=$with_embedded_mysql;
28280   if test "$withval" != "no"; then
28281         if test "$withval" = "yes"; then
28282                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28283                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28284                         if test -d /usr/local/mysql/lib64/mysql; then
28285                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28286                         else
28287                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28288                         fi
28289                         MYSQL_BINDIR=/usr/local/mysql/bin
28290                 elif test -f /usr/include/mysql/mysql.h; then
28291                         MYSQL_INCDIR=/usr/include/mysql
28292                         if test -d /usr/lib64/mysql; then
28293                                 MYSQL_LIBDIR=/usr/lib64/mysql
28294                         else
28295                                 MYSQL_LIBDIR=/usr/lib/mysql
28296                         fi
28297                         MYSQL_BINDIR=/usr/bin
28298                 elif test -f /usr/include/mysql.h; then
28299                         MYSQL_INCDIR=/usr/include
28300                         if test -d /usr/lib64; then
28301                                 MYSQL_LIBDIR=/usr/lib64
28302                         else
28303                                 MYSQL_LIBDIR=/usr/lib
28304                         fi
28305                         MYSQL_BINDIR=/usr/bin
28306                 elif test -f /usr/local/include/mysql/mysql.h; then
28307                         MYSQL_INCDIR=/usr/local/include/mysql
28308                         if test -d /usr/local/lib64/mysql; then
28309                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28310                         else
28311                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28312                         fi
28313                         MYSQL_BINDIR=/usr/local/bin
28314                 elif test -f /usr/local/include/mysql.h; then
28315                         MYSQL_INCDIR=/usr/local/include
28316                         if test -d /usr/local/lib64; then
28317                                 MYSQL_LIBDIR=/usr/local/lib64
28318                         else
28319                                 MYSQL_LIBDIR=/usr/local/lib
28320                         fi
28321                         MYSQL_BINDIR=/usr/local/bin
28322                 else
28323                    { echo "$as_me:$LINENO: result: no" >&5
28324 echo "${ECHO_T}no" >&6; }
28325                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28326 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28327    { (exit 1); exit 1; }; }
28328                 fi
28329         else
28330                 if test -f $withval/include/mysql/mysql.h; then
28331                         MYSQL_INCDIR=$withval/include/mysql
28332                         if test -d $withval/lib64/mysql; then
28333                                 MYSQL_LIBDIR=$withval/lib64/mysql
28334                         else
28335                                 MYSQL_LIBDIR=$withval/lib/mysql
28336                         fi
28337                         MYSQL_BINDIR=$withval/bin
28338                 elif test -f $withval/include/mysql.h; then
28339                         MYSQL_INCDIR=$withval/include
28340                         if test -d $withval/lib64; then
28341                                 MYSQL_LIBDIR=$withval/lib64
28342                         else
28343                                 MYSQL_LIBDIR=$withval/lib
28344                         fi
28345                         MYSQL_BINDIR=$withval/bin
28346                 else
28347                    { echo "$as_me:$LINENO: result: no" >&5
28348 echo "${ECHO_T}no" >&6; }
28349                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28350 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28351    { (exit 1); exit 1; }; }
28352                 fi
28353         fi
28354     SQL_INCLUDE=-I$MYSQL_INCDIR
28355     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28356     SQL_BINDIR=$MYSQL_BINDIR
28357     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28358
28359     cat >>confdefs.h <<\_ACEOF
28360 #define HAVE_MYSQL 1
28361 _ACEOF
28362
28363     cat >>confdefs.h <<\_ACEOF
28364 #define HAVE_EMBEDDED_MYSQL 1
28365 _ACEOF
28366
28367     { echo "$as_me:$LINENO: result: yes" >&5
28368 echo "${ECHO_T}yes" >&6; }
28369     db_found=yes
28370     support_mysql=yes
28371     db_type=MySQL
28372     DB_TYPE=mysql
28373
28374   else
28375         { echo "$as_me:$LINENO: result: no" >&5
28376 echo "${ECHO_T}no" >&6; }
28377   fi
28378
28379
28380 fi
28381
28382
28383
28384
28385
28386
28387
28388
28389
28390
28391 db_found=no
28392 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28393 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28394
28395 # Check whether --with-sqlite3 was given.
28396 if test "${with_sqlite3+set}" = set; then
28397   withval=$with_sqlite3;
28398   if test "$withval" != "no"; then
28399      if test "$withval" = "yes"; then
28400         if test -f /usr/local/include/sqlite3.h; then
28401            SQLITE_INCDIR=/usr/local/include
28402            if test -d /usr/local/lib64; then
28403               SQLITE_LIBDIR=/usr/local/lib64
28404            else
28405               SQLITE_LIBDIR=/usr/local/lib
28406            fi
28407            SQLITE_BINDIR=/usr/local/bin
28408         elif test -f /usr/include/sqlite3.h; then
28409            SQLITE_INCDIR=/usr/include
28410            if test -d /usr/lib64; then
28411               SQLITE_LIBDIR=/usr/lib64
28412            else
28413               SQLITE_LIBDIR=/usr/lib
28414            fi
28415            SQLITE_BINDIR=/usr/bin
28416         elif test -f $prefix/include/sqlite3.h; then
28417            SQLITE_INCDIR=$prefix/include
28418            if test -d $prefix/lib64; then
28419               SQLITE_LIBDIR=$prefix/lib64
28420            else
28421               SQLITE_LIBDIR=$prefix/lib
28422            fi
28423            SQLITE_BINDIR=$prefix/bin
28424         else
28425            { echo "$as_me:$LINENO: result: no" >&5
28426 echo "${ECHO_T}no" >&6; }
28427            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28428 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28429    { (exit 1); exit 1; }; }
28430         fi
28431      else
28432         if test -f $withval/sqlite3.h; then
28433            SQLITE_INCDIR=$withval
28434            SQLITE_LIBDIR=$withval
28435            SQLITE_BINDIR=$withval
28436         elif test -f $withval/include/sqlite3.h; then
28437            SQLITE_INCDIR=$withval/include
28438            if test -d $withval/lib64; then
28439               SQLITE_LIBDIR=$withval/lib64
28440            else
28441               SQLITE_LIBDIR=$withval/lib
28442            fi
28443            SQLITE_BINDIR=$withval/bin
28444         else
28445            { echo "$as_me:$LINENO: result: no" >&5
28446 echo "${ECHO_T}no" >&6; }
28447            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28448 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28449    { (exit 1); exit 1; }; }
28450         fi
28451      fi
28452      SQL_INCLUDE=-I$SQLITE_INCDIR
28453      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28454      SQL_BINDIR=$SQLITE_BINDIR
28455      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28456
28457      cat >>confdefs.h <<\_ACEOF
28458 #define HAVE_SQLITE3 1
28459 _ACEOF
28460
28461      { echo "$as_me:$LINENO: result: yes" >&5
28462 echo "${ECHO_T}yes" >&6; }
28463      db_found=yes
28464      support_sqlite3=yes
28465      db_type=SQLite3
28466      DB_TYPE=sqlite3
28467
28468   else
28469      { echo "$as_me:$LINENO: result: no" >&5
28470 echo "${ECHO_T}no" >&6; }
28471   fi
28472
28473 else
28474
28475   { echo "$as_me:$LINENO: result: no" >&5
28476 echo "${ECHO_T}no" >&6; }
28477
28478 fi
28479
28480
28481
28482
28483
28484
28485
28486
28487 db_found=no
28488 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28489 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28490
28491 # Check whether --with-sqlite was given.
28492 if test "${with_sqlite+set}" = set; then
28493   withval=$with_sqlite;
28494   if test "$withval" != "no"; then
28495      if test "$withval" = "yes"; then
28496         if test -f /usr/local/include/sqlite.h; then
28497            SQLITE_INCDIR=/usr/local/include
28498            if test -d /usr/local/lib64; then
28499               SQLITE_LIBDIR=/usr/local/lib64
28500            else
28501               SQLITE_LIBDIR=/usr/local/lib
28502            fi
28503            SQLITE_BINDIR=/usr/local/bin
28504         elif test -f /usr/include/sqlite.h; then
28505            SQLITE_INCDIR=/usr/include
28506            if test -d /usr/lib64; then
28507               SQLITE_LIBDIR=/usr/lib64
28508            else
28509               SQLITE_LIBDIR=/usr/lib
28510            fi
28511            SQLITE_BINDIR=/usr/bin
28512         elif test -f $prefix/include/sqlite.h; then
28513            SQLITE_INCDIR=$prefix/include
28514            if test -d $prefix/lib64; then
28515               SQLITE_LIBDIR=$prefix/lib64
28516            else
28517               SQLITE_LIBDIR=$prefix/lib
28518            fi
28519            SQLITE_BINDIR=$prefix/bin
28520         else
28521            { echo "$as_me:$LINENO: result: no" >&5
28522 echo "${ECHO_T}no" >&6; }
28523            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28524 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28525    { (exit 1); exit 1; }; }
28526         fi
28527      else
28528         if test -f $withval/sqlite.h; then
28529            SQLITE_INCDIR=$withval
28530            SQLITE_LIBDIR=$withval
28531            SQLITE_BINDIR=$withval
28532         elif test -f $withval/include/sqlite.h; then
28533            SQLITE_INCDIR=$withval/include
28534            if test -d $withval/lib64; then
28535               SQLITE_LIBDIR=$withval/lib64
28536            else
28537               SQLITE_LIBDIR=$withval/lib
28538            fi
28539            SQLITE_BINDIR=$withval/bin
28540         else
28541            { echo "$as_me:$LINENO: result: no" >&5
28542 echo "${ECHO_T}no" >&6; }
28543            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28544 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28545    { (exit 1); exit 1; }; }
28546         fi
28547      fi
28548      SQL_INCLUDE=-I$SQLITE_INCDIR
28549      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28550      SQL_BINDIR=$SQLITE_BINDIR
28551      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28552
28553      cat >>confdefs.h <<\_ACEOF
28554 #define HAVE_SQLITE 1
28555 _ACEOF
28556
28557      { echo "$as_me:$LINENO: result: yes" >&5
28558 echo "${ECHO_T}yes" >&6; }
28559      db_found=yes
28560      support_sqlite=yes
28561      db_type=SQLite
28562      DB_TYPE=sqlite
28563
28564   else
28565      { echo "$as_me:$LINENO: result: no" >&5
28566 echo "${ECHO_T}no" >&6; }
28567   fi
28568
28569 else
28570
28571   { echo "$as_me:$LINENO: result: no" >&5
28572 echo "${ECHO_T}no" >&6; }
28573
28574 fi
28575
28576
28577
28578
28579
28580
28581
28582
28583 db_found=no
28584 { echo "$as_me:$LINENO: checking for DBI support" >&5
28585 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28586
28587 # Check whether --with-dbi was given.
28588 if test "${with_dbi+set}" = set; then
28589   withval=$with_dbi;
28590   if test "$withval" != "no"; then
28591      if test "$withval" = "yes"; then
28592         if test -f /usr/local/include/dbi/dbi.h; then
28593            DBI_INCDIR=/usr/local/dbi/include
28594            if test -d /usr/local/lib64; then
28595               DBI_LIBDIR=/usr/local/lib64
28596            else
28597               DBI_LIBDIR=/usr/local/lib
28598            fi
28599            DBI_BINDIR=/usr/local/bin
28600         elif test -f /usr/include/dbi/dbi.h; then
28601            DBI_INCDIR=/usr/include
28602            if test -d /usr/lib64; then
28603               DBI_LIBDIR=/usr/lib64
28604            else
28605               DBI_LIBDIR=/usr/lib
28606            fi
28607            DBI_BINDIR=/usr/bin
28608         elif test -f $prefix/include/dbi/dbi.h; then
28609            DBI_INCDIR=$prefix/include
28610            if test -d $prefix/lib64; then
28611               DBI_LIBDIR=$prefix/lib64
28612            else
28613               DBI_LIBDIR=$prefix/lib
28614            fi
28615            DBI_BINDIR=$prefix/bin
28616         else
28617            { echo "$as_me:$LINENO: result: no" >&5
28618 echo "${ECHO_T}no" >&6; }
28619            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28620 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28621    { (exit 1); exit 1; }; }
28622         fi
28623         if test -d /usr/local/lib/dbd; then
28624            DRIVERDIR=/usr/local/lib/dbd
28625            if test -d /usr/local/lib64/dbd; then
28626               DRIVERDIR=/usr/local/lib64/dbd
28627            else
28628               DRIVERDIR=/usr/local/lib/dbd
28629            fi
28630         elif test -d /usr/lib/dbd; then
28631            DRIVERDIR=/usr/lib/dbd
28632            if test -d /usr/lib64/dbd; then
28633               DRIVERDIR=/usr/lib64/dbd
28634            else
28635               DRIVERDIR=/usr/lib/dbd
28636            fi
28637         elif test -d $prefix/lib/dbd; then
28638            if test -d $prefix/lib64/dbd; then
28639               DRIVERDIR=$prefix/lib64/dbd
28640            else
28641               DRIVERDIR=$prefix/lib/dbd
28642            fi
28643         else
28644            { echo "$as_me:$LINENO: result: no" >&5
28645 echo "${ECHO_T}no" >&6; }
28646            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28647 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28648    { (exit 1); exit 1; }; }
28649         fi
28650      else
28651         if test -f $withval/dbi.h; then
28652            DBI_INCDIR=$withval
28653            DBI_LIBDIR=$withval
28654            DBI_BINDIR=$withval
28655         elif test -f $withval/include/dbi/dbi.h; then
28656            DBI_INCDIR=$withval/include
28657            if test -d $withval/lib64; then
28658               DBI_LIBDIR=$withval/lib64
28659            else
28660               DBI_LIBDIR=$withval/lib
28661            fi
28662            DBI_BINDIR=$withval/bin
28663         else
28664            { echo "$as_me:$LINENO: result: no" >&5
28665 echo "${ECHO_T}no" >&6; }
28666            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28667 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28668    { (exit 1); exit 1; }; }
28669         fi
28670         if test -d $withval/dbd; then
28671            DRIVERDIR=$withval/dbd
28672         elif test -d $withval/lib/; then
28673            if test -d $withval/lib64/dbd; then
28674               DRIVERDIR=$withval/lib64/dbd
28675            else
28676               DRIVERDIR=$withval/lib/dbd
28677            fi
28678         else
28679            { echo "$as_me:$LINENO: result: no" >&5
28680 echo "${ECHO_T}no" >&6; }
28681            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28682 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28683    { (exit 1); exit 1; }; }
28684         fi
28685      fi
28686      SQL_INCLUDE=-I$DBI_INCDIR
28687      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28688      SQL_BINDIR=$DBI_BINDIR
28689      SQL_LIB=$DBI_LIBDIR/libdbi.a
28690      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28691
28692
28693 cat >>confdefs.h <<\_ACEOF
28694 #define HAVE_DBI 1
28695 _ACEOF
28696
28697      { echo "$as_me:$LINENO: result: yes" >&5
28698 echo "${ECHO_T}yes" >&6; }
28699      db_found=yes
28700      support_dbi=yes
28701      db_type=DBI
28702      DB_TYPE=dbi
28703      uncomment_dbi=" "
28704
28705   else
28706      { echo "$as_me:$LINENO: result: no" >&5
28707 echo "${ECHO_T}no" >&6; }
28708   fi
28709
28710 else
28711
28712   { echo "$as_me:$LINENO: result: no" >&5
28713 echo "${ECHO_T}no" >&6; }
28714
28715 fi
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726 db_found=no
28727 db_prog=no
28728 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28729 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28730
28731 # Check whether --with-dbi-driver was given.
28732 if test "${with_dbi_driver+set}" = set; then
28733   withval=$with_dbi_driver;
28734   if test "$withval" != "no"; then
28735      case $withval in
28736         "mysql")
28737            db_prog="mysql"
28738            if test -f /usr/local/mysql/bin/mysql; then
28739               SQL_BINDIR=/usr/local/mysql/bin
28740               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28741                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28742                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28743               else
28744                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28745               fi
28746            elif test -f /usr/bin/mysql; then
28747               SQL_BINDIR=/usr/bin
28748               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28749                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28750                   SQL_LIBDIR=/usr/lib64/mysql
28751               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28752                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28753                   SQL_LIBDIR=/usr/lib/mysql
28754               else
28755                   SQL_LIBDIR=/usr/lib
28756               fi
28757            elif test -f /usr/local/bin/mysql; then
28758               SQL_BINDIR=/usr/local/bin
28759               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28760                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28761                   SQL_LIBDIR=/usr/local/lib64/mysql
28762               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28763                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28764                   SQL_LIBDIR=/usr/local/lib/mysql
28765               else
28766                   SQL_LIBDIR=/usr/local/lib
28767               fi
28768            elif test -f $withval/bin/mysql; then
28769               SQL_BINDIR=$withval/bin
28770               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28771                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28772                   SQL_LIBDIR=$withval/lib64/mysql
28773               elif test -f $withval/lib64/libmysqlclient_r.a \
28774                   -o -f $withval/lib64/libmysqlclient_r.so; then
28775                   SQL_LIBDIR=$withval/lib64
28776               elif test -f $withval/lib/libmysqlclient_r.a \
28777                   -o -f $withval/lib/libmysqlclient_r.so; then
28778                   SQL_LIBDIR=$withval/lib/
28779               else
28780                   SQL_LIBDIR=$withval/lib/mysql
28781               fi
28782            else
28783               { echo "$as_me:$LINENO: result: no" >&5
28784 echo "${ECHO_T}no" >&6; }
28785               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28786 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28787    { (exit 1); exit 1; }; }
28788            fi
28789            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28790               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28791            else
28792               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28793            fi
28794         ;;
28795         "postgresql")
28796            db_prog="postgresql"
28797            PG_CONFIG=`which pg_config`
28798            if test -n "$PG_CONFIG"; then
28799               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28800               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28801            elif test -f /usr/local/bin/psql; then
28802               SQL_BINDIR=/usr/local/bin
28803               if test -d /usr/local/lib64; then
28804                  SQL_LIBDIR=/usr/local/lib64
28805               else
28806                  SQL_LIBDIR=/usr/local/lib
28807               fi
28808            elif test -f /usr/bin/psql; then
28809               SQL_BINDIR=/usr/local/bin
28810               if test -d /usr/lib64/postgresql; then
28811                  SQL_LIBDIR=/usr/lib64/postgresql
28812               elif test -d /usr/lib/postgresql; then
28813                  SQL_LIBDIR=/usr/lib/postgresql
28814               elif test -d /usr/lib64; then
28815                  SQL_LIBDIR=/usr/lib64
28816               else
28817                  SQL_LIBDIR=/usr/lib
28818               fi
28819            elif test -f $withval/bin/psql; then
28820               SQL_BINDIR=$withval/bin
28821               if test -d $withval/lib64; then
28822                  SQL_LIBDIR=$withval/lib64
28823               else
28824                  SQL_LIBDIR=$withval/lib
28825               fi
28826            else
28827               { echo "$as_me:$LINENO: result: no" >&5
28828 echo "${ECHO_T}no" >&6; }
28829               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28830 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28831    { (exit 1); exit 1; }; }
28832            fi
28833            if test -f $SQL_LIBDIR/libpq.so; then
28834               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28835            else
28836               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28837            fi
28838         ;;
28839         "sqlite")
28840            db_prog="sqlite"
28841            if test -f /usr/local/bin/sqlite; then
28842               SQL_BINDIR=/usr/local/bin
28843               if test -d /usr/local/lib64; then
28844                  SQL_LIBDIR=/usr/local/lib64
28845               else
28846                  SQL_LIBDIR=/usr/local/lib
28847               fi
28848            elif test -f /usr/bin/sqlite; then
28849               SQL_BINDIR=/usr/bin
28850               if test -d /usr/lib64; then
28851                  SQL_LIBDIR=/usr/lib64
28852               else
28853                  SQL_LIBDIR=/usr/lib
28854               fi
28855            elif test -f $withval/bin/sqlite; then
28856               SQL_BINDIR=$withval/bin
28857               if test -d $withval/lib64; then
28858                  SQL_LIBDIR=$withval/lib64
28859               else
28860                  SQL_LIBDIR=$withval/lib
28861               fi
28862            else
28863               { echo "$as_me:$LINENO: result: no" >&5
28864 echo "${ECHO_T}no" >&6; }
28865               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28866 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28867    { (exit 1); exit 1; }; }
28868            fi
28869            if test -f $SQL_LIBDIR/libsqlite.so; then
28870               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28871            else
28872               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28873            fi
28874         ;;
28875         "sqlite3")
28876            db_prog="sqlite3"
28877            if test -f /usr/local/bin/sqlite3; then
28878               SQL_BINDIR=/usr/local/bin
28879               if test -d /usr/local/lib64; then
28880                  SQL_LIBDIR=/usr/local/lib64
28881               else
28882                  SQL_LIBDIR=/usr/local/lib
28883               fi
28884            elif test -f /usr/bin/sqlite3; then
28885               SQL_BINDIR=/usr/bin
28886               if test -d /usr/lib64; then
28887                  SQL_LIBDIR=/usr/lib64
28888               else
28889                  SQL_LIBDIR=/usr/lib
28890               fi
28891            elif test -f $withval/bin/sqlite3; then
28892               SQL_BINDIR=$withval/bin
28893               if test -d $withval/lib64; then
28894                  SQL_LIBDIR=$withval/lib64
28895               else
28896                  SQL_LIBDIR=$withval/lib
28897               fi
28898            else
28899               { echo "$as_me:$LINENO: result: no" >&5
28900 echo "${ECHO_T}no" >&6; }
28901               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28902 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28903    { (exit 1); exit 1; }; }
28904            fi
28905            if test -f $SQL_LIBDIR/libsqlite3.so; then
28906               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28907            else
28908               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28909            fi
28910         ;;
28911         *)
28912            { echo "$as_me:$LINENO: result: no" >&5
28913 echo "${ECHO_T}no" >&6; }
28914            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28915 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28916    { (exit 1); exit 1; }; }
28917         ;;
28918      esac
28919
28920      { echo "$as_me:$LINENO: result: yes" >&5
28921 echo "${ECHO_T}yes" >&6; }
28922      DB_PROG=$db_prog
28923   else
28924      { echo "$as_me:$LINENO: result: no" >&5
28925 echo "${ECHO_T}no" >&6; }
28926   fi
28927
28928 else
28929
28930   { echo "$as_me:$LINENO: result: no" >&5
28931 echo "${ECHO_T}no" >&6; }
28932
28933 fi
28934
28935
28936
28937
28938
28939
28940
28941
28942
28943
28944 support_batch_insert=no
28945 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28946 pkg=$?
28947 if test $pkg = 0; then
28948    support_batch_insert=yes
28949    # Check whether --enable-batch-insert was given.
28950 if test "${enable_batch_insert+set}" = set; then
28951   enableval=$enable_batch_insert;
28952           if test x$enableval = xno; then
28953              support_batch_insert=no
28954           else
28955              support_batch_insert=yes
28956           fi
28957
28958
28959 fi
28960
28961 fi
28962
28963 if test x$DB_TYPE = xpostgresql; then
28964    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28965    pkg=$?
28966    if test $pkg != 0; then
28967       support_batch_insert=no
28968    fi
28969 fi
28970
28971 if test x$DB_TYPE = xdbi; then
28972    DB_TYPE=$DB_PROG
28973    db_type=$DB_PROG
28974    pkg=1
28975       if test $DB_PROG = postgresql; then
28976       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28977       pkg=$?
28978    fi
28979
28980    if test $DB_PROG = mysql; then
28981       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28982       pkg=$?
28983    fi
28984
28985    if test $DB_PROG = sqlite3; then
28986       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28987       pkg=$?
28988    fi
28989
28990    if test $pkg = 0; then
28991       # Check whether --enable-batch-insert was given.
28992 if test "${enable_batch_insert+set}" = set; then
28993   enableval=$enable_batch_insert;
28994              if test x$enableval = xno; then
28995                 support_batch_insert=no
28996              else
28997                 support_batch_insert=yes
28998              fi
28999
29000
29001 fi
29002
29003    fi
29004 else
29005       uncomment_dbi="#"
29006 fi
29007
29008
29009
29010 if test $support_batch_insert = yes ; then
29011
29012 cat >>confdefs.h <<\_ACEOF
29013 #define HAVE_BATCH_FILE_INSERT 1
29014 _ACEOF
29015
29016 fi
29017
29018 cat >>confdefs.h <<\_ACEOF
29019 #define PROTOTYPES 1
29020 _ACEOF
29021
29022
29023 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29024    if test -z "$CCOPTS"; then
29025       CCOPTS='-g -O2 -Wall'
29026    fi
29027    CFLAGS="$CCOPTS"
29028 fi
29029
29030
29031
29032 largefile_support="no"
29033
29034    # Check whether --enable-largefile was given.
29035 if test "${enable_largefile+set}" = set; then
29036   enableval=$enable_largefile;
29037 fi
29038
29039    if test "$enable_largefile" != no; then
29040      if test -n "$ac_tool_prefix"; then
29041   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29042 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29045 if test "${ac_cv_prog_GETCONF+set}" = set; then
29046   echo $ECHO_N "(cached) $ECHO_C" >&6
29047 else
29048   if test -n "$GETCONF"; then
29049   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29050 else
29051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29052 for as_dir in $PATH
29053 do
29054   IFS=$as_save_IFS
29055   test -z "$as_dir" && as_dir=.
29056   for ac_exec_ext in '' $ac_executable_extensions; do
29057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29058     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29060     break 2
29061   fi
29062 done
29063 done
29064 IFS=$as_save_IFS
29065
29066 fi
29067 fi
29068 GETCONF=$ac_cv_prog_GETCONF
29069 if test -n "$GETCONF"; then
29070   { echo "$as_me:$LINENO: result: $GETCONF" >&5
29071 echo "${ECHO_T}$GETCONF" >&6; }
29072 else
29073   { echo "$as_me:$LINENO: result: no" >&5
29074 echo "${ECHO_T}no" >&6; }
29075 fi
29076
29077
29078 fi
29079 if test -z "$ac_cv_prog_GETCONF"; then
29080   ac_ct_GETCONF=$GETCONF
29081   # Extract the first word of "getconf", so it can be a program name with args.
29082 set dummy getconf; ac_word=$2
29083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29085 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29086   echo $ECHO_N "(cached) $ECHO_C" >&6
29087 else
29088   if test -n "$ac_ct_GETCONF"; then
29089   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29090 else
29091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29092 for as_dir in $PATH
29093 do
29094   IFS=$as_save_IFS
29095   test -z "$as_dir" && as_dir=.
29096   for ac_exec_ext in '' $ac_executable_extensions; do
29097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29098     ac_cv_prog_ac_ct_GETCONF="getconf"
29099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29100     break 2
29101   fi
29102 done
29103 done
29104 IFS=$as_save_IFS
29105
29106 fi
29107 fi
29108 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29109 if test -n "$ac_ct_GETCONF"; then
29110   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29111 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29112 else
29113   { echo "$as_me:$LINENO: result: no" >&5
29114 echo "${ECHO_T}no" >&6; }
29115 fi
29116
29117   if test "x$ac_ct_GETCONF" = x; then
29118     GETCONF=""
29119   else
29120     case $cross_compiling:$ac_tool_warned in
29121 yes:)
29122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29123 whose name does not start with the host triplet.  If you think this
29124 configuration is useful to you, please write to autoconf@gnu.org." >&5
29125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29126 whose name does not start with the host triplet.  If you think this
29127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29128 ac_tool_warned=yes ;;
29129 esac
29130     GETCONF=$ac_ct_GETCONF
29131   fi
29132 else
29133   GETCONF="$ac_cv_prog_GETCONF"
29134 fi
29135
29136      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29137 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29138 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29139   echo $ECHO_N "(cached) $ECHO_C" >&6
29140 else
29141   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29142         ac_cv_sys_largefile_CFLAGS=no
29143         case "$host_os" in
29144            # IRIX 6.2 and later require cc -n32.
29145            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29146              if test "$GCC" != yes; then
29147                ac_cv_sys_largefile_CFLAGS=-n32
29148              fi
29149              ac_save_CC="$CC"
29150              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29151              cat >conftest.$ac_ext <<_ACEOF
29152 /* confdefs.h.  */
29153 _ACEOF
29154 cat confdefs.h >>conftest.$ac_ext
29155 cat >>conftest.$ac_ext <<_ACEOF
29156 /* end confdefs.h.  */
29157
29158 int
29159 main ()
29160 {
29161
29162   ;
29163   return 0;
29164 }
29165 _ACEOF
29166 rm -f conftest.$ac_objext conftest$ac_exeext
29167 if { (ac_try="$ac_link"
29168 case "(($ac_try" in
29169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29170   *) ac_try_echo=$ac_try;;
29171 esac
29172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29173   (eval "$ac_link") 2>conftest.er1
29174   ac_status=$?
29175   grep -v '^ *+' conftest.er1 >conftest.err
29176   rm -f conftest.er1
29177   cat conftest.err >&5
29178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179   (exit $ac_status); } && {
29180          test -z "$ac_c_werror_flag" ||
29181          test ! -s conftest.err
29182        } && test -s conftest$ac_exeext &&
29183        $as_test_x conftest$ac_exeext; then
29184   :
29185 else
29186   echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29188
29189         ac_cv_sys_largefile_CFLAGS=no
29190 fi
29191
29192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29193       conftest$ac_exeext conftest.$ac_ext
29194              CC="$ac_save_CC"
29195            esac
29196       }
29197 fi
29198 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29199 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29200      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29201 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29202 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29203   echo $ECHO_N "(cached) $ECHO_C" >&6
29204 else
29205   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29206         ac_cv_sys_largefile_LDFLAGS=no
29207
29208       }
29209 fi
29210 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29211 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29212      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29213 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29214 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29215   echo $ECHO_N "(cached) $ECHO_C" >&6
29216 else
29217   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29218         ac_cv_sys_largefile_LIBS=no
29219
29220       }
29221 fi
29222 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29223 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29224
29225      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29226        case "$ac_flag" in
29227        no) ;;
29228        -D_FILE_OFFSET_BITS=*) ;;
29229        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29230        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29231        -D?* | -I?*)
29232          case "$ac_flag" in
29233    no) ;;
29234    ?*)
29235      case "$CPPFLAGS" in
29236      '') CPPFLAGS="$ac_flag" ;;
29237      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29238      esac ;;
29239    esac ;;
29240        *)
29241          case "$ac_flag" in
29242    no) ;;
29243    ?*)
29244      case "$CFLAGS" in
29245      '') CFLAGS="$ac_flag" ;;
29246      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29247      esac ;;
29248    esac ;;
29249        esac
29250      done
29251      case "$ac_cv_sys_largefile_LDFLAGS" in
29252    no) ;;
29253    ?*)
29254      case "$LDFLAGS" in
29255      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29256      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29257      esac ;;
29258    esac
29259      case "$ac_cv_sys_largefile_LIBS" in
29260    no) ;;
29261    ?*)
29262      case "$LIBS" in
29263      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29264      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29265      esac ;;
29266    esac
29267      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29268 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29269 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29270   echo $ECHO_N "(cached) $ECHO_C" >&6
29271 else
29272   ac_cv_sys_file_offset_bits=no
29273       ac_cv_sys_file_offset_bits=64
29274       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29275         case "$ac_flag" in
29276         -D_FILE_OFFSET_BITS)
29277           ac_cv_sys_file_offset_bits=1 ;;
29278         -D_FILE_OFFSET_BITS=*)
29279           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29280         esac
29281       done
29282
29283 fi
29284 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29285 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29286    if test "$ac_cv_sys_file_offset_bits" != no; then
29287
29288 cat >>confdefs.h <<_ACEOF
29289 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29290 _ACEOF
29291
29292    fi
29293      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29294 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29295 if test "${ac_cv_sys_largefile_source+set}" = set; then
29296   echo $ECHO_N "(cached) $ECHO_C" >&6
29297 else
29298   ac_cv_sys_largefile_source=no
29299       ac_cv_sys_largefile_source=1
29300       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29301         case "$ac_flag" in
29302         -D_LARGEFILE_SOURCE)
29303           ac_cv_sys_largefile_source=1 ;;
29304         -D_LARGEFILE_SOURCE=*)
29305           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29306         esac
29307       done
29308
29309 fi
29310 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29311 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29312    if test "$ac_cv_sys_largefile_source" != no; then
29313
29314 cat >>confdefs.h <<_ACEOF
29315 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29316 _ACEOF
29317
29318    fi
29319      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29320 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29321 if test "${ac_cv_sys_large_files+set}" = set; then
29322   echo $ECHO_N "(cached) $ECHO_C" >&6
29323 else
29324   ac_cv_sys_large_files=no
29325       ac_cv_sys_large_files=1
29326       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29327         case "$ac_flag" in
29328         -D_LARGE_FILES)
29329           ac_cv_sys_large_files=1 ;;
29330         -D_LARGE_FILES=*)
29331           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29332         esac
29333       done
29334
29335 fi
29336 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29337 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29338    if test "$ac_cv_sys_large_files" != no; then
29339
29340 cat >>confdefs.h <<_ACEOF
29341 #define _LARGE_FILES $ac_cv_sys_large_files
29342 _ACEOF
29343
29344    fi
29345    fi
29346
29347
29348 { echo "$as_me:$LINENO: checking for X" >&5
29349 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29350
29351
29352 # Check whether --with-x was given.
29353 if test "${with_x+set}" = set; then
29354   withval=$with_x;
29355 fi
29356
29357 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29358 if test "x$with_x" = xno; then
29359   # The user explicitly disabled X.
29360   have_x=disabled
29361 else
29362   case $x_includes,$x_libraries in #(
29363     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29364 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29365    { (exit 1); exit 1; }; };; #(
29366     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29367   echo $ECHO_N "(cached) $ECHO_C" >&6
29368 else
29369   # One or both of the vars are not set, and there is no cached value.
29370 ac_x_includes=no ac_x_libraries=no
29371 rm -f -r conftest.dir
29372 if mkdir conftest.dir; then
29373   cd conftest.dir
29374   cat >Imakefile <<'_ACEOF'
29375 incroot:
29376         @echo incroot='${INCROOT}'
29377 usrlibdir:
29378         @echo usrlibdir='${USRLIBDIR}'
29379 libdir:
29380         @echo libdir='${LIBDIR}'
29381 _ACEOF
29382   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29383     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29384     for ac_var in incroot usrlibdir libdir; do
29385       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29386     done
29387     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29388     for ac_extension in a so sl; do
29389       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29390          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29391         ac_im_usrlibdir=$ac_im_libdir; break
29392       fi
29393     done
29394     # Screen out bogus values from the imake configuration.  They are
29395     # bogus both because they are the default anyway, and because
29396     # using them would break gcc on systems where it needs fixed includes.
29397     case $ac_im_incroot in
29398         /usr/include) ac_x_includes= ;;
29399         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29400     esac
29401     case $ac_im_usrlibdir in
29402         /usr/lib | /lib) ;;
29403         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29404     esac
29405   fi
29406   cd ..
29407   rm -f -r conftest.dir
29408 fi
29409
29410 # Standard set of common directories for X headers.
29411 # Check X11 before X11Rn because it is often a symlink to the current release.
29412 ac_x_header_dirs='
29413 /usr/X11/include
29414 /usr/X11R6/include
29415 /usr/X11R5/include
29416 /usr/X11R4/include
29417
29418 /usr/include/X11
29419 /usr/include/X11R6
29420 /usr/include/X11R5
29421 /usr/include/X11R4
29422
29423 /usr/local/X11/include
29424 /usr/local/X11R6/include
29425 /usr/local/X11R5/include
29426 /usr/local/X11R4/include
29427
29428 /usr/local/include/X11
29429 /usr/local/include/X11R6
29430 /usr/local/include/X11R5
29431 /usr/local/include/X11R4
29432
29433 /usr/X386/include
29434 /usr/x386/include
29435 /usr/XFree86/include/X11
29436
29437 /usr/include
29438 /usr/local/include
29439 /usr/unsupported/include
29440 /usr/athena/include
29441 /usr/local/x11r5/include
29442 /usr/lpp/Xamples/include
29443
29444 /usr/openwin/include
29445 /usr/openwin/share/include'
29446
29447 if test "$ac_x_includes" = no; then
29448   # Guess where to find include files, by looking for Xlib.h.
29449   # First, try using that file with no special directory specified.
29450   cat >conftest.$ac_ext <<_ACEOF
29451 /* confdefs.h.  */
29452 _ACEOF
29453 cat confdefs.h >>conftest.$ac_ext
29454 cat >>conftest.$ac_ext <<_ACEOF
29455 /* end confdefs.h.  */
29456 #include <X11/Xlib.h>
29457 _ACEOF
29458 if { (ac_try="$ac_cpp conftest.$ac_ext"
29459 case "(($ac_try" in
29460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29461   *) ac_try_echo=$ac_try;;
29462 esac
29463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29464   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29465   ac_status=$?
29466   grep -v '^ *+' conftest.er1 >conftest.err
29467   rm -f conftest.er1
29468   cat conftest.err >&5
29469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470   (exit $ac_status); } >/dev/null && {
29471          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29472          test ! -s conftest.err
29473        }; then
29474   # We can compile using X headers with no special include directory.
29475 ac_x_includes=
29476 else
29477   echo "$as_me: failed program was:" >&5
29478 sed 's/^/| /' conftest.$ac_ext >&5
29479
29480   for ac_dir in $ac_x_header_dirs; do
29481   if test -r "$ac_dir/X11/Xlib.h"; then
29482     ac_x_includes=$ac_dir
29483     break
29484   fi
29485 done
29486 fi
29487
29488 rm -f conftest.err conftest.$ac_ext
29489 fi # $ac_x_includes = no
29490
29491 if test "$ac_x_libraries" = no; then
29492   # Check for the libraries.
29493   # See if we find them without any special options.
29494   # Don't add to $LIBS permanently.
29495   ac_save_LIBS=$LIBS
29496   LIBS="-lX11 $LIBS"
29497   cat >conftest.$ac_ext <<_ACEOF
29498 /* confdefs.h.  */
29499 _ACEOF
29500 cat confdefs.h >>conftest.$ac_ext
29501 cat >>conftest.$ac_ext <<_ACEOF
29502 /* end confdefs.h.  */
29503 #include <X11/Xlib.h>
29504 int
29505 main ()
29506 {
29507 XrmInitialize ()
29508   ;
29509   return 0;
29510 }
29511 _ACEOF
29512 rm -f conftest.$ac_objext conftest$ac_exeext
29513 if { (ac_try="$ac_link"
29514 case "(($ac_try" in
29515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516   *) ac_try_echo=$ac_try;;
29517 esac
29518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29519   (eval "$ac_link") 2>conftest.er1
29520   ac_status=$?
29521   grep -v '^ *+' conftest.er1 >conftest.err
29522   rm -f conftest.er1
29523   cat conftest.err >&5
29524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525   (exit $ac_status); } && {
29526          test -z "$ac_c_werror_flag" ||
29527          test ! -s conftest.err
29528        } && test -s conftest$ac_exeext &&
29529        $as_test_x conftest$ac_exeext; then
29530   LIBS=$ac_save_LIBS
29531 # We can link X programs with no special library path.
29532 ac_x_libraries=
29533 else
29534   echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29536
29537         LIBS=$ac_save_LIBS
29538 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29539 do
29540   # Don't even attempt the hair of trying to link an X program!
29541   for ac_extension in a so sl; do
29542     if test -r "$ac_dir/libX11.$ac_extension"; then
29543       ac_x_libraries=$ac_dir
29544       break 2
29545     fi
29546   done
29547 done
29548 fi
29549
29550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29551       conftest$ac_exeext conftest.$ac_ext
29552 fi # $ac_x_libraries = no
29553
29554 case $ac_x_includes,$ac_x_libraries in #(
29555   no,* | *,no | *\'*)
29556     # Didn't find X, or a directory has "'" in its name.
29557     ac_cv_have_x="have_x=no";; #(
29558   *)
29559     # Record where we found X for the cache.
29560     ac_cv_have_x="have_x=yes\
29561         ac_x_includes='$ac_x_includes'\
29562         ac_x_libraries='$ac_x_libraries'"
29563 esac
29564 fi
29565 ;; #(
29566     *) have_x=yes;;
29567   esac
29568   eval "$ac_cv_have_x"
29569 fi # $with_x != no
29570
29571 if test "$have_x" != yes; then
29572   { echo "$as_me:$LINENO: result: $have_x" >&5
29573 echo "${ECHO_T}$have_x" >&6; }
29574   no_x=yes
29575 else
29576   # If each of the values was on the command line, it overrides each guess.
29577   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29578   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29579   # Update the cache value to reflect the command line values.
29580   ac_cv_have_x="have_x=yes\
29581         ac_x_includes='$x_includes'\
29582         ac_x_libraries='$x_libraries'"
29583   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29584 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29585 fi
29586
29587 if test "$no_x" = yes; then
29588   # Not all programs may use this symbol, but it does not hurt to define it.
29589
29590 cat >>confdefs.h <<\_ACEOF
29591 #define X_DISPLAY_MISSING 1
29592 _ACEOF
29593
29594   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29595 else
29596   if test -n "$x_includes"; then
29597     X_CFLAGS="$X_CFLAGS -I$x_includes"
29598   fi
29599
29600   # It would also be nice to do this for all -L options, not just this one.
29601   if test -n "$x_libraries"; then
29602     X_LIBS="$X_LIBS -L$x_libraries"
29603     # For Solaris; some versions of Sun CC require a space after -R and
29604     # others require no space.  Words are not sufficient . . . .
29605     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29606 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29607     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29608     ac_xsave_c_werror_flag=$ac_c_werror_flag
29609     ac_c_werror_flag=yes
29610     cat >conftest.$ac_ext <<_ACEOF
29611 /* confdefs.h.  */
29612 _ACEOF
29613 cat confdefs.h >>conftest.$ac_ext
29614 cat >>conftest.$ac_ext <<_ACEOF
29615 /* end confdefs.h.  */
29616
29617 int
29618 main ()
29619 {
29620
29621   ;
29622   return 0;
29623 }
29624 _ACEOF
29625 rm -f conftest.$ac_objext conftest$ac_exeext
29626 if { (ac_try="$ac_link"
29627 case "(($ac_try" in
29628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629   *) ac_try_echo=$ac_try;;
29630 esac
29631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29632   (eval "$ac_link") 2>conftest.er1
29633   ac_status=$?
29634   grep -v '^ *+' conftest.er1 >conftest.err
29635   rm -f conftest.er1
29636   cat conftest.err >&5
29637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638   (exit $ac_status); } && {
29639          test -z "$ac_c_werror_flag" ||
29640          test ! -s conftest.err
29641        } && test -s conftest$ac_exeext &&
29642        $as_test_x conftest$ac_exeext; then
29643   { echo "$as_me:$LINENO: result: no" >&5
29644 echo "${ECHO_T}no" >&6; }
29645        X_LIBS="$X_LIBS -R$x_libraries"
29646 else
29647   echo "$as_me: failed program was:" >&5
29648 sed 's/^/| /' conftest.$ac_ext >&5
29649
29650         LIBS="$ac_xsave_LIBS -R $x_libraries"
29651        cat >conftest.$ac_ext <<_ACEOF
29652 /* confdefs.h.  */
29653 _ACEOF
29654 cat confdefs.h >>conftest.$ac_ext
29655 cat >>conftest.$ac_ext <<_ACEOF
29656 /* end confdefs.h.  */
29657
29658 int
29659 main ()
29660 {
29661
29662   ;
29663   return 0;
29664 }
29665 _ACEOF
29666 rm -f conftest.$ac_objext conftest$ac_exeext
29667 if { (ac_try="$ac_link"
29668 case "(($ac_try" in
29669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29670   *) ac_try_echo=$ac_try;;
29671 esac
29672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29673   (eval "$ac_link") 2>conftest.er1
29674   ac_status=$?
29675   grep -v '^ *+' conftest.er1 >conftest.err
29676   rm -f conftest.er1
29677   cat conftest.err >&5
29678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679   (exit $ac_status); } && {
29680          test -z "$ac_c_werror_flag" ||
29681          test ! -s conftest.err
29682        } && test -s conftest$ac_exeext &&
29683        $as_test_x conftest$ac_exeext; then
29684   { echo "$as_me:$LINENO: result: yes" >&5
29685 echo "${ECHO_T}yes" >&6; }
29686           X_LIBS="$X_LIBS -R $x_libraries"
29687 else
29688   echo "$as_me: failed program was:" >&5
29689 sed 's/^/| /' conftest.$ac_ext >&5
29690
29691         { echo "$as_me:$LINENO: result: neither works" >&5
29692 echo "${ECHO_T}neither works" >&6; }
29693 fi
29694
29695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29696       conftest$ac_exeext conftest.$ac_ext
29697 fi
29698
29699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29700       conftest$ac_exeext conftest.$ac_ext
29701     ac_c_werror_flag=$ac_xsave_c_werror_flag
29702     LIBS=$ac_xsave_LIBS
29703   fi
29704
29705   # Check for system-dependent libraries X programs must link with.
29706   # Do this before checking for the system-independent R6 libraries
29707   # (-lICE), since we may need -lsocket or whatever for X linking.
29708
29709   if test "$ISC" = yes; then
29710     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29711   else
29712     # Martyn Johnson says this is needed for Ultrix, if the X
29713     # libraries were built with DECnet support.  And Karl Berry says
29714     # the Alpha needs dnet_stub (dnet does not exist).
29715     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29716     cat >conftest.$ac_ext <<_ACEOF
29717 /* confdefs.h.  */
29718 _ACEOF
29719 cat confdefs.h >>conftest.$ac_ext
29720 cat >>conftest.$ac_ext <<_ACEOF
29721 /* end confdefs.h.  */
29722
29723 /* Override any GCC internal prototype to avoid an error.
29724    Use char because int might match the return type of a GCC
29725    builtin and then its argument prototype would still apply.  */
29726 #ifdef __cplusplus
29727 extern "C"
29728 #endif
29729 char XOpenDisplay ();
29730 int
29731 main ()
29732 {
29733 return XOpenDisplay ();
29734   ;
29735   return 0;
29736 }
29737 _ACEOF
29738 rm -f conftest.$ac_objext conftest$ac_exeext
29739 if { (ac_try="$ac_link"
29740 case "(($ac_try" in
29741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29742   *) ac_try_echo=$ac_try;;
29743 esac
29744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29745   (eval "$ac_link") 2>conftest.er1
29746   ac_status=$?
29747   grep -v '^ *+' conftest.er1 >conftest.err
29748   rm -f conftest.er1
29749   cat conftest.err >&5
29750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751   (exit $ac_status); } && {
29752          test -z "$ac_c_werror_flag" ||
29753          test ! -s conftest.err
29754        } && test -s conftest$ac_exeext &&
29755        $as_test_x conftest$ac_exeext; then
29756   :
29757 else
29758   echo "$as_me: failed program was:" >&5
29759 sed 's/^/| /' conftest.$ac_ext >&5
29760
29761         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29762 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29763 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29764   echo $ECHO_N "(cached) $ECHO_C" >&6
29765 else
29766   ac_check_lib_save_LIBS=$LIBS
29767 LIBS="-ldnet  $LIBS"
29768 cat >conftest.$ac_ext <<_ACEOF
29769 /* confdefs.h.  */
29770 _ACEOF
29771 cat confdefs.h >>conftest.$ac_ext
29772 cat >>conftest.$ac_ext <<_ACEOF
29773 /* end confdefs.h.  */
29774
29775 /* Override any GCC internal prototype to avoid an error.
29776    Use char because int might match the return type of a GCC
29777    builtin and then its argument prototype would still apply.  */
29778 #ifdef __cplusplus
29779 extern "C"
29780 #endif
29781 char dnet_ntoa ();
29782 int
29783 main ()
29784 {
29785 return dnet_ntoa ();
29786   ;
29787   return 0;
29788 }
29789 _ACEOF
29790 rm -f conftest.$ac_objext conftest$ac_exeext
29791 if { (ac_try="$ac_link"
29792 case "(($ac_try" in
29793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29794   *) ac_try_echo=$ac_try;;
29795 esac
29796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29797   (eval "$ac_link") 2>conftest.er1
29798   ac_status=$?
29799   grep -v '^ *+' conftest.er1 >conftest.err
29800   rm -f conftest.er1
29801   cat conftest.err >&5
29802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29803   (exit $ac_status); } && {
29804          test -z "$ac_c_werror_flag" ||
29805          test ! -s conftest.err
29806        } && test -s conftest$ac_exeext &&
29807        $as_test_x conftest$ac_exeext; then
29808   ac_cv_lib_dnet_dnet_ntoa=yes
29809 else
29810   echo "$as_me: failed program was:" >&5
29811 sed 's/^/| /' conftest.$ac_ext >&5
29812
29813         ac_cv_lib_dnet_dnet_ntoa=no
29814 fi
29815
29816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29817       conftest$ac_exeext conftest.$ac_ext
29818 LIBS=$ac_check_lib_save_LIBS
29819 fi
29820 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29821 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29822 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29823   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29824 fi
29825
29826     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29827       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29828 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29829 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29830   echo $ECHO_N "(cached) $ECHO_C" >&6
29831 else
29832   ac_check_lib_save_LIBS=$LIBS
29833 LIBS="-ldnet_stub  $LIBS"
29834 cat >conftest.$ac_ext <<_ACEOF
29835 /* confdefs.h.  */
29836 _ACEOF
29837 cat confdefs.h >>conftest.$ac_ext
29838 cat >>conftest.$ac_ext <<_ACEOF
29839 /* end confdefs.h.  */
29840
29841 /* Override any GCC internal prototype to avoid an error.
29842    Use char because int might match the return type of a GCC
29843    builtin and then its argument prototype would still apply.  */
29844 #ifdef __cplusplus
29845 extern "C"
29846 #endif
29847 char dnet_ntoa ();
29848 int
29849 main ()
29850 {
29851 return dnet_ntoa ();
29852   ;
29853   return 0;
29854 }
29855 _ACEOF
29856 rm -f conftest.$ac_objext conftest$ac_exeext
29857 if { (ac_try="$ac_link"
29858 case "(($ac_try" in
29859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29860   *) ac_try_echo=$ac_try;;
29861 esac
29862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29863   (eval "$ac_link") 2>conftest.er1
29864   ac_status=$?
29865   grep -v '^ *+' conftest.er1 >conftest.err
29866   rm -f conftest.er1
29867   cat conftest.err >&5
29868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869   (exit $ac_status); } && {
29870          test -z "$ac_c_werror_flag" ||
29871          test ! -s conftest.err
29872        } && test -s conftest$ac_exeext &&
29873        $as_test_x conftest$ac_exeext; then
29874   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29875 else
29876   echo "$as_me: failed program was:" >&5
29877 sed 's/^/| /' conftest.$ac_ext >&5
29878
29879         ac_cv_lib_dnet_stub_dnet_ntoa=no
29880 fi
29881
29882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29883       conftest$ac_exeext conftest.$ac_ext
29884 LIBS=$ac_check_lib_save_LIBS
29885 fi
29886 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29887 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29888 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29889   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29890 fi
29891
29892     fi
29893 fi
29894
29895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29896       conftest$ac_exeext conftest.$ac_ext
29897     LIBS="$ac_xsave_LIBS"
29898
29899     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29900     # to get the SysV transport functions.
29901     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29902     # needs -lnsl.
29903     # The nsl library prevents programs from opening the X display
29904     # on Irix 5.2, according to T.E. Dickey.
29905     # The functions gethostbyname, getservbyname, and inet_addr are
29906     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29907     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29908 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29909 if test "${ac_cv_func_gethostbyname+set}" = set; then
29910   echo $ECHO_N "(cached) $ECHO_C" >&6
29911 else
29912   cat >conftest.$ac_ext <<_ACEOF
29913 /* confdefs.h.  */
29914 _ACEOF
29915 cat confdefs.h >>conftest.$ac_ext
29916 cat >>conftest.$ac_ext <<_ACEOF
29917 /* end confdefs.h.  */
29918 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29920 #define gethostbyname innocuous_gethostbyname
29921
29922 /* System header to define __stub macros and hopefully few prototypes,
29923     which can conflict with char gethostbyname (); below.
29924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29925     <limits.h> exists even on freestanding compilers.  */
29926
29927 #ifdef __STDC__
29928 # include <limits.h>
29929 #else
29930 # include <assert.h>
29931 #endif
29932
29933 #undef gethostbyname
29934
29935 /* Override any GCC internal prototype to avoid an error.
29936    Use char because int might match the return type of a GCC
29937    builtin and then its argument prototype would still apply.  */
29938 #ifdef __cplusplus
29939 extern "C"
29940 #endif
29941 char gethostbyname ();
29942 /* The GNU C library defines this for functions which it implements
29943     to always fail with ENOSYS.  Some functions are actually named
29944     something starting with __ and the normal name is an alias.  */
29945 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29946 choke me
29947 #endif
29948
29949 int
29950 main ()
29951 {
29952 return gethostbyname ();
29953   ;
29954   return 0;
29955 }
29956 _ACEOF
29957 rm -f conftest.$ac_objext conftest$ac_exeext
29958 if { (ac_try="$ac_link"
29959 case "(($ac_try" in
29960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29961   *) ac_try_echo=$ac_try;;
29962 esac
29963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29964   (eval "$ac_link") 2>conftest.er1
29965   ac_status=$?
29966   grep -v '^ *+' conftest.er1 >conftest.err
29967   rm -f conftest.er1
29968   cat conftest.err >&5
29969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970   (exit $ac_status); } && {
29971          test -z "$ac_c_werror_flag" ||
29972          test ! -s conftest.err
29973        } && test -s conftest$ac_exeext &&
29974        $as_test_x conftest$ac_exeext; then
29975   ac_cv_func_gethostbyname=yes
29976 else
29977   echo "$as_me: failed program was:" >&5
29978 sed 's/^/| /' conftest.$ac_ext >&5
29979
29980         ac_cv_func_gethostbyname=no
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
29986 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29987 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29988
29989     if test $ac_cv_func_gethostbyname = no; then
29990       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29991 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29992 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29993   echo $ECHO_N "(cached) $ECHO_C" >&6
29994 else
29995   ac_check_lib_save_LIBS=$LIBS
29996 LIBS="-lnsl  $LIBS"
29997 cat >conftest.$ac_ext <<_ACEOF
29998 /* confdefs.h.  */
29999 _ACEOF
30000 cat confdefs.h >>conftest.$ac_ext
30001 cat >>conftest.$ac_ext <<_ACEOF
30002 /* end confdefs.h.  */
30003
30004 /* Override any GCC internal prototype to avoid an error.
30005    Use char because int might match the return type of a GCC
30006    builtin and then its argument prototype would still apply.  */
30007 #ifdef __cplusplus
30008 extern "C"
30009 #endif
30010 char gethostbyname ();
30011 int
30012 main ()
30013 {
30014 return gethostbyname ();
30015   ;
30016   return 0;
30017 }
30018 _ACEOF
30019 rm -f conftest.$ac_objext conftest$ac_exeext
30020 if { (ac_try="$ac_link"
30021 case "(($ac_try" in
30022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30023   *) ac_try_echo=$ac_try;;
30024 esac
30025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30026   (eval "$ac_link") 2>conftest.er1
30027   ac_status=$?
30028   grep -v '^ *+' conftest.er1 >conftest.err
30029   rm -f conftest.er1
30030   cat conftest.err >&5
30031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032   (exit $ac_status); } && {
30033          test -z "$ac_c_werror_flag" ||
30034          test ! -s conftest.err
30035        } && test -s conftest$ac_exeext &&
30036        $as_test_x conftest$ac_exeext; then
30037   ac_cv_lib_nsl_gethostbyname=yes
30038 else
30039   echo "$as_me: failed program was:" >&5
30040 sed 's/^/| /' conftest.$ac_ext >&5
30041
30042         ac_cv_lib_nsl_gethostbyname=no
30043 fi
30044
30045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30046       conftest$ac_exeext conftest.$ac_ext
30047 LIBS=$ac_check_lib_save_LIBS
30048 fi
30049 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30050 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30051 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30052   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30053 fi
30054
30055       if test $ac_cv_lib_nsl_gethostbyname = no; then
30056         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30057 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30058 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30059   echo $ECHO_N "(cached) $ECHO_C" >&6
30060 else
30061   ac_check_lib_save_LIBS=$LIBS
30062 LIBS="-lbsd  $LIBS"
30063 cat >conftest.$ac_ext <<_ACEOF
30064 /* confdefs.h.  */
30065 _ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h.  */
30069
30070 /* Override any GCC internal prototype to avoid an error.
30071    Use char because int might match the return type of a GCC
30072    builtin and then its argument prototype would still apply.  */
30073 #ifdef __cplusplus
30074 extern "C"
30075 #endif
30076 char gethostbyname ();
30077 int
30078 main ()
30079 {
30080 return gethostbyname ();
30081   ;
30082   return 0;
30083 }
30084 _ACEOF
30085 rm -f conftest.$ac_objext conftest$ac_exeext
30086 if { (ac_try="$ac_link"
30087 case "(($ac_try" in
30088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30089   *) ac_try_echo=$ac_try;;
30090 esac
30091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30092   (eval "$ac_link") 2>conftest.er1
30093   ac_status=$?
30094   grep -v '^ *+' conftest.er1 >conftest.err
30095   rm -f conftest.er1
30096   cat conftest.err >&5
30097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098   (exit $ac_status); } && {
30099          test -z "$ac_c_werror_flag" ||
30100          test ! -s conftest.err
30101        } && test -s conftest$ac_exeext &&
30102        $as_test_x conftest$ac_exeext; then
30103   ac_cv_lib_bsd_gethostbyname=yes
30104 else
30105   echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30107
30108         ac_cv_lib_bsd_gethostbyname=no
30109 fi
30110
30111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30112       conftest$ac_exeext conftest.$ac_ext
30113 LIBS=$ac_check_lib_save_LIBS
30114 fi
30115 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30116 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30117 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30118   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30119 fi
30120
30121       fi
30122     fi
30123
30124     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30125     # socket/setsockopt and other routines are undefined under SCO ODT
30126     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30127     # on later versions), says Simon Leinen: it contains gethostby*
30128     # variants that don't use the name server (or something).  -lsocket
30129     # must be given before -lnsl if both are needed.  We assume that
30130     # if connect needs -lnsl, so does gethostbyname.
30131     { echo "$as_me:$LINENO: checking for connect" >&5
30132 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30133 if test "${ac_cv_func_connect+set}" = set; then
30134   echo $ECHO_N "(cached) $ECHO_C" >&6
30135 else
30136   cat >conftest.$ac_ext <<_ACEOF
30137 /* confdefs.h.  */
30138 _ACEOF
30139 cat confdefs.h >>conftest.$ac_ext
30140 cat >>conftest.$ac_ext <<_ACEOF
30141 /* end confdefs.h.  */
30142 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30144 #define connect innocuous_connect
30145
30146 /* System header to define __stub macros and hopefully few prototypes,
30147     which can conflict with char connect (); below.
30148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30149     <limits.h> exists even on freestanding compilers.  */
30150
30151 #ifdef __STDC__
30152 # include <limits.h>
30153 #else
30154 # include <assert.h>
30155 #endif
30156
30157 #undef connect
30158
30159 /* Override any GCC internal prototype to avoid an error.
30160    Use char because int might match the return type of a GCC
30161    builtin and then its argument prototype would still apply.  */
30162 #ifdef __cplusplus
30163 extern "C"
30164 #endif
30165 char connect ();
30166 /* The GNU C library defines this for functions which it implements
30167     to always fail with ENOSYS.  Some functions are actually named
30168     something starting with __ and the normal name is an alias.  */
30169 #if defined __stub_connect || defined __stub___connect
30170 choke me
30171 #endif
30172
30173 int
30174 main ()
30175 {
30176 return connect ();
30177   ;
30178   return 0;
30179 }
30180 _ACEOF
30181 rm -f conftest.$ac_objext conftest$ac_exeext
30182 if { (ac_try="$ac_link"
30183 case "(($ac_try" in
30184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30185   *) ac_try_echo=$ac_try;;
30186 esac
30187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30188   (eval "$ac_link") 2>conftest.er1
30189   ac_status=$?
30190   grep -v '^ *+' conftest.er1 >conftest.err
30191   rm -f conftest.er1
30192   cat conftest.err >&5
30193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194   (exit $ac_status); } && {
30195          test -z "$ac_c_werror_flag" ||
30196          test ! -s conftest.err
30197        } && test -s conftest$ac_exeext &&
30198        $as_test_x conftest$ac_exeext; then
30199   ac_cv_func_connect=yes
30200 else
30201   echo "$as_me: failed program was:" >&5
30202 sed 's/^/| /' conftest.$ac_ext >&5
30203
30204         ac_cv_func_connect=no
30205 fi
30206
30207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30208       conftest$ac_exeext conftest.$ac_ext
30209 fi
30210 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30211 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30212
30213     if test $ac_cv_func_connect = no; then
30214       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30215 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30216 if test "${ac_cv_lib_socket_connect+set}" = set; then
30217   echo $ECHO_N "(cached) $ECHO_C" >&6
30218 else
30219   ac_check_lib_save_LIBS=$LIBS
30220 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30221 cat >conftest.$ac_ext <<_ACEOF
30222 /* confdefs.h.  */
30223 _ACEOF
30224 cat confdefs.h >>conftest.$ac_ext
30225 cat >>conftest.$ac_ext <<_ACEOF
30226 /* end confdefs.h.  */
30227
30228 /* Override any GCC internal prototype to avoid an error.
30229    Use char because int might match the return type of a GCC
30230    builtin and then its argument prototype would still apply.  */
30231 #ifdef __cplusplus
30232 extern "C"
30233 #endif
30234 char connect ();
30235 int
30236 main ()
30237 {
30238 return connect ();
30239   ;
30240   return 0;
30241 }
30242 _ACEOF
30243 rm -f conftest.$ac_objext conftest$ac_exeext
30244 if { (ac_try="$ac_link"
30245 case "(($ac_try" in
30246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247   *) ac_try_echo=$ac_try;;
30248 esac
30249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250   (eval "$ac_link") 2>conftest.er1
30251   ac_status=$?
30252   grep -v '^ *+' conftest.er1 >conftest.err
30253   rm -f conftest.er1
30254   cat conftest.err >&5
30255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256   (exit $ac_status); } && {
30257          test -z "$ac_c_werror_flag" ||
30258          test ! -s conftest.err
30259        } && test -s conftest$ac_exeext &&
30260        $as_test_x conftest$ac_exeext; then
30261   ac_cv_lib_socket_connect=yes
30262 else
30263   echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30265
30266         ac_cv_lib_socket_connect=no
30267 fi
30268
30269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30270       conftest$ac_exeext conftest.$ac_ext
30271 LIBS=$ac_check_lib_save_LIBS
30272 fi
30273 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30274 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30275 if test $ac_cv_lib_socket_connect = yes; then
30276   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30277 fi
30278
30279     fi
30280
30281     # Guillermo Gomez says -lposix is necessary on A/UX.
30282     { echo "$as_me:$LINENO: checking for remove" >&5
30283 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30284 if test "${ac_cv_func_remove+set}" = set; then
30285   echo $ECHO_N "(cached) $ECHO_C" >&6
30286 else
30287   cat >conftest.$ac_ext <<_ACEOF
30288 /* confdefs.h.  */
30289 _ACEOF
30290 cat confdefs.h >>conftest.$ac_ext
30291 cat >>conftest.$ac_ext <<_ACEOF
30292 /* end confdefs.h.  */
30293 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30295 #define remove innocuous_remove
30296
30297 /* System header to define __stub macros and hopefully few prototypes,
30298     which can conflict with char remove (); below.
30299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30300     <limits.h> exists even on freestanding compilers.  */
30301
30302 #ifdef __STDC__
30303 # include <limits.h>
30304 #else
30305 # include <assert.h>
30306 #endif
30307
30308 #undef remove
30309
30310 /* Override any GCC internal prototype to avoid an error.
30311    Use char because int might match the return type of a GCC
30312    builtin and then its argument prototype would still apply.  */
30313 #ifdef __cplusplus
30314 extern "C"
30315 #endif
30316 char remove ();
30317 /* The GNU C library defines this for functions which it implements
30318     to always fail with ENOSYS.  Some functions are actually named
30319     something starting with __ and the normal name is an alias.  */
30320 #if defined __stub_remove || defined __stub___remove
30321 choke me
30322 #endif
30323
30324 int
30325 main ()
30326 {
30327 return remove ();
30328   ;
30329   return 0;
30330 }
30331 _ACEOF
30332 rm -f conftest.$ac_objext conftest$ac_exeext
30333 if { (ac_try="$ac_link"
30334 case "(($ac_try" in
30335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30336   *) ac_try_echo=$ac_try;;
30337 esac
30338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30339   (eval "$ac_link") 2>conftest.er1
30340   ac_status=$?
30341   grep -v '^ *+' conftest.er1 >conftest.err
30342   rm -f conftest.er1
30343   cat conftest.err >&5
30344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345   (exit $ac_status); } && {
30346          test -z "$ac_c_werror_flag" ||
30347          test ! -s conftest.err
30348        } && test -s conftest$ac_exeext &&
30349        $as_test_x conftest$ac_exeext; then
30350   ac_cv_func_remove=yes
30351 else
30352   echo "$as_me: failed program was:" >&5
30353 sed 's/^/| /' conftest.$ac_ext >&5
30354
30355         ac_cv_func_remove=no
30356 fi
30357
30358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30359       conftest$ac_exeext conftest.$ac_ext
30360 fi
30361 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30362 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30363
30364     if test $ac_cv_func_remove = no; then
30365       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30366 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30367 if test "${ac_cv_lib_posix_remove+set}" = set; then
30368   echo $ECHO_N "(cached) $ECHO_C" >&6
30369 else
30370   ac_check_lib_save_LIBS=$LIBS
30371 LIBS="-lposix  $LIBS"
30372 cat >conftest.$ac_ext <<_ACEOF
30373 /* confdefs.h.  */
30374 _ACEOF
30375 cat confdefs.h >>conftest.$ac_ext
30376 cat >>conftest.$ac_ext <<_ACEOF
30377 /* end confdefs.h.  */
30378
30379 /* Override any GCC internal prototype to avoid an error.
30380    Use char because int might match the return type of a GCC
30381    builtin and then its argument prototype would still apply.  */
30382 #ifdef __cplusplus
30383 extern "C"
30384 #endif
30385 char remove ();
30386 int
30387 main ()
30388 {
30389 return remove ();
30390   ;
30391   return 0;
30392 }
30393 _ACEOF
30394 rm -f conftest.$ac_objext conftest$ac_exeext
30395 if { (ac_try="$ac_link"
30396 case "(($ac_try" in
30397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30398   *) ac_try_echo=$ac_try;;
30399 esac
30400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30401   (eval "$ac_link") 2>conftest.er1
30402   ac_status=$?
30403   grep -v '^ *+' conftest.er1 >conftest.err
30404   rm -f conftest.er1
30405   cat conftest.err >&5
30406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30407   (exit $ac_status); } && {
30408          test -z "$ac_c_werror_flag" ||
30409          test ! -s conftest.err
30410        } && test -s conftest$ac_exeext &&
30411        $as_test_x conftest$ac_exeext; then
30412   ac_cv_lib_posix_remove=yes
30413 else
30414   echo "$as_me: failed program was:" >&5
30415 sed 's/^/| /' conftest.$ac_ext >&5
30416
30417         ac_cv_lib_posix_remove=no
30418 fi
30419
30420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30421       conftest$ac_exeext conftest.$ac_ext
30422 LIBS=$ac_check_lib_save_LIBS
30423 fi
30424 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30425 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30426 if test $ac_cv_lib_posix_remove = yes; then
30427   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30428 fi
30429
30430     fi
30431
30432     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30433     { echo "$as_me:$LINENO: checking for shmat" >&5
30434 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30435 if test "${ac_cv_func_shmat+set}" = set; then
30436   echo $ECHO_N "(cached) $ECHO_C" >&6
30437 else
30438   cat >conftest.$ac_ext <<_ACEOF
30439 /* confdefs.h.  */
30440 _ACEOF
30441 cat confdefs.h >>conftest.$ac_ext
30442 cat >>conftest.$ac_ext <<_ACEOF
30443 /* end confdefs.h.  */
30444 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30446 #define shmat innocuous_shmat
30447
30448 /* System header to define __stub macros and hopefully few prototypes,
30449     which can conflict with char shmat (); below.
30450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30451     <limits.h> exists even on freestanding compilers.  */
30452
30453 #ifdef __STDC__
30454 # include <limits.h>
30455 #else
30456 # include <assert.h>
30457 #endif
30458
30459 #undef shmat
30460
30461 /* Override any GCC internal prototype to avoid an error.
30462    Use char because int might match the return type of a GCC
30463    builtin and then its argument prototype would still apply.  */
30464 #ifdef __cplusplus
30465 extern "C"
30466 #endif
30467 char shmat ();
30468 /* The GNU C library defines this for functions which it implements
30469     to always fail with ENOSYS.  Some functions are actually named
30470     something starting with __ and the normal name is an alias.  */
30471 #if defined __stub_shmat || defined __stub___shmat
30472 choke me
30473 #endif
30474
30475 int
30476 main ()
30477 {
30478 return shmat ();
30479   ;
30480   return 0;
30481 }
30482 _ACEOF
30483 rm -f conftest.$ac_objext conftest$ac_exeext
30484 if { (ac_try="$ac_link"
30485 case "(($ac_try" in
30486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30487   *) ac_try_echo=$ac_try;;
30488 esac
30489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30490   (eval "$ac_link") 2>conftest.er1
30491   ac_status=$?
30492   grep -v '^ *+' conftest.er1 >conftest.err
30493   rm -f conftest.er1
30494   cat conftest.err >&5
30495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496   (exit $ac_status); } && {
30497          test -z "$ac_c_werror_flag" ||
30498          test ! -s conftest.err
30499        } && test -s conftest$ac_exeext &&
30500        $as_test_x conftest$ac_exeext; then
30501   ac_cv_func_shmat=yes
30502 else
30503   echo "$as_me: failed program was:" >&5
30504 sed 's/^/| /' conftest.$ac_ext >&5
30505
30506         ac_cv_func_shmat=no
30507 fi
30508
30509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30510       conftest$ac_exeext conftest.$ac_ext
30511 fi
30512 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30513 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30514
30515     if test $ac_cv_func_shmat = no; then
30516       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30517 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30518 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30519   echo $ECHO_N "(cached) $ECHO_C" >&6
30520 else
30521   ac_check_lib_save_LIBS=$LIBS
30522 LIBS="-lipc  $LIBS"
30523 cat >conftest.$ac_ext <<_ACEOF
30524 /* confdefs.h.  */
30525 _ACEOF
30526 cat confdefs.h >>conftest.$ac_ext
30527 cat >>conftest.$ac_ext <<_ACEOF
30528 /* end confdefs.h.  */
30529
30530 /* Override any GCC internal prototype to avoid an error.
30531    Use char because int might match the return type of a GCC
30532    builtin and then its argument prototype would still apply.  */
30533 #ifdef __cplusplus
30534 extern "C"
30535 #endif
30536 char shmat ();
30537 int
30538 main ()
30539 {
30540 return shmat ();
30541   ;
30542   return 0;
30543 }
30544 _ACEOF
30545 rm -f conftest.$ac_objext conftest$ac_exeext
30546 if { (ac_try="$ac_link"
30547 case "(($ac_try" in
30548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30549   *) ac_try_echo=$ac_try;;
30550 esac
30551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30552   (eval "$ac_link") 2>conftest.er1
30553   ac_status=$?
30554   grep -v '^ *+' conftest.er1 >conftest.err
30555   rm -f conftest.er1
30556   cat conftest.err >&5
30557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558   (exit $ac_status); } && {
30559          test -z "$ac_c_werror_flag" ||
30560          test ! -s conftest.err
30561        } && test -s conftest$ac_exeext &&
30562        $as_test_x conftest$ac_exeext; then
30563   ac_cv_lib_ipc_shmat=yes
30564 else
30565   echo "$as_me: failed program was:" >&5
30566 sed 's/^/| /' conftest.$ac_ext >&5
30567
30568         ac_cv_lib_ipc_shmat=no
30569 fi
30570
30571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30572       conftest$ac_exeext conftest.$ac_ext
30573 LIBS=$ac_check_lib_save_LIBS
30574 fi
30575 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30576 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30577 if test $ac_cv_lib_ipc_shmat = yes; then
30578   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30579 fi
30580
30581     fi
30582   fi
30583
30584   # Check for libraries that X11R6 Xt/Xaw programs need.
30585   ac_save_LDFLAGS=$LDFLAGS
30586   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30587   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30588   # check for ICE first), but we must link in the order -lSM -lICE or
30589   # we get undefined symbols.  So assume we have SM if we have ICE.
30590   # These have to be linked with before -lX11, unlike the other
30591   # libraries we check for below, so use a different variable.
30592   # John Interrante, Karl Berry
30593   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30594 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30595 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30596   echo $ECHO_N "(cached) $ECHO_C" >&6
30597 else
30598   ac_check_lib_save_LIBS=$LIBS
30599 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30600 cat >conftest.$ac_ext <<_ACEOF
30601 /* confdefs.h.  */
30602 _ACEOF
30603 cat confdefs.h >>conftest.$ac_ext
30604 cat >>conftest.$ac_ext <<_ACEOF
30605 /* end confdefs.h.  */
30606
30607 /* Override any GCC internal prototype to avoid an error.
30608    Use char because int might match the return type of a GCC
30609    builtin and then its argument prototype would still apply.  */
30610 #ifdef __cplusplus
30611 extern "C"
30612 #endif
30613 char IceConnectionNumber ();
30614 int
30615 main ()
30616 {
30617 return IceConnectionNumber ();
30618   ;
30619   return 0;
30620 }
30621 _ACEOF
30622 rm -f conftest.$ac_objext conftest$ac_exeext
30623 if { (ac_try="$ac_link"
30624 case "(($ac_try" in
30625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30626   *) ac_try_echo=$ac_try;;
30627 esac
30628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30629   (eval "$ac_link") 2>conftest.er1
30630   ac_status=$?
30631   grep -v '^ *+' conftest.er1 >conftest.err
30632   rm -f conftest.er1
30633   cat conftest.err >&5
30634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635   (exit $ac_status); } && {
30636          test -z "$ac_c_werror_flag" ||
30637          test ! -s conftest.err
30638        } && test -s conftest$ac_exeext &&
30639        $as_test_x conftest$ac_exeext; then
30640   ac_cv_lib_ICE_IceConnectionNumber=yes
30641 else
30642   echo "$as_me: failed program was:" >&5
30643 sed 's/^/| /' conftest.$ac_ext >&5
30644
30645         ac_cv_lib_ICE_IceConnectionNumber=no
30646 fi
30647
30648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30649       conftest$ac_exeext conftest.$ac_ext
30650 LIBS=$ac_check_lib_save_LIBS
30651 fi
30652 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30653 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30654 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30655   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30656 fi
30657
30658   LDFLAGS=$ac_save_LDFLAGS
30659
30660 fi
30661
30662
30663
30664
30665
30666
30667
30668
30669
30670
30671
30672
30673
30674
30675
30676
30677
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692 for ac_header in \
30693    assert.h \
30694    fcntl.h \
30695    grp.h \
30696    pwd.h \
30697    libc.h \
30698    limits.h \
30699    stdarg.h \
30700    stdlib.h \
30701    stdint.h \
30702    string.h \
30703    strings.h \
30704    termios.h \
30705    termcap.h \
30706    term.h \
30707    unistd.h \
30708    sys/bitypes.h \
30709    sys/byteorder.h \
30710    sys/ioctl.h \
30711    sys/select.h \
30712    sys/socket.h \
30713    sys/sockio.h \
30714    sys/stat.h \
30715    sys/time.h \
30716    sys/types.h \
30717    arpa/nameser.h \
30718    mtio.h \
30719    sys/mtio.h \
30720    sys/tape.h \
30721    regex.h \
30722
30723 do
30724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30726   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30729   echo $ECHO_N "(cached) $ECHO_C" >&6
30730 fi
30731 ac_res=`eval echo '${'$as_ac_Header'}'`
30732                { echo "$as_me:$LINENO: result: $ac_res" >&5
30733 echo "${ECHO_T}$ac_res" >&6; }
30734 else
30735   # Is the header compilable?
30736 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30738 cat >conftest.$ac_ext <<_ACEOF
30739 /* confdefs.h.  */
30740 _ACEOF
30741 cat confdefs.h >>conftest.$ac_ext
30742 cat >>conftest.$ac_ext <<_ACEOF
30743 /* end confdefs.h.  */
30744 $ac_includes_default
30745 #include <$ac_header>
30746 _ACEOF
30747 rm -f conftest.$ac_objext
30748 if { (ac_try="$ac_compile"
30749 case "(($ac_try" in
30750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30751   *) ac_try_echo=$ac_try;;
30752 esac
30753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30754   (eval "$ac_compile") 2>conftest.er1
30755   ac_status=$?
30756   grep -v '^ *+' conftest.er1 >conftest.err
30757   rm -f conftest.er1
30758   cat conftest.err >&5
30759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760   (exit $ac_status); } && {
30761          test -z "$ac_c_werror_flag" ||
30762          test ! -s conftest.err
30763        } && test -s conftest.$ac_objext; then
30764   ac_header_compiler=yes
30765 else
30766   echo "$as_me: failed program was:" >&5
30767 sed 's/^/| /' conftest.$ac_ext >&5
30768
30769         ac_header_compiler=no
30770 fi
30771
30772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30774 echo "${ECHO_T}$ac_header_compiler" >&6; }
30775
30776 # Is the header present?
30777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30779 cat >conftest.$ac_ext <<_ACEOF
30780 /* confdefs.h.  */
30781 _ACEOF
30782 cat confdefs.h >>conftest.$ac_ext
30783 cat >>conftest.$ac_ext <<_ACEOF
30784 /* end confdefs.h.  */
30785 #include <$ac_header>
30786 _ACEOF
30787 if { (ac_try="$ac_cpp conftest.$ac_ext"
30788 case "(($ac_try" in
30789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30790   *) ac_try_echo=$ac_try;;
30791 esac
30792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30794   ac_status=$?
30795   grep -v '^ *+' conftest.er1 >conftest.err
30796   rm -f conftest.er1
30797   cat conftest.err >&5
30798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799   (exit $ac_status); } >/dev/null && {
30800          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30801          test ! -s conftest.err
30802        }; then
30803   ac_header_preproc=yes
30804 else
30805   echo "$as_me: failed program was:" >&5
30806 sed 's/^/| /' conftest.$ac_ext >&5
30807
30808   ac_header_preproc=no
30809 fi
30810
30811 rm -f conftest.err conftest.$ac_ext
30812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30813 echo "${ECHO_T}$ac_header_preproc" >&6; }
30814
30815 # So?  What about this header?
30816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30817   yes:no: )
30818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30822     ac_header_preproc=yes
30823     ;;
30824   no:yes:* )
30825     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30827     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30828 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30829     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30831     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30832 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30835     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30837
30838     ;;
30839 esac
30840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30843   echo $ECHO_N "(cached) $ECHO_C" >&6
30844 else
30845   eval "$as_ac_Header=\$ac_header_preproc"
30846 fi
30847 ac_res=`eval echo '${'$as_ac_Header'}'`
30848                { echo "$as_me:$LINENO: result: $ac_res" >&5
30849 echo "${ECHO_T}$ac_res" >&6; }
30850
30851 fi
30852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30853   cat >>confdefs.h <<_ACEOF
30854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30855 _ACEOF
30856
30857 fi
30858
30859 done
30860
30861 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30862 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30863 if test "${ac_cv_header_stdc+set}" = set; then
30864   echo $ECHO_N "(cached) $ECHO_C" >&6
30865 else
30866   cat >conftest.$ac_ext <<_ACEOF
30867 /* confdefs.h.  */
30868 _ACEOF
30869 cat confdefs.h >>conftest.$ac_ext
30870 cat >>conftest.$ac_ext <<_ACEOF
30871 /* end confdefs.h.  */
30872 #include <stdlib.h>
30873 #include <stdarg.h>
30874 #include <string.h>
30875 #include <float.h>
30876
30877 int
30878 main ()
30879 {
30880
30881   ;
30882   return 0;
30883 }
30884 _ACEOF
30885 rm -f conftest.$ac_objext
30886 if { (ac_try="$ac_compile"
30887 case "(($ac_try" in
30888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30889   *) ac_try_echo=$ac_try;;
30890 esac
30891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30892   (eval "$ac_compile") 2>conftest.er1
30893   ac_status=$?
30894   grep -v '^ *+' conftest.er1 >conftest.err
30895   rm -f conftest.er1
30896   cat conftest.err >&5
30897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898   (exit $ac_status); } && {
30899          test -z "$ac_c_werror_flag" ||
30900          test ! -s conftest.err
30901        } && test -s conftest.$ac_objext; then
30902   ac_cv_header_stdc=yes
30903 else
30904   echo "$as_me: failed program was:" >&5
30905 sed 's/^/| /' conftest.$ac_ext >&5
30906
30907         ac_cv_header_stdc=no
30908 fi
30909
30910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30911
30912 if test $ac_cv_header_stdc = yes; then
30913   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30914   cat >conftest.$ac_ext <<_ACEOF
30915 /* confdefs.h.  */
30916 _ACEOF
30917 cat confdefs.h >>conftest.$ac_ext
30918 cat >>conftest.$ac_ext <<_ACEOF
30919 /* end confdefs.h.  */
30920 #include <string.h>
30921
30922 _ACEOF
30923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30924   $EGREP "memchr" >/dev/null 2>&1; then
30925   :
30926 else
30927   ac_cv_header_stdc=no
30928 fi
30929 rm -f conftest*
30930
30931 fi
30932
30933 if test $ac_cv_header_stdc = yes; then
30934   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30935   cat >conftest.$ac_ext <<_ACEOF
30936 /* confdefs.h.  */
30937 _ACEOF
30938 cat confdefs.h >>conftest.$ac_ext
30939 cat >>conftest.$ac_ext <<_ACEOF
30940 /* end confdefs.h.  */
30941 #include <stdlib.h>
30942
30943 _ACEOF
30944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30945   $EGREP "free" >/dev/null 2>&1; then
30946   :
30947 else
30948   ac_cv_header_stdc=no
30949 fi
30950 rm -f conftest*
30951
30952 fi
30953
30954 if test $ac_cv_header_stdc = yes; then
30955   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30956   if test "$cross_compiling" = yes; then
30957   :
30958 else
30959   cat >conftest.$ac_ext <<_ACEOF
30960 /* confdefs.h.  */
30961 _ACEOF
30962 cat confdefs.h >>conftest.$ac_ext
30963 cat >>conftest.$ac_ext <<_ACEOF
30964 /* end confdefs.h.  */
30965 #include <ctype.h>
30966 #include <stdlib.h>
30967 #if ((' ' & 0x0FF) == 0x020)
30968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30970 #else
30971 # define ISLOWER(c) \
30972                    (('a' <= (c) && (c) <= 'i') \
30973                      || ('j' <= (c) && (c) <= 'r') \
30974                      || ('s' <= (c) && (c) <= 'z'))
30975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30976 #endif
30977
30978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30979 int
30980 main ()
30981 {
30982   int i;
30983   for (i = 0; i < 256; i++)
30984     if (XOR (islower (i), ISLOWER (i))
30985         || toupper (i) != TOUPPER (i))
30986       return 2;
30987   return 0;
30988 }
30989 _ACEOF
30990 rm -f conftest$ac_exeext
30991 if { (ac_try="$ac_link"
30992 case "(($ac_try" in
30993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30994   *) ac_try_echo=$ac_try;;
30995 esac
30996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30997   (eval "$ac_link") 2>&5
30998   ac_status=$?
30999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31001   { (case "(($ac_try" in
31002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31003   *) ac_try_echo=$ac_try;;
31004 esac
31005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31006   (eval "$ac_try") 2>&5
31007   ac_status=$?
31008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009   (exit $ac_status); }; }; then
31010   :
31011 else
31012   echo "$as_me: program exited with status $ac_status" >&5
31013 echo "$as_me: failed program was:" >&5
31014 sed 's/^/| /' conftest.$ac_ext >&5
31015
31016 ( exit $ac_status )
31017 ac_cv_header_stdc=no
31018 fi
31019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31020 fi
31021
31022
31023 fi
31024 fi
31025 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31026 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31027 if test $ac_cv_header_stdc = yes; then
31028
31029 cat >>confdefs.h <<\_ACEOF
31030 #define STDC_HEADERS 1
31031 _ACEOF
31032
31033 fi
31034
31035 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31036 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31037 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31038   echo $ECHO_N "(cached) $ECHO_C" >&6
31039 else
31040   cat >conftest.$ac_ext <<_ACEOF
31041 /* confdefs.h.  */
31042 _ACEOF
31043 cat confdefs.h >>conftest.$ac_ext
31044 cat >>conftest.$ac_ext <<_ACEOF
31045 /* end confdefs.h.  */
31046 #include <sys/types.h>
31047 int
31048 main ()
31049 {
31050 return makedev(0, 0);
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_header_sys_types_h_makedev=yes
31074 else
31075   echo "$as_me: failed program was:" >&5
31076 sed 's/^/| /' conftest.$ac_ext >&5
31077
31078         ac_cv_header_sys_types_h_makedev=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
31084 fi
31085 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31086 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31087
31088 if test $ac_cv_header_sys_types_h_makedev = no; then
31089 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31090   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31091 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31092 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31093   echo $ECHO_N "(cached) $ECHO_C" >&6
31094 fi
31095 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31096 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31097 else
31098   # Is the header compilable?
31099 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31100 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31101 cat >conftest.$ac_ext <<_ACEOF
31102 /* confdefs.h.  */
31103 _ACEOF
31104 cat confdefs.h >>conftest.$ac_ext
31105 cat >>conftest.$ac_ext <<_ACEOF
31106 /* end confdefs.h.  */
31107 $ac_includes_default
31108 #include <sys/mkdev.h>
31109 _ACEOF
31110 rm -f conftest.$ac_objext
31111 if { (ac_try="$ac_compile"
31112 case "(($ac_try" in
31113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31114   *) ac_try_echo=$ac_try;;
31115 esac
31116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31117   (eval "$ac_compile") 2>conftest.er1
31118   ac_status=$?
31119   grep -v '^ *+' conftest.er1 >conftest.err
31120   rm -f conftest.er1
31121   cat conftest.err >&5
31122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31123   (exit $ac_status); } && {
31124          test -z "$ac_c_werror_flag" ||
31125          test ! -s conftest.err
31126        } && test -s conftest.$ac_objext; then
31127   ac_header_compiler=yes
31128 else
31129   echo "$as_me: failed program was:" >&5
31130 sed 's/^/| /' conftest.$ac_ext >&5
31131
31132         ac_header_compiler=no
31133 fi
31134
31135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31137 echo "${ECHO_T}$ac_header_compiler" >&6; }
31138
31139 # Is the header present?
31140 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31141 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31142 cat >conftest.$ac_ext <<_ACEOF
31143 /* confdefs.h.  */
31144 _ACEOF
31145 cat confdefs.h >>conftest.$ac_ext
31146 cat >>conftest.$ac_ext <<_ACEOF
31147 /* end confdefs.h.  */
31148 #include <sys/mkdev.h>
31149 _ACEOF
31150 if { (ac_try="$ac_cpp conftest.$ac_ext"
31151 case "(($ac_try" in
31152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31153   *) ac_try_echo=$ac_try;;
31154 esac
31155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31156   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31157   ac_status=$?
31158   grep -v '^ *+' conftest.er1 >conftest.err
31159   rm -f conftest.er1
31160   cat conftest.err >&5
31161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31162   (exit $ac_status); } >/dev/null && {
31163          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31164          test ! -s conftest.err
31165        }; then
31166   ac_header_preproc=yes
31167 else
31168   echo "$as_me: failed program was:" >&5
31169 sed 's/^/| /' conftest.$ac_ext >&5
31170
31171   ac_header_preproc=no
31172 fi
31173
31174 rm -f conftest.err conftest.$ac_ext
31175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31176 echo "${ECHO_T}$ac_header_preproc" >&6; }
31177
31178 # So?  What about this header?
31179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31180   yes:no: )
31181     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31182 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31183     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31184 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31185     ac_header_preproc=yes
31186     ;;
31187   no:yes:* )
31188     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31189 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31190     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31191 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31192     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31193 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31194     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31195 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31196     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31197 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31198     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31199 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31200
31201     ;;
31202 esac
31203 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31204 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31205 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31206   echo $ECHO_N "(cached) $ECHO_C" >&6
31207 else
31208   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31209 fi
31210 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31211 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31212
31213 fi
31214 if test $ac_cv_header_sys_mkdev_h = yes; then
31215
31216 cat >>confdefs.h <<\_ACEOF
31217 #define MAJOR_IN_MKDEV 1
31218 _ACEOF
31219
31220 fi
31221
31222
31223
31224   if test $ac_cv_header_sys_mkdev_h = no; then
31225     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31226   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31227 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31228 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31229   echo $ECHO_N "(cached) $ECHO_C" >&6
31230 fi
31231 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31232 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31233 else
31234   # Is the header compilable?
31235 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31236 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31237 cat >conftest.$ac_ext <<_ACEOF
31238 /* confdefs.h.  */
31239 _ACEOF
31240 cat confdefs.h >>conftest.$ac_ext
31241 cat >>conftest.$ac_ext <<_ACEOF
31242 /* end confdefs.h.  */
31243 $ac_includes_default
31244 #include <sys/sysmacros.h>
31245 _ACEOF
31246 rm -f conftest.$ac_objext
31247 if { (ac_try="$ac_compile"
31248 case "(($ac_try" in
31249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31250   *) ac_try_echo=$ac_try;;
31251 esac
31252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31253   (eval "$ac_compile") 2>conftest.er1
31254   ac_status=$?
31255   grep -v '^ *+' conftest.er1 >conftest.err
31256   rm -f conftest.er1
31257   cat conftest.err >&5
31258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259   (exit $ac_status); } && {
31260          test -z "$ac_c_werror_flag" ||
31261          test ! -s conftest.err
31262        } && test -s conftest.$ac_objext; then
31263   ac_header_compiler=yes
31264 else
31265   echo "$as_me: failed program was:" >&5
31266 sed 's/^/| /' conftest.$ac_ext >&5
31267
31268         ac_header_compiler=no
31269 fi
31270
31271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31273 echo "${ECHO_T}$ac_header_compiler" >&6; }
31274
31275 # Is the header present?
31276 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31277 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31278 cat >conftest.$ac_ext <<_ACEOF
31279 /* confdefs.h.  */
31280 _ACEOF
31281 cat confdefs.h >>conftest.$ac_ext
31282 cat >>conftest.$ac_ext <<_ACEOF
31283 /* end confdefs.h.  */
31284 #include <sys/sysmacros.h>
31285 _ACEOF
31286 if { (ac_try="$ac_cpp conftest.$ac_ext"
31287 case "(($ac_try" in
31288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289   *) ac_try_echo=$ac_try;;
31290 esac
31291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31293   ac_status=$?
31294   grep -v '^ *+' conftest.er1 >conftest.err
31295   rm -f conftest.er1
31296   cat conftest.err >&5
31297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298   (exit $ac_status); } >/dev/null && {
31299          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31300          test ! -s conftest.err
31301        }; then
31302   ac_header_preproc=yes
31303 else
31304   echo "$as_me: failed program was:" >&5
31305 sed 's/^/| /' conftest.$ac_ext >&5
31306
31307   ac_header_preproc=no
31308 fi
31309
31310 rm -f conftest.err conftest.$ac_ext
31311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31312 echo "${ECHO_T}$ac_header_preproc" >&6; }
31313
31314 # So?  What about this header?
31315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31316   yes:no: )
31317     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31318 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31319     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31320 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31321     ac_header_preproc=yes
31322     ;;
31323   no:yes:* )
31324     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31325 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31326     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31327 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31328     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31329 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31330     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31331 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31332     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31333 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31334     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31335 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31336
31337     ;;
31338 esac
31339 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31340 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31341 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31342   echo $ECHO_N "(cached) $ECHO_C" >&6
31343 else
31344   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31345 fi
31346 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31347 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31348
31349 fi
31350 if test $ac_cv_header_sys_sysmacros_h = yes; then
31351
31352 cat >>confdefs.h <<\_ACEOF
31353 #define MAJOR_IN_SYSMACROS 1
31354 _ACEOF
31355
31356 fi
31357
31358
31359   fi
31360 fi
31361
31362
31363
31364
31365
31366
31367 ac_header_dirent=no
31368 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31369   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31370 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31371 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31373   echo $ECHO_N "(cached) $ECHO_C" >&6
31374 else
31375   cat >conftest.$ac_ext <<_ACEOF
31376 /* confdefs.h.  */
31377 _ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h.  */
31381 #include <sys/types.h>
31382 #include <$ac_hdr>
31383
31384 int
31385 main ()
31386 {
31387 if ((DIR *) 0)
31388 return 0;
31389   ;
31390   return 0;
31391 }
31392 _ACEOF
31393 rm -f conftest.$ac_objext
31394 if { (ac_try="$ac_compile"
31395 case "(($ac_try" in
31396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31397   *) ac_try_echo=$ac_try;;
31398 esac
31399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31400   (eval "$ac_compile") 2>conftest.er1
31401   ac_status=$?
31402   grep -v '^ *+' conftest.er1 >conftest.err
31403   rm -f conftest.er1
31404   cat conftest.err >&5
31405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406   (exit $ac_status); } && {
31407          test -z "$ac_c_werror_flag" ||
31408          test ! -s conftest.err
31409        } && test -s conftest.$ac_objext; then
31410   eval "$as_ac_Header=yes"
31411 else
31412   echo "$as_me: failed program was:" >&5
31413 sed 's/^/| /' conftest.$ac_ext >&5
31414
31415         eval "$as_ac_Header=no"
31416 fi
31417
31418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31419 fi
31420 ac_res=`eval echo '${'$as_ac_Header'}'`
31421                { echo "$as_me:$LINENO: result: $ac_res" >&5
31422 echo "${ECHO_T}$ac_res" >&6; }
31423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31424   cat >>confdefs.h <<_ACEOF
31425 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31426 _ACEOF
31427
31428 ac_header_dirent=$ac_hdr; break
31429 fi
31430
31431 done
31432 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31433 if test $ac_header_dirent = dirent.h; then
31434   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31435 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31436 if test "${ac_cv_search_opendir+set}" = set; then
31437   echo $ECHO_N "(cached) $ECHO_C" >&6
31438 else
31439   ac_func_search_save_LIBS=$LIBS
31440 cat >conftest.$ac_ext <<_ACEOF
31441 /* confdefs.h.  */
31442 _ACEOF
31443 cat confdefs.h >>conftest.$ac_ext
31444 cat >>conftest.$ac_ext <<_ACEOF
31445 /* end confdefs.h.  */
31446
31447 /* Override any GCC internal prototype to avoid an error.
31448    Use char because int might match the return type of a GCC
31449    builtin and then its argument prototype would still apply.  */
31450 #ifdef __cplusplus
31451 extern "C"
31452 #endif
31453 char opendir ();
31454 int
31455 main ()
31456 {
31457 return opendir ();
31458   ;
31459   return 0;
31460 }
31461 _ACEOF
31462 for ac_lib in '' dir; do
31463   if test -z "$ac_lib"; then
31464     ac_res="none required"
31465   else
31466     ac_res=-l$ac_lib
31467     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31468   fi
31469   rm -f conftest.$ac_objext conftest$ac_exeext
31470 if { (ac_try="$ac_link"
31471 case "(($ac_try" in
31472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31473   *) ac_try_echo=$ac_try;;
31474 esac
31475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31476   (eval "$ac_link") 2>conftest.er1
31477   ac_status=$?
31478   grep -v '^ *+' conftest.er1 >conftest.err
31479   rm -f conftest.er1
31480   cat conftest.err >&5
31481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482   (exit $ac_status); } && {
31483          test -z "$ac_c_werror_flag" ||
31484          test ! -s conftest.err
31485        } && test -s conftest$ac_exeext &&
31486        $as_test_x conftest$ac_exeext; then
31487   ac_cv_search_opendir=$ac_res
31488 else
31489   echo "$as_me: failed program was:" >&5
31490 sed 's/^/| /' conftest.$ac_ext >&5
31491
31492
31493 fi
31494
31495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31496       conftest$ac_exeext
31497   if test "${ac_cv_search_opendir+set}" = set; then
31498   break
31499 fi
31500 done
31501 if test "${ac_cv_search_opendir+set}" = set; then
31502   :
31503 else
31504   ac_cv_search_opendir=no
31505 fi
31506 rm conftest.$ac_ext
31507 LIBS=$ac_func_search_save_LIBS
31508 fi
31509 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31510 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31511 ac_res=$ac_cv_search_opendir
31512 if test "$ac_res" != no; then
31513   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31514
31515 fi
31516
31517 else
31518   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31519 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31520 if test "${ac_cv_search_opendir+set}" = set; then
31521   echo $ECHO_N "(cached) $ECHO_C" >&6
31522 else
31523   ac_func_search_save_LIBS=$LIBS
31524 cat >conftest.$ac_ext <<_ACEOF
31525 /* confdefs.h.  */
31526 _ACEOF
31527 cat confdefs.h >>conftest.$ac_ext
31528 cat >>conftest.$ac_ext <<_ACEOF
31529 /* end confdefs.h.  */
31530
31531 /* Override any GCC internal prototype to avoid an error.
31532    Use char because int might match the return type of a GCC
31533    builtin and then its argument prototype would still apply.  */
31534 #ifdef __cplusplus
31535 extern "C"
31536 #endif
31537 char opendir ();
31538 int
31539 main ()
31540 {
31541 return opendir ();
31542   ;
31543   return 0;
31544 }
31545 _ACEOF
31546 for ac_lib in '' x; do
31547   if test -z "$ac_lib"; then
31548     ac_res="none required"
31549   else
31550     ac_res=-l$ac_lib
31551     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31552   fi
31553   rm -f conftest.$ac_objext conftest$ac_exeext
31554 if { (ac_try="$ac_link"
31555 case "(($ac_try" in
31556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31557   *) ac_try_echo=$ac_try;;
31558 esac
31559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31560   (eval "$ac_link") 2>conftest.er1
31561   ac_status=$?
31562   grep -v '^ *+' conftest.er1 >conftest.err
31563   rm -f conftest.er1
31564   cat conftest.err >&5
31565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566   (exit $ac_status); } && {
31567          test -z "$ac_c_werror_flag" ||
31568          test ! -s conftest.err
31569        } && test -s conftest$ac_exeext &&
31570        $as_test_x conftest$ac_exeext; then
31571   ac_cv_search_opendir=$ac_res
31572 else
31573   echo "$as_me: failed program was:" >&5
31574 sed 's/^/| /' conftest.$ac_ext >&5
31575
31576
31577 fi
31578
31579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31580       conftest$ac_exeext
31581   if test "${ac_cv_search_opendir+set}" = set; then
31582   break
31583 fi
31584 done
31585 if test "${ac_cv_search_opendir+set}" = set; then
31586   :
31587 else
31588   ac_cv_search_opendir=no
31589 fi
31590 rm conftest.$ac_ext
31591 LIBS=$ac_func_search_save_LIBS
31592 fi
31593 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31594 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31595 ac_res=$ac_cv_search_opendir
31596 if test "$ac_res" != no; then
31597   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31598
31599 fi
31600
31601 fi
31602
31603 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31604 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31605 if test "${ac_cv_header_stat_broken+set}" = set; then
31606   echo $ECHO_N "(cached) $ECHO_C" >&6
31607 else
31608   cat >conftest.$ac_ext <<_ACEOF
31609 /* confdefs.h.  */
31610 _ACEOF
31611 cat confdefs.h >>conftest.$ac_ext
31612 cat >>conftest.$ac_ext <<_ACEOF
31613 /* end confdefs.h.  */
31614 #include <sys/types.h>
31615 #include <sys/stat.h>
31616
31617 #if defined S_ISBLK && defined S_IFDIR
31618 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31619 #endif
31620
31621 #if defined S_ISBLK && defined S_IFCHR
31622 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31623 #endif
31624
31625 #if defined S_ISLNK && defined S_IFREG
31626 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31627 #endif
31628
31629 #if defined S_ISSOCK && defined S_IFREG
31630 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31631 #endif
31632
31633 _ACEOF
31634 rm -f conftest.$ac_objext
31635 if { (ac_try="$ac_compile"
31636 case "(($ac_try" in
31637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31638   *) ac_try_echo=$ac_try;;
31639 esac
31640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31641   (eval "$ac_compile") 2>conftest.er1
31642   ac_status=$?
31643   grep -v '^ *+' conftest.er1 >conftest.err
31644   rm -f conftest.er1
31645   cat conftest.err >&5
31646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647   (exit $ac_status); } && {
31648          test -z "$ac_c_werror_flag" ||
31649          test ! -s conftest.err
31650        } && test -s conftest.$ac_objext; then
31651   ac_cv_header_stat_broken=no
31652 else
31653   echo "$as_me: failed program was:" >&5
31654 sed 's/^/| /' conftest.$ac_ext >&5
31655
31656         ac_cv_header_stat_broken=yes
31657 fi
31658
31659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31660 fi
31661 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31662 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31663 if test $ac_cv_header_stat_broken = yes; then
31664
31665 cat >>confdefs.h <<\_ACEOF
31666 #define STAT_MACROS_BROKEN 1
31667 _ACEOF
31668
31669 fi
31670
31671 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31672 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31673 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31674   echo $ECHO_N "(cached) $ECHO_C" >&6
31675 else
31676   cat >conftest.$ac_ext <<_ACEOF
31677 /* confdefs.h.  */
31678 _ACEOF
31679 cat confdefs.h >>conftest.$ac_ext
31680 cat >>conftest.$ac_ext <<_ACEOF
31681 /* end confdefs.h.  */
31682 #include <sys/types.h>
31683 #include <sys/wait.h>
31684 #ifndef WEXITSTATUS
31685 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31686 #endif
31687 #ifndef WIFEXITED
31688 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31689 #endif
31690
31691 int
31692 main ()
31693 {
31694   int s;
31695   wait (&s);
31696   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31697   ;
31698   return 0;
31699 }
31700 _ACEOF
31701 rm -f conftest.$ac_objext
31702 if { (ac_try="$ac_compile"
31703 case "(($ac_try" in
31704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31705   *) ac_try_echo=$ac_try;;
31706 esac
31707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31708   (eval "$ac_compile") 2>conftest.er1
31709   ac_status=$?
31710   grep -v '^ *+' conftest.er1 >conftest.err
31711   rm -f conftest.er1
31712   cat conftest.err >&5
31713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714   (exit $ac_status); } && {
31715          test -z "$ac_c_werror_flag" ||
31716          test ! -s conftest.err
31717        } && test -s conftest.$ac_objext; then
31718   ac_cv_header_sys_wait_h=yes
31719 else
31720   echo "$as_me: failed program was:" >&5
31721 sed 's/^/| /' conftest.$ac_ext >&5
31722
31723         ac_cv_header_sys_wait_h=no
31724 fi
31725
31726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31727 fi
31728 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31729 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31730 if test $ac_cv_header_sys_wait_h = yes; then
31731
31732 cat >>confdefs.h <<\_ACEOF
31733 #define HAVE_SYS_WAIT_H 1
31734 _ACEOF
31735
31736 fi
31737
31738 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31739 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31740 if test "${ac_cv_header_time+set}" = set; then
31741   echo $ECHO_N "(cached) $ECHO_C" >&6
31742 else
31743   cat >conftest.$ac_ext <<_ACEOF
31744 /* confdefs.h.  */
31745 _ACEOF
31746 cat confdefs.h >>conftest.$ac_ext
31747 cat >>conftest.$ac_ext <<_ACEOF
31748 /* end confdefs.h.  */
31749 #include <sys/types.h>
31750 #include <sys/time.h>
31751 #include <time.h>
31752
31753 int
31754 main ()
31755 {
31756 if ((struct tm *) 0)
31757 return 0;
31758   ;
31759   return 0;
31760 }
31761 _ACEOF
31762 rm -f conftest.$ac_objext
31763 if { (ac_try="$ac_compile"
31764 case "(($ac_try" in
31765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31766   *) ac_try_echo=$ac_try;;
31767 esac
31768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31769   (eval "$ac_compile") 2>conftest.er1
31770   ac_status=$?
31771   grep -v '^ *+' conftest.er1 >conftest.err
31772   rm -f conftest.er1
31773   cat conftest.err >&5
31774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775   (exit $ac_status); } && {
31776          test -z "$ac_c_werror_flag" ||
31777          test ! -s conftest.err
31778        } && test -s conftest.$ac_objext; then
31779   ac_cv_header_time=yes
31780 else
31781   echo "$as_me: failed program was:" >&5
31782 sed 's/^/| /' conftest.$ac_ext >&5
31783
31784         ac_cv_header_time=no
31785 fi
31786
31787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31788 fi
31789 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31790 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31791 if test $ac_cv_header_time = yes; then
31792
31793 cat >>confdefs.h <<\_ACEOF
31794 #define TIME_WITH_SYS_TIME 1
31795 _ACEOF
31796
31797 fi
31798
31799 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31800 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31801 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31802   echo $ECHO_N "(cached) $ECHO_C" >&6
31803 else
31804   cat >conftest.$ac_ext <<_ACEOF
31805 /* confdefs.h.  */
31806 _ACEOF
31807 cat confdefs.h >>conftest.$ac_ext
31808 cat >>conftest.$ac_ext <<_ACEOF
31809 /* end confdefs.h.  */
31810 $ac_includes_default
31811 int
31812 main ()
31813 {
31814 static struct stat ac_aggr;
31815 if (ac_aggr.st_blksize)
31816 return 0;
31817   ;
31818   return 0;
31819 }
31820 _ACEOF
31821 rm -f conftest.$ac_objext
31822 if { (ac_try="$ac_compile"
31823 case "(($ac_try" in
31824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31825   *) ac_try_echo=$ac_try;;
31826 esac
31827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31828   (eval "$ac_compile") 2>conftest.er1
31829   ac_status=$?
31830   grep -v '^ *+' conftest.er1 >conftest.err
31831   rm -f conftest.er1
31832   cat conftest.err >&5
31833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834   (exit $ac_status); } && {
31835          test -z "$ac_c_werror_flag" ||
31836          test ! -s conftest.err
31837        } && test -s conftest.$ac_objext; then
31838   ac_cv_member_struct_stat_st_blksize=yes
31839 else
31840   echo "$as_me: failed program was:" >&5
31841 sed 's/^/| /' conftest.$ac_ext >&5
31842
31843         cat >conftest.$ac_ext <<_ACEOF
31844 /* confdefs.h.  */
31845 _ACEOF
31846 cat confdefs.h >>conftest.$ac_ext
31847 cat >>conftest.$ac_ext <<_ACEOF
31848 /* end confdefs.h.  */
31849 $ac_includes_default
31850 int
31851 main ()
31852 {
31853 static struct stat ac_aggr;
31854 if (sizeof ac_aggr.st_blksize)
31855 return 0;
31856   ;
31857   return 0;
31858 }
31859 _ACEOF
31860 rm -f conftest.$ac_objext
31861 if { (ac_try="$ac_compile"
31862 case "(($ac_try" in
31863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31864   *) ac_try_echo=$ac_try;;
31865 esac
31866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31867   (eval "$ac_compile") 2>conftest.er1
31868   ac_status=$?
31869   grep -v '^ *+' conftest.er1 >conftest.err
31870   rm -f conftest.er1
31871   cat conftest.err >&5
31872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873   (exit $ac_status); } && {
31874          test -z "$ac_c_werror_flag" ||
31875          test ! -s conftest.err
31876        } && test -s conftest.$ac_objext; then
31877   ac_cv_member_struct_stat_st_blksize=yes
31878 else
31879   echo "$as_me: failed program was:" >&5
31880 sed 's/^/| /' conftest.$ac_ext >&5
31881
31882         ac_cv_member_struct_stat_st_blksize=no
31883 fi
31884
31885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31886 fi
31887
31888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31889 fi
31890 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31891 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31892 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31893
31894 cat >>confdefs.h <<_ACEOF
31895 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31896 _ACEOF
31897
31898
31899 cat >>confdefs.h <<\_ACEOF
31900 #define HAVE_ST_BLKSIZE 1
31901 _ACEOF
31902
31903 fi
31904
31905
31906 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31907 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31908 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31909   echo $ECHO_N "(cached) $ECHO_C" >&6
31910 else
31911   cat >conftest.$ac_ext <<_ACEOF
31912 /* confdefs.h.  */
31913 _ACEOF
31914 cat confdefs.h >>conftest.$ac_ext
31915 cat >>conftest.$ac_ext <<_ACEOF
31916 /* end confdefs.h.  */
31917 $ac_includes_default
31918 int
31919 main ()
31920 {
31921 static struct stat ac_aggr;
31922 if (ac_aggr.st_blocks)
31923 return 0;
31924   ;
31925   return 0;
31926 }
31927 _ACEOF
31928 rm -f conftest.$ac_objext
31929 if { (ac_try="$ac_compile"
31930 case "(($ac_try" in
31931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31932   *) ac_try_echo=$ac_try;;
31933 esac
31934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31935   (eval "$ac_compile") 2>conftest.er1
31936   ac_status=$?
31937   grep -v '^ *+' conftest.er1 >conftest.err
31938   rm -f conftest.er1
31939   cat conftest.err >&5
31940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941   (exit $ac_status); } && {
31942          test -z "$ac_c_werror_flag" ||
31943          test ! -s conftest.err
31944        } && test -s conftest.$ac_objext; then
31945   ac_cv_member_struct_stat_st_blocks=yes
31946 else
31947   echo "$as_me: failed program was:" >&5
31948 sed 's/^/| /' conftest.$ac_ext >&5
31949
31950         cat >conftest.$ac_ext <<_ACEOF
31951 /* confdefs.h.  */
31952 _ACEOF
31953 cat confdefs.h >>conftest.$ac_ext
31954 cat >>conftest.$ac_ext <<_ACEOF
31955 /* end confdefs.h.  */
31956 $ac_includes_default
31957 int
31958 main ()
31959 {
31960 static struct stat ac_aggr;
31961 if (sizeof ac_aggr.st_blocks)
31962 return 0;
31963   ;
31964   return 0;
31965 }
31966 _ACEOF
31967 rm -f conftest.$ac_objext
31968 if { (ac_try="$ac_compile"
31969 case "(($ac_try" in
31970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31971   *) ac_try_echo=$ac_try;;
31972 esac
31973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31974   (eval "$ac_compile") 2>conftest.er1
31975   ac_status=$?
31976   grep -v '^ *+' conftest.er1 >conftest.err
31977   rm -f conftest.er1
31978   cat conftest.err >&5
31979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31980   (exit $ac_status); } && {
31981          test -z "$ac_c_werror_flag" ||
31982          test ! -s conftest.err
31983        } && test -s conftest.$ac_objext; then
31984   ac_cv_member_struct_stat_st_blocks=yes
31985 else
31986   echo "$as_me: failed program was:" >&5
31987 sed 's/^/| /' conftest.$ac_ext >&5
31988
31989         ac_cv_member_struct_stat_st_blocks=no
31990 fi
31991
31992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31993 fi
31994
31995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31996 fi
31997 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31998 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31999 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32000
32001 cat >>confdefs.h <<_ACEOF
32002 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32003 _ACEOF
32004
32005
32006 cat >>confdefs.h <<\_ACEOF
32007 #define HAVE_ST_BLOCKS 1
32008 _ACEOF
32009
32010 else
32011   case " $LIBOBJS " in
32012   *" fileblocks.$ac_objext "* ) ;;
32013   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32014  ;;
32015 esac
32016
32017 fi
32018
32019
32020 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32021 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32022 if test "${ac_cv_struct_tm+set}" = set; then
32023   echo $ECHO_N "(cached) $ECHO_C" >&6
32024 else
32025   cat >conftest.$ac_ext <<_ACEOF
32026 /* confdefs.h.  */
32027 _ACEOF
32028 cat confdefs.h >>conftest.$ac_ext
32029 cat >>conftest.$ac_ext <<_ACEOF
32030 /* end confdefs.h.  */
32031 #include <sys/types.h>
32032 #include <time.h>
32033
32034 int
32035 main ()
32036 {
32037 struct tm tm;
32038                                      int *p = &tm.tm_sec;
32039                                      return !p;
32040   ;
32041   return 0;
32042 }
32043 _ACEOF
32044 rm -f conftest.$ac_objext
32045 if { (ac_try="$ac_compile"
32046 case "(($ac_try" in
32047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32048   *) ac_try_echo=$ac_try;;
32049 esac
32050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32051   (eval "$ac_compile") 2>conftest.er1
32052   ac_status=$?
32053   grep -v '^ *+' conftest.er1 >conftest.err
32054   rm -f conftest.er1
32055   cat conftest.err >&5
32056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057   (exit $ac_status); } && {
32058          test -z "$ac_c_werror_flag" ||
32059          test ! -s conftest.err
32060        } && test -s conftest.$ac_objext; then
32061   ac_cv_struct_tm=time.h
32062 else
32063   echo "$as_me: failed program was:" >&5
32064 sed 's/^/| /' conftest.$ac_ext >&5
32065
32066         ac_cv_struct_tm=sys/time.h
32067 fi
32068
32069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32070 fi
32071 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32072 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32073 if test $ac_cv_struct_tm = sys/time.h; then
32074
32075 cat >>confdefs.h <<\_ACEOF
32076 #define TM_IN_SYS_TIME 1
32077 _ACEOF
32078
32079 fi
32080
32081 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32082 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32083 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32084   echo $ECHO_N "(cached) $ECHO_C" >&6
32085 else
32086   cat >conftest.$ac_ext <<_ACEOF
32087 /* confdefs.h.  */
32088 _ACEOF
32089 cat confdefs.h >>conftest.$ac_ext
32090 cat >>conftest.$ac_ext <<_ACEOF
32091 /* end confdefs.h.  */
32092 #include <sys/types.h>
32093 #include <$ac_cv_struct_tm>
32094
32095
32096 int
32097 main ()
32098 {
32099 static struct tm ac_aggr;
32100 if (ac_aggr.tm_zone)
32101 return 0;
32102   ;
32103   return 0;
32104 }
32105 _ACEOF
32106 rm -f conftest.$ac_objext
32107 if { (ac_try="$ac_compile"
32108 case "(($ac_try" in
32109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32110   *) ac_try_echo=$ac_try;;
32111 esac
32112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32113   (eval "$ac_compile") 2>conftest.er1
32114   ac_status=$?
32115   grep -v '^ *+' conftest.er1 >conftest.err
32116   rm -f conftest.er1
32117   cat conftest.err >&5
32118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119   (exit $ac_status); } && {
32120          test -z "$ac_c_werror_flag" ||
32121          test ! -s conftest.err
32122        } && test -s conftest.$ac_objext; then
32123   ac_cv_member_struct_tm_tm_zone=yes
32124 else
32125   echo "$as_me: failed program was:" >&5
32126 sed 's/^/| /' conftest.$ac_ext >&5
32127
32128         cat >conftest.$ac_ext <<_ACEOF
32129 /* confdefs.h.  */
32130 _ACEOF
32131 cat confdefs.h >>conftest.$ac_ext
32132 cat >>conftest.$ac_ext <<_ACEOF
32133 /* end confdefs.h.  */
32134 #include <sys/types.h>
32135 #include <$ac_cv_struct_tm>
32136
32137
32138 int
32139 main ()
32140 {
32141 static struct tm ac_aggr;
32142 if (sizeof ac_aggr.tm_zone)
32143 return 0;
32144   ;
32145   return 0;
32146 }
32147 _ACEOF
32148 rm -f conftest.$ac_objext
32149 if { (ac_try="$ac_compile"
32150 case "(($ac_try" in
32151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32152   *) ac_try_echo=$ac_try;;
32153 esac
32154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32155   (eval "$ac_compile") 2>conftest.er1
32156   ac_status=$?
32157   grep -v '^ *+' conftest.er1 >conftest.err
32158   rm -f conftest.er1
32159   cat conftest.err >&5
32160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32161   (exit $ac_status); } && {
32162          test -z "$ac_c_werror_flag" ||
32163          test ! -s conftest.err
32164        } && test -s conftest.$ac_objext; then
32165   ac_cv_member_struct_tm_tm_zone=yes
32166 else
32167   echo "$as_me: failed program was:" >&5
32168 sed 's/^/| /' conftest.$ac_ext >&5
32169
32170         ac_cv_member_struct_tm_tm_zone=no
32171 fi
32172
32173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32174 fi
32175
32176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32177 fi
32178 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32179 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32180 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32181
32182 cat >>confdefs.h <<_ACEOF
32183 #define HAVE_STRUCT_TM_TM_ZONE 1
32184 _ACEOF
32185
32186
32187 fi
32188
32189 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32190
32191 cat >>confdefs.h <<\_ACEOF
32192 #define HAVE_TM_ZONE 1
32193 _ACEOF
32194
32195 else
32196   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32197 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32198 if test "${ac_cv_have_decl_tzname+set}" = set; then
32199   echo $ECHO_N "(cached) $ECHO_C" >&6
32200 else
32201   cat >conftest.$ac_ext <<_ACEOF
32202 /* confdefs.h.  */
32203 _ACEOF
32204 cat confdefs.h >>conftest.$ac_ext
32205 cat >>conftest.$ac_ext <<_ACEOF
32206 /* end confdefs.h.  */
32207 #include <time.h>
32208
32209 int
32210 main ()
32211 {
32212 #ifndef tzname
32213   (void) tzname;
32214 #endif
32215
32216   ;
32217   return 0;
32218 }
32219 _ACEOF
32220 rm -f conftest.$ac_objext
32221 if { (ac_try="$ac_compile"
32222 case "(($ac_try" in
32223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32224   *) ac_try_echo=$ac_try;;
32225 esac
32226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32227   (eval "$ac_compile") 2>conftest.er1
32228   ac_status=$?
32229   grep -v '^ *+' conftest.er1 >conftest.err
32230   rm -f conftest.er1
32231   cat conftest.err >&5
32232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233   (exit $ac_status); } && {
32234          test -z "$ac_c_werror_flag" ||
32235          test ! -s conftest.err
32236        } && test -s conftest.$ac_objext; then
32237   ac_cv_have_decl_tzname=yes
32238 else
32239   echo "$as_me: failed program was:" >&5
32240 sed 's/^/| /' conftest.$ac_ext >&5
32241
32242         ac_cv_have_decl_tzname=no
32243 fi
32244
32245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32246 fi
32247 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32248 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32249 if test $ac_cv_have_decl_tzname = yes; then
32250
32251 cat >>confdefs.h <<_ACEOF
32252 #define HAVE_DECL_TZNAME 1
32253 _ACEOF
32254
32255
32256 else
32257   cat >>confdefs.h <<_ACEOF
32258 #define HAVE_DECL_TZNAME 0
32259 _ACEOF
32260
32261
32262 fi
32263
32264
32265   { echo "$as_me:$LINENO: checking for tzname" >&5
32266 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32267 if test "${ac_cv_var_tzname+set}" = set; then
32268   echo $ECHO_N "(cached) $ECHO_C" >&6
32269 else
32270   cat >conftest.$ac_ext <<_ACEOF
32271 /* confdefs.h.  */
32272 _ACEOF
32273 cat confdefs.h >>conftest.$ac_ext
32274 cat >>conftest.$ac_ext <<_ACEOF
32275 /* end confdefs.h.  */
32276 #include <time.h>
32277 #if !HAVE_DECL_TZNAME
32278 extern char *tzname[];
32279 #endif
32280
32281 int
32282 main ()
32283 {
32284 return tzname[0][0];
32285   ;
32286   return 0;
32287 }
32288 _ACEOF
32289 rm -f conftest.$ac_objext conftest$ac_exeext
32290 if { (ac_try="$ac_link"
32291 case "(($ac_try" in
32292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293   *) ac_try_echo=$ac_try;;
32294 esac
32295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296   (eval "$ac_link") 2>conftest.er1
32297   ac_status=$?
32298   grep -v '^ *+' conftest.er1 >conftest.err
32299   rm -f conftest.er1
32300   cat conftest.err >&5
32301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302   (exit $ac_status); } && {
32303          test -z "$ac_c_werror_flag" ||
32304          test ! -s conftest.err
32305        } && test -s conftest$ac_exeext &&
32306        $as_test_x conftest$ac_exeext; then
32307   ac_cv_var_tzname=yes
32308 else
32309   echo "$as_me: failed program was:" >&5
32310 sed 's/^/| /' conftest.$ac_ext >&5
32311
32312         ac_cv_var_tzname=no
32313 fi
32314
32315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32316       conftest$ac_exeext conftest.$ac_ext
32317 fi
32318 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32319 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32320   if test $ac_cv_var_tzname = yes; then
32321
32322 cat >>confdefs.h <<\_ACEOF
32323 #define HAVE_TZNAME 1
32324 _ACEOF
32325
32326   fi
32327 fi
32328
32329
32330 { echo "$as_me:$LINENO: checking for utime.h" >&5
32331 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32332 if test "${ba_cv_header_utime_h+set}" = set; then
32333   echo $ECHO_N "(cached) $ECHO_C" >&6
32334 else
32335
32336        cat >conftest.$ac_ext <<_ACEOF
32337 /* confdefs.h.  */
32338 _ACEOF
32339 cat confdefs.h >>conftest.$ac_ext
32340 cat >>conftest.$ac_ext <<_ACEOF
32341 /* end confdefs.h.  */
32342
32343               #include <sys/types.h>
32344               #include <utime.h>
32345
32346 int
32347 main ()
32348 {
32349
32350               struct utimbuf foo
32351
32352   ;
32353   return 0;
32354 }
32355 _ACEOF
32356 rm -f conftest.$ac_objext
32357 if { (ac_try="$ac_compile"
32358 case "(($ac_try" in
32359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360   *) ac_try_echo=$ac_try;;
32361 esac
32362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363   (eval "$ac_compile") 2>conftest.er1
32364   ac_status=$?
32365   grep -v '^ *+' conftest.er1 >conftest.err
32366   rm -f conftest.er1
32367   cat conftest.err >&5
32368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369   (exit $ac_status); } && {
32370          test -z "$ac_c_werror_flag" ||
32371          test ! -s conftest.err
32372        } && test -s conftest.$ac_objext; then
32373
32374               ba_cv_header_utime_h=yes
32375
32376 else
32377   echo "$as_me: failed program was:" >&5
32378 sed 's/^/| /' conftest.$ac_ext >&5
32379
32380
32381               ba_cv_header_utime_h=no
32382
32383
32384 fi
32385
32386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32387
32388
32389 fi
32390 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32391 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32392 test $ba_cv_header_utime_h = yes &&
32393 cat >>confdefs.h <<\_ACEOF
32394 #define HAVE_UTIME_H 1
32395 _ACEOF
32396
32397
32398 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32399 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32400 if test "${ba_cv_header_socklen_t+set}" = set; then
32401   echo $ECHO_N "(cached) $ECHO_C" >&6
32402 else
32403
32404        cat >conftest.$ac_ext <<_ACEOF
32405 /* confdefs.h.  */
32406 _ACEOF
32407 cat confdefs.h >>conftest.$ac_ext
32408 cat >>conftest.$ac_ext <<_ACEOF
32409 /* end confdefs.h.  */
32410
32411               #include <sys/types.h>
32412               #include <sys/socket.h>
32413
32414 int
32415 main ()
32416 {
32417
32418               socklen_t x
32419
32420   ;
32421   return 0;
32422 }
32423 _ACEOF
32424 rm -f conftest.$ac_objext
32425 if { (ac_try="$ac_compile"
32426 case "(($ac_try" in
32427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32428   *) ac_try_echo=$ac_try;;
32429 esac
32430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32431   (eval "$ac_compile") 2>conftest.er1
32432   ac_status=$?
32433   grep -v '^ *+' conftest.er1 >conftest.err
32434   rm -f conftest.er1
32435   cat conftest.err >&5
32436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32437   (exit $ac_status); } && {
32438          test -z "$ac_c_werror_flag" ||
32439          test ! -s conftest.err
32440        } && test -s conftest.$ac_objext; then
32441
32442              ba_cv_header_socklen_t=yes
32443
32444 else
32445   echo "$as_me: failed program was:" >&5
32446 sed 's/^/| /' conftest.$ac_ext >&5
32447
32448
32449              ba_cv_header_socklen_t=no
32450
32451
32452 fi
32453
32454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32455
32456
32457 fi
32458 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32459 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32460 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32461 #define HAVE_SOCKLEN_T 1
32462 _ACEOF
32463
32464
32465 ac_ext=cpp
32466 ac_cpp='$CXXCPP $CPPFLAGS'
32467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32470
32471 { echo "$as_me:$LINENO: checking for typeof" >&5
32472 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32473 if test "${ba_cv_have_typeof+set}" = set; then
32474   echo $ECHO_N "(cached) $ECHO_C" >&6
32475 else
32476
32477        if test "$cross_compiling" = yes; then
32478
32479               ba_cv_have_typeof=no
32480
32481
32482 else
32483   cat >conftest.$ac_ext <<_ACEOF
32484 /* confdefs.h.  */
32485 _ACEOF
32486 cat confdefs.h >>conftest.$ac_ext
32487 cat >>conftest.$ac_ext <<_ACEOF
32488 /* end confdefs.h.  */
32489
32490               main(){char *a = 0; a = (typeof a)a;}
32491
32492 _ACEOF
32493 rm -f conftest$ac_exeext
32494 if { (ac_try="$ac_link"
32495 case "(($ac_try" in
32496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32497   *) ac_try_echo=$ac_try;;
32498 esac
32499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32500   (eval "$ac_link") 2>&5
32501   ac_status=$?
32502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32504   { (case "(($ac_try" in
32505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32506   *) ac_try_echo=$ac_try;;
32507 esac
32508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32509   (eval "$ac_try") 2>&5
32510   ac_status=$?
32511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512   (exit $ac_status); }; }; then
32513
32514               ba_cv_have_typeof=yes
32515
32516 else
32517   echo "$as_me: program exited with status $ac_status" >&5
32518 echo "$as_me: failed program was:" >&5
32519 sed 's/^/| /' conftest.$ac_ext >&5
32520
32521 ( exit $ac_status )
32522
32523               ba_cv_have_typeof=no
32524
32525 fi
32526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32527 fi
32528
32529
32530
32531
32532 fi
32533 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32534 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32535 test $ba_cv_have_typeof = yes &&
32536 cat >>confdefs.h <<\_ACEOF
32537 #define HAVE_TYPEOF 1
32538 _ACEOF
32539
32540 ac_ext=c
32541 ac_cpp='$CPP $CPPFLAGS'
32542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32545
32546
32547 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32548 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32549 if test "${ac_cv_c_const+set}" = set; then
32550   echo $ECHO_N "(cached) $ECHO_C" >&6
32551 else
32552   cat >conftest.$ac_ext <<_ACEOF
32553 /* confdefs.h.  */
32554 _ACEOF
32555 cat confdefs.h >>conftest.$ac_ext
32556 cat >>conftest.$ac_ext <<_ACEOF
32557 /* end confdefs.h.  */
32558
32559 int
32560 main ()
32561 {
32562 /* FIXME: Include the comments suggested by Paul. */
32563 #ifndef __cplusplus
32564   /* Ultrix mips cc rejects this.  */
32565   typedef int charset[2];
32566   const charset cs;
32567   /* SunOS 4.1.1 cc rejects this.  */
32568   char const *const *pcpcc;
32569   char **ppc;
32570   /* NEC SVR4.0.2 mips cc rejects this.  */
32571   struct point {int x, y;};
32572   static struct point const zero = {0,0};
32573   /* AIX XL C 1.02.0.0 rejects this.
32574      It does not let you subtract one const X* pointer from another in
32575      an arm of an if-expression whose if-part is not a constant
32576      expression */
32577   const char *g = "string";
32578   pcpcc = &g + (g ? g-g : 0);
32579   /* HPUX 7.0 cc rejects these. */
32580   ++pcpcc;
32581   ppc = (char**) pcpcc;
32582   pcpcc = (char const *const *) ppc;
32583   { /* SCO 3.2v4 cc rejects this.  */
32584     char *t;
32585     char const *s = 0 ? (char *) 0 : (char const *) 0;
32586
32587     *t++ = 0;
32588     if (s) return 0;
32589   }
32590   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32591     int x[] = {25, 17};
32592     const int *foo = &x[0];
32593     ++foo;
32594   }
32595   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32596     typedef const int *iptr;
32597     iptr p = 0;
32598     ++p;
32599   }
32600   { /* AIX XL C 1.02.0.0 rejects this saying
32601        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32602     struct s { int j; const int *ap[3]; };
32603     struct s *b; b->j = 5;
32604   }
32605   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32606     const int foo = 10;
32607     if (!foo) return 0;
32608   }
32609   return !cs[0] && !zero.x;
32610 #endif
32611
32612   ;
32613   return 0;
32614 }
32615 _ACEOF
32616 rm -f conftest.$ac_objext
32617 if { (ac_try="$ac_compile"
32618 case "(($ac_try" in
32619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32620   *) ac_try_echo=$ac_try;;
32621 esac
32622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32623   (eval "$ac_compile") 2>conftest.er1
32624   ac_status=$?
32625   grep -v '^ *+' conftest.er1 >conftest.err
32626   rm -f conftest.er1
32627   cat conftest.err >&5
32628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629   (exit $ac_status); } && {
32630          test -z "$ac_c_werror_flag" ||
32631          test ! -s conftest.err
32632        } && test -s conftest.$ac_objext; then
32633   ac_cv_c_const=yes
32634 else
32635   echo "$as_me: failed program was:" >&5
32636 sed 's/^/| /' conftest.$ac_ext >&5
32637
32638         ac_cv_c_const=no
32639 fi
32640
32641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32642 fi
32643 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32644 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32645 if test $ac_cv_c_const = no; then
32646
32647 cat >>confdefs.h <<\_ACEOF
32648 #define const
32649 _ACEOF
32650
32651 fi
32652
32653
32654 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32655 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32656 fstype=no
32657 # The order of these tests is important.
32658 cat >conftest.$ac_ext <<_ACEOF
32659 /* confdefs.h.  */
32660 _ACEOF
32661 cat confdefs.h >>conftest.$ac_ext
32662 cat >>conftest.$ac_ext <<_ACEOF
32663 /* end confdefs.h.  */
32664
32665        #include <sys/statvfs.h>
32666        #include <sys/fstyp.h>
32667
32668 _ACEOF
32669 if { (ac_try="$ac_cpp conftest.$ac_ext"
32670 case "(($ac_try" in
32671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672   *) ac_try_echo=$ac_try;;
32673 esac
32674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32676   ac_status=$?
32677   grep -v '^ *+' conftest.er1 >conftest.err
32678   rm -f conftest.er1
32679   cat conftest.err >&5
32680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681   (exit $ac_status); } >/dev/null && {
32682          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32683          test ! -s conftest.err
32684        }; then
32685   cat >>confdefs.h <<\_ACEOF
32686 #define FSTYPE_STATVFS 1
32687 _ACEOF
32688  fstype=SVR4
32689
32690 else
32691   echo "$as_me: failed program was:" >&5
32692 sed 's/^/| /' conftest.$ac_ext >&5
32693
32694
32695 fi
32696
32697 rm -f conftest.err conftest.$ac_ext
32698 if test $fstype = no; then
32699    cat >conftest.$ac_ext <<_ACEOF
32700 /* confdefs.h.  */
32701 _ACEOF
32702 cat confdefs.h >>conftest.$ac_ext
32703 cat >>conftest.$ac_ext <<_ACEOF
32704 /* end confdefs.h.  */
32705
32706           #include <sys/statfs.h>
32707           #include <sys/fstyp.h>
32708
32709 _ACEOF
32710 if { (ac_try="$ac_cpp conftest.$ac_ext"
32711 case "(($ac_try" in
32712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32713   *) ac_try_echo=$ac_try;;
32714 esac
32715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32716   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32717   ac_status=$?
32718   grep -v '^ *+' conftest.er1 >conftest.err
32719   rm -f conftest.er1
32720   cat conftest.err >&5
32721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722   (exit $ac_status); } >/dev/null && {
32723          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32724          test ! -s conftest.err
32725        }; then
32726   cat >>confdefs.h <<\_ACEOF
32727 #define FSTYPE_USG_STATFS 1
32728 _ACEOF
32729  fstype=SVR3
32730
32731 else
32732   echo "$as_me: failed program was:" >&5
32733 sed 's/^/| /' conftest.$ac_ext >&5
32734
32735
32736 fi
32737
32738 rm -f conftest.err conftest.$ac_ext
32739 fi
32740 if test $fstype = no; then
32741    cat >conftest.$ac_ext <<_ACEOF
32742 /* confdefs.h.  */
32743 _ACEOF
32744 cat confdefs.h >>conftest.$ac_ext
32745 cat >>conftest.$ac_ext <<_ACEOF
32746 /* end confdefs.h.  */
32747
32748           #include <sys/statfs.h>
32749           #include <sys/vmount.h>
32750
32751 _ACEOF
32752 if { (ac_try="$ac_cpp conftest.$ac_ext"
32753 case "(($ac_try" in
32754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32755   *) ac_try_echo=$ac_try;;
32756 esac
32757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32759   ac_status=$?
32760   grep -v '^ *+' conftest.er1 >conftest.err
32761   rm -f conftest.er1
32762   cat conftest.err >&5
32763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764   (exit $ac_status); } >/dev/null && {
32765          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32766          test ! -s conftest.err
32767        }; then
32768   cat >>confdefs.h <<\_ACEOF
32769 #define FSTYPE_AIX_STATFS 1
32770 _ACEOF
32771  fstype=AIX
32772
32773 else
32774   echo "$as_me: failed program was:" >&5
32775 sed 's/^/| /' conftest.$ac_ext >&5
32776
32777
32778 fi
32779
32780 rm -f conftest.err conftest.$ac_ext
32781 fi
32782 if test $fstype = no; then
32783    cat >conftest.$ac_ext <<_ACEOF
32784 /* confdefs.h.  */
32785 _ACEOF
32786 cat confdefs.h >>conftest.$ac_ext
32787 cat >>conftest.$ac_ext <<_ACEOF
32788 /* end confdefs.h.  */
32789
32790           #include <mntent.h>
32791
32792 _ACEOF
32793 if { (ac_try="$ac_cpp conftest.$ac_ext"
32794 case "(($ac_try" in
32795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32796   *) ac_try_echo=$ac_try;;
32797 esac
32798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32800   ac_status=$?
32801   grep -v '^ *+' conftest.er1 >conftest.err
32802   rm -f conftest.er1
32803   cat conftest.err >&5
32804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805   (exit $ac_status); } >/dev/null && {
32806          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32807          test ! -s conftest.err
32808        }; then
32809   cat >>confdefs.h <<\_ACEOF
32810 #define FSTYPE_MNTENT 1
32811 _ACEOF
32812  fstype=4.3BSD
32813
32814 else
32815   echo "$as_me: failed program was:" >&5
32816 sed 's/^/| /' conftest.$ac_ext >&5
32817
32818
32819 fi
32820
32821 rm -f conftest.err conftest.$ac_ext
32822 fi
32823 if test $fstype = no; then
32824    cat >conftest.$ac_ext <<_ACEOF
32825 /* confdefs.h.  */
32826 _ACEOF
32827 cat confdefs.h >>conftest.$ac_ext
32828 cat >>conftest.$ac_ext <<_ACEOF
32829 /* end confdefs.h.  */
32830 #include <sys/mount.h>
32831
32832 _ACEOF
32833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32834   $EGREP "f_type;" >/dev/null 2>&1; then
32835   cat >>confdefs.h <<\_ACEOF
32836 #define FSTYPE_STATFS 1
32837 _ACEOF
32838  fstype=4.4BSD/OSF1
32839 fi
32840 rm -f conftest*
32841
32842 fi
32843 if test $fstype = no; then
32844    cat >conftest.$ac_ext <<_ACEOF
32845 /* confdefs.h.  */
32846 _ACEOF
32847 cat confdefs.h >>conftest.$ac_ext
32848 cat >>conftest.$ac_ext <<_ACEOF
32849 /* end confdefs.h.  */
32850
32851           #include <sys/mount.h>
32852           #include <sys/fs_types.h>
32853
32854 _ACEOF
32855 if { (ac_try="$ac_cpp conftest.$ac_ext"
32856 case "(($ac_try" in
32857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858   *) ac_try_echo=$ac_try;;
32859 esac
32860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32862   ac_status=$?
32863   grep -v '^ *+' conftest.er1 >conftest.err
32864   rm -f conftest.er1
32865   cat conftest.err >&5
32866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867   (exit $ac_status); } >/dev/null && {
32868          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32869          test ! -s conftest.err
32870        }; then
32871   cat >>confdefs.h <<\_ACEOF
32872 #define FSTYPE_GETMNT 1
32873 _ACEOF
32874  fstype=Ultrix
32875
32876 else
32877   echo "$as_me: failed program was:" >&5
32878 sed 's/^/| /' conftest.$ac_ext >&5
32879
32880
32881 fi
32882
32883 rm -f conftest.err conftest.$ac_ext
32884 fi
32885 { echo "$as_me:$LINENO: result: $fstype" >&5
32886 echo "${ECHO_T}$fstype" >&6; }
32887
32888 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32889   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32890 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32891 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32892   echo $ECHO_N "(cached) $ECHO_C" >&6
32893 fi
32894 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32895 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32896 else
32897   # Is the header compilable?
32898 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32899 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32900 cat >conftest.$ac_ext <<_ACEOF
32901 /* confdefs.h.  */
32902 _ACEOF
32903 cat confdefs.h >>conftest.$ac_ext
32904 cat >>conftest.$ac_ext <<_ACEOF
32905 /* end confdefs.h.  */
32906 $ac_includes_default
32907 #include <sys/statvfs.h>
32908 _ACEOF
32909 rm -f conftest.$ac_objext
32910 if { (ac_try="$ac_compile"
32911 case "(($ac_try" in
32912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32913   *) ac_try_echo=$ac_try;;
32914 esac
32915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32916   (eval "$ac_compile") 2>conftest.er1
32917   ac_status=$?
32918   grep -v '^ *+' conftest.er1 >conftest.err
32919   rm -f conftest.er1
32920   cat conftest.err >&5
32921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922   (exit $ac_status); } && {
32923          test -z "$ac_c_werror_flag" ||
32924          test ! -s conftest.err
32925        } && test -s conftest.$ac_objext; then
32926   ac_header_compiler=yes
32927 else
32928   echo "$as_me: failed program was:" >&5
32929 sed 's/^/| /' conftest.$ac_ext >&5
32930
32931         ac_header_compiler=no
32932 fi
32933
32934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32936 echo "${ECHO_T}$ac_header_compiler" >&6; }
32937
32938 # Is the header present?
32939 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32940 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32941 cat >conftest.$ac_ext <<_ACEOF
32942 /* confdefs.h.  */
32943 _ACEOF
32944 cat confdefs.h >>conftest.$ac_ext
32945 cat >>conftest.$ac_ext <<_ACEOF
32946 /* end confdefs.h.  */
32947 #include <sys/statvfs.h>
32948 _ACEOF
32949 if { (ac_try="$ac_cpp conftest.$ac_ext"
32950 case "(($ac_try" in
32951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32952   *) ac_try_echo=$ac_try;;
32953 esac
32954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32956   ac_status=$?
32957   grep -v '^ *+' conftest.er1 >conftest.err
32958   rm -f conftest.er1
32959   cat conftest.err >&5
32960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32961   (exit $ac_status); } >/dev/null && {
32962          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32963          test ! -s conftest.err
32964        }; then
32965   ac_header_preproc=yes
32966 else
32967   echo "$as_me: failed program was:" >&5
32968 sed 's/^/| /' conftest.$ac_ext >&5
32969
32970   ac_header_preproc=no
32971 fi
32972
32973 rm -f conftest.err conftest.$ac_ext
32974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32975 echo "${ECHO_T}$ac_header_preproc" >&6; }
32976
32977 # So?  What about this header?
32978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32979   yes:no: )
32980     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32981 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32982     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32983 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32984     ac_header_preproc=yes
32985     ;;
32986   no:yes:* )
32987     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32988 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32989     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32990 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32991     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32992 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32993     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32994 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32995     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32996 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32997     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32998 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32999
33000     ;;
33001 esac
33002 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33003 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33004 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33005   echo $ECHO_N "(cached) $ECHO_C" >&6
33006 else
33007   ac_cv_header_sys_statvfs_h=$ac_header_preproc
33008 fi
33009 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33010 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33011
33012 fi
33013 if test $ac_cv_header_sys_statvfs_h = yes; then
33014
33015 cat >>confdefs.h <<\_ACEOF
33016 #define HAVE_SYS_STATVFS_H 1
33017 _ACEOF
33018
33019 fi
33020
33021
33022
33023 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33024 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33025 if test "${ac_cv_type_signal+set}" = set; then
33026   echo $ECHO_N "(cached) $ECHO_C" >&6
33027 else
33028   cat >conftest.$ac_ext <<_ACEOF
33029 /* confdefs.h.  */
33030 _ACEOF
33031 cat confdefs.h >>conftest.$ac_ext
33032 cat >>conftest.$ac_ext <<_ACEOF
33033 /* end confdefs.h.  */
33034 #include <sys/types.h>
33035 #include <signal.h>
33036
33037 int
33038 main ()
33039 {
33040 return *(signal (0, 0)) (0) == 1;
33041   ;
33042   return 0;
33043 }
33044 _ACEOF
33045 rm -f conftest.$ac_objext
33046 if { (ac_try="$ac_compile"
33047 case "(($ac_try" in
33048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33049   *) ac_try_echo=$ac_try;;
33050 esac
33051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33052   (eval "$ac_compile") 2>conftest.er1
33053   ac_status=$?
33054   grep -v '^ *+' conftest.er1 >conftest.err
33055   rm -f conftest.er1
33056   cat conftest.err >&5
33057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058   (exit $ac_status); } && {
33059          test -z "$ac_c_werror_flag" ||
33060          test ! -s conftest.err
33061        } && test -s conftest.$ac_objext; then
33062   ac_cv_type_signal=int
33063 else
33064   echo "$as_me: failed program was:" >&5
33065 sed 's/^/| /' conftest.$ac_ext >&5
33066
33067         ac_cv_type_signal=void
33068 fi
33069
33070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33071 fi
33072 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33073 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33074
33075 cat >>confdefs.h <<_ACEOF
33076 #define RETSIGTYPE $ac_cv_type_signal
33077 _ACEOF
33078
33079
33080
33081   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33082 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33083   if test "${bash_cv_signal_vintage+set}" = set; then
33084   echo $ECHO_N "(cached) $ECHO_C" >&6
33085 else
33086
33087     cat >conftest.$ac_ext <<_ACEOF
33088 /* confdefs.h.  */
33089 _ACEOF
33090 cat confdefs.h >>conftest.$ac_ext
33091 cat >>conftest.$ac_ext <<_ACEOF
33092 /* end confdefs.h.  */
33093 #include <signal.h>
33094 int
33095 main ()
33096 {
33097
33098       sigset_t ss;
33099       struct sigaction sa;
33100       sigemptyset(&ss); sigsuspend(&ss);
33101       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33102       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33103
33104   ;
33105   return 0;
33106 }
33107 _ACEOF
33108 rm -f conftest.$ac_objext conftest$ac_exeext
33109 if { (ac_try="$ac_link"
33110 case "(($ac_try" in
33111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112   *) ac_try_echo=$ac_try;;
33113 esac
33114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115   (eval "$ac_link") 2>conftest.er1
33116   ac_status=$?
33117   grep -v '^ *+' conftest.er1 >conftest.err
33118   rm -f conftest.er1
33119   cat conftest.err >&5
33120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121   (exit $ac_status); } && {
33122          test -z "$ac_c_werror_flag" ||
33123          test ! -s conftest.err
33124        } && test -s conftest$ac_exeext &&
33125        $as_test_x conftest$ac_exeext; then
33126   bash_cv_signal_vintage="posix"
33127 else
33128   echo "$as_me: failed program was:" >&5
33129 sed 's/^/| /' conftest.$ac_ext >&5
33130
33131
33132       cat >conftest.$ac_ext <<_ACEOF
33133 /* confdefs.h.  */
33134 _ACEOF
33135 cat confdefs.h >>conftest.$ac_ext
33136 cat >>conftest.$ac_ext <<_ACEOF
33137 /* end confdefs.h.  */
33138 #include <signal.h>
33139 int
33140 main ()
33141 {
33142
33143           int mask = sigmask(SIGINT);
33144           sigsetmask(mask); sigblock(mask); sigpause(mask);
33145
33146   ;
33147   return 0;
33148 }
33149 _ACEOF
33150 rm -f conftest.$ac_objext conftest$ac_exeext
33151 if { (ac_try="$ac_link"
33152 case "(($ac_try" in
33153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33154   *) ac_try_echo=$ac_try;;
33155 esac
33156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33157   (eval "$ac_link") 2>conftest.er1
33158   ac_status=$?
33159   grep -v '^ *+' conftest.er1 >conftest.err
33160   rm -f conftest.er1
33161   cat conftest.err >&5
33162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33163   (exit $ac_status); } && {
33164          test -z "$ac_c_werror_flag" ||
33165          test ! -s conftest.err
33166        } && test -s conftest$ac_exeext &&
33167        $as_test_x conftest$ac_exeext; then
33168   bash_cv_signal_vintage="4.2bsd"
33169 else
33170   echo "$as_me: failed program was:" >&5
33171 sed 's/^/| /' conftest.$ac_ext >&5
33172
33173
33174         cat >conftest.$ac_ext <<_ACEOF
33175 /* confdefs.h.  */
33176 _ACEOF
33177 cat confdefs.h >>conftest.$ac_ext
33178 cat >>conftest.$ac_ext <<_ACEOF
33179 /* end confdefs.h.  */
33180
33181           #include <signal.h>
33182           RETSIGTYPE foo() { }
33183 int
33184 main ()
33185 {
33186
33187                   int mask = sigmask(SIGINT);
33188                   sigset(SIGINT, foo); sigrelse(SIGINT);
33189                   sighold(SIGINT); sigpause(SIGINT);
33190
33191   ;
33192   return 0;
33193 }
33194 _ACEOF
33195 rm -f conftest.$ac_objext conftest$ac_exeext
33196 if { (ac_try="$ac_link"
33197 case "(($ac_try" in
33198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199   *) ac_try_echo=$ac_try;;
33200 esac
33201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202   (eval "$ac_link") 2>conftest.er1
33203   ac_status=$?
33204   grep -v '^ *+' conftest.er1 >conftest.err
33205   rm -f conftest.er1
33206   cat conftest.err >&5
33207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208   (exit $ac_status); } && {
33209          test -z "$ac_c_werror_flag" ||
33210          test ! -s conftest.err
33211        } && test -s conftest$ac_exeext &&
33212        $as_test_x conftest$ac_exeext; then
33213   bash_cv_signal_vintage="svr3"
33214 else
33215   echo "$as_me: failed program was:" >&5
33216 sed 's/^/| /' conftest.$ac_ext >&5
33217
33218         bash_cv_signal_vintage="v7"
33219
33220 fi
33221
33222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33223       conftest$ac_exeext conftest.$ac_ext
33224
33225 fi
33226
33227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33228       conftest$ac_exeext conftest.$ac_ext
33229
33230 fi
33231
33232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33233       conftest$ac_exeext conftest.$ac_ext
33234
33235 fi
33236
33237   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33238 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33239   if test "$bash_cv_signal_vintage" = "posix"; then
33240     cat >>confdefs.h <<\_ACEOF
33241 #define HAVE_POSIX_SIGNALS 1
33242 _ACEOF
33243
33244   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33245     cat >>confdefs.h <<\_ACEOF
33246 #define HAVE_BSD_SIGNALS 1
33247 _ACEOF
33248
33249   elif test "$bash_cv_signal_vintage" = "svr3"; then
33250     cat >>confdefs.h <<\_ACEOF
33251 #define HAVE_USG_SIGHOLD 1
33252 _ACEOF
33253
33254   fi
33255
33256 { echo "$as_me:$LINENO: checking for mode_t" >&5
33257 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33258 if test "${ac_cv_type_mode_t+set}" = set; then
33259   echo $ECHO_N "(cached) $ECHO_C" >&6
33260 else
33261   cat >conftest.$ac_ext <<_ACEOF
33262 /* confdefs.h.  */
33263 _ACEOF
33264 cat confdefs.h >>conftest.$ac_ext
33265 cat >>conftest.$ac_ext <<_ACEOF
33266 /* end confdefs.h.  */
33267 $ac_includes_default
33268 typedef mode_t ac__type_new_;
33269 int
33270 main ()
33271 {
33272 if ((ac__type_new_ *) 0)
33273   return 0;
33274 if (sizeof (ac__type_new_))
33275   return 0;
33276   ;
33277   return 0;
33278 }
33279 _ACEOF
33280 rm -f conftest.$ac_objext
33281 if { (ac_try="$ac_compile"
33282 case "(($ac_try" in
33283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284   *) ac_try_echo=$ac_try;;
33285 esac
33286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287   (eval "$ac_compile") 2>conftest.er1
33288   ac_status=$?
33289   grep -v '^ *+' conftest.er1 >conftest.err
33290   rm -f conftest.er1
33291   cat conftest.err >&5
33292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293   (exit $ac_status); } && {
33294          test -z "$ac_c_werror_flag" ||
33295          test ! -s conftest.err
33296        } && test -s conftest.$ac_objext; then
33297   ac_cv_type_mode_t=yes
33298 else
33299   echo "$as_me: failed program was:" >&5
33300 sed 's/^/| /' conftest.$ac_ext >&5
33301
33302         ac_cv_type_mode_t=no
33303 fi
33304
33305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33306 fi
33307 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33308 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33309 if test $ac_cv_type_mode_t = yes; then
33310   :
33311 else
33312
33313 cat >>confdefs.h <<_ACEOF
33314 #define mode_t int
33315 _ACEOF
33316
33317 fi
33318
33319 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33320 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33321 if test "${ac_cv_type_uid_t+set}" = set; then
33322   echo $ECHO_N "(cached) $ECHO_C" >&6
33323 else
33324   cat >conftest.$ac_ext <<_ACEOF
33325 /* confdefs.h.  */
33326 _ACEOF
33327 cat confdefs.h >>conftest.$ac_ext
33328 cat >>conftest.$ac_ext <<_ACEOF
33329 /* end confdefs.h.  */
33330 #include <sys/types.h>
33331
33332 _ACEOF
33333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33334   $EGREP "uid_t" >/dev/null 2>&1; then
33335   ac_cv_type_uid_t=yes
33336 else
33337   ac_cv_type_uid_t=no
33338 fi
33339 rm -f conftest*
33340
33341 fi
33342 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33343 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33344 if test $ac_cv_type_uid_t = no; then
33345
33346 cat >>confdefs.h <<\_ACEOF
33347 #define uid_t int
33348 _ACEOF
33349
33350
33351 cat >>confdefs.h <<\_ACEOF
33352 #define gid_t int
33353 _ACEOF
33354
33355 fi
33356
33357 { echo "$as_me:$LINENO: checking for size_t" >&5
33358 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33359 if test "${ac_cv_type_size_t+set}" = set; then
33360   echo $ECHO_N "(cached) $ECHO_C" >&6
33361 else
33362   cat >conftest.$ac_ext <<_ACEOF
33363 /* confdefs.h.  */
33364 _ACEOF
33365 cat confdefs.h >>conftest.$ac_ext
33366 cat >>conftest.$ac_ext <<_ACEOF
33367 /* end confdefs.h.  */
33368 $ac_includes_default
33369 typedef size_t ac__type_new_;
33370 int
33371 main ()
33372 {
33373 if ((ac__type_new_ *) 0)
33374   return 0;
33375 if (sizeof (ac__type_new_))
33376   return 0;
33377   ;
33378   return 0;
33379 }
33380 _ACEOF
33381 rm -f conftest.$ac_objext
33382 if { (ac_try="$ac_compile"
33383 case "(($ac_try" in
33384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385   *) ac_try_echo=$ac_try;;
33386 esac
33387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388   (eval "$ac_compile") 2>conftest.er1
33389   ac_status=$?
33390   grep -v '^ *+' conftest.er1 >conftest.err
33391   rm -f conftest.er1
33392   cat conftest.err >&5
33393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394   (exit $ac_status); } && {
33395          test -z "$ac_c_werror_flag" ||
33396          test ! -s conftest.err
33397        } && test -s conftest.$ac_objext; then
33398   ac_cv_type_size_t=yes
33399 else
33400   echo "$as_me: failed program was:" >&5
33401 sed 's/^/| /' conftest.$ac_ext >&5
33402
33403         ac_cv_type_size_t=no
33404 fi
33405
33406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33407 fi
33408 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33409 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33410 if test $ac_cv_type_size_t = yes; then
33411   :
33412 else
33413
33414 cat >>confdefs.h <<_ACEOF
33415 #define size_t unsigned int
33416 _ACEOF
33417
33418 fi
33419
33420 { echo "$as_me:$LINENO: checking for pid_t" >&5
33421 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33422 if test "${ac_cv_type_pid_t+set}" = set; then
33423   echo $ECHO_N "(cached) $ECHO_C" >&6
33424 else
33425   cat >conftest.$ac_ext <<_ACEOF
33426 /* confdefs.h.  */
33427 _ACEOF
33428 cat confdefs.h >>conftest.$ac_ext
33429 cat >>conftest.$ac_ext <<_ACEOF
33430 /* end confdefs.h.  */
33431 $ac_includes_default
33432 typedef pid_t ac__type_new_;
33433 int
33434 main ()
33435 {
33436 if ((ac__type_new_ *) 0)
33437   return 0;
33438 if (sizeof (ac__type_new_))
33439   return 0;
33440   ;
33441   return 0;
33442 }
33443 _ACEOF
33444 rm -f conftest.$ac_objext
33445 if { (ac_try="$ac_compile"
33446 case "(($ac_try" in
33447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33448   *) ac_try_echo=$ac_try;;
33449 esac
33450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33451   (eval "$ac_compile") 2>conftest.er1
33452   ac_status=$?
33453   grep -v '^ *+' conftest.er1 >conftest.err
33454   rm -f conftest.er1
33455   cat conftest.err >&5
33456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457   (exit $ac_status); } && {
33458          test -z "$ac_c_werror_flag" ||
33459          test ! -s conftest.err
33460        } && test -s conftest.$ac_objext; then
33461   ac_cv_type_pid_t=yes
33462 else
33463   echo "$as_me: failed program was:" >&5
33464 sed 's/^/| /' conftest.$ac_ext >&5
33465
33466         ac_cv_type_pid_t=no
33467 fi
33468
33469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33470 fi
33471 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33472 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33473 if test $ac_cv_type_pid_t = yes; then
33474   :
33475 else
33476
33477 cat >>confdefs.h <<_ACEOF
33478 #define pid_t int
33479 _ACEOF
33480
33481 fi
33482
33483 { echo "$as_me:$LINENO: checking for off_t" >&5
33484 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33485 if test "${ac_cv_type_off_t+set}" = set; then
33486   echo $ECHO_N "(cached) $ECHO_C" >&6
33487 else
33488   cat >conftest.$ac_ext <<_ACEOF
33489 /* confdefs.h.  */
33490 _ACEOF
33491 cat confdefs.h >>conftest.$ac_ext
33492 cat >>conftest.$ac_ext <<_ACEOF
33493 /* end confdefs.h.  */
33494 $ac_includes_default
33495 typedef off_t ac__type_new_;
33496 int
33497 main ()
33498 {
33499 if ((ac__type_new_ *) 0)
33500   return 0;
33501 if (sizeof (ac__type_new_))
33502   return 0;
33503   ;
33504   return 0;
33505 }
33506 _ACEOF
33507 rm -f conftest.$ac_objext
33508 if { (ac_try="$ac_compile"
33509 case "(($ac_try" in
33510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33511   *) ac_try_echo=$ac_try;;
33512 esac
33513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33514   (eval "$ac_compile") 2>conftest.er1
33515   ac_status=$?
33516   grep -v '^ *+' conftest.er1 >conftest.err
33517   rm -f conftest.er1
33518   cat conftest.err >&5
33519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520   (exit $ac_status); } && {
33521          test -z "$ac_c_werror_flag" ||
33522          test ! -s conftest.err
33523        } && test -s conftest.$ac_objext; then
33524   ac_cv_type_off_t=yes
33525 else
33526   echo "$as_me: failed program was:" >&5
33527 sed 's/^/| /' conftest.$ac_ext >&5
33528
33529         ac_cv_type_off_t=no
33530 fi
33531
33532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33533 fi
33534 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33535 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33536 if test $ac_cv_type_off_t = yes; then
33537   :
33538 else
33539
33540 cat >>confdefs.h <<_ACEOF
33541 #define off_t long int
33542 _ACEOF
33543
33544 fi
33545
33546
33547   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33548 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33549 if test "${ac_cv_type_intptr_t+set}" = set; then
33550   echo $ECHO_N "(cached) $ECHO_C" >&6
33551 else
33552   cat >conftest.$ac_ext <<_ACEOF
33553 /* confdefs.h.  */
33554 _ACEOF
33555 cat confdefs.h >>conftest.$ac_ext
33556 cat >>conftest.$ac_ext <<_ACEOF
33557 /* end confdefs.h.  */
33558 $ac_includes_default
33559 typedef intptr_t ac__type_new_;
33560 int
33561 main ()
33562 {
33563 if ((ac__type_new_ *) 0)
33564   return 0;
33565 if (sizeof (ac__type_new_))
33566   return 0;
33567   ;
33568   return 0;
33569 }
33570 _ACEOF
33571 rm -f conftest.$ac_objext
33572 if { (ac_try="$ac_compile"
33573 case "(($ac_try" in
33574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33575   *) ac_try_echo=$ac_try;;
33576 esac
33577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33578   (eval "$ac_compile") 2>conftest.er1
33579   ac_status=$?
33580   grep -v '^ *+' conftest.er1 >conftest.err
33581   rm -f conftest.er1
33582   cat conftest.err >&5
33583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584   (exit $ac_status); } && {
33585          test -z "$ac_c_werror_flag" ||
33586          test ! -s conftest.err
33587        } && test -s conftest.$ac_objext; then
33588   ac_cv_type_intptr_t=yes
33589 else
33590   echo "$as_me: failed program was:" >&5
33591 sed 's/^/| /' conftest.$ac_ext >&5
33592
33593         ac_cv_type_intptr_t=no
33594 fi
33595
33596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33597 fi
33598 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33599 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33600 if test $ac_cv_type_intptr_t = yes; then
33601
33602 cat >>confdefs.h <<\_ACEOF
33603 #define HAVE_INTPTR_T 1
33604 _ACEOF
33605
33606 else
33607   for ac_type in 'int' 'long int' 'long long int'; do
33608        cat >conftest.$ac_ext <<_ACEOF
33609 /* confdefs.h.  */
33610 _ACEOF
33611 cat confdefs.h >>conftest.$ac_ext
33612 cat >>conftest.$ac_ext <<_ACEOF
33613 /* end confdefs.h.  */
33614 $ac_includes_default
33615 int
33616 main ()
33617 {
33618 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33619 test_array [0] = 0
33620
33621   ;
33622   return 0;
33623 }
33624 _ACEOF
33625 rm -f conftest.$ac_objext
33626 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
33642
33643 cat >>confdefs.h <<_ACEOF
33644 #define intptr_t $ac_type
33645 _ACEOF
33646
33647           ac_type=
33648 else
33649   echo "$as_me: failed program was:" >&5
33650 sed 's/^/| /' conftest.$ac_ext >&5
33651
33652
33653 fi
33654
33655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33656        test -z "$ac_type" && break
33657      done
33658 fi
33659
33660
33661
33662   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33663 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33664 if test "${ac_cv_type_uintptr_t+set}" = set; then
33665   echo $ECHO_N "(cached) $ECHO_C" >&6
33666 else
33667   cat >conftest.$ac_ext <<_ACEOF
33668 /* confdefs.h.  */
33669 _ACEOF
33670 cat confdefs.h >>conftest.$ac_ext
33671 cat >>conftest.$ac_ext <<_ACEOF
33672 /* end confdefs.h.  */
33673 $ac_includes_default
33674 typedef uintptr_t ac__type_new_;
33675 int
33676 main ()
33677 {
33678 if ((ac__type_new_ *) 0)
33679   return 0;
33680 if (sizeof (ac__type_new_))
33681   return 0;
33682   ;
33683   return 0;
33684 }
33685 _ACEOF
33686 rm -f conftest.$ac_objext
33687 if { (ac_try="$ac_compile"
33688 case "(($ac_try" in
33689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33690   *) ac_try_echo=$ac_try;;
33691 esac
33692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33693   (eval "$ac_compile") 2>conftest.er1
33694   ac_status=$?
33695   grep -v '^ *+' conftest.er1 >conftest.err
33696   rm -f conftest.er1
33697   cat conftest.err >&5
33698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33699   (exit $ac_status); } && {
33700          test -z "$ac_c_werror_flag" ||
33701          test ! -s conftest.err
33702        } && test -s conftest.$ac_objext; then
33703   ac_cv_type_uintptr_t=yes
33704 else
33705   echo "$as_me: failed program was:" >&5
33706 sed 's/^/| /' conftest.$ac_ext >&5
33707
33708         ac_cv_type_uintptr_t=no
33709 fi
33710
33711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33712 fi
33713 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33714 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33715 if test $ac_cv_type_uintptr_t = yes; then
33716
33717 cat >>confdefs.h <<\_ACEOF
33718 #define HAVE_UINTPTR_T 1
33719 _ACEOF
33720
33721 else
33722   for ac_type in 'unsigned int' 'unsigned long int' \
33723         'unsigned long long int'; do
33724        cat >conftest.$ac_ext <<_ACEOF
33725 /* confdefs.h.  */
33726 _ACEOF
33727 cat confdefs.h >>conftest.$ac_ext
33728 cat >>conftest.$ac_ext <<_ACEOF
33729 /* end confdefs.h.  */
33730 $ac_includes_default
33731 int
33732 main ()
33733 {
33734 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33735 test_array [0] = 0
33736
33737   ;
33738   return 0;
33739 }
33740 _ACEOF
33741 rm -f conftest.$ac_objext
33742 if { (ac_try="$ac_compile"
33743 case "(($ac_try" in
33744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33745   *) ac_try_echo=$ac_try;;
33746 esac
33747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33748   (eval "$ac_compile") 2>conftest.er1
33749   ac_status=$?
33750   grep -v '^ *+' conftest.er1 >conftest.err
33751   rm -f conftest.er1
33752   cat conftest.err >&5
33753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754   (exit $ac_status); } && {
33755          test -z "$ac_c_werror_flag" ||
33756          test ! -s conftest.err
33757        } && test -s conftest.$ac_objext; then
33758
33759 cat >>confdefs.h <<_ACEOF
33760 #define uintptr_t $ac_type
33761 _ACEOF
33762
33763           ac_type=
33764 else
33765   echo "$as_me: failed program was:" >&5
33766 sed 's/^/| /' conftest.$ac_ext >&5
33767
33768
33769 fi
33770
33771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33772        test -z "$ac_type" && break
33773      done
33774 fi
33775
33776
33777 { echo "$as_me:$LINENO: checking for ino_t" >&5
33778 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33779 if test "${ac_cv_type_ino_t+set}" = set; then
33780   echo $ECHO_N "(cached) $ECHO_C" >&6
33781 else
33782   cat >conftest.$ac_ext <<_ACEOF
33783 /* confdefs.h.  */
33784 _ACEOF
33785 cat confdefs.h >>conftest.$ac_ext
33786 cat >>conftest.$ac_ext <<_ACEOF
33787 /* end confdefs.h.  */
33788 $ac_includes_default
33789 typedef ino_t ac__type_new_;
33790 int
33791 main ()
33792 {
33793 if ((ac__type_new_ *) 0)
33794   return 0;
33795 if (sizeof (ac__type_new_))
33796   return 0;
33797   ;
33798   return 0;
33799 }
33800 _ACEOF
33801 rm -f conftest.$ac_objext
33802 if { (ac_try="$ac_compile"
33803 case "(($ac_try" in
33804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33805   *) ac_try_echo=$ac_try;;
33806 esac
33807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33808   (eval "$ac_compile") 2>conftest.er1
33809   ac_status=$?
33810   grep -v '^ *+' conftest.er1 >conftest.err
33811   rm -f conftest.er1
33812   cat conftest.err >&5
33813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814   (exit $ac_status); } && {
33815          test -z "$ac_c_werror_flag" ||
33816          test ! -s conftest.err
33817        } && test -s conftest.$ac_objext; then
33818   ac_cv_type_ino_t=yes
33819 else
33820   echo "$as_me: failed program was:" >&5
33821 sed 's/^/| /' conftest.$ac_ext >&5
33822
33823         ac_cv_type_ino_t=no
33824 fi
33825
33826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33827 fi
33828 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33829 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33830 if test $ac_cv_type_ino_t = yes; then
33831   :
33832 else
33833
33834 cat >>confdefs.h <<_ACEOF
33835 #define ino_t unsigned long
33836 _ACEOF
33837
33838 fi
33839
33840 { echo "$as_me:$LINENO: checking for dev_t" >&5
33841 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33842 if test "${ac_cv_type_dev_t+set}" = set; then
33843   echo $ECHO_N "(cached) $ECHO_C" >&6
33844 else
33845   cat >conftest.$ac_ext <<_ACEOF
33846 /* confdefs.h.  */
33847 _ACEOF
33848 cat confdefs.h >>conftest.$ac_ext
33849 cat >>conftest.$ac_ext <<_ACEOF
33850 /* end confdefs.h.  */
33851 $ac_includes_default
33852 typedef dev_t ac__type_new_;
33853 int
33854 main ()
33855 {
33856 if ((ac__type_new_ *) 0)
33857   return 0;
33858 if (sizeof (ac__type_new_))
33859   return 0;
33860   ;
33861   return 0;
33862 }
33863 _ACEOF
33864 rm -f conftest.$ac_objext
33865 if { (ac_try="$ac_compile"
33866 case "(($ac_try" in
33867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33868   *) ac_try_echo=$ac_try;;
33869 esac
33870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33871   (eval "$ac_compile") 2>conftest.er1
33872   ac_status=$?
33873   grep -v '^ *+' conftest.er1 >conftest.err
33874   rm -f conftest.er1
33875   cat conftest.err >&5
33876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33877   (exit $ac_status); } && {
33878          test -z "$ac_c_werror_flag" ||
33879          test ! -s conftest.err
33880        } && test -s conftest.$ac_objext; then
33881   ac_cv_type_dev_t=yes
33882 else
33883   echo "$as_me: failed program was:" >&5
33884 sed 's/^/| /' conftest.$ac_ext >&5
33885
33886         ac_cv_type_dev_t=no
33887 fi
33888
33889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33890 fi
33891 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33892 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33893 if test $ac_cv_type_dev_t = yes; then
33894   :
33895 else
33896
33897 cat >>confdefs.h <<_ACEOF
33898 #define dev_t unsigned long
33899 _ACEOF
33900
33901 fi
33902
33903 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33904 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33905 if test "${ac_cv_type_daddr_t+set}" = set; then
33906   echo $ECHO_N "(cached) $ECHO_C" >&6
33907 else
33908   cat >conftest.$ac_ext <<_ACEOF
33909 /* confdefs.h.  */
33910 _ACEOF
33911 cat confdefs.h >>conftest.$ac_ext
33912 cat >>conftest.$ac_ext <<_ACEOF
33913 /* end confdefs.h.  */
33914 $ac_includes_default
33915 typedef daddr_t ac__type_new_;
33916 int
33917 main ()
33918 {
33919 if ((ac__type_new_ *) 0)
33920   return 0;
33921 if (sizeof (ac__type_new_))
33922   return 0;
33923   ;
33924   return 0;
33925 }
33926 _ACEOF
33927 rm -f conftest.$ac_objext
33928 if { (ac_try="$ac_compile"
33929 case "(($ac_try" in
33930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33931   *) ac_try_echo=$ac_try;;
33932 esac
33933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33934   (eval "$ac_compile") 2>conftest.er1
33935   ac_status=$?
33936   grep -v '^ *+' conftest.er1 >conftest.err
33937   rm -f conftest.er1
33938   cat conftest.err >&5
33939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33940   (exit $ac_status); } && {
33941          test -z "$ac_c_werror_flag" ||
33942          test ! -s conftest.err
33943        } && test -s conftest.$ac_objext; then
33944   ac_cv_type_daddr_t=yes
33945 else
33946   echo "$as_me: failed program was:" >&5
33947 sed 's/^/| /' conftest.$ac_ext >&5
33948
33949         ac_cv_type_daddr_t=no
33950 fi
33951
33952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33953 fi
33954 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33955 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33956 if test $ac_cv_type_daddr_t = yes; then
33957   :
33958 else
33959
33960 cat >>confdefs.h <<_ACEOF
33961 #define daddr_t long
33962 _ACEOF
33963
33964 fi
33965
33966 { echo "$as_me:$LINENO: checking for major_t" >&5
33967 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33968 if test "${ac_cv_type_major_t+set}" = set; then
33969   echo $ECHO_N "(cached) $ECHO_C" >&6
33970 else
33971   cat >conftest.$ac_ext <<_ACEOF
33972 /* confdefs.h.  */
33973 _ACEOF
33974 cat confdefs.h >>conftest.$ac_ext
33975 cat >>conftest.$ac_ext <<_ACEOF
33976 /* end confdefs.h.  */
33977 $ac_includes_default
33978 typedef major_t ac__type_new_;
33979 int
33980 main ()
33981 {
33982 if ((ac__type_new_ *) 0)
33983   return 0;
33984 if (sizeof (ac__type_new_))
33985   return 0;
33986   ;
33987   return 0;
33988 }
33989 _ACEOF
33990 rm -f conftest.$ac_objext
33991 if { (ac_try="$ac_compile"
33992 case "(($ac_try" in
33993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33994   *) ac_try_echo=$ac_try;;
33995 esac
33996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33997   (eval "$ac_compile") 2>conftest.er1
33998   ac_status=$?
33999   grep -v '^ *+' conftest.er1 >conftest.err
34000   rm -f conftest.er1
34001   cat conftest.err >&5
34002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34003   (exit $ac_status); } && {
34004          test -z "$ac_c_werror_flag" ||
34005          test ! -s conftest.err
34006        } && test -s conftest.$ac_objext; then
34007   ac_cv_type_major_t=yes
34008 else
34009   echo "$as_me: failed program was:" >&5
34010 sed 's/^/| /' conftest.$ac_ext >&5
34011
34012         ac_cv_type_major_t=no
34013 fi
34014
34015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34016 fi
34017 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34018 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34019 if test $ac_cv_type_major_t = yes; then
34020   :
34021 else
34022
34023 cat >>confdefs.h <<_ACEOF
34024 #define major_t int
34025 _ACEOF
34026
34027 fi
34028
34029 { echo "$as_me:$LINENO: checking for minor_t" >&5
34030 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34031 if test "${ac_cv_type_minor_t+set}" = set; then
34032   echo $ECHO_N "(cached) $ECHO_C" >&6
34033 else
34034   cat >conftest.$ac_ext <<_ACEOF
34035 /* confdefs.h.  */
34036 _ACEOF
34037 cat confdefs.h >>conftest.$ac_ext
34038 cat >>conftest.$ac_ext <<_ACEOF
34039 /* end confdefs.h.  */
34040 $ac_includes_default
34041 typedef minor_t ac__type_new_;
34042 int
34043 main ()
34044 {
34045 if ((ac__type_new_ *) 0)
34046   return 0;
34047 if (sizeof (ac__type_new_))
34048   return 0;
34049   ;
34050   return 0;
34051 }
34052 _ACEOF
34053 rm -f conftest.$ac_objext
34054 if { (ac_try="$ac_compile"
34055 case "(($ac_try" in
34056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34057   *) ac_try_echo=$ac_try;;
34058 esac
34059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34060   (eval "$ac_compile") 2>conftest.er1
34061   ac_status=$?
34062   grep -v '^ *+' conftest.er1 >conftest.err
34063   rm -f conftest.er1
34064   cat conftest.err >&5
34065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066   (exit $ac_status); } && {
34067          test -z "$ac_c_werror_flag" ||
34068          test ! -s conftest.err
34069        } && test -s conftest.$ac_objext; then
34070   ac_cv_type_minor_t=yes
34071 else
34072   echo "$as_me: failed program was:" >&5
34073 sed 's/^/| /' conftest.$ac_ext >&5
34074
34075         ac_cv_type_minor_t=no
34076 fi
34077
34078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34079 fi
34080 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34081 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34082 if test $ac_cv_type_minor_t = yes; then
34083   :
34084 else
34085
34086 cat >>confdefs.h <<_ACEOF
34087 #define minor_t int
34088 _ACEOF
34089
34090 fi
34091
34092 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34093 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34094 if test "${ac_cv_type_ssize_t+set}" = set; then
34095   echo $ECHO_N "(cached) $ECHO_C" >&6
34096 else
34097   cat >conftest.$ac_ext <<_ACEOF
34098 /* confdefs.h.  */
34099 _ACEOF
34100 cat confdefs.h >>conftest.$ac_ext
34101 cat >>conftest.$ac_ext <<_ACEOF
34102 /* end confdefs.h.  */
34103 $ac_includes_default
34104 typedef ssize_t ac__type_new_;
34105 int
34106 main ()
34107 {
34108 if ((ac__type_new_ *) 0)
34109   return 0;
34110 if (sizeof (ac__type_new_))
34111   return 0;
34112   ;
34113   return 0;
34114 }
34115 _ACEOF
34116 rm -f conftest.$ac_objext
34117 if { (ac_try="$ac_compile"
34118 case "(($ac_try" in
34119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34120   *) ac_try_echo=$ac_try;;
34121 esac
34122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34123   (eval "$ac_compile") 2>conftest.er1
34124   ac_status=$?
34125   grep -v '^ *+' conftest.er1 >conftest.err
34126   rm -f conftest.er1
34127   cat conftest.err >&5
34128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129   (exit $ac_status); } && {
34130          test -z "$ac_c_werror_flag" ||
34131          test ! -s conftest.err
34132        } && test -s conftest.$ac_objext; then
34133   ac_cv_type_ssize_t=yes
34134 else
34135   echo "$as_me: failed program was:" >&5
34136 sed 's/^/| /' conftest.$ac_ext >&5
34137
34138         ac_cv_type_ssize_t=no
34139 fi
34140
34141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34142 fi
34143 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34144 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34145 if test $ac_cv_type_ssize_t = yes; then
34146   :
34147 else
34148
34149 cat >>confdefs.h <<_ACEOF
34150 #define ssize_t int
34151 _ACEOF
34152
34153 fi
34154
34155 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34156 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34157 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34158   echo $ECHO_N "(cached) $ECHO_C" >&6
34159 else
34160   cat >conftest.$ac_ext <<_ACEOF
34161 /* confdefs.h.  */
34162 _ACEOF
34163 cat confdefs.h >>conftest.$ac_ext
34164 cat >>conftest.$ac_ext <<_ACEOF
34165 /* end confdefs.h.  */
34166 $ac_includes_default
34167 int
34168 main ()
34169 {
34170 static struct stat ac_aggr;
34171 if (ac_aggr.st_blocks)
34172 return 0;
34173   ;
34174   return 0;
34175 }
34176 _ACEOF
34177 rm -f conftest.$ac_objext
34178 if { (ac_try="$ac_compile"
34179 case "(($ac_try" in
34180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34181   *) ac_try_echo=$ac_try;;
34182 esac
34183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34184   (eval "$ac_compile") 2>conftest.er1
34185   ac_status=$?
34186   grep -v '^ *+' conftest.er1 >conftest.err
34187   rm -f conftest.er1
34188   cat conftest.err >&5
34189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190   (exit $ac_status); } && {
34191          test -z "$ac_c_werror_flag" ||
34192          test ! -s conftest.err
34193        } && test -s conftest.$ac_objext; then
34194   ac_cv_member_struct_stat_st_blocks=yes
34195 else
34196   echo "$as_me: failed program was:" >&5
34197 sed 's/^/| /' conftest.$ac_ext >&5
34198
34199         cat >conftest.$ac_ext <<_ACEOF
34200 /* confdefs.h.  */
34201 _ACEOF
34202 cat confdefs.h >>conftest.$ac_ext
34203 cat >>conftest.$ac_ext <<_ACEOF
34204 /* end confdefs.h.  */
34205 $ac_includes_default
34206 int
34207 main ()
34208 {
34209 static struct stat ac_aggr;
34210 if (sizeof ac_aggr.st_blocks)
34211 return 0;
34212   ;
34213   return 0;
34214 }
34215 _ACEOF
34216 rm -f conftest.$ac_objext
34217 if { (ac_try="$ac_compile"
34218 case "(($ac_try" in
34219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34220   *) ac_try_echo=$ac_try;;
34221 esac
34222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34223   (eval "$ac_compile") 2>conftest.er1
34224   ac_status=$?
34225   grep -v '^ *+' conftest.er1 >conftest.err
34226   rm -f conftest.er1
34227   cat conftest.err >&5
34228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34229   (exit $ac_status); } && {
34230          test -z "$ac_c_werror_flag" ||
34231          test ! -s conftest.err
34232        } && test -s conftest.$ac_objext; then
34233   ac_cv_member_struct_stat_st_blocks=yes
34234 else
34235   echo "$as_me: failed program was:" >&5
34236 sed 's/^/| /' conftest.$ac_ext >&5
34237
34238         ac_cv_member_struct_stat_st_blocks=no
34239 fi
34240
34241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34242 fi
34243
34244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34245 fi
34246 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34247 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34248 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34249
34250 cat >>confdefs.h <<_ACEOF
34251 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34252 _ACEOF
34253
34254
34255 cat >>confdefs.h <<\_ACEOF
34256 #define HAVE_ST_BLOCKS 1
34257 _ACEOF
34258
34259 else
34260   case " $LIBOBJS " in
34261   *" fileblocks.$ac_objext "* ) ;;
34262   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34263  ;;
34264 esac
34265
34266 fi
34267
34268
34269 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34270 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34271 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34272   echo $ECHO_N "(cached) $ECHO_C" >&6
34273 else
34274   cat >conftest.$ac_ext <<_ACEOF
34275 /* confdefs.h.  */
34276 _ACEOF
34277 cat confdefs.h >>conftest.$ac_ext
34278 cat >>conftest.$ac_ext <<_ACEOF
34279 /* end confdefs.h.  */
34280 $ac_includes_default
34281 int
34282 main ()
34283 {
34284 static struct stat ac_aggr;
34285 if (ac_aggr.st_rdev)
34286 return 0;
34287   ;
34288   return 0;
34289 }
34290 _ACEOF
34291 rm -f conftest.$ac_objext
34292 if { (ac_try="$ac_compile"
34293 case "(($ac_try" in
34294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34295   *) ac_try_echo=$ac_try;;
34296 esac
34297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34298   (eval "$ac_compile") 2>conftest.er1
34299   ac_status=$?
34300   grep -v '^ *+' conftest.er1 >conftest.err
34301   rm -f conftest.er1
34302   cat conftest.err >&5
34303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34304   (exit $ac_status); } && {
34305          test -z "$ac_c_werror_flag" ||
34306          test ! -s conftest.err
34307        } && test -s conftest.$ac_objext; then
34308   ac_cv_member_struct_stat_st_rdev=yes
34309 else
34310   echo "$as_me: failed program was:" >&5
34311 sed 's/^/| /' conftest.$ac_ext >&5
34312
34313         cat >conftest.$ac_ext <<_ACEOF
34314 /* confdefs.h.  */
34315 _ACEOF
34316 cat confdefs.h >>conftest.$ac_ext
34317 cat >>conftest.$ac_ext <<_ACEOF
34318 /* end confdefs.h.  */
34319 $ac_includes_default
34320 int
34321 main ()
34322 {
34323 static struct stat ac_aggr;
34324 if (sizeof ac_aggr.st_rdev)
34325 return 0;
34326   ;
34327   return 0;
34328 }
34329 _ACEOF
34330 rm -f conftest.$ac_objext
34331 if { (ac_try="$ac_compile"
34332 case "(($ac_try" in
34333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34334   *) ac_try_echo=$ac_try;;
34335 esac
34336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34337   (eval "$ac_compile") 2>conftest.er1
34338   ac_status=$?
34339   grep -v '^ *+' conftest.er1 >conftest.err
34340   rm -f conftest.er1
34341   cat conftest.err >&5
34342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34343   (exit $ac_status); } && {
34344          test -z "$ac_c_werror_flag" ||
34345          test ! -s conftest.err
34346        } && test -s conftest.$ac_objext; then
34347   ac_cv_member_struct_stat_st_rdev=yes
34348 else
34349   echo "$as_me: failed program was:" >&5
34350 sed 's/^/| /' conftest.$ac_ext >&5
34351
34352         ac_cv_member_struct_stat_st_rdev=no
34353 fi
34354
34355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34356 fi
34357
34358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34359 fi
34360 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34361 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34362 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34363
34364 cat >>confdefs.h <<_ACEOF
34365 #define HAVE_STRUCT_STAT_ST_RDEV 1
34366 _ACEOF
34367
34368
34369 cat >>confdefs.h <<\_ACEOF
34370 #define HAVE_ST_RDEV 1
34371 _ACEOF
34372
34373 fi
34374
34375
34376 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34377 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34378 if test "${ac_cv_struct_tm+set}" = set; then
34379   echo $ECHO_N "(cached) $ECHO_C" >&6
34380 else
34381   cat >conftest.$ac_ext <<_ACEOF
34382 /* confdefs.h.  */
34383 _ACEOF
34384 cat confdefs.h >>conftest.$ac_ext
34385 cat >>conftest.$ac_ext <<_ACEOF
34386 /* end confdefs.h.  */
34387 #include <sys/types.h>
34388 #include <time.h>
34389
34390 int
34391 main ()
34392 {
34393 struct tm tm;
34394                                      int *p = &tm.tm_sec;
34395                                      return !p;
34396   ;
34397   return 0;
34398 }
34399 _ACEOF
34400 rm -f conftest.$ac_objext
34401 if { (ac_try="$ac_compile"
34402 case "(($ac_try" in
34403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34404   *) ac_try_echo=$ac_try;;
34405 esac
34406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34407   (eval "$ac_compile") 2>conftest.er1
34408   ac_status=$?
34409   grep -v '^ *+' conftest.er1 >conftest.err
34410   rm -f conftest.er1
34411   cat conftest.err >&5
34412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34413   (exit $ac_status); } && {
34414          test -z "$ac_c_werror_flag" ||
34415          test ! -s conftest.err
34416        } && test -s conftest.$ac_objext; then
34417   ac_cv_struct_tm=time.h
34418 else
34419   echo "$as_me: failed program was:" >&5
34420 sed 's/^/| /' conftest.$ac_ext >&5
34421
34422         ac_cv_struct_tm=sys/time.h
34423 fi
34424
34425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34426 fi
34427 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34428 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34429 if test $ac_cv_struct_tm = sys/time.h; then
34430
34431 cat >>confdefs.h <<\_ACEOF
34432 #define TM_IN_SYS_TIME 1
34433 _ACEOF
34434
34435 fi
34436
34437 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34438 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34439 if test "${ac_cv_c_const+set}" = set; then
34440   echo $ECHO_N "(cached) $ECHO_C" >&6
34441 else
34442   cat >conftest.$ac_ext <<_ACEOF
34443 /* confdefs.h.  */
34444 _ACEOF
34445 cat confdefs.h >>conftest.$ac_ext
34446 cat >>conftest.$ac_ext <<_ACEOF
34447 /* end confdefs.h.  */
34448
34449 int
34450 main ()
34451 {
34452 /* FIXME: Include the comments suggested by Paul. */
34453 #ifndef __cplusplus
34454   /* Ultrix mips cc rejects this.  */
34455   typedef int charset[2];
34456   const charset cs;
34457   /* SunOS 4.1.1 cc rejects this.  */
34458   char const *const *pcpcc;
34459   char **ppc;
34460   /* NEC SVR4.0.2 mips cc rejects this.  */
34461   struct point {int x, y;};
34462   static struct point const zero = {0,0};
34463   /* AIX XL C 1.02.0.0 rejects this.
34464      It does not let you subtract one const X* pointer from another in
34465      an arm of an if-expression whose if-part is not a constant
34466      expression */
34467   const char *g = "string";
34468   pcpcc = &g + (g ? g-g : 0);
34469   /* HPUX 7.0 cc rejects these. */
34470   ++pcpcc;
34471   ppc = (char**) pcpcc;
34472   pcpcc = (char const *const *) ppc;
34473   { /* SCO 3.2v4 cc rejects this.  */
34474     char *t;
34475     char const *s = 0 ? (char *) 0 : (char const *) 0;
34476
34477     *t++ = 0;
34478     if (s) return 0;
34479   }
34480   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34481     int x[] = {25, 17};
34482     const int *foo = &x[0];
34483     ++foo;
34484   }
34485   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34486     typedef const int *iptr;
34487     iptr p = 0;
34488     ++p;
34489   }
34490   { /* AIX XL C 1.02.0.0 rejects this saying
34491        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34492     struct s { int j; const int *ap[3]; };
34493     struct s *b; b->j = 5;
34494   }
34495   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34496     const int foo = 10;
34497     if (!foo) return 0;
34498   }
34499   return !cs[0] && !zero.x;
34500 #endif
34501
34502   ;
34503   return 0;
34504 }
34505 _ACEOF
34506 rm -f conftest.$ac_objext
34507 if { (ac_try="$ac_compile"
34508 case "(($ac_try" in
34509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34510   *) ac_try_echo=$ac_try;;
34511 esac
34512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34513   (eval "$ac_compile") 2>conftest.er1
34514   ac_status=$?
34515   grep -v '^ *+' conftest.er1 >conftest.err
34516   rm -f conftest.er1
34517   cat conftest.err >&5
34518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519   (exit $ac_status); } && {
34520          test -z "$ac_c_werror_flag" ||
34521          test ! -s conftest.err
34522        } && test -s conftest.$ac_objext; then
34523   ac_cv_c_const=yes
34524 else
34525   echo "$as_me: failed program was:" >&5
34526 sed 's/^/| /' conftest.$ac_ext >&5
34527
34528         ac_cv_c_const=no
34529 fi
34530
34531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34532 fi
34533 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34534 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34535 if test $ac_cv_c_const = no; then
34536
34537 cat >>confdefs.h <<\_ACEOF
34538 #define const
34539 _ACEOF
34540
34541 fi
34542
34543
34544 { echo "$as_me:$LINENO: checking for char" >&5
34545 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34546 if test "${ac_cv_type_char+set}" = set; then
34547   echo $ECHO_N "(cached) $ECHO_C" >&6
34548 else
34549   cat >conftest.$ac_ext <<_ACEOF
34550 /* confdefs.h.  */
34551 _ACEOF
34552 cat confdefs.h >>conftest.$ac_ext
34553 cat >>conftest.$ac_ext <<_ACEOF
34554 /* end confdefs.h.  */
34555 $ac_includes_default
34556 typedef char ac__type_new_;
34557 int
34558 main ()
34559 {
34560 if ((ac__type_new_ *) 0)
34561   return 0;
34562 if (sizeof (ac__type_new_))
34563   return 0;
34564   ;
34565   return 0;
34566 }
34567 _ACEOF
34568 rm -f conftest.$ac_objext
34569 if { (ac_try="$ac_compile"
34570 case "(($ac_try" in
34571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34572   *) ac_try_echo=$ac_try;;
34573 esac
34574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34575   (eval "$ac_compile") 2>conftest.er1
34576   ac_status=$?
34577   grep -v '^ *+' conftest.er1 >conftest.err
34578   rm -f conftest.er1
34579   cat conftest.err >&5
34580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34581   (exit $ac_status); } && {
34582          test -z "$ac_c_werror_flag" ||
34583          test ! -s conftest.err
34584        } && test -s conftest.$ac_objext; then
34585   ac_cv_type_char=yes
34586 else
34587   echo "$as_me: failed program was:" >&5
34588 sed 's/^/| /' conftest.$ac_ext >&5
34589
34590         ac_cv_type_char=no
34591 fi
34592
34593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34594 fi
34595 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34596 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34597
34598 # The cast to long int works around a bug in the HP C Compiler
34599 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34600 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34601 # This bug is HP SR number 8606223364.
34602 { echo "$as_me:$LINENO: checking size of char" >&5
34603 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34604 if test "${ac_cv_sizeof_char+set}" = set; then
34605   echo $ECHO_N "(cached) $ECHO_C" >&6
34606 else
34607   if test "$cross_compiling" = yes; then
34608   # Depending upon the size, compute the lo and hi bounds.
34609 cat >conftest.$ac_ext <<_ACEOF
34610 /* confdefs.h.  */
34611 _ACEOF
34612 cat confdefs.h >>conftest.$ac_ext
34613 cat >>conftest.$ac_ext <<_ACEOF
34614 /* end confdefs.h.  */
34615 $ac_includes_default
34616    typedef char ac__type_sizeof_;
34617 int
34618 main ()
34619 {
34620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34621 test_array [0] = 0
34622
34623   ;
34624   return 0;
34625 }
34626 _ACEOF
34627 rm -f conftest.$ac_objext
34628 if { (ac_try="$ac_compile"
34629 case "(($ac_try" in
34630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34631   *) ac_try_echo=$ac_try;;
34632 esac
34633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34634   (eval "$ac_compile") 2>conftest.er1
34635   ac_status=$?
34636   grep -v '^ *+' conftest.er1 >conftest.err
34637   rm -f conftest.er1
34638   cat conftest.err >&5
34639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34640   (exit $ac_status); } && {
34641          test -z "$ac_c_werror_flag" ||
34642          test ! -s conftest.err
34643        } && test -s conftest.$ac_objext; then
34644   ac_lo=0 ac_mid=0
34645   while :; do
34646     cat >conftest.$ac_ext <<_ACEOF
34647 /* confdefs.h.  */
34648 _ACEOF
34649 cat confdefs.h >>conftest.$ac_ext
34650 cat >>conftest.$ac_ext <<_ACEOF
34651 /* end confdefs.h.  */
34652 $ac_includes_default
34653    typedef char ac__type_sizeof_;
34654 int
34655 main ()
34656 {
34657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34658 test_array [0] = 0
34659
34660   ;
34661   return 0;
34662 }
34663 _ACEOF
34664 rm -f conftest.$ac_objext
34665 if { (ac_try="$ac_compile"
34666 case "(($ac_try" in
34667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34668   *) ac_try_echo=$ac_try;;
34669 esac
34670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34671   (eval "$ac_compile") 2>conftest.er1
34672   ac_status=$?
34673   grep -v '^ *+' conftest.er1 >conftest.err
34674   rm -f conftest.er1
34675   cat conftest.err >&5
34676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34677   (exit $ac_status); } && {
34678          test -z "$ac_c_werror_flag" ||
34679          test ! -s conftest.err
34680        } && test -s conftest.$ac_objext; then
34681   ac_hi=$ac_mid; break
34682 else
34683   echo "$as_me: failed program was:" >&5
34684 sed 's/^/| /' conftest.$ac_ext >&5
34685
34686         ac_lo=`expr $ac_mid + 1`
34687                         if test $ac_lo -le $ac_mid; then
34688                           ac_lo= ac_hi=
34689                           break
34690                         fi
34691                         ac_mid=`expr 2 '*' $ac_mid + 1`
34692 fi
34693
34694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34695   done
34696 else
34697   echo "$as_me: failed program was:" >&5
34698 sed 's/^/| /' conftest.$ac_ext >&5
34699
34700         cat >conftest.$ac_ext <<_ACEOF
34701 /* confdefs.h.  */
34702 _ACEOF
34703 cat confdefs.h >>conftest.$ac_ext
34704 cat >>conftest.$ac_ext <<_ACEOF
34705 /* end confdefs.h.  */
34706 $ac_includes_default
34707    typedef char ac__type_sizeof_;
34708 int
34709 main ()
34710 {
34711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34712 test_array [0] = 0
34713
34714   ;
34715   return 0;
34716 }
34717 _ACEOF
34718 rm -f conftest.$ac_objext
34719 if { (ac_try="$ac_compile"
34720 case "(($ac_try" in
34721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34722   *) ac_try_echo=$ac_try;;
34723 esac
34724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34725   (eval "$ac_compile") 2>conftest.er1
34726   ac_status=$?
34727   grep -v '^ *+' conftest.er1 >conftest.err
34728   rm -f conftest.er1
34729   cat conftest.err >&5
34730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34731   (exit $ac_status); } && {
34732          test -z "$ac_c_werror_flag" ||
34733          test ! -s conftest.err
34734        } && test -s conftest.$ac_objext; then
34735   ac_hi=-1 ac_mid=-1
34736   while :; do
34737     cat >conftest.$ac_ext <<_ACEOF
34738 /* confdefs.h.  */
34739 _ACEOF
34740 cat confdefs.h >>conftest.$ac_ext
34741 cat >>conftest.$ac_ext <<_ACEOF
34742 /* end confdefs.h.  */
34743 $ac_includes_default
34744    typedef char ac__type_sizeof_;
34745 int
34746 main ()
34747 {
34748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34749 test_array [0] = 0
34750
34751   ;
34752   return 0;
34753 }
34754 _ACEOF
34755 rm -f conftest.$ac_objext
34756 if { (ac_try="$ac_compile"
34757 case "(($ac_try" in
34758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34759   *) ac_try_echo=$ac_try;;
34760 esac
34761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34762   (eval "$ac_compile") 2>conftest.er1
34763   ac_status=$?
34764   grep -v '^ *+' conftest.er1 >conftest.err
34765   rm -f conftest.er1
34766   cat conftest.err >&5
34767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34768   (exit $ac_status); } && {
34769          test -z "$ac_c_werror_flag" ||
34770          test ! -s conftest.err
34771        } && test -s conftest.$ac_objext; then
34772   ac_lo=$ac_mid; break
34773 else
34774   echo "$as_me: failed program was:" >&5
34775 sed 's/^/| /' conftest.$ac_ext >&5
34776
34777         ac_hi=`expr '(' $ac_mid ')' - 1`
34778                         if test $ac_mid -le $ac_hi; then
34779                           ac_lo= ac_hi=
34780                           break
34781                         fi
34782                         ac_mid=`expr 2 '*' $ac_mid`
34783 fi
34784
34785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34786   done
34787 else
34788   echo "$as_me: failed program was:" >&5
34789 sed 's/^/| /' conftest.$ac_ext >&5
34790
34791         ac_lo= ac_hi=
34792 fi
34793
34794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34795 fi
34796
34797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34798 # Binary search between lo and hi bounds.
34799 while test "x$ac_lo" != "x$ac_hi"; do
34800   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34801   cat >conftest.$ac_ext <<_ACEOF
34802 /* confdefs.h.  */
34803 _ACEOF
34804 cat confdefs.h >>conftest.$ac_ext
34805 cat >>conftest.$ac_ext <<_ACEOF
34806 /* end confdefs.h.  */
34807 $ac_includes_default
34808    typedef char ac__type_sizeof_;
34809 int
34810 main ()
34811 {
34812 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34813 test_array [0] = 0
34814
34815   ;
34816   return 0;
34817 }
34818 _ACEOF
34819 rm -f conftest.$ac_objext
34820 if { (ac_try="$ac_compile"
34821 case "(($ac_try" in
34822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34823   *) ac_try_echo=$ac_try;;
34824 esac
34825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34826   (eval "$ac_compile") 2>conftest.er1
34827   ac_status=$?
34828   grep -v '^ *+' conftest.er1 >conftest.err
34829   rm -f conftest.er1
34830   cat conftest.err >&5
34831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832   (exit $ac_status); } && {
34833          test -z "$ac_c_werror_flag" ||
34834          test ! -s conftest.err
34835        } && test -s conftest.$ac_objext; then
34836   ac_hi=$ac_mid
34837 else
34838   echo "$as_me: failed program was:" >&5
34839 sed 's/^/| /' conftest.$ac_ext >&5
34840
34841         ac_lo=`expr '(' $ac_mid ')' + 1`
34842 fi
34843
34844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34845 done
34846 case $ac_lo in
34847 ?*) ac_cv_sizeof_char=$ac_lo;;
34848 '') if test "$ac_cv_type_char" = yes; then
34849      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34850 See \`config.log' for more details." >&5
34851 echo "$as_me: error: cannot compute sizeof (char)
34852 See \`config.log' for more details." >&2;}
34853    { (exit 77); exit 77; }; }
34854    else
34855      ac_cv_sizeof_char=0
34856    fi ;;
34857 esac
34858 else
34859   cat >conftest.$ac_ext <<_ACEOF
34860 /* confdefs.h.  */
34861 _ACEOF
34862 cat confdefs.h >>conftest.$ac_ext
34863 cat >>conftest.$ac_ext <<_ACEOF
34864 /* end confdefs.h.  */
34865 $ac_includes_default
34866    typedef char ac__type_sizeof_;
34867 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34868 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34869 #include <stdio.h>
34870 #include <stdlib.h>
34871 int
34872 main ()
34873 {
34874
34875   FILE *f = fopen ("conftest.val", "w");
34876   if (! f)
34877     return 1;
34878   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34879     {
34880       long int i = longval ();
34881       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34882         return 1;
34883       fprintf (f, "%ld\n", i);
34884     }
34885   else
34886     {
34887       unsigned long int i = ulongval ();
34888       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34889         return 1;
34890       fprintf (f, "%lu\n", i);
34891     }
34892   return ferror (f) || fclose (f) != 0;
34893
34894   ;
34895   return 0;
34896 }
34897 _ACEOF
34898 rm -f conftest$ac_exeext
34899 if { (ac_try="$ac_link"
34900 case "(($ac_try" in
34901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34902   *) ac_try_echo=$ac_try;;
34903 esac
34904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34905   (eval "$ac_link") 2>&5
34906   ac_status=$?
34907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34909   { (case "(($ac_try" in
34910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34911   *) ac_try_echo=$ac_try;;
34912 esac
34913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34914   (eval "$ac_try") 2>&5
34915   ac_status=$?
34916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917   (exit $ac_status); }; }; then
34918   ac_cv_sizeof_char=`cat conftest.val`
34919 else
34920   echo "$as_me: program exited with status $ac_status" >&5
34921 echo "$as_me: failed program was:" >&5
34922 sed 's/^/| /' conftest.$ac_ext >&5
34923
34924 ( exit $ac_status )
34925 if test "$ac_cv_type_char" = yes; then
34926      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34927 See \`config.log' for more details." >&5
34928 echo "$as_me: error: cannot compute sizeof (char)
34929 See \`config.log' for more details." >&2;}
34930    { (exit 77); exit 77; }; }
34931    else
34932      ac_cv_sizeof_char=0
34933    fi
34934 fi
34935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34936 fi
34937 rm -f conftest.val
34938 fi
34939 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34940 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34941
34942
34943
34944 cat >>confdefs.h <<_ACEOF
34945 #define SIZEOF_CHAR $ac_cv_sizeof_char
34946 _ACEOF
34947
34948
34949 { echo "$as_me:$LINENO: checking for short int" >&5
34950 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34951 if test "${ac_cv_type_short_int+set}" = set; then
34952   echo $ECHO_N "(cached) $ECHO_C" >&6
34953 else
34954   cat >conftest.$ac_ext <<_ACEOF
34955 /* confdefs.h.  */
34956 _ACEOF
34957 cat confdefs.h >>conftest.$ac_ext
34958 cat >>conftest.$ac_ext <<_ACEOF
34959 /* end confdefs.h.  */
34960 $ac_includes_default
34961 typedef short int ac__type_new_;
34962 int
34963 main ()
34964 {
34965 if ((ac__type_new_ *) 0)
34966   return 0;
34967 if (sizeof (ac__type_new_))
34968   return 0;
34969   ;
34970   return 0;
34971 }
34972 _ACEOF
34973 rm -f conftest.$ac_objext
34974 if { (ac_try="$ac_compile"
34975 case "(($ac_try" in
34976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34977   *) ac_try_echo=$ac_try;;
34978 esac
34979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34980   (eval "$ac_compile") 2>conftest.er1
34981   ac_status=$?
34982   grep -v '^ *+' conftest.er1 >conftest.err
34983   rm -f conftest.er1
34984   cat conftest.err >&5
34985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986   (exit $ac_status); } && {
34987          test -z "$ac_c_werror_flag" ||
34988          test ! -s conftest.err
34989        } && test -s conftest.$ac_objext; then
34990   ac_cv_type_short_int=yes
34991 else
34992   echo "$as_me: failed program was:" >&5
34993 sed 's/^/| /' conftest.$ac_ext >&5
34994
34995         ac_cv_type_short_int=no
34996 fi
34997
34998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34999 fi
35000 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35001 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35002
35003 # The cast to long int works around a bug in the HP C Compiler
35004 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35005 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35006 # This bug is HP SR number 8606223364.
35007 { echo "$as_me:$LINENO: checking size of short int" >&5
35008 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35009 if test "${ac_cv_sizeof_short_int+set}" = set; then
35010   echo $ECHO_N "(cached) $ECHO_C" >&6
35011 else
35012   if test "$cross_compiling" = yes; then
35013   # Depending upon the size, compute the lo and hi bounds.
35014 cat >conftest.$ac_ext <<_ACEOF
35015 /* confdefs.h.  */
35016 _ACEOF
35017 cat confdefs.h >>conftest.$ac_ext
35018 cat >>conftest.$ac_ext <<_ACEOF
35019 /* end confdefs.h.  */
35020 $ac_includes_default
35021    typedef short int ac__type_sizeof_;
35022 int
35023 main ()
35024 {
35025 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35026 test_array [0] = 0
35027
35028   ;
35029   return 0;
35030 }
35031 _ACEOF
35032 rm -f conftest.$ac_objext
35033 if { (ac_try="$ac_compile"
35034 case "(($ac_try" in
35035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35036   *) ac_try_echo=$ac_try;;
35037 esac
35038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35039   (eval "$ac_compile") 2>conftest.er1
35040   ac_status=$?
35041   grep -v '^ *+' conftest.er1 >conftest.err
35042   rm -f conftest.er1
35043   cat conftest.err >&5
35044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35045   (exit $ac_status); } && {
35046          test -z "$ac_c_werror_flag" ||
35047          test ! -s conftest.err
35048        } && test -s conftest.$ac_objext; then
35049   ac_lo=0 ac_mid=0
35050   while :; do
35051     cat >conftest.$ac_ext <<_ACEOF
35052 /* confdefs.h.  */
35053 _ACEOF
35054 cat confdefs.h >>conftest.$ac_ext
35055 cat >>conftest.$ac_ext <<_ACEOF
35056 /* end confdefs.h.  */
35057 $ac_includes_default
35058    typedef short int ac__type_sizeof_;
35059 int
35060 main ()
35061 {
35062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35063 test_array [0] = 0
35064
35065   ;
35066   return 0;
35067 }
35068 _ACEOF
35069 rm -f conftest.$ac_objext
35070 if { (ac_try="$ac_compile"
35071 case "(($ac_try" in
35072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35073   *) ac_try_echo=$ac_try;;
35074 esac
35075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35076   (eval "$ac_compile") 2>conftest.er1
35077   ac_status=$?
35078   grep -v '^ *+' conftest.er1 >conftest.err
35079   rm -f conftest.er1
35080   cat conftest.err >&5
35081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082   (exit $ac_status); } && {
35083          test -z "$ac_c_werror_flag" ||
35084          test ! -s conftest.err
35085        } && test -s conftest.$ac_objext; then
35086   ac_hi=$ac_mid; break
35087 else
35088   echo "$as_me: failed program was:" >&5
35089 sed 's/^/| /' conftest.$ac_ext >&5
35090
35091         ac_lo=`expr $ac_mid + 1`
35092                         if test $ac_lo -le $ac_mid; then
35093                           ac_lo= ac_hi=
35094                           break
35095                         fi
35096                         ac_mid=`expr 2 '*' $ac_mid + 1`
35097 fi
35098
35099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35100   done
35101 else
35102   echo "$as_me: failed program was:" >&5
35103 sed 's/^/| /' conftest.$ac_ext >&5
35104
35105         cat >conftest.$ac_ext <<_ACEOF
35106 /* confdefs.h.  */
35107 _ACEOF
35108 cat confdefs.h >>conftest.$ac_ext
35109 cat >>conftest.$ac_ext <<_ACEOF
35110 /* end confdefs.h.  */
35111 $ac_includes_default
35112    typedef short int ac__type_sizeof_;
35113 int
35114 main ()
35115 {
35116 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35117 test_array [0] = 0
35118
35119   ;
35120   return 0;
35121 }
35122 _ACEOF
35123 rm -f conftest.$ac_objext
35124 if { (ac_try="$ac_compile"
35125 case "(($ac_try" in
35126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35127   *) ac_try_echo=$ac_try;;
35128 esac
35129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35130   (eval "$ac_compile") 2>conftest.er1
35131   ac_status=$?
35132   grep -v '^ *+' conftest.er1 >conftest.err
35133   rm -f conftest.er1
35134   cat conftest.err >&5
35135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35136   (exit $ac_status); } && {
35137          test -z "$ac_c_werror_flag" ||
35138          test ! -s conftest.err
35139        } && test -s conftest.$ac_objext; then
35140   ac_hi=-1 ac_mid=-1
35141   while :; do
35142     cat >conftest.$ac_ext <<_ACEOF
35143 /* confdefs.h.  */
35144 _ACEOF
35145 cat confdefs.h >>conftest.$ac_ext
35146 cat >>conftest.$ac_ext <<_ACEOF
35147 /* end confdefs.h.  */
35148 $ac_includes_default
35149    typedef short int ac__type_sizeof_;
35150 int
35151 main ()
35152 {
35153 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35154 test_array [0] = 0
35155
35156   ;
35157   return 0;
35158 }
35159 _ACEOF
35160 rm -f conftest.$ac_objext
35161 if { (ac_try="$ac_compile"
35162 case "(($ac_try" in
35163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35164   *) ac_try_echo=$ac_try;;
35165 esac
35166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35167   (eval "$ac_compile") 2>conftest.er1
35168   ac_status=$?
35169   grep -v '^ *+' conftest.er1 >conftest.err
35170   rm -f conftest.er1
35171   cat conftest.err >&5
35172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173   (exit $ac_status); } && {
35174          test -z "$ac_c_werror_flag" ||
35175          test ! -s conftest.err
35176        } && test -s conftest.$ac_objext; then
35177   ac_lo=$ac_mid; break
35178 else
35179   echo "$as_me: failed program was:" >&5
35180 sed 's/^/| /' conftest.$ac_ext >&5
35181
35182         ac_hi=`expr '(' $ac_mid ')' - 1`
35183                         if test $ac_mid -le $ac_hi; then
35184                           ac_lo= ac_hi=
35185                           break
35186                         fi
35187                         ac_mid=`expr 2 '*' $ac_mid`
35188 fi
35189
35190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35191   done
35192 else
35193   echo "$as_me: failed program was:" >&5
35194 sed 's/^/| /' conftest.$ac_ext >&5
35195
35196         ac_lo= ac_hi=
35197 fi
35198
35199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35200 fi
35201
35202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35203 # Binary search between lo and hi bounds.
35204 while test "x$ac_lo" != "x$ac_hi"; do
35205   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35206   cat >conftest.$ac_ext <<_ACEOF
35207 /* confdefs.h.  */
35208 _ACEOF
35209 cat confdefs.h >>conftest.$ac_ext
35210 cat >>conftest.$ac_ext <<_ACEOF
35211 /* end confdefs.h.  */
35212 $ac_includes_default
35213    typedef short int ac__type_sizeof_;
35214 int
35215 main ()
35216 {
35217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35218 test_array [0] = 0
35219
35220   ;
35221   return 0;
35222 }
35223 _ACEOF
35224 rm -f conftest.$ac_objext
35225 if { (ac_try="$ac_compile"
35226 case "(($ac_try" in
35227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35228   *) ac_try_echo=$ac_try;;
35229 esac
35230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35231   (eval "$ac_compile") 2>conftest.er1
35232   ac_status=$?
35233   grep -v '^ *+' conftest.er1 >conftest.err
35234   rm -f conftest.er1
35235   cat conftest.err >&5
35236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237   (exit $ac_status); } && {
35238          test -z "$ac_c_werror_flag" ||
35239          test ! -s conftest.err
35240        } && test -s conftest.$ac_objext; then
35241   ac_hi=$ac_mid
35242 else
35243   echo "$as_me: failed program was:" >&5
35244 sed 's/^/| /' conftest.$ac_ext >&5
35245
35246         ac_lo=`expr '(' $ac_mid ')' + 1`
35247 fi
35248
35249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35250 done
35251 case $ac_lo in
35252 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35253 '') if test "$ac_cv_type_short_int" = yes; then
35254      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35255 See \`config.log' for more details." >&5
35256 echo "$as_me: error: cannot compute sizeof (short int)
35257 See \`config.log' for more details." >&2;}
35258    { (exit 77); exit 77; }; }
35259    else
35260      ac_cv_sizeof_short_int=0
35261    fi ;;
35262 esac
35263 else
35264   cat >conftest.$ac_ext <<_ACEOF
35265 /* confdefs.h.  */
35266 _ACEOF
35267 cat confdefs.h >>conftest.$ac_ext
35268 cat >>conftest.$ac_ext <<_ACEOF
35269 /* end confdefs.h.  */
35270 $ac_includes_default
35271    typedef short int ac__type_sizeof_;
35272 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35273 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35274 #include <stdio.h>
35275 #include <stdlib.h>
35276 int
35277 main ()
35278 {
35279
35280   FILE *f = fopen ("conftest.val", "w");
35281   if (! f)
35282     return 1;
35283   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35284     {
35285       long int i = longval ();
35286       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35287         return 1;
35288       fprintf (f, "%ld\n", i);
35289     }
35290   else
35291     {
35292       unsigned long int i = ulongval ();
35293       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35294         return 1;
35295       fprintf (f, "%lu\n", i);
35296     }
35297   return ferror (f) || fclose (f) != 0;
35298
35299   ;
35300   return 0;
35301 }
35302 _ACEOF
35303 rm -f conftest$ac_exeext
35304 if { (ac_try="$ac_link"
35305 case "(($ac_try" in
35306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35307   *) ac_try_echo=$ac_try;;
35308 esac
35309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35310   (eval "$ac_link") 2>&5
35311   ac_status=$?
35312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35314   { (case "(($ac_try" in
35315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35316   *) ac_try_echo=$ac_try;;
35317 esac
35318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35319   (eval "$ac_try") 2>&5
35320   ac_status=$?
35321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322   (exit $ac_status); }; }; then
35323   ac_cv_sizeof_short_int=`cat conftest.val`
35324 else
35325   echo "$as_me: program exited with status $ac_status" >&5
35326 echo "$as_me: failed program was:" >&5
35327 sed 's/^/| /' conftest.$ac_ext >&5
35328
35329 ( exit $ac_status )
35330 if test "$ac_cv_type_short_int" = yes; then
35331      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35332 See \`config.log' for more details." >&5
35333 echo "$as_me: error: cannot compute sizeof (short int)
35334 See \`config.log' for more details." >&2;}
35335    { (exit 77); exit 77; }; }
35336    else
35337      ac_cv_sizeof_short_int=0
35338    fi
35339 fi
35340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35341 fi
35342 rm -f conftest.val
35343 fi
35344 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35345 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35346
35347
35348
35349 cat >>confdefs.h <<_ACEOF
35350 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35351 _ACEOF
35352
35353
35354 { echo "$as_me:$LINENO: checking for int" >&5
35355 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35356 if test "${ac_cv_type_int+set}" = set; then
35357   echo $ECHO_N "(cached) $ECHO_C" >&6
35358 else
35359   cat >conftest.$ac_ext <<_ACEOF
35360 /* confdefs.h.  */
35361 _ACEOF
35362 cat confdefs.h >>conftest.$ac_ext
35363 cat >>conftest.$ac_ext <<_ACEOF
35364 /* end confdefs.h.  */
35365 $ac_includes_default
35366 typedef int ac__type_new_;
35367 int
35368 main ()
35369 {
35370 if ((ac__type_new_ *) 0)
35371   return 0;
35372 if (sizeof (ac__type_new_))
35373   return 0;
35374   ;
35375   return 0;
35376 }
35377 _ACEOF
35378 rm -f conftest.$ac_objext
35379 if { (ac_try="$ac_compile"
35380 case "(($ac_try" in
35381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35382   *) ac_try_echo=$ac_try;;
35383 esac
35384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35385   (eval "$ac_compile") 2>conftest.er1
35386   ac_status=$?
35387   grep -v '^ *+' conftest.er1 >conftest.err
35388   rm -f conftest.er1
35389   cat conftest.err >&5
35390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35391   (exit $ac_status); } && {
35392          test -z "$ac_c_werror_flag" ||
35393          test ! -s conftest.err
35394        } && test -s conftest.$ac_objext; then
35395   ac_cv_type_int=yes
35396 else
35397   echo "$as_me: failed program was:" >&5
35398 sed 's/^/| /' conftest.$ac_ext >&5
35399
35400         ac_cv_type_int=no
35401 fi
35402
35403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35404 fi
35405 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35406 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35407
35408 # The cast to long int works around a bug in the HP C Compiler
35409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35411 # This bug is HP SR number 8606223364.
35412 { echo "$as_me:$LINENO: checking size of int" >&5
35413 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35414 if test "${ac_cv_sizeof_int+set}" = set; then
35415   echo $ECHO_N "(cached) $ECHO_C" >&6
35416 else
35417   if test "$cross_compiling" = yes; then
35418   # Depending upon the size, compute the lo and hi bounds.
35419 cat >conftest.$ac_ext <<_ACEOF
35420 /* confdefs.h.  */
35421 _ACEOF
35422 cat confdefs.h >>conftest.$ac_ext
35423 cat >>conftest.$ac_ext <<_ACEOF
35424 /* end confdefs.h.  */
35425 $ac_includes_default
35426    typedef int ac__type_sizeof_;
35427 int
35428 main ()
35429 {
35430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35431 test_array [0] = 0
35432
35433   ;
35434   return 0;
35435 }
35436 _ACEOF
35437 rm -f conftest.$ac_objext
35438 if { (ac_try="$ac_compile"
35439 case "(($ac_try" in
35440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35441   *) ac_try_echo=$ac_try;;
35442 esac
35443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35444   (eval "$ac_compile") 2>conftest.er1
35445   ac_status=$?
35446   grep -v '^ *+' conftest.er1 >conftest.err
35447   rm -f conftest.er1
35448   cat conftest.err >&5
35449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450   (exit $ac_status); } && {
35451          test -z "$ac_c_werror_flag" ||
35452          test ! -s conftest.err
35453        } && test -s conftest.$ac_objext; then
35454   ac_lo=0 ac_mid=0
35455   while :; do
35456     cat >conftest.$ac_ext <<_ACEOF
35457 /* confdefs.h.  */
35458 _ACEOF
35459 cat confdefs.h >>conftest.$ac_ext
35460 cat >>conftest.$ac_ext <<_ACEOF
35461 /* end confdefs.h.  */
35462 $ac_includes_default
35463    typedef int ac__type_sizeof_;
35464 int
35465 main ()
35466 {
35467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35468 test_array [0] = 0
35469
35470   ;
35471   return 0;
35472 }
35473 _ACEOF
35474 rm -f conftest.$ac_objext
35475 if { (ac_try="$ac_compile"
35476 case "(($ac_try" in
35477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35478   *) ac_try_echo=$ac_try;;
35479 esac
35480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35481   (eval "$ac_compile") 2>conftest.er1
35482   ac_status=$?
35483   grep -v '^ *+' conftest.er1 >conftest.err
35484   rm -f conftest.er1
35485   cat conftest.err >&5
35486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35487   (exit $ac_status); } && {
35488          test -z "$ac_c_werror_flag" ||
35489          test ! -s conftest.err
35490        } && test -s conftest.$ac_objext; then
35491   ac_hi=$ac_mid; break
35492 else
35493   echo "$as_me: failed program was:" >&5
35494 sed 's/^/| /' conftest.$ac_ext >&5
35495
35496         ac_lo=`expr $ac_mid + 1`
35497                         if test $ac_lo -le $ac_mid; then
35498                           ac_lo= ac_hi=
35499                           break
35500                         fi
35501                         ac_mid=`expr 2 '*' $ac_mid + 1`
35502 fi
35503
35504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35505   done
35506 else
35507   echo "$as_me: failed program was:" >&5
35508 sed 's/^/| /' conftest.$ac_ext >&5
35509
35510         cat >conftest.$ac_ext <<_ACEOF
35511 /* confdefs.h.  */
35512 _ACEOF
35513 cat confdefs.h >>conftest.$ac_ext
35514 cat >>conftest.$ac_ext <<_ACEOF
35515 /* end confdefs.h.  */
35516 $ac_includes_default
35517    typedef int ac__type_sizeof_;
35518 int
35519 main ()
35520 {
35521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35522 test_array [0] = 0
35523
35524   ;
35525   return 0;
35526 }
35527 _ACEOF
35528 rm -f conftest.$ac_objext
35529 if { (ac_try="$ac_compile"
35530 case "(($ac_try" in
35531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35532   *) ac_try_echo=$ac_try;;
35533 esac
35534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35535   (eval "$ac_compile") 2>conftest.er1
35536   ac_status=$?
35537   grep -v '^ *+' conftest.er1 >conftest.err
35538   rm -f conftest.er1
35539   cat conftest.err >&5
35540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541   (exit $ac_status); } && {
35542          test -z "$ac_c_werror_flag" ||
35543          test ! -s conftest.err
35544        } && test -s conftest.$ac_objext; then
35545   ac_hi=-1 ac_mid=-1
35546   while :; do
35547     cat >conftest.$ac_ext <<_ACEOF
35548 /* confdefs.h.  */
35549 _ACEOF
35550 cat confdefs.h >>conftest.$ac_ext
35551 cat >>conftest.$ac_ext <<_ACEOF
35552 /* end confdefs.h.  */
35553 $ac_includes_default
35554    typedef int ac__type_sizeof_;
35555 int
35556 main ()
35557 {
35558 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35559 test_array [0] = 0
35560
35561   ;
35562   return 0;
35563 }
35564 _ACEOF
35565 rm -f conftest.$ac_objext
35566 if { (ac_try="$ac_compile"
35567 case "(($ac_try" in
35568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35569   *) ac_try_echo=$ac_try;;
35570 esac
35571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35572   (eval "$ac_compile") 2>conftest.er1
35573   ac_status=$?
35574   grep -v '^ *+' conftest.er1 >conftest.err
35575   rm -f conftest.er1
35576   cat conftest.err >&5
35577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578   (exit $ac_status); } && {
35579          test -z "$ac_c_werror_flag" ||
35580          test ! -s conftest.err
35581        } && test -s conftest.$ac_objext; then
35582   ac_lo=$ac_mid; break
35583 else
35584   echo "$as_me: failed program was:" >&5
35585 sed 's/^/| /' conftest.$ac_ext >&5
35586
35587         ac_hi=`expr '(' $ac_mid ')' - 1`
35588                         if test $ac_mid -le $ac_hi; then
35589                           ac_lo= ac_hi=
35590                           break
35591                         fi
35592                         ac_mid=`expr 2 '*' $ac_mid`
35593 fi
35594
35595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35596   done
35597 else
35598   echo "$as_me: failed program was:" >&5
35599 sed 's/^/| /' conftest.$ac_ext >&5
35600
35601         ac_lo= ac_hi=
35602 fi
35603
35604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35605 fi
35606
35607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35608 # Binary search between lo and hi bounds.
35609 while test "x$ac_lo" != "x$ac_hi"; do
35610   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35611   cat >conftest.$ac_ext <<_ACEOF
35612 /* confdefs.h.  */
35613 _ACEOF
35614 cat confdefs.h >>conftest.$ac_ext
35615 cat >>conftest.$ac_ext <<_ACEOF
35616 /* end confdefs.h.  */
35617 $ac_includes_default
35618    typedef int ac__type_sizeof_;
35619 int
35620 main ()
35621 {
35622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35623 test_array [0] = 0
35624
35625   ;
35626   return 0;
35627 }
35628 _ACEOF
35629 rm -f conftest.$ac_objext
35630 if { (ac_try="$ac_compile"
35631 case "(($ac_try" in
35632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35633   *) ac_try_echo=$ac_try;;
35634 esac
35635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35636   (eval "$ac_compile") 2>conftest.er1
35637   ac_status=$?
35638   grep -v '^ *+' conftest.er1 >conftest.err
35639   rm -f conftest.er1
35640   cat conftest.err >&5
35641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35642   (exit $ac_status); } && {
35643          test -z "$ac_c_werror_flag" ||
35644          test ! -s conftest.err
35645        } && test -s conftest.$ac_objext; then
35646   ac_hi=$ac_mid
35647 else
35648   echo "$as_me: failed program was:" >&5
35649 sed 's/^/| /' conftest.$ac_ext >&5
35650
35651         ac_lo=`expr '(' $ac_mid ')' + 1`
35652 fi
35653
35654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35655 done
35656 case $ac_lo in
35657 ?*) ac_cv_sizeof_int=$ac_lo;;
35658 '') if test "$ac_cv_type_int" = yes; then
35659      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35660 See \`config.log' for more details." >&5
35661 echo "$as_me: error: cannot compute sizeof (int)
35662 See \`config.log' for more details." >&2;}
35663    { (exit 77); exit 77; }; }
35664    else
35665      ac_cv_sizeof_int=0
35666    fi ;;
35667 esac
35668 else
35669   cat >conftest.$ac_ext <<_ACEOF
35670 /* confdefs.h.  */
35671 _ACEOF
35672 cat confdefs.h >>conftest.$ac_ext
35673 cat >>conftest.$ac_ext <<_ACEOF
35674 /* end confdefs.h.  */
35675 $ac_includes_default
35676    typedef int ac__type_sizeof_;
35677 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35678 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35679 #include <stdio.h>
35680 #include <stdlib.h>
35681 int
35682 main ()
35683 {
35684
35685   FILE *f = fopen ("conftest.val", "w");
35686   if (! f)
35687     return 1;
35688   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35689     {
35690       long int i = longval ();
35691       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35692         return 1;
35693       fprintf (f, "%ld\n", i);
35694     }
35695   else
35696     {
35697       unsigned long int i = ulongval ();
35698       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35699         return 1;
35700       fprintf (f, "%lu\n", i);
35701     }
35702   return ferror (f) || fclose (f) != 0;
35703
35704   ;
35705   return 0;
35706 }
35707 _ACEOF
35708 rm -f conftest$ac_exeext
35709 if { (ac_try="$ac_link"
35710 case "(($ac_try" in
35711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35712   *) ac_try_echo=$ac_try;;
35713 esac
35714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35715   (eval "$ac_link") 2>&5
35716   ac_status=$?
35717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35719   { (case "(($ac_try" in
35720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35721   *) ac_try_echo=$ac_try;;
35722 esac
35723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35724   (eval "$ac_try") 2>&5
35725   ac_status=$?
35726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35727   (exit $ac_status); }; }; then
35728   ac_cv_sizeof_int=`cat conftest.val`
35729 else
35730   echo "$as_me: program exited with status $ac_status" >&5
35731 echo "$as_me: failed program was:" >&5
35732 sed 's/^/| /' conftest.$ac_ext >&5
35733
35734 ( exit $ac_status )
35735 if test "$ac_cv_type_int" = yes; then
35736      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35737 See \`config.log' for more details." >&5
35738 echo "$as_me: error: cannot compute sizeof (int)
35739 See \`config.log' for more details." >&2;}
35740    { (exit 77); exit 77; }; }
35741    else
35742      ac_cv_sizeof_int=0
35743    fi
35744 fi
35745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35746 fi
35747 rm -f conftest.val
35748 fi
35749 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35750 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35751
35752
35753
35754 cat >>confdefs.h <<_ACEOF
35755 #define SIZEOF_INT $ac_cv_sizeof_int
35756 _ACEOF
35757
35758
35759 { echo "$as_me:$LINENO: checking for long int" >&5
35760 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35761 if test "${ac_cv_type_long_int+set}" = set; then
35762   echo $ECHO_N "(cached) $ECHO_C" >&6
35763 else
35764   cat >conftest.$ac_ext <<_ACEOF
35765 /* confdefs.h.  */
35766 _ACEOF
35767 cat confdefs.h >>conftest.$ac_ext
35768 cat >>conftest.$ac_ext <<_ACEOF
35769 /* end confdefs.h.  */
35770 $ac_includes_default
35771 typedef long int ac__type_new_;
35772 int
35773 main ()
35774 {
35775 if ((ac__type_new_ *) 0)
35776   return 0;
35777 if (sizeof (ac__type_new_))
35778   return 0;
35779   ;
35780   return 0;
35781 }
35782 _ACEOF
35783 rm -f conftest.$ac_objext
35784 if { (ac_try="$ac_compile"
35785 case "(($ac_try" in
35786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35787   *) ac_try_echo=$ac_try;;
35788 esac
35789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35790   (eval "$ac_compile") 2>conftest.er1
35791   ac_status=$?
35792   grep -v '^ *+' conftest.er1 >conftest.err
35793   rm -f conftest.er1
35794   cat conftest.err >&5
35795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35796   (exit $ac_status); } && {
35797          test -z "$ac_c_werror_flag" ||
35798          test ! -s conftest.err
35799        } && test -s conftest.$ac_objext; then
35800   ac_cv_type_long_int=yes
35801 else
35802   echo "$as_me: failed program was:" >&5
35803 sed 's/^/| /' conftest.$ac_ext >&5
35804
35805         ac_cv_type_long_int=no
35806 fi
35807
35808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35809 fi
35810 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35811 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35812
35813 # The cast to long int works around a bug in the HP C Compiler
35814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35816 # This bug is HP SR number 8606223364.
35817 { echo "$as_me:$LINENO: checking size of long int" >&5
35818 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35819 if test "${ac_cv_sizeof_long_int+set}" = set; then
35820   echo $ECHO_N "(cached) $ECHO_C" >&6
35821 else
35822   if test "$cross_compiling" = yes; then
35823   # Depending upon the size, compute the lo and hi bounds.
35824 cat >conftest.$ac_ext <<_ACEOF
35825 /* confdefs.h.  */
35826 _ACEOF
35827 cat confdefs.h >>conftest.$ac_ext
35828 cat >>conftest.$ac_ext <<_ACEOF
35829 /* end confdefs.h.  */
35830 $ac_includes_default
35831    typedef long int ac__type_sizeof_;
35832 int
35833 main ()
35834 {
35835 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35836 test_array [0] = 0
35837
35838   ;
35839   return 0;
35840 }
35841 _ACEOF
35842 rm -f conftest.$ac_objext
35843 if { (ac_try="$ac_compile"
35844 case "(($ac_try" in
35845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35846   *) ac_try_echo=$ac_try;;
35847 esac
35848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35849   (eval "$ac_compile") 2>conftest.er1
35850   ac_status=$?
35851   grep -v '^ *+' conftest.er1 >conftest.err
35852   rm -f conftest.er1
35853   cat conftest.err >&5
35854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855   (exit $ac_status); } && {
35856          test -z "$ac_c_werror_flag" ||
35857          test ! -s conftest.err
35858        } && test -s conftest.$ac_objext; then
35859   ac_lo=0 ac_mid=0
35860   while :; do
35861     cat >conftest.$ac_ext <<_ACEOF
35862 /* confdefs.h.  */
35863 _ACEOF
35864 cat confdefs.h >>conftest.$ac_ext
35865 cat >>conftest.$ac_ext <<_ACEOF
35866 /* end confdefs.h.  */
35867 $ac_includes_default
35868    typedef long int ac__type_sizeof_;
35869 int
35870 main ()
35871 {
35872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35873 test_array [0] = 0
35874
35875   ;
35876   return 0;
35877 }
35878 _ACEOF
35879 rm -f conftest.$ac_objext
35880 if { (ac_try="$ac_compile"
35881 case "(($ac_try" in
35882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35883   *) ac_try_echo=$ac_try;;
35884 esac
35885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35886   (eval "$ac_compile") 2>conftest.er1
35887   ac_status=$?
35888   grep -v '^ *+' conftest.er1 >conftest.err
35889   rm -f conftest.er1
35890   cat conftest.err >&5
35891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892   (exit $ac_status); } && {
35893          test -z "$ac_c_werror_flag" ||
35894          test ! -s conftest.err
35895        } && test -s conftest.$ac_objext; then
35896   ac_hi=$ac_mid; break
35897 else
35898   echo "$as_me: failed program was:" >&5
35899 sed 's/^/| /' conftest.$ac_ext >&5
35900
35901         ac_lo=`expr $ac_mid + 1`
35902                         if test $ac_lo -le $ac_mid; then
35903                           ac_lo= ac_hi=
35904                           break
35905                         fi
35906                         ac_mid=`expr 2 '*' $ac_mid + 1`
35907 fi
35908
35909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35910   done
35911 else
35912   echo "$as_me: failed program was:" >&5
35913 sed 's/^/| /' conftest.$ac_ext >&5
35914
35915         cat >conftest.$ac_ext <<_ACEOF
35916 /* confdefs.h.  */
35917 _ACEOF
35918 cat confdefs.h >>conftest.$ac_ext
35919 cat >>conftest.$ac_ext <<_ACEOF
35920 /* end confdefs.h.  */
35921 $ac_includes_default
35922    typedef long int ac__type_sizeof_;
35923 int
35924 main ()
35925 {
35926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35927 test_array [0] = 0
35928
35929   ;
35930   return 0;
35931 }
35932 _ACEOF
35933 rm -f conftest.$ac_objext
35934 if { (ac_try="$ac_compile"
35935 case "(($ac_try" in
35936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35937   *) ac_try_echo=$ac_try;;
35938 esac
35939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35940   (eval "$ac_compile") 2>conftest.er1
35941   ac_status=$?
35942   grep -v '^ *+' conftest.er1 >conftest.err
35943   rm -f conftest.er1
35944   cat conftest.err >&5
35945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35946   (exit $ac_status); } && {
35947          test -z "$ac_c_werror_flag" ||
35948          test ! -s conftest.err
35949        } && test -s conftest.$ac_objext; then
35950   ac_hi=-1 ac_mid=-1
35951   while :; do
35952     cat >conftest.$ac_ext <<_ACEOF
35953 /* confdefs.h.  */
35954 _ACEOF
35955 cat confdefs.h >>conftest.$ac_ext
35956 cat >>conftest.$ac_ext <<_ACEOF
35957 /* end confdefs.h.  */
35958 $ac_includes_default
35959    typedef long int ac__type_sizeof_;
35960 int
35961 main ()
35962 {
35963 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35964 test_array [0] = 0
35965
35966   ;
35967   return 0;
35968 }
35969 _ACEOF
35970 rm -f conftest.$ac_objext
35971 if { (ac_try="$ac_compile"
35972 case "(($ac_try" in
35973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35974   *) ac_try_echo=$ac_try;;
35975 esac
35976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35977   (eval "$ac_compile") 2>conftest.er1
35978   ac_status=$?
35979   grep -v '^ *+' conftest.er1 >conftest.err
35980   rm -f conftest.er1
35981   cat conftest.err >&5
35982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35983   (exit $ac_status); } && {
35984          test -z "$ac_c_werror_flag" ||
35985          test ! -s conftest.err
35986        } && test -s conftest.$ac_objext; then
35987   ac_lo=$ac_mid; break
35988 else
35989   echo "$as_me: failed program was:" >&5
35990 sed 's/^/| /' conftest.$ac_ext >&5
35991
35992         ac_hi=`expr '(' $ac_mid ')' - 1`
35993                         if test $ac_mid -le $ac_hi; then
35994                           ac_lo= ac_hi=
35995                           break
35996                         fi
35997                         ac_mid=`expr 2 '*' $ac_mid`
35998 fi
35999
36000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36001   done
36002 else
36003   echo "$as_me: failed program was:" >&5
36004 sed 's/^/| /' conftest.$ac_ext >&5
36005
36006         ac_lo= ac_hi=
36007 fi
36008
36009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36010 fi
36011
36012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36013 # Binary search between lo and hi bounds.
36014 while test "x$ac_lo" != "x$ac_hi"; do
36015   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36016   cat >conftest.$ac_ext <<_ACEOF
36017 /* confdefs.h.  */
36018 _ACEOF
36019 cat confdefs.h >>conftest.$ac_ext
36020 cat >>conftest.$ac_ext <<_ACEOF
36021 /* end confdefs.h.  */
36022 $ac_includes_default
36023    typedef long int ac__type_sizeof_;
36024 int
36025 main ()
36026 {
36027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36028 test_array [0] = 0
36029
36030   ;
36031   return 0;
36032 }
36033 _ACEOF
36034 rm -f conftest.$ac_objext
36035 if { (ac_try="$ac_compile"
36036 case "(($ac_try" in
36037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36038   *) ac_try_echo=$ac_try;;
36039 esac
36040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36041   (eval "$ac_compile") 2>conftest.er1
36042   ac_status=$?
36043   grep -v '^ *+' conftest.er1 >conftest.err
36044   rm -f conftest.er1
36045   cat conftest.err >&5
36046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36047   (exit $ac_status); } && {
36048          test -z "$ac_c_werror_flag" ||
36049          test ! -s conftest.err
36050        } && test -s conftest.$ac_objext; then
36051   ac_hi=$ac_mid
36052 else
36053   echo "$as_me: failed program was:" >&5
36054 sed 's/^/| /' conftest.$ac_ext >&5
36055
36056         ac_lo=`expr '(' $ac_mid ')' + 1`
36057 fi
36058
36059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36060 done
36061 case $ac_lo in
36062 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36063 '') if test "$ac_cv_type_long_int" = yes; then
36064      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36065 See \`config.log' for more details." >&5
36066 echo "$as_me: error: cannot compute sizeof (long int)
36067 See \`config.log' for more details." >&2;}
36068    { (exit 77); exit 77; }; }
36069    else
36070      ac_cv_sizeof_long_int=0
36071    fi ;;
36072 esac
36073 else
36074   cat >conftest.$ac_ext <<_ACEOF
36075 /* confdefs.h.  */
36076 _ACEOF
36077 cat confdefs.h >>conftest.$ac_ext
36078 cat >>conftest.$ac_ext <<_ACEOF
36079 /* end confdefs.h.  */
36080 $ac_includes_default
36081    typedef long int ac__type_sizeof_;
36082 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36083 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36084 #include <stdio.h>
36085 #include <stdlib.h>
36086 int
36087 main ()
36088 {
36089
36090   FILE *f = fopen ("conftest.val", "w");
36091   if (! f)
36092     return 1;
36093   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36094     {
36095       long int i = longval ();
36096       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36097         return 1;
36098       fprintf (f, "%ld\n", i);
36099     }
36100   else
36101     {
36102       unsigned long int i = ulongval ();
36103       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36104         return 1;
36105       fprintf (f, "%lu\n", i);
36106     }
36107   return ferror (f) || fclose (f) != 0;
36108
36109   ;
36110   return 0;
36111 }
36112 _ACEOF
36113 rm -f conftest$ac_exeext
36114 if { (ac_try="$ac_link"
36115 case "(($ac_try" in
36116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36117   *) ac_try_echo=$ac_try;;
36118 esac
36119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36120   (eval "$ac_link") 2>&5
36121   ac_status=$?
36122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36123   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36124   { (case "(($ac_try" in
36125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36126   *) ac_try_echo=$ac_try;;
36127 esac
36128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36129   (eval "$ac_try") 2>&5
36130   ac_status=$?
36131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132   (exit $ac_status); }; }; then
36133   ac_cv_sizeof_long_int=`cat conftest.val`
36134 else
36135   echo "$as_me: program exited with status $ac_status" >&5
36136 echo "$as_me: failed program was:" >&5
36137 sed 's/^/| /' conftest.$ac_ext >&5
36138
36139 ( exit $ac_status )
36140 if test "$ac_cv_type_long_int" = yes; then
36141      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36142 See \`config.log' for more details." >&5
36143 echo "$as_me: error: cannot compute sizeof (long int)
36144 See \`config.log' for more details." >&2;}
36145    { (exit 77); exit 77; }; }
36146    else
36147      ac_cv_sizeof_long_int=0
36148    fi
36149 fi
36150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36151 fi
36152 rm -f conftest.val
36153 fi
36154 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36155 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36156
36157
36158
36159 cat >>confdefs.h <<_ACEOF
36160 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36161 _ACEOF
36162
36163
36164 { echo "$as_me:$LINENO: checking for long long int" >&5
36165 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36166 if test "${ac_cv_type_long_long_int+set}" = set; then
36167   echo $ECHO_N "(cached) $ECHO_C" >&6
36168 else
36169   cat >conftest.$ac_ext <<_ACEOF
36170 /* confdefs.h.  */
36171 _ACEOF
36172 cat confdefs.h >>conftest.$ac_ext
36173 cat >>conftest.$ac_ext <<_ACEOF
36174 /* end confdefs.h.  */
36175 $ac_includes_default
36176 typedef long long int ac__type_new_;
36177 int
36178 main ()
36179 {
36180 if ((ac__type_new_ *) 0)
36181   return 0;
36182 if (sizeof (ac__type_new_))
36183   return 0;
36184   ;
36185   return 0;
36186 }
36187 _ACEOF
36188 rm -f conftest.$ac_objext
36189 if { (ac_try="$ac_compile"
36190 case "(($ac_try" in
36191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36192   *) ac_try_echo=$ac_try;;
36193 esac
36194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36195   (eval "$ac_compile") 2>conftest.er1
36196   ac_status=$?
36197   grep -v '^ *+' conftest.er1 >conftest.err
36198   rm -f conftest.er1
36199   cat conftest.err >&5
36200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36201   (exit $ac_status); } && {
36202          test -z "$ac_c_werror_flag" ||
36203          test ! -s conftest.err
36204        } && test -s conftest.$ac_objext; then
36205   ac_cv_type_long_long_int=yes
36206 else
36207   echo "$as_me: failed program was:" >&5
36208 sed 's/^/| /' conftest.$ac_ext >&5
36209
36210         ac_cv_type_long_long_int=no
36211 fi
36212
36213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36214 fi
36215 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36216 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36217
36218 # The cast to long int works around a bug in the HP C Compiler
36219 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36220 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36221 # This bug is HP SR number 8606223364.
36222 { echo "$as_me:$LINENO: checking size of long long int" >&5
36223 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36224 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36225   echo $ECHO_N "(cached) $ECHO_C" >&6
36226 else
36227   if test "$cross_compiling" = yes; then
36228   # Depending upon the size, compute the lo and hi bounds.
36229 cat >conftest.$ac_ext <<_ACEOF
36230 /* confdefs.h.  */
36231 _ACEOF
36232 cat confdefs.h >>conftest.$ac_ext
36233 cat >>conftest.$ac_ext <<_ACEOF
36234 /* end confdefs.h.  */
36235 $ac_includes_default
36236    typedef long long int ac__type_sizeof_;
36237 int
36238 main ()
36239 {
36240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36241 test_array [0] = 0
36242
36243   ;
36244   return 0;
36245 }
36246 _ACEOF
36247 rm -f conftest.$ac_objext
36248 if { (ac_try="$ac_compile"
36249 case "(($ac_try" in
36250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36251   *) ac_try_echo=$ac_try;;
36252 esac
36253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36254   (eval "$ac_compile") 2>conftest.er1
36255   ac_status=$?
36256   grep -v '^ *+' conftest.er1 >conftest.err
36257   rm -f conftest.er1
36258   cat conftest.err >&5
36259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36260   (exit $ac_status); } && {
36261          test -z "$ac_c_werror_flag" ||
36262          test ! -s conftest.err
36263        } && test -s conftest.$ac_objext; then
36264   ac_lo=0 ac_mid=0
36265   while :; do
36266     cat >conftest.$ac_ext <<_ACEOF
36267 /* confdefs.h.  */
36268 _ACEOF
36269 cat confdefs.h >>conftest.$ac_ext
36270 cat >>conftest.$ac_ext <<_ACEOF
36271 /* end confdefs.h.  */
36272 $ac_includes_default
36273    typedef long long int ac__type_sizeof_;
36274 int
36275 main ()
36276 {
36277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36278 test_array [0] = 0
36279
36280   ;
36281   return 0;
36282 }
36283 _ACEOF
36284 rm -f conftest.$ac_objext
36285 if { (ac_try="$ac_compile"
36286 case "(($ac_try" in
36287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36288   *) ac_try_echo=$ac_try;;
36289 esac
36290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36291   (eval "$ac_compile") 2>conftest.er1
36292   ac_status=$?
36293   grep -v '^ *+' conftest.er1 >conftest.err
36294   rm -f conftest.er1
36295   cat conftest.err >&5
36296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36297   (exit $ac_status); } && {
36298          test -z "$ac_c_werror_flag" ||
36299          test ! -s conftest.err
36300        } && test -s conftest.$ac_objext; then
36301   ac_hi=$ac_mid; break
36302 else
36303   echo "$as_me: failed program was:" >&5
36304 sed 's/^/| /' conftest.$ac_ext >&5
36305
36306         ac_lo=`expr $ac_mid + 1`
36307                         if test $ac_lo -le $ac_mid; then
36308                           ac_lo= ac_hi=
36309                           break
36310                         fi
36311                         ac_mid=`expr 2 '*' $ac_mid + 1`
36312 fi
36313
36314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36315   done
36316 else
36317   echo "$as_me: failed program was:" >&5
36318 sed 's/^/| /' conftest.$ac_ext >&5
36319
36320         cat >conftest.$ac_ext <<_ACEOF
36321 /* confdefs.h.  */
36322 _ACEOF
36323 cat confdefs.h >>conftest.$ac_ext
36324 cat >>conftest.$ac_ext <<_ACEOF
36325 /* end confdefs.h.  */
36326 $ac_includes_default
36327    typedef long long int ac__type_sizeof_;
36328 int
36329 main ()
36330 {
36331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36332 test_array [0] = 0
36333
36334   ;
36335   return 0;
36336 }
36337 _ACEOF
36338 rm -f conftest.$ac_objext
36339 if { (ac_try="$ac_compile"
36340 case "(($ac_try" in
36341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36342   *) ac_try_echo=$ac_try;;
36343 esac
36344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36345   (eval "$ac_compile") 2>conftest.er1
36346   ac_status=$?
36347   grep -v '^ *+' conftest.er1 >conftest.err
36348   rm -f conftest.er1
36349   cat conftest.err >&5
36350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36351   (exit $ac_status); } && {
36352          test -z "$ac_c_werror_flag" ||
36353          test ! -s conftest.err
36354        } && test -s conftest.$ac_objext; then
36355   ac_hi=-1 ac_mid=-1
36356   while :; do
36357     cat >conftest.$ac_ext <<_ACEOF
36358 /* confdefs.h.  */
36359 _ACEOF
36360 cat confdefs.h >>conftest.$ac_ext
36361 cat >>conftest.$ac_ext <<_ACEOF
36362 /* end confdefs.h.  */
36363 $ac_includes_default
36364    typedef long long int ac__type_sizeof_;
36365 int
36366 main ()
36367 {
36368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36369 test_array [0] = 0
36370
36371   ;
36372   return 0;
36373 }
36374 _ACEOF
36375 rm -f conftest.$ac_objext
36376 if { (ac_try="$ac_compile"
36377 case "(($ac_try" in
36378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36379   *) ac_try_echo=$ac_try;;
36380 esac
36381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36382   (eval "$ac_compile") 2>conftest.er1
36383   ac_status=$?
36384   grep -v '^ *+' conftest.er1 >conftest.err
36385   rm -f conftest.er1
36386   cat conftest.err >&5
36387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388   (exit $ac_status); } && {
36389          test -z "$ac_c_werror_flag" ||
36390          test ! -s conftest.err
36391        } && test -s conftest.$ac_objext; then
36392   ac_lo=$ac_mid; break
36393 else
36394   echo "$as_me: failed program was:" >&5
36395 sed 's/^/| /' conftest.$ac_ext >&5
36396
36397         ac_hi=`expr '(' $ac_mid ')' - 1`
36398                         if test $ac_mid -le $ac_hi; then
36399                           ac_lo= ac_hi=
36400                           break
36401                         fi
36402                         ac_mid=`expr 2 '*' $ac_mid`
36403 fi
36404
36405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36406   done
36407 else
36408   echo "$as_me: failed program was:" >&5
36409 sed 's/^/| /' conftest.$ac_ext >&5
36410
36411         ac_lo= ac_hi=
36412 fi
36413
36414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36415 fi
36416
36417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36418 # Binary search between lo and hi bounds.
36419 while test "x$ac_lo" != "x$ac_hi"; do
36420   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36421   cat >conftest.$ac_ext <<_ACEOF
36422 /* confdefs.h.  */
36423 _ACEOF
36424 cat confdefs.h >>conftest.$ac_ext
36425 cat >>conftest.$ac_ext <<_ACEOF
36426 /* end confdefs.h.  */
36427 $ac_includes_default
36428    typedef long long int ac__type_sizeof_;
36429 int
36430 main ()
36431 {
36432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36433 test_array [0] = 0
36434
36435   ;
36436   return 0;
36437 }
36438 _ACEOF
36439 rm -f conftest.$ac_objext
36440 if { (ac_try="$ac_compile"
36441 case "(($ac_try" in
36442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36443   *) ac_try_echo=$ac_try;;
36444 esac
36445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36446   (eval "$ac_compile") 2>conftest.er1
36447   ac_status=$?
36448   grep -v '^ *+' conftest.er1 >conftest.err
36449   rm -f conftest.er1
36450   cat conftest.err >&5
36451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36452   (exit $ac_status); } && {
36453          test -z "$ac_c_werror_flag" ||
36454          test ! -s conftest.err
36455        } && test -s conftest.$ac_objext; then
36456   ac_hi=$ac_mid
36457 else
36458   echo "$as_me: failed program was:" >&5
36459 sed 's/^/| /' conftest.$ac_ext >&5
36460
36461         ac_lo=`expr '(' $ac_mid ')' + 1`
36462 fi
36463
36464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36465 done
36466 case $ac_lo in
36467 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36468 '') if test "$ac_cv_type_long_long_int" = yes; then
36469      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36470 See \`config.log' for more details." >&5
36471 echo "$as_me: error: cannot compute sizeof (long long int)
36472 See \`config.log' for more details." >&2;}
36473    { (exit 77); exit 77; }; }
36474    else
36475      ac_cv_sizeof_long_long_int=0
36476    fi ;;
36477 esac
36478 else
36479   cat >conftest.$ac_ext <<_ACEOF
36480 /* confdefs.h.  */
36481 _ACEOF
36482 cat confdefs.h >>conftest.$ac_ext
36483 cat >>conftest.$ac_ext <<_ACEOF
36484 /* end confdefs.h.  */
36485 $ac_includes_default
36486    typedef long long int ac__type_sizeof_;
36487 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36488 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36489 #include <stdio.h>
36490 #include <stdlib.h>
36491 int
36492 main ()
36493 {
36494
36495   FILE *f = fopen ("conftest.val", "w");
36496   if (! f)
36497     return 1;
36498   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36499     {
36500       long int i = longval ();
36501       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36502         return 1;
36503       fprintf (f, "%ld\n", i);
36504     }
36505   else
36506     {
36507       unsigned long int i = ulongval ();
36508       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36509         return 1;
36510       fprintf (f, "%lu\n", i);
36511     }
36512   return ferror (f) || fclose (f) != 0;
36513
36514   ;
36515   return 0;
36516 }
36517 _ACEOF
36518 rm -f conftest$ac_exeext
36519 if { (ac_try="$ac_link"
36520 case "(($ac_try" in
36521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36522   *) ac_try_echo=$ac_try;;
36523 esac
36524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36525   (eval "$ac_link") 2>&5
36526   ac_status=$?
36527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36529   { (case "(($ac_try" in
36530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36531   *) ac_try_echo=$ac_try;;
36532 esac
36533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36534   (eval "$ac_try") 2>&5
36535   ac_status=$?
36536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36537   (exit $ac_status); }; }; then
36538   ac_cv_sizeof_long_long_int=`cat conftest.val`
36539 else
36540   echo "$as_me: program exited with status $ac_status" >&5
36541 echo "$as_me: failed program was:" >&5
36542 sed 's/^/| /' conftest.$ac_ext >&5
36543
36544 ( exit $ac_status )
36545 if test "$ac_cv_type_long_long_int" = yes; then
36546      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36547 See \`config.log' for more details." >&5
36548 echo "$as_me: error: cannot compute sizeof (long long int)
36549 See \`config.log' for more details." >&2;}
36550    { (exit 77); exit 77; }; }
36551    else
36552      ac_cv_sizeof_long_long_int=0
36553    fi
36554 fi
36555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36556 fi
36557 rm -f conftest.val
36558 fi
36559 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36560 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36561
36562
36563
36564 cat >>confdefs.h <<_ACEOF
36565 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36566 _ACEOF
36567
36568
36569 { echo "$as_me:$LINENO: checking for int *" >&5
36570 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36571 if test "${ac_cv_type_int_p+set}" = set; then
36572   echo $ECHO_N "(cached) $ECHO_C" >&6
36573 else
36574   cat >conftest.$ac_ext <<_ACEOF
36575 /* confdefs.h.  */
36576 _ACEOF
36577 cat confdefs.h >>conftest.$ac_ext
36578 cat >>conftest.$ac_ext <<_ACEOF
36579 /* end confdefs.h.  */
36580 $ac_includes_default
36581 typedef int * ac__type_new_;
36582 int
36583 main ()
36584 {
36585 if ((ac__type_new_ *) 0)
36586   return 0;
36587 if (sizeof (ac__type_new_))
36588   return 0;
36589   ;
36590   return 0;
36591 }
36592 _ACEOF
36593 rm -f conftest.$ac_objext
36594 if { (ac_try="$ac_compile"
36595 case "(($ac_try" in
36596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36597   *) ac_try_echo=$ac_try;;
36598 esac
36599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36600   (eval "$ac_compile") 2>conftest.er1
36601   ac_status=$?
36602   grep -v '^ *+' conftest.er1 >conftest.err
36603   rm -f conftest.er1
36604   cat conftest.err >&5
36605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36606   (exit $ac_status); } && {
36607          test -z "$ac_c_werror_flag" ||
36608          test ! -s conftest.err
36609        } && test -s conftest.$ac_objext; then
36610   ac_cv_type_int_p=yes
36611 else
36612   echo "$as_me: failed program was:" >&5
36613 sed 's/^/| /' conftest.$ac_ext >&5
36614
36615         ac_cv_type_int_p=no
36616 fi
36617
36618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36619 fi
36620 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36621 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36622
36623 # The cast to long int works around a bug in the HP C Compiler
36624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36626 # This bug is HP SR number 8606223364.
36627 { echo "$as_me:$LINENO: checking size of int *" >&5
36628 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36629 if test "${ac_cv_sizeof_int_p+set}" = set; then
36630   echo $ECHO_N "(cached) $ECHO_C" >&6
36631 else
36632   if test "$cross_compiling" = yes; then
36633   # Depending upon the size, compute the lo and hi bounds.
36634 cat >conftest.$ac_ext <<_ACEOF
36635 /* confdefs.h.  */
36636 _ACEOF
36637 cat confdefs.h >>conftest.$ac_ext
36638 cat >>conftest.$ac_ext <<_ACEOF
36639 /* end confdefs.h.  */
36640 $ac_includes_default
36641    typedef int * ac__type_sizeof_;
36642 int
36643 main ()
36644 {
36645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36646 test_array [0] = 0
36647
36648   ;
36649   return 0;
36650 }
36651 _ACEOF
36652 rm -f conftest.$ac_objext
36653 if { (ac_try="$ac_compile"
36654 case "(($ac_try" in
36655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36656   *) ac_try_echo=$ac_try;;
36657 esac
36658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36659   (eval "$ac_compile") 2>conftest.er1
36660   ac_status=$?
36661   grep -v '^ *+' conftest.er1 >conftest.err
36662   rm -f conftest.er1
36663   cat conftest.err >&5
36664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36665   (exit $ac_status); } && {
36666          test -z "$ac_c_werror_flag" ||
36667          test ! -s conftest.err
36668        } && test -s conftest.$ac_objext; then
36669   ac_lo=0 ac_mid=0
36670   while :; do
36671     cat >conftest.$ac_ext <<_ACEOF
36672 /* confdefs.h.  */
36673 _ACEOF
36674 cat confdefs.h >>conftest.$ac_ext
36675 cat >>conftest.$ac_ext <<_ACEOF
36676 /* end confdefs.h.  */
36677 $ac_includes_default
36678    typedef int * ac__type_sizeof_;
36679 int
36680 main ()
36681 {
36682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36683 test_array [0] = 0
36684
36685   ;
36686   return 0;
36687 }
36688 _ACEOF
36689 rm -f conftest.$ac_objext
36690 if { (ac_try="$ac_compile"
36691 case "(($ac_try" in
36692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36693   *) ac_try_echo=$ac_try;;
36694 esac
36695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36696   (eval "$ac_compile") 2>conftest.er1
36697   ac_status=$?
36698   grep -v '^ *+' conftest.er1 >conftest.err
36699   rm -f conftest.er1
36700   cat conftest.err >&5
36701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36702   (exit $ac_status); } && {
36703          test -z "$ac_c_werror_flag" ||
36704          test ! -s conftest.err
36705        } && test -s conftest.$ac_objext; then
36706   ac_hi=$ac_mid; break
36707 else
36708   echo "$as_me: failed program was:" >&5
36709 sed 's/^/| /' conftest.$ac_ext >&5
36710
36711         ac_lo=`expr $ac_mid + 1`
36712                         if test $ac_lo -le $ac_mid; then
36713                           ac_lo= ac_hi=
36714                           break
36715                         fi
36716                         ac_mid=`expr 2 '*' $ac_mid + 1`
36717 fi
36718
36719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36720   done
36721 else
36722   echo "$as_me: failed program was:" >&5
36723 sed 's/^/| /' conftest.$ac_ext >&5
36724
36725         cat >conftest.$ac_ext <<_ACEOF
36726 /* confdefs.h.  */
36727 _ACEOF
36728 cat confdefs.h >>conftest.$ac_ext
36729 cat >>conftest.$ac_ext <<_ACEOF
36730 /* end confdefs.h.  */
36731 $ac_includes_default
36732    typedef int * ac__type_sizeof_;
36733 int
36734 main ()
36735 {
36736 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36737 test_array [0] = 0
36738
36739   ;
36740   return 0;
36741 }
36742 _ACEOF
36743 rm -f conftest.$ac_objext
36744 if { (ac_try="$ac_compile"
36745 case "(($ac_try" in
36746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36747   *) ac_try_echo=$ac_try;;
36748 esac
36749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36750   (eval "$ac_compile") 2>conftest.er1
36751   ac_status=$?
36752   grep -v '^ *+' conftest.er1 >conftest.err
36753   rm -f conftest.er1
36754   cat conftest.err >&5
36755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756   (exit $ac_status); } && {
36757          test -z "$ac_c_werror_flag" ||
36758          test ! -s conftest.err
36759        } && test -s conftest.$ac_objext; then
36760   ac_hi=-1 ac_mid=-1
36761   while :; do
36762     cat >conftest.$ac_ext <<_ACEOF
36763 /* confdefs.h.  */
36764 _ACEOF
36765 cat confdefs.h >>conftest.$ac_ext
36766 cat >>conftest.$ac_ext <<_ACEOF
36767 /* end confdefs.h.  */
36768 $ac_includes_default
36769    typedef int * ac__type_sizeof_;
36770 int
36771 main ()
36772 {
36773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36774 test_array [0] = 0
36775
36776   ;
36777   return 0;
36778 }
36779 _ACEOF
36780 rm -f conftest.$ac_objext
36781 if { (ac_try="$ac_compile"
36782 case "(($ac_try" in
36783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36784   *) ac_try_echo=$ac_try;;
36785 esac
36786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36787   (eval "$ac_compile") 2>conftest.er1
36788   ac_status=$?
36789   grep -v '^ *+' conftest.er1 >conftest.err
36790   rm -f conftest.er1
36791   cat conftest.err >&5
36792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36793   (exit $ac_status); } && {
36794          test -z "$ac_c_werror_flag" ||
36795          test ! -s conftest.err
36796        } && test -s conftest.$ac_objext; then
36797   ac_lo=$ac_mid; break
36798 else
36799   echo "$as_me: failed program was:" >&5
36800 sed 's/^/| /' conftest.$ac_ext >&5
36801
36802         ac_hi=`expr '(' $ac_mid ')' - 1`
36803                         if test $ac_mid -le $ac_hi; then
36804                           ac_lo= ac_hi=
36805                           break
36806                         fi
36807                         ac_mid=`expr 2 '*' $ac_mid`
36808 fi
36809
36810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36811   done
36812 else
36813   echo "$as_me: failed program was:" >&5
36814 sed 's/^/| /' conftest.$ac_ext >&5
36815
36816         ac_lo= ac_hi=
36817 fi
36818
36819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36820 fi
36821
36822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36823 # Binary search between lo and hi bounds.
36824 while test "x$ac_lo" != "x$ac_hi"; do
36825   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36826   cat >conftest.$ac_ext <<_ACEOF
36827 /* confdefs.h.  */
36828 _ACEOF
36829 cat confdefs.h >>conftest.$ac_ext
36830 cat >>conftest.$ac_ext <<_ACEOF
36831 /* end confdefs.h.  */
36832 $ac_includes_default
36833    typedef int * ac__type_sizeof_;
36834 int
36835 main ()
36836 {
36837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36838 test_array [0] = 0
36839
36840   ;
36841   return 0;
36842 }
36843 _ACEOF
36844 rm -f conftest.$ac_objext
36845 if { (ac_try="$ac_compile"
36846 case "(($ac_try" in
36847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36848   *) ac_try_echo=$ac_try;;
36849 esac
36850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36851   (eval "$ac_compile") 2>conftest.er1
36852   ac_status=$?
36853   grep -v '^ *+' conftest.er1 >conftest.err
36854   rm -f conftest.er1
36855   cat conftest.err >&5
36856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36857   (exit $ac_status); } && {
36858          test -z "$ac_c_werror_flag" ||
36859          test ! -s conftest.err
36860        } && test -s conftest.$ac_objext; then
36861   ac_hi=$ac_mid
36862 else
36863   echo "$as_me: failed program was:" >&5
36864 sed 's/^/| /' conftest.$ac_ext >&5
36865
36866         ac_lo=`expr '(' $ac_mid ')' + 1`
36867 fi
36868
36869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36870 done
36871 case $ac_lo in
36872 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36873 '') if test "$ac_cv_type_int_p" = yes; then
36874      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36875 See \`config.log' for more details." >&5
36876 echo "$as_me: error: cannot compute sizeof (int *)
36877 See \`config.log' for more details." >&2;}
36878    { (exit 77); exit 77; }; }
36879    else
36880      ac_cv_sizeof_int_p=0
36881    fi ;;
36882 esac
36883 else
36884   cat >conftest.$ac_ext <<_ACEOF
36885 /* confdefs.h.  */
36886 _ACEOF
36887 cat confdefs.h >>conftest.$ac_ext
36888 cat >>conftest.$ac_ext <<_ACEOF
36889 /* end confdefs.h.  */
36890 $ac_includes_default
36891    typedef int * ac__type_sizeof_;
36892 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36893 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36894 #include <stdio.h>
36895 #include <stdlib.h>
36896 int
36897 main ()
36898 {
36899
36900   FILE *f = fopen ("conftest.val", "w");
36901   if (! f)
36902     return 1;
36903   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36904     {
36905       long int i = longval ();
36906       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36907         return 1;
36908       fprintf (f, "%ld\n", i);
36909     }
36910   else
36911     {
36912       unsigned long int i = ulongval ();
36913       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36914         return 1;
36915       fprintf (f, "%lu\n", i);
36916     }
36917   return ferror (f) || fclose (f) != 0;
36918
36919   ;
36920   return 0;
36921 }
36922 _ACEOF
36923 rm -f conftest$ac_exeext
36924 if { (ac_try="$ac_link"
36925 case "(($ac_try" in
36926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36927   *) ac_try_echo=$ac_try;;
36928 esac
36929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36930   (eval "$ac_link") 2>&5
36931   ac_status=$?
36932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36934   { (case "(($ac_try" in
36935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36936   *) ac_try_echo=$ac_try;;
36937 esac
36938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36939   (eval "$ac_try") 2>&5
36940   ac_status=$?
36941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36942   (exit $ac_status); }; }; then
36943   ac_cv_sizeof_int_p=`cat conftest.val`
36944 else
36945   echo "$as_me: program exited with status $ac_status" >&5
36946 echo "$as_me: failed program was:" >&5
36947 sed 's/^/| /' conftest.$ac_ext >&5
36948
36949 ( exit $ac_status )
36950 if test "$ac_cv_type_int_p" = yes; then
36951      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36952 See \`config.log' for more details." >&5
36953 echo "$as_me: error: cannot compute sizeof (int *)
36954 See \`config.log' for more details." >&2;}
36955    { (exit 77); exit 77; }; }
36956    else
36957      ac_cv_sizeof_int_p=0
36958    fi
36959 fi
36960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36961 fi
36962 rm -f conftest.val
36963 fi
36964 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36965 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36966
36967
36968
36969 cat >>confdefs.h <<_ACEOF
36970 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36971 _ACEOF
36972
36973
36974
36975 { echo "$as_me:$LINENO: checking for u_int type" >&5
36976 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36977 if test "${ac_cv_have_u_int+set}" = set; then
36978   echo $ECHO_N "(cached) $ECHO_C" >&6
36979 else
36980
36981        cat >conftest.$ac_ext <<_ACEOF
36982 /* confdefs.h.  */
36983 _ACEOF
36984 cat confdefs.h >>conftest.$ac_ext
36985 cat >>conftest.$ac_ext <<_ACEOF
36986 /* end confdefs.h.  */
36987
36988               #include <sys/types.h>
36989
36990 int
36991 main ()
36992 {
36993
36994               u_int a; a = 1;
36995
36996   ;
36997   return 0;
36998 }
36999 _ACEOF
37000 rm -f conftest.$ac_objext
37001 if { (ac_try="$ac_compile"
37002 case "(($ac_try" in
37003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37004   *) ac_try_echo=$ac_try;;
37005 esac
37006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37007   (eval "$ac_compile") 2>conftest.er1
37008   ac_status=$?
37009   grep -v '^ *+' conftest.er1 >conftest.err
37010   rm -f conftest.er1
37011   cat conftest.err >&5
37012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37013   (exit $ac_status); } && {
37014          test -z "$ac_c_werror_flag" ||
37015          test ! -s conftest.err
37016        } && test -s conftest.$ac_objext; then
37017
37018               ac_cv_have_u_int="yes"
37019
37020 else
37021   echo "$as_me: failed program was:" >&5
37022 sed 's/^/| /' conftest.$ac_ext >&5
37023
37024
37025               ac_cv_have_u_int="no"
37026
37027
37028 fi
37029
37030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37031
37032
37033 fi
37034 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37035 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37036 if test "x$ac_cv_have_u_int" = "xyes" ; then
37037    cat >>confdefs.h <<\_ACEOF
37038 #define HAVE_U_INT 1
37039 _ACEOF
37040
37041    have_u_int=1
37042 fi
37043
37044 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37045 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37046 if test "${ac_cv_have_intmax_t+set}" = set; then
37047   echo $ECHO_N "(cached) $ECHO_C" >&6
37048 else
37049
37050        cat >conftest.$ac_ext <<_ACEOF
37051 /* confdefs.h.  */
37052 _ACEOF
37053 cat confdefs.h >>conftest.$ac_ext
37054 cat >>conftest.$ac_ext <<_ACEOF
37055 /* end confdefs.h.  */
37056
37057               #include <sys/types.h>
37058
37059 int
37060 main ()
37061 {
37062
37063               intmax_t a; a = 1;
37064
37065   ;
37066   return 0;
37067 }
37068 _ACEOF
37069 rm -f conftest.$ac_objext
37070 if { (ac_try="$ac_compile"
37071 case "(($ac_try" in
37072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37073   *) ac_try_echo=$ac_try;;
37074 esac
37075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37076   (eval "$ac_compile") 2>conftest.er1
37077   ac_status=$?
37078   grep -v '^ *+' conftest.er1 >conftest.err
37079   rm -f conftest.er1
37080   cat conftest.err >&5
37081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082   (exit $ac_status); } && {
37083          test -z "$ac_c_werror_flag" ||
37084          test ! -s conftest.err
37085        } && test -s conftest.$ac_objext; then
37086
37087               ac_cv_have_intmax_t="yes"
37088
37089 else
37090   echo "$as_me: failed program was:" >&5
37091 sed 's/^/| /' conftest.$ac_ext >&5
37092
37093
37094               cat >conftest.$ac_ext <<_ACEOF
37095 /* confdefs.h.  */
37096 _ACEOF
37097 cat confdefs.h >>conftest.$ac_ext
37098 cat >>conftest.$ac_ext <<_ACEOF
37099 /* end confdefs.h.  */
37100
37101                      #include <stdint.h>
37102
37103 int
37104 main ()
37105 {
37106
37107                      intmax_t a; a = 1;
37108
37109   ;
37110   return 0;
37111 }
37112 _ACEOF
37113 rm -f conftest.$ac_objext
37114 if { (ac_try="$ac_compile"
37115 case "(($ac_try" in
37116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37117   *) ac_try_echo=$ac_try;;
37118 esac
37119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37120   (eval "$ac_compile") 2>conftest.er1
37121   ac_status=$?
37122   grep -v '^ *+' conftest.er1 >conftest.err
37123   rm -f conftest.er1
37124   cat conftest.err >&5
37125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37126   (exit $ac_status); } && {
37127          test -z "$ac_c_werror_flag" ||
37128          test ! -s conftest.err
37129        } && test -s conftest.$ac_objext; then
37130
37131                      ac_cv_have_intmax_t="yes"
37132
37133 else
37134   echo "$as_me: failed program was:" >&5
37135 sed 's/^/| /' conftest.$ac_ext >&5
37136
37137
37138                      ac_cv_have_intmax_t="no"
37139
37140
37141 fi
37142
37143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37144
37145
37146 fi
37147
37148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37149
37150
37151 fi
37152 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37153 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37154 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37155    cat >>confdefs.h <<\_ACEOF
37156 #define HAVE_INTMAX_T 1
37157 _ACEOF
37158
37159    have_intmax_t=1
37160 fi
37161
37162 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37163 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37164 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37165   echo $ECHO_N "(cached) $ECHO_C" >&6
37166 else
37167
37168        cat >conftest.$ac_ext <<_ACEOF
37169 /* confdefs.h.  */
37170 _ACEOF
37171 cat confdefs.h >>conftest.$ac_ext
37172 cat >>conftest.$ac_ext <<_ACEOF
37173 /* end confdefs.h.  */
37174
37175               #include <sys/types.h>
37176
37177 int
37178 main ()
37179 {
37180
37181               u_intmax_t a; a = 1;
37182
37183   ;
37184   return 0;
37185 }
37186 _ACEOF
37187 rm -f conftest.$ac_objext
37188 if { (ac_try="$ac_compile"
37189 case "(($ac_try" in
37190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37191   *) ac_try_echo=$ac_try;;
37192 esac
37193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37194   (eval "$ac_compile") 2>conftest.er1
37195   ac_status=$?
37196   grep -v '^ *+' conftest.er1 >conftest.err
37197   rm -f conftest.er1
37198   cat conftest.err >&5
37199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200   (exit $ac_status); } && {
37201          test -z "$ac_c_werror_flag" ||
37202          test ! -s conftest.err
37203        } && test -s conftest.$ac_objext; then
37204
37205               ac_cv_have_u_intmax_t="yes"
37206
37207 else
37208   echo "$as_me: failed program was:" >&5
37209 sed 's/^/| /' conftest.$ac_ext >&5
37210
37211
37212               cat >conftest.$ac_ext <<_ACEOF
37213 /* confdefs.h.  */
37214 _ACEOF
37215 cat confdefs.h >>conftest.$ac_ext
37216 cat >>conftest.$ac_ext <<_ACEOF
37217 /* end confdefs.h.  */
37218
37219                      #include <stdint.h>
37220
37221 int
37222 main ()
37223 {
37224
37225                     u_intmax_t a; a = 1;
37226
37227   ;
37228   return 0;
37229 }
37230 _ACEOF
37231 rm -f conftest.$ac_objext
37232 if { (ac_try="$ac_compile"
37233 case "(($ac_try" in
37234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37235   *) ac_try_echo=$ac_try;;
37236 esac
37237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37238   (eval "$ac_compile") 2>conftest.er1
37239   ac_status=$?
37240   grep -v '^ *+' conftest.er1 >conftest.err
37241   rm -f conftest.er1
37242   cat conftest.err >&5
37243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37244   (exit $ac_status); } && {
37245          test -z "$ac_c_werror_flag" ||
37246          test ! -s conftest.err
37247        } && test -s conftest.$ac_objext; then
37248
37249                     ac_cv_have_u_intmax_t="yes"
37250
37251 else
37252   echo "$as_me: failed program was:" >&5
37253 sed 's/^/| /' conftest.$ac_ext >&5
37254
37255
37256                     ac_cv_have_u_intmax_t="no"
37257
37258
37259 fi
37260
37261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37262
37263
37264 fi
37265
37266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37267
37268
37269 fi
37270 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37271 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37272 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37273    cat >>confdefs.h <<\_ACEOF
37274 #define HAVE_U_INTMAX_T 1
37275 _ACEOF
37276
37277    have_u_intmax_t=1
37278 fi
37279
37280 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37281 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37282 if test "${ac_cv_have_intxx_t+set}" = set; then
37283   echo $ECHO_N "(cached) $ECHO_C" >&6
37284 else
37285
37286        cat >conftest.$ac_ext <<_ACEOF
37287 /* confdefs.h.  */
37288 _ACEOF
37289 cat confdefs.h >>conftest.$ac_ext
37290 cat >>conftest.$ac_ext <<_ACEOF
37291 /* end confdefs.h.  */
37292
37293               #include <sys/types.h>
37294
37295 int
37296 main ()
37297 {
37298
37299               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37300
37301   ;
37302   return 0;
37303 }
37304 _ACEOF
37305 rm -f conftest.$ac_objext
37306 if { (ac_try="$ac_compile"
37307 case "(($ac_try" in
37308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37309   *) ac_try_echo=$ac_try;;
37310 esac
37311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37312   (eval "$ac_compile") 2>conftest.er1
37313   ac_status=$?
37314   grep -v '^ *+' conftest.er1 >conftest.err
37315   rm -f conftest.er1
37316   cat conftest.err >&5
37317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37318   (exit $ac_status); } && {
37319          test -z "$ac_c_werror_flag" ||
37320          test ! -s conftest.err
37321        } && test -s conftest.$ac_objext; then
37322
37323               ac_cv_have_intxx_t="yes"
37324
37325 else
37326   echo "$as_me: failed program was:" >&5
37327 sed 's/^/| /' conftest.$ac_ext >&5
37328
37329
37330               ac_cv_have_intxx_t="no"
37331
37332
37333 fi
37334
37335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37336
37337
37338 fi
37339 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37340 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37341 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37342    cat >>confdefs.h <<\_ACEOF
37343 #define HAVE_INTXX_T 1
37344 _ACEOF
37345
37346    have_intxx_t=1
37347 fi
37348
37349 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37350 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37351 if test "${ac_cv_have_int64_t+set}" = set; then
37352   echo $ECHO_N "(cached) $ECHO_C" >&6
37353 else
37354
37355        cat >conftest.$ac_ext <<_ACEOF
37356 /* confdefs.h.  */
37357 _ACEOF
37358 cat confdefs.h >>conftest.$ac_ext
37359 cat >>conftest.$ac_ext <<_ACEOF
37360 /* end confdefs.h.  */
37361
37362               #include <sys/types.h>
37363
37364 int
37365 main ()
37366 {
37367
37368               int64_t a; a = 1;
37369
37370   ;
37371   return 0;
37372 }
37373 _ACEOF
37374 rm -f conftest.$ac_objext
37375 if { (ac_try="$ac_compile"
37376 case "(($ac_try" in
37377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37378   *) ac_try_echo=$ac_try;;
37379 esac
37380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37381   (eval "$ac_compile") 2>conftest.er1
37382   ac_status=$?
37383   grep -v '^ *+' conftest.er1 >conftest.err
37384   rm -f conftest.er1
37385   cat conftest.err >&5
37386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37387   (exit $ac_status); } && {
37388          test -z "$ac_c_werror_flag" ||
37389          test ! -s conftest.err
37390        } && test -s conftest.$ac_objext; then
37391
37392               ac_cv_have_int64_t="yes"
37393
37394 else
37395   echo "$as_me: failed program was:" >&5
37396 sed 's/^/| /' conftest.$ac_ext >&5
37397
37398
37399               ac_cv_have_int64_t="no"
37400
37401
37402 fi
37403
37404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37405
37406
37407 fi
37408 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37409 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37410 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37411    cat >>confdefs.h <<\_ACEOF
37412 #define HAVE_INT64_T 1
37413 _ACEOF
37414
37415    have_int64_t=1
37416 fi
37417
37418 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37419 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37420 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37421   echo $ECHO_N "(cached) $ECHO_C" >&6
37422 else
37423
37424        cat >conftest.$ac_ext <<_ACEOF
37425 /* confdefs.h.  */
37426 _ACEOF
37427 cat confdefs.h >>conftest.$ac_ext
37428 cat >>conftest.$ac_ext <<_ACEOF
37429 /* end confdefs.h.  */
37430
37431               #include <sys/types.h>
37432
37433 int
37434 main ()
37435 {
37436
37437               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37438
37439   ;
37440   return 0;
37441 }
37442 _ACEOF
37443 rm -f conftest.$ac_objext
37444 if { (ac_try="$ac_compile"
37445 case "(($ac_try" in
37446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37447   *) ac_try_echo=$ac_try;;
37448 esac
37449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37450   (eval "$ac_compile") 2>conftest.er1
37451   ac_status=$?
37452   grep -v '^ *+' conftest.er1 >conftest.err
37453   rm -f conftest.er1
37454   cat conftest.err >&5
37455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37456   (exit $ac_status); } && {
37457          test -z "$ac_c_werror_flag" ||
37458          test ! -s conftest.err
37459        } && test -s conftest.$ac_objext; then
37460
37461              ac_cv_have_u_intxx_t="yes"
37462
37463 else
37464   echo "$as_me: failed program was:" >&5
37465 sed 's/^/| /' conftest.$ac_ext >&5
37466
37467
37468              ac_cv_have_u_intxx_t="no"
37469
37470
37471 fi
37472
37473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37474
37475
37476 fi
37477 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37478 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37479 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37480    cat >>confdefs.h <<\_ACEOF
37481 #define HAVE_U_INTXX_T 1
37482 _ACEOF
37483
37484    have_u_intxx_t=1
37485 fi
37486
37487 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37488 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37489 if test "${ac_cv_have_u_int64_t+set}" = set; then
37490   echo $ECHO_N "(cached) $ECHO_C" >&6
37491 else
37492
37493        cat >conftest.$ac_ext <<_ACEOF
37494 /* confdefs.h.  */
37495 _ACEOF
37496 cat confdefs.h >>conftest.$ac_ext
37497 cat >>conftest.$ac_ext <<_ACEOF
37498 /* end confdefs.h.  */
37499
37500               #include <sys/types.h>
37501
37502 int
37503 main ()
37504 {
37505
37506               u_int64_t a; a = 1;
37507
37508   ;
37509   return 0;
37510 }
37511 _ACEOF
37512 rm -f conftest.$ac_objext
37513 if { (ac_try="$ac_compile"
37514 case "(($ac_try" in
37515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37516   *) ac_try_echo=$ac_try;;
37517 esac
37518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37519   (eval "$ac_compile") 2>conftest.er1
37520   ac_status=$?
37521   grep -v '^ *+' conftest.er1 >conftest.err
37522   rm -f conftest.er1
37523   cat conftest.err >&5
37524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37525   (exit $ac_status); } && {
37526          test -z "$ac_c_werror_flag" ||
37527          test ! -s conftest.err
37528        } && test -s conftest.$ac_objext; then
37529
37530              ac_cv_have_u_int64_t="yes"
37531
37532 else
37533   echo "$as_me: failed program was:" >&5
37534 sed 's/^/| /' conftest.$ac_ext >&5
37535
37536
37537              ac_cv_have_u_int64_t="no"
37538
37539
37540 fi
37541
37542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37543
37544
37545 fi
37546 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37547 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37548 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37549    cat >>confdefs.h <<\_ACEOF
37550 #define HAVE_U_INT64_T 1
37551 _ACEOF
37552
37553    have_u_int64_t=1
37554 fi
37555
37556 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37557     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37558 then
37559    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37560 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37561    cat >conftest.$ac_ext <<_ACEOF
37562 /* confdefs.h.  */
37563 _ACEOF
37564 cat confdefs.h >>conftest.$ac_ext
37565 cat >>conftest.$ac_ext <<_ACEOF
37566 /* end confdefs.h.  */
37567
37568           #include <sys/bitypes.h>
37569
37570 int
37571 main ()
37572 {
37573
37574           int8_t a; int16_t b; int32_t c;
37575           u_int8_t e; u_int16_t f; u_int32_t g;
37576           a = b = c = e = f = g = 1;
37577
37578   ;
37579   return 0;
37580 }
37581 _ACEOF
37582 rm -f conftest.$ac_objext
37583 if { (ac_try="$ac_compile"
37584 case "(($ac_try" in
37585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37586   *) ac_try_echo=$ac_try;;
37587 esac
37588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37589   (eval "$ac_compile") 2>conftest.er1
37590   ac_status=$?
37591   grep -v '^ *+' conftest.er1 >conftest.err
37592   rm -f conftest.er1
37593   cat conftest.err >&5
37594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37595   (exit $ac_status); } && {
37596          test -z "$ac_c_werror_flag" ||
37597          test ! -s conftest.err
37598        } && test -s conftest.$ac_objext; then
37599
37600           cat >>confdefs.h <<\_ACEOF
37601 #define HAVE_U_INTXX_T 1
37602 _ACEOF
37603
37604           cat >>confdefs.h <<\_ACEOF
37605 #define HAVE_INTXX_T 1
37606 _ACEOF
37607
37608           cat >>confdefs.h <<\_ACEOF
37609 #define HAVE_SYS_BITYPES_H 1
37610 _ACEOF
37611
37612           { echo "$as_me:$LINENO: result: yes" >&5
37613 echo "${ECHO_T}yes" >&6; }
37614
37615 else
37616   echo "$as_me: failed program was:" >&5
37617 sed 's/^/| /' conftest.$ac_ext >&5
37618
37619
37620           { echo "$as_me:$LINENO: result: no" >&5
37621 echo "${ECHO_T}no" >&6; }
37622
37623
37624 fi
37625
37626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37627 fi
37628
37629 if test -z "$have_u_intxx_t" ; then
37630    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37631 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37632 if test "${ac_cv_have_uintxx_t+set}" = set; then
37633   echo $ECHO_N "(cached) $ECHO_C" >&6
37634 else
37635
37636           cat >conftest.$ac_ext <<_ACEOF
37637 /* confdefs.h.  */
37638 _ACEOF
37639 cat confdefs.h >>conftest.$ac_ext
37640 cat >>conftest.$ac_ext <<_ACEOF
37641 /* end confdefs.h.  */
37642
37643                  #include <sys/types.h>
37644
37645 int
37646 main ()
37647 {
37648
37649                  uint8_t a; uint16_t b;
37650                  uint32_t c; a = b = c = 1;
37651
37652   ;
37653   return 0;
37654 }
37655 _ACEOF
37656 rm -f conftest.$ac_objext
37657 if { (ac_try="$ac_compile"
37658 case "(($ac_try" in
37659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37660   *) ac_try_echo=$ac_try;;
37661 esac
37662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37663   (eval "$ac_compile") 2>conftest.er1
37664   ac_status=$?
37665   grep -v '^ *+' conftest.er1 >conftest.err
37666   rm -f conftest.er1
37667   cat conftest.err >&5
37668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37669   (exit $ac_status); } && {
37670          test -z "$ac_c_werror_flag" ||
37671          test ! -s conftest.err
37672        } && test -s conftest.$ac_objext; then
37673
37674                 ac_cv_have_uintxx_t="yes"
37675
37676 else
37677   echo "$as_me: failed program was:" >&5
37678 sed 's/^/| /' conftest.$ac_ext >&5
37679
37680
37681                 ac_cv_have_uintxx_t="no"
37682
37683
37684 fi
37685
37686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37687
37688
37689 fi
37690 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37691 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37692    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37693       cat >>confdefs.h <<\_ACEOF
37694 #define HAVE_UINTXX_T 1
37695 _ACEOF
37696
37697    fi
37698 fi
37699
37700 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37701     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37702 then
37703    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37704 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37705    cat >conftest.$ac_ext <<_ACEOF
37706 /* confdefs.h.  */
37707 _ACEOF
37708 cat confdefs.h >>conftest.$ac_ext
37709 cat >>conftest.$ac_ext <<_ACEOF
37710 /* end confdefs.h.  */
37711
37712           #include <sys/bitypes.h>
37713
37714 int
37715 main ()
37716 {
37717
37718           int64_t a; u_int64_t b;
37719           a = b = 1;
37720
37721   ;
37722   return 0;
37723 }
37724 _ACEOF
37725 rm -f conftest.$ac_objext
37726 if { (ac_try="$ac_compile"
37727 case "(($ac_try" in
37728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37729   *) ac_try_echo=$ac_try;;
37730 esac
37731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37732   (eval "$ac_compile") 2>conftest.er1
37733   ac_status=$?
37734   grep -v '^ *+' conftest.er1 >conftest.err
37735   rm -f conftest.er1
37736   cat conftest.err >&5
37737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738   (exit $ac_status); } && {
37739          test -z "$ac_c_werror_flag" ||
37740          test ! -s conftest.err
37741        } && test -s conftest.$ac_objext; then
37742
37743           cat >>confdefs.h <<\_ACEOF
37744 #define HAVE_U_INT64_T 1
37745 _ACEOF
37746
37747           cat >>confdefs.h <<\_ACEOF
37748 #define HAVE_INT64_T 1
37749 _ACEOF
37750
37751           { echo "$as_me:$LINENO: result: yes" >&5
37752 echo "${ECHO_T}yes" >&6; }
37753
37754 else
37755   echo "$as_me: failed program was:" >&5
37756 sed 's/^/| /' conftest.$ac_ext >&5
37757
37758
37759           { echo "$as_me:$LINENO: result: no" >&5
37760 echo "${ECHO_T}no" >&6; }
37761
37762
37763 fi
37764
37765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37766 fi
37767
37768 if (test -z "$have_uintxx_t" && \
37769     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37770 then
37771    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37772 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37773    cat >conftest.$ac_ext <<_ACEOF
37774 /* confdefs.h.  */
37775 _ACEOF
37776 cat confdefs.h >>conftest.$ac_ext
37777 cat >>conftest.$ac_ext <<_ACEOF
37778 /* end confdefs.h.  */
37779
37780           #include <sys/bitypes.h>
37781
37782 int
37783 main ()
37784 {
37785
37786           uint8_t a; uint16_t b;
37787           uint32_t c; a = b = c = 1;
37788
37789   ;
37790   return 0;
37791 }
37792 _ACEOF
37793 rm -f conftest.$ac_objext
37794 if { (ac_try="$ac_compile"
37795 case "(($ac_try" in
37796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37797   *) ac_try_echo=$ac_try;;
37798 esac
37799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37800   (eval "$ac_compile") 2>conftest.er1
37801   ac_status=$?
37802   grep -v '^ *+' conftest.er1 >conftest.err
37803   rm -f conftest.er1
37804   cat conftest.err >&5
37805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37806   (exit $ac_status); } && {
37807          test -z "$ac_c_werror_flag" ||
37808          test ! -s conftest.err
37809        } && test -s conftest.$ac_objext; then
37810
37811           cat >>confdefs.h <<\_ACEOF
37812 #define HAVE_UINTXX_T 1
37813 _ACEOF
37814
37815           { echo "$as_me:$LINENO: result: yes" >&5
37816 echo "${ECHO_T}yes" >&6; }
37817
37818 else
37819   echo "$as_me: failed program was:" >&5
37820 sed 's/^/| /' conftest.$ac_ext >&5
37821
37822
37823           { echo "$as_me:$LINENO: result: no" >&5
37824 echo "${ECHO_T}no" >&6; }
37825
37826
37827 fi
37828
37829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37830 fi
37831
37832
37833
37834
37835
37836
37837
37838
37839
37840
37841
37842
37843
37844
37845 for ac_func in \
37846    fork \
37847    getcwd \
37848    gethostname \
37849    getpid \
37850    gettimeofday \
37851    setpgid \
37852    setpgrp \
37853    setsid \
37854    signal \
37855    strerror \
37856    strncmp \
37857    strncpy \
37858    vfprintf \
37859
37860 do
37861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37865   echo $ECHO_N "(cached) $ECHO_C" >&6
37866 else
37867   cat >conftest.$ac_ext <<_ACEOF
37868 /* confdefs.h.  */
37869 _ACEOF
37870 cat confdefs.h >>conftest.$ac_ext
37871 cat >>conftest.$ac_ext <<_ACEOF
37872 /* end confdefs.h.  */
37873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37875 #define $ac_func innocuous_$ac_func
37876
37877 /* System header to define __stub macros and hopefully few prototypes,
37878     which can conflict with char $ac_func (); below.
37879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37880     <limits.h> exists even on freestanding compilers.  */
37881
37882 #ifdef __STDC__
37883 # include <limits.h>
37884 #else
37885 # include <assert.h>
37886 #endif
37887
37888 #undef $ac_func
37889
37890 /* Override any GCC internal prototype to avoid an error.
37891    Use char because int might match the return type of a GCC
37892    builtin and then its argument prototype would still apply.  */
37893 #ifdef __cplusplus
37894 extern "C"
37895 #endif
37896 char $ac_func ();
37897 /* The GNU C library defines this for functions which it implements
37898     to always fail with ENOSYS.  Some functions are actually named
37899     something starting with __ and the normal name is an alias.  */
37900 #if defined __stub_$ac_func || defined __stub___$ac_func
37901 choke me
37902 #endif
37903
37904 int
37905 main ()
37906 {
37907 return $ac_func ();
37908   ;
37909   return 0;
37910 }
37911 _ACEOF
37912 rm -f conftest.$ac_objext conftest$ac_exeext
37913 if { (ac_try="$ac_link"
37914 case "(($ac_try" in
37915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37916   *) ac_try_echo=$ac_try;;
37917 esac
37918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37919   (eval "$ac_link") 2>conftest.er1
37920   ac_status=$?
37921   grep -v '^ *+' conftest.er1 >conftest.err
37922   rm -f conftest.er1
37923   cat conftest.err >&5
37924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37925   (exit $ac_status); } && {
37926          test -z "$ac_c_werror_flag" ||
37927          test ! -s conftest.err
37928        } && test -s conftest$ac_exeext &&
37929        $as_test_x conftest$ac_exeext; then
37930   eval "$as_ac_var=yes"
37931 else
37932   echo "$as_me: failed program was:" >&5
37933 sed 's/^/| /' conftest.$ac_ext >&5
37934
37935         eval "$as_ac_var=no"
37936 fi
37937
37938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37939       conftest$ac_exeext conftest.$ac_ext
37940 fi
37941 ac_res=`eval echo '${'$as_ac_var'}'`
37942                { echo "$as_me:$LINENO: result: $ac_res" >&5
37943 echo "${ECHO_T}$ac_res" >&6; }
37944 if test `eval echo '${'$as_ac_var'}'` = yes; then
37945   cat >>confdefs.h <<_ACEOF
37946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37947 _ACEOF
37948
37949 else
37950   echo 'configure: cannot find needed function.'; exit 1
37951
37952 fi
37953 done
37954
37955
37956
37957 for ac_func in fchdir
37958 do
37959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37963   echo $ECHO_N "(cached) $ECHO_C" >&6
37964 else
37965   cat >conftest.$ac_ext <<_ACEOF
37966 /* confdefs.h.  */
37967 _ACEOF
37968 cat confdefs.h >>conftest.$ac_ext
37969 cat >>conftest.$ac_ext <<_ACEOF
37970 /* end confdefs.h.  */
37971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37973 #define $ac_func innocuous_$ac_func
37974
37975 /* System header to define __stub macros and hopefully few prototypes,
37976     which can conflict with char $ac_func (); below.
37977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37978     <limits.h> exists even on freestanding compilers.  */
37979
37980 #ifdef __STDC__
37981 # include <limits.h>
37982 #else
37983 # include <assert.h>
37984 #endif
37985
37986 #undef $ac_func
37987
37988 /* Override any GCC internal prototype to avoid an error.
37989    Use char because int might match the return type of a GCC
37990    builtin and then its argument prototype would still apply.  */
37991 #ifdef __cplusplus
37992 extern "C"
37993 #endif
37994 char $ac_func ();
37995 /* The GNU C library defines this for functions which it implements
37996     to always fail with ENOSYS.  Some functions are actually named
37997     something starting with __ and the normal name is an alias.  */
37998 #if defined __stub_$ac_func || defined __stub___$ac_func
37999 choke me
38000 #endif
38001
38002 int
38003 main ()
38004 {
38005 return $ac_func ();
38006   ;
38007   return 0;
38008 }
38009 _ACEOF
38010 rm -f conftest.$ac_objext conftest$ac_exeext
38011 if { (ac_try="$ac_link"
38012 case "(($ac_try" in
38013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38014   *) ac_try_echo=$ac_try;;
38015 esac
38016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38017   (eval "$ac_link") 2>conftest.er1
38018   ac_status=$?
38019   grep -v '^ *+' conftest.er1 >conftest.err
38020   rm -f conftest.er1
38021   cat conftest.err >&5
38022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023   (exit $ac_status); } && {
38024          test -z "$ac_c_werror_flag" ||
38025          test ! -s conftest.err
38026        } && test -s conftest$ac_exeext &&
38027        $as_test_x conftest$ac_exeext; then
38028   eval "$as_ac_var=yes"
38029 else
38030   echo "$as_me: failed program was:" >&5
38031 sed 's/^/| /' conftest.$ac_ext >&5
38032
38033         eval "$as_ac_var=no"
38034 fi
38035
38036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38037       conftest$ac_exeext conftest.$ac_ext
38038 fi
38039 ac_res=`eval echo '${'$as_ac_var'}'`
38040                { echo "$as_me:$LINENO: result: $ac_res" >&5
38041 echo "${ECHO_T}$ac_res" >&6; }
38042 if test `eval echo '${'$as_ac_var'}'` = yes; then
38043   cat >>confdefs.h <<_ACEOF
38044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38045 _ACEOF
38046  cat >>confdefs.h <<\_ACEOF
38047 #define HAVE_FCHDIR 1
38048 _ACEOF
38049
38050 fi
38051 done
38052
38053
38054 for ac_func in strtoll
38055 do
38056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38060   echo $ECHO_N "(cached) $ECHO_C" >&6
38061 else
38062   cat >conftest.$ac_ext <<_ACEOF
38063 /* confdefs.h.  */
38064 _ACEOF
38065 cat confdefs.h >>conftest.$ac_ext
38066 cat >>conftest.$ac_ext <<_ACEOF
38067 /* end confdefs.h.  */
38068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38070 #define $ac_func innocuous_$ac_func
38071
38072 /* System header to define __stub macros and hopefully few prototypes,
38073     which can conflict with char $ac_func (); below.
38074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38075     <limits.h> exists even on freestanding compilers.  */
38076
38077 #ifdef __STDC__
38078 # include <limits.h>
38079 #else
38080 # include <assert.h>
38081 #endif
38082
38083 #undef $ac_func
38084
38085 /* Override any GCC internal prototype to avoid an error.
38086    Use char because int might match the return type of a GCC
38087    builtin and then its argument prototype would still apply.  */
38088 #ifdef __cplusplus
38089 extern "C"
38090 #endif
38091 char $ac_func ();
38092 /* The GNU C library defines this for functions which it implements
38093     to always fail with ENOSYS.  Some functions are actually named
38094     something starting with __ and the normal name is an alias.  */
38095 #if defined __stub_$ac_func || defined __stub___$ac_func
38096 choke me
38097 #endif
38098
38099 int
38100 main ()
38101 {
38102 return $ac_func ();
38103   ;
38104   return 0;
38105 }
38106 _ACEOF
38107 rm -f conftest.$ac_objext conftest$ac_exeext
38108 if { (ac_try="$ac_link"
38109 case "(($ac_try" in
38110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38111   *) ac_try_echo=$ac_try;;
38112 esac
38113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38114   (eval "$ac_link") 2>conftest.er1
38115   ac_status=$?
38116   grep -v '^ *+' conftest.er1 >conftest.err
38117   rm -f conftest.er1
38118   cat conftest.err >&5
38119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38120   (exit $ac_status); } && {
38121          test -z "$ac_c_werror_flag" ||
38122          test ! -s conftest.err
38123        } && test -s conftest$ac_exeext &&
38124        $as_test_x conftest$ac_exeext; then
38125   eval "$as_ac_var=yes"
38126 else
38127   echo "$as_me: failed program was:" >&5
38128 sed 's/^/| /' conftest.$ac_ext >&5
38129
38130         eval "$as_ac_var=no"
38131 fi
38132
38133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38134       conftest$ac_exeext conftest.$ac_ext
38135 fi
38136 ac_res=`eval echo '${'$as_ac_var'}'`
38137                { echo "$as_me:$LINENO: result: $ac_res" >&5
38138 echo "${ECHO_T}$ac_res" >&6; }
38139 if test `eval echo '${'$as_ac_var'}'` = yes; then
38140   cat >>confdefs.h <<_ACEOF
38141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38142 _ACEOF
38143  cat >>confdefs.h <<\_ACEOF
38144 #define HAVE_STRTOLL 1
38145 _ACEOF
38146
38147 fi
38148 done
38149
38150
38151 for ac_func in posix_fadvise
38152 do
38153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38157   echo $ECHO_N "(cached) $ECHO_C" >&6
38158 else
38159   cat >conftest.$ac_ext <<_ACEOF
38160 /* confdefs.h.  */
38161 _ACEOF
38162 cat confdefs.h >>conftest.$ac_ext
38163 cat >>conftest.$ac_ext <<_ACEOF
38164 /* end confdefs.h.  */
38165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38167 #define $ac_func innocuous_$ac_func
38168
38169 /* System header to define __stub macros and hopefully few prototypes,
38170     which can conflict with char $ac_func (); below.
38171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38172     <limits.h> exists even on freestanding compilers.  */
38173
38174 #ifdef __STDC__
38175 # include <limits.h>
38176 #else
38177 # include <assert.h>
38178 #endif
38179
38180 #undef $ac_func
38181
38182 /* Override any GCC internal prototype to avoid an error.
38183    Use char because int might match the return type of a GCC
38184    builtin and then its argument prototype would still apply.  */
38185 #ifdef __cplusplus
38186 extern "C"
38187 #endif
38188 char $ac_func ();
38189 /* The GNU C library defines this for functions which it implements
38190     to always fail with ENOSYS.  Some functions are actually named
38191     something starting with __ and the normal name is an alias.  */
38192 #if defined __stub_$ac_func || defined __stub___$ac_func
38193 choke me
38194 #endif
38195
38196 int
38197 main ()
38198 {
38199 return $ac_func ();
38200   ;
38201   return 0;
38202 }
38203 _ACEOF
38204 rm -f conftest.$ac_objext conftest$ac_exeext
38205 if { (ac_try="$ac_link"
38206 case "(($ac_try" in
38207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38208   *) ac_try_echo=$ac_try;;
38209 esac
38210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38211   (eval "$ac_link") 2>conftest.er1
38212   ac_status=$?
38213   grep -v '^ *+' conftest.er1 >conftest.err
38214   rm -f conftest.er1
38215   cat conftest.err >&5
38216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38217   (exit $ac_status); } && {
38218          test -z "$ac_c_werror_flag" ||
38219          test ! -s conftest.err
38220        } && test -s conftest$ac_exeext &&
38221        $as_test_x conftest$ac_exeext; then
38222   eval "$as_ac_var=yes"
38223 else
38224   echo "$as_me: failed program was:" >&5
38225 sed 's/^/| /' conftest.$ac_ext >&5
38226
38227         eval "$as_ac_var=no"
38228 fi
38229
38230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38231       conftest$ac_exeext conftest.$ac_ext
38232 fi
38233 ac_res=`eval echo '${'$as_ac_var'}'`
38234                { echo "$as_me:$LINENO: result: $ac_res" >&5
38235 echo "${ECHO_T}$ac_res" >&6; }
38236 if test `eval echo '${'$as_ac_var'}'` = yes; then
38237   cat >>confdefs.h <<_ACEOF
38238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38239 _ACEOF
38240
38241 fi
38242 done
38243
38244
38245 for ac_func in fdatasync
38246 do
38247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38251   echo $ECHO_N "(cached) $ECHO_C" >&6
38252 else
38253   cat >conftest.$ac_ext <<_ACEOF
38254 /* confdefs.h.  */
38255 _ACEOF
38256 cat confdefs.h >>conftest.$ac_ext
38257 cat >>conftest.$ac_ext <<_ACEOF
38258 /* end confdefs.h.  */
38259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38261 #define $ac_func innocuous_$ac_func
38262
38263 /* System header to define __stub macros and hopefully few prototypes,
38264     which can conflict with char $ac_func (); below.
38265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38266     <limits.h> exists even on freestanding compilers.  */
38267
38268 #ifdef __STDC__
38269 # include <limits.h>
38270 #else
38271 # include <assert.h>
38272 #endif
38273
38274 #undef $ac_func
38275
38276 /* Override any GCC internal prototype to avoid an error.
38277    Use char because int might match the return type of a GCC
38278    builtin and then its argument prototype would still apply.  */
38279 #ifdef __cplusplus
38280 extern "C"
38281 #endif
38282 char $ac_func ();
38283 /* The GNU C library defines this for functions which it implements
38284     to always fail with ENOSYS.  Some functions are actually named
38285     something starting with __ and the normal name is an alias.  */
38286 #if defined __stub_$ac_func || defined __stub___$ac_func
38287 choke me
38288 #endif
38289
38290 int
38291 main ()
38292 {
38293 return $ac_func ();
38294   ;
38295   return 0;
38296 }
38297 _ACEOF
38298 rm -f conftest.$ac_objext conftest$ac_exeext
38299 if { (ac_try="$ac_link"
38300 case "(($ac_try" in
38301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38302   *) ac_try_echo=$ac_try;;
38303 esac
38304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38305   (eval "$ac_link") 2>conftest.er1
38306   ac_status=$?
38307   grep -v '^ *+' conftest.er1 >conftest.err
38308   rm -f conftest.er1
38309   cat conftest.err >&5
38310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38311   (exit $ac_status); } && {
38312          test -z "$ac_c_werror_flag" ||
38313          test ! -s conftest.err
38314        } && test -s conftest$ac_exeext &&
38315        $as_test_x conftest$ac_exeext; then
38316   eval "$as_ac_var=yes"
38317 else
38318   echo "$as_me: failed program was:" >&5
38319 sed 's/^/| /' conftest.$ac_ext >&5
38320
38321         eval "$as_ac_var=no"
38322 fi
38323
38324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38325       conftest$ac_exeext conftest.$ac_ext
38326 fi
38327 ac_res=`eval echo '${'$as_ac_var'}'`
38328                { echo "$as_me:$LINENO: result: $ac_res" >&5
38329 echo "${ECHO_T}$ac_res" >&6; }
38330 if test `eval echo '${'$as_ac_var'}'` = yes; then
38331   cat >>confdefs.h <<_ACEOF
38332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38333 _ACEOF
38334
38335 fi
38336 done
38337
38338
38339
38340 for ac_func in chflags
38341 do
38342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38346   echo $ECHO_N "(cached) $ECHO_C" >&6
38347 else
38348   cat >conftest.$ac_ext <<_ACEOF
38349 /* confdefs.h.  */
38350 _ACEOF
38351 cat confdefs.h >>conftest.$ac_ext
38352 cat >>conftest.$ac_ext <<_ACEOF
38353 /* end confdefs.h.  */
38354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38356 #define $ac_func innocuous_$ac_func
38357
38358 /* System header to define __stub macros and hopefully few prototypes,
38359     which can conflict with char $ac_func (); below.
38360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38361     <limits.h> exists even on freestanding compilers.  */
38362
38363 #ifdef __STDC__
38364 # include <limits.h>
38365 #else
38366 # include <assert.h>
38367 #endif
38368
38369 #undef $ac_func
38370
38371 /* Override any GCC internal prototype to avoid an error.
38372    Use char because int might match the return type of a GCC
38373    builtin and then its argument prototype would still apply.  */
38374 #ifdef __cplusplus
38375 extern "C"
38376 #endif
38377 char $ac_func ();
38378 /* The GNU C library defines this for functions which it implements
38379     to always fail with ENOSYS.  Some functions are actually named
38380     something starting with __ and the normal name is an alias.  */
38381 #if defined __stub_$ac_func || defined __stub___$ac_func
38382 choke me
38383 #endif
38384
38385 int
38386 main ()
38387 {
38388 return $ac_func ();
38389   ;
38390   return 0;
38391 }
38392 _ACEOF
38393 rm -f conftest.$ac_objext conftest$ac_exeext
38394 if { (ac_try="$ac_link"
38395 case "(($ac_try" in
38396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38397   *) ac_try_echo=$ac_try;;
38398 esac
38399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38400   (eval "$ac_link") 2>conftest.er1
38401   ac_status=$?
38402   grep -v '^ *+' conftest.er1 >conftest.err
38403   rm -f conftest.er1
38404   cat conftest.err >&5
38405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38406   (exit $ac_status); } && {
38407          test -z "$ac_c_werror_flag" ||
38408          test ! -s conftest.err
38409        } && test -s conftest$ac_exeext &&
38410        $as_test_x conftest$ac_exeext; then
38411   eval "$as_ac_var=yes"
38412 else
38413   echo "$as_me: failed program was:" >&5
38414 sed 's/^/| /' conftest.$ac_ext >&5
38415
38416         eval "$as_ac_var=no"
38417 fi
38418
38419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38420       conftest$ac_exeext conftest.$ac_ext
38421 fi
38422 ac_res=`eval echo '${'$as_ac_var'}'`
38423                { echo "$as_me:$LINENO: result: $ac_res" >&5
38424 echo "${ECHO_T}$ac_res" >&6; }
38425 if test `eval echo '${'$as_ac_var'}'` = yes; then
38426   cat >>confdefs.h <<_ACEOF
38427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38428 _ACEOF
38429
38430 fi
38431 done
38432
38433
38434
38435
38436
38437
38438 for ac_func in snprintf vsnprintf gethostid fseeko
38439 do
38440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38444   echo $ECHO_N "(cached) $ECHO_C" >&6
38445 else
38446   cat >conftest.$ac_ext <<_ACEOF
38447 /* confdefs.h.  */
38448 _ACEOF
38449 cat confdefs.h >>conftest.$ac_ext
38450 cat >>conftest.$ac_ext <<_ACEOF
38451 /* end confdefs.h.  */
38452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38454 #define $ac_func innocuous_$ac_func
38455
38456 /* System header to define __stub macros and hopefully few prototypes,
38457     which can conflict with char $ac_func (); below.
38458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38459     <limits.h> exists even on freestanding compilers.  */
38460
38461 #ifdef __STDC__
38462 # include <limits.h>
38463 #else
38464 # include <assert.h>
38465 #endif
38466
38467 #undef $ac_func
38468
38469 /* Override any GCC internal prototype to avoid an error.
38470    Use char because int might match the return type of a GCC
38471    builtin and then its argument prototype would still apply.  */
38472 #ifdef __cplusplus
38473 extern "C"
38474 #endif
38475 char $ac_func ();
38476 /* The GNU C library defines this for functions which it implements
38477     to always fail with ENOSYS.  Some functions are actually named
38478     something starting with __ and the normal name is an alias.  */
38479 #if defined __stub_$ac_func || defined __stub___$ac_func
38480 choke me
38481 #endif
38482
38483 int
38484 main ()
38485 {
38486 return $ac_func ();
38487   ;
38488   return 0;
38489 }
38490 _ACEOF
38491 rm -f conftest.$ac_objext conftest$ac_exeext
38492 if { (ac_try="$ac_link"
38493 case "(($ac_try" in
38494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38495   *) ac_try_echo=$ac_try;;
38496 esac
38497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38498   (eval "$ac_link") 2>conftest.er1
38499   ac_status=$?
38500   grep -v '^ *+' conftest.er1 >conftest.err
38501   rm -f conftest.er1
38502   cat conftest.err >&5
38503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38504   (exit $ac_status); } && {
38505          test -z "$ac_c_werror_flag" ||
38506          test ! -s conftest.err
38507        } && test -s conftest$ac_exeext &&
38508        $as_test_x conftest$ac_exeext; then
38509   eval "$as_ac_var=yes"
38510 else
38511   echo "$as_me: failed program was:" >&5
38512 sed 's/^/| /' conftest.$ac_ext >&5
38513
38514         eval "$as_ac_var=no"
38515 fi
38516
38517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38518       conftest$ac_exeext conftest.$ac_ext
38519 fi
38520 ac_res=`eval echo '${'$as_ac_var'}'`
38521                { echo "$as_me:$LINENO: result: $ac_res" >&5
38522 echo "${ECHO_T}$ac_res" >&6; }
38523 if test `eval echo '${'$as_ac_var'}'` = yes; then
38524   cat >>confdefs.h <<_ACEOF
38525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38526 _ACEOF
38527
38528 fi
38529 done
38530
38531
38532 { echo "$as_me:$LINENO: checking for va_copy" >&5
38533 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38534 if test "${ba_cv_va_copy+set}" = set; then
38535   echo $ECHO_N "(cached) $ECHO_C" >&6
38536 else
38537
38538        cat >conftest.$ac_ext <<_ACEOF
38539 /* confdefs.h.  */
38540 _ACEOF
38541 cat confdefs.h >>conftest.$ac_ext
38542 cat >>conftest.$ac_ext <<_ACEOF
38543 /* end confdefs.h.  */
38544
38545               #include <stdarg.h>
38546               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38547               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38548
38549 int
38550 main ()
38551 {
38552
38553               call_use_va_copy(1,2,3)
38554
38555   ;
38556   return 0;
38557 }
38558 _ACEOF
38559 rm -f conftest.$ac_objext conftest$ac_exeext
38560 if { (ac_try="$ac_link"
38561 case "(($ac_try" in
38562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38563   *) ac_try_echo=$ac_try;;
38564 esac
38565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38566   (eval "$ac_link") 2>conftest.er1
38567   ac_status=$?
38568   grep -v '^ *+' conftest.er1 >conftest.err
38569   rm -f conftest.er1
38570   cat conftest.err >&5
38571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38572   (exit $ac_status); } && {
38573          test -z "$ac_c_werror_flag" ||
38574          test ! -s conftest.err
38575        } && test -s conftest$ac_exeext &&
38576        $as_test_x conftest$ac_exeext; then
38577
38578               ba_cv_va_copy=yes,
38579
38580 else
38581   echo "$as_me: failed program was:" >&5
38582 sed 's/^/| /' conftest.$ac_ext >&5
38583
38584
38585               ba_cv_va_copy=no
38586
38587
38588 fi
38589
38590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38591       conftest$ac_exeext conftest.$ac_ext
38592
38593
38594 fi
38595 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38596 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38597 test $ba_cv_va_copy = yes &&
38598 cat >>confdefs.h <<\_ACEOF
38599 #define HAVE_VA_COPY 1
38600 _ACEOF
38601
38602
38603
38604
38605
38606
38607 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38608 do
38609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38613   echo $ECHO_N "(cached) $ECHO_C" >&6
38614 else
38615   cat >conftest.$ac_ext <<_ACEOF
38616 /* confdefs.h.  */
38617 _ACEOF
38618 cat confdefs.h >>conftest.$ac_ext
38619 cat >>conftest.$ac_ext <<_ACEOF
38620 /* end confdefs.h.  */
38621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38623 #define $ac_func innocuous_$ac_func
38624
38625 /* System header to define __stub macros and hopefully few prototypes,
38626     which can conflict with char $ac_func (); below.
38627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38628     <limits.h> exists even on freestanding compilers.  */
38629
38630 #ifdef __STDC__
38631 # include <limits.h>
38632 #else
38633 # include <assert.h>
38634 #endif
38635
38636 #undef $ac_func
38637
38638 /* Override any GCC internal prototype to avoid an error.
38639    Use char because int might match the return type of a GCC
38640    builtin and then its argument prototype would still apply.  */
38641 #ifdef __cplusplus
38642 extern "C"
38643 #endif
38644 char $ac_func ();
38645 /* The GNU C library defines this for functions which it implements
38646     to always fail with ENOSYS.  Some functions are actually named
38647     something starting with __ and the normal name is an alias.  */
38648 #if defined __stub_$ac_func || defined __stub___$ac_func
38649 choke me
38650 #endif
38651
38652 int
38653 main ()
38654 {
38655 return $ac_func ();
38656   ;
38657   return 0;
38658 }
38659 _ACEOF
38660 rm -f conftest.$ac_objext conftest$ac_exeext
38661 if { (ac_try="$ac_link"
38662 case "(($ac_try" in
38663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38664   *) ac_try_echo=$ac_try;;
38665 esac
38666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38667   (eval "$ac_link") 2>conftest.er1
38668   ac_status=$?
38669   grep -v '^ *+' conftest.er1 >conftest.err
38670   rm -f conftest.er1
38671   cat conftest.err >&5
38672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38673   (exit $ac_status); } && {
38674          test -z "$ac_c_werror_flag" ||
38675          test ! -s conftest.err
38676        } && test -s conftest$ac_exeext &&
38677        $as_test_x conftest$ac_exeext; then
38678   eval "$as_ac_var=yes"
38679 else
38680   echo "$as_me: failed program was:" >&5
38681 sed 's/^/| /' conftest.$ac_ext >&5
38682
38683         eval "$as_ac_var=no"
38684 fi
38685
38686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38687       conftest$ac_exeext conftest.$ac_ext
38688 fi
38689 ac_res=`eval echo '${'$as_ac_var'}'`
38690                { echo "$as_me:$LINENO: result: $ac_res" >&5
38691 echo "${ECHO_T}$ac_res" >&6; }
38692 if test `eval echo '${'$as_ac_var'}'` = yes; then
38693   cat >>confdefs.h <<_ACEOF
38694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38695 _ACEOF
38696
38697 fi
38698 done
38699
38700
38701 # If resolver functions are not in libc check for -lnsl or -lresolv.
38702 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38703 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38704 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38705   echo $ECHO_N "(cached) $ECHO_C" >&6
38706 else
38707   cat >conftest.$ac_ext <<_ACEOF
38708 /* confdefs.h.  */
38709 _ACEOF
38710 cat confdefs.h >>conftest.$ac_ext
38711 cat >>conftest.$ac_ext <<_ACEOF
38712 /* end confdefs.h.  */
38713 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38715 #define gethostbyname_r innocuous_gethostbyname_r
38716
38717 /* System header to define __stub macros and hopefully few prototypes,
38718     which can conflict with char gethostbyname_r (); below.
38719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38720     <limits.h> exists even on freestanding compilers.  */
38721
38722 #ifdef __STDC__
38723 # include <limits.h>
38724 #else
38725 # include <assert.h>
38726 #endif
38727
38728 #undef gethostbyname_r
38729
38730 /* Override any GCC internal prototype to avoid an error.
38731    Use char because int might match the return type of a GCC
38732    builtin and then its argument prototype would still apply.  */
38733 #ifdef __cplusplus
38734 extern "C"
38735 #endif
38736 char gethostbyname_r ();
38737 /* The GNU C library defines this for functions which it implements
38738     to always fail with ENOSYS.  Some functions are actually named
38739     something starting with __ and the normal name is an alias.  */
38740 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38741 choke me
38742 #endif
38743
38744 int
38745 main ()
38746 {
38747 return gethostbyname_r ();
38748   ;
38749   return 0;
38750 }
38751 _ACEOF
38752 rm -f conftest.$ac_objext conftest$ac_exeext
38753 if { (ac_try="$ac_link"
38754 case "(($ac_try" in
38755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38756   *) ac_try_echo=$ac_try;;
38757 esac
38758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38759   (eval "$ac_link") 2>conftest.er1
38760   ac_status=$?
38761   grep -v '^ *+' conftest.er1 >conftest.err
38762   rm -f conftest.er1
38763   cat conftest.err >&5
38764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38765   (exit $ac_status); } && {
38766          test -z "$ac_c_werror_flag" ||
38767          test ! -s conftest.err
38768        } && test -s conftest$ac_exeext &&
38769        $as_test_x conftest$ac_exeext; then
38770   ac_cv_func_gethostbyname_r=yes
38771 else
38772   echo "$as_me: failed program was:" >&5
38773 sed 's/^/| /' conftest.$ac_ext >&5
38774
38775         ac_cv_func_gethostbyname_r=no
38776 fi
38777
38778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38779       conftest$ac_exeext conftest.$ac_ext
38780 fi
38781 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38782 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38783 if test $ac_cv_func_gethostbyname_r = yes; then
38784   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38785 echo "${ECHO_T}using libc's resolver" >&6; }
38786 else
38787
38788 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38789 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38790 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38791   echo $ECHO_N "(cached) $ECHO_C" >&6
38792 else
38793   ac_check_lib_save_LIBS=$LIBS
38794 LIBS="-lnsl  $LIBS"
38795 cat >conftest.$ac_ext <<_ACEOF
38796 /* confdefs.h.  */
38797 _ACEOF
38798 cat confdefs.h >>conftest.$ac_ext
38799 cat >>conftest.$ac_ext <<_ACEOF
38800 /* end confdefs.h.  */
38801
38802 /* Override any GCC internal prototype to avoid an error.
38803    Use char because int might match the return type of a GCC
38804    builtin and then its argument prototype would still apply.  */
38805 #ifdef __cplusplus
38806 extern "C"
38807 #endif
38808 char gethostbyname_r ();
38809 int
38810 main ()
38811 {
38812 return gethostbyname_r ();
38813   ;
38814   return 0;
38815 }
38816 _ACEOF
38817 rm -f conftest.$ac_objext conftest$ac_exeext
38818 if { (ac_try="$ac_link"
38819 case "(($ac_try" in
38820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38821   *) ac_try_echo=$ac_try;;
38822 esac
38823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38824   (eval "$ac_link") 2>conftest.er1
38825   ac_status=$?
38826   grep -v '^ *+' conftest.er1 >conftest.err
38827   rm -f conftest.er1
38828   cat conftest.err >&5
38829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38830   (exit $ac_status); } && {
38831          test -z "$ac_c_werror_flag" ||
38832          test ! -s conftest.err
38833        } && test -s conftest$ac_exeext &&
38834        $as_test_x conftest$ac_exeext; then
38835   ac_cv_lib_nsl_gethostbyname_r=yes
38836 else
38837   echo "$as_me: failed program was:" >&5
38838 sed 's/^/| /' conftest.$ac_ext >&5
38839
38840         ac_cv_lib_nsl_gethostbyname_r=no
38841 fi
38842
38843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38844       conftest$ac_exeext conftest.$ac_ext
38845 LIBS=$ac_check_lib_save_LIBS
38846 fi
38847 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38848 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38849 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38850   cat >>confdefs.h <<_ACEOF
38851 #define HAVE_LIBNSL 1
38852 _ACEOF
38853
38854   LIBS="-lnsl $LIBS"
38855
38856 fi
38857
38858
38859 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38860 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38861 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38862   echo $ECHO_N "(cached) $ECHO_C" >&6
38863 else
38864   ac_check_lib_save_LIBS=$LIBS
38865 LIBS="-lresolv  $LIBS"
38866 cat >conftest.$ac_ext <<_ACEOF
38867 /* confdefs.h.  */
38868 _ACEOF
38869 cat confdefs.h >>conftest.$ac_ext
38870 cat >>conftest.$ac_ext <<_ACEOF
38871 /* end confdefs.h.  */
38872
38873 /* Override any GCC internal prototype to avoid an error.
38874    Use char because int might match the return type of a GCC
38875    builtin and then its argument prototype would still apply.  */
38876 #ifdef __cplusplus
38877 extern "C"
38878 #endif
38879 char gethostbyname_r ();
38880 int
38881 main ()
38882 {
38883 return gethostbyname_r ();
38884   ;
38885   return 0;
38886 }
38887 _ACEOF
38888 rm -f conftest.$ac_objext conftest$ac_exeext
38889 if { (ac_try="$ac_link"
38890 case "(($ac_try" in
38891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38892   *) ac_try_echo=$ac_try;;
38893 esac
38894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38895   (eval "$ac_link") 2>conftest.er1
38896   ac_status=$?
38897   grep -v '^ *+' conftest.er1 >conftest.err
38898   rm -f conftest.er1
38899   cat conftest.err >&5
38900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38901   (exit $ac_status); } && {
38902          test -z "$ac_c_werror_flag" ||
38903          test ! -s conftest.err
38904        } && test -s conftest$ac_exeext &&
38905        $as_test_x conftest$ac_exeext; then
38906   ac_cv_lib_resolv_gethostbyname_r=yes
38907 else
38908   echo "$as_me: failed program was:" >&5
38909 sed 's/^/| /' conftest.$ac_ext >&5
38910
38911         ac_cv_lib_resolv_gethostbyname_r=no
38912 fi
38913
38914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38915       conftest$ac_exeext conftest.$ac_ext
38916 LIBS=$ac_check_lib_save_LIBS
38917 fi
38918 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38919 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38920 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38921   cat >>confdefs.h <<_ACEOF
38922 #define HAVE_LIBRESOLV 1
38923 _ACEOF
38924
38925   LIBS="-lresolv $LIBS"
38926
38927 fi
38928
38929 fi
38930
38931
38932
38933 for ac_func in inet_pton
38934 do
38935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38939   echo $ECHO_N "(cached) $ECHO_C" >&6
38940 else
38941   cat >conftest.$ac_ext <<_ACEOF
38942 /* confdefs.h.  */
38943 _ACEOF
38944 cat confdefs.h >>conftest.$ac_ext
38945 cat >>conftest.$ac_ext <<_ACEOF
38946 /* end confdefs.h.  */
38947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38949 #define $ac_func innocuous_$ac_func
38950
38951 /* System header to define __stub macros and hopefully few prototypes,
38952     which can conflict with char $ac_func (); below.
38953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38954     <limits.h> exists even on freestanding compilers.  */
38955
38956 #ifdef __STDC__
38957 # include <limits.h>
38958 #else
38959 # include <assert.h>
38960 #endif
38961
38962 #undef $ac_func
38963
38964 /* Override any GCC internal prototype to avoid an error.
38965    Use char because int might match the return type of a GCC
38966    builtin and then its argument prototype would still apply.  */
38967 #ifdef __cplusplus
38968 extern "C"
38969 #endif
38970 char $ac_func ();
38971 /* The GNU C library defines this for functions which it implements
38972     to always fail with ENOSYS.  Some functions are actually named
38973     something starting with __ and the normal name is an alias.  */
38974 #if defined __stub_$ac_func || defined __stub___$ac_func
38975 choke me
38976 #endif
38977
38978 int
38979 main ()
38980 {
38981 return $ac_func ();
38982   ;
38983   return 0;
38984 }
38985 _ACEOF
38986 rm -f conftest.$ac_objext conftest$ac_exeext
38987 if { (ac_try="$ac_link"
38988 case "(($ac_try" in
38989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38990   *) ac_try_echo=$ac_try;;
38991 esac
38992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38993   (eval "$ac_link") 2>conftest.er1
38994   ac_status=$?
38995   grep -v '^ *+' conftest.er1 >conftest.err
38996   rm -f conftest.er1
38997   cat conftest.err >&5
38998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38999   (exit $ac_status); } && {
39000          test -z "$ac_c_werror_flag" ||
39001          test ! -s conftest.err
39002        } && test -s conftest$ac_exeext &&
39003        $as_test_x conftest$ac_exeext; then
39004   eval "$as_ac_var=yes"
39005 else
39006   echo "$as_me: failed program was:" >&5
39007 sed 's/^/| /' conftest.$ac_ext >&5
39008
39009         eval "$as_ac_var=no"
39010 fi
39011
39012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39013       conftest$ac_exeext conftest.$ac_ext
39014 fi
39015 ac_res=`eval echo '${'$as_ac_var'}'`
39016                { echo "$as_me:$LINENO: result: $ac_res" >&5
39017 echo "${ECHO_T}$ac_res" >&6; }
39018 if test `eval echo '${'$as_ac_var'}'` = yes; then
39019   cat >>confdefs.h <<_ACEOF
39020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39021 _ACEOF
39022  cat >>confdefs.h <<\_ACEOF
39023 #define HAVE_INET_PTON 1
39024 _ACEOF
39025
39026 fi
39027 done
39028
39029
39030 for ac_func in inet_ntop
39031 do
39032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39033 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39035 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39036   echo $ECHO_N "(cached) $ECHO_C" >&6
39037 else
39038   cat >conftest.$ac_ext <<_ACEOF
39039 /* confdefs.h.  */
39040 _ACEOF
39041 cat confdefs.h >>conftest.$ac_ext
39042 cat >>conftest.$ac_ext <<_ACEOF
39043 /* end confdefs.h.  */
39044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39045    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39046 #define $ac_func innocuous_$ac_func
39047
39048 /* System header to define __stub macros and hopefully few prototypes,
39049     which can conflict with char $ac_func (); below.
39050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39051     <limits.h> exists even on freestanding compilers.  */
39052
39053 #ifdef __STDC__
39054 # include <limits.h>
39055 #else
39056 # include <assert.h>
39057 #endif
39058
39059 #undef $ac_func
39060
39061 /* Override any GCC internal prototype to avoid an error.
39062    Use char because int might match the return type of a GCC
39063    builtin and then its argument prototype would still apply.  */
39064 #ifdef __cplusplus
39065 extern "C"
39066 #endif
39067 char $ac_func ();
39068 /* The GNU C library defines this for functions which it implements
39069     to always fail with ENOSYS.  Some functions are actually named
39070     something starting with __ and the normal name is an alias.  */
39071 #if defined __stub_$ac_func || defined __stub___$ac_func
39072 choke me
39073 #endif
39074
39075 int
39076 main ()
39077 {
39078 return $ac_func ();
39079   ;
39080   return 0;
39081 }
39082 _ACEOF
39083 rm -f conftest.$ac_objext conftest$ac_exeext
39084 if { (ac_try="$ac_link"
39085 case "(($ac_try" in
39086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39087   *) ac_try_echo=$ac_try;;
39088 esac
39089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39090   (eval "$ac_link") 2>conftest.er1
39091   ac_status=$?
39092   grep -v '^ *+' conftest.er1 >conftest.err
39093   rm -f conftest.er1
39094   cat conftest.err >&5
39095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39096   (exit $ac_status); } && {
39097          test -z "$ac_c_werror_flag" ||
39098          test ! -s conftest.err
39099        } && test -s conftest$ac_exeext &&
39100        $as_test_x conftest$ac_exeext; then
39101   eval "$as_ac_var=yes"
39102 else
39103   echo "$as_me: failed program was:" >&5
39104 sed 's/^/| /' conftest.$ac_ext >&5
39105
39106         eval "$as_ac_var=no"
39107 fi
39108
39109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39110       conftest$ac_exeext conftest.$ac_ext
39111 fi
39112 ac_res=`eval echo '${'$as_ac_var'}'`
39113                { echo "$as_me:$LINENO: result: $ac_res" >&5
39114 echo "${ECHO_T}$ac_res" >&6; }
39115 if test `eval echo '${'$as_ac_var'}'` = yes; then
39116   cat >>confdefs.h <<_ACEOF
39117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39118 _ACEOF
39119  cat >>confdefs.h <<\_ACEOF
39120 #define HAVE_INET_NTOP 1
39121 _ACEOF
39122
39123 fi
39124 done
39125
39126
39127 for ac_func in gethostbyname2
39128 do
39129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39133   echo $ECHO_N "(cached) $ECHO_C" >&6
39134 else
39135   cat >conftest.$ac_ext <<_ACEOF
39136 /* confdefs.h.  */
39137 _ACEOF
39138 cat confdefs.h >>conftest.$ac_ext
39139 cat >>conftest.$ac_ext <<_ACEOF
39140 /* end confdefs.h.  */
39141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39143 #define $ac_func innocuous_$ac_func
39144
39145 /* System header to define __stub macros and hopefully few prototypes,
39146     which can conflict with char $ac_func (); below.
39147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39148     <limits.h> exists even on freestanding compilers.  */
39149
39150 #ifdef __STDC__
39151 # include <limits.h>
39152 #else
39153 # include <assert.h>
39154 #endif
39155
39156 #undef $ac_func
39157
39158 /* Override any GCC internal prototype to avoid an error.
39159    Use char because int might match the return type of a GCC
39160    builtin and then its argument prototype would still apply.  */
39161 #ifdef __cplusplus
39162 extern "C"
39163 #endif
39164 char $ac_func ();
39165 /* The GNU C library defines this for functions which it implements
39166     to always fail with ENOSYS.  Some functions are actually named
39167     something starting with __ and the normal name is an alias.  */
39168 #if defined __stub_$ac_func || defined __stub___$ac_func
39169 choke me
39170 #endif
39171
39172 int
39173 main ()
39174 {
39175 return $ac_func ();
39176   ;
39177   return 0;
39178 }
39179 _ACEOF
39180 rm -f conftest.$ac_objext conftest$ac_exeext
39181 if { (ac_try="$ac_link"
39182 case "(($ac_try" in
39183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39184   *) ac_try_echo=$ac_try;;
39185 esac
39186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39187   (eval "$ac_link") 2>conftest.er1
39188   ac_status=$?
39189   grep -v '^ *+' conftest.er1 >conftest.err
39190   rm -f conftest.er1
39191   cat conftest.err >&5
39192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39193   (exit $ac_status); } && {
39194          test -z "$ac_c_werror_flag" ||
39195          test ! -s conftest.err
39196        } && test -s conftest$ac_exeext &&
39197        $as_test_x conftest$ac_exeext; then
39198   eval "$as_ac_var=yes"
39199 else
39200   echo "$as_me: failed program was:" >&5
39201 sed 's/^/| /' conftest.$ac_ext >&5
39202
39203         eval "$as_ac_var=no"
39204 fi
39205
39206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39207       conftest$ac_exeext conftest.$ac_ext
39208 fi
39209 ac_res=`eval echo '${'$as_ac_var'}'`
39210                { echo "$as_me:$LINENO: result: $ac_res" >&5
39211 echo "${ECHO_T}$ac_res" >&6; }
39212 if test `eval echo '${'$as_ac_var'}'` = yes; then
39213   cat >>confdefs.h <<_ACEOF
39214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39215 _ACEOF
39216  cat >>confdefs.h <<\_ACEOF
39217 #define HAVE_GETHOSTBYNAME2 1
39218 _ACEOF
39219
39220 fi
39221 done
39222
39223
39224 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39225 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39226 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39227   echo $ECHO_N "(cached) $ECHO_C" >&6
39228 else
39229
39230        cat >conftest.$ac_ext <<_ACEOF
39231 /* confdefs.h.  */
39232 _ACEOF
39233 cat confdefs.h >>conftest.$ac_ext
39234 cat >>conftest.$ac_ext <<_ACEOF
39235 /* end confdefs.h.  */
39236
39237               #include <sys/socket.h>
39238
39239 int
39240 main ()
39241 {
39242
39243               struct sockaddr s; s.sa_len;
39244
39245   ;
39246   return 0;
39247 }
39248 _ACEOF
39249 rm -f conftest.$ac_objext
39250 if { (ac_try="$ac_compile"
39251 case "(($ac_try" in
39252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39253   *) ac_try_echo=$ac_try;;
39254 esac
39255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39256   (eval "$ac_compile") 2>conftest.er1
39257   ac_status=$?
39258   grep -v '^ *+' conftest.er1 >conftest.err
39259   rm -f conftest.er1
39260   cat conftest.err >&5
39261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262   (exit $ac_status); } && {
39263          test -z "$ac_c_werror_flag" ||
39264          test ! -s conftest.err
39265        } && test -s conftest.$ac_objext; then
39266
39267              ac_cv_struct_sockaddr_sa_len=yes
39268
39269 else
39270   echo "$as_me: failed program was:" >&5
39271 sed 's/^/| /' conftest.$ac_ext >&5
39272
39273         ac_cv_struct_sockaddr_sa_len=no
39274
39275
39276 fi
39277
39278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39279
39280
39281 fi
39282 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39283 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39284
39285 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39286
39287 cat >>confdefs.h <<\_ACEOF
39288 #define HAVE_SA_LEN 1
39289 _ACEOF
39290
39291 fi
39292
39293
39294 for ac_func in strftime
39295 do
39296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39300   echo $ECHO_N "(cached) $ECHO_C" >&6
39301 else
39302   cat >conftest.$ac_ext <<_ACEOF
39303 /* confdefs.h.  */
39304 _ACEOF
39305 cat confdefs.h >>conftest.$ac_ext
39306 cat >>conftest.$ac_ext <<_ACEOF
39307 /* end confdefs.h.  */
39308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39310 #define $ac_func innocuous_$ac_func
39311
39312 /* System header to define __stub macros and hopefully few prototypes,
39313     which can conflict with char $ac_func (); below.
39314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39315     <limits.h> exists even on freestanding compilers.  */
39316
39317 #ifdef __STDC__
39318 # include <limits.h>
39319 #else
39320 # include <assert.h>
39321 #endif
39322
39323 #undef $ac_func
39324
39325 /* Override any GCC internal prototype to avoid an error.
39326    Use char because int might match the return type of a GCC
39327    builtin and then its argument prototype would still apply.  */
39328 #ifdef __cplusplus
39329 extern "C"
39330 #endif
39331 char $ac_func ();
39332 /* The GNU C library defines this for functions which it implements
39333     to always fail with ENOSYS.  Some functions are actually named
39334     something starting with __ and the normal name is an alias.  */
39335 #if defined __stub_$ac_func || defined __stub___$ac_func
39336 choke me
39337 #endif
39338
39339 int
39340 main ()
39341 {
39342 return $ac_func ();
39343   ;
39344   return 0;
39345 }
39346 _ACEOF
39347 rm -f conftest.$ac_objext conftest$ac_exeext
39348 if { (ac_try="$ac_link"
39349 case "(($ac_try" in
39350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39351   *) ac_try_echo=$ac_try;;
39352 esac
39353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39354   (eval "$ac_link") 2>conftest.er1
39355   ac_status=$?
39356   grep -v '^ *+' conftest.er1 >conftest.err
39357   rm -f conftest.er1
39358   cat conftest.err >&5
39359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39360   (exit $ac_status); } && {
39361          test -z "$ac_c_werror_flag" ||
39362          test ! -s conftest.err
39363        } && test -s conftest$ac_exeext &&
39364        $as_test_x conftest$ac_exeext; then
39365   eval "$as_ac_var=yes"
39366 else
39367   echo "$as_me: failed program was:" >&5
39368 sed 's/^/| /' conftest.$ac_ext >&5
39369
39370         eval "$as_ac_var=no"
39371 fi
39372
39373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39374       conftest$ac_exeext conftest.$ac_ext
39375 fi
39376 ac_res=`eval echo '${'$as_ac_var'}'`
39377                { echo "$as_me:$LINENO: result: $ac_res" >&5
39378 echo "${ECHO_T}$ac_res" >&6; }
39379 if test `eval echo '${'$as_ac_var'}'` = yes; then
39380   cat >>confdefs.h <<_ACEOF
39381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39382 _ACEOF
39383
39384 else
39385   # strftime is in -lintl on SCO UNIX.
39386 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39387 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39388 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39389   echo $ECHO_N "(cached) $ECHO_C" >&6
39390 else
39391   ac_check_lib_save_LIBS=$LIBS
39392 LIBS="-lintl  $LIBS"
39393 cat >conftest.$ac_ext <<_ACEOF
39394 /* confdefs.h.  */
39395 _ACEOF
39396 cat confdefs.h >>conftest.$ac_ext
39397 cat >>conftest.$ac_ext <<_ACEOF
39398 /* end confdefs.h.  */
39399
39400 /* Override any GCC internal prototype to avoid an error.
39401    Use char because int might match the return type of a GCC
39402    builtin and then its argument prototype would still apply.  */
39403 #ifdef __cplusplus
39404 extern "C"
39405 #endif
39406 char strftime ();
39407 int
39408 main ()
39409 {
39410 return strftime ();
39411   ;
39412   return 0;
39413 }
39414 _ACEOF
39415 rm -f conftest.$ac_objext conftest$ac_exeext
39416 if { (ac_try="$ac_link"
39417 case "(($ac_try" in
39418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39419   *) ac_try_echo=$ac_try;;
39420 esac
39421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39422   (eval "$ac_link") 2>conftest.er1
39423   ac_status=$?
39424   grep -v '^ *+' conftest.er1 >conftest.err
39425   rm -f conftest.er1
39426   cat conftest.err >&5
39427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39428   (exit $ac_status); } && {
39429          test -z "$ac_c_werror_flag" ||
39430          test ! -s conftest.err
39431        } && test -s conftest$ac_exeext &&
39432        $as_test_x conftest$ac_exeext; then
39433   ac_cv_lib_intl_strftime=yes
39434 else
39435   echo "$as_me: failed program was:" >&5
39436 sed 's/^/| /' conftest.$ac_ext >&5
39437
39438         ac_cv_lib_intl_strftime=no
39439 fi
39440
39441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39442       conftest$ac_exeext conftest.$ac_ext
39443 LIBS=$ac_check_lib_save_LIBS
39444 fi
39445 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39446 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39447 if test $ac_cv_lib_intl_strftime = yes; then
39448   cat >>confdefs.h <<\_ACEOF
39449 #define HAVE_STRFTIME 1
39450 _ACEOF
39451
39452 LIBS="-lintl $LIBS"
39453 fi
39454
39455 fi
39456 done
39457
39458
39459 for ac_func in vprintf
39460 do
39461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39465   echo $ECHO_N "(cached) $ECHO_C" >&6
39466 else
39467   cat >conftest.$ac_ext <<_ACEOF
39468 /* confdefs.h.  */
39469 _ACEOF
39470 cat confdefs.h >>conftest.$ac_ext
39471 cat >>conftest.$ac_ext <<_ACEOF
39472 /* end confdefs.h.  */
39473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39475 #define $ac_func innocuous_$ac_func
39476
39477 /* System header to define __stub macros and hopefully few prototypes,
39478     which can conflict with char $ac_func (); below.
39479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39480     <limits.h> exists even on freestanding compilers.  */
39481
39482 #ifdef __STDC__
39483 # include <limits.h>
39484 #else
39485 # include <assert.h>
39486 #endif
39487
39488 #undef $ac_func
39489
39490 /* Override any GCC internal prototype to avoid an error.
39491    Use char because int might match the return type of a GCC
39492    builtin and then its argument prototype would still apply.  */
39493 #ifdef __cplusplus
39494 extern "C"
39495 #endif
39496 char $ac_func ();
39497 /* The GNU C library defines this for functions which it implements
39498     to always fail with ENOSYS.  Some functions are actually named
39499     something starting with __ and the normal name is an alias.  */
39500 #if defined __stub_$ac_func || defined __stub___$ac_func
39501 choke me
39502 #endif
39503
39504 int
39505 main ()
39506 {
39507 return $ac_func ();
39508   ;
39509   return 0;
39510 }
39511 _ACEOF
39512 rm -f conftest.$ac_objext conftest$ac_exeext
39513 if { (ac_try="$ac_link"
39514 case "(($ac_try" in
39515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39516   *) ac_try_echo=$ac_try;;
39517 esac
39518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39519   (eval "$ac_link") 2>conftest.er1
39520   ac_status=$?
39521   grep -v '^ *+' conftest.er1 >conftest.err
39522   rm -f conftest.er1
39523   cat conftest.err >&5
39524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39525   (exit $ac_status); } && {
39526          test -z "$ac_c_werror_flag" ||
39527          test ! -s conftest.err
39528        } && test -s conftest$ac_exeext &&
39529        $as_test_x conftest$ac_exeext; then
39530   eval "$as_ac_var=yes"
39531 else
39532   echo "$as_me: failed program was:" >&5
39533 sed 's/^/| /' conftest.$ac_ext >&5
39534
39535         eval "$as_ac_var=no"
39536 fi
39537
39538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39539       conftest$ac_exeext conftest.$ac_ext
39540 fi
39541 ac_res=`eval echo '${'$as_ac_var'}'`
39542                { echo "$as_me:$LINENO: result: $ac_res" >&5
39543 echo "${ECHO_T}$ac_res" >&6; }
39544 if test `eval echo '${'$as_ac_var'}'` = yes; then
39545   cat >>confdefs.h <<_ACEOF
39546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39547 _ACEOF
39548
39549 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39550 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39551 if test "${ac_cv_func__doprnt+set}" = set; then
39552   echo $ECHO_N "(cached) $ECHO_C" >&6
39553 else
39554   cat >conftest.$ac_ext <<_ACEOF
39555 /* confdefs.h.  */
39556 _ACEOF
39557 cat confdefs.h >>conftest.$ac_ext
39558 cat >>conftest.$ac_ext <<_ACEOF
39559 /* end confdefs.h.  */
39560 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39562 #define _doprnt innocuous__doprnt
39563
39564 /* System header to define __stub macros and hopefully few prototypes,
39565     which can conflict with char _doprnt (); below.
39566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39567     <limits.h> exists even on freestanding compilers.  */
39568
39569 #ifdef __STDC__
39570 # include <limits.h>
39571 #else
39572 # include <assert.h>
39573 #endif
39574
39575 #undef _doprnt
39576
39577 /* Override any GCC internal prototype to avoid an error.
39578    Use char because int might match the return type of a GCC
39579    builtin and then its argument prototype would still apply.  */
39580 #ifdef __cplusplus
39581 extern "C"
39582 #endif
39583 char _doprnt ();
39584 /* The GNU C library defines this for functions which it implements
39585     to always fail with ENOSYS.  Some functions are actually named
39586     something starting with __ and the normal name is an alias.  */
39587 #if defined __stub__doprnt || defined __stub____doprnt
39588 choke me
39589 #endif
39590
39591 int
39592 main ()
39593 {
39594 return _doprnt ();
39595   ;
39596   return 0;
39597 }
39598 _ACEOF
39599 rm -f conftest.$ac_objext conftest$ac_exeext
39600 if { (ac_try="$ac_link"
39601 case "(($ac_try" in
39602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39603   *) ac_try_echo=$ac_try;;
39604 esac
39605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39606   (eval "$ac_link") 2>conftest.er1
39607   ac_status=$?
39608   grep -v '^ *+' conftest.er1 >conftest.err
39609   rm -f conftest.er1
39610   cat conftest.err >&5
39611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39612   (exit $ac_status); } && {
39613          test -z "$ac_c_werror_flag" ||
39614          test ! -s conftest.err
39615        } && test -s conftest$ac_exeext &&
39616        $as_test_x conftest$ac_exeext; then
39617   ac_cv_func__doprnt=yes
39618 else
39619   echo "$as_me: failed program was:" >&5
39620 sed 's/^/| /' conftest.$ac_ext >&5
39621
39622         ac_cv_func__doprnt=no
39623 fi
39624
39625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39626       conftest$ac_exeext conftest.$ac_ext
39627 fi
39628 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39629 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39630 if test $ac_cv_func__doprnt = yes; then
39631
39632 cat >>confdefs.h <<\_ACEOF
39633 #define HAVE_DOPRNT 1
39634 _ACEOF
39635
39636 fi
39637
39638 fi
39639 done
39640
39641
39642 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39643 # for constant arguments.  Useless!
39644 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39645 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39646 if test "${ac_cv_working_alloca_h+set}" = set; then
39647   echo $ECHO_N "(cached) $ECHO_C" >&6
39648 else
39649   cat >conftest.$ac_ext <<_ACEOF
39650 /* confdefs.h.  */
39651 _ACEOF
39652 cat confdefs.h >>conftest.$ac_ext
39653 cat >>conftest.$ac_ext <<_ACEOF
39654 /* end confdefs.h.  */
39655 #include <alloca.h>
39656 int
39657 main ()
39658 {
39659 char *p = (char *) alloca (2 * sizeof (int));
39660                           if (p) return 0;
39661   ;
39662   return 0;
39663 }
39664 _ACEOF
39665 rm -f conftest.$ac_objext conftest$ac_exeext
39666 if { (ac_try="$ac_link"
39667 case "(($ac_try" in
39668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39669   *) ac_try_echo=$ac_try;;
39670 esac
39671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39672   (eval "$ac_link") 2>conftest.er1
39673   ac_status=$?
39674   grep -v '^ *+' conftest.er1 >conftest.err
39675   rm -f conftest.er1
39676   cat conftest.err >&5
39677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39678   (exit $ac_status); } && {
39679          test -z "$ac_c_werror_flag" ||
39680          test ! -s conftest.err
39681        } && test -s conftest$ac_exeext &&
39682        $as_test_x conftest$ac_exeext; then
39683   ac_cv_working_alloca_h=yes
39684 else
39685   echo "$as_me: failed program was:" >&5
39686 sed 's/^/| /' conftest.$ac_ext >&5
39687
39688         ac_cv_working_alloca_h=no
39689 fi
39690
39691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39692       conftest$ac_exeext conftest.$ac_ext
39693 fi
39694 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39695 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39696 if test $ac_cv_working_alloca_h = yes; then
39697
39698 cat >>confdefs.h <<\_ACEOF
39699 #define HAVE_ALLOCA_H 1
39700 _ACEOF
39701
39702 fi
39703
39704 { echo "$as_me:$LINENO: checking for alloca" >&5
39705 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39706 if test "${ac_cv_func_alloca_works+set}" = set; then
39707   echo $ECHO_N "(cached) $ECHO_C" >&6
39708 else
39709   cat >conftest.$ac_ext <<_ACEOF
39710 /* confdefs.h.  */
39711 _ACEOF
39712 cat confdefs.h >>conftest.$ac_ext
39713 cat >>conftest.$ac_ext <<_ACEOF
39714 /* end confdefs.h.  */
39715 #ifdef __GNUC__
39716 # define alloca __builtin_alloca
39717 #else
39718 # ifdef _MSC_VER
39719 #  include <malloc.h>
39720 #  define alloca _alloca
39721 # else
39722 #  ifdef HAVE_ALLOCA_H
39723 #   include <alloca.h>
39724 #  else
39725 #   ifdef _AIX
39726  #pragma alloca
39727 #   else
39728 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39729 char *alloca ();
39730 #    endif
39731 #   endif
39732 #  endif
39733 # endif
39734 #endif
39735
39736 int
39737 main ()
39738 {
39739 char *p = (char *) alloca (1);
39740                                     if (p) return 0;
39741   ;
39742   return 0;
39743 }
39744 _ACEOF
39745 rm -f conftest.$ac_objext conftest$ac_exeext
39746 if { (ac_try="$ac_link"
39747 case "(($ac_try" in
39748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39749   *) ac_try_echo=$ac_try;;
39750 esac
39751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39752   (eval "$ac_link") 2>conftest.er1
39753   ac_status=$?
39754   grep -v '^ *+' conftest.er1 >conftest.err
39755   rm -f conftest.er1
39756   cat conftest.err >&5
39757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39758   (exit $ac_status); } && {
39759          test -z "$ac_c_werror_flag" ||
39760          test ! -s conftest.err
39761        } && test -s conftest$ac_exeext &&
39762        $as_test_x conftest$ac_exeext; then
39763   ac_cv_func_alloca_works=yes
39764 else
39765   echo "$as_me: failed program was:" >&5
39766 sed 's/^/| /' conftest.$ac_ext >&5
39767
39768         ac_cv_func_alloca_works=no
39769 fi
39770
39771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39772       conftest$ac_exeext conftest.$ac_ext
39773 fi
39774 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39775 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39776
39777 if test $ac_cv_func_alloca_works = yes; then
39778
39779 cat >>confdefs.h <<\_ACEOF
39780 #define HAVE_ALLOCA 1
39781 _ACEOF
39782
39783 else
39784   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39785 # that cause trouble.  Some versions do not even contain alloca or
39786 # contain a buggy version.  If you still want to use their alloca,
39787 # use ar to extract alloca.o from them instead of compiling alloca.c.
39788
39789 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39790
39791 cat >>confdefs.h <<\_ACEOF
39792 #define C_ALLOCA 1
39793 _ACEOF
39794
39795
39796 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39797 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39798 if test "${ac_cv_os_cray+set}" = set; then
39799   echo $ECHO_N "(cached) $ECHO_C" >&6
39800 else
39801   cat >conftest.$ac_ext <<_ACEOF
39802 /* confdefs.h.  */
39803 _ACEOF
39804 cat confdefs.h >>conftest.$ac_ext
39805 cat >>conftest.$ac_ext <<_ACEOF
39806 /* end confdefs.h.  */
39807 #if defined CRAY && ! defined CRAY2
39808 webecray
39809 #else
39810 wenotbecray
39811 #endif
39812
39813 _ACEOF
39814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39815   $EGREP "webecray" >/dev/null 2>&1; then
39816   ac_cv_os_cray=yes
39817 else
39818   ac_cv_os_cray=no
39819 fi
39820 rm -f conftest*
39821
39822 fi
39823 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39824 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39825 if test $ac_cv_os_cray = yes; then
39826   for ac_func in _getb67 GETB67 getb67; do
39827     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39828 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39831   echo $ECHO_N "(cached) $ECHO_C" >&6
39832 else
39833   cat >conftest.$ac_ext <<_ACEOF
39834 /* confdefs.h.  */
39835 _ACEOF
39836 cat confdefs.h >>conftest.$ac_ext
39837 cat >>conftest.$ac_ext <<_ACEOF
39838 /* end confdefs.h.  */
39839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39841 #define $ac_func innocuous_$ac_func
39842
39843 /* System header to define __stub macros and hopefully few prototypes,
39844     which can conflict with char $ac_func (); below.
39845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39846     <limits.h> exists even on freestanding compilers.  */
39847
39848 #ifdef __STDC__
39849 # include <limits.h>
39850 #else
39851 # include <assert.h>
39852 #endif
39853
39854 #undef $ac_func
39855
39856 /* Override any GCC internal prototype to avoid an error.
39857    Use char because int might match the return type of a GCC
39858    builtin and then its argument prototype would still apply.  */
39859 #ifdef __cplusplus
39860 extern "C"
39861 #endif
39862 char $ac_func ();
39863 /* The GNU C library defines this for functions which it implements
39864     to always fail with ENOSYS.  Some functions are actually named
39865     something starting with __ and the normal name is an alias.  */
39866 #if defined __stub_$ac_func || defined __stub___$ac_func
39867 choke me
39868 #endif
39869
39870 int
39871 main ()
39872 {
39873 return $ac_func ();
39874   ;
39875   return 0;
39876 }
39877 _ACEOF
39878 rm -f conftest.$ac_objext conftest$ac_exeext
39879 if { (ac_try="$ac_link"
39880 case "(($ac_try" in
39881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39882   *) ac_try_echo=$ac_try;;
39883 esac
39884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39885   (eval "$ac_link") 2>conftest.er1
39886   ac_status=$?
39887   grep -v '^ *+' conftest.er1 >conftest.err
39888   rm -f conftest.er1
39889   cat conftest.err >&5
39890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891   (exit $ac_status); } && {
39892          test -z "$ac_c_werror_flag" ||
39893          test ! -s conftest.err
39894        } && test -s conftest$ac_exeext &&
39895        $as_test_x conftest$ac_exeext; then
39896   eval "$as_ac_var=yes"
39897 else
39898   echo "$as_me: failed program was:" >&5
39899 sed 's/^/| /' conftest.$ac_ext >&5
39900
39901         eval "$as_ac_var=no"
39902 fi
39903
39904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39905       conftest$ac_exeext conftest.$ac_ext
39906 fi
39907 ac_res=`eval echo '${'$as_ac_var'}'`
39908                { echo "$as_me:$LINENO: result: $ac_res" >&5
39909 echo "${ECHO_T}$ac_res" >&6; }
39910 if test `eval echo '${'$as_ac_var'}'` = yes; then
39911
39912 cat >>confdefs.h <<_ACEOF
39913 #define CRAY_STACKSEG_END $ac_func
39914 _ACEOF
39915
39916     break
39917 fi
39918
39919   done
39920 fi
39921
39922 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39923 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39924 if test "${ac_cv_c_stack_direction+set}" = set; then
39925   echo $ECHO_N "(cached) $ECHO_C" >&6
39926 else
39927   if test "$cross_compiling" = yes; then
39928   ac_cv_c_stack_direction=0
39929 else
39930   cat >conftest.$ac_ext <<_ACEOF
39931 /* confdefs.h.  */
39932 _ACEOF
39933 cat confdefs.h >>conftest.$ac_ext
39934 cat >>conftest.$ac_ext <<_ACEOF
39935 /* end confdefs.h.  */
39936 $ac_includes_default
39937 int
39938 find_stack_direction ()
39939 {
39940   static char *addr = 0;
39941   auto char dummy;
39942   if (addr == 0)
39943     {
39944       addr = &dummy;
39945       return find_stack_direction ();
39946     }
39947   else
39948     return (&dummy > addr) ? 1 : -1;
39949 }
39950
39951 int
39952 main ()
39953 {
39954   return find_stack_direction () < 0;
39955 }
39956 _ACEOF
39957 rm -f conftest$ac_exeext
39958 if { (ac_try="$ac_link"
39959 case "(($ac_try" in
39960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39961   *) ac_try_echo=$ac_try;;
39962 esac
39963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39964   (eval "$ac_link") 2>&5
39965   ac_status=$?
39966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39968   { (case "(($ac_try" in
39969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39970   *) ac_try_echo=$ac_try;;
39971 esac
39972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39973   (eval "$ac_try") 2>&5
39974   ac_status=$?
39975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39976   (exit $ac_status); }; }; then
39977   ac_cv_c_stack_direction=1
39978 else
39979   echo "$as_me: program exited with status $ac_status" >&5
39980 echo "$as_me: failed program was:" >&5
39981 sed 's/^/| /' conftest.$ac_ext >&5
39982
39983 ( exit $ac_status )
39984 ac_cv_c_stack_direction=-1
39985 fi
39986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39987 fi
39988
39989
39990 fi
39991 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39992 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39993
39994 cat >>confdefs.h <<_ACEOF
39995 #define STACK_DIRECTION $ac_cv_c_stack_direction
39996 _ACEOF
39997
39998
39999 fi
40000
40001 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40002 # -lseq on Dynix/PTX, -lgen on Unixware.
40003 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40004 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40005 if test "${ac_cv_search_getmntent+set}" = set; then
40006   echo $ECHO_N "(cached) $ECHO_C" >&6
40007 else
40008   ac_func_search_save_LIBS=$LIBS
40009 cat >conftest.$ac_ext <<_ACEOF
40010 /* confdefs.h.  */
40011 _ACEOF
40012 cat confdefs.h >>conftest.$ac_ext
40013 cat >>conftest.$ac_ext <<_ACEOF
40014 /* end confdefs.h.  */
40015
40016 /* Override any GCC internal prototype to avoid an error.
40017    Use char because int might match the return type of a GCC
40018    builtin and then its argument prototype would still apply.  */
40019 #ifdef __cplusplus
40020 extern "C"
40021 #endif
40022 char getmntent ();
40023 int
40024 main ()
40025 {
40026 return getmntent ();
40027   ;
40028   return 0;
40029 }
40030 _ACEOF
40031 for ac_lib in '' sun seq gen; do
40032   if test -z "$ac_lib"; then
40033     ac_res="none required"
40034   else
40035     ac_res=-l$ac_lib
40036     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40037   fi
40038   rm -f conftest.$ac_objext conftest$ac_exeext
40039 if { (ac_try="$ac_link"
40040 case "(($ac_try" in
40041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40042   *) ac_try_echo=$ac_try;;
40043 esac
40044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40045   (eval "$ac_link") 2>conftest.er1
40046   ac_status=$?
40047   grep -v '^ *+' conftest.er1 >conftest.err
40048   rm -f conftest.er1
40049   cat conftest.err >&5
40050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40051   (exit $ac_status); } && {
40052          test -z "$ac_c_werror_flag" ||
40053          test ! -s conftest.err
40054        } && test -s conftest$ac_exeext &&
40055        $as_test_x conftest$ac_exeext; then
40056   ac_cv_search_getmntent=$ac_res
40057 else
40058   echo "$as_me: failed program was:" >&5
40059 sed 's/^/| /' conftest.$ac_ext >&5
40060
40061
40062 fi
40063
40064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40065       conftest$ac_exeext
40066   if test "${ac_cv_search_getmntent+set}" = set; then
40067   break
40068 fi
40069 done
40070 if test "${ac_cv_search_getmntent+set}" = set; then
40071   :
40072 else
40073   ac_cv_search_getmntent=no
40074 fi
40075 rm conftest.$ac_ext
40076 LIBS=$ac_func_search_save_LIBS
40077 fi
40078 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40079 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40080 ac_res=$ac_cv_search_getmntent
40081 if test "$ac_res" != no; then
40082   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40083   ac_cv_func_getmntent=yes
40084
40085 cat >>confdefs.h <<\_ACEOF
40086 #define HAVE_GETMNTENT 1
40087 _ACEOF
40088
40089 else
40090   ac_cv_func_getmntent=no
40091 fi
40092
40093
40094 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40095 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40096 if test "${ac_cv_func_closedir_void+set}" = set; then
40097   echo $ECHO_N "(cached) $ECHO_C" >&6
40098 else
40099   if test "$cross_compiling" = yes; then
40100   ac_cv_func_closedir_void=yes
40101 else
40102   cat >conftest.$ac_ext <<_ACEOF
40103 /* confdefs.h.  */
40104 _ACEOF
40105 cat confdefs.h >>conftest.$ac_ext
40106 cat >>conftest.$ac_ext <<_ACEOF
40107 /* end confdefs.h.  */
40108 $ac_includes_default
40109 #include <$ac_header_dirent>
40110 #ifndef __cplusplus
40111 int closedir ();
40112 #endif
40113
40114 int
40115 main ()
40116 {
40117 return closedir (opendir (".")) != 0;
40118   ;
40119   return 0;
40120 }
40121 _ACEOF
40122 rm -f conftest$ac_exeext
40123 if { (ac_try="$ac_link"
40124 case "(($ac_try" in
40125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40126   *) ac_try_echo=$ac_try;;
40127 esac
40128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40129   (eval "$ac_link") 2>&5
40130   ac_status=$?
40131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40133   { (case "(($ac_try" in
40134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40135   *) ac_try_echo=$ac_try;;
40136 esac
40137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40138   (eval "$ac_try") 2>&5
40139   ac_status=$?
40140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40141   (exit $ac_status); }; }; then
40142   ac_cv_func_closedir_void=no
40143 else
40144   echo "$as_me: program exited with status $ac_status" >&5
40145 echo "$as_me: failed program was:" >&5
40146 sed 's/^/| /' conftest.$ac_ext >&5
40147
40148 ( exit $ac_status )
40149 ac_cv_func_closedir_void=yes
40150 fi
40151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40152 fi
40153
40154
40155 fi
40156 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40157 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40158 if test $ac_cv_func_closedir_void = yes; then
40159
40160 cat >>confdefs.h <<\_ACEOF
40161 #define CLOSEDIR_VOID 1
40162 _ACEOF
40163
40164 fi
40165
40166 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40167 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40168 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40169   echo $ECHO_N "(cached) $ECHO_C" >&6
40170 else
40171   if test "$cross_compiling" = yes; then
40172   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40173 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40174    { (exit 1); exit 1; }; }
40175 else
40176   cat >conftest.$ac_ext <<_ACEOF
40177 /* confdefs.h.  */
40178 _ACEOF
40179 cat confdefs.h >>conftest.$ac_ext
40180 cat >>conftest.$ac_ext <<_ACEOF
40181 /* end confdefs.h.  */
40182 $ac_includes_default
40183 int
40184 main ()
40185 {
40186 /* If this system has a BSD-style setpgrp which takes arguments,
40187   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40188   exit successfully. */
40189   return setpgrp (1,1) != -1;
40190   ;
40191   return 0;
40192 }
40193 _ACEOF
40194 rm -f conftest$ac_exeext
40195 if { (ac_try="$ac_link"
40196 case "(($ac_try" in
40197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40198   *) ac_try_echo=$ac_try;;
40199 esac
40200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40201   (eval "$ac_link") 2>&5
40202   ac_status=$?
40203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40205   { (case "(($ac_try" in
40206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40207   *) ac_try_echo=$ac_try;;
40208 esac
40209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40210   (eval "$ac_try") 2>&5
40211   ac_status=$?
40212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40213   (exit $ac_status); }; }; then
40214   ac_cv_func_setpgrp_void=no
40215 else
40216   echo "$as_me: program exited with status $ac_status" >&5
40217 echo "$as_me: failed program was:" >&5
40218 sed 's/^/| /' conftest.$ac_ext >&5
40219
40220 ( exit $ac_status )
40221 ac_cv_func_setpgrp_void=yes
40222 fi
40223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40224 fi
40225
40226
40227 fi
40228 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40229 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40230 if test $ac_cv_func_setpgrp_void = yes; then
40231
40232 cat >>confdefs.h <<\_ACEOF
40233 #define SETPGRP_VOID 1
40234 _ACEOF
40235
40236 fi
40237             # AC_FUNC_FNMATCH    dnl use local version
40238
40239 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40240 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40241 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40242   echo $ECHO_N "(cached) $ECHO_C" >&6
40243 else
40244   ac_check_lib_save_LIBS=$LIBS
40245 LIBS="-lintl  $LIBS"
40246 cat >conftest.$ac_ext <<_ACEOF
40247 /* confdefs.h.  */
40248 _ACEOF
40249 cat confdefs.h >>conftest.$ac_ext
40250 cat >>conftest.$ac_ext <<_ACEOF
40251 /* end confdefs.h.  */
40252
40253 /* Override any GCC internal prototype to avoid an error.
40254    Use char because int might match the return type of a GCC
40255    builtin and then its argument prototype would still apply.  */
40256 #ifdef __cplusplus
40257 extern "C"
40258 #endif
40259 char gettext ();
40260 int
40261 main ()
40262 {
40263 return gettext ();
40264   ;
40265   return 0;
40266 }
40267 _ACEOF
40268 rm -f conftest.$ac_objext conftest$ac_exeext
40269 if { (ac_try="$ac_link"
40270 case "(($ac_try" in
40271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40272   *) ac_try_echo=$ac_try;;
40273 esac
40274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40275   (eval "$ac_link") 2>conftest.er1
40276   ac_status=$?
40277   grep -v '^ *+' conftest.er1 >conftest.err
40278   rm -f conftest.er1
40279   cat conftest.err >&5
40280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40281   (exit $ac_status); } && {
40282          test -z "$ac_c_werror_flag" ||
40283          test ! -s conftest.err
40284        } && test -s conftest$ac_exeext &&
40285        $as_test_x conftest$ac_exeext; then
40286   ac_cv_lib_intl_gettext=yes
40287 else
40288   echo "$as_me: failed program was:" >&5
40289 sed 's/^/| /' conftest.$ac_ext >&5
40290
40291         ac_cv_lib_intl_gettext=no
40292 fi
40293
40294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40295       conftest$ac_exeext conftest.$ac_ext
40296 LIBS=$ac_check_lib_save_LIBS
40297 fi
40298 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40299 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40300 if test $ac_cv_lib_intl_gettext = yes; then
40301   LIBS="$LIBS -lintl"
40302 fi
40303
40304
40305
40306 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40307 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40308 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40309   echo $ECHO_N "(cached) $ECHO_C" >&6
40310 else
40311   ac_check_lib_save_LIBS=$LIBS
40312 LIBS="-lsun  $LIBS"
40313 cat >conftest.$ac_ext <<_ACEOF
40314 /* confdefs.h.  */
40315 _ACEOF
40316 cat confdefs.h >>conftest.$ac_ext
40317 cat >>conftest.$ac_ext <<_ACEOF
40318 /* end confdefs.h.  */
40319
40320 /* Override any GCC internal prototype to avoid an error.
40321    Use char because int might match the return type of a GCC
40322    builtin and then its argument prototype would still apply.  */
40323 #ifdef __cplusplus
40324 extern "C"
40325 #endif
40326 char getpwnam ();
40327 int
40328 main ()
40329 {
40330 return getpwnam ();
40331   ;
40332   return 0;
40333 }
40334 _ACEOF
40335 rm -f conftest.$ac_objext conftest$ac_exeext
40336 if { (ac_try="$ac_link"
40337 case "(($ac_try" in
40338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40339   *) ac_try_echo=$ac_try;;
40340 esac
40341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40342   (eval "$ac_link") 2>conftest.er1
40343   ac_status=$?
40344   grep -v '^ *+' conftest.er1 >conftest.err
40345   rm -f conftest.er1
40346   cat conftest.err >&5
40347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40348   (exit $ac_status); } && {
40349          test -z "$ac_c_werror_flag" ||
40350          test ! -s conftest.err
40351        } && test -s conftest$ac_exeext &&
40352        $as_test_x conftest$ac_exeext; then
40353   ac_cv_lib_sun_getpwnam=yes
40354 else
40355   echo "$as_me: failed program was:" >&5
40356 sed 's/^/| /' conftest.$ac_ext >&5
40357
40358         ac_cv_lib_sun_getpwnam=no
40359 fi
40360
40361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40362       conftest$ac_exeext conftest.$ac_ext
40363 LIBS=$ac_check_lib_save_LIBS
40364 fi
40365 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40366 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40367 if test $ac_cv_lib_sun_getpwnam = yes; then
40368   cat >>confdefs.h <<_ACEOF
40369 #define HAVE_LIBSUN 1
40370 _ACEOF
40371
40372   LIBS="-lsun $LIBS"
40373
40374 fi
40375
40376
40377
40378 for ac_header in zlib.h
40379 do
40380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40382   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40385   echo $ECHO_N "(cached) $ECHO_C" >&6
40386 fi
40387 ac_res=`eval echo '${'$as_ac_Header'}'`
40388                { echo "$as_me:$LINENO: result: $ac_res" >&5
40389 echo "${ECHO_T}$ac_res" >&6; }
40390 else
40391   # Is the header compilable?
40392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40394 cat >conftest.$ac_ext <<_ACEOF
40395 /* confdefs.h.  */
40396 _ACEOF
40397 cat confdefs.h >>conftest.$ac_ext
40398 cat >>conftest.$ac_ext <<_ACEOF
40399 /* end confdefs.h.  */
40400 $ac_includes_default
40401 #include <$ac_header>
40402 _ACEOF
40403 rm -f conftest.$ac_objext
40404 if { (ac_try="$ac_compile"
40405 case "(($ac_try" in
40406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40407   *) ac_try_echo=$ac_try;;
40408 esac
40409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40410   (eval "$ac_compile") 2>conftest.er1
40411   ac_status=$?
40412   grep -v '^ *+' conftest.er1 >conftest.err
40413   rm -f conftest.er1
40414   cat conftest.err >&5
40415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40416   (exit $ac_status); } && {
40417          test -z "$ac_c_werror_flag" ||
40418          test ! -s conftest.err
40419        } && test -s conftest.$ac_objext; then
40420   ac_header_compiler=yes
40421 else
40422   echo "$as_me: failed program was:" >&5
40423 sed 's/^/| /' conftest.$ac_ext >&5
40424
40425         ac_header_compiler=no
40426 fi
40427
40428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40430 echo "${ECHO_T}$ac_header_compiler" >&6; }
40431
40432 # Is the header present?
40433 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40435 cat >conftest.$ac_ext <<_ACEOF
40436 /* confdefs.h.  */
40437 _ACEOF
40438 cat confdefs.h >>conftest.$ac_ext
40439 cat >>conftest.$ac_ext <<_ACEOF
40440 /* end confdefs.h.  */
40441 #include <$ac_header>
40442 _ACEOF
40443 if { (ac_try="$ac_cpp conftest.$ac_ext"
40444 case "(($ac_try" in
40445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40446   *) ac_try_echo=$ac_try;;
40447 esac
40448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40449   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40450   ac_status=$?
40451   grep -v '^ *+' conftest.er1 >conftest.err
40452   rm -f conftest.er1
40453   cat conftest.err >&5
40454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40455   (exit $ac_status); } >/dev/null && {
40456          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40457          test ! -s conftest.err
40458        }; then
40459   ac_header_preproc=yes
40460 else
40461   echo "$as_me: failed program was:" >&5
40462 sed 's/^/| /' conftest.$ac_ext >&5
40463
40464   ac_header_preproc=no
40465 fi
40466
40467 rm -f conftest.err conftest.$ac_ext
40468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40469 echo "${ECHO_T}$ac_header_preproc" >&6; }
40470
40471 # So?  What about this header?
40472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40473   yes:no: )
40474     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40478     ac_header_preproc=yes
40479     ;;
40480   no:yes:* )
40481     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40483     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40484 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40485     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40487     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40488 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40491     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40493
40494     ;;
40495 esac
40496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40499   echo $ECHO_N "(cached) $ECHO_C" >&6
40500 else
40501   eval "$as_ac_Header=\$ac_header_preproc"
40502 fi
40503 ac_res=`eval echo '${'$as_ac_Header'}'`
40504                { echo "$as_me:$LINENO: result: $ac_res" >&5
40505 echo "${ECHO_T}$ac_res" >&6; }
40506
40507 fi
40508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40509   cat >>confdefs.h <<_ACEOF
40510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40511 _ACEOF
40512
40513 fi
40514
40515 done
40516
40517 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40518 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40519 if test "${ac_cv_lib_z_deflate+set}" = set; then
40520   echo $ECHO_N "(cached) $ECHO_C" >&6
40521 else
40522   ac_check_lib_save_LIBS=$LIBS
40523 LIBS="-lz  $LIBS"
40524 cat >conftest.$ac_ext <<_ACEOF
40525 /* confdefs.h.  */
40526 _ACEOF
40527 cat confdefs.h >>conftest.$ac_ext
40528 cat >>conftest.$ac_ext <<_ACEOF
40529 /* end confdefs.h.  */
40530
40531 /* Override any GCC internal prototype to avoid an error.
40532    Use char because int might match the return type of a GCC
40533    builtin and then its argument prototype would still apply.  */
40534 #ifdef __cplusplus
40535 extern "C"
40536 #endif
40537 char deflate ();
40538 int
40539 main ()
40540 {
40541 return deflate ();
40542   ;
40543   return 0;
40544 }
40545 _ACEOF
40546 rm -f conftest.$ac_objext conftest$ac_exeext
40547 if { (ac_try="$ac_link"
40548 case "(($ac_try" in
40549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40550   *) ac_try_echo=$ac_try;;
40551 esac
40552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40553   (eval "$ac_link") 2>conftest.er1
40554   ac_status=$?
40555   grep -v '^ *+' conftest.er1 >conftest.err
40556   rm -f conftest.er1
40557   cat conftest.err >&5
40558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40559   (exit $ac_status); } && {
40560          test -z "$ac_c_werror_flag" ||
40561          test ! -s conftest.err
40562        } && test -s conftest$ac_exeext &&
40563        $as_test_x conftest$ac_exeext; then
40564   ac_cv_lib_z_deflate=yes
40565 else
40566   echo "$as_me: failed program was:" >&5
40567 sed 's/^/| /' conftest.$ac_ext >&5
40568
40569         ac_cv_lib_z_deflate=no
40570 fi
40571
40572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40573       conftest$ac_exeext conftest.$ac_ext
40574 LIBS=$ac_check_lib_save_LIBS
40575 fi
40576 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40577 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40578 if test $ac_cv_lib_z_deflate = yes; then
40579   FDLIBS="-lz"
40580 fi
40581
40582 have_zlib=no
40583 if test x$FDLIBS = x-lz; then
40584    cat >>confdefs.h <<\_ACEOF
40585 #define HAVE_LIBZ 1
40586 _ACEOF
40587
40588    have_zlib=yes
40589 fi
40590
40591 support_acl=auto
40592 # Check whether --enable-acl was given.
40593 if test "${enable_acl+set}" = set; then
40594   enableval=$enable_acl;
40595        if test x$enableval = xyes; then
40596           support_acl=yes
40597        elif test x$enableval = xno; then
40598           support_acl=no
40599        fi
40600
40601
40602 fi
40603
40604
40605 have_acl=no
40606 have_extended_acl=no
40607 if test x$support_acl = xyes -o x$support_acl = xauto; then
40608    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40609   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40610 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40611 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40612   echo $ECHO_N "(cached) $ECHO_C" >&6
40613 fi
40614 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40615 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40616 else
40617   # Is the header compilable?
40618 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40619 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
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 $ac_includes_default
40627 #include <sys/acl.h>
40628 _ACEOF
40629 rm -f conftest.$ac_objext
40630 if { (ac_try="$ac_compile"
40631 case "(($ac_try" in
40632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40633   *) ac_try_echo=$ac_try;;
40634 esac
40635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40636   (eval "$ac_compile") 2>conftest.er1
40637   ac_status=$?
40638   grep -v '^ *+' conftest.er1 >conftest.err
40639   rm -f conftest.er1
40640   cat conftest.err >&5
40641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40642   (exit $ac_status); } && {
40643          test -z "$ac_c_werror_flag" ||
40644          test ! -s conftest.err
40645        } && test -s conftest.$ac_objext; then
40646   ac_header_compiler=yes
40647 else
40648   echo "$as_me: failed program was:" >&5
40649 sed 's/^/| /' conftest.$ac_ext >&5
40650
40651         ac_header_compiler=no
40652 fi
40653
40654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40656 echo "${ECHO_T}$ac_header_compiler" >&6; }
40657
40658 # Is the header present?
40659 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40660 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40661 cat >conftest.$ac_ext <<_ACEOF
40662 /* confdefs.h.  */
40663 _ACEOF
40664 cat confdefs.h >>conftest.$ac_ext
40665 cat >>conftest.$ac_ext <<_ACEOF
40666 /* end confdefs.h.  */
40667 #include <sys/acl.h>
40668 _ACEOF
40669 if { (ac_try="$ac_cpp conftest.$ac_ext"
40670 case "(($ac_try" in
40671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40672   *) ac_try_echo=$ac_try;;
40673 esac
40674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40676   ac_status=$?
40677   grep -v '^ *+' conftest.er1 >conftest.err
40678   rm -f conftest.er1
40679   cat conftest.err >&5
40680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40681   (exit $ac_status); } >/dev/null && {
40682          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40683          test ! -s conftest.err
40684        }; then
40685   ac_header_preproc=yes
40686 else
40687   echo "$as_me: failed program was:" >&5
40688 sed 's/^/| /' conftest.$ac_ext >&5
40689
40690   ac_header_preproc=no
40691 fi
40692
40693 rm -f conftest.err conftest.$ac_ext
40694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40695 echo "${ECHO_T}$ac_header_preproc" >&6; }
40696
40697 # So?  What about this header?
40698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40699   yes:no: )
40700     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40701 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40702     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40703 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40704     ac_header_preproc=yes
40705     ;;
40706   no:yes:* )
40707     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40708 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40709     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40710 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40711     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40712 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40713     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40714 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40715     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40716 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40717     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40718 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40719
40720     ;;
40721 esac
40722 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40723 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40724 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40725   echo $ECHO_N "(cached) $ECHO_C" >&6
40726 else
40727   ac_cv_header_sys_acl_h=$ac_header_preproc
40728 fi
40729 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40730 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40731
40732 fi
40733 if test $ac_cv_header_sys_acl_h = yes; then
40734
40735 cat >>confdefs.h <<\_ACEOF
40736 #define HAVE_SYS_ACL_H 1
40737 _ACEOF
40738
40739 fi
40740
40741
40742    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40743 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40744 if test "${ac_cv_func_acl_get_file+set}" = set; then
40745   echo $ECHO_N "(cached) $ECHO_C" >&6
40746 else
40747   cat >conftest.$ac_ext <<_ACEOF
40748 /* confdefs.h.  */
40749 _ACEOF
40750 cat confdefs.h >>conftest.$ac_ext
40751 cat >>conftest.$ac_ext <<_ACEOF
40752 /* end confdefs.h.  */
40753 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40755 #define acl_get_file innocuous_acl_get_file
40756
40757 /* System header to define __stub macros and hopefully few prototypes,
40758     which can conflict with char acl_get_file (); below.
40759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40760     <limits.h> exists even on freestanding compilers.  */
40761
40762 #ifdef __STDC__
40763 # include <limits.h>
40764 #else
40765 # include <assert.h>
40766 #endif
40767
40768 #undef acl_get_file
40769
40770 /* Override any GCC internal prototype to avoid an error.
40771    Use char because int might match the return type of a GCC
40772    builtin and then its argument prototype would still apply.  */
40773 #ifdef __cplusplus
40774 extern "C"
40775 #endif
40776 char acl_get_file ();
40777 /* The GNU C library defines this for functions which it implements
40778     to always fail with ENOSYS.  Some functions are actually named
40779     something starting with __ and the normal name is an alias.  */
40780 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40781 choke me
40782 #endif
40783
40784 int
40785 main ()
40786 {
40787 return acl_get_file ();
40788   ;
40789   return 0;
40790 }
40791 _ACEOF
40792 rm -f conftest.$ac_objext conftest$ac_exeext
40793 if { (ac_try="$ac_link"
40794 case "(($ac_try" in
40795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40796   *) ac_try_echo=$ac_try;;
40797 esac
40798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40799   (eval "$ac_link") 2>conftest.er1
40800   ac_status=$?
40801   grep -v '^ *+' conftest.er1 >conftest.err
40802   rm -f conftest.er1
40803   cat conftest.err >&5
40804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805   (exit $ac_status); } && {
40806          test -z "$ac_c_werror_flag" ||
40807          test ! -s conftest.err
40808        } && test -s conftest$ac_exeext &&
40809        $as_test_x conftest$ac_exeext; then
40810   ac_cv_func_acl_get_file=yes
40811 else
40812   echo "$as_me: failed program was:" >&5
40813 sed 's/^/| /' conftest.$ac_ext >&5
40814
40815         ac_cv_func_acl_get_file=no
40816 fi
40817
40818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40819       conftest$ac_exeext conftest.$ac_ext
40820 fi
40821 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40822 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40823 if test $ac_cv_func_acl_get_file = yes; then
40824
40825           have_acl=yes
40826
40827 else
40828
40829           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40830 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40831 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40832   echo $ECHO_N "(cached) $ECHO_C" >&6
40833 else
40834   ac_check_lib_save_LIBS=$LIBS
40835 LIBS="-lacl  $LIBS"
40836 cat >conftest.$ac_ext <<_ACEOF
40837 /* confdefs.h.  */
40838 _ACEOF
40839 cat confdefs.h >>conftest.$ac_ext
40840 cat >>conftest.$ac_ext <<_ACEOF
40841 /* end confdefs.h.  */
40842
40843 /* Override any GCC internal prototype to avoid an error.
40844    Use char because int might match the return type of a GCC
40845    builtin and then its argument prototype would still apply.  */
40846 #ifdef __cplusplus
40847 extern "C"
40848 #endif
40849 char acl_get_file ();
40850 int
40851 main ()
40852 {
40853 return acl_get_file ();
40854   ;
40855   return 0;
40856 }
40857 _ACEOF
40858 rm -f conftest.$ac_objext conftest$ac_exeext
40859 if { (ac_try="$ac_link"
40860 case "(($ac_try" in
40861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40862   *) ac_try_echo=$ac_try;;
40863 esac
40864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40865   (eval "$ac_link") 2>conftest.er1
40866   ac_status=$?
40867   grep -v '^ *+' conftest.er1 >conftest.err
40868   rm -f conftest.er1
40869   cat conftest.err >&5
40870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40871   (exit $ac_status); } && {
40872          test -z "$ac_c_werror_flag" ||
40873          test ! -s conftest.err
40874        } && test -s conftest$ac_exeext &&
40875        $as_test_x conftest$ac_exeext; then
40876   ac_cv_lib_acl_acl_get_file=yes
40877 else
40878   echo "$as_me: failed program was:" >&5
40879 sed 's/^/| /' conftest.$ac_ext >&5
40880
40881         ac_cv_lib_acl_acl_get_file=no
40882 fi
40883
40884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40885       conftest$ac_exeext conftest.$ac_ext
40886 LIBS=$ac_check_lib_save_LIBS
40887 fi
40888 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40889 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40890 if test $ac_cv_lib_acl_acl_get_file = yes; then
40891
40892                  have_acl=yes;
40893                  FDLIBS="-lacl $FDLIBS"
40894
40895 else
40896
40897                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40898 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40899 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40900   echo $ECHO_N "(cached) $ECHO_C" >&6
40901 else
40902   ac_check_lib_save_LIBS=$LIBS
40903 LIBS="-lpacl  $LIBS"
40904 cat >conftest.$ac_ext <<_ACEOF
40905 /* confdefs.h.  */
40906 _ACEOF
40907 cat confdefs.h >>conftest.$ac_ext
40908 cat >>conftest.$ac_ext <<_ACEOF
40909 /* end confdefs.h.  */
40910
40911 /* Override any GCC internal prototype to avoid an error.
40912    Use char because int might match the return type of a GCC
40913    builtin and then its argument prototype would still apply.  */
40914 #ifdef __cplusplus
40915 extern "C"
40916 #endif
40917 char acl_get_file ();
40918 int
40919 main ()
40920 {
40921 return acl_get_file ();
40922   ;
40923   return 0;
40924 }
40925 _ACEOF
40926 rm -f conftest.$ac_objext conftest$ac_exeext
40927 if { (ac_try="$ac_link"
40928 case "(($ac_try" in
40929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40930   *) ac_try_echo=$ac_try;;
40931 esac
40932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40933   (eval "$ac_link") 2>conftest.er1
40934   ac_status=$?
40935   grep -v '^ *+' conftest.er1 >conftest.err
40936   rm -f conftest.er1
40937   cat conftest.err >&5
40938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40939   (exit $ac_status); } && {
40940          test -z "$ac_c_werror_flag" ||
40941          test ! -s conftest.err
40942        } && test -s conftest$ac_exeext &&
40943        $as_test_x conftest$ac_exeext; then
40944   ac_cv_lib_pacl_acl_get_file=yes
40945 else
40946   echo "$as_me: failed program was:" >&5
40947 sed 's/^/| /' conftest.$ac_ext >&5
40948
40949         ac_cv_lib_pacl_acl_get_file=no
40950 fi
40951
40952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40953       conftest$ac_exeext conftest.$ac_ext
40954 LIBS=$ac_check_lib_save_LIBS
40955 fi
40956 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40957 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40958 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40959
40960                         have_acl=yes;
40961                         FDLIBS="-lpacl $FDLIBS"
40962
40963 else
40964
40965                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40966 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40967 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40968   echo $ECHO_N "(cached) $ECHO_C" >&6
40969 else
40970   ac_check_lib_save_LIBS=$LIBS
40971 LIBS="-lsec  $LIBS"
40972 cat >conftest.$ac_ext <<_ACEOF
40973 /* confdefs.h.  */
40974 _ACEOF
40975 cat confdefs.h >>conftest.$ac_ext
40976 cat >>conftest.$ac_ext <<_ACEOF
40977 /* end confdefs.h.  */
40978
40979 /* Override any GCC internal prototype to avoid an error.
40980    Use char because int might match the return type of a GCC
40981    builtin and then its argument prototype would still apply.  */
40982 #ifdef __cplusplus
40983 extern "C"
40984 #endif
40985 char acltotext ();
40986 int
40987 main ()
40988 {
40989 return acltotext ();
40990   ;
40991   return 0;
40992 }
40993 _ACEOF
40994 rm -f conftest.$ac_objext conftest$ac_exeext
40995 if { (ac_try="$ac_link"
40996 case "(($ac_try" in
40997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40998   *) ac_try_echo=$ac_try;;
40999 esac
41000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41001   (eval "$ac_link") 2>conftest.er1
41002   ac_status=$?
41003   grep -v '^ *+' conftest.er1 >conftest.err
41004   rm -f conftest.er1
41005   cat conftest.err >&5
41006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41007   (exit $ac_status); } && {
41008          test -z "$ac_c_werror_flag" ||
41009          test ! -s conftest.err
41010        } && test -s conftest$ac_exeext &&
41011        $as_test_x conftest$ac_exeext; then
41012   ac_cv_lib_sec_acltotext=yes
41013 else
41014   echo "$as_me: failed program was:" >&5
41015 sed 's/^/| /' conftest.$ac_ext >&5
41016
41017         ac_cv_lib_sec_acltotext=no
41018 fi
41019
41020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41021       conftest$ac_exeext conftest.$ac_ext
41022 LIBS=$ac_check_lib_save_LIBS
41023 fi
41024 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41025 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41026 if test $ac_cv_lib_sec_acltotext = yes; then
41027
41028                                have_acl=yes;
41029                                FDLIBS="-lsec $FDLIBS"
41030
41031                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41032 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41033 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41034   echo $ECHO_N "(cached) $ECHO_C" >&6
41035 else
41036   ac_check_lib_save_LIBS=$LIBS
41037 LIBS="-lsec  $LIBS"
41038 cat >conftest.$ac_ext <<_ACEOF
41039 /* confdefs.h.  */
41040 _ACEOF
41041 cat confdefs.h >>conftest.$ac_ext
41042 cat >>conftest.$ac_ext <<_ACEOF
41043 /* end confdefs.h.  */
41044
41045 /* Override any GCC internal prototype to avoid an error.
41046    Use char because int might match the return type of a GCC
41047    builtin and then its argument prototype would still apply.  */
41048 #ifdef __cplusplus
41049 extern "C"
41050 #endif
41051 char acl_totext ();
41052 int
41053 main ()
41054 {
41055 return acl_totext ();
41056   ;
41057   return 0;
41058 }
41059 _ACEOF
41060 rm -f conftest.$ac_objext conftest$ac_exeext
41061 if { (ac_try="$ac_link"
41062 case "(($ac_try" in
41063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41064   *) ac_try_echo=$ac_try;;
41065 esac
41066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41067   (eval "$ac_link") 2>conftest.er1
41068   ac_status=$?
41069   grep -v '^ *+' conftest.er1 >conftest.err
41070   rm -f conftest.er1
41071   cat conftest.err >&5
41072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41073   (exit $ac_status); } && {
41074          test -z "$ac_c_werror_flag" ||
41075          test ! -s conftest.err
41076        } && test -s conftest$ac_exeext &&
41077        $as_test_x conftest$ac_exeext; then
41078   ac_cv_lib_sec_acl_totext=yes
41079 else
41080   echo "$as_me: failed program was:" >&5
41081 sed 's/^/| /' conftest.$ac_ext >&5
41082
41083         ac_cv_lib_sec_acl_totext=no
41084 fi
41085
41086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41087       conftest$ac_exeext conftest.$ac_ext
41088 LIBS=$ac_check_lib_save_LIBS
41089 fi
41090 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41091 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41092 if test $ac_cv_lib_sec_acl_totext = yes; then
41093
41094                                       have_extended_acl=yes
41095
41096
41097 fi
41098
41099
41100
41101 fi
41102
41103
41104
41105 fi
41106
41107
41108
41109 fi
41110
41111
41112
41113 fi
41114
41115
41116    if test x$support_acl = xyes -a $have_acl != yes; then
41117       { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41118   please either load the acl libraries or rerun configure without --enable-acl" >&5
41119 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41120   please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41121    { (exit 1); exit 1; }; }
41122    else
41123       if test $have_acl = yes; then
41124
41125 cat >>confdefs.h <<\_ACEOF
41126 #define HAVE_ACL 1
41127 _ACEOF
41128
41129       fi
41130
41131       if test $have_extended_acl = yes; then
41132
41133 cat >>confdefs.h <<\_ACEOF
41134 #define HAVE_EXTENDED_ACL 1
41135 _ACEOF
41136
41137       fi
41138    fi
41139 fi
41140
41141 support_xattr=auto
41142 # Check whether --enable-xattr was given.
41143 if test "${enable_xattr+set}" = set; then
41144   enableval=$enable_xattr;
41145        if test x$enableval = xyes; then
41146           support_xattr=yes
41147        elif test x$enableval = xno; then
41148           support_xattr=no
41149        fi
41150
41151
41152 fi
41153
41154
41155 have_xattr=no
41156 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41157             if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41158   { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41159 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41160 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41161   echo $ECHO_N "(cached) $ECHO_C" >&6
41162 fi
41163 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41164 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41165 else
41166   # Is the header compilable?
41167 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41168 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41169 cat >conftest.$ac_ext <<_ACEOF
41170 /* confdefs.h.  */
41171 _ACEOF
41172 cat confdefs.h >>conftest.$ac_ext
41173 cat >>conftest.$ac_ext <<_ACEOF
41174 /* end confdefs.h.  */
41175 $ac_includes_default
41176 #include <sys/extattr.h>
41177 _ACEOF
41178 rm -f conftest.$ac_objext
41179 if { (ac_try="$ac_compile"
41180 case "(($ac_try" in
41181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41182   *) ac_try_echo=$ac_try;;
41183 esac
41184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41185   (eval "$ac_compile") 2>conftest.er1
41186   ac_status=$?
41187   grep -v '^ *+' conftest.er1 >conftest.err
41188   rm -f conftest.er1
41189   cat conftest.err >&5
41190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41191   (exit $ac_status); } && {
41192          test -z "$ac_c_werror_flag" ||
41193          test ! -s conftest.err
41194        } && test -s conftest.$ac_objext; then
41195   ac_header_compiler=yes
41196 else
41197   echo "$as_me: failed program was:" >&5
41198 sed 's/^/| /' conftest.$ac_ext >&5
41199
41200         ac_header_compiler=no
41201 fi
41202
41203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41205 echo "${ECHO_T}$ac_header_compiler" >&6; }
41206
41207 # Is the header present?
41208 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41209 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41210 cat >conftest.$ac_ext <<_ACEOF
41211 /* confdefs.h.  */
41212 _ACEOF
41213 cat confdefs.h >>conftest.$ac_ext
41214 cat >>conftest.$ac_ext <<_ACEOF
41215 /* end confdefs.h.  */
41216 #include <sys/extattr.h>
41217 _ACEOF
41218 if { (ac_try="$ac_cpp conftest.$ac_ext"
41219 case "(($ac_try" in
41220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41221   *) ac_try_echo=$ac_try;;
41222 esac
41223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41224   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41225   ac_status=$?
41226   grep -v '^ *+' conftest.er1 >conftest.err
41227   rm -f conftest.er1
41228   cat conftest.err >&5
41229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41230   (exit $ac_status); } >/dev/null && {
41231          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41232          test ! -s conftest.err
41233        }; then
41234   ac_header_preproc=yes
41235 else
41236   echo "$as_me: failed program was:" >&5
41237 sed 's/^/| /' conftest.$ac_ext >&5
41238
41239   ac_header_preproc=no
41240 fi
41241
41242 rm -f conftest.err conftest.$ac_ext
41243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41244 echo "${ECHO_T}$ac_header_preproc" >&6; }
41245
41246 # So?  What about this header?
41247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41248   yes:no: )
41249     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41250 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41251     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41252 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41253     ac_header_preproc=yes
41254     ;;
41255   no:yes:* )
41256     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41257 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41258     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&5
41259 echo "$as_me: WARNING: sys/extattr.h:     check for missing prerequisite headers?" >&2;}
41260     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41261 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41262     { echo "$as_me:$LINENO: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41263 echo "$as_me: WARNING: sys/extattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41264     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41265 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41266     { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41267 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41268
41269     ;;
41270 esac
41271 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41272 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41273 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41274   echo $ECHO_N "(cached) $ECHO_C" >&6
41275 else
41276   ac_cv_header_sys_extattr_h=$ac_header_preproc
41277 fi
41278 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41279 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41280
41281 fi
41282 if test $ac_cv_header_sys_extattr_h = yes; then
41283
41284 cat >>confdefs.h <<\_ACEOF
41285 #define HAVE_SYS_EXTATTR_H 1
41286 _ACEOF
41287
41288 fi
41289
41290
41291    if test "${ac_cv_header_libutil_h+set}" = set; then
41292   { echo "$as_me:$LINENO: checking for libutil.h" >&5
41293 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41294 if test "${ac_cv_header_libutil_h+set}" = set; then
41295   echo $ECHO_N "(cached) $ECHO_C" >&6
41296 fi
41297 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41298 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41299 else
41300   # Is the header compilable?
41301 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41302 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41303 cat >conftest.$ac_ext <<_ACEOF
41304 /* confdefs.h.  */
41305 _ACEOF
41306 cat confdefs.h >>conftest.$ac_ext
41307 cat >>conftest.$ac_ext <<_ACEOF
41308 /* end confdefs.h.  */
41309 $ac_includes_default
41310 #include <libutil.h>
41311 _ACEOF
41312 rm -f conftest.$ac_objext
41313 if { (ac_try="$ac_compile"
41314 case "(($ac_try" in
41315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41316   *) ac_try_echo=$ac_try;;
41317 esac
41318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41319   (eval "$ac_compile") 2>conftest.er1
41320   ac_status=$?
41321   grep -v '^ *+' conftest.er1 >conftest.err
41322   rm -f conftest.er1
41323   cat conftest.err >&5
41324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41325   (exit $ac_status); } && {
41326          test -z "$ac_c_werror_flag" ||
41327          test ! -s conftest.err
41328        } && test -s conftest.$ac_objext; then
41329   ac_header_compiler=yes
41330 else
41331   echo "$as_me: failed program was:" >&5
41332 sed 's/^/| /' conftest.$ac_ext >&5
41333
41334         ac_header_compiler=no
41335 fi
41336
41337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41339 echo "${ECHO_T}$ac_header_compiler" >&6; }
41340
41341 # Is the header present?
41342 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41343 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41344 cat >conftest.$ac_ext <<_ACEOF
41345 /* confdefs.h.  */
41346 _ACEOF
41347 cat confdefs.h >>conftest.$ac_ext
41348 cat >>conftest.$ac_ext <<_ACEOF
41349 /* end confdefs.h.  */
41350 #include <libutil.h>
41351 _ACEOF
41352 if { (ac_try="$ac_cpp conftest.$ac_ext"
41353 case "(($ac_try" in
41354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41355   *) ac_try_echo=$ac_try;;
41356 esac
41357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41358   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41359   ac_status=$?
41360   grep -v '^ *+' conftest.er1 >conftest.err
41361   rm -f conftest.er1
41362   cat conftest.err >&5
41363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41364   (exit $ac_status); } >/dev/null && {
41365          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41366          test ! -s conftest.err
41367        }; then
41368   ac_header_preproc=yes
41369 else
41370   echo "$as_me: failed program was:" >&5
41371 sed 's/^/| /' conftest.$ac_ext >&5
41372
41373   ac_header_preproc=no
41374 fi
41375
41376 rm -f conftest.err conftest.$ac_ext
41377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41378 echo "${ECHO_T}$ac_header_preproc" >&6; }
41379
41380 # So?  What about this header?
41381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41382   yes:no: )
41383     { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41384 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41385     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41386 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41387     ac_header_preproc=yes
41388     ;;
41389   no:yes:* )
41390     { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41391 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41392     { echo "$as_me:$LINENO: WARNING: libutil.h:     check for missing prerequisite headers?" >&5
41393 echo "$as_me: WARNING: libutil.h:     check for missing prerequisite headers?" >&2;}
41394     { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41395 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41396     { echo "$as_me:$LINENO: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&5
41397 echo "$as_me: WARNING: libutil.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41398     { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41399 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41400     { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41401 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41402
41403     ;;
41404 esac
41405 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41406 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41407 if test "${ac_cv_header_libutil_h+set}" = set; then
41408   echo $ECHO_N "(cached) $ECHO_C" >&6
41409 else
41410   ac_cv_header_libutil_h=$ac_header_preproc
41411 fi
41412 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41413 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41414
41415 fi
41416 if test $ac_cv_header_libutil_h = yes; then
41417
41418 cat >>confdefs.h <<\_ACEOF
41419 #define HAVE_LIBUTIL_H 1
41420 _ACEOF
41421
41422 fi
41423
41424
41425
41426
41427
41428 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41429 do
41430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41434   echo $ECHO_N "(cached) $ECHO_C" >&6
41435 else
41436   cat >conftest.$ac_ext <<_ACEOF
41437 /* confdefs.h.  */
41438 _ACEOF
41439 cat confdefs.h >>conftest.$ac_ext
41440 cat >>conftest.$ac_ext <<_ACEOF
41441 /* end confdefs.h.  */
41442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41444 #define $ac_func innocuous_$ac_func
41445
41446 /* System header to define __stub macros and hopefully few prototypes,
41447     which can conflict with char $ac_func (); below.
41448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41449     <limits.h> exists even on freestanding compilers.  */
41450
41451 #ifdef __STDC__
41452 # include <limits.h>
41453 #else
41454 # include <assert.h>
41455 #endif
41456
41457 #undef $ac_func
41458
41459 /* Override any GCC internal prototype to avoid an error.
41460    Use char because int might match the return type of a GCC
41461    builtin and then its argument prototype would still apply.  */
41462 #ifdef __cplusplus
41463 extern "C"
41464 #endif
41465 char $ac_func ();
41466 /* The GNU C library defines this for functions which it implements
41467     to always fail with ENOSYS.  Some functions are actually named
41468     something starting with __ and the normal name is an alias.  */
41469 #if defined __stub_$ac_func || defined __stub___$ac_func
41470 choke me
41471 #endif
41472
41473 int
41474 main ()
41475 {
41476 return $ac_func ();
41477   ;
41478   return 0;
41479 }
41480 _ACEOF
41481 rm -f conftest.$ac_objext conftest$ac_exeext
41482 if { (ac_try="$ac_link"
41483 case "(($ac_try" in
41484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41485   *) ac_try_echo=$ac_try;;
41486 esac
41487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41488   (eval "$ac_link") 2>conftest.er1
41489   ac_status=$?
41490   grep -v '^ *+' conftest.er1 >conftest.err
41491   rm -f conftest.er1
41492   cat conftest.err >&5
41493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41494   (exit $ac_status); } && {
41495          test -z "$ac_c_werror_flag" ||
41496          test ! -s conftest.err
41497        } && test -s conftest$ac_exeext &&
41498        $as_test_x conftest$ac_exeext; then
41499   eval "$as_ac_var=yes"
41500 else
41501   echo "$as_me: failed program was:" >&5
41502 sed 's/^/| /' conftest.$ac_ext >&5
41503
41504         eval "$as_ac_var=no"
41505 fi
41506
41507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41508       conftest$ac_exeext conftest.$ac_ext
41509 fi
41510 ac_res=`eval echo '${'$as_ac_var'}'`
41511                { echo "$as_me:$LINENO: result: $ac_res" >&5
41512 echo "${ECHO_T}$ac_res" >&6; }
41513 if test `eval echo '${'$as_ac_var'}'` = yes; then
41514   cat >>confdefs.h <<_ACEOF
41515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41516 _ACEOF
41517
41518           have_xattr=yes
41519
41520 cat >>confdefs.h <<\_ACEOF
41521 #define HAVE_EXTATTR_GET_LINK 1
41522 _ACEOF
41523
41524
41525 cat >>confdefs.h <<\_ACEOF
41526 #define HAVE_EXTATTR_SET_LINK 1
41527 _ACEOF
41528
41529
41530 cat >>confdefs.h <<\_ACEOF
41531 #define HAVE_EXTATTR_LIST_LINK 1
41532 _ACEOF
41533
41534
41535
41536 fi
41537 done
41538
41539
41540    if test $have_xattr = no; then
41541
41542
41543
41544 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41545 do
41546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41547 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41549 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41550   echo $ECHO_N "(cached) $ECHO_C" >&6
41551 else
41552   cat >conftest.$ac_ext <<_ACEOF
41553 /* confdefs.h.  */
41554 _ACEOF
41555 cat confdefs.h >>conftest.$ac_ext
41556 cat >>conftest.$ac_ext <<_ACEOF
41557 /* end confdefs.h.  */
41558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41560 #define $ac_func innocuous_$ac_func
41561
41562 /* System header to define __stub macros and hopefully few prototypes,
41563     which can conflict with char $ac_func (); below.
41564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41565     <limits.h> exists even on freestanding compilers.  */
41566
41567 #ifdef __STDC__
41568 # include <limits.h>
41569 #else
41570 # include <assert.h>
41571 #endif
41572
41573 #undef $ac_func
41574
41575 /* Override any GCC internal prototype to avoid an error.
41576    Use char because int might match the return type of a GCC
41577    builtin and then its argument prototype would still apply.  */
41578 #ifdef __cplusplus
41579 extern "C"
41580 #endif
41581 char $ac_func ();
41582 /* The GNU C library defines this for functions which it implements
41583     to always fail with ENOSYS.  Some functions are actually named
41584     something starting with __ and the normal name is an alias.  */
41585 #if defined __stub_$ac_func || defined __stub___$ac_func
41586 choke me
41587 #endif
41588
41589 int
41590 main ()
41591 {
41592 return $ac_func ();
41593   ;
41594   return 0;
41595 }
41596 _ACEOF
41597 rm -f conftest.$ac_objext conftest$ac_exeext
41598 if { (ac_try="$ac_link"
41599 case "(($ac_try" in
41600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41601   *) ac_try_echo=$ac_try;;
41602 esac
41603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41604   (eval "$ac_link") 2>conftest.er1
41605   ac_status=$?
41606   grep -v '^ *+' conftest.er1 >conftest.err
41607   rm -f conftest.er1
41608   cat conftest.err >&5
41609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41610   (exit $ac_status); } && {
41611          test -z "$ac_c_werror_flag" ||
41612          test ! -s conftest.err
41613        } && test -s conftest$ac_exeext &&
41614        $as_test_x conftest$ac_exeext; then
41615   eval "$as_ac_var=yes"
41616 else
41617   echo "$as_me: failed program was:" >&5
41618 sed 's/^/| /' conftest.$ac_ext >&5
41619
41620         eval "$as_ac_var=no"
41621 fi
41622
41623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41624       conftest$ac_exeext conftest.$ac_ext
41625 fi
41626 ac_res=`eval echo '${'$as_ac_var'}'`
41627                { echo "$as_me:$LINENO: result: $ac_res" >&5
41628 echo "${ECHO_T}$ac_res" >&6; }
41629 if test `eval echo '${'$as_ac_var'}'` = yes; then
41630   cat >>confdefs.h <<_ACEOF
41631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41632 _ACEOF
41633
41634              have_xattr=yes
41635
41636 cat >>confdefs.h <<\_ACEOF
41637 #define HAVE_EXTATTR_GET_FILE 1
41638 _ACEOF
41639
41640
41641 cat >>confdefs.h <<\_ACEOF
41642 #define HAVE_EXTATTR_SET_FILE 1
41643 _ACEOF
41644
41645
41646 cat >>confdefs.h <<\_ACEOF
41647 #define HAVE_EXTATTR_LIST_FILE 1
41648 _ACEOF
41649
41650
41651
41652 fi
41653 done
41654
41655    fi
41656
41657    if test $have_xattr = yes; then
41658       have_extattr_string_in_libc=no
41659
41660
41661 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41662 do
41663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41664 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41666 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41667   echo $ECHO_N "(cached) $ECHO_C" >&6
41668 else
41669   cat >conftest.$ac_ext <<_ACEOF
41670 /* confdefs.h.  */
41671 _ACEOF
41672 cat confdefs.h >>conftest.$ac_ext
41673 cat >>conftest.$ac_ext <<_ACEOF
41674 /* end confdefs.h.  */
41675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41676    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41677 #define $ac_func innocuous_$ac_func
41678
41679 /* System header to define __stub macros and hopefully few prototypes,
41680     which can conflict with char $ac_func (); below.
41681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41682     <limits.h> exists even on freestanding compilers.  */
41683
41684 #ifdef __STDC__
41685 # include <limits.h>
41686 #else
41687 # include <assert.h>
41688 #endif
41689
41690 #undef $ac_func
41691
41692 /* Override any GCC internal prototype to avoid an error.
41693    Use char because int might match the return type of a GCC
41694    builtin and then its argument prototype would still apply.  */
41695 #ifdef __cplusplus
41696 extern "C"
41697 #endif
41698 char $ac_func ();
41699 /* The GNU C library defines this for functions which it implements
41700     to always fail with ENOSYS.  Some functions are actually named
41701     something starting with __ and the normal name is an alias.  */
41702 #if defined __stub_$ac_func || defined __stub___$ac_func
41703 choke me
41704 #endif
41705
41706 int
41707 main ()
41708 {
41709 return $ac_func ();
41710   ;
41711   return 0;
41712 }
41713 _ACEOF
41714 rm -f conftest.$ac_objext conftest$ac_exeext
41715 if { (ac_try="$ac_link"
41716 case "(($ac_try" in
41717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41718   *) ac_try_echo=$ac_try;;
41719 esac
41720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41721   (eval "$ac_link") 2>conftest.er1
41722   ac_status=$?
41723   grep -v '^ *+' conftest.er1 >conftest.err
41724   rm -f conftest.er1
41725   cat conftest.err >&5
41726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41727   (exit $ac_status); } && {
41728          test -z "$ac_c_werror_flag" ||
41729          test ! -s conftest.err
41730        } && test -s conftest$ac_exeext &&
41731        $as_test_x conftest$ac_exeext; then
41732   eval "$as_ac_var=yes"
41733 else
41734   echo "$as_me: failed program was:" >&5
41735 sed 's/^/| /' conftest.$ac_ext >&5
41736
41737         eval "$as_ac_var=no"
41738 fi
41739
41740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41741       conftest$ac_exeext conftest.$ac_ext
41742 fi
41743 ac_res=`eval echo '${'$as_ac_var'}'`
41744                { echo "$as_me:$LINENO: result: $ac_res" >&5
41745 echo "${ECHO_T}$ac_res" >&6; }
41746 if test `eval echo '${'$as_ac_var'}'` = yes; then
41747   cat >>confdefs.h <<_ACEOF
41748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41749 _ACEOF
41750
41751              have_extattr_string_in_libc=yes
41752
41753 cat >>confdefs.h <<\_ACEOF
41754 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
41755 _ACEOF
41756
41757
41758 cat >>confdefs.h <<\_ACEOF
41759 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
41760 _ACEOF
41761
41762
41763
41764 fi
41765 done
41766
41767
41768                         if test $have_extattr_string_in_libc = no; then
41769          { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
41770 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
41771 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
41772   echo $ECHO_N "(cached) $ECHO_C" >&6
41773 else
41774   ac_check_lib_save_LIBS=$LIBS
41775 LIBS="-lutil  $LIBS"
41776 cat >conftest.$ac_ext <<_ACEOF
41777 /* confdefs.h.  */
41778 _ACEOF
41779 cat confdefs.h >>conftest.$ac_ext
41780 cat >>conftest.$ac_ext <<_ACEOF
41781 /* end confdefs.h.  */
41782
41783 /* Override any GCC internal prototype to avoid an error.
41784    Use char because int might match the return type of a GCC
41785    builtin and then its argument prototype would still apply.  */
41786 #ifdef __cplusplus
41787 extern "C"
41788 #endif
41789 char extattr_namespace_to_string extattr_string_to_namespace ();
41790 int
41791 main ()
41792 {
41793 return extattr_namespace_to_string extattr_string_to_namespace ();
41794   ;
41795   return 0;
41796 }
41797 _ACEOF
41798 rm -f conftest.$ac_objext conftest$ac_exeext
41799 if { (ac_try="$ac_link"
41800 case "(($ac_try" in
41801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41802   *) ac_try_echo=$ac_try;;
41803 esac
41804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41805   (eval "$ac_link") 2>conftest.er1
41806   ac_status=$?
41807   grep -v '^ *+' conftest.er1 >conftest.err
41808   rm -f conftest.er1
41809   cat conftest.err >&5
41810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41811   (exit $ac_status); } && {
41812          test -z "$ac_c_werror_flag" ||
41813          test ! -s conftest.err
41814        } && test -s conftest$ac_exeext &&
41815        $as_test_x conftest$ac_exeext; then
41816   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
41817 else
41818   echo "$as_me: failed program was:" >&5
41819 sed 's/^/| /' conftest.$ac_ext >&5
41820
41821         ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
41822 fi
41823
41824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41825       conftest$ac_exeext conftest.$ac_ext
41826 LIBS=$ac_check_lib_save_LIBS
41827 fi
41828 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
41829 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
41830 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
41831
41832
41833 cat >>confdefs.h <<\_ACEOF
41834 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
41835 _ACEOF
41836
41837
41838 cat >>confdefs.h <<\_ACEOF
41839 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
41840 _ACEOF
41841
41842                 FDLIBS="-lutil $FDLIBS"
41843
41844
41845 fi
41846
41847       fi
41848    fi
41849
41850             if test $have_xattr = no; then
41851       if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41852   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41853 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41854 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41855   echo $ECHO_N "(cached) $ECHO_C" >&6
41856 fi
41857 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41858 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41859 else
41860   # Is the header compilable?
41861 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41862 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41863 cat >conftest.$ac_ext <<_ACEOF
41864 /* confdefs.h.  */
41865 _ACEOF
41866 cat confdefs.h >>conftest.$ac_ext
41867 cat >>conftest.$ac_ext <<_ACEOF
41868 /* end confdefs.h.  */
41869 $ac_includes_default
41870 #include <sys/xattr.h>
41871 _ACEOF
41872 rm -f conftest.$ac_objext
41873 if { (ac_try="$ac_compile"
41874 case "(($ac_try" in
41875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41876   *) ac_try_echo=$ac_try;;
41877 esac
41878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41879   (eval "$ac_compile") 2>conftest.er1
41880   ac_status=$?
41881   grep -v '^ *+' conftest.er1 >conftest.err
41882   rm -f conftest.er1
41883   cat conftest.err >&5
41884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41885   (exit $ac_status); } && {
41886          test -z "$ac_c_werror_flag" ||
41887          test ! -s conftest.err
41888        } && test -s conftest.$ac_objext; then
41889   ac_header_compiler=yes
41890 else
41891   echo "$as_me: failed program was:" >&5
41892 sed 's/^/| /' conftest.$ac_ext >&5
41893
41894         ac_header_compiler=no
41895 fi
41896
41897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41899 echo "${ECHO_T}$ac_header_compiler" >&6; }
41900
41901 # Is the header present?
41902 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41903 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41904 cat >conftest.$ac_ext <<_ACEOF
41905 /* confdefs.h.  */
41906 _ACEOF
41907 cat confdefs.h >>conftest.$ac_ext
41908 cat >>conftest.$ac_ext <<_ACEOF
41909 /* end confdefs.h.  */
41910 #include <sys/xattr.h>
41911 _ACEOF
41912 if { (ac_try="$ac_cpp conftest.$ac_ext"
41913 case "(($ac_try" in
41914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41915   *) ac_try_echo=$ac_try;;
41916 esac
41917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41919   ac_status=$?
41920   grep -v '^ *+' conftest.er1 >conftest.err
41921   rm -f conftest.er1
41922   cat conftest.err >&5
41923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41924   (exit $ac_status); } >/dev/null && {
41925          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41926          test ! -s conftest.err
41927        }; then
41928   ac_header_preproc=yes
41929 else
41930   echo "$as_me: failed program was:" >&5
41931 sed 's/^/| /' conftest.$ac_ext >&5
41932
41933   ac_header_preproc=no
41934 fi
41935
41936 rm -f conftest.err conftest.$ac_ext
41937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41938 echo "${ECHO_T}$ac_header_preproc" >&6; }
41939
41940 # So?  What about this header?
41941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41942   yes:no: )
41943     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41944 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41945     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41946 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41947     ac_header_preproc=yes
41948     ;;
41949   no:yes:* )
41950     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41951 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41952     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
41953 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
41954     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41955 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41956     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41957 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41958     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41959 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41960     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41961 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41962
41963     ;;
41964 esac
41965 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41966 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41967 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41968   echo $ECHO_N "(cached) $ECHO_C" >&6
41969 else
41970   ac_cv_header_sys_xattr_h=$ac_header_preproc
41971 fi
41972 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41973 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41974
41975 fi
41976 if test $ac_cv_header_sys_xattr_h = yes; then
41977
41978 cat >>confdefs.h <<\_ACEOF
41979 #define HAVE_SYS_XATTR_H 1
41980 _ACEOF
41981
41982 fi
41983
41984
41985
41986
41987
41988 for ac_func in llistxattr lgetxattr lsetxattr
41989 do
41990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41994   echo $ECHO_N "(cached) $ECHO_C" >&6
41995 else
41996   cat >conftest.$ac_ext <<_ACEOF
41997 /* confdefs.h.  */
41998 _ACEOF
41999 cat confdefs.h >>conftest.$ac_ext
42000 cat >>conftest.$ac_ext <<_ACEOF
42001 /* end confdefs.h.  */
42002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42004 #define $ac_func innocuous_$ac_func
42005
42006 /* System header to define __stub macros and hopefully few prototypes,
42007     which can conflict with char $ac_func (); below.
42008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42009     <limits.h> exists even on freestanding compilers.  */
42010
42011 #ifdef __STDC__
42012 # include <limits.h>
42013 #else
42014 # include <assert.h>
42015 #endif
42016
42017 #undef $ac_func
42018
42019 /* Override any GCC internal prototype to avoid an error.
42020    Use char because int might match the return type of a GCC
42021    builtin and then its argument prototype would still apply.  */
42022 #ifdef __cplusplus
42023 extern "C"
42024 #endif
42025 char $ac_func ();
42026 /* The GNU C library defines this for functions which it implements
42027     to always fail with ENOSYS.  Some functions are actually named
42028     something starting with __ and the normal name is an alias.  */
42029 #if defined __stub_$ac_func || defined __stub___$ac_func
42030 choke me
42031 #endif
42032
42033 int
42034 main ()
42035 {
42036 return $ac_func ();
42037   ;
42038   return 0;
42039 }
42040 _ACEOF
42041 rm -f conftest.$ac_objext conftest$ac_exeext
42042 if { (ac_try="$ac_link"
42043 case "(($ac_try" in
42044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42045   *) ac_try_echo=$ac_try;;
42046 esac
42047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42048   (eval "$ac_link") 2>conftest.er1
42049   ac_status=$?
42050   grep -v '^ *+' conftest.er1 >conftest.err
42051   rm -f conftest.er1
42052   cat conftest.err >&5
42053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42054   (exit $ac_status); } && {
42055          test -z "$ac_c_werror_flag" ||
42056          test ! -s conftest.err
42057        } && test -s conftest$ac_exeext &&
42058        $as_test_x conftest$ac_exeext; then
42059   eval "$as_ac_var=yes"
42060 else
42061   echo "$as_me: failed program was:" >&5
42062 sed 's/^/| /' conftest.$ac_ext >&5
42063
42064         eval "$as_ac_var=no"
42065 fi
42066
42067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42068       conftest$ac_exeext conftest.$ac_ext
42069 fi
42070 ac_res=`eval echo '${'$as_ac_var'}'`
42071                { echo "$as_me:$LINENO: result: $ac_res" >&5
42072 echo "${ECHO_T}$ac_res" >&6; }
42073 if test `eval echo '${'$as_ac_var'}'` = yes; then
42074   cat >>confdefs.h <<_ACEOF
42075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42076 _ACEOF
42077
42078              have_xattr=yes
42079
42080 cat >>confdefs.h <<\_ACEOF
42081 #define HAVE_LLISTXATTR 1
42082 _ACEOF
42083
42084
42085 cat >>confdefs.h <<\_ACEOF
42086 #define HAVE_LGETXATTR 1
42087 _ACEOF
42088
42089
42090 cat >>confdefs.h <<\_ACEOF
42091 #define HAVE_LSETXATTR 1
42092 _ACEOF
42093
42094
42095
42096 fi
42097 done
42098
42099
42100       if test $have_xattr = no; then
42101
42102
42103
42104 for ac_func in listxattr getxattr setxattr
42105 do
42106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42110   echo $ECHO_N "(cached) $ECHO_C" >&6
42111 else
42112   cat >conftest.$ac_ext <<_ACEOF
42113 /* confdefs.h.  */
42114 _ACEOF
42115 cat confdefs.h >>conftest.$ac_ext
42116 cat >>conftest.$ac_ext <<_ACEOF
42117 /* end confdefs.h.  */
42118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42120 #define $ac_func innocuous_$ac_func
42121
42122 /* System header to define __stub macros and hopefully few prototypes,
42123     which can conflict with char $ac_func (); below.
42124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42125     <limits.h> exists even on freestanding compilers.  */
42126
42127 #ifdef __STDC__
42128 # include <limits.h>
42129 #else
42130 # include <assert.h>
42131 #endif
42132
42133 #undef $ac_func
42134
42135 /* Override any GCC internal prototype to avoid an error.
42136    Use char because int might match the return type of a GCC
42137    builtin and then its argument prototype would still apply.  */
42138 #ifdef __cplusplus
42139 extern "C"
42140 #endif
42141 char $ac_func ();
42142 /* The GNU C library defines this for functions which it implements
42143     to always fail with ENOSYS.  Some functions are actually named
42144     something starting with __ and the normal name is an alias.  */
42145 #if defined __stub_$ac_func || defined __stub___$ac_func
42146 choke me
42147 #endif
42148
42149 int
42150 main ()
42151 {
42152 return $ac_func ();
42153   ;
42154   return 0;
42155 }
42156 _ACEOF
42157 rm -f conftest.$ac_objext conftest$ac_exeext
42158 if { (ac_try="$ac_link"
42159 case "(($ac_try" in
42160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42161   *) ac_try_echo=$ac_try;;
42162 esac
42163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42164   (eval "$ac_link") 2>conftest.er1
42165   ac_status=$?
42166   grep -v '^ *+' conftest.er1 >conftest.err
42167   rm -f conftest.er1
42168   cat conftest.err >&5
42169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42170   (exit $ac_status); } && {
42171          test -z "$ac_c_werror_flag" ||
42172          test ! -s conftest.err
42173        } && test -s conftest$ac_exeext &&
42174        $as_test_x conftest$ac_exeext; then
42175   eval "$as_ac_var=yes"
42176 else
42177   echo "$as_me: failed program was:" >&5
42178 sed 's/^/| /' conftest.$ac_ext >&5
42179
42180         eval "$as_ac_var=no"
42181 fi
42182
42183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42184       conftest$ac_exeext conftest.$ac_ext
42185 fi
42186 ac_res=`eval echo '${'$as_ac_var'}'`
42187                { echo "$as_me:$LINENO: result: $ac_res" >&5
42188 echo "${ECHO_T}$ac_res" >&6; }
42189 if test `eval echo '${'$as_ac_var'}'` = yes; then
42190   cat >>confdefs.h <<_ACEOF
42191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42192 _ACEOF
42193
42194                 have_xattr=yes
42195
42196 cat >>confdefs.h <<\_ACEOF
42197 #define HAVE_LISTXATTR 1
42198 _ACEOF
42199
42200
42201 cat >>confdefs.h <<\_ACEOF
42202 #define HAVE_GETXATTR 1
42203 _ACEOF
42204
42205
42206 cat >>confdefs.h <<\_ACEOF
42207 #define HAVE_SETXATTR 1
42208 _ACEOF
42209
42210
42211
42212 fi
42213 done
42214
42215       fi
42216    fi
42217
42218             if test $have_xattr = no; then
42219       if test "${ac_cv_header_sys_attr_h+set}" = set; then
42220   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42221 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42222 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42223   echo $ECHO_N "(cached) $ECHO_C" >&6
42224 fi
42225 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42226 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42227 else
42228   # Is the header compilable?
42229 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42230 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42231 cat >conftest.$ac_ext <<_ACEOF
42232 /* confdefs.h.  */
42233 _ACEOF
42234 cat confdefs.h >>conftest.$ac_ext
42235 cat >>conftest.$ac_ext <<_ACEOF
42236 /* end confdefs.h.  */
42237 $ac_includes_default
42238 #include <sys/attr.h>
42239 _ACEOF
42240 rm -f conftest.$ac_objext
42241 if { (ac_try="$ac_compile"
42242 case "(($ac_try" in
42243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42244   *) ac_try_echo=$ac_try;;
42245 esac
42246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42247   (eval "$ac_compile") 2>conftest.er1
42248   ac_status=$?
42249   grep -v '^ *+' conftest.er1 >conftest.err
42250   rm -f conftest.er1
42251   cat conftest.err >&5
42252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42253   (exit $ac_status); } && {
42254          test -z "$ac_c_werror_flag" ||
42255          test ! -s conftest.err
42256        } && test -s conftest.$ac_objext; then
42257   ac_header_compiler=yes
42258 else
42259   echo "$as_me: failed program was:" >&5
42260 sed 's/^/| /' conftest.$ac_ext >&5
42261
42262         ac_header_compiler=no
42263 fi
42264
42265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42267 echo "${ECHO_T}$ac_header_compiler" >&6; }
42268
42269 # Is the header present?
42270 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42271 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42272 cat >conftest.$ac_ext <<_ACEOF
42273 /* confdefs.h.  */
42274 _ACEOF
42275 cat confdefs.h >>conftest.$ac_ext
42276 cat >>conftest.$ac_ext <<_ACEOF
42277 /* end confdefs.h.  */
42278 #include <sys/attr.h>
42279 _ACEOF
42280 if { (ac_try="$ac_cpp conftest.$ac_ext"
42281 case "(($ac_try" in
42282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42283   *) ac_try_echo=$ac_try;;
42284 esac
42285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42286   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42287   ac_status=$?
42288   grep -v '^ *+' conftest.er1 >conftest.err
42289   rm -f conftest.er1
42290   cat conftest.err >&5
42291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42292   (exit $ac_status); } >/dev/null && {
42293          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42294          test ! -s conftest.err
42295        }; then
42296   ac_header_preproc=yes
42297 else
42298   echo "$as_me: failed program was:" >&5
42299 sed 's/^/| /' conftest.$ac_ext >&5
42300
42301   ac_header_preproc=no
42302 fi
42303
42304 rm -f conftest.err conftest.$ac_ext
42305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42306 echo "${ECHO_T}$ac_header_preproc" >&6; }
42307
42308 # So?  What about this header?
42309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42310   yes:no: )
42311     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42312 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42313     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42314 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42315     ac_header_preproc=yes
42316     ;;
42317   no:yes:* )
42318     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42319 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42320     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
42321 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
42322     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42323 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42324     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42325 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42326     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42327 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42328     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42329 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42330
42331     ;;
42332 esac
42333 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42334 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42335 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42336   echo $ECHO_N "(cached) $ECHO_C" >&6
42337 else
42338   ac_cv_header_sys_attr_h=$ac_header_preproc
42339 fi
42340 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42341 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42342
42343 fi
42344 if test $ac_cv_header_sys_attr_h = yes; then
42345
42346 cat >>confdefs.h <<\_ACEOF
42347 #define HAVE_SYS_ATTR_H 1
42348 _ACEOF
42349
42350 fi
42351
42352
42353       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42354   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42355 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42356 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42357   echo $ECHO_N "(cached) $ECHO_C" >&6
42358 fi
42359 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42360 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42361 else
42362   # Is the header compilable?
42363 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42364 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42365 cat >conftest.$ac_ext <<_ACEOF
42366 /* confdefs.h.  */
42367 _ACEOF
42368 cat confdefs.h >>conftest.$ac_ext
42369 cat >>conftest.$ac_ext <<_ACEOF
42370 /* end confdefs.h.  */
42371 $ac_includes_default
42372 #include <sys/nvpair.h>
42373 _ACEOF
42374 rm -f conftest.$ac_objext
42375 if { (ac_try="$ac_compile"
42376 case "(($ac_try" in
42377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42378   *) ac_try_echo=$ac_try;;
42379 esac
42380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42381   (eval "$ac_compile") 2>conftest.er1
42382   ac_status=$?
42383   grep -v '^ *+' conftest.er1 >conftest.err
42384   rm -f conftest.er1
42385   cat conftest.err >&5
42386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42387   (exit $ac_status); } && {
42388          test -z "$ac_c_werror_flag" ||
42389          test ! -s conftest.err
42390        } && test -s conftest.$ac_objext; then
42391   ac_header_compiler=yes
42392 else
42393   echo "$as_me: failed program was:" >&5
42394 sed 's/^/| /' conftest.$ac_ext >&5
42395
42396         ac_header_compiler=no
42397 fi
42398
42399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42401 echo "${ECHO_T}$ac_header_compiler" >&6; }
42402
42403 # Is the header present?
42404 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42405 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42406 cat >conftest.$ac_ext <<_ACEOF
42407 /* confdefs.h.  */
42408 _ACEOF
42409 cat confdefs.h >>conftest.$ac_ext
42410 cat >>conftest.$ac_ext <<_ACEOF
42411 /* end confdefs.h.  */
42412 #include <sys/nvpair.h>
42413 _ACEOF
42414 if { (ac_try="$ac_cpp conftest.$ac_ext"
42415 case "(($ac_try" in
42416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42417   *) ac_try_echo=$ac_try;;
42418 esac
42419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42421   ac_status=$?
42422   grep -v '^ *+' conftest.er1 >conftest.err
42423   rm -f conftest.er1
42424   cat conftest.err >&5
42425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42426   (exit $ac_status); } >/dev/null && {
42427          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42428          test ! -s conftest.err
42429        }; then
42430   ac_header_preproc=yes
42431 else
42432   echo "$as_me: failed program was:" >&5
42433 sed 's/^/| /' conftest.$ac_ext >&5
42434
42435   ac_header_preproc=no
42436 fi
42437
42438 rm -f conftest.err conftest.$ac_ext
42439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42440 echo "${ECHO_T}$ac_header_preproc" >&6; }
42441
42442 # So?  What about this header?
42443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42444   yes:no: )
42445     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42446 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42447     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42448 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42449     ac_header_preproc=yes
42450     ;;
42451   no:yes:* )
42452     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42453 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42454     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
42455 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
42456     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42457 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42458     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
42459 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42460     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42461 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42462     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42463 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42464
42465     ;;
42466 esac
42467 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42468 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42469 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42470   echo $ECHO_N "(cached) $ECHO_C" >&6
42471 else
42472   ac_cv_header_sys_nvpair_h=$ac_header_preproc
42473 fi
42474 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42475 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42476
42477 fi
42478 if test $ac_cv_header_sys_nvpair_h = yes; then
42479
42480 cat >>confdefs.h <<\_ACEOF
42481 #define HAVE_SYS_NVPAIR_H 1
42482 _ACEOF
42483
42484 fi
42485
42486
42487       if test "${ac_cv_header_attr_h+set}" = set; then
42488   { echo "$as_me:$LINENO: checking for attr.h" >&5
42489 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42490 if test "${ac_cv_header_attr_h+set}" = set; then
42491   echo $ECHO_N "(cached) $ECHO_C" >&6
42492 fi
42493 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42494 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42495 else
42496   # Is the header compilable?
42497 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42498 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42499 cat >conftest.$ac_ext <<_ACEOF
42500 /* confdefs.h.  */
42501 _ACEOF
42502 cat confdefs.h >>conftest.$ac_ext
42503 cat >>conftest.$ac_ext <<_ACEOF
42504 /* end confdefs.h.  */
42505 $ac_includes_default
42506 #include <attr.h>
42507 _ACEOF
42508 rm -f conftest.$ac_objext
42509 if { (ac_try="$ac_compile"
42510 case "(($ac_try" in
42511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42512   *) ac_try_echo=$ac_try;;
42513 esac
42514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42515   (eval "$ac_compile") 2>conftest.er1
42516   ac_status=$?
42517   grep -v '^ *+' conftest.er1 >conftest.err
42518   rm -f conftest.er1
42519   cat conftest.err >&5
42520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42521   (exit $ac_status); } && {
42522          test -z "$ac_c_werror_flag" ||
42523          test ! -s conftest.err
42524        } && test -s conftest.$ac_objext; then
42525   ac_header_compiler=yes
42526 else
42527   echo "$as_me: failed program was:" >&5
42528 sed 's/^/| /' conftest.$ac_ext >&5
42529
42530         ac_header_compiler=no
42531 fi
42532
42533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42535 echo "${ECHO_T}$ac_header_compiler" >&6; }
42536
42537 # Is the header present?
42538 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42539 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42540 cat >conftest.$ac_ext <<_ACEOF
42541 /* confdefs.h.  */
42542 _ACEOF
42543 cat confdefs.h >>conftest.$ac_ext
42544 cat >>conftest.$ac_ext <<_ACEOF
42545 /* end confdefs.h.  */
42546 #include <attr.h>
42547 _ACEOF
42548 if { (ac_try="$ac_cpp conftest.$ac_ext"
42549 case "(($ac_try" in
42550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42551   *) ac_try_echo=$ac_try;;
42552 esac
42553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42554   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42555   ac_status=$?
42556   grep -v '^ *+' conftest.er1 >conftest.err
42557   rm -f conftest.er1
42558   cat conftest.err >&5
42559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42560   (exit $ac_status); } >/dev/null && {
42561          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42562          test ! -s conftest.err
42563        }; then
42564   ac_header_preproc=yes
42565 else
42566   echo "$as_me: failed program was:" >&5
42567 sed 's/^/| /' conftest.$ac_ext >&5
42568
42569   ac_header_preproc=no
42570 fi
42571
42572 rm -f conftest.err conftest.$ac_ext
42573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42574 echo "${ECHO_T}$ac_header_preproc" >&6; }
42575
42576 # So?  What about this header?
42577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42578   yes:no: )
42579     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42580 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42581     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42582 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42583     ac_header_preproc=yes
42584     ;;
42585   no:yes:* )
42586     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42587 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42588     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
42589 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
42590     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42591 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42592     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
42593 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
42594     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42595 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42596     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42597 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42598
42599     ;;
42600 esac
42601 { echo "$as_me:$LINENO: checking for attr.h" >&5
42602 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42603 if test "${ac_cv_header_attr_h+set}" = set; then
42604   echo $ECHO_N "(cached) $ECHO_C" >&6
42605 else
42606   ac_cv_header_attr_h=$ac_header_preproc
42607 fi
42608 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42609 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42610
42611 fi
42612 if test $ac_cv_header_attr_h = yes; then
42613
42614 cat >>confdefs.h <<\_ACEOF
42615 #define HAVE_ATTR_H 1
42616 _ACEOF
42617
42618 fi
42619
42620
42621
42622
42623
42624
42625
42626
42627 for ac_func in openat fstatat unlinkat fchownat futimesat
42628 do
42629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42633   echo $ECHO_N "(cached) $ECHO_C" >&6
42634 else
42635   cat >conftest.$ac_ext <<_ACEOF
42636 /* confdefs.h.  */
42637 _ACEOF
42638 cat confdefs.h >>conftest.$ac_ext
42639 cat >>conftest.$ac_ext <<_ACEOF
42640 /* end confdefs.h.  */
42641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42643 #define $ac_func innocuous_$ac_func
42644
42645 /* System header to define __stub macros and hopefully few prototypes,
42646     which can conflict with char $ac_func (); below.
42647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42648     <limits.h> exists even on freestanding compilers.  */
42649
42650 #ifdef __STDC__
42651 # include <limits.h>
42652 #else
42653 # include <assert.h>
42654 #endif
42655
42656 #undef $ac_func
42657
42658 /* Override any GCC internal prototype to avoid an error.
42659    Use char because int might match the return type of a GCC
42660    builtin and then its argument prototype would still apply.  */
42661 #ifdef __cplusplus
42662 extern "C"
42663 #endif
42664 char $ac_func ();
42665 /* The GNU C library defines this for functions which it implements
42666     to always fail with ENOSYS.  Some functions are actually named
42667     something starting with __ and the normal name is an alias.  */
42668 #if defined __stub_$ac_func || defined __stub___$ac_func
42669 choke me
42670 #endif
42671
42672 int
42673 main ()
42674 {
42675 return $ac_func ();
42676   ;
42677   return 0;
42678 }
42679 _ACEOF
42680 rm -f conftest.$ac_objext conftest$ac_exeext
42681 if { (ac_try="$ac_link"
42682 case "(($ac_try" in
42683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42684   *) ac_try_echo=$ac_try;;
42685 esac
42686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42687   (eval "$ac_link") 2>conftest.er1
42688   ac_status=$?
42689   grep -v '^ *+' conftest.er1 >conftest.err
42690   rm -f conftest.er1
42691   cat conftest.err >&5
42692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42693   (exit $ac_status); } && {
42694          test -z "$ac_c_werror_flag" ||
42695          test ! -s conftest.err
42696        } && test -s conftest$ac_exeext &&
42697        $as_test_x conftest$ac_exeext; then
42698   eval "$as_ac_var=yes"
42699 else
42700   echo "$as_me: failed program was:" >&5
42701 sed 's/^/| /' conftest.$ac_ext >&5
42702
42703         eval "$as_ac_var=no"
42704 fi
42705
42706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42707       conftest$ac_exeext conftest.$ac_ext
42708 fi
42709 ac_res=`eval echo '${'$as_ac_var'}'`
42710                { echo "$as_me:$LINENO: result: $ac_res" >&5
42711 echo "${ECHO_T}$ac_res" >&6; }
42712 if test `eval echo '${'$as_ac_var'}'` = yes; then
42713   cat >>confdefs.h <<_ACEOF
42714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42715 _ACEOF
42716
42717              have_xattr=yes
42718
42719 cat >>confdefs.h <<\_ACEOF
42720 #define HAVE_OPENAT 1
42721 _ACEOF
42722
42723
42724 cat >>confdefs.h <<\_ACEOF
42725 #define HAVE_FSTATAT 1
42726 _ACEOF
42727
42728
42729 cat >>confdefs.h <<\_ACEOF
42730 #define HAVE_UNLINKAT 1
42731 _ACEOF
42732
42733
42734 cat >>confdefs.h <<\_ACEOF
42735 #define HAVE_FCHOWNAT 1
42736 _ACEOF
42737
42738
42739 cat >>confdefs.h <<\_ACEOF
42740 #define HAVE_FUTIMESAT 1
42741 _ACEOF
42742
42743
42744
42745 fi
42746 done
42747
42748
42749       if test $have_xattr = yes; then
42750          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42751 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42752 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42753   echo $ECHO_N "(cached) $ECHO_C" >&6
42754 else
42755   ac_check_lib_save_LIBS=$LIBS
42756 LIBS="-lnvpair  $LIBS"
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
42764 /* Override any GCC internal prototype to avoid an error.
42765    Use char because int might match the return type of a GCC
42766    builtin and then its argument prototype would still apply.  */
42767 #ifdef __cplusplus
42768 extern "C"
42769 #endif
42770 char nvlist_next_nvpair ();
42771 int
42772 main ()
42773 {
42774 return nvlist_next_nvpair ();
42775   ;
42776   return 0;
42777 }
42778 _ACEOF
42779 rm -f conftest.$ac_objext conftest$ac_exeext
42780 if { (ac_try="$ac_link"
42781 case "(($ac_try" in
42782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42783   *) ac_try_echo=$ac_try;;
42784 esac
42785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42786   (eval "$ac_link") 2>conftest.er1
42787   ac_status=$?
42788   grep -v '^ *+' conftest.er1 >conftest.err
42789   rm -f conftest.er1
42790   cat conftest.err >&5
42791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42792   (exit $ac_status); } && {
42793          test -z "$ac_c_werror_flag" ||
42794          test ! -s conftest.err
42795        } && test -s conftest$ac_exeext &&
42796        $as_test_x conftest$ac_exeext; then
42797   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42798 else
42799   echo "$as_me: failed program was:" >&5
42800 sed 's/^/| /' conftest.$ac_ext >&5
42801
42802         ac_cv_lib_nvpair_nvlist_next_nvpair=no
42803 fi
42804
42805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42806       conftest$ac_exeext conftest.$ac_ext
42807 LIBS=$ac_check_lib_save_LIBS
42808 fi
42809 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42810 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42811 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42812
42813
42814 cat >>confdefs.h <<\_ACEOF
42815 #define HAVE_NVLIST_NEXT_NVPAIR 1
42816 _ACEOF
42817
42818                 FDLIBS="-lnvpair $FDLIBS"
42819
42820
42821 fi
42822
42823       fi
42824    fi
42825
42826    if test x$support_xattr = xyes -a $have_xattr != yes; then
42827       { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
42828   please either load the xattr libraries or rerun configure without --enable-xattr" >&5
42829 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
42830   please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
42831    { (exit 1); exit 1; }; }
42832    else
42833       if test $have_xattr = yes; then
42834
42835 cat >>confdefs.h <<\_ACEOF
42836 #define HAVE_XATTR 1
42837 _ACEOF
42838
42839       fi
42840    fi
42841 fi
42842
42843 PTHREAD_LIB=""
42844 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42845 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42846 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42847   echo $ECHO_N "(cached) $ECHO_C" >&6
42848 else
42849   ac_check_lib_save_LIBS=$LIBS
42850 LIBS="-lpthread  $LIBS"
42851 cat >conftest.$ac_ext <<_ACEOF
42852 /* confdefs.h.  */
42853 _ACEOF
42854 cat confdefs.h >>conftest.$ac_ext
42855 cat >>conftest.$ac_ext <<_ACEOF
42856 /* end confdefs.h.  */
42857
42858 /* Override any GCC internal prototype to avoid an error.
42859    Use char because int might match the return type of a GCC
42860    builtin and then its argument prototype would still apply.  */
42861 #ifdef __cplusplus
42862 extern "C"
42863 #endif
42864 char pthread_create ();
42865 int
42866 main ()
42867 {
42868 return pthread_create ();
42869   ;
42870   return 0;
42871 }
42872 _ACEOF
42873 rm -f conftest.$ac_objext conftest$ac_exeext
42874 if { (ac_try="$ac_link"
42875 case "(($ac_try" in
42876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42877   *) ac_try_echo=$ac_try;;
42878 esac
42879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42880   (eval "$ac_link") 2>conftest.er1
42881   ac_status=$?
42882   grep -v '^ *+' conftest.er1 >conftest.err
42883   rm -f conftest.er1
42884   cat conftest.err >&5
42885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42886   (exit $ac_status); } && {
42887          test -z "$ac_c_werror_flag" ||
42888          test ! -s conftest.err
42889        } && test -s conftest$ac_exeext &&
42890        $as_test_x conftest$ac_exeext; then
42891   ac_cv_lib_pthread_pthread_create=yes
42892 else
42893   echo "$as_me: failed program was:" >&5
42894 sed 's/^/| /' conftest.$ac_ext >&5
42895
42896         ac_cv_lib_pthread_pthread_create=no
42897 fi
42898
42899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42900       conftest$ac_exeext conftest.$ac_ext
42901 LIBS=$ac_check_lib_save_LIBS
42902 fi
42903 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42904 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42905 if test $ac_cv_lib_pthread_pthread_create = yes; then
42906   PTHREAD_LIB="-lpthread"
42907 else
42908
42909        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42910 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42911 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42912   echo $ECHO_N "(cached) $ECHO_C" >&6
42913 else
42914   ac_check_lib_save_LIBS=$LIBS
42915 LIBS="-lpthreads  $LIBS"
42916 cat >conftest.$ac_ext <<_ACEOF
42917 /* confdefs.h.  */
42918 _ACEOF
42919 cat confdefs.h >>conftest.$ac_ext
42920 cat >>conftest.$ac_ext <<_ACEOF
42921 /* end confdefs.h.  */
42922
42923 /* Override any GCC internal prototype to avoid an error.
42924    Use char because int might match the return type of a GCC
42925    builtin and then its argument prototype would still apply.  */
42926 #ifdef __cplusplus
42927 extern "C"
42928 #endif
42929 char pthread_create ();
42930 int
42931 main ()
42932 {
42933 return pthread_create ();
42934   ;
42935   return 0;
42936 }
42937 _ACEOF
42938 rm -f conftest.$ac_objext conftest$ac_exeext
42939 if { (ac_try="$ac_link"
42940 case "(($ac_try" in
42941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42942   *) ac_try_echo=$ac_try;;
42943 esac
42944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42945   (eval "$ac_link") 2>conftest.er1
42946   ac_status=$?
42947   grep -v '^ *+' conftest.er1 >conftest.err
42948   rm -f conftest.er1
42949   cat conftest.err >&5
42950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42951   (exit $ac_status); } && {
42952          test -z "$ac_c_werror_flag" ||
42953          test ! -s conftest.err
42954        } && test -s conftest$ac_exeext &&
42955        $as_test_x conftest$ac_exeext; then
42956   ac_cv_lib_pthreads_pthread_create=yes
42957 else
42958   echo "$as_me: failed program was:" >&5
42959 sed 's/^/| /' conftest.$ac_ext >&5
42960
42961         ac_cv_lib_pthreads_pthread_create=no
42962 fi
42963
42964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42965       conftest$ac_exeext conftest.$ac_ext
42966 LIBS=$ac_check_lib_save_LIBS
42967 fi
42968 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42969 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42970 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42971   PTHREAD_LIB="-lpthreads"
42972 else
42973
42974               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42975 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42976 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42977   echo $ECHO_N "(cached) $ECHO_C" >&6
42978 else
42979   ac_check_lib_save_LIBS=$LIBS
42980 LIBS="-lc_r  $LIBS"
42981 cat >conftest.$ac_ext <<_ACEOF
42982 /* confdefs.h.  */
42983 _ACEOF
42984 cat confdefs.h >>conftest.$ac_ext
42985 cat >>conftest.$ac_ext <<_ACEOF
42986 /* end confdefs.h.  */
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 pthread_create ();
42995 int
42996 main ()
42997 {
42998 return pthread_create ();
42999   ;
43000   return 0;
43001 }
43002 _ACEOF
43003 rm -f conftest.$ac_objext conftest$ac_exeext
43004 if { (ac_try="$ac_link"
43005 case "(($ac_try" in
43006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43007   *) ac_try_echo=$ac_try;;
43008 esac
43009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43010   (eval "$ac_link") 2>conftest.er1
43011   ac_status=$?
43012   grep -v '^ *+' conftest.er1 >conftest.err
43013   rm -f conftest.er1
43014   cat conftest.err >&5
43015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43016   (exit $ac_status); } && {
43017          test -z "$ac_c_werror_flag" ||
43018          test ! -s conftest.err
43019        } && test -s conftest$ac_exeext &&
43020        $as_test_x conftest$ac_exeext; then
43021   ac_cv_lib_c_r_pthread_create=yes
43022 else
43023   echo "$as_me: failed program was:" >&5
43024 sed 's/^/| /' conftest.$ac_ext >&5
43025
43026         ac_cv_lib_c_r_pthread_create=no
43027 fi
43028
43029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43030       conftest$ac_exeext conftest.$ac_ext
43031 LIBS=$ac_check_lib_save_LIBS
43032 fi
43033 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43034 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43035 if test $ac_cv_lib_c_r_pthread_create = yes; then
43036   PTHREAD_LIB="-lc_r"
43037 else
43038
43039                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
43040 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43041 if test "${ac_cv_func_pthread_create+set}" = set; then
43042   echo $ECHO_N "(cached) $ECHO_C" >&6
43043 else
43044   cat >conftest.$ac_ext <<_ACEOF
43045 /* confdefs.h.  */
43046 _ACEOF
43047 cat confdefs.h >>conftest.$ac_ext
43048 cat >>conftest.$ac_ext <<_ACEOF
43049 /* end confdefs.h.  */
43050 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43052 #define pthread_create innocuous_pthread_create
43053
43054 /* System header to define __stub macros and hopefully few prototypes,
43055     which can conflict with char pthread_create (); below.
43056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43057     <limits.h> exists even on freestanding compilers.  */
43058
43059 #ifdef __STDC__
43060 # include <limits.h>
43061 #else
43062 # include <assert.h>
43063 #endif
43064
43065 #undef pthread_create
43066
43067 /* Override any GCC internal prototype to avoid an error.
43068    Use char because int might match the return type of a GCC
43069    builtin and then its argument prototype would still apply.  */
43070 #ifdef __cplusplus
43071 extern "C"
43072 #endif
43073 char pthread_create ();
43074 /* The GNU C library defines this for functions which it implements
43075     to always fail with ENOSYS.  Some functions are actually named
43076     something starting with __ and the normal name is an alias.  */
43077 #if defined __stub_pthread_create || defined __stub___pthread_create
43078 choke me
43079 #endif
43080
43081 int
43082 main ()
43083 {
43084 return pthread_create ();
43085   ;
43086   return 0;
43087 }
43088 _ACEOF
43089 rm -f conftest.$ac_objext conftest$ac_exeext
43090 if { (ac_try="$ac_link"
43091 case "(($ac_try" in
43092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43093   *) ac_try_echo=$ac_try;;
43094 esac
43095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43096   (eval "$ac_link") 2>conftest.er1
43097   ac_status=$?
43098   grep -v '^ *+' conftest.er1 >conftest.err
43099   rm -f conftest.er1
43100   cat conftest.err >&5
43101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43102   (exit $ac_status); } && {
43103          test -z "$ac_c_werror_flag" ||
43104          test ! -s conftest.err
43105        } && test -s conftest$ac_exeext &&
43106        $as_test_x conftest$ac_exeext; then
43107   ac_cv_func_pthread_create=yes
43108 else
43109   echo "$as_me: failed program was:" >&5
43110 sed 's/^/| /' conftest.$ac_ext >&5
43111
43112         ac_cv_func_pthread_create=no
43113 fi
43114
43115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43116       conftest$ac_exeext conftest.$ac_ext
43117 fi
43118 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43119 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43120
43121
43122
43123 fi
43124
43125
43126
43127 fi
43128
43129
43130
43131 fi
43132
43133
43134
43135
43136 for ac_header in sys/prctl.h sys/capability.h
43137 do
43138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43140   { echo "$as_me:$LINENO: checking for $ac_header" >&5
43141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43143   echo $ECHO_N "(cached) $ECHO_C" >&6
43144 fi
43145 ac_res=`eval echo '${'$as_ac_Header'}'`
43146                { echo "$as_me:$LINENO: result: $ac_res" >&5
43147 echo "${ECHO_T}$ac_res" >&6; }
43148 else
43149   # Is the header compilable?
43150 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43152 cat >conftest.$ac_ext <<_ACEOF
43153 /* confdefs.h.  */
43154 _ACEOF
43155 cat confdefs.h >>conftest.$ac_ext
43156 cat >>conftest.$ac_ext <<_ACEOF
43157 /* end confdefs.h.  */
43158 $ac_includes_default
43159 #include <$ac_header>
43160 _ACEOF
43161 rm -f conftest.$ac_objext
43162 if { (ac_try="$ac_compile"
43163 case "(($ac_try" in
43164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43165   *) ac_try_echo=$ac_try;;
43166 esac
43167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43168   (eval "$ac_compile") 2>conftest.er1
43169   ac_status=$?
43170   grep -v '^ *+' conftest.er1 >conftest.err
43171   rm -f conftest.er1
43172   cat conftest.err >&5
43173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43174   (exit $ac_status); } && {
43175          test -z "$ac_c_werror_flag" ||
43176          test ! -s conftest.err
43177        } && test -s conftest.$ac_objext; then
43178   ac_header_compiler=yes
43179 else
43180   echo "$as_me: failed program was:" >&5
43181 sed 's/^/| /' conftest.$ac_ext >&5
43182
43183         ac_header_compiler=no
43184 fi
43185
43186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43188 echo "${ECHO_T}$ac_header_compiler" >&6; }
43189
43190 # Is the header present?
43191 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43193 cat >conftest.$ac_ext <<_ACEOF
43194 /* confdefs.h.  */
43195 _ACEOF
43196 cat confdefs.h >>conftest.$ac_ext
43197 cat >>conftest.$ac_ext <<_ACEOF
43198 /* end confdefs.h.  */
43199 #include <$ac_header>
43200 _ACEOF
43201 if { (ac_try="$ac_cpp conftest.$ac_ext"
43202 case "(($ac_try" in
43203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43204   *) ac_try_echo=$ac_try;;
43205 esac
43206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43207   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43208   ac_status=$?
43209   grep -v '^ *+' conftest.er1 >conftest.err
43210   rm -f conftest.er1
43211   cat conftest.err >&5
43212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43213   (exit $ac_status); } >/dev/null && {
43214          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43215          test ! -s conftest.err
43216        }; then
43217   ac_header_preproc=yes
43218 else
43219   echo "$as_me: failed program was:" >&5
43220 sed 's/^/| /' conftest.$ac_ext >&5
43221
43222   ac_header_preproc=no
43223 fi
43224
43225 rm -f conftest.err conftest.$ac_ext
43226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43227 echo "${ECHO_T}$ac_header_preproc" >&6; }
43228
43229 # So?  What about this header?
43230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43231   yes:no: )
43232     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43236     ac_header_preproc=yes
43237     ;;
43238   no:yes:* )
43239     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43241     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43242 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43243     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43245     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43246 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43249     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43251
43252     ;;
43253 esac
43254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43257   echo $ECHO_N "(cached) $ECHO_C" >&6
43258 else
43259   eval "$as_ac_Header=\$ac_header_preproc"
43260 fi
43261 ac_res=`eval echo '${'$as_ac_Header'}'`
43262                { echo "$as_me:$LINENO: result: $ac_res" >&5
43263 echo "${ECHO_T}$ac_res" >&6; }
43264
43265 fi
43266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43267   cat >>confdefs.h <<_ACEOF
43268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43269 _ACEOF
43270
43271 fi
43272
43273 done
43274
43275
43276
43277 for ac_func in prctl setreuid
43278 do
43279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43283   echo $ECHO_N "(cached) $ECHO_C" >&6
43284 else
43285   cat >conftest.$ac_ext <<_ACEOF
43286 /* confdefs.h.  */
43287 _ACEOF
43288 cat confdefs.h >>conftest.$ac_ext
43289 cat >>conftest.$ac_ext <<_ACEOF
43290 /* end confdefs.h.  */
43291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43293 #define $ac_func innocuous_$ac_func
43294
43295 /* System header to define __stub macros and hopefully few prototypes,
43296     which can conflict with char $ac_func (); below.
43297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43298     <limits.h> exists even on freestanding compilers.  */
43299
43300 #ifdef __STDC__
43301 # include <limits.h>
43302 #else
43303 # include <assert.h>
43304 #endif
43305
43306 #undef $ac_func
43307
43308 /* Override any GCC internal prototype to avoid an error.
43309    Use char because int might match the return type of a GCC
43310    builtin and then its argument prototype would still apply.  */
43311 #ifdef __cplusplus
43312 extern "C"
43313 #endif
43314 char $ac_func ();
43315 /* The GNU C library defines this for functions which it implements
43316     to always fail with ENOSYS.  Some functions are actually named
43317     something starting with __ and the normal name is an alias.  */
43318 #if defined __stub_$ac_func || defined __stub___$ac_func
43319 choke me
43320 #endif
43321
43322 int
43323 main ()
43324 {
43325 return $ac_func ();
43326   ;
43327   return 0;
43328 }
43329 _ACEOF
43330 rm -f conftest.$ac_objext conftest$ac_exeext
43331 if { (ac_try="$ac_link"
43332 case "(($ac_try" in
43333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43334   *) ac_try_echo=$ac_try;;
43335 esac
43336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43337   (eval "$ac_link") 2>conftest.er1
43338   ac_status=$?
43339   grep -v '^ *+' conftest.er1 >conftest.err
43340   rm -f conftest.er1
43341   cat conftest.err >&5
43342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43343   (exit $ac_status); } && {
43344          test -z "$ac_c_werror_flag" ||
43345          test ! -s conftest.err
43346        } && test -s conftest$ac_exeext &&
43347        $as_test_x conftest$ac_exeext; then
43348   eval "$as_ac_var=yes"
43349 else
43350   echo "$as_me: failed program was:" >&5
43351 sed 's/^/| /' conftest.$ac_ext >&5
43352
43353         eval "$as_ac_var=no"
43354 fi
43355
43356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43357       conftest$ac_exeext conftest.$ac_ext
43358 fi
43359 ac_res=`eval echo '${'$as_ac_var'}'`
43360                { echo "$as_me:$LINENO: result: $ac_res" >&5
43361 echo "${ECHO_T}$ac_res" >&6; }
43362 if test `eval echo '${'$as_ac_var'}'` = yes; then
43363   cat >>confdefs.h <<_ACEOF
43364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43365 _ACEOF
43366
43367 fi
43368 done
43369
43370 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43371 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43372 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43373   echo $ECHO_N "(cached) $ECHO_C" >&6
43374 else
43375   ac_check_lib_save_LIBS=$LIBS
43376 LIBS="-lcap  $LIBS"
43377 cat >conftest.$ac_ext <<_ACEOF
43378 /* confdefs.h.  */
43379 _ACEOF
43380 cat confdefs.h >>conftest.$ac_ext
43381 cat >>conftest.$ac_ext <<_ACEOF
43382 /* end confdefs.h.  */
43383
43384 /* Override any GCC internal prototype to avoid an error.
43385    Use char because int might match the return type of a GCC
43386    builtin and then its argument prototype would still apply.  */
43387 #ifdef __cplusplus
43388 extern "C"
43389 #endif
43390 char cap_set_proc ();
43391 int
43392 main ()
43393 {
43394 return cap_set_proc ();
43395   ;
43396   return 0;
43397 }
43398 _ACEOF
43399 rm -f conftest.$ac_objext conftest$ac_exeext
43400 if { (ac_try="$ac_link"
43401 case "(($ac_try" in
43402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43403   *) ac_try_echo=$ac_try;;
43404 esac
43405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43406   (eval "$ac_link") 2>conftest.er1
43407   ac_status=$?
43408   grep -v '^ *+' conftest.er1 >conftest.err
43409   rm -f conftest.er1
43410   cat conftest.err >&5
43411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43412   (exit $ac_status); } && {
43413          test -z "$ac_c_werror_flag" ||
43414          test ! -s conftest.err
43415        } && test -s conftest$ac_exeext &&
43416        $as_test_x conftest$ac_exeext; then
43417   ac_cv_lib_cap_cap_set_proc=yes
43418 else
43419   echo "$as_me: failed program was:" >&5
43420 sed 's/^/| /' conftest.$ac_ext >&5
43421
43422         ac_cv_lib_cap_cap_set_proc=no
43423 fi
43424
43425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43426       conftest$ac_exeext conftest.$ac_ext
43427 LIBS=$ac_check_lib_save_LIBS
43428 fi
43429 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43430 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43431 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43432   CAP_LIBS="-lcap"
43433 else
43434   CAP_LIBS=
43435 fi
43436
43437 if test x$CAP_LIBS = x-lcap; then
43438
43439 cat >>confdefs.h <<\_ACEOF
43440 #define HAVE_LIBCAP 1
43441 _ACEOF
43442
43443 fi
43444
43445
43446
43447 cat >>confdefs.h <<\_ACEOF
43448 #define FDLIBS 1
43449 _ACEOF
43450
43451
43452 CFLAGS=${CFLAGS--O}
43453
43454 if test x$have_gcc = xyes ; then
43455    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43456    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43457 fi
43458 LDFLAGS=${LDFLAGS--O}
43459 DB_LIBS="${SQL_LFLAGS}"
43460 CPPFLAGS="$CPPFLAGS"
43461 CFLAGS="$CFLAGS"
43462
43463
43464
43465
43466
43467
43468
43469
43470
43471
43472
43473
43474
43475
43476
43477
43478 OBJLIST=
43479
43480
43481 lld="lld"
43482 llu="llu"
43483
43484 WCFLAGS=
43485 WLDFLAGS=
43486
43487 PFILES="platforms/Makefile"
43488 PSCMD="ps -e"
43489 WIN32=
43490 MACOSX=
43491
43492 hostname=`uname -n | cut -d '.' -f 1`
43493 if test x${hostname} = x ; then
43494    hostname="localhost"
43495 fi
43496 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43497 if test ! $? = 0; then
43498   hostname="localhost"
43499 fi
43500
43501 case "$DISTNAME" in
43502 aix)
43503    DISTVER=`uname -r`
43504    PSCMD="ps -e -o pid,comm"
43505    PFILES="${PFILES} \
43506       platforms/aix/Makefile"
43507    TAPEDRIVE="/dev/rmt0.1"
43508   ;;
43509 alpha)
43510    DISTVER=`uname -r`
43511    PTHREAD_LIB="-lpthread -lexc"
43512    if test "${CC}" = "gcc" ; then
43513       lld="lld"
43514       llu="llu"
43515    else
43516       lld="ld"
43517       llu="lu"
43518    fi
43519    TAPEDRIVE="/dev/nrmt0"
43520   ;;
43521 bsdi)
43522    DISTVER=`uname -a |awk '{print $3}'`
43523    TAPEDRIVE="/dev/nrmt0"
43524    PTHREAD_LIB="-pthread"
43525    CFLAGS="${CFLAGS} -pthread"
43526    PSCMD="ps -ax -o pid,command"
43527    lld="qd"
43528    llu="qu"
43529    PFILES="${PFILES} \
43530        platforms/bsdi/Makefile \
43531        platforms/bsdi/bacula-fd \
43532        platforms/bsdi/bacula-sd \
43533        platforms/bsdi/bacula-dir"
43534    largefile_support="yes"
43535   ;;
43536 cygwin)
43537    DISTVER=`uname -a |awk '{print $3}'`
43538    TAPEDRIVE="/dev/nrst0"
43539    WIN32=win32
43540    WCFLAGS="-mwindows"
43541    WLDFLAGS="-mwindows"
43542   ;;
43543 darwin)
43544    DISTVER=`uname -r`
43545    TAPEDRIVE="/dev/nst0"
43546    PSCMD="ps -e -o pid,command"
43547    MACOSX=macosx
43548    PFILES="${PFILES} \
43549       platforms/darwin/Makefile"
43550   ;;
43551 osx)
43552    DISTVER=`uname -r`
43553    TAPEDRIVE="/dev/nst0"
43554    PSCMD="ps -e -o pid,command"
43555    MACOSX=macosx
43556    PFILES="${PFILES} \
43557       platforms/osx/Makefile"
43558   ;;
43559 debian)
43560    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43561       DISTNAME="ubuntu"
43562    fi
43563    DISTVER=`cat /etc/debian_version`
43564    if test -f /etc/lsb-release ; then
43565       . /etc/lsb-release
43566       if test "x$DISTRIB_ID" != "x" ; then
43567          DISTNAME=$DISTRIB_ID
43568       fi
43569       if test "x$DISTRIB_RELEASE" != "x" ; then
43570          DISTVER=$DISTRIB_RELEASE
43571       fi
43572    fi
43573    if test "$DISTNAME" = "Ubuntu" ; then
43574       DISTNAME="ubuntu"
43575    fi
43576    TAPEDRIVE="/dev/nst0"
43577    PSCMD="ps -e -o pid,command"
43578    if test "$DISTNAME" = "ubuntu" ; then
43579       PFILES="${PFILES} \
43580          platforms/ubuntu/Makefile \
43581          platforms/ubuntu/bacula-fd \
43582          platforms/ubuntu/bacula-sd \
43583          platforms/ubuntu/bacula-dir"
43584    else
43585       PFILES="${PFILES} \
43586          platforms/debian/Makefile \
43587          platforms/debian/bacula-fd \
43588          platforms/debian/bacula-sd \
43589          platforms/debian/bacula-dir"
43590    fi
43591   ;;
43592 freebsd)
43593    DISTVER=`uname -a |awk '{print $3}'`
43594    VER=`echo $DISTVER | cut -c 1`
43595    if test x$VER = x4 ; then
43596       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43597       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43598    fi
43599    lld="qd"
43600    llu="qu"
43601    TAPEDRIVE="/dev/nrsa0"
43602    PSCMD="ps -ax -o pid,command"
43603    PFILES="${PFILES} \
43604        platforms/freebsd/Makefile \
43605        platforms/freebsd/bacula-fd \
43606        platforms/freebsd/bacula-sd \
43607        platforms/freebsd/bacula-dir"
43608    largefile_support="yes"
43609   ;;
43610 hpux)
43611    PSCMD="UNIX95=1; ps -e -o pid,comm"
43612    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43613    DISTVER=`uname -r`
43614    TAPEDRIVE="/dev/rmt/0hnb"
43615    PTHREAD_LIB="-lpthread"
43616    cat >>confdefs.h <<\_ACEOF
43617 #define _INCLUDE_LONGLONG 1
43618 _ACEOF
43619
43620   ;;
43621 irix)
43622    DISTVER=`uname -r`
43623    TAPEDRIVE="/dev/rmt/0cbn"
43624    PSCMD="ps -e -o pid,comm"
43625    PFILES="${PFILES} \
43626        platforms/irix/Makefile \
43627        platforms/irix/bacula-fd \
43628        platforms/irix/bacula-sd \
43629        platforms/irix/bacula-dir"
43630   ;;
43631 netbsd)
43632    DISTVER=`uname -a |awk '{print $3}'`
43633    lld="qd"
43634    llu="qu"
43635    TAPEDRIVE="/dev/nrst0"
43636    PSCMD="ps -ax -o pid,command"
43637    PTHREAD_LIB="-pthread"
43638    CFLAGS="${CFLAGS} -pthread"
43639   ;;
43640 openbsd)
43641    DISTVER=`uname -a |awk '{print $3}'`
43642    lld="qd"
43643    llu="qu"
43644    TAPEDRIVE="/dev/nrst0"
43645    PSCMD="ps -ax -o pid,command"
43646    PTHREAD_LIB="-pthread"
43647    CFLAGS="${CFLAGS} -pthread"
43648    PFILES="${PFILES} \
43649        platforms/openbsd/Makefile \
43650        platforms/openbsd/bacula-fd \
43651        platforms/openbsd/bacula-sd \
43652        platforms/openbsd/bacula-dir"
43653   ;;
43654 redhat)
43655    if test -f /etc/whitebox-release ; then
43656       f=/etc/whitebox-release
43657    else
43658       f=/etc/redhat-release
43659    fi
43660    if test `cat $f | grep release |\
43661          cut -f 3 -d ' '`x = "Enterprise"x ; then
43662       DISTVER="Enterprise "`cat $f | grep release |\
43663           cut -f 6 -d ' '`
43664    else
43665        DISTVER=`cat /etc/redhat-release | grep release |\
43666            cut -f 5 -d ' '`
43667    fi
43668    TAPEDRIVE="/dev/nst0"
43669    PSCMD="ps -e -o pid,command"
43670    PFILES="${PFILES} \
43671        platforms/redhat/Makefile \
43672        platforms/redhat/bacula-fd \
43673        platforms/redhat/bacula-sd \
43674        platforms/redhat/bacula-dir
43675        "
43676   ;;
43677 mandrake)
43678    DISTVER=`cat /etc/mandrake-release | grep release |\
43679       cut -f 5 -d ' '`
43680    TAPEDRIVE="/dev/nst0"
43681    PSCMD="ps -e -o pid,command"
43682    PFILES="${PFILES} \
43683        platforms/mandrake/Makefile \
43684        platforms/mandrake/bacula-fd \
43685        platforms/mandrake/bacula-sd \
43686        platforms/mandrake/bacula-dir \
43687        platforms/mandrake/bacula.spec \
43688        "
43689   ;;
43690 gentoo)
43691    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
43692    TAPEDRIVE="/dev/nst0"
43693    PSCMD="ps -e -o pid,command"
43694    PFILES="${PFILES} \
43695        platforms/gentoo/Makefile \
43696     platforms/gentoo/bacula-init \
43697        platforms/gentoo/bacula-fd \
43698        platforms/gentoo/bacula-sd \
43699        platforms/gentoo/bacula-dir"
43700   ;;
43701 slackware)
43702    DISTVER=`cat /etc/slackware-version`
43703    TAPEDRIVE="/dev/nst0"
43704    PSCMD="ps -e -o pid,command"
43705    PFILES="${PFILES} \
43706        platforms/slackware/Makefile \
43707        platforms/slackware/rc.bacula-fd \
43708        platforms/slackware/rc.bacula-sd \
43709        platforms/slackware/rc.bacula-dir\
43710        platforms/slackware/functions.bacula"
43711   ;;
43712 solaris)
43713    DISTVER=`uname -r`
43714    TAPEDRIVE="/dev/rmt/0cbn"
43715    PSCMD="ps -e -o pid,comm"
43716    PFILES="${PFILES} \
43717        platforms/solaris/Makefile \
43718        platforms/solaris/bacula-fd \
43719        platforms/solaris/bacula-sd \
43720        platforms/solaris/bacula-dir"
43721    if test x$DISTVER = x5.6 ; then
43722        cat >>confdefs.h <<\_ACEOF
43723 #define HAVE_OLD_SOCKOPT 1
43724 _ACEOF
43725
43726    fi
43727    LIBS="$LIBS -lresolv"
43728   ;;
43729 suse)
43730    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
43731        cut -f 3 -d ' '`
43732    TAPEDRIVE="/dev/nst0"
43733    PSCMD="ps -e -o pid,command"
43734    PFILES="${PFILES} \
43735        platforms/suse/Makefile \
43736        platforms/suse/bacula-fd \
43737        platforms/suse/bacula-sd \
43738        platforms/suse/bacula-dir \
43739        platforms/suse/bacula \
43740        platforms/suse/bacula.spec"
43741   ;;
43742 suse5)
43743    DISTNAME=suse
43744    DISTVER=5.x
43745    TAPEDRIVE="/dev/nst0"
43746    PSCMD="ps -e -o pid,command"
43747    PFILES="${PFILES} \
43748        platforms/suse/Makefile \
43749        platforms/suse/bacula-fd \
43750        platforms/suse/bacula-sd \
43751        platforms/suse/bacula-dir"
43752   ;;
43753 unknown)
43754    DISTVER=unknown
43755    TAPEDRIVE="/dev/nst0"
43756   ;;
43757 *)
43758   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
43759   ;;
43760 esac
43761
43762
43763
43764 LIBS="$PTHREAD_LIB $LIBS"
43765
43766 cat >>confdefs.h <<_ACEOF
43767 #define lld "$lld"
43768 _ACEOF
43769
43770 cat >>confdefs.h <<_ACEOF
43771 #define llu "$llu"
43772 _ACEOF
43773
43774
43775
43776
43777
43778
43779
43780
43781 MCOMMON=./autoconf/Make.common
43782
43783
43784 if test "x${subsysdir}" = "x${sbindir}" ; then
43785    echo " "
43786    echo " "
43787    echo "You have set both --sbindir and --with-subsys-dir"
43788    echo "  equal to: ${subsysdir} "
43789    echo "This is not permitted. Please reconfigure."
43790    echo " "
43791    echo "Aborting configuration ..."
43792    echo " "
43793    echo " "
43794    exit 1
43795 fi
43796
43797 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_sqlite_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
43798
43799 ac_config_commands="$ac_config_commands default"
43800
43801 cat >confcache <<\_ACEOF
43802 # This file is a shell script that caches the results of configure
43803 # tests run on this system so they can be shared between configure
43804 # scripts and configure runs, see configure's option --config-cache.
43805 # It is not useful on other systems.  If it contains results you don't
43806 # want to keep, you may remove or edit it.
43807 #
43808 # config.status only pays attention to the cache file if you give it
43809 # the --recheck option to rerun configure.
43810 #
43811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43813 # following values.
43814
43815 _ACEOF
43816
43817 # The following way of writing the cache mishandles newlines in values,
43818 # but we know of no workaround that is simple, portable, and efficient.
43819 # So, we kill variables containing newlines.
43820 # Ultrix sh set writes to stderr and can't be redirected directly,
43821 # and sets the high bit in the cache file unless we assign to the vars.
43822 (
43823   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
43824     eval ac_val=\$$ac_var
43825     case $ac_val in #(
43826     *${as_nl}*)
43827       case $ac_var in #(
43828       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
43829 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
43830       esac
43831       case $ac_var in #(
43832       _ | IFS | as_nl) ;; #(
43833       *) $as_unset $ac_var ;;
43834       esac ;;
43835     esac
43836   done
43837
43838   (set) 2>&1 |
43839     case $as_nl`(ac_space=' '; set) 2>&1` in #(
43840     *${as_nl}ac_space=\ *)
43841       # `set' does not quote correctly, so add quotes (double-quote
43842       # substitution turns \\\\ into \\, and sed turns \\ into \).
43843       sed -n \
43844         "s/'/'\\\\''/g;
43845           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43846       ;; #(
43847     *)
43848       # `set' quotes correctly as required by POSIX, so do not add quotes.
43849       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
43850       ;;
43851     esac |
43852     sort
43853 ) |
43854   sed '
43855      /^ac_cv_env_/b end
43856      t clear
43857      :clear
43858      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43859      t end
43860      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43861      :end' >>confcache
43862 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
43863   if test -w "$cache_file"; then
43864     test "x$cache_file" != "x/dev/null" &&
43865       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
43866 echo "$as_me: updating cache $cache_file" >&6;}
43867     cat confcache >$cache_file
43868   else
43869     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
43870 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43871   fi
43872 fi
43873 rm -f confcache
43874
43875 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43876 # Let make expand exec_prefix.
43877 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43878
43879 DEFS=-DHAVE_CONFIG_H
43880
43881 ac_libobjs=
43882 ac_ltlibobjs=
43883 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43884   # 1. Remove the extension, and $U if already installed.
43885   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
43886   ac_i=`echo "$ac_i" | sed "$ac_script"`
43887   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
43888   #    will be set to the directory where LIBOBJS objects are built.
43889   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
43890   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
43891 done
43892 LIBOBJS=$ac_libobjs
43893
43894 LTLIBOBJS=$ac_ltlibobjs
43895
43896
43897
43898 : ${CONFIG_STATUS=./config.status}
43899 ac_clean_files_save=$ac_clean_files
43900 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43901 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43902 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43903 cat >$CONFIG_STATUS <<_ACEOF
43904 #! $SHELL
43905 # Generated by $as_me.
43906 # Run this file to recreate the current configuration.
43907 # Compiler output produced by configure, useful for debugging
43908 # configure, is in config.log if it exists.
43909
43910 debug=false
43911 ac_cs_recheck=false
43912 ac_cs_silent=false
43913 SHELL=\${CONFIG_SHELL-$SHELL}
43914 _ACEOF
43915
43916 cat >>$CONFIG_STATUS <<\_ACEOF
43917 ## --------------------- ##
43918 ## M4sh Initialization.  ##
43919 ## --------------------- ##
43920
43921 # Be more Bourne compatible
43922 DUALCASE=1; export DUALCASE # for MKS sh
43923 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43924   emulate sh
43925   NULLCMD=:
43926   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43927   # is contrary to our usage.  Disable this feature.
43928   alias -g '${1+"$@"}'='"$@"'
43929   setopt NO_GLOB_SUBST
43930 else
43931   case `(set -o) 2>/dev/null` in
43932   *posix*) set -o posix ;;
43933 esac
43934
43935 fi
43936
43937
43938
43939
43940 # PATH needs CR
43941 # Avoid depending upon Character Ranges.
43942 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43943 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43944 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43945 as_cr_digits='0123456789'
43946 as_cr_alnum=$as_cr_Letters$as_cr_digits
43947
43948 # The user is always right.
43949 if test "${PATH_SEPARATOR+set}" != set; then
43950   echo "#! /bin/sh" >conf$$.sh
43951   echo  "exit 0"   >>conf$$.sh
43952   chmod +x conf$$.sh
43953   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43954     PATH_SEPARATOR=';'
43955   else
43956     PATH_SEPARATOR=:
43957   fi
43958   rm -f conf$$.sh
43959 fi
43960
43961 # Support unset when possible.
43962 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43963   as_unset=unset
43964 else
43965   as_unset=false
43966 fi
43967
43968
43969 # IFS
43970 # We need space, tab and new line, in precisely that order.  Quoting is
43971 # there to prevent editors from complaining about space-tab.
43972 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43973 # splitting by setting IFS to empty value.)
43974 as_nl='
43975 '
43976 IFS=" ""        $as_nl"
43977
43978 # Find who we are.  Look in the path if we contain no directory separator.
43979 case $0 in
43980   *[\\/]* ) as_myself=$0 ;;
43981   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43982 for as_dir in $PATH
43983 do
43984   IFS=$as_save_IFS
43985   test -z "$as_dir" && as_dir=.
43986   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43987 done
43988 IFS=$as_save_IFS
43989
43990      ;;
43991 esac
43992 # We did not find ourselves, most probably we were run as `sh COMMAND'
43993 # in which case we are not to be found in the path.
43994 if test "x$as_myself" = x; then
43995   as_myself=$0
43996 fi
43997 if test ! -f "$as_myself"; then
43998   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43999   { (exit 1); exit 1; }
44000 fi
44001
44002 # Work around bugs in pre-3.0 UWIN ksh.
44003 for as_var in ENV MAIL MAILPATH
44004 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44005 done
44006 PS1='$ '
44007 PS2='> '
44008 PS4='+ '
44009
44010 # NLS nuisances.
44011 for as_var in \
44012   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44013   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44014   LC_TELEPHONE LC_TIME
44015 do
44016   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44017     eval $as_var=C; export $as_var
44018   else
44019     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44020   fi
44021 done
44022
44023 # Required to use basename.
44024 if expr a : '\(a\)' >/dev/null 2>&1 &&
44025    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44026   as_expr=expr
44027 else
44028   as_expr=false
44029 fi
44030
44031 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44032   as_basename=basename
44033 else
44034   as_basename=false
44035 fi
44036
44037
44038 # Name of the executable.
44039 as_me=`$as_basename -- "$0" ||
44040 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44041          X"$0" : 'X\(//\)$' \| \
44042          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44043 echo X/"$0" |
44044     sed '/^.*\/\([^/][^/]*\)\/*$/{
44045             s//\1/
44046             q
44047           }
44048           /^X\/\(\/\/\)$/{
44049             s//\1/
44050             q
44051           }
44052           /^X\/\(\/\).*/{
44053             s//\1/
44054             q
44055           }
44056           s/.*/./; q'`
44057
44058 # CDPATH.
44059 $as_unset CDPATH
44060
44061
44062
44063   as_lineno_1=$LINENO
44064   as_lineno_2=$LINENO
44065   test "x$as_lineno_1" != "x$as_lineno_2" &&
44066   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44067
44068   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44069   # uniformly replaced by the line number.  The first 'sed' inserts a
44070   # line-number line after each line using $LINENO; the second 'sed'
44071   # does the real work.  The second script uses 'N' to pair each
44072   # line-number line with the line containing $LINENO, and appends
44073   # trailing '-' during substitution so that $LINENO is not a special
44074   # case at line end.
44075   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44076   # scripts with optimization help from Paolo Bonzini.  Blame Lee
44077   # E. McMahon (1931-1989) for sed's syntax.  :-)
44078   sed -n '
44079     p
44080     /[$]LINENO/=
44081   ' <$as_myself |
44082     sed '
44083       s/[$]LINENO.*/&-/
44084       t lineno
44085       b
44086       :lineno
44087       N
44088       :loop
44089       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44090       t loop
44091       s/-\n.*//
44092     ' >$as_me.lineno &&
44093   chmod +x "$as_me.lineno" ||
44094     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44095    { (exit 1); exit 1; }; }
44096
44097   # Don't try to exec as it changes $[0], causing all sort of problems
44098   # (the dirname of $[0] is not the place where we might find the
44099   # original and so on.  Autoconf is especially sensitive to this).
44100   . "./$as_me.lineno"
44101   # Exit status is that of the last command.
44102   exit
44103 }
44104
44105
44106 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44107   as_dirname=dirname
44108 else
44109   as_dirname=false
44110 fi
44111
44112 ECHO_C= ECHO_N= ECHO_T=
44113 case `echo -n x` in
44114 -n*)
44115   case `echo 'x\c'` in
44116   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
44117   *)   ECHO_C='\c';;
44118   esac;;
44119 *)
44120   ECHO_N='-n';;
44121 esac
44122
44123 if expr a : '\(a\)' >/dev/null 2>&1 &&
44124    test "X`expr 00001 : '.*\(...\)'`" = X001; then
44125   as_expr=expr
44126 else
44127   as_expr=false
44128 fi
44129
44130 rm -f conf$$ conf$$.exe conf$$.file
44131 if test -d conf$$.dir; then
44132   rm -f conf$$.dir/conf$$.file
44133 else
44134   rm -f conf$$.dir
44135   mkdir conf$$.dir
44136 fi
44137 echo >conf$$.file
44138 if ln -s conf$$.file conf$$ 2>/dev/null; then
44139   as_ln_s='ln -s'
44140   # ... but there are two gotchas:
44141   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44142   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44143   # In both cases, we have to default to `cp -p'.
44144   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44145     as_ln_s='cp -p'
44146 elif ln conf$$.file conf$$ 2>/dev/null; then
44147   as_ln_s=ln
44148 else
44149   as_ln_s='cp -p'
44150 fi
44151 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44152 rmdir conf$$.dir 2>/dev/null
44153
44154 if mkdir -p . 2>/dev/null; then
44155   as_mkdir_p=:
44156 else
44157   test -d ./-p && rmdir ./-p
44158   as_mkdir_p=false
44159 fi
44160
44161 if test -x / >/dev/null 2>&1; then
44162   as_test_x='test -x'
44163 else
44164   if ls -dL / >/dev/null 2>&1; then
44165     as_ls_L_option=L
44166   else
44167     as_ls_L_option=
44168   fi
44169   as_test_x='
44170     eval sh -c '\''
44171       if test -d "$1"; then
44172         test -d "$1/.";
44173       else
44174         case $1 in
44175         -*)set "./$1";;
44176         esac;
44177         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44178         ???[sx]*):;;*)false;;esac;fi
44179     '\'' sh
44180   '
44181 fi
44182 as_executable_p=$as_test_x
44183
44184 # Sed expression to map a string onto a valid CPP name.
44185 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44186
44187 # Sed expression to map a string onto a valid variable name.
44188 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44189
44190
44191 exec 6>&1
44192
44193 # Save the log message, to keep $[0] and so on meaningful, and to
44194 # report actual input values of CONFIG_FILES etc. instead of their
44195 # values after options handling.
44196 ac_log="
44197 This file was extended by $as_me, which was
44198 generated by GNU Autoconf 2.61.  Invocation command line was
44199
44200   CONFIG_FILES    = $CONFIG_FILES
44201   CONFIG_HEADERS  = $CONFIG_HEADERS
44202   CONFIG_LINKS    = $CONFIG_LINKS
44203   CONFIG_COMMANDS = $CONFIG_COMMANDS
44204   $ $0 $@
44205
44206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44207 "
44208
44209 _ACEOF
44210
44211 cat >>$CONFIG_STATUS <<_ACEOF
44212 # Files that config.status was made for.
44213 config_files="$ac_config_files"
44214 config_headers="$ac_config_headers"
44215 config_commands="$ac_config_commands"
44216
44217 _ACEOF
44218
44219 cat >>$CONFIG_STATUS <<\_ACEOF
44220 ac_cs_usage="\
44221 \`$as_me' instantiates files from templates according to the
44222 current configuration.
44223
44224 Usage: $0 [OPTIONS] [FILE]...
44225
44226   -h, --help       print this help, then exit
44227   -V, --version    print version number and configuration settings, then exit
44228   -q, --quiet      do not print progress messages
44229   -d, --debug      don't remove temporary files
44230       --recheck    update $as_me by reconfiguring in the same conditions
44231   --file=FILE[:TEMPLATE]
44232                    instantiate the configuration file FILE
44233   --header=FILE[:TEMPLATE]
44234                    instantiate the configuration header FILE
44235
44236 Configuration files:
44237 $config_files
44238
44239 Configuration headers:
44240 $config_headers
44241
44242 Configuration commands:
44243 $config_commands
44244
44245 Report bugs to <bug-autoconf@gnu.org>."
44246
44247 _ACEOF
44248 cat >>$CONFIG_STATUS <<_ACEOF
44249 ac_cs_version="\\
44250 config.status
44251 configured by $0, generated by GNU Autoconf 2.61,
44252   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44253
44254 Copyright (C) 2006 Free Software Foundation, Inc.
44255 This config.status script is free software; the Free Software Foundation
44256 gives unlimited permission to copy, distribute and modify it."
44257
44258 ac_pwd='$ac_pwd'
44259 srcdir='$srcdir'
44260 INSTALL='$INSTALL'
44261 _ACEOF
44262
44263 cat >>$CONFIG_STATUS <<\_ACEOF
44264 # If no file are specified by the user, then we need to provide default
44265 # value.  By we need to know if files were specified by the user.
44266 ac_need_defaults=:
44267 while test $# != 0
44268 do
44269   case $1 in
44270   --*=*)
44271     ac_option=`expr "X$1" : 'X\([^=]*\)='`
44272     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44273     ac_shift=:
44274     ;;
44275   *)
44276     ac_option=$1
44277     ac_optarg=$2
44278     ac_shift=shift
44279     ;;
44280   esac
44281
44282   case $ac_option in
44283   # Handling of the options.
44284   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44285     ac_cs_recheck=: ;;
44286   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44287     echo "$ac_cs_version"; exit ;;
44288   --debug | --debu | --deb | --de | --d | -d )
44289     debug=: ;;
44290   --file | --fil | --fi | --f )
44291     $ac_shift
44292     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44293     ac_need_defaults=false;;
44294   --header | --heade | --head | --hea )
44295     $ac_shift
44296     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44297     ac_need_defaults=false;;
44298   --he | --h)
44299     # Conflict between --help and --header
44300     { echo "$as_me: error: ambiguous option: $1
44301 Try \`$0 --help' for more information." >&2
44302    { (exit 1); exit 1; }; };;
44303   --help | --hel | -h )
44304     echo "$ac_cs_usage"; exit ;;
44305   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44306   | -silent | --silent | --silen | --sile | --sil | --si | --s)
44307     ac_cs_silent=: ;;
44308
44309   # This is an error.
44310   -*) { echo "$as_me: error: unrecognized option: $1
44311 Try \`$0 --help' for more information." >&2
44312    { (exit 1); exit 1; }; } ;;
44313
44314   *) ac_config_targets="$ac_config_targets $1"
44315      ac_need_defaults=false ;;
44316
44317   esac
44318   shift
44319 done
44320
44321 ac_configure_extra_args=
44322
44323 if $ac_cs_silent; then
44324   exec 6>/dev/null
44325   ac_configure_extra_args="$ac_configure_extra_args --silent"
44326 fi
44327
44328 _ACEOF
44329 cat >>$CONFIG_STATUS <<_ACEOF
44330 if \$ac_cs_recheck; then
44331   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44332   CONFIG_SHELL=$SHELL
44333   export CONFIG_SHELL
44334   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44335 fi
44336
44337 _ACEOF
44338 cat >>$CONFIG_STATUS <<\_ACEOF
44339 exec 5>>config.log
44340 {
44341   echo
44342   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44343 ## Running $as_me. ##
44344 _ASBOX
44345   echo "$ac_log"
44346 } >&5
44347
44348 _ACEOF
44349 cat >>$CONFIG_STATUS <<_ACEOF
44350 #
44351 # INIT-COMMANDS
44352 #
44353
44354
44355 # The HP-UX ksh and POSIX shell print the target directory to stdout
44356 # if CDPATH is set.
44357 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44358
44359 sed_quote_subst='$sed_quote_subst'
44360 double_quote_subst='$double_quote_subst'
44361 delay_variable_subst='$delay_variable_subst'
44362 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44363 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44364 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44365 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44366 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44367 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44368 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44369 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44370 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44371 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44372 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44373 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44374 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44375 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44376 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44377 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44378 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44379 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44380 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44381 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44382 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44383 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44384 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44385 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44386 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44387 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44388 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44389 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44390 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44391 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44392 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44393 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44394 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44395 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44396 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44397 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44398 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44399 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44400 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44401 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44402 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44403 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44404 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44405 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44406 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"`'
44407 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"`'
44408 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44409 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44410 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44411 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44412 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44413 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44414 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44415 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44416 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44417 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44418 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44419 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44420 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44421 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44422 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44423 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44424 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44425 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44426 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44427 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44428 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44429 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44430 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44431 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44432 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44433 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44434 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44435 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44436 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44437 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44438 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44439 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44440 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44441 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44442 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44443 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44444 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44445 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44446 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44447 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44448 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44449 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44450 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44451 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44452 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44453 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44454 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44455 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44456 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44457 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44458 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44459 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44460 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44461 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44462 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44463 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44464 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44465 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44466 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44467 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44468 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44469 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44470 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44471 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44472 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44473 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44474 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44475 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44476 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44477 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44478 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44479 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44480 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44481 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44482 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44483 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44484 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44485 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44486 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44487 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44488 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44489 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44490 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44491 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44492 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44493 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44494 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44495 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44496 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44497 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44498 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44499 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44500 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44501 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44502 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44503 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44504 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44505 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44506 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44507 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44508 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44509 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44510 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44511 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44512 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44513 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44514 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44515 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44516 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44517 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44518 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44519 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44520 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44521 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44522 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44523 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44524 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44525 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44526 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44527 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44528 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44529 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44530 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44531 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44532 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44533
44534 LTCC='$LTCC'
44535 LTCFLAGS='$LTCFLAGS'
44536 compiler='$compiler_DEFAULT'
44537
44538 # Quote evaled strings.
44539 for var in SED \
44540 GREP \
44541 EGREP \
44542 FGREP \
44543 LD \
44544 NM \
44545 LN_S \
44546 lt_SP2NL \
44547 lt_NL2SP \
44548 reload_flag \
44549 OBJDUMP \
44550 deplibs_check_method \
44551 file_magic_cmd \
44552 AR \
44553 AR_FLAGS \
44554 STRIP \
44555 RANLIB \
44556 CC \
44557 CFLAGS \
44558 compiler \
44559 lt_cv_sys_global_symbol_pipe \
44560 lt_cv_sys_global_symbol_to_cdecl \
44561 lt_cv_sys_global_symbol_to_c_name_address \
44562 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44563 SHELL \
44564 ECHO \
44565 lt_prog_compiler_no_builtin_flag \
44566 lt_prog_compiler_wl \
44567 lt_prog_compiler_pic \
44568 lt_prog_compiler_static \
44569 lt_cv_prog_compiler_c_o \
44570 need_locks \
44571 DSYMUTIL \
44572 NMEDIT \
44573 LIPO \
44574 OTOOL \
44575 OTOOL64 \
44576 shrext_cmds \
44577 export_dynamic_flag_spec \
44578 whole_archive_flag_spec \
44579 compiler_needs_object \
44580 with_gnu_ld \
44581 allow_undefined_flag \
44582 no_undefined_flag \
44583 hardcode_libdir_flag_spec \
44584 hardcode_libdir_flag_spec_ld \
44585 hardcode_libdir_separator \
44586 fix_srcfile_path \
44587 exclude_expsyms \
44588 include_expsyms \
44589 file_list_spec \
44590 variables_saved_for_relink \
44591 libname_spec \
44592 library_names_spec \
44593 soname_spec \
44594 finish_eval \
44595 old_striplib \
44596 striplib \
44597 compiler_lib_search_dirs \
44598 predep_objects \
44599 postdep_objects \
44600 predeps \
44601 postdeps \
44602 compiler_lib_search_path \
44603 LD_CXX \
44604 compiler_CXX \
44605 lt_prog_compiler_no_builtin_flag_CXX \
44606 lt_prog_compiler_wl_CXX \
44607 lt_prog_compiler_pic_CXX \
44608 lt_prog_compiler_static_CXX \
44609 lt_cv_prog_compiler_c_o_CXX \
44610 export_dynamic_flag_spec_CXX \
44611 whole_archive_flag_spec_CXX \
44612 compiler_needs_object_CXX \
44613 with_gnu_ld_CXX \
44614 allow_undefined_flag_CXX \
44615 no_undefined_flag_CXX \
44616 hardcode_libdir_flag_spec_CXX \
44617 hardcode_libdir_flag_spec_ld_CXX \
44618 hardcode_libdir_separator_CXX \
44619 fix_srcfile_path_CXX \
44620 exclude_expsyms_CXX \
44621 include_expsyms_CXX \
44622 file_list_spec_CXX \
44623 compiler_lib_search_dirs_CXX \
44624 predep_objects_CXX \
44625 postdep_objects_CXX \
44626 predeps_CXX \
44627 postdeps_CXX \
44628 compiler_lib_search_path_CXX; do
44629     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44630     *[\\\\\\\`\\"\\\$]*)
44631       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44632       ;;
44633     *)
44634       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44635       ;;
44636     esac
44637 done
44638
44639 # Double-quote double-evaled strings.
44640 for var in reload_cmds \
44641 old_postinstall_cmds \
44642 old_postuninstall_cmds \
44643 old_archive_cmds \
44644 extract_expsyms_cmds \
44645 old_archive_from_new_cmds \
44646 old_archive_from_expsyms_cmds \
44647 archive_cmds \
44648 archive_expsym_cmds \
44649 module_cmds \
44650 module_expsym_cmds \
44651 export_symbols_cmds \
44652 prelink_cmds \
44653 postinstall_cmds \
44654 postuninstall_cmds \
44655 finish_cmds \
44656 sys_lib_search_path_spec \
44657 sys_lib_dlsearch_path_spec \
44658 old_archive_cmds_CXX \
44659 old_archive_from_new_cmds_CXX \
44660 old_archive_from_expsyms_cmds_CXX \
44661 archive_cmds_CXX \
44662 archive_expsym_cmds_CXX \
44663 module_cmds_CXX \
44664 module_expsym_cmds_CXX \
44665 export_symbols_cmds_CXX \
44666 prelink_cmds_CXX; do
44667     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44668     *[\\\\\\\`\\"\\\$]*)
44669       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44670       ;;
44671     *)
44672       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44673       ;;
44674     esac
44675 done
44676
44677 # Fix-up fallback echo if it was mangled by the above quoting rules.
44678 case \$lt_ECHO in
44679 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44680   ;;
44681 esac
44682
44683 ac_aux_dir='$ac_aux_dir'
44684 xsi_shell='$xsi_shell'
44685 lt_shell_append='$lt_shell_append'
44686
44687 # See if we are running on zsh, and set the options which allow our
44688 # commands through without removal of \ escapes INIT.
44689 if test -n "\${ZSH_VERSION+set}" ; then
44690    setopt NO_GLOB_SUBST
44691 fi
44692
44693
44694     PACKAGE='$PACKAGE'
44695     VERSION='$VERSION'
44696     TIMESTAMP='$TIMESTAMP'
44697     RM='$RM'
44698     ofile='$ofile'
44699
44700
44701
44702
44703
44704 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
44705     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
44706     # from automake.
44707     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
44708     # Capture the value of LINGUAS because we need it to compute CATALOGS.
44709     LINGUAS="${LINGUAS-%UNSET%}"
44710
44711
44712 _ACEOF
44713
44714 cat >>$CONFIG_STATUS <<\_ACEOF
44715
44716 # Handling of arguments.
44717 for ac_config_target in $ac_config_targets
44718 do
44719   case $ac_config_target in
44720     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
44721     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
44722     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
44723     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
44724     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44725     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
44726     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
44727     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
44728     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
44729     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
44730     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
44731     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
44732     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
44733     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
44734     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
44735     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
44736     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
44737     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
44738     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
44739     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
44740     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
44741     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
44742     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
44743     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
44744     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
44745     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
44746     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
44747     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
44748     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
44749     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
44750     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
44751     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
44752     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
44753     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
44754     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
44755     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
44756     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
44757     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
44758     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
44759     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
44760     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
44761     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
44762     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
44763     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
44764     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
44765     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
44766     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
44767     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
44768     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
44769     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
44770     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
44771     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
44772     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
44773     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
44774     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
44775     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
44776     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
44777     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
44778     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
44779     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
44780     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
44781     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
44782     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
44783     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
44784     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
44785     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
44786     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
44787     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
44788     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
44789     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
44790     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
44791     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
44792     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
44793     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
44794     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
44795     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
44796     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
44797     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
44798     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
44799     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
44800     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
44801     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
44802     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
44803     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
44804     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
44805     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
44806     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
44807     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
44808     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
44809     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
44810     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
44811     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
44812     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
44813     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
44814     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
44815     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
44816     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
44817     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
44818     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
44819     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
44820     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
44821     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
44822     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
44823     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
44824     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
44825     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
44826     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
44827     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
44828     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
44829     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
44830     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
44831     "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
44832     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
44833     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
44834     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
44835     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
44836     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
44837     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
44838
44839   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44840 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44841    { (exit 1); exit 1; }; };;
44842   esac
44843 done
44844
44845
44846 # If the user did not use the arguments to specify the items to instantiate,
44847 # then the envvar interface is used.  Set only those that are not.
44848 # We use the long form for the default assignment because of an extremely
44849 # bizarre bug on SunOS 4.1.3.
44850 if $ac_need_defaults; then
44851   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44852   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44853   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44854 fi
44855
44856 # Have a temporary directory for convenience.  Make it in the build tree
44857 # simply because there is no reason against having it here, and in addition,
44858 # creating and moving files from /tmp can sometimes cause problems.
44859 # Hook for its removal unless debugging.
44860 # Note that there is a small window in which the directory will not be cleaned:
44861 # after its creation but before its name has been assigned to `$tmp'.
44862 $debug ||
44863 {
44864   tmp=
44865   trap 'exit_status=$?
44866   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
44867 ' 0
44868   trap '{ (exit 1); exit 1; }' 1 2 13 15
44869 }
44870 # Create a (secure) tmp directory for tmp files.
44871
44872 {
44873   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
44874   test -n "$tmp" && test -d "$tmp"
44875 }  ||
44876 {
44877   tmp=./conf$$-$RANDOM
44878   (umask 077 && mkdir "$tmp")
44879 } ||
44880 {
44881    echo "$me: cannot create a temporary directory in ." >&2
44882    { (exit 1); exit 1; }
44883 }
44884
44885 #
44886 # Set up the sed scripts for CONFIG_FILES section.
44887 #
44888
44889 # No need to generate the scripts if there are no CONFIG_FILES.
44890 # This happens for instance when ./config.status config.h
44891 if test -n "$CONFIG_FILES"; then
44892
44893 _ACEOF
44894
44895 # Create sed commands to just substitute file output variables.
44896
44897 # Remaining file output variables are in a fragment that also has non-file
44898 # output varibles.
44899
44900
44901
44902 ac_delim='%!_!# '
44903 for ac_last_try in false false false false false :; do
44904   cat >conf$$subs.sed <<_ACEOF
44905 SHELL!$SHELL$ac_delim
44906 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
44907 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
44908 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
44909 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
44910 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
44911 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
44912 exec_prefix!$exec_prefix$ac_delim
44913 prefix!$prefix$ac_delim
44914 program_transform_name!$program_transform_name$ac_delim
44915 bindir!$bindir$ac_delim
44916 sbindir!$sbindir$ac_delim
44917 libexecdir!$libexecdir$ac_delim
44918 datarootdir!$datarootdir$ac_delim
44919 datadir!$datadir$ac_delim
44920 sysconfdir!$sysconfdir$ac_delim
44921 sharedstatedir!$sharedstatedir$ac_delim
44922 localstatedir!$localstatedir$ac_delim
44923 includedir!$includedir$ac_delim
44924 oldincludedir!$oldincludedir$ac_delim
44925 docdir!$docdir$ac_delim
44926 infodir!$infodir$ac_delim
44927 htmldir!$htmldir$ac_delim
44928 dvidir!$dvidir$ac_delim
44929 pdfdir!$pdfdir$ac_delim
44930 psdir!$psdir$ac_delim
44931 libdir!$libdir$ac_delim
44932 localedir!$localedir$ac_delim
44933 mandir!$mandir$ac_delim
44934 DEFS!$DEFS$ac_delim
44935 ECHO_C!$ECHO_C$ac_delim
44936 ECHO_N!$ECHO_N$ac_delim
44937 ECHO_T!$ECHO_T$ac_delim
44938 LIBS!$LIBS$ac_delim
44939 build_alias!$build_alias$ac_delim
44940 host_alias!$host_alias$ac_delim
44941 target_alias!$target_alias$ac_delim
44942 BUILD_DIR!$BUILD_DIR$ac_delim
44943 TOP_DIR!$TOP_DIR$ac_delim
44944 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
44945 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
44946 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
44947 TRUEPRG!$TRUEPRG$ac_delim
44948 FALSEPRG!$FALSEPRG$ac_delim
44949 VERSION!$VERSION$ac_delim
44950 DATE!$DATE$ac_delim
44951 LSMDATE!$LSMDATE$ac_delim
44952 BACULA!$BACULA$ac_delim
44953 post_host!$post_host$ac_delim
44954 CC!$CC$ac_delim
44955 CFLAGS!$CFLAGS$ac_delim
44956 LDFLAGS!$LDFLAGS$ac_delim
44957 CPPFLAGS!$CPPFLAGS$ac_delim
44958 ac_ct_CC!$ac_ct_CC$ac_delim
44959 EXEEXT!$EXEEXT$ac_delim
44960 OBJEXT!$OBJEXT$ac_delim
44961 CXX!$CXX$ac_delim
44962 CXXFLAGS!$CXXFLAGS$ac_delim
44963 ac_ct_CXX!$ac_ct_CXX$ac_delim
44964 CPP!$CPP$ac_delim
44965 GREP!$GREP$ac_delim
44966 EGREP!$EGREP$ac_delim
44967 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
44968 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
44969 INSTALL_DATA!$INSTALL_DATA$ac_delim
44970 MV!$MV$ac_delim
44971 REMOVE!$REMOVE$ac_delim
44972 CP!$CP$ac_delim
44973 SED!$SED$ac_delim
44974 ECHO!$ECHO$ac_delim
44975 CMP!$CMP$ac_delim
44976 TBL!$TBL$ac_delim
44977 AR!$AR$ac_delim
44978 OPENSSL!$OPENSSL$ac_delim
44979 MTX!$MTX$ac_delim
44980 DD!$DD$ac_delim
44981 MKISOFS!$MKISOFS$ac_delim
44982 PYTHON!$PYTHON$ac_delim
44983 GROWISOFS!$GROWISOFS$ac_delim
44984 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
44985 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
44986 PKGCONFIG!$PKGCONFIG$ac_delim
44987 QMAKE!$QMAKE$ac_delim
44988 QMAKEQT4!$QMAKEQT4$ac_delim
44989 GMAKE!$GMAKE$ac_delim
44990 WXCONFIG!$WXCONFIG$ac_delim
44991 WXFLAGS!$WXFLAGS$ac_delim
44992 CDRECORD!$CDRECORD$ac_delim
44993 PIDOF!$PIDOF$ac_delim
44994 AWK!$AWK$ac_delim
44995 ARFLAGS!$ARFLAGS$ac_delim
44996 MAKE_SHELL!$MAKE_SHELL$ac_delim
44997 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
44998 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
44999 _ACEOF
45000
45001   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45002     break
45003   elif $ac_last_try; then
45004     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45005 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45006    { (exit 1); exit 1; }; }
45007   else
45008     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45009   fi
45010 done
45011
45012 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45013 if test -n "$ac_eof"; then
45014   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45015   ac_eof=`expr $ac_eof + 1`
45016 fi
45017
45018 cat >>$CONFIG_STATUS <<_ACEOF
45019 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45021 /^[      ]*@MCOMMON@[    ]*$/{
45022 r $MCOMMON
45023 d
45024 }
45025 _ACEOF
45026 sed '
45027 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45028 s/^/s,@/; s/!/@,|#_!!_#|/
45029 :n
45030 t n
45031 s/'"$ac_delim"'$/,g/; t
45032 s/$/\\/; p
45033 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45034 ' >>$CONFIG_STATUS <conf$$subs.sed
45035 rm -f conf$$subs.sed
45036 cat >>$CONFIG_STATUS <<_ACEOF
45037 CEOF$ac_eof
45038 _ACEOF
45039
45040
45041 ac_delim='%!_!# '
45042 for ac_last_try in false false false false false :; do
45043   cat >conf$$subs.sed <<_ACEOF
45044 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45045 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45046 LIBTOOL!$LIBTOOL$ac_delim
45047 build!$build$ac_delim
45048 build_cpu!$build_cpu$ac_delim
45049 build_vendor!$build_vendor$ac_delim
45050 build_os!$build_os$ac_delim
45051 host!$host$ac_delim
45052 host_cpu!$host_cpu$ac_delim
45053 host_vendor!$host_vendor$ac_delim
45054 host_os!$host_os$ac_delim
45055 FGREP!$FGREP$ac_delim
45056 LD!$LD$ac_delim
45057 DUMPBIN!$DUMPBIN$ac_delim
45058 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45059 NM!$NM$ac_delim
45060 LN_S!$LN_S$ac_delim
45061 OBJDUMP!$OBJDUMP$ac_delim
45062 STRIP!$STRIP$ac_delim
45063 RANLIB!$RANLIB$ac_delim
45064 lt_ECHO!$lt_ECHO$ac_delim
45065 DSYMUTIL!$DSYMUTIL$ac_delim
45066 NMEDIT!$NMEDIT$ac_delim
45067 LIPO!$LIPO$ac_delim
45068 OTOOL!$OTOOL$ac_delim
45069 OTOOL64!$OTOOL64$ac_delim
45070 CXXCPP!$CXXCPP$ac_delim
45071 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45072 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45073 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45074 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45075 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45076 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45077 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45078 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45079 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45080 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45081 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45082 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45083 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45084 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45085 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45086 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45087 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45088 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45089 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45090 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45091 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45092 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45093 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45094 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45095 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45096 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45097 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45098 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45099 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45100 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45101 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45102 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45103 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45104 SET_MAKE!$SET_MAKE$ac_delim
45105 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45106 USE_NLS!$USE_NLS$ac_delim
45107 MSGFMT!$MSGFMT$ac_delim
45108 GMSGFMT!$GMSGFMT$ac_delim
45109 XGETTEXT!$XGETTEXT$ac_delim
45110 MSGMERGE!$MSGMERGE$ac_delim
45111 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45112 LIBICONV!$LIBICONV$ac_delim
45113 LTLIBICONV!$LTLIBICONV$ac_delim
45114 INTLLIBS!$INTLLIBS$ac_delim
45115 LIBINTL!$LIBINTL$ac_delim
45116 LTLIBINTL!$LTLIBINTL$ac_delim
45117 POSUB!$POSUB$ac_delim
45118 GLIBC2!$GLIBC2$ac_delim
45119 ALLOCA!$ALLOCA$ac_delim
45120 GLIBC21!$GLIBC21$ac_delim
45121 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45122 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45123 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45124 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45125 INTLBISON!$INTLBISON$ac_delim
45126 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45127 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45128 CATOBJEXT!$CATOBJEXT$ac_delim
45129 DATADIRNAME!$DATADIRNAME$ac_delim
45130 INSTOBJEXT!$INSTOBJEXT$ac_delim
45131 GENCAT!$GENCAT$ac_delim
45132 INTLOBJS!$INTLOBJS$ac_delim
45133 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45134 BAT_DIR!$BAT_DIR$ac_delim
45135 QWT_INC!$QWT_INC$ac_delim
45136 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45137 QWT_LIB!$QWT_LIB$ac_delim
45138 QWT!$QWT$ac_delim
45139 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45140 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45141 _ACEOF
45142
45143   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45144     break
45145   elif $ac_last_try; then
45146     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45147 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45148    { (exit 1); exit 1; }; }
45149   else
45150     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45151   fi
45152 done
45153
45154 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45155 if test -n "$ac_eof"; then
45156   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45157   ac_eof=`expr $ac_eof + 1`
45158 fi
45159
45160 cat >>$CONFIG_STATUS <<_ACEOF
45161 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45162 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45163 _ACEOF
45164 sed '
45165 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45166 s/^/s,@/; s/!/@,|#_!!_#|/
45167 :n
45168 t n
45169 s/'"$ac_delim"'$/,g/; t
45170 s/$/\\/; p
45171 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45172 ' >>$CONFIG_STATUS <conf$$subs.sed
45173 rm -f conf$$subs.sed
45174 cat >>$CONFIG_STATUS <<_ACEOF
45175 CEOF$ac_eof
45176 _ACEOF
45177
45178
45179 ac_delim='%!_!# '
45180 for ac_last_try in false false false false false :; do
45181   cat >conf$$subs.sed <<_ACEOF
45182 WX_DIR!$WX_DIR$ac_delim
45183 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45184 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45185 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45186 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45187 STATIC_FD!$STATIC_FD$ac_delim
45188 STATIC_SD!$STATIC_SD$ac_delim
45189 STATIC_DIR!$STATIC_DIR$ac_delim
45190 STATIC_CONS!$STATIC_CONS$ac_delim
45191 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45192 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45193 ALL_DIRS!$ALL_DIRS$ac_delim
45194 DIRD_DIR!$DIRD_DIR$ac_delim
45195 DIR_TOOLS!$DIR_TOOLS$ac_delim
45196 STORED_DIR!$STORED_DIR$ac_delim
45197 CONS_INC!$CONS_INC$ac_delim
45198 CONS_OBJ!$CONS_OBJ$ac_delim
45199 CONS_SRC!$CONS_SRC$ac_delim
45200 CONS_LIBS!$CONS_LIBS$ac_delim
45201 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45202 READLINE_SRC!$READLINE_SRC$ac_delim
45203 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45204 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45205 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45206 OPENSSL_INC!$OPENSSL_INC$ac_delim
45207 working_dir!$working_dir$ac_delim
45208 archivedir!$archivedir$ac_delim
45209 basename!$basename$ac_delim
45210 hostname!$hostname$ac_delim
45211 scriptdir!$scriptdir$ac_delim
45212 bsrdir!$bsrdir$ac_delim
45213 logdir!$logdir$ac_delim
45214 plugindir!$plugindir$ac_delim
45215 dump_email!$dump_email$ac_delim
45216 job_email!$job_email$ac_delim
45217 smtp_host!$smtp_host$ac_delim
45218 piddir!$piddir$ac_delim
45219 subsysdir!$subsysdir$ac_delim
45220 baseport!$baseport$ac_delim
45221 dir_port!$dir_port$ac_delim
45222 fd_port!$fd_port$ac_delim
45223 sd_port!$sd_port$ac_delim
45224 dir_password!$dir_password$ac_delim
45225 fd_password!$fd_password$ac_delim
45226 sd_password!$sd_password$ac_delim
45227 mon_dir_password!$mon_dir_password$ac_delim
45228 mon_fd_password!$mon_fd_password$ac_delim
45229 mon_sd_password!$mon_sd_password$ac_delim
45230 db_name!$db_name$ac_delim
45231 db_user!$db_user$ac_delim
45232 db_password!$db_password$ac_delim
45233 db_port!$db_port$ac_delim
45234 dir_user!$dir_user$ac_delim
45235 dir_group!$dir_group$ac_delim
45236 sd_user!$sd_user$ac_delim
45237 sd_group!$sd_group$ac_delim
45238 fd_user!$fd_user$ac_delim
45239 fd_group!$fd_group$ac_delim
45240 SBINPERM!$SBINPERM$ac_delim
45241 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45242 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45243 SQL_BINDIR!$SQL_BINDIR$ac_delim
45244 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45245 uncomment_dbi!$uncomment_dbi$ac_delim
45246 DB_PROG!$DB_PROG$ac_delim
45247 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45248 cats!$cats$ac_delim
45249 DB_TYPE!$DB_TYPE$ac_delim
45250 GETCONF!$GETCONF$ac_delim
45251 XMKMF!$XMKMF$ac_delim
45252 X_CFLAGS!$X_CFLAGS$ac_delim
45253 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45254 X_LIBS!$X_LIBS$ac_delim
45255 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45256 LIBOBJS!$LIBOBJS$ac_delim
45257 CAP_LIBS!$CAP_LIBS$ac_delim
45258 FDLIBS!$FDLIBS$ac_delim
45259 DEBUG!$DEBUG$ac_delim
45260 DINCLUDE!$DINCLUDE$ac_delim
45261 DLIB!$DLIB$ac_delim
45262 DB_LIBS!$DB_LIBS$ac_delim
45263 WCFLAGS!$WCFLAGS$ac_delim
45264 WLDFLAGS!$WLDFLAGS$ac_delim
45265 WRAPLIBS!$WRAPLIBS$ac_delim
45266 OBJLIST!$OBJLIST$ac_delim
45267 TAPEDRIVE!$TAPEDRIVE$ac_delim
45268 PSCMD!$PSCMD$ac_delim
45269 WIN32!$WIN32$ac_delim
45270 MACOSX!$MACOSX$ac_delim
45271 DISTNAME!$DISTNAME$ac_delim
45272 DISTVER!$DISTVER$ac_delim
45273 LTLIBOBJS!$LTLIBOBJS$ac_delim
45274 _ACEOF
45275
45276   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
45277     break
45278   elif $ac_last_try; then
45279     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45280 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45281    { (exit 1); exit 1; }; }
45282   else
45283     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45284   fi
45285 done
45286
45287 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45288 if test -n "$ac_eof"; then
45289   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45290   ac_eof=`expr $ac_eof + 1`
45291 fi
45292
45293 cat >>$CONFIG_STATUS <<_ACEOF
45294 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45295 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45296 _ACEOF
45297 sed '
45298 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45299 s/^/s,@/; s/!/@,|#_!!_#|/
45300 :n
45301 t n
45302 s/'"$ac_delim"'$/,g/; t
45303 s/$/\\/; p
45304 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45305 ' >>$CONFIG_STATUS <conf$$subs.sed
45306 rm -f conf$$subs.sed
45307 cat >>$CONFIG_STATUS <<_ACEOF
45308 :end
45309 s/|#_!!_#|//g
45310 CEOF$ac_eof
45311 _ACEOF
45312
45313
45314 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45315 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45316 # trailing colons and then remove the whole line if VPATH becomes empty
45317 # (actually we leave an empty line to preserve line numbers).
45318 if test "x$srcdir" = x.; then
45319   ac_vpsub='/^[  ]*VPATH[        ]*=/{
45320 s/:*\$(srcdir):*/:/
45321 s/:*\${srcdir}:*/:/
45322 s/:*@srcdir@:*/:/
45323 s/^\([^=]*=[     ]*\):*/\1/
45324 s/:*$//
45325 s/^[^=]*=[       ]*$//
45326 }'
45327 fi
45328
45329 cat >>$CONFIG_STATUS <<\_ACEOF
45330 fi # test -n "$CONFIG_FILES"
45331
45332
45333 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
45334 do
45335   case $ac_tag in
45336   :[FHLC]) ac_mode=$ac_tag; continue;;
45337   esac
45338   case $ac_mode$ac_tag in
45339   :[FHL]*:*);;
45340   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45341 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45342    { (exit 1); exit 1; }; };;
45343   :[FH]-) ac_tag=-:-;;
45344   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45345   esac
45346   ac_save_IFS=$IFS
45347   IFS=:
45348   set x $ac_tag
45349   IFS=$ac_save_IFS
45350   shift
45351   ac_file=$1
45352   shift
45353
45354   case $ac_mode in
45355   :L) ac_source=$1;;
45356   :[FH])
45357     ac_file_inputs=
45358     for ac_f
45359     do
45360       case $ac_f in
45361       -) ac_f="$tmp/stdin";;
45362       *) # Look for the file first in the build tree, then in the source tree
45363          # (if the path is not absolute).  The absolute path cannot be DOS-style,
45364          # because $ac_f cannot contain `:'.
45365          test -f "$ac_f" ||
45366            case $ac_f in
45367            [\\/$]*) false;;
45368            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45369            esac ||
45370            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45371 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45372    { (exit 1); exit 1; }; };;
45373       esac
45374       ac_file_inputs="$ac_file_inputs $ac_f"
45375     done
45376
45377     # Let's still pretend it is `configure' which instantiates (i.e., don't
45378     # use $as_me), people would be surprised to read:
45379     #    /* config.h.  Generated by config.status.  */
45380     configure_input="Generated from "`IFS=:
45381           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45382     if test x"$ac_file" != x-; then
45383       configure_input="$ac_file.  $configure_input"
45384       { echo "$as_me:$LINENO: creating $ac_file" >&5
45385 echo "$as_me: creating $ac_file" >&6;}
45386     fi
45387
45388     case $ac_tag in
45389     *:-:* | *:-) cat >"$tmp/stdin";;
45390     esac
45391     ;;
45392   esac
45393
45394   ac_dir=`$as_dirname -- "$ac_file" ||
45395 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45396          X"$ac_file" : 'X\(//\)[^/]' \| \
45397          X"$ac_file" : 'X\(//\)$' \| \
45398          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45399 echo X"$ac_file" |
45400     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45401             s//\1/
45402             q
45403           }
45404           /^X\(\/\/\)[^/].*/{
45405             s//\1/
45406             q
45407           }
45408           /^X\(\/\/\)$/{
45409             s//\1/
45410             q
45411           }
45412           /^X\(\/\).*/{
45413             s//\1/
45414             q
45415           }
45416           s/.*/./; q'`
45417   { as_dir="$ac_dir"
45418   case $as_dir in #(
45419   -*) as_dir=./$as_dir;;
45420   esac
45421   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45422     as_dirs=
45423     while :; do
45424       case $as_dir in #(
45425       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45426       *) as_qdir=$as_dir;;
45427       esac
45428       as_dirs="'$as_qdir' $as_dirs"
45429       as_dir=`$as_dirname -- "$as_dir" ||
45430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45431          X"$as_dir" : 'X\(//\)[^/]' \| \
45432          X"$as_dir" : 'X\(//\)$' \| \
45433          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45434 echo X"$as_dir" |
45435     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45436             s//\1/
45437             q
45438           }
45439           /^X\(\/\/\)[^/].*/{
45440             s//\1/
45441             q
45442           }
45443           /^X\(\/\/\)$/{
45444             s//\1/
45445             q
45446           }
45447           /^X\(\/\).*/{
45448             s//\1/
45449             q
45450           }
45451           s/.*/./; q'`
45452       test -d "$as_dir" && break
45453     done
45454     test -z "$as_dirs" || eval "mkdir $as_dirs"
45455   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45456 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45457    { (exit 1); exit 1; }; }; }
45458   ac_builddir=.
45459
45460 case "$ac_dir" in
45461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45462 *)
45463   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45464   # A ".." for each directory in $ac_dir_suffix.
45465   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45466   case $ac_top_builddir_sub in
45467   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45468   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45469   esac ;;
45470 esac
45471 ac_abs_top_builddir=$ac_pwd
45472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45473 # for backward compatibility:
45474 ac_top_builddir=$ac_top_build_prefix
45475
45476 case $srcdir in
45477   .)  # We are building in place.
45478     ac_srcdir=.
45479     ac_top_srcdir=$ac_top_builddir_sub
45480     ac_abs_top_srcdir=$ac_pwd ;;
45481   [\\/]* | ?:[\\/]* )  # Absolute name.
45482     ac_srcdir=$srcdir$ac_dir_suffix;
45483     ac_top_srcdir=$srcdir
45484     ac_abs_top_srcdir=$srcdir ;;
45485   *) # Relative name.
45486     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45487     ac_top_srcdir=$ac_top_build_prefix$srcdir
45488     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45489 esac
45490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45491
45492
45493   case $ac_mode in
45494   :F)
45495   #
45496   # CONFIG_FILE
45497   #
45498
45499   case $INSTALL in
45500   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45501   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45502   esac
45503 _ACEOF
45504
45505 cat >>$CONFIG_STATUS <<\_ACEOF
45506 # If the template does not know about datarootdir, expand it.
45507 # FIXME: This hack should be removed a few years after 2.60.
45508 ac_datarootdir_hack=; ac_datarootdir_seen=
45509
45510 case `sed -n '/datarootdir/ {
45511   p
45512   q
45513 }
45514 /@datadir@/p
45515 /@docdir@/p
45516 /@infodir@/p
45517 /@localedir@/p
45518 /@mandir@/p
45519 ' $ac_file_inputs` in
45520 *datarootdir*) ac_datarootdir_seen=yes;;
45521 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45522   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45523 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45524 _ACEOF
45525 cat >>$CONFIG_STATUS <<_ACEOF
45526   ac_datarootdir_hack='
45527   s&@datadir@&$datadir&g
45528   s&@docdir@&$docdir&g
45529   s&@infodir@&$infodir&g
45530   s&@localedir@&$localedir&g
45531   s&@mandir@&$mandir&g
45532     s&\\\${datarootdir}&$datarootdir&g' ;;
45533 esac
45534 _ACEOF
45535
45536 # Neutralize VPATH when `$srcdir' = `.'.
45537 # Shell code in configure.ac might set extrasub.
45538 # FIXME: do we really want to maintain this feature?
45539 cat >>$CONFIG_STATUS <<_ACEOF
45540   sed "$ac_vpsub
45541 $extrasub
45542 _ACEOF
45543 cat >>$CONFIG_STATUS <<\_ACEOF
45544 :t
45545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45546 s&@configure_input@&$configure_input&;t t
45547 s&@top_builddir@&$ac_top_builddir_sub&;t t
45548 s&@srcdir@&$ac_srcdir&;t t
45549 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45550 s&@top_srcdir@&$ac_top_srcdir&;t t
45551 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45552 s&@builddir@&$ac_builddir&;t t
45553 s&@abs_builddir@&$ac_abs_builddir&;t t
45554 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45555 s&@INSTALL@&$ac_INSTALL&;t t
45556 $ac_datarootdir_hack
45557 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
45558
45559 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45560   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45561   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45562   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45563 which seems to be undefined.  Please make sure it is defined." >&5
45564 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45565 which seems to be undefined.  Please make sure it is defined." >&2;}
45566
45567   rm -f "$tmp/stdin"
45568   case $ac_file in
45569   -) cat "$tmp/out"; rm -f "$tmp/out";;
45570   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45571   esac
45572  ;;
45573   :H)
45574   #
45575   # CONFIG_HEADER
45576   #
45577 _ACEOF
45578
45579 # Transform confdefs.h into a sed script `conftest.defines', that
45580 # substitutes the proper values into config.h.in to produce config.h.
45581 rm -f conftest.defines conftest.tail
45582 # First, append a space to every undef/define line, to ease matching.
45583 echo 's/$/ /' >conftest.defines
45584 # Then, protect against being on the right side of a sed subst, or in
45585 # an unquoted here document, in config.status.  If some macros were
45586 # called several times there might be several #defines for the same
45587 # symbol, which is useless.  But do not sort them, since the last
45588 # AC_DEFINE must be honored.
45589 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45590 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45591 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45592 # PARAMS is the parameter list in the macro definition--in most cases, it's
45593 # just an empty string.
45594 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
45595 ac_dB='\\)[      (].*,\\1define\\2'
45596 ac_dC=' '
45597 ac_dD=' ,'
45598
45599 uniq confdefs.h |
45600   sed -n '
45601         t rset
45602         :rset
45603         s/^[     ]*#[    ]*define[       ][      ]*//
45604         t ok
45605         d
45606         :ok
45607         s/[\\&,]/\\&/g
45608         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45609         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45610   ' >>conftest.defines
45611
45612 # Remove the space that was appended to ease matching.
45613 # Then replace #undef with comments.  This is necessary, for
45614 # example, in the case of _POSIX_SOURCE, which is predefined and required
45615 # on some systems where configure will not decide to define it.
45616 # (The regexp can be short, since the line contains either #define or #undef.)
45617 echo 's/ $//
45618 s,^[     #]*u.*,/* & */,' >>conftest.defines
45619
45620 # Break up conftest.defines:
45621 ac_max_sed_lines=50
45622
45623 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45624 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45625 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45626 # et cetera.
45627 ac_in='$ac_file_inputs'
45628 ac_out='"$tmp/out1"'
45629 ac_nxt='"$tmp/out2"'
45630
45631 while :
45632 do
45633   # Write a here document:
45634     cat >>$CONFIG_STATUS <<_ACEOF
45635     # First, check the format of the line:
45636     cat >"\$tmp/defines.sed" <<\\CEOF
45637 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
45638 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
45639 b
45640 :def
45641 _ACEOF
45642   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
45643   echo 'CEOF
45644     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
45645   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
45646   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
45647   grep . conftest.tail >/dev/null || break
45648   rm -f conftest.defines
45649   mv conftest.tail conftest.defines
45650 done
45651 rm -f conftest.defines conftest.tail
45652
45653 echo "ac_result=$ac_in" >>$CONFIG_STATUS
45654 cat >>$CONFIG_STATUS <<\_ACEOF
45655   if test x"$ac_file" != x-; then
45656     echo "/* $configure_input  */" >"$tmp/config.h"
45657     cat "$ac_result" >>"$tmp/config.h"
45658     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
45659       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45660 echo "$as_me: $ac_file is unchanged" >&6;}
45661     else
45662       rm -f $ac_file
45663       mv "$tmp/config.h" $ac_file
45664     fi
45665   else
45666     echo "/* $configure_input  */"
45667     cat "$ac_result"
45668   fi
45669   rm -f "$tmp/out12"
45670  ;;
45671
45672   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45673 echo "$as_me: executing $ac_file commands" >&6;}
45674  ;;
45675   esac
45676
45677
45678   case $ac_file$ac_mode in
45679     "libtool":C)
45680
45681     # See if we are running on zsh, and set the options which allow our
45682     # commands through without removal of \ escapes.
45683     if test -n "${ZSH_VERSION+set}" ; then
45684       setopt NO_GLOB_SUBST
45685     fi
45686
45687     cfgfile="${ofile}T"
45688     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
45689     $RM "$cfgfile"
45690
45691     cat <<_LT_EOF >> "$cfgfile"
45692 #! $SHELL
45693
45694 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
45695 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
45696 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
45697 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
45698 #
45699 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
45700 #                 2006, 2007, 2008 Free Software Foundation, Inc.
45701 #   Written by Gordon Matzigkeit, 1996
45702 #
45703 #   This file is part of GNU Libtool.
45704 #
45705 # GNU Libtool is free software; you can redistribute it and/or
45706 # modify it under the terms of the GNU General Public License as
45707 # published by the Free Software Foundation; either version 2 of
45708 # the License, or (at your option) any later version.
45709 #
45710 # As a special exception to the GNU General Public License,
45711 # if you distribute this file as part of a program or library that
45712 # is built using GNU Libtool, you may include this file under the
45713 # same distribution terms that you use for the rest of that program.
45714 #
45715 # GNU Libtool is distributed in the hope that it will be useful,
45716 # but WITHOUT ANY WARRANTY; without even the implied warranty of
45717 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
45718 # GNU General Public License for more details.
45719 #
45720 # You should have received a copy of the GNU General Public License
45721 # along with GNU Libtool; see the file COPYING.  If not, a copy
45722 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
45723 # obtained by writing to the Free Software Foundation, Inc.,
45724 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
45725
45726
45727 # The names of the tagged configurations supported by this script.
45728 available_tags="CXX "
45729
45730 # ### BEGIN LIBTOOL CONFIG
45731
45732 # Which release of libtool.m4 was used?
45733 macro_version=$macro_version
45734 macro_revision=$macro_revision
45735
45736 # Whether or not to build shared libraries.
45737 build_libtool_libs=$enable_shared
45738
45739 # Whether or not to build static libraries.
45740 build_old_libs=$enable_static
45741
45742 # What type of objects to build.
45743 pic_mode=$pic_mode
45744
45745 # Whether or not to optimize for fast installation.
45746 fast_install=$enable_fast_install
45747
45748 # The host system.
45749 host_alias=$host_alias
45750 host=$host
45751 host_os=$host_os
45752
45753 # The build system.
45754 build_alias=$build_alias
45755 build=$build
45756 build_os=$build_os
45757
45758 # A sed program that does not truncate output.
45759 SED=$lt_SED
45760
45761 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
45762 Xsed="\$SED -e 1s/^X//"
45763
45764 # A grep program that handles long lines.
45765 GREP=$lt_GREP
45766
45767 # An ERE matcher.
45768 EGREP=$lt_EGREP
45769
45770 # A literal string matcher.
45771 FGREP=$lt_FGREP
45772
45773 # A BSD- or MS-compatible name lister.
45774 NM=$lt_NM
45775
45776 # Whether we need soft or hard links.
45777 LN_S=$lt_LN_S
45778
45779 # What is the maximum length of a command?
45780 max_cmd_len=$max_cmd_len
45781
45782 # Object file suffix (normally "o").
45783 objext=$ac_objext
45784
45785 # Executable file suffix (normally "").
45786 exeext=$exeext
45787
45788 # whether the shell understands "unset".
45789 lt_unset=$lt_unset
45790
45791 # turn spaces into newlines.
45792 SP2NL=$lt_lt_SP2NL
45793
45794 # turn newlines into spaces.
45795 NL2SP=$lt_lt_NL2SP
45796
45797 # How to create reloadable object files.
45798 reload_flag=$lt_reload_flag
45799 reload_cmds=$lt_reload_cmds
45800
45801 # An object symbol dumper.
45802 OBJDUMP=$lt_OBJDUMP
45803
45804 # Method to check whether dependent libraries are shared objects.
45805 deplibs_check_method=$lt_deplibs_check_method
45806
45807 # Command to use when deplibs_check_method == "file_magic".
45808 file_magic_cmd=$lt_file_magic_cmd
45809
45810 # The archiver.
45811 AR=$lt_AR
45812 AR_FLAGS=$lt_AR_FLAGS
45813
45814 # A symbol stripping program.
45815 STRIP=$lt_STRIP
45816
45817 # Commands used to install an old-style archive.
45818 RANLIB=$lt_RANLIB
45819 old_postinstall_cmds=$lt_old_postinstall_cmds
45820 old_postuninstall_cmds=$lt_old_postuninstall_cmds
45821
45822 # A C compiler.
45823 LTCC=$lt_CC
45824
45825 # LTCC compiler flags.
45826 LTCFLAGS=$lt_CFLAGS
45827
45828 # Take the output of nm and produce a listing of raw symbols and C names.
45829 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
45830
45831 # Transform the output of nm in a proper C declaration.
45832 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
45833
45834 # Transform the output of nm in a C name address pair.
45835 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
45836
45837 # Transform the output of nm in a C name address pair when lib prefix is needed.
45838 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
45839
45840 # The name of the directory that contains temporary libtool files.
45841 objdir=$objdir
45842
45843 # Shell to use when invoking shell scripts.
45844 SHELL=$lt_SHELL
45845
45846 # An echo program that does not interpret backslashes.
45847 ECHO=$lt_ECHO
45848
45849 # Used to examine libraries when file_magic_cmd begins with "file".
45850 MAGIC_CMD=$MAGIC_CMD
45851
45852 # Must we lock files when doing compilation?
45853 need_locks=$lt_need_locks
45854
45855 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
45856 DSYMUTIL=$lt_DSYMUTIL
45857
45858 # Tool to change global to local symbols on Mac OS X.
45859 NMEDIT=$lt_NMEDIT
45860
45861 # Tool to manipulate fat objects and archives on Mac OS X.
45862 LIPO=$lt_LIPO
45863
45864 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
45865 OTOOL=$lt_OTOOL
45866
45867 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
45868 OTOOL64=$lt_OTOOL64
45869
45870 # Old archive suffix (normally "a").
45871 libext=$libext
45872
45873 # Shared library suffix (normally ".so").
45874 shrext_cmds=$lt_shrext_cmds
45875
45876 # The commands to extract the exported symbol list from a shared archive.
45877 extract_expsyms_cmds=$lt_extract_expsyms_cmds
45878
45879 # Variables whose values should be saved in libtool wrapper scripts and
45880 # restored at link time.
45881 variables_saved_for_relink=$lt_variables_saved_for_relink
45882
45883 # Do we need the "lib" prefix for modules?
45884 need_lib_prefix=$need_lib_prefix
45885
45886 # Do we need a version for libraries?
45887 need_version=$need_version
45888
45889 # Library versioning type.
45890 version_type=$version_type
45891
45892 # Shared library runtime path variable.
45893 runpath_var=$runpath_var
45894
45895 # Shared library path variable.
45896 shlibpath_var=$shlibpath_var
45897
45898 # Is shlibpath searched before the hard-coded library search path?
45899 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
45900
45901 # Format of library name prefix.
45902 libname_spec=$lt_libname_spec
45903
45904 # List of archive names.  First name is the real one, the rest are links.
45905 # The last name is the one that the linker finds with -lNAME
45906 library_names_spec=$lt_library_names_spec
45907
45908 # The coded name of the library, if different from the real name.
45909 soname_spec=$lt_soname_spec
45910
45911 # Command to use after installation of a shared archive.
45912 postinstall_cmds=$lt_postinstall_cmds
45913
45914 # Command to use after uninstallation of a shared archive.
45915 postuninstall_cmds=$lt_postuninstall_cmds
45916
45917 # Commands used to finish a libtool library installation in a directory.
45918 finish_cmds=$lt_finish_cmds
45919
45920 # As "finish_cmds", except a single script fragment to be evaled but
45921 # not shown.
45922 finish_eval=$lt_finish_eval
45923
45924 # Whether we should hardcode library paths into libraries.
45925 hardcode_into_libs=$hardcode_into_libs
45926
45927 # Compile-time system search path for libraries.
45928 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
45929
45930 # Run-time system search path for libraries.
45931 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
45932
45933 # Whether dlopen is supported.
45934 dlopen_support=$enable_dlopen
45935
45936 # Whether dlopen of programs is supported.
45937 dlopen_self=$enable_dlopen_self
45938
45939 # Whether dlopen of statically linked programs is supported.
45940 dlopen_self_static=$enable_dlopen_self_static
45941
45942 # Commands to strip libraries.
45943 old_striplib=$lt_old_striplib
45944 striplib=$lt_striplib
45945
45946
45947 # The linker used to build libraries.
45948 LD=$lt_LD
45949
45950 # Commands used to build an old-style archive.
45951 old_archive_cmds=$lt_old_archive_cmds
45952
45953 # A language specific compiler.
45954 CC=$lt_compiler
45955
45956 # Is the compiler the GNU compiler?
45957 with_gcc=$GCC
45958
45959 # Compiler flag to turn off builtin functions.
45960 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
45961
45962 # How to pass a linker flag through the compiler.
45963 wl=$lt_lt_prog_compiler_wl
45964
45965 # Additional compiler flags for building library objects.
45966 pic_flag=$lt_lt_prog_compiler_pic
45967
45968 # Compiler flag to prevent dynamic linking.
45969 link_static_flag=$lt_lt_prog_compiler_static
45970
45971 # Does compiler simultaneously support -c and -o options?
45972 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45973
45974 # Whether or not to add -lc for building shared libraries.
45975 build_libtool_need_lc=$archive_cmds_need_lc
45976
45977 # Whether or not to disallow shared libs when runtime libs are static.
45978 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
45979
45980 # Compiler flag to allow reflexive dlopens.
45981 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
45982
45983 # Compiler flag to generate shared objects directly from archives.
45984 whole_archive_flag_spec=$lt_whole_archive_flag_spec
45985
45986 # Whether the compiler copes with passing no objects directly.
45987 compiler_needs_object=$lt_compiler_needs_object
45988
45989 # Create an old-style archive from a shared archive.
45990 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
45991
45992 # Create a temporary old-style archive to link instead of a shared archive.
45993 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
45994
45995 # Commands used to build a shared archive.
45996 archive_cmds=$lt_archive_cmds
45997 archive_expsym_cmds=$lt_archive_expsym_cmds
45998
45999 # Commands used to build a loadable module if different from building
46000 # a shared archive.
46001 module_cmds=$lt_module_cmds
46002 module_expsym_cmds=$lt_module_expsym_cmds
46003
46004 # Whether we are building with GNU ld or not.
46005 with_gnu_ld=$lt_with_gnu_ld
46006
46007 # Flag that allows shared libraries with undefined symbols to be built.
46008 allow_undefined_flag=$lt_allow_undefined_flag
46009
46010 # Flag that enforces no undefined symbols.
46011 no_undefined_flag=$lt_no_undefined_flag
46012
46013 # Flag to hardcode \$libdir into a binary during linking.
46014 # This must work even if \$libdir does not exist
46015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46016
46017 # If ld is used when linking, flag to hardcode \$libdir into a binary
46018 # during linking.  This must work even if \$libdir does not exist.
46019 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46020
46021 # Whether we need a single "-rpath" flag with a separated argument.
46022 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46023
46024 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46025 # DIR into the resulting binary.
46026 hardcode_direct=$hardcode_direct
46027
46028 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46029 # DIR into the resulting binary and the resulting library dependency is
46030 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46031 # library is relocated.
46032 hardcode_direct_absolute=$hardcode_direct_absolute
46033
46034 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46035 # into the resulting binary.
46036 hardcode_minus_L=$hardcode_minus_L
46037
46038 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46039 # into the resulting binary.
46040 hardcode_shlibpath_var=$hardcode_shlibpath_var
46041
46042 # Set to "yes" if building a shared library automatically hardcodes DIR
46043 # into the library and all subsequent libraries and executables linked
46044 # against it.
46045 hardcode_automatic=$hardcode_automatic
46046
46047 # Set to yes if linker adds runtime paths of dependent libraries
46048 # to runtime path list.
46049 inherit_rpath=$inherit_rpath
46050
46051 # Whether libtool must link a program against all its dependency libraries.
46052 link_all_deplibs=$link_all_deplibs
46053
46054 # Fix the shell variable \$srcfile for the compiler.
46055 fix_srcfile_path=$lt_fix_srcfile_path
46056
46057 # Set to "yes" if exported symbols are required.
46058 always_export_symbols=$always_export_symbols
46059
46060 # The commands to list exported symbols.
46061 export_symbols_cmds=$lt_export_symbols_cmds
46062
46063 # Symbols that should not be listed in the preloaded symbols.
46064 exclude_expsyms=$lt_exclude_expsyms
46065
46066 # Symbols that must always be exported.
46067 include_expsyms=$lt_include_expsyms
46068
46069 # Commands necessary for linking programs (against libraries) with templates.
46070 prelink_cmds=$lt_prelink_cmds
46071
46072 # Specify filename containing input files.
46073 file_list_spec=$lt_file_list_spec
46074
46075 # How to hardcode a shared library path into an executable.
46076 hardcode_action=$hardcode_action
46077
46078 # The directories searched by this compiler when creating a shared library.
46079 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46080
46081 # Dependencies to place before and after the objects being linked to
46082 # create a shared library.
46083 predep_objects=$lt_predep_objects
46084 postdep_objects=$lt_postdep_objects
46085 predeps=$lt_predeps
46086 postdeps=$lt_postdeps
46087
46088 # The library search path used internally by the compiler when linking
46089 # a shared library.
46090 compiler_lib_search_path=$lt_compiler_lib_search_path
46091
46092 # ### END LIBTOOL CONFIG
46093
46094 _LT_EOF
46095
46096   case $host_os in
46097   aix3*)
46098     cat <<\_LT_EOF >> "$cfgfile"
46099 # AIX sometimes has problems with the GCC collect2 program.  For some
46100 # reason, if we set the COLLECT_NAMES environment variable, the problems
46101 # vanish in a puff of smoke.
46102 if test "X${COLLECT_NAMES+set}" != Xset; then
46103   COLLECT_NAMES=
46104   export COLLECT_NAMES
46105 fi
46106 _LT_EOF
46107     ;;
46108   esac
46109
46110
46111 ltmain="$ac_aux_dir/ltmain.sh"
46112
46113
46114   # We use sed instead of cat because bash on DJGPP gets confused if
46115   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
46116   # text mode, it properly converts lines to CR/LF.  This bash problem
46117   # is reportedly fixed, but why not run on old versions too?
46118   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46119     || (rm -f "$cfgfile"; exit 1)
46120
46121   case $xsi_shell in
46122   yes)
46123     cat << \_LT_EOF >> "$cfgfile"
46124
46125 # func_dirname file append nondir_replacement
46126 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46127 # otherwise set result to NONDIR_REPLACEMENT.
46128 func_dirname ()
46129 {
46130   case ${1} in
46131     */*) func_dirname_result="${1%/*}${2}" ;;
46132     *  ) func_dirname_result="${3}" ;;
46133   esac
46134 }
46135
46136 # func_basename file
46137 func_basename ()
46138 {
46139   func_basename_result="${1##*/}"
46140 }
46141
46142 # func_dirname_and_basename file append nondir_replacement
46143 # perform func_basename and func_dirname in a single function
46144 # call:
46145 #   dirname:  Compute the dirname of FILE.  If nonempty,
46146 #             add APPEND to the result, otherwise set result
46147 #             to NONDIR_REPLACEMENT.
46148 #             value returned in "$func_dirname_result"
46149 #   basename: Compute filename of FILE.
46150 #             value retuned in "$func_basename_result"
46151 # Implementation must be kept synchronized with func_dirname
46152 # and func_basename. For efficiency, we do not delegate to
46153 # those functions but instead duplicate the functionality here.
46154 func_dirname_and_basename ()
46155 {
46156   case ${1} in
46157     */*) func_dirname_result="${1%/*}${2}" ;;
46158     *  ) func_dirname_result="${3}" ;;
46159   esac
46160   func_basename_result="${1##*/}"
46161 }
46162
46163 # func_stripname prefix suffix name
46164 # strip PREFIX and SUFFIX off of NAME.
46165 # PREFIX and SUFFIX must not contain globbing or regex special
46166 # characters, hashes, percent signs, but SUFFIX may contain a leading
46167 # dot (in which case that matches only a dot).
46168 func_stripname ()
46169 {
46170   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46171   # positional parameters, so assign one to ordinary parameter first.
46172   func_stripname_result=${3}
46173   func_stripname_result=${func_stripname_result#"${1}"}
46174   func_stripname_result=${func_stripname_result%"${2}"}
46175 }
46176
46177 # func_opt_split
46178 func_opt_split ()
46179 {
46180   func_opt_split_opt=${1%%=*}
46181   func_opt_split_arg=${1#*=}
46182 }
46183
46184 # func_lo2o object
46185 func_lo2o ()
46186 {
46187   case ${1} in
46188     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46189     *)    func_lo2o_result=${1} ;;
46190   esac
46191 }
46192
46193 # func_xform libobj-or-source
46194 func_xform ()
46195 {
46196   func_xform_result=${1%.*}.lo
46197 }
46198
46199 # func_arith arithmetic-term...
46200 func_arith ()
46201 {
46202   func_arith_result=$(( $* ))
46203 }
46204
46205 # func_len string
46206 # STRING may not start with a hyphen.
46207 func_len ()
46208 {
46209   func_len_result=${#1}
46210 }
46211
46212 _LT_EOF
46213     ;;
46214   *) # Bourne compatible functions.
46215     cat << \_LT_EOF >> "$cfgfile"
46216
46217 # func_dirname file append nondir_replacement
46218 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
46219 # otherwise set result to NONDIR_REPLACEMENT.
46220 func_dirname ()
46221 {
46222   # Extract subdirectory from the argument.
46223   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46224   if test "X$func_dirname_result" = "X${1}"; then
46225     func_dirname_result="${3}"
46226   else
46227     func_dirname_result="$func_dirname_result${2}"
46228   fi
46229 }
46230
46231 # func_basename file
46232 func_basename ()
46233 {
46234   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46235 }
46236
46237
46238 # func_stripname prefix suffix name
46239 # strip PREFIX and SUFFIX off of NAME.
46240 # PREFIX and SUFFIX must not contain globbing or regex special
46241 # characters, hashes, percent signs, but SUFFIX may contain a leading
46242 # dot (in which case that matches only a dot).
46243 # func_strip_suffix prefix name
46244 func_stripname ()
46245 {
46246   case ${2} in
46247     .*) func_stripname_result=`$ECHO "X${3}" \
46248            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46249     *)  func_stripname_result=`$ECHO "X${3}" \
46250            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46251   esac
46252 }
46253
46254 # sed scripts:
46255 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46256 my_sed_long_arg='1s/^-[^=]*=//'
46257
46258 # func_opt_split
46259 func_opt_split ()
46260 {
46261   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46262   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46263 }
46264
46265 # func_lo2o object
46266 func_lo2o ()
46267 {
46268   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46269 }
46270
46271 # func_xform libobj-or-source
46272 func_xform ()
46273 {
46274   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46275 }
46276
46277 # func_arith arithmetic-term...
46278 func_arith ()
46279 {
46280   func_arith_result=`expr "$@"`
46281 }
46282
46283 # func_len string
46284 # STRING may not start with a hyphen.
46285 func_len ()
46286 {
46287   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46288 }
46289
46290 _LT_EOF
46291 esac
46292
46293 case $lt_shell_append in
46294   yes)
46295     cat << \_LT_EOF >> "$cfgfile"
46296
46297 # func_append var value
46298 # Append VALUE to the end of shell variable VAR.
46299 func_append ()
46300 {
46301   eval "$1+=\$2"
46302 }
46303 _LT_EOF
46304     ;;
46305   *)
46306     cat << \_LT_EOF >> "$cfgfile"
46307
46308 # func_append var value
46309 # Append VALUE to the end of shell variable VAR.
46310 func_append ()
46311 {
46312   eval "$1=\$$1\$2"
46313 }
46314
46315 _LT_EOF
46316     ;;
46317   esac
46318
46319
46320   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46321     || (rm -f "$cfgfile"; exit 1)
46322
46323   mv -f "$cfgfile" "$ofile" ||
46324     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46325   chmod +x "$ofile"
46326
46327
46328     cat <<_LT_EOF >> "$ofile"
46329
46330 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46331
46332 # The linker used to build libraries.
46333 LD=$lt_LD_CXX
46334
46335 # Commands used to build an old-style archive.
46336 old_archive_cmds=$lt_old_archive_cmds_CXX
46337
46338 # A language specific compiler.
46339 CC=$lt_compiler_CXX
46340
46341 # Is the compiler the GNU compiler?
46342 with_gcc=$GCC_CXX
46343
46344 # Compiler flag to turn off builtin functions.
46345 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46346
46347 # How to pass a linker flag through the compiler.
46348 wl=$lt_lt_prog_compiler_wl_CXX
46349
46350 # Additional compiler flags for building library objects.
46351 pic_flag=$lt_lt_prog_compiler_pic_CXX
46352
46353 # Compiler flag to prevent dynamic linking.
46354 link_static_flag=$lt_lt_prog_compiler_static_CXX
46355
46356 # Does compiler simultaneously support -c and -o options?
46357 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46358
46359 # Whether or not to add -lc for building shared libraries.
46360 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46361
46362 # Whether or not to disallow shared libs when runtime libs are static.
46363 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46364
46365 # Compiler flag to allow reflexive dlopens.
46366 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46367
46368 # Compiler flag to generate shared objects directly from archives.
46369 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46370
46371 # Whether the compiler copes with passing no objects directly.
46372 compiler_needs_object=$lt_compiler_needs_object_CXX
46373
46374 # Create an old-style archive from a shared archive.
46375 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46376
46377 # Create a temporary old-style archive to link instead of a shared archive.
46378 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46379
46380 # Commands used to build a shared archive.
46381 archive_cmds=$lt_archive_cmds_CXX
46382 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46383
46384 # Commands used to build a loadable module if different from building
46385 # a shared archive.
46386 module_cmds=$lt_module_cmds_CXX
46387 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46388
46389 # Whether we are building with GNU ld or not.
46390 with_gnu_ld=$lt_with_gnu_ld_CXX
46391
46392 # Flag that allows shared libraries with undefined symbols to be built.
46393 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46394
46395 # Flag that enforces no undefined symbols.
46396 no_undefined_flag=$lt_no_undefined_flag_CXX
46397
46398 # Flag to hardcode \$libdir into a binary during linking.
46399 # This must work even if \$libdir does not exist
46400 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46401
46402 # If ld is used when linking, flag to hardcode \$libdir into a binary
46403 # during linking.  This must work even if \$libdir does not exist.
46404 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46405
46406 # Whether we need a single "-rpath" flag with a separated argument.
46407 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46408
46409 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46410 # DIR into the resulting binary.
46411 hardcode_direct=$hardcode_direct_CXX
46412
46413 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46414 # DIR into the resulting binary and the resulting library dependency is
46415 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46416 # library is relocated.
46417 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46418
46419 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46420 # into the resulting binary.
46421 hardcode_minus_L=$hardcode_minus_L_CXX
46422
46423 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46424 # into the resulting binary.
46425 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46426
46427 # Set to "yes" if building a shared library automatically hardcodes DIR
46428 # into the library and all subsequent libraries and executables linked
46429 # against it.
46430 hardcode_automatic=$hardcode_automatic_CXX
46431
46432 # Set to yes if linker adds runtime paths of dependent libraries
46433 # to runtime path list.
46434 inherit_rpath=$inherit_rpath_CXX
46435
46436 # Whether libtool must link a program against all its dependency libraries.
46437 link_all_deplibs=$link_all_deplibs_CXX
46438
46439 # Fix the shell variable \$srcfile for the compiler.
46440 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46441
46442 # Set to "yes" if exported symbols are required.
46443 always_export_symbols=$always_export_symbols_CXX
46444
46445 # The commands to list exported symbols.
46446 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46447
46448 # Symbols that should not be listed in the preloaded symbols.
46449 exclude_expsyms=$lt_exclude_expsyms_CXX
46450
46451 # Symbols that must always be exported.
46452 include_expsyms=$lt_include_expsyms_CXX
46453
46454 # Commands necessary for linking programs (against libraries) with templates.
46455 prelink_cmds=$lt_prelink_cmds_CXX
46456
46457 # Specify filename containing input files.
46458 file_list_spec=$lt_file_list_spec_CXX
46459
46460 # How to hardcode a shared library path into an executable.
46461 hardcode_action=$hardcode_action_CXX
46462
46463 # The directories searched by this compiler when creating a shared library.
46464 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46465
46466 # Dependencies to place before and after the objects being linked to
46467 # create a shared library.
46468 predep_objects=$lt_predep_objects_CXX
46469 postdep_objects=$lt_postdep_objects_CXX
46470 predeps=$lt_predeps_CXX
46471 postdeps=$lt_postdeps_CXX
46472
46473 # The library search path used internally by the compiler when linking
46474 # a shared library.
46475 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46476
46477 # ### END LIBTOOL TAG CONFIG: CXX
46478 _LT_EOF
46479
46480  ;;
46481     "default-1":C)
46482     for ac_file in $CONFIG_FILES; do
46483       # Support "outfile[:infile[:infile...]]"
46484       case "$ac_file" in
46485         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46486       esac
46487       # PO directories have a Makefile.in generated from Makefile.in.in.
46488       case "$ac_file" in */Makefile.in)
46489         # Adjust a relative srcdir.
46490         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46491         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46492         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46493         # In autoconf-2.13 it is called $ac_given_srcdir.
46494         # In autoconf-2.50 it is called $srcdir.
46495         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46496         case "$ac_given_srcdir" in
46497           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46498           /*) top_srcdir="$ac_given_srcdir" ;;
46499           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
46500         esac
46501         # Treat a directory as a PO directory if and only if it has a
46502         # POTFILES.in file. This allows packages to have multiple PO
46503         # directories under different names or in different locations.
46504         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46505           rm -f "$ac_dir/POTFILES"
46506           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46507           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46508           POMAKEFILEDEPS="POTFILES.in"
46509           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46510           # on $ac_dir but don't depend on user-specified configuration
46511           # parameters.
46512           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46513             # The LINGUAS file contains the set of available languages.
46514             if test -n "$OBSOLETE_ALL_LINGUAS"; then
46515               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46516             fi
46517             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46518             # Hide the ALL_LINGUAS assigment from automake.
46519             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46520             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46521           else
46522             # The set of available languages was given in configure.in.
46523             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46524           fi
46525           # Compute POFILES
46526           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46527           # Compute UPDATEPOFILES
46528           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46529           # Compute DUMMYPOFILES
46530           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46531           # Compute GMOFILES
46532           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46533           case "$ac_given_srcdir" in
46534             .) srcdirpre= ;;
46535             *) srcdirpre='$(srcdir)/' ;;
46536           esac
46537           POFILES=
46538           UPDATEPOFILES=
46539           DUMMYPOFILES=
46540           GMOFILES=
46541           for lang in $ALL_LINGUAS; do
46542             POFILES="$POFILES $srcdirpre$lang.po"
46543             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46544             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46545             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46546           done
46547           # CATALOGS depends on both $ac_dir and the user's LINGUAS
46548           # environment variable.
46549           INST_LINGUAS=
46550           if test -n "$ALL_LINGUAS"; then
46551             for presentlang in $ALL_LINGUAS; do
46552               useit=no
46553               if test "%UNSET%" != "$LINGUAS"; then
46554                 desiredlanguages="$LINGUAS"
46555               else
46556                 desiredlanguages="$ALL_LINGUAS"
46557               fi
46558               for desiredlang in $desiredlanguages; do
46559                 # Use the presentlang catalog if desiredlang is
46560                 #   a. equal to presentlang, or
46561                 #   b. a variant of presentlang (because in this case,
46562                 #      presentlang can be used as a fallback for messages
46563                 #      which are not translated in the desiredlang catalog).
46564                 case "$desiredlang" in
46565                   "$presentlang"*) useit=yes;;
46566                 esac
46567               done
46568               if test $useit = yes; then
46569                 INST_LINGUAS="$INST_LINGUAS $presentlang"
46570               fi
46571             done
46572           fi
46573           CATALOGS=
46574           if test -n "$INST_LINGUAS"; then
46575             for lang in $INST_LINGUAS; do
46576               CATALOGS="$CATALOGS $lang.gmo"
46577             done
46578           fi
46579           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46580           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"
46581           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46582             if test -f "$f"; then
46583               case "$f" in
46584                 *.orig | *.bak | *~) ;;
46585                 *) cat "$f" >> "$ac_dir/Makefile" ;;
46586               esac
46587             fi
46588           done
46589         fi
46590         ;;
46591       esac
46592     done ;;
46593     "default":C)
46594  ;;
46595
46596   esac
46597 done # for ac_tag
46598
46599
46600 { (exit 0); exit 0; }
46601 _ACEOF
46602 chmod +x $CONFIG_STATUS
46603 ac_clean_files=$ac_clean_files_save
46604
46605
46606 # configure is writing to config.log, and then calls config.status.
46607 # config.status does its own redirection, appending to config.log.
46608 # Unfortunately, on DOS this fails, as config.log is still kept open
46609 # by configure, so config.status won't be able to write to it; its
46610 # output is simply discarded.  So we exec the FD to /dev/null,
46611 # effectively closing config.log, so it can be properly (re)opened and
46612 # appended to by config.status.  When coming back to configure, we
46613 # need to make the FD available again.
46614 if test "$no_create" != yes; then
46615   ac_cs_success=:
46616   ac_config_status_args=
46617   test "$silent" = yes &&
46618     ac_config_status_args="$ac_config_status_args --quiet"
46619   exec 5>/dev/null
46620   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46621   exec 5>>config.log
46622   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46623   # would make configure fail if this is the last instruction.
46624   $ac_cs_success || { (exit 1); exit 1; }
46625 fi
46626
46627
46628 if test "${support_bat}" = "yes" ; then
46629    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
46630       { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
46631 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
46632    { (exit 1); exit 1; }; }
46633    fi
46634
46635    QMAKEBIN="qmake"
46636
46637    if test "x$QMAKEQT4" != "xnone"; then
46638        QMAKEBIN=qmake-qt4
46639    fi
46640
46641    cd src/qt-console
46642    echo "Creating bat Makefile"
46643    touch bat
46644    chmod 755 bat
46645    $QMAKEBIN
46646    ${MAKE:-make} clean
46647    cd ${BUILD_DIR}
46648 fi
46649
46650 if test X"$GCC" = "Xyes" ; then
46651   echo "Doing make of dependencies"
46652   ${MAKE:-make} depend
46653 fi
46654
46655 cd src/qt-console
46656 chmod 755 install_conf_file build-depkgs-qt-console
46657 cd ${BUILD_DIR}
46658
46659 cd scripts
46660 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
46661 chmod 755 dvd-handler dvd-simulator
46662 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
46663 cd ..
46664
46665 c=updatedb
46666 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
46667 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
46668
46669 c=src/cats
46670
46671 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
46672 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
46673
46674 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
46675 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
46676
46677 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
46678 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
46679
46680 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
46681 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
46682
46683 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
46684 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
46685
46686 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
46687 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
46688
46689 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
46690 chmod 755 $c/sqlite
46691 chmod 755 $c/mysql
46692
46693 chmod 755 src/win32/build-depkgs-mingw32
46694
46695 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
46696    largefile_support="yes"
46697 fi
46698
46699 if test X"$GCC" = "Xyes" ; then
46700                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46701    if test "x${CCVERSION}" = "x" ; then
46702       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46703    fi
46704    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46705    if test x"${CXXVERSION}" = x ; then
46706       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46707    fi
46708 fi
46709
46710 # clean up any old junk
46711 echo " "
46712 echo "Cleaning up"
46713 echo " "
46714 ${MAKE:-make} clean
46715
46716 if test "x${db_type}" = "xInternal" ; then
46717    echo " "
46718    echo " "
46719    echo "You have not specified either --enable-client-only or one of the"
46720    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
46721    echo "  This is not permitted. Please reconfigure."
46722    echo " "
46723    echo "Aborting the configuration ..."
46724    echo " "
46725    echo " "
46726    exit 1
46727 fi
46728
46729 echo "
46730 Configuration on `date`:
46731
46732    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
46733    Bacula version:          ${BACULA} ${VERSION} (${DATE})
46734    Source code location:    ${srcdir}
46735    Install binaries:        ${sbindir}
46736    Install libraries:       ${libdir}
46737    Install config files:    ${sysconfdir}
46738    Scripts directory:       ${scriptdir}
46739    Archive directory:       ${archivedir}
46740    Working directory:       ${working_dir}
46741    PID directory:           ${piddir}
46742    Subsys directory:        ${subsysdir}
46743    Man directory:           ${mandir}
46744    Data directory:          ${datarootdir}
46745    Plugin directory:        ${plugindir}
46746    C Compiler:              ${CC} ${CCVERSION}
46747    C++ Compiler:            ${CXX} ${CXXVERSION}
46748    Compiler flags:          ${WCFLAGS} ${CFLAGS}
46749    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
46750    Libraries:               ${LIBS}
46751    Statically Linked Tools: ${support_static_tools}
46752    Statically Linked FD:    ${support_static_fd}
46753    Statically Linked SD:    ${support_static_sd}
46754    Statically Linked DIR:   ${support_static_dir}
46755    Statically Linked CONS:  ${support_static_cons}
46756    Database type:           ${db_type}
46757    Database port:           ${db_port}
46758    Database lib:            ${DB_LIBS}
46759    Database name:           ${db_name}
46760    Database user:           ${db_user}
46761
46762    Job Output Email:        ${job_email}
46763    Traceback Email:         ${dump_email}
46764    SMTP Host Address:       ${smtp_host}
46765
46766    Director Port:           ${dir_port}
46767    File daemon Port:        ${fd_port}
46768    Storage daemon Port:     ${sd_port}
46769
46770    Director User:           ${dir_user}
46771    Director Group:          ${dir_group}
46772    Storage Daemon User:     ${sd_user}
46773    Storage DaemonGroup:     ${sd_group}
46774    File Daemon User:        ${fd_user}
46775    File Daemon Group:       ${fd_group}
46776
46777    SQL binaries Directory   ${SQL_BINDIR}
46778
46779    Large file support:      $largefile_support
46780    Bacula conio support:    ${got_conio} ${CONS_LIBS}
46781    readline support:        ${got_readline} ${PRTREADLINE_SRC}
46782    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
46783    TLS support:             ${support_tls}
46784    Encryption support:      ${support_crypto}
46785    ZLIB support:            ${have_zlib}
46786    enable-smartalloc:       ${support_smartalloc}
46787    enable-lockmgr:          ${support_lockmgr}
46788    bat support:             ${support_bat} ${QWT_LDFLAGS}
46789    enable-gnome:            ${support_gnome} ${gnome_version}
46790    enable-bwx-console:      ${support_wx_console} ${wx_version}
46791    enable-tray-monitor:     ${support_tray_monitor}
46792    client-only:             ${build_client_only}
46793    build-dird:              ${build_dird}
46794    build-stored:            ${build_stored}
46795    ACL support:             ${have_acl}
46796    XATTR support:           ${have_xattr}
46797    Python support:          ${support_python} ${PYTHON_LIBS}
46798    Batch insert enabled:    ${support_batch_insert}
46799
46800   " > config.out
46801
46802 cat config.out