]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Fixed problem in xattr and acl code trying to send empty acl or xattr streams.
[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 GNOME_INCLUDEDIR
950 GNOMEUI_LIBS
951 GNOME_LIBDIR
952 GNOME_LIBS
953 GNOME_DIR
954 BAT_DIR
955 QWT_INC
956 QWT_LDFLAGS
957 QWT_LIB
958 QWT
959 WXCONS_CPPFLAGS
960 WXCONS_LDFLAGS
961 WX_DIR
962 TRAY_MONITOR_CPPFLAGS
963 TRAY_MONITOR_LDFLAGS
964 TRAY_MONITOR_DIR
965 TTOOL_LDFLAGS
966 STATIC_FD
967 STATIC_SD
968 STATIC_DIR
969 STATIC_CONS
970 STATIC_GNOME_CONS
971 STATIC_WX_CONS
972 ALL_DIRS
973 DIRD_DIR
974 DIR_TOOLS
975 STORED_DIR
976 CONS_INC
977 CONS_OBJ
978 CONS_SRC
979 CONS_LIBS
980 CONS_LDFLAGS
981 READLINE_SRC
982 PYTHON_LIBS
983 PYTHON_INCDIR
984 OPENSSL_LIBS
985 OPENSSL_INC
986 working_dir
987 archivedir
988 scriptdir
989 plugindir
990 dump_email
991 job_email
992 smtp_host
993 piddir
994 subsysdir
995 baseport
996 dir_port
997 fd_port
998 sd_port
999 dir_password
1000 fd_password
1001 sd_password
1002 mon_dir_password
1003 mon_fd_password
1004 mon_sd_password
1005 db_name
1006 db_user
1007 db_password
1008 db_port
1009 dir_user
1010 dir_group
1011 sd_user
1012 sd_group
1013 fd_user
1014 fd_group
1015 SBINPERM
1016 SQL_LFLAGS
1017 SQL_INCLUDE
1018 SQL_BINDIR
1019 DBI_DBD_DRIVERDIR
1020 uncomment_dbi
1021 DB_PROG
1022 DB_PROG_LIB
1023 cats
1024 DB_TYPE
1025 GETCONF
1026 XMKMF
1027 X_CFLAGS
1028 X_PRE_LIBS
1029 X_LIBS
1030 X_EXTRA_LIBS
1031 LIBOBJS
1032 FDLIBS
1033 DEBUG
1034 DINCLUDE
1035 DLIB
1036 DB_LIBS
1037 WCFLAGS
1038 WLDFLAGS
1039 WRAPLIBS
1040 OBJLIST
1041 hostname
1042 TAPEDRIVE
1043 PSCMD
1044 WIN32
1045 MACOSX
1046 DISTNAME
1047 DISTVER
1048 LTLIBOBJS'
1049 ac_subst_files='MCOMMON'
1050       ac_precious_vars='build_alias
1051 host_alias
1052 target_alias
1053 CC
1054 CFLAGS
1055 LDFLAGS
1056 LIBS
1057 CPPFLAGS
1058 CXX
1059 CXXFLAGS
1060 CCC
1061 CPP
1062 WXCONFIG
1063 WXFLAGS
1064 CXXCPP
1065 XMKMF'
1066
1067
1068 # Initialize some variables set by options.
1069 ac_init_help=
1070 ac_init_version=false
1071 # The variables have the same names as the options, with
1072 # dashes changed to underlines.
1073 cache_file=/dev/null
1074 exec_prefix=NONE
1075 no_create=
1076 no_recursion=
1077 prefix=NONE
1078 program_prefix=NONE
1079 program_suffix=NONE
1080 program_transform_name=s,x,x,
1081 silent=
1082 site=
1083 srcdir=
1084 verbose=
1085 x_includes=NONE
1086 x_libraries=NONE
1087
1088 # Installation directory options.
1089 # These are left unexpanded so users can "make install exec_prefix=/foo"
1090 # and all the variables that are supposed to be based on exec_prefix
1091 # by default will actually change.
1092 # Use braces instead of parens because sh, perl, etc. also accept them.
1093 # (The list follows the same order as the GNU Coding Standards.)
1094 bindir='${exec_prefix}/bin'
1095 sbindir='${exec_prefix}/sbin'
1096 libexecdir='${exec_prefix}/libexec'
1097 datarootdir='${prefix}/share'
1098 datadir='${datarootdir}'
1099 sysconfdir='${prefix}/etc'
1100 sharedstatedir='${prefix}/com'
1101 localstatedir='${prefix}/var'
1102 includedir='${prefix}/include'
1103 oldincludedir='/usr/include'
1104 docdir='${datarootdir}/doc/${PACKAGE}'
1105 infodir='${datarootdir}/info'
1106 htmldir='${docdir}'
1107 dvidir='${docdir}'
1108 pdfdir='${docdir}'
1109 psdir='${docdir}'
1110 libdir='${exec_prefix}/lib'
1111 localedir='${datarootdir}/locale'
1112 mandir='${datarootdir}/man'
1113
1114 ac_prev=
1115 ac_dashdash=
1116 for ac_option
1117 do
1118   # If the previous option needs an argument, assign it.
1119   if test -n "$ac_prev"; then
1120     eval $ac_prev=\$ac_option
1121     ac_prev=
1122     continue
1123   fi
1124
1125   case $ac_option in
1126   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1127   *)    ac_optarg=yes ;;
1128   esac
1129
1130   # Accept the important Cygnus configure options, so we can diagnose typos.
1131
1132   case $ac_dashdash$ac_option in
1133   --)
1134     ac_dashdash=yes ;;
1135
1136   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1137     ac_prev=bindir ;;
1138   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1139     bindir=$ac_optarg ;;
1140
1141   -build | --build | --buil | --bui | --bu)
1142     ac_prev=build_alias ;;
1143   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1144     build_alias=$ac_optarg ;;
1145
1146   -cache-file | --cache-file | --cache-fil | --cache-fi \
1147   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1148     ac_prev=cache_file ;;
1149   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1150   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1151     cache_file=$ac_optarg ;;
1152
1153   --config-cache | -C)
1154     cache_file=config.cache ;;
1155
1156   -datadir | --datadir | --datadi | --datad)
1157     ac_prev=datadir ;;
1158   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1159     datadir=$ac_optarg ;;
1160
1161   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1162   | --dataroo | --dataro | --datar)
1163     ac_prev=datarootdir ;;
1164   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1165   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1166     datarootdir=$ac_optarg ;;
1167
1168   -disable-* | --disable-*)
1169     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1170     # Reject names that are not valid shell variable names.
1171     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1173    { (exit 1); exit 1; }; }
1174     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1175     eval enable_$ac_feature=no ;;
1176
1177   -docdir | --docdir | --docdi | --doc | --do)
1178     ac_prev=docdir ;;
1179   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1180     docdir=$ac_optarg ;;
1181
1182   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1183     ac_prev=dvidir ;;
1184   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1185     dvidir=$ac_optarg ;;
1186
1187   -enable-* | --enable-*)
1188     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1192    { (exit 1); exit 1; }; }
1193     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1194     eval enable_$ac_feature=\$ac_optarg ;;
1195
1196   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1197   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1198   | --exec | --exe | --ex)
1199     ac_prev=exec_prefix ;;
1200   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1201   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1202   | --exec=* | --exe=* | --ex=*)
1203     exec_prefix=$ac_optarg ;;
1204
1205   -gas | --gas | --ga | --g)
1206     # Obsolete; use --with-gas.
1207     with_gas=yes ;;
1208
1209   -help | --help | --hel | --he | -h)
1210     ac_init_help=long ;;
1211   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1212     ac_init_help=recursive ;;
1213   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1214     ac_init_help=short ;;
1215
1216   -host | --host | --hos | --ho)
1217     ac_prev=host_alias ;;
1218   -host=* | --host=* | --hos=* | --ho=*)
1219     host_alias=$ac_optarg ;;
1220
1221   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1222     ac_prev=htmldir ;;
1223   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1224   | --ht=*)
1225     htmldir=$ac_optarg ;;
1226
1227   -includedir | --includedir | --includedi | --included | --include \
1228   | --includ | --inclu | --incl | --inc)
1229     ac_prev=includedir ;;
1230   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1231   | --includ=* | --inclu=* | --incl=* | --inc=*)
1232     includedir=$ac_optarg ;;
1233
1234   -infodir | --infodir | --infodi | --infod | --info | --inf)
1235     ac_prev=infodir ;;
1236   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1237     infodir=$ac_optarg ;;
1238
1239   -libdir | --libdir | --libdi | --libd)
1240     ac_prev=libdir ;;
1241   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1242     libdir=$ac_optarg ;;
1243
1244   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1245   | --libexe | --libex | --libe)
1246     ac_prev=libexecdir ;;
1247   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1248   | --libexe=* | --libex=* | --libe=*)
1249     libexecdir=$ac_optarg ;;
1250
1251   -localedir | --localedir | --localedi | --localed | --locale)
1252     ac_prev=localedir ;;
1253   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1254     localedir=$ac_optarg ;;
1255
1256   -localstatedir | --localstatedir | --localstatedi | --localstated \
1257   | --localstate | --localstat | --localsta | --localst | --locals)
1258     ac_prev=localstatedir ;;
1259   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1260   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1261     localstatedir=$ac_optarg ;;
1262
1263   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1264     ac_prev=mandir ;;
1265   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1266     mandir=$ac_optarg ;;
1267
1268   -nfp | --nfp | --nf)
1269     # Obsolete; use --without-fp.
1270     with_fp=no ;;
1271
1272   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1273   | --no-cr | --no-c | -n)
1274     no_create=yes ;;
1275
1276   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1277   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1278     no_recursion=yes ;;
1279
1280   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1281   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1282   | --oldin | --oldi | --old | --ol | --o)
1283     ac_prev=oldincludedir ;;
1284   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1285   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1286   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1287     oldincludedir=$ac_optarg ;;
1288
1289   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1290     ac_prev=prefix ;;
1291   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1292     prefix=$ac_optarg ;;
1293
1294   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1295   | --program-pre | --program-pr | --program-p)
1296     ac_prev=program_prefix ;;
1297   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1298   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1299     program_prefix=$ac_optarg ;;
1300
1301   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1302   | --program-suf | --program-su | --program-s)
1303     ac_prev=program_suffix ;;
1304   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1305   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1306     program_suffix=$ac_optarg ;;
1307
1308   -program-transform-name | --program-transform-name \
1309   | --program-transform-nam | --program-transform-na \
1310   | --program-transform-n | --program-transform- \
1311   | --program-transform | --program-transfor \
1312   | --program-transfo | --program-transf \
1313   | --program-trans | --program-tran \
1314   | --progr-tra | --program-tr | --program-t)
1315     ac_prev=program_transform_name ;;
1316   -program-transform-name=* | --program-transform-name=* \
1317   | --program-transform-nam=* | --program-transform-na=* \
1318   | --program-transform-n=* | --program-transform-=* \
1319   | --program-transform=* | --program-transfor=* \
1320   | --program-transfo=* | --program-transf=* \
1321   | --program-trans=* | --program-tran=* \
1322   | --progr-tra=* | --program-tr=* | --program-t=*)
1323     program_transform_name=$ac_optarg ;;
1324
1325   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1326     ac_prev=pdfdir ;;
1327   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1328     pdfdir=$ac_optarg ;;
1329
1330   -psdir | --psdir | --psdi | --psd | --ps)
1331     ac_prev=psdir ;;
1332   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1333     psdir=$ac_optarg ;;
1334
1335   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1336   | -silent | --silent | --silen | --sile | --sil)
1337     silent=yes ;;
1338
1339   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1340     ac_prev=sbindir ;;
1341   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1342   | --sbi=* | --sb=*)
1343     sbindir=$ac_optarg ;;
1344
1345   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1346   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1347   | --sharedst | --shareds | --shared | --share | --shar \
1348   | --sha | --sh)
1349     ac_prev=sharedstatedir ;;
1350   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1351   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1352   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1353   | --sha=* | --sh=*)
1354     sharedstatedir=$ac_optarg ;;
1355
1356   -site | --site | --sit)
1357     ac_prev=site ;;
1358   -site=* | --site=* | --sit=*)
1359     site=$ac_optarg ;;
1360
1361   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1362     ac_prev=srcdir ;;
1363   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1364     srcdir=$ac_optarg ;;
1365
1366   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1367   | --syscon | --sysco | --sysc | --sys | --sy)
1368     ac_prev=sysconfdir ;;
1369   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1370   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1371     sysconfdir=$ac_optarg ;;
1372
1373   -target | --target | --targe | --targ | --tar | --ta | --t)
1374     ac_prev=target_alias ;;
1375   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1376     target_alias=$ac_optarg ;;
1377
1378   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1379     verbose=yes ;;
1380
1381   -version | --version | --versio | --versi | --vers | -V)
1382     ac_init_version=: ;;
1383
1384   -with-* | --with-*)
1385     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1386     # Reject names that are not valid shell variable names.
1387     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388       { echo "$as_me: error: invalid package name: $ac_package" >&2
1389    { (exit 1); exit 1; }; }
1390     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1391     eval with_$ac_package=\$ac_optarg ;;
1392
1393   -without-* | --without-*)
1394     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1395     # Reject names that are not valid shell variable names.
1396     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397       { echo "$as_me: error: invalid package name: $ac_package" >&2
1398    { (exit 1); exit 1; }; }
1399     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1400     eval with_$ac_package=no ;;
1401
1402   --x)
1403     # Obsolete; use --with-x.
1404     with_x=yes ;;
1405
1406   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1407   | --x-incl | --x-inc | --x-in | --x-i)
1408     ac_prev=x_includes ;;
1409   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1410   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1411     x_includes=$ac_optarg ;;
1412
1413   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1414   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1415     ac_prev=x_libraries ;;
1416   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1417   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1418     x_libraries=$ac_optarg ;;
1419
1420   -*) { echo "$as_me: error: unrecognized option: $ac_option
1421 Try \`$0 --help' for more information." >&2
1422    { (exit 1); exit 1; }; }
1423     ;;
1424
1425   *=*)
1426     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1427     # Reject names that are not valid shell variable names.
1428     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1429       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1430    { (exit 1); exit 1; }; }
1431     eval $ac_envvar=\$ac_optarg
1432     export $ac_envvar ;;
1433
1434   *)
1435     # FIXME: should be removed in autoconf 3.0.
1436     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1437     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1438       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1439     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1440     ;;
1441
1442   esac
1443 done
1444
1445 if test -n "$ac_prev"; then
1446   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1447   { echo "$as_me: error: missing argument to $ac_option" >&2
1448    { (exit 1); exit 1; }; }
1449 fi
1450
1451 # Be sure to have absolute directory names.
1452 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1453                 datadir sysconfdir sharedstatedir localstatedir includedir \
1454                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1455                 libdir localedir mandir
1456 do
1457   eval ac_val=\$$ac_var
1458   case $ac_val in
1459     [\\/$]* | ?:[\\/]* )  continue;;
1460     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461   esac
1462   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1463    { (exit 1); exit 1; }; }
1464 done
1465
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1469 build=$build_alias
1470 host=$host_alias
1471 target=$target_alias
1472
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475   if test "x$build_alias" = x; then
1476     cross_compiling=maybe
1477     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1478     If a cross compiler is detected then cross compile mode will be used." >&2
1479   elif test "x$build_alias" != "x$host_alias"; then
1480     cross_compiling=yes
1481   fi
1482 fi
1483
1484 ac_tool_prefix=
1485 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1486
1487 test "$silent" = yes && exec 6>/dev/null
1488
1489
1490 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1491 ac_ls_di=`ls -di .` &&
1492 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1493   { echo "$as_me: error: Working directory cannot be determined" >&2
1494    { (exit 1); exit 1; }; }
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496   { echo "$as_me: error: pwd does not report name of working directory" >&2
1497    { (exit 1); exit 1; }; }
1498
1499
1500 # Find the source files, if location was not specified.
1501 if test -z "$srcdir"; then
1502   ac_srcdir_defaulted=yes
1503   # Try the directory containing this script, then the parent directory.
1504   ac_confdir=`$as_dirname -- "$0" ||
1505 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1506          X"$0" : 'X\(//\)[^/]' \| \
1507          X"$0" : 'X\(//\)$' \| \
1508          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1509 echo X"$0" |
1510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)[^/].*/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\/\)$/{
1519             s//\1/
1520             q
1521           }
1522           /^X\(\/\).*/{
1523             s//\1/
1524             q
1525           }
1526           s/.*/./; q'`
1527   srcdir=$ac_confdir
1528   if test ! -r "$srcdir/$ac_unique_file"; then
1529     srcdir=..
1530   fi
1531 else
1532   ac_srcdir_defaulted=no
1533 fi
1534 if test ! -r "$srcdir/$ac_unique_file"; then
1535   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1536   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1537    { (exit 1); exit 1; }; }
1538 fi
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 ac_abs_confdir=`(
1541         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1542    { (exit 1); exit 1; }; }
1543         pwd)`
1544 # When building in place, set srcdir=.
1545 if test "$ac_abs_confdir" = "$ac_pwd"; then
1546   srcdir=.
1547 fi
1548 # Remove unnecessary trailing slashes from srcdir.
1549 # Double slashes in file names in object file debugging info
1550 # mess up M-x gdb in Emacs.
1551 case $srcdir in
1552 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1553 esac
1554 for ac_var in $ac_precious_vars; do
1555   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1556   eval ac_env_${ac_var}_value=\$${ac_var}
1557   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1558   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1559 done
1560
1561 #
1562 # Report the --help message.
1563 #
1564 if test "$ac_init_help" = "long"; then
1565   # Omit some internal or obsolete options to make the list less imposing.
1566   # This message is too long to be a string in the A/UX 3.1 sh.
1567   cat <<_ACEOF
1568 \`configure' configures this package to adapt to many kinds of systems.
1569
1570 Usage: $0 [OPTION]... [VAR=VALUE]...
1571
1572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1573 VAR=VALUE.  See below for descriptions of some of the useful variables.
1574
1575 Defaults for the options are specified in brackets.
1576
1577 Configuration:
1578   -h, --help              display this help and exit
1579       --help=short        display options specific to this package
1580       --help=recursive    display the short help of all the included packages
1581   -V, --version           display version information and exit
1582   -q, --quiet, --silent   do not print \`checking...' messages
1583       --cache-file=FILE   cache test results in FILE [disabled]
1584   -C, --config-cache      alias for \`--cache-file=config.cache'
1585   -n, --no-create         do not create output files
1586       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1587
1588 Installation directories:
1589   --prefix=PREFIX         install architecture-independent files in PREFIX
1590                           [$ac_default_prefix]
1591   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1592                           [PREFIX]
1593
1594 By default, \`make install' will install all the files in
1595 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1596 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1597 for instance \`--prefix=\$HOME'.
1598
1599 For better control, use the options below.
1600
1601 Fine tuning of the installation directories:
1602   --bindir=DIR           user executables [EPREFIX/bin]
1603   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1604   --libexecdir=DIR       program executables [EPREFIX/libexec]
1605   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1606   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1607   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1608   --libdir=DIR           object code libraries [EPREFIX/lib]
1609   --includedir=DIR       C header files [PREFIX/include]
1610   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1611   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1612   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1613   --infodir=DIR          info documentation [DATAROOTDIR/info]
1614   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1615   --mandir=DIR           man documentation [DATAROOTDIR/man]
1616   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1617   --htmldir=DIR          html documentation [DOCDIR]
1618   --dvidir=DIR           dvi documentation [DOCDIR]
1619   --pdfdir=DIR           pdf documentation [DOCDIR]
1620   --psdir=DIR            ps documentation [DOCDIR]
1621 _ACEOF
1622
1623   cat <<\_ACEOF
1624
1625 X features:
1626   --x-includes=DIR    X include files are in DIR
1627   --x-libraries=DIR   X library files are in DIR
1628
1629 System types:
1630   --build=BUILD     configure for building on BUILD [guessed]
1631   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1632 _ACEOF
1633 fi
1634
1635 if test -n "$ac_init_help"; then
1636
1637   cat <<\_ACEOF
1638
1639 Optional Features:
1640   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1641   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1642   --enable-libtool        enable building using GNU libtool [default=yes]
1643   --enable-shared[=PKGS]  build shared libraries [default=yes]
1644   --enable-static[=PKGS]  build static libraries [default=no]
1645   --enable-fast-install[=PKGS]
1646                           optimize for fast installation [default=yes]
1647   --disable-libtool-lock  avoid locking (might break parallel builds)
1648   --enable-includes       enable installing of include files [default=no]
1649   --disable-nls           do not use Native Language Support
1650   --disable-rpath         do not hardcode runtime library paths
1651   --enable-gnome          enable build of bgnome-console GUI [default=no]
1652   --enable-bat            enable build of bat Qt4 GUI [default=no]
1653   --enable-bwx-console    enable build of wxWidgets console [default=no]
1654   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1655                           KDE [default=no]
1656   --enable-smartalloc     enable smartalloc debugging support [default=no]
1657   --enable-lockmgr        enable lock manager support [default=no]
1658   --enable-static-tools   enable static tape tools [default=no]
1659   --enable-static-fd      enable static File daemon [default=no]
1660   --enable-static-sd      enable static Storage daemon [default=no]
1661   --enable-static-dir     enable static Director [default=no]
1662   --enable-static-cons    enable static Console [default=no]
1663   --enable-client-only    build client (File daemon) only [default=no]
1664   --enable-build-dird     enable building of dird (Director) [default=yes]
1665   --enable-build-stored   enable building of stored (Storage daemon)
1666                           [default=yes]
1667   --disable-conio         disable conio support [default=no]
1668   --enable-ipv6           enable ipv6 support [default=yes]
1669   --disable-readline      disable readline support [default=yes]
1670   --enable-batch-insert   enable the DB batch insert code [default=no]
1671   --disable-largefile     omit support for large files
1672   --disable-acl           disable acl support [default=auto]
1673   --disable-xattr         disable xattr support [default=auto]
1674
1675 Optional Packages:
1676   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1677   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1678   --with-pic              try to use only PIC/non-PIC objects [default=use
1679                           both]
1680   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1681   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1682   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1683   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1684   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1685   --without-libintl-prefix     don't search for libintl in includedir and libdir
1686   --with-included-gettext use the GNU gettext library included here
1687   --with-qwt[=DIR]        specify qwt library directory
1688   --with-readline[=DIR]   specify readline library directory
1689   --with-python[=DIR]     Include Python support. DIR is the Python base
1690                           install directory, default is to search through a
1691                           number of common places for the Python files.
1692   --with-tcp-wrappers[=DIR]
1693                           enable tcpwrappers support
1694   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1695   --with-working-dir=PATH specify path of Bacula working directory
1696   --with-archivedir=PATH  specify path of SD archive directory
1697   --with-scriptdir=PATH   specify path of Bacula scripts directory
1698   --with-plugindir=PATH   specify path of Bacula plugins directory
1699   --with-dump-email=EMAIL dump email address
1700   --with-job-email=EMAIL  job output email address
1701   --with-smtp-host=HOST   SMTP mail host address
1702   --with-pid-dir=PATH     specify location of Bacula pid files
1703   --with-subsys-dir=PATH  specify location of Bacula subsys file
1704   --with-baseport=PORT    specify base port address for daemons
1705   --with-dir-password=PASSWORD
1706                           specify Director's password
1707   --with-fd-password=PASSWORD
1708                           specify Client's password
1709   --with-sd-password=PASSWORD
1710                           specify Storage daemon's password
1711   --with-mon-dir-password=PASSWORD
1712                           specify Director's password used by the monitor
1713   --with-mon-fd-password=PASSWORD
1714                           specify Client's password used by the monitor
1715   --with-mon-sd-password=PASSWORD
1716                           specify Storage daemon's password used by the
1717                           monitor
1718   --with-db-name=DBNAME   specify database name [default=bacula]
1719   --with-db-user=UNAME    specify database user [default=bacula]
1720   --with-db-password=PWD  specify database password [default=*none*]
1721   --with-db-port=DBPORT   specify a database port [default=null]
1722   --with-dir-user=USER    specify user for Director daemon
1723   --with-dir-group=GROUP  specify group for Director daemon
1724   --with-sd-user=USER     specify user for Storage daemon
1725   --with-sd-group=GROUP   specify group for Storage daemon
1726   --with-fd-user=USER     specify user for File daemon
1727   --with-fd-group=GROUP   specify group for File daemon
1728   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1729   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1730                           base install directory, [default=/usr/local/pgsql]
1731   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1732                           directory, default is to search through a number of
1733                           common places for the MySQL files.
1734   --with-embedded-mysql[=DIR]
1735                           Include MySQL support. DIR is the MySQL base install
1736                           directory, default is to search through a number of
1737                           common places for the MySQL files.
1738   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1739                           install directory, default is to search through a
1740                           number of common places for the SQLite3 files.
1741   --with-sqlite[=DIR]     Include SQLite support. DIR is the SQLite base
1742                           install directory, default is to search through a
1743                           number of common places for the SQLite files.
1744   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1745                           directory, default is to search through a number of
1746                           common places for the DBI files.
1747   --with-dbi-driver[=DRIVER]
1748                           Suport for DBI driver. DRIVER is the one DBI driver
1749                           like Mysql, Postgresql, others. Default is to not
1750                           configure any driver.
1751   --with-x                use the X Window System
1752
1753 Some influential environment variables:
1754   CC          C compiler command
1755   CFLAGS      C compiler flags
1756   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1757               nonstandard directory <lib dir>
1758   LIBS        libraries to pass to the linker, e.g. -l<library>
1759   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1760               you have headers in a nonstandard directory <include dir>
1761   CXX         C++ compiler command
1762   CXXFLAGS    C++ compiler flags
1763   CPP         C preprocessor
1764   WXCONFIG    wx-config command. On some systems, you must set it to
1765               wx-config-2.6 to use wxWidgets 2.6.
1766   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1767   CXXCPP      C++ preprocessor
1768   XMKMF       Path to xmkmf, Makefile generator for X Window System
1769
1770 Use these variables to override the choices made by `configure' or to help
1771 it to find libraries and programs with nonstandard names/locations.
1772
1773 _ACEOF
1774 ac_status=$?
1775 fi
1776
1777 if test "$ac_init_help" = "recursive"; then
1778   # If there are subdirs, report their specific --help.
1779   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1780     test -d "$ac_dir" || continue
1781     ac_builddir=.
1782
1783 case "$ac_dir" in
1784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1785 *)
1786   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1787   # A ".." for each directory in $ac_dir_suffix.
1788   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1789   case $ac_top_builddir_sub in
1790   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1791   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1792   esac ;;
1793 esac
1794 ac_abs_top_builddir=$ac_pwd
1795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1796 # for backward compatibility:
1797 ac_top_builddir=$ac_top_build_prefix
1798
1799 case $srcdir in
1800   .)  # We are building in place.
1801     ac_srcdir=.
1802     ac_top_srcdir=$ac_top_builddir_sub
1803     ac_abs_top_srcdir=$ac_pwd ;;
1804   [\\/]* | ?:[\\/]* )  # Absolute name.
1805     ac_srcdir=$srcdir$ac_dir_suffix;
1806     ac_top_srcdir=$srcdir
1807     ac_abs_top_srcdir=$srcdir ;;
1808   *) # Relative name.
1809     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1810     ac_top_srcdir=$ac_top_build_prefix$srcdir
1811     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1812 esac
1813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1814
1815     cd "$ac_dir" || { ac_status=$?; continue; }
1816     # Check for guested configure.
1817     if test -f "$ac_srcdir/configure.gnu"; then
1818       echo &&
1819       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1820     elif test -f "$ac_srcdir/configure"; then
1821       echo &&
1822       $SHELL "$ac_srcdir/configure" --help=recursive
1823     else
1824       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1825     fi || ac_status=$?
1826     cd "$ac_pwd" || { ac_status=$?; break; }
1827   done
1828 fi
1829
1830 test -n "$ac_init_help" && exit $ac_status
1831 if $ac_init_version; then
1832   cat <<\_ACEOF
1833 configure
1834 generated by GNU Autoconf 2.61
1835
1836 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1837 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1838 This configure script is free software; the Free Software Foundation
1839 gives unlimited permission to copy, distribute and modify it.
1840 _ACEOF
1841   exit
1842 fi
1843 cat >config.log <<_ACEOF
1844 This file contains any messages produced by compilers while
1845 running configure, to aid debugging if configure makes a mistake.
1846
1847 It was created by $as_me, which was
1848 generated by GNU Autoconf 2.61.  Invocation command line was
1849
1850   $ $0 $@
1851
1852 _ACEOF
1853 exec 5>>config.log
1854 {
1855 cat <<_ASUNAME
1856 ## --------- ##
1857 ## Platform. ##
1858 ## --------- ##
1859
1860 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1861 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1862 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1863 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1864 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1865
1866 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1867 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1868
1869 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1870 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1871 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1872 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1873 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1874 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1875 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1876
1877 _ASUNAME
1878
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882   IFS=$as_save_IFS
1883   test -z "$as_dir" && as_dir=.
1884   echo "PATH: $as_dir"
1885 done
1886 IFS=$as_save_IFS
1887
1888 } >&5
1889
1890 cat >&5 <<_ACEOF
1891
1892
1893 ## ----------- ##
1894 ## Core tests. ##
1895 ## ----------- ##
1896
1897 _ACEOF
1898
1899
1900 # Keep a trace of the command line.
1901 # Strip out --no-create and --no-recursion so they do not pile up.
1902 # Strip out --silent because we don't want to record it for future runs.
1903 # Also quote any args containing shell meta-characters.
1904 # Make two passes to allow for proper duplicate-argument suppression.
1905 ac_configure_args=
1906 ac_configure_args0=
1907 ac_configure_args1=
1908 ac_must_keep_next=false
1909 for ac_pass in 1 2
1910 do
1911   for ac_arg
1912   do
1913     case $ac_arg in
1914     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1915     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1916     | -silent | --silent | --silen | --sile | --sil)
1917       continue ;;
1918     *\'*)
1919       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1920     esac
1921     case $ac_pass in
1922     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1923     2)
1924       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1925       if test $ac_must_keep_next = true; then
1926         ac_must_keep_next=false # Got value, back to normal.
1927       else
1928         case $ac_arg in
1929           *=* | --config-cache | -C | -disable-* | --disable-* \
1930           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1931           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1932           | -with-* | --with-* | -without-* | --without-* | --x)
1933             case "$ac_configure_args0 " in
1934               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1935             esac
1936             ;;
1937           -* ) ac_must_keep_next=true ;;
1938         esac
1939       fi
1940       ac_configure_args="$ac_configure_args '$ac_arg'"
1941       ;;
1942     esac
1943   done
1944 done
1945 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1946 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1947
1948 # When interrupted or exit'd, cleanup temporary files, and complete
1949 # config.log.  We remove comments because anyway the quotes in there
1950 # would cause problems or look ugly.
1951 # WARNING: Use '\'' to represent an apostrophe within the trap.
1952 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1953 trap 'exit_status=$?
1954   # Save into config.log some information that might help in debugging.
1955   {
1956     echo
1957
1958     cat <<\_ASBOX
1959 ## ---------------- ##
1960 ## Cache variables. ##
1961 ## ---------------- ##
1962 _ASBOX
1963     echo
1964     # The following way of writing the cache mishandles newlines in values,
1965 (
1966   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1967     eval ac_val=\$$ac_var
1968     case $ac_val in #(
1969     *${as_nl}*)
1970       case $ac_var in #(
1971       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1972 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1973       esac
1974       case $ac_var in #(
1975       _ | IFS | as_nl) ;; #(
1976       *) $as_unset $ac_var ;;
1977       esac ;;
1978     esac
1979   done
1980   (set) 2>&1 |
1981     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1982     *${as_nl}ac_space=\ *)
1983       sed -n \
1984         "s/'\''/'\''\\\\'\'''\''/g;
1985           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1986       ;; #(
1987     *)
1988       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1989       ;;
1990     esac |
1991     sort
1992 )
1993     echo
1994
1995     cat <<\_ASBOX
1996 ## ----------------- ##
1997 ## Output variables. ##
1998 ## ----------------- ##
1999 _ASBOX
2000     echo
2001     for ac_var in $ac_subst_vars
2002     do
2003       eval ac_val=\$$ac_var
2004       case $ac_val in
2005       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006       esac
2007       echo "$ac_var='\''$ac_val'\''"
2008     done | sort
2009     echo
2010
2011     if test -n "$ac_subst_files"; then
2012       cat <<\_ASBOX
2013 ## ------------------- ##
2014 ## File substitutions. ##
2015 ## ------------------- ##
2016 _ASBOX
2017       echo
2018       for ac_var in $ac_subst_files
2019       do
2020         eval ac_val=\$$ac_var
2021         case $ac_val in
2022         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2023         esac
2024         echo "$ac_var='\''$ac_val'\''"
2025       done | sort
2026       echo
2027     fi
2028
2029     if test -s confdefs.h; then
2030       cat <<\_ASBOX
2031 ## ----------- ##
2032 ## confdefs.h. ##
2033 ## ----------- ##
2034 _ASBOX
2035       echo
2036       cat confdefs.h
2037       echo
2038     fi
2039     test "$ac_signal" != 0 &&
2040       echo "$as_me: caught signal $ac_signal"
2041     echo "$as_me: exit $exit_status"
2042   } >&5
2043   rm -f core *.core core.conftest.* &&
2044     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2045     exit $exit_status
2046 ' 0
2047 for ac_signal in 1 2 13 15; do
2048   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2049 done
2050 ac_signal=0
2051
2052 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2053 rm -f -r conftest* confdefs.h
2054
2055 # Predefined preprocessor variables.
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_NAME "$PACKAGE_NAME"
2059 _ACEOF
2060
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2064 _ACEOF
2065
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2069 _ACEOF
2070
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_STRING "$PACKAGE_STRING"
2074 _ACEOF
2075
2076
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2079 _ACEOF
2080
2081
2082 # Let the site file select an alternate cache file if it wants to.
2083 # Prefer explicitly selected file to automatically selected ones.
2084 if test -n "$CONFIG_SITE"; then
2085   set x "$CONFIG_SITE"
2086 elif test "x$prefix" != xNONE; then
2087   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2088 else
2089   set x "$ac_default_prefix/share/config.site" \
2090         "$ac_default_prefix/etc/config.site"
2091 fi
2092 shift
2093 for ac_site_file
2094 do
2095   if test -r "$ac_site_file"; then
2096     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2097 echo "$as_me: loading site script $ac_site_file" >&6;}
2098     sed 's/^/| /' "$ac_site_file" >&5
2099     . "$ac_site_file"
2100   fi
2101 done
2102
2103 if test -r "$cache_file"; then
2104   # Some versions of bash will fail to source /dev/null (special
2105   # files actually), so we avoid doing that.
2106   if test -f "$cache_file"; then
2107     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2108 echo "$as_me: loading cache $cache_file" >&6;}
2109     case $cache_file in
2110       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2111       *)                      . "./$cache_file";;
2112     esac
2113   fi
2114 else
2115   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2116 echo "$as_me: creating cache $cache_file" >&6;}
2117   >$cache_file
2118 fi
2119
2120 # Check that the precious variables saved in the cache have kept the same
2121 # value.
2122 ac_cache_corrupted=false
2123 for ac_var in $ac_precious_vars; do
2124   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2125   eval ac_new_set=\$ac_env_${ac_var}_set
2126   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2127   eval ac_new_val=\$ac_env_${ac_var}_value
2128   case $ac_old_set,$ac_new_set in
2129     set,)
2130       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2131 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2132       ac_cache_corrupted=: ;;
2133     ,set)
2134       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2135 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2136       ac_cache_corrupted=: ;;
2137     ,);;
2138     *)
2139       if test "x$ac_old_val" != "x$ac_new_val"; then
2140         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2141 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2142         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2143 echo "$as_me:   former value:  $ac_old_val" >&2;}
2144         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2145 echo "$as_me:   current value: $ac_new_val" >&2;}
2146         ac_cache_corrupted=:
2147       fi;;
2148   esac
2149   # Pass precious variables to config.status.
2150   if test "$ac_new_set" = set; then
2151     case $ac_new_val in
2152     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2153     *) ac_arg=$ac_var=$ac_new_val ;;
2154     esac
2155     case " $ac_configure_args " in
2156       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2157       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2158     esac
2159   fi
2160 done
2161 if $ac_cache_corrupted; then
2162   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2163 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2164   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2165 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2166    { (exit 1); exit 1; }; }
2167 fi
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185 ac_ext=c
2186 ac_cpp='$CPP $CPPFLAGS'
2187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190
2191
2192 BUILD_DIR=`pwd`
2193 cd ..
2194 TOP_DIR=`pwd`
2195 cd ${BUILD_DIR}
2196
2197
2198 ac_aux_dir=
2199 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2200   if test -f "$ac_dir/install-sh"; then
2201     ac_aux_dir=$ac_dir
2202     ac_install_sh="$ac_aux_dir/install-sh -c"
2203     break
2204   elif test -f "$ac_dir/install.sh"; then
2205     ac_aux_dir=$ac_dir
2206     ac_install_sh="$ac_aux_dir/install.sh -c"
2207     break
2208   elif test -f "$ac_dir/shtool"; then
2209     ac_aux_dir=$ac_dir
2210     ac_install_sh="$ac_aux_dir/shtool install -c"
2211     break
2212   fi
2213 done
2214 if test -z "$ac_aux_dir"; then
2215   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2216 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2217    { (exit 1); exit 1; }; }
2218 fi
2219
2220 # These three variables are undocumented and unsupported,
2221 # and are intended to be withdrawn in a future Autoconf release.
2222 # They can cause serious problems if a builder's source tree is in a directory
2223 # whose full name contains unusual characters.
2224 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2225 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2226 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2227
2228
2229 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2230
2231
2232 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2233 WIN32MAINDIR=${BUILD_DIR}
2234 WIN32TOPDIR=${TOP_DIR}
2235
2236
2237
2238
2239
2240
2241
2242 for ac_prog in true
2243 do
2244   # Extract the first word of "$ac_prog", so it can be a program name with args.
2245 set dummy $ac_prog; ac_word=$2
2246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2249   echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251   case $TRUEPRG in
2252   [\\/]* | ?:[\\/]*)
2253   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2254   ;;
2255   *)
2256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259   IFS=$as_save_IFS
2260   test -z "$as_dir" && as_dir=.
2261   for ac_exec_ext in '' $ac_executable_extensions; do
2262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265     break 2
2266   fi
2267 done
2268 done
2269 IFS=$as_save_IFS
2270
2271   ;;
2272 esac
2273 fi
2274 TRUEPRG=$ac_cv_path_TRUEPRG
2275 if test -n "$TRUEPRG"; then
2276   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2277 echo "${ECHO_T}$TRUEPRG" >&6; }
2278 else
2279   { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2281 fi
2282
2283
2284   test -n "$TRUEPRG" && break
2285 done
2286 test -n "$TRUEPRG" || TRUEPRG=":"
2287
2288 for ac_prog in false
2289 do
2290   # Extract the first word of "$ac_prog", so it can be a program name with args.
2291 set dummy $ac_prog; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   case $FALSEPRG in
2298   [\\/]* | ?:[\\/]*)
2299   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2300   ;;
2301   *)
2302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305   IFS=$as_save_IFS
2306   test -z "$as_dir" && as_dir=.
2307   for ac_exec_ext in '' $ac_executable_extensions; do
2308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2309     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311     break 2
2312   fi
2313 done
2314 done
2315 IFS=$as_save_IFS
2316
2317   ;;
2318 esac
2319 fi
2320 FALSEPRG=$ac_cv_path_FALSEPRG
2321 if test -n "$FALSEPRG"; then
2322   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2323 echo "${ECHO_T}$FALSEPRG" >&6; }
2324 else
2325   { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2327 fi
2328
2329
2330   test -n "$FALSEPRG" && break
2331 done
2332 test -n "$FALSEPRG" || FALSEPRG=":"
2333
2334
2335
2336 post_host=
2337 if test "x$BACULA" != x; then
2338    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2339 fi
2340 BACULA=${BACULA:-Bacula}
2341 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2342 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2343 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2344 echo "configuring for ${BACULA} $VERSION ($DATE)"
2345
2346
2347 ac_ext=c
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352 if test -n "$ac_tool_prefix"; then
2353   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_CC+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   if test -n "$CC"; then
2361   ac_cv_prog_CC="$CC" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   for ac_exec_ext in '' $ac_executable_extensions; do
2369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372     break 2
2373   fi
2374 done
2375 done
2376 IFS=$as_save_IFS
2377
2378 fi
2379 fi
2380 CC=$ac_cv_prog_CC
2381 if test -n "$CC"; then
2382   { echo "$as_me:$LINENO: result: $CC" >&5
2383 echo "${ECHO_T}$CC" >&6; }
2384 else
2385   { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2387 fi
2388
2389
2390 fi
2391 if test -z "$ac_cv_prog_CC"; then
2392   ac_ct_CC=$CC
2393   # Extract the first word of "gcc", so it can be a program name with args.
2394 set dummy gcc; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2398   echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400   if test -n "$ac_ct_CC"; then
2401   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408   for ac_exec_ext in '' $ac_executable_extensions; do
2409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410     ac_cv_prog_ac_ct_CC="gcc"
2411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412     break 2
2413   fi
2414 done
2415 done
2416 IFS=$as_save_IFS
2417
2418 fi
2419 fi
2420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2421 if test -n "$ac_ct_CC"; then
2422   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2423 echo "${ECHO_T}$ac_ct_CC" >&6; }
2424 else
2425   { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2427 fi
2428
2429   if test "x$ac_ct_CC" = x; then
2430     CC=""
2431   else
2432     case $cross_compiling:$ac_tool_warned in
2433 yes:)
2434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet.  If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&5
2437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet.  If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2440 ac_tool_warned=yes ;;
2441 esac
2442     CC=$ac_ct_CC
2443   fi
2444 else
2445   CC="$ac_cv_prog_CC"
2446 fi
2447
2448 if test -z "$CC"; then
2449           if test -n "$ac_tool_prefix"; then
2450     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}cc; ac_word=$2
2452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454 if test "${ac_cv_prog_CC+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   if test -n "$CC"; then
2458   ac_cv_prog_CC="$CC" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463   IFS=$as_save_IFS
2464   test -z "$as_dir" && as_dir=.
2465   for ac_exec_ext in '' $ac_executable_extensions; do
2466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467     ac_cv_prog_CC="${ac_tool_prefix}cc"
2468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469     break 2
2470   fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 CC=$ac_cv_prog_CC
2478 if test -n "$CC"; then
2479   { echo "$as_me:$LINENO: result: $CC" >&5
2480 echo "${ECHO_T}$CC" >&6; }
2481 else
2482   { echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6; }
2484 fi
2485
2486
2487   fi
2488 fi
2489 if test -z "$CC"; then
2490   # Extract the first word of "cc", so it can be a program name with args.
2491 set dummy cc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495   echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497   if test -n "$CC"; then
2498   ac_cv_prog_CC="$CC" # Let the user override the test.
2499 else
2500   ac_prog_rejected=no
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504   IFS=$as_save_IFS
2505   test -z "$as_dir" && as_dir=.
2506   for ac_exec_ext in '' $ac_executable_extensions; do
2507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2509        ac_prog_rejected=yes
2510        continue
2511      fi
2512     ac_cv_prog_CC="cc"
2513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514     break 2
2515   fi
2516 done
2517 done
2518 IFS=$as_save_IFS
2519
2520 if test $ac_prog_rejected = yes; then
2521   # We found a bogon in the path, so make sure we never use it.
2522   set dummy $ac_cv_prog_CC
2523   shift
2524   if test $# != 0; then
2525     # We chose a different compiler from the bogus one.
2526     # However, it has the same basename, so the bogon will be chosen
2527     # first if we set CC to just the basename; use the full file name.
2528     shift
2529     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2530   fi
2531 fi
2532 fi
2533 fi
2534 CC=$ac_cv_prog_CC
2535 if test -n "$CC"; then
2536   { echo "$as_me:$LINENO: result: $CC" >&5
2537 echo "${ECHO_T}$CC" >&6; }
2538 else
2539   { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2541 fi
2542
2543
2544 fi
2545 if test -z "$CC"; then
2546   if test -n "$ac_tool_prefix"; then
2547   for ac_prog in cl.exe
2548   do
2549     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_CC+set}" = set; then
2554   echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556   if test -n "$CC"; then
2557   ac_cv_prog_CC="$CC" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564   for ac_exec_ext in '' $ac_executable_extensions; do
2565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568     break 2
2569   fi
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 CC=$ac_cv_prog_CC
2577 if test -n "$CC"; then
2578   { echo "$as_me:$LINENO: result: $CC" >&5
2579 echo "${ECHO_T}$CC" >&6; }
2580 else
2581   { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2583 fi
2584
2585
2586     test -n "$CC" && break
2587   done
2588 fi
2589 if test -z "$CC"; then
2590   ac_ct_CC=$CC
2591   for ac_prog in cl.exe
2592 do
2593   # Extract the first word of "$ac_prog", so it can be a program name with args.
2594 set dummy $ac_prog; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   if test -n "$ac_ct_CC"; then
2601   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606   IFS=$as_save_IFS
2607   test -z "$as_dir" && as_dir=.
2608   for ac_exec_ext in '' $ac_executable_extensions; do
2609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610     ac_cv_prog_ac_ct_CC="$ac_prog"
2611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612     break 2
2613   fi
2614 done
2615 done
2616 IFS=$as_save_IFS
2617
2618 fi
2619 fi
2620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621 if test -n "$ac_ct_CC"; then
2622   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623 echo "${ECHO_T}$ac_ct_CC" >&6; }
2624 else
2625   { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2627 fi
2628
2629
2630   test -n "$ac_ct_CC" && break
2631 done
2632
2633   if test "x$ac_ct_CC" = x; then
2634     CC=""
2635   else
2636     case $cross_compiling:$ac_tool_warned in
2637 yes:)
2638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2639 whose name does not start with the host triplet.  If you think this
2640 configuration is useful to you, please write to autoconf@gnu.org." >&5
2641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet.  If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2644 ac_tool_warned=yes ;;
2645 esac
2646     CC=$ac_ct_CC
2647   fi
2648 fi
2649
2650 fi
2651
2652
2653 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: no acceptable C compiler found in \$PATH
2656 See \`config.log' for more details." >&2;}
2657    { (exit 1); exit 1; }; }
2658
2659 # Provide some information about the compiler.
2660 echo "$as_me:$LINENO: checking for C compiler version" >&5
2661 ac_compiler=`set X $ac_compile; echo $2`
2662 { (ac_try="$ac_compiler --version >&5"
2663 case "(($ac_try" in
2664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665   *) ac_try_echo=$ac_try;;
2666 esac
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668   (eval "$ac_compiler --version >&5") 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }
2672 { (ac_try="$ac_compiler -v >&5"
2673 case "(($ac_try" in
2674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675   *) ac_try_echo=$ac_try;;
2676 esac
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678   (eval "$ac_compiler -v >&5") 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }
2682 { (ac_try="$ac_compiler -V >&5"
2683 case "(($ac_try" in
2684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685   *) ac_try_echo=$ac_try;;
2686 esac
2687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688   (eval "$ac_compiler -V >&5") 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }
2692
2693 cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h.  */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h.  */
2699
2700 int
2701 main ()
2702 {
2703
2704   ;
2705   return 0;
2706 }
2707 _ACEOF
2708 ac_clean_files_save=$ac_clean_files
2709 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2710 # Try to create an executable without -o first, disregard a.out.
2711 # It will help us diagnose broken compilers, and finding out an intuition
2712 # of exeext.
2713 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2714 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2715 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2716 #
2717 # List of possible output files, starting from the most likely.
2718 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2719 # only as a last resort.  b.out is created by i960 compilers.
2720 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2721 #
2722 # The IRIX 6 linker writes into existing files which may not be
2723 # executable, retaining their permissions.  Remove them first so a
2724 # subsequent execution test works.
2725 ac_rmfiles=
2726 for ac_file in $ac_files
2727 do
2728   case $ac_file in
2729     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2730     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2731   esac
2732 done
2733 rm -f $ac_rmfiles
2734
2735 if { (ac_try="$ac_link_default"
2736 case "(($ac_try" in
2737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738   *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741   (eval "$ac_link_default") 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; then
2745   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2746 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2747 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2748 # so that the user can short-circuit this test for compilers unknown to
2749 # Autoconf.
2750 for ac_file in $ac_files ''
2751 do
2752   test -f "$ac_file" || continue
2753   case $ac_file in
2754     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2755         ;;
2756     [ab].out )
2757         # We found the default executable, but exeext='' is most
2758         # certainly right.
2759         break;;
2760     *.* )
2761         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2762         then :; else
2763            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2764         fi
2765         # We set ac_cv_exeext here because the later test for it is not
2766         # safe: cross compilers may not add the suffix if given an `-o'
2767         # argument, so we may need to know it at that point already.
2768         # Even if this section looks crufty: it has the advantage of
2769         # actually working.
2770         break;;
2771     * )
2772         break;;
2773   esac
2774 done
2775 test "$ac_cv_exeext" = no && ac_cv_exeext=
2776
2777 else
2778   ac_file=''
2779 fi
2780
2781 { echo "$as_me:$LINENO: result: $ac_file" >&5
2782 echo "${ECHO_T}$ac_file" >&6; }
2783 if test -z "$ac_file"; then
2784   echo "$as_me: failed program was:" >&5
2785 sed 's/^/| /' conftest.$ac_ext >&5
2786
2787 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2788 See \`config.log' for more details." >&5
2789 echo "$as_me: error: C compiler cannot create executables
2790 See \`config.log' for more details." >&2;}
2791    { (exit 77); exit 77; }; }
2792 fi
2793
2794 ac_exeext=$ac_cv_exeext
2795
2796 # Check that the compiler produces executables we can run.  If not, either
2797 # the compiler is broken, or we cross compile.
2798 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2799 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2800 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2801 # If not cross compiling, check that we can run a simple program.
2802 if test "$cross_compiling" != yes; then
2803   if { ac_try='./$ac_file'
2804   { (case "(($ac_try" in
2805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806   *) ac_try_echo=$ac_try;;
2807 esac
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809   (eval "$ac_try") 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; }; then
2813     cross_compiling=no
2814   else
2815     if test "$cross_compiling" = maybe; then
2816         cross_compiling=yes
2817     else
2818         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2819 If you meant to cross compile, use \`--host'.
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&2;}
2824    { (exit 1); exit 1; }; }
2825     fi
2826   fi
2827 fi
2828 { echo "$as_me:$LINENO: result: yes" >&5
2829 echo "${ECHO_T}yes" >&6; }
2830
2831 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2832 ac_clean_files=$ac_clean_files_save
2833 # Check that the compiler produces executables we can run.  If not, either
2834 # the compiler is broken, or we cross compile.
2835 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2836 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2837 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2838 echo "${ECHO_T}$cross_compiling" >&6; }
2839
2840 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2841 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2842 if { (ac_try="$ac_link"
2843 case "(($ac_try" in
2844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845   *) ac_try_echo=$ac_try;;
2846 esac
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848   (eval "$ac_link") 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); }; then
2852   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2853 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2854 # work properly (i.e., refer to `conftest.exe'), while it won't with
2855 # `rm'.
2856 for ac_file in conftest.exe conftest conftest.*; do
2857   test -f "$ac_file" || continue
2858   case $ac_file in
2859     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2860     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2861           break;;
2862     * ) break;;
2863   esac
2864 done
2865 else
2866   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2867 See \`config.log' for more details." >&5
2868 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2869 See \`config.log' for more details." >&2;}
2870    { (exit 1); exit 1; }; }
2871 fi
2872
2873 rm -f conftest$ac_cv_exeext
2874 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2875 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2876
2877 rm -f conftest.$ac_ext
2878 EXEEXT=$ac_cv_exeext
2879 ac_exeext=$EXEEXT
2880 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2881 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2882 if test "${ac_cv_objext+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885   cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h.  */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h.  */
2891
2892 int
2893 main ()
2894 {
2895
2896   ;
2897   return 0;
2898 }
2899 _ACEOF
2900 rm -f conftest.o conftest.obj
2901 if { (ac_try="$ac_compile"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_compile") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }; then
2911   for ac_file in conftest.o conftest.obj conftest.*; do
2912   test -f "$ac_file" || continue;
2913   case $ac_file in
2914     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2915     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2916        break;;
2917   esac
2918 done
2919 else
2920   echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2922
2923 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2924 See \`config.log' for more details." >&5
2925 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2926 See \`config.log' for more details." >&2;}
2927    { (exit 1); exit 1; }; }
2928 fi
2929
2930 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2931 fi
2932 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2933 echo "${ECHO_T}$ac_cv_objext" >&6; }
2934 OBJEXT=$ac_cv_objext
2935 ac_objext=$OBJEXT
2936 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2937 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2938 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2939   echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941   cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h.  */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h.  */
2947
2948 int
2949 main ()
2950 {
2951 #ifndef __GNUC__
2952        choke me
2953 #endif
2954
2955   ;
2956   return 0;
2957 }
2958 _ACEOF
2959 rm -f conftest.$ac_objext
2960 if { (ac_try="$ac_compile"
2961 case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966   (eval "$ac_compile") 2>conftest.er1
2967   ac_status=$?
2968   grep -v '^ *+' conftest.er1 >conftest.err
2969   rm -f conftest.er1
2970   cat conftest.err >&5
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); } && {
2973          test -z "$ac_c_werror_flag" ||
2974          test ! -s conftest.err
2975        } && test -s conftest.$ac_objext; then
2976   ac_compiler_gnu=yes
2977 else
2978   echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981         ac_compiler_gnu=no
2982 fi
2983
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2986
2987 fi
2988 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2989 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2990 GCC=`test $ac_compiler_gnu = yes && echo yes`
2991 ac_test_CFLAGS=${CFLAGS+set}
2992 ac_save_CFLAGS=$CFLAGS
2993 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2994 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_cc_g+set}" = set; then
2996   echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998   ac_save_c_werror_flag=$ac_c_werror_flag
2999    ac_c_werror_flag=yes
3000    ac_cv_prog_cc_g=no
3001    CFLAGS="-g"
3002    cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008
3009 int
3010 main ()
3011 {
3012
3013   ;
3014   return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3019 case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024   (eval "$ac_compile") 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } && {
3031          test -z "$ac_c_werror_flag" ||
3032          test ! -s conftest.err
3033        } && test -s conftest.$ac_objext; then
3034   ac_cv_prog_cc_g=yes
3035 else
3036   echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039         CFLAGS=""
3040       cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h.  */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h.  */
3046
3047 int
3048 main ()
3049 {
3050
3051   ;
3052   return 0;
3053 }
3054 _ACEOF
3055 rm -f conftest.$ac_objext
3056 if { (ac_try="$ac_compile"
3057 case "(($ac_try" in
3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059   *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062   (eval "$ac_compile") 2>conftest.er1
3063   ac_status=$?
3064   grep -v '^ *+' conftest.er1 >conftest.err
3065   rm -f conftest.er1
3066   cat conftest.err >&5
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); } && {
3069          test -z "$ac_c_werror_flag" ||
3070          test ! -s conftest.err
3071        } && test -s conftest.$ac_objext; then
3072   :
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077         ac_c_werror_flag=$ac_save_c_werror_flag
3078          CFLAGS="-g"
3079          cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085
3086 int
3087 main ()
3088 {
3089
3090   ;
3091   return 0;
3092 }
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101   (eval "$ac_compile") 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } && {
3108          test -z "$ac_c_werror_flag" ||
3109          test ! -s conftest.err
3110        } && test -s conftest.$ac_objext; then
3111   ac_cv_prog_cc_g=yes
3112 else
3113   echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116
3117 fi
3118
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 fi
3121
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123 fi
3124
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126    ac_c_werror_flag=$ac_save_c_werror_flag
3127 fi
3128 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3129 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3130 if test "$ac_test_CFLAGS" = set; then
3131   CFLAGS=$ac_save_CFLAGS
3132 elif test $ac_cv_prog_cc_g = yes; then
3133   if test "$GCC" = yes; then
3134     CFLAGS="-g -O2"
3135   else
3136     CFLAGS="-g"
3137   fi
3138 else
3139   if test "$GCC" = yes; then
3140     CFLAGS="-O2"
3141   else
3142     CFLAGS=
3143   fi
3144 fi
3145 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3146 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3147 if test "${ac_cv_prog_cc_c89+set}" = set; then
3148   echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150   ac_cv_prog_cc_c89=no
3151 ac_save_CC=$CC
3152 cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158 #include <stdarg.h>
3159 #include <stdio.h>
3160 #include <sys/types.h>
3161 #include <sys/stat.h>
3162 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3163 struct buf { int x; };
3164 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3165 static char *e (p, i)
3166      char **p;
3167      int i;
3168 {
3169   return p[i];
3170 }
3171 static char *f (char * (*g) (char **, int), char **p, ...)
3172 {
3173   char *s;
3174   va_list v;
3175   va_start (v,p);
3176   s = g (p, va_arg (v,int));
3177   va_end (v);
3178   return s;
3179 }
3180
3181 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3182    function prototypes and stuff, but not '\xHH' hex character constants.
3183    These don't provoke an error unfortunately, instead are silently treated
3184    as 'x'.  The following induces an error, until -std is added to get
3185    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3186    array size at least.  It's necessary to write '\x00'==0 to get something
3187    that's true only with -std.  */
3188 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3189
3190 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3191    inside strings and character constants.  */
3192 #define FOO(x) 'x'
3193 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3194
3195 int test (int i, double x);
3196 struct s1 {int (*f) (int a);};
3197 struct s2 {int (*f) (double a);};
3198 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3199 int argc;
3200 char **argv;
3201 int
3202 main ()
3203 {
3204 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3205   ;
3206   return 0;
3207 }
3208 _ACEOF
3209 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3210         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3211 do
3212   CC="$ac_save_CC $ac_arg"
3213   rm -f conftest.$ac_objext
3214 if { (ac_try="$ac_compile"
3215 case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220   (eval "$ac_compile") 2>conftest.er1
3221   ac_status=$?
3222   grep -v '^ *+' conftest.er1 >conftest.err
3223   rm -f conftest.er1
3224   cat conftest.err >&5
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); } && {
3227          test -z "$ac_c_werror_flag" ||
3228          test ! -s conftest.err
3229        } && test -s conftest.$ac_objext; then
3230   ac_cv_prog_cc_c89=$ac_arg
3231 else
3232   echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3234
3235
3236 fi
3237
3238 rm -f core conftest.err conftest.$ac_objext
3239   test "x$ac_cv_prog_cc_c89" != "xno" && break
3240 done
3241 rm -f conftest.$ac_ext
3242 CC=$ac_save_CC
3243
3244 fi
3245 # AC_CACHE_VAL
3246 case "x$ac_cv_prog_cc_c89" in
3247   x)
3248     { echo "$as_me:$LINENO: result: none needed" >&5
3249 echo "${ECHO_T}none needed" >&6; } ;;
3250   xno)
3251     { echo "$as_me:$LINENO: result: unsupported" >&5
3252 echo "${ECHO_T}unsupported" >&6; } ;;
3253   *)
3254     CC="$CC $ac_cv_prog_cc_c89"
3255     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3256 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3257 esac
3258
3259
3260 ac_ext=c
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265
3266 ac_ext=cpp
3267 ac_cpp='$CXXCPP $CPPFLAGS'
3268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3271 if test -z "$CXX"; then
3272   if test -n "$CCC"; then
3273     CXX=$CCC
3274   else
3275     if test -n "$ac_tool_prefix"; then
3276   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3277   do
3278     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3282 if test "${ac_cv_prog_CXX+set}" = set; then
3283   echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285   if test -n "$CXX"; then
3286   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3290 do
3291   IFS=$as_save_IFS
3292   test -z "$as_dir" && as_dir=.
3293   for ac_exec_ext in '' $ac_executable_extensions; do
3294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297     break 2
3298   fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 fi
3304 fi
3305 CXX=$ac_cv_prog_CXX
3306 if test -n "$CXX"; then
3307   { echo "$as_me:$LINENO: result: $CXX" >&5
3308 echo "${ECHO_T}$CXX" >&6; }
3309 else
3310   { echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6; }
3312 fi
3313
3314
3315     test -n "$CXX" && break
3316   done
3317 fi
3318 if test -z "$CXX"; then
3319   ac_ct_CXX=$CXX
3320   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3321 do
3322   # Extract the first word of "$ac_prog", so it can be a program name with args.
3323 set dummy $ac_prog; ac_word=$2
3324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3326 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329   if test -n "$ac_ct_CXX"; then
3330   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3334 do
3335   IFS=$as_save_IFS
3336   test -z "$as_dir" && as_dir=.
3337   for ac_exec_ext in '' $ac_executable_extensions; do
3338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3339     ac_cv_prog_ac_ct_CXX="$ac_prog"
3340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341     break 2
3342   fi
3343 done
3344 done
3345 IFS=$as_save_IFS
3346
3347 fi
3348 fi
3349 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3350 if test -n "$ac_ct_CXX"; then
3351   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3352 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3353 else
3354   { echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6; }
3356 fi
3357
3358
3359   test -n "$ac_ct_CXX" && break
3360 done
3361
3362   if test "x$ac_ct_CXX" = x; then
3363     CXX="g++"
3364   else
3365     case $cross_compiling:$ac_tool_warned in
3366 yes:)
3367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3368 whose name does not start with the host triplet.  If you think this
3369 configuration is useful to you, please write to autoconf@gnu.org." >&5
3370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3371 whose name does not start with the host triplet.  If you think this
3372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3373 ac_tool_warned=yes ;;
3374 esac
3375     CXX=$ac_ct_CXX
3376   fi
3377 fi
3378
3379   fi
3380 fi
3381 # Provide some information about the compiler.
3382 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3383 ac_compiler=`set X $ac_compile; echo $2`
3384 { (ac_try="$ac_compiler --version >&5"
3385 case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390   (eval "$ac_compiler --version >&5") 2>&5
3391   ac_status=$?
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); }
3394 { (ac_try="$ac_compiler -v >&5"
3395 case "(($ac_try" in
3396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397   *) ac_try_echo=$ac_try;;
3398 esac
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400   (eval "$ac_compiler -v >&5") 2>&5
3401   ac_status=$?
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); }
3404 { (ac_try="$ac_compiler -V >&5"
3405 case "(($ac_try" in
3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407   *) ac_try_echo=$ac_try;;
3408 esac
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410   (eval "$ac_compiler -V >&5") 2>&5
3411   ac_status=$?
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); }
3414
3415 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3416 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3417 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h.  */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h.  */
3426
3427 int
3428 main ()
3429 {
3430 #ifndef __GNUC__
3431        choke me
3432 #endif
3433
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_compile") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } && {
3452          test -z "$ac_cxx_werror_flag" ||
3453          test ! -s conftest.err
3454        } && test -s conftest.$ac_objext; then
3455   ac_compiler_gnu=yes
3456 else
3457   echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460         ac_compiler_gnu=no
3461 fi
3462
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3465
3466 fi
3467 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3468 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3469 GXX=`test $ac_compiler_gnu = yes && echo yes`
3470 ac_test_CXXFLAGS=${CXXFLAGS+set}
3471 ac_save_CXXFLAGS=$CXXFLAGS
3472 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3473 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3474 if test "${ac_cv_prog_cxx_g+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3478    ac_cxx_werror_flag=yes
3479    ac_cv_prog_cxx_g=no
3480    CXXFLAGS="-g"
3481    cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h.  */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h.  */
3487
3488 int
3489 main ()
3490 {
3491
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 rm -f conftest.$ac_objext
3497 if { (ac_try="$ac_compile"
3498 case "(($ac_try" in
3499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500   *) ac_try_echo=$ac_try;;
3501 esac
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503   (eval "$ac_compile") 2>conftest.er1
3504   ac_status=$?
3505   grep -v '^ *+' conftest.er1 >conftest.err
3506   rm -f conftest.er1
3507   cat conftest.err >&5
3508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); } && {
3510          test -z "$ac_cxx_werror_flag" ||
3511          test ! -s conftest.err
3512        } && test -s conftest.$ac_objext; then
3513   ac_cv_prog_cxx_g=yes
3514 else
3515   echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518         CXXFLAGS=""
3519       cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h.  */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h.  */
3525
3526 int
3527 main ()
3528 {
3529
3530   ;
3531   return 0;
3532 }
3533 _ACEOF
3534 rm -f conftest.$ac_objext
3535 if { (ac_try="$ac_compile"
3536 case "(($ac_try" in
3537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538   *) ac_try_echo=$ac_try;;
3539 esac
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541   (eval "$ac_compile") 2>conftest.er1
3542   ac_status=$?
3543   grep -v '^ *+' conftest.er1 >conftest.err
3544   rm -f conftest.er1
3545   cat conftest.err >&5
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); } && {
3548          test -z "$ac_cxx_werror_flag" ||
3549          test ! -s conftest.err
3550        } && test -s conftest.$ac_objext; then
3551   :
3552 else
3553   echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3557          CXXFLAGS="-g"
3558          cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564
3565 int
3566 main ()
3567 {
3568
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3575 case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580   (eval "$ac_compile") 2>conftest.er1
3581   ac_status=$?
3582   grep -v '^ *+' conftest.er1 >conftest.err
3583   rm -f conftest.er1
3584   cat conftest.err >&5
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); } && {
3587          test -z "$ac_cxx_werror_flag" ||
3588          test ! -s conftest.err
3589        } && test -s conftest.$ac_objext; then
3590   ac_cv_prog_cxx_g=yes
3591 else
3592   echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595
3596 fi
3597
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 fi
3600
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 fi
3603
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3606 fi
3607 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3608 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3609 if test "$ac_test_CXXFLAGS" = set; then
3610   CXXFLAGS=$ac_save_CXXFLAGS
3611 elif test $ac_cv_prog_cxx_g = yes; then
3612   if test "$GXX" = yes; then
3613     CXXFLAGS="-g -O2"
3614   else
3615     CXXFLAGS="-g"
3616   fi
3617 else
3618   if test "$GXX" = yes; then
3619     CXXFLAGS="-O2"
3620   else
3621     CXXFLAGS=
3622   fi
3623 fi
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629
3630 if test "x$CC" != xcc; then
3631   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3632 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3633 else
3634   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3635 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3636 fi
3637 set dummy $CC; ac_cc=`echo $2 |
3638                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3639 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3640   echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642   cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h.  */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h.  */
3648
3649 int
3650 main ()
3651 {
3652
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 # Make sure it works both with $CC and with simple cc.
3658 # We do the test twice because some compilers refuse to overwrite an
3659 # existing .o file with -o, though they will create one.
3660 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3661 rm -f conftest2.*
3662 if { (case "(($ac_try" in
3663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664   *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667   (eval "$ac_try") 2>&5
3668   ac_status=$?
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } &&
3671    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676   (eval "$ac_try") 2>&5
3677   ac_status=$?
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); };
3680 then
3681   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3682   if test "x$CC" != xcc; then
3683     # Test first that cc exists at all.
3684     if { ac_try='cc -c conftest.$ac_ext >&5'
3685   { (case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690   (eval "$ac_try") 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; }; then
3694       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3695       rm -f conftest2.*
3696       if { (case "(($ac_try" in
3697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698   *) ac_try_echo=$ac_try;;
3699 esac
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701   (eval "$ac_try") 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); } &&
3705          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707   *) ac_try_echo=$ac_try;;
3708 esac
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710   (eval "$ac_try") 2>&5
3711   ac_status=$?
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); };
3714       then
3715         # cc works too.
3716         :
3717       else
3718         # cc exists but doesn't like -o.
3719         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3720       fi
3721     fi
3722   fi
3723 else
3724   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3725 fi
3726 rm -f core conftest*
3727
3728 fi
3729 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3730   { echo "$as_me:$LINENO: result: yes" >&5
3731 echo "${ECHO_T}yes" >&6; }
3732 else
3733   { echo "$as_me:$LINENO: result: no" >&5
3734 echo "${ECHO_T}no" >&6; }
3735
3736 cat >>confdefs.h <<\_ACEOF
3737 #define NO_MINUS_C_MINUS_O 1
3738 _ACEOF
3739
3740 fi
3741
3742 ac_ext=c
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3748 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3749 # On Suns, sometimes $CPP names a directory.
3750 if test -n "$CPP" && test -d "$CPP"; then
3751   CPP=
3752 fi
3753 if test -z "$CPP"; then
3754   if test "${ac_cv_prog_CPP+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757       # Double quotes because CPP needs to be expanded
3758     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3759     do
3760       ac_preproc_ok=false
3761 for ac_c_preproc_warn_flag in '' yes
3762 do
3763   # Use a header file that comes with gcc, so configuring glibc
3764   # with a fresh cross-compiler works.
3765   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3766   # <limits.h> exists even on freestanding compilers.
3767   # On the NeXT, cc -E runs the code through the compiler's parser,
3768   # not just through cpp. "Syntax error" is here to catch this case.
3769   cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h.  */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h.  */
3775 #ifdef __STDC__
3776 # include <limits.h>
3777 #else
3778 # include <assert.h>
3779 #endif
3780                      Syntax error
3781 _ACEOF
3782 if { (ac_try="$ac_cpp conftest.$ac_ext"
3783 case "(($ac_try" in
3784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785   *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3789   ac_status=$?
3790   grep -v '^ *+' conftest.er1 >conftest.err
3791   rm -f conftest.er1
3792   cat conftest.err >&5
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } >/dev/null && {
3795          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3796          test ! -s conftest.err
3797        }; then
3798   :
3799 else
3800   echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803   # Broken: fails on valid input.
3804 continue
3805 fi
3806
3807 rm -f conftest.err conftest.$ac_ext
3808
3809   # OK, works on sane cases.  Now check whether nonexistent headers
3810   # can be detected and how.
3811   cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h.  */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h.  */
3817 #include <ac_nonexistent.h>
3818 _ACEOF
3819 if { (ac_try="$ac_cpp conftest.$ac_ext"
3820 case "(($ac_try" in
3821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822   *) ac_try_echo=$ac_try;;
3823 esac
3824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3826   ac_status=$?
3827   grep -v '^ *+' conftest.er1 >conftest.err
3828   rm -f conftest.er1
3829   cat conftest.err >&5
3830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831   (exit $ac_status); } >/dev/null && {
3832          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3833          test ! -s conftest.err
3834        }; then
3835   # Broken: success on invalid input.
3836 continue
3837 else
3838   echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3840
3841   # Passes both tests.
3842 ac_preproc_ok=:
3843 break
3844 fi
3845
3846 rm -f conftest.err conftest.$ac_ext
3847
3848 done
3849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3850 rm -f conftest.err conftest.$ac_ext
3851 if $ac_preproc_ok; then
3852   break
3853 fi
3854
3855     done
3856     ac_cv_prog_CPP=$CPP
3857
3858 fi
3859   CPP=$ac_cv_prog_CPP
3860 else
3861   ac_cv_prog_CPP=$CPP
3862 fi
3863 { echo "$as_me:$LINENO: result: $CPP" >&5
3864 echo "${ECHO_T}$CPP" >&6; }
3865 ac_preproc_ok=false
3866 for ac_c_preproc_warn_flag in '' yes
3867 do
3868   # Use a header file that comes with gcc, so configuring glibc
3869   # with a fresh cross-compiler works.
3870   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3871   # <limits.h> exists even on freestanding compilers.
3872   # On the NeXT, cc -E runs the code through the compiler's parser,
3873   # not just through cpp. "Syntax error" is here to catch this case.
3874   cat >conftest.$ac_ext <<_ACEOF
3875 /* confdefs.h.  */
3876 _ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h.  */
3880 #ifdef __STDC__
3881 # include <limits.h>
3882 #else
3883 # include <assert.h>
3884 #endif
3885                      Syntax error
3886 _ACEOF
3887 if { (ac_try="$ac_cpp conftest.$ac_ext"
3888 case "(($ac_try" in
3889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890   *) ac_try_echo=$ac_try;;
3891 esac
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3894   ac_status=$?
3895   grep -v '^ *+' conftest.er1 >conftest.err
3896   rm -f conftest.er1
3897   cat conftest.err >&5
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); } >/dev/null && {
3900          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3901          test ! -s conftest.err
3902        }; then
3903   :
3904 else
3905   echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3907
3908   # Broken: fails on valid input.
3909 continue
3910 fi
3911
3912 rm -f conftest.err conftest.$ac_ext
3913
3914   # OK, works on sane cases.  Now check whether nonexistent headers
3915   # can be detected and how.
3916   cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h.  */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h.  */
3922 #include <ac_nonexistent.h>
3923 _ACEOF
3924 if { (ac_try="$ac_cpp conftest.$ac_ext"
3925 case "(($ac_try" in
3926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927   *) ac_try_echo=$ac_try;;
3928 esac
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3931   ac_status=$?
3932   grep -v '^ *+' conftest.er1 >conftest.err
3933   rm -f conftest.er1
3934   cat conftest.err >&5
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); } >/dev/null && {
3937          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3938          test ! -s conftest.err
3939        }; then
3940   # Broken: success on invalid input.
3941 continue
3942 else
3943   echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3945
3946   # Passes both tests.
3947 ac_preproc_ok=:
3948 break
3949 fi
3950
3951 rm -f conftest.err conftest.$ac_ext
3952
3953 done
3954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3955 rm -f conftest.err conftest.$ac_ext
3956 if $ac_preproc_ok; then
3957   :
3958 else
3959   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3960 See \`config.log' for more details." >&5
3961 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3962 See \`config.log' for more details." >&2;}
3963    { (exit 1); exit 1; }; }
3964 fi
3965
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971
3972
3973 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3974 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3975 if test "${ac_cv_path_GREP+set}" = set; then
3976   echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978   # Extract the first word of "grep ggrep" to use in msg output
3979 if test -z "$GREP"; then
3980 set dummy grep ggrep; ac_prog_name=$2
3981 if test "${ac_cv_path_GREP+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   ac_path_GREP_found=false
3985 # Loop through the user's path and test for each of PROGNAME-LIST
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3988 do
3989   IFS=$as_save_IFS
3990   test -z "$as_dir" && as_dir=.
3991   for ac_prog in grep ggrep; do
3992   for ac_exec_ext in '' $ac_executable_extensions; do
3993     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3994     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3995     # Check for GNU ac_path_GREP and select it if it is found.
3996   # Check for GNU $ac_path_GREP
3997 case `"$ac_path_GREP" --version 2>&1` in
3998 *GNU*)
3999   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4000 *)
4001   ac_count=0
4002   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4003   while :
4004   do
4005     cat "conftest.in" "conftest.in" >"conftest.tmp"
4006     mv "conftest.tmp" "conftest.in"
4007     cp "conftest.in" "conftest.nl"
4008     echo 'GREP' >> "conftest.nl"
4009     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4010     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4011     ac_count=`expr $ac_count + 1`
4012     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4013       # Best one so far, save it but keep looking for a better one
4014       ac_cv_path_GREP="$ac_path_GREP"
4015       ac_path_GREP_max=$ac_count
4016     fi
4017     # 10*(2^10) chars as input seems more than enough
4018     test $ac_count -gt 10 && break
4019   done
4020   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4021 esac
4022
4023
4024     $ac_path_GREP_found && break 3
4025   done
4026 done
4027
4028 done
4029 IFS=$as_save_IFS
4030
4031
4032 fi
4033
4034 GREP="$ac_cv_path_GREP"
4035 if test -z "$GREP"; then
4036   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4037 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4038    { (exit 1); exit 1; }; }
4039 fi
4040
4041 else
4042   ac_cv_path_GREP=$GREP
4043 fi
4044
4045
4046 fi
4047 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4048 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4049  GREP="$ac_cv_path_GREP"
4050
4051
4052 { echo "$as_me:$LINENO: checking for egrep" >&5
4053 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4054 if test "${ac_cv_path_EGREP+set}" = set; then
4055   echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4058    then ac_cv_path_EGREP="$GREP -E"
4059    else
4060      # Extract the first word of "egrep" to use in msg output
4061 if test -z "$EGREP"; then
4062 set dummy egrep; ac_prog_name=$2
4063 if test "${ac_cv_path_EGREP+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   ac_path_EGREP_found=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4070 do
4071   IFS=$as_save_IFS
4072   test -z "$as_dir" && as_dir=.
4073   for ac_prog in egrep; do
4074   for ac_exec_ext in '' $ac_executable_extensions; do
4075     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4076     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4077     # Check for GNU ac_path_EGREP and select it if it is found.
4078   # Check for GNU $ac_path_EGREP
4079 case `"$ac_path_EGREP" --version 2>&1` in
4080 *GNU*)
4081   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4082 *)
4083   ac_count=0
4084   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4085   while :
4086   do
4087     cat "conftest.in" "conftest.in" >"conftest.tmp"
4088     mv "conftest.tmp" "conftest.in"
4089     cp "conftest.in" "conftest.nl"
4090     echo 'EGREP' >> "conftest.nl"
4091     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4092     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4093     ac_count=`expr $ac_count + 1`
4094     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4095       # Best one so far, save it but keep looking for a better one
4096       ac_cv_path_EGREP="$ac_path_EGREP"
4097       ac_path_EGREP_max=$ac_count
4098     fi
4099     # 10*(2^10) chars as input seems more than enough
4100     test $ac_count -gt 10 && break
4101   done
4102   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4103 esac
4104
4105
4106     $ac_path_EGREP_found && break 3
4107   done
4108 done
4109
4110 done
4111 IFS=$as_save_IFS
4112
4113
4114 fi
4115
4116 EGREP="$ac_cv_path_EGREP"
4117 if test -z "$EGREP"; then
4118   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4119 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4120    { (exit 1); exit 1; }; }
4121 fi
4122
4123 else
4124   ac_cv_path_EGREP=$EGREP
4125 fi
4126
4127
4128    fi
4129 fi
4130 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4131 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4132  EGREP="$ac_cv_path_EGREP"
4133
4134
4135 if test $ac_cv_c_compiler_gnu = yes; then
4136     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4137 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4138 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141     ac_pattern="Autoconf.*'x'"
4142   cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h.  */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h.  */
4148 #include <sgtty.h>
4149 Autoconf TIOCGETP
4150 _ACEOF
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4153   ac_cv_prog_gcc_traditional=yes
4154 else
4155   ac_cv_prog_gcc_traditional=no
4156 fi
4157 rm -f conftest*
4158
4159
4160   if test $ac_cv_prog_gcc_traditional = no; then
4161     cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <termio.h>
4168 Autoconf TCGETA
4169 _ACEOF
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4172   ac_cv_prog_gcc_traditional=yes
4173 fi
4174 rm -f conftest*
4175
4176   fi
4177 fi
4178 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4179 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4180   if test $ac_cv_prog_gcc_traditional = yes; then
4181     CC="$CC -traditional"
4182   fi
4183 fi
4184
4185 BASECC=`basename $CC`
4186 have_gcc=no
4187 if test "x$BASECC" = xgcc; then
4188    cat >>confdefs.h <<\_ACEOF
4189 #define HAVE_GCC 1
4190 _ACEOF
4191
4192    have_gcc=yes
4193 fi
4194 # Extract the first word of "$CXX", so it can be a program name with args.
4195 set dummy $CXX; ac_word=$2
4196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4198 if test "${ac_cv_path_CXX+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   case $CXX in
4202   [\\/]* | ?:[\\/]*)
4203   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4204   ;;
4205   *)
4206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211   for ac_exec_ext in '' $ac_executable_extensions; do
4212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218 done
4219 IFS=$as_save_IFS
4220
4221   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4222   ;;
4223 esac
4224 fi
4225 CXX=$ac_cv_path_CXX
4226 if test -n "$CXX"; then
4227   { echo "$as_me:$LINENO: result: $CXX" >&5
4228 echo "${ECHO_T}$CXX" >&6; }
4229 else
4230   { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4232 fi
4233
4234
4235 if test ! -e $CXX; then
4236    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4237 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4238    { (exit 1); exit 1; }; }
4239 fi
4240
4241 # Find a good install program.  We prefer a C program (faster),
4242 # so one script is as good as another.  But avoid the broken or
4243 # incompatible versions:
4244 # SysV /etc/install, /usr/sbin/install
4245 # SunOS /usr/etc/install
4246 # IRIX /sbin/install
4247 # AIX /bin/install
4248 # AmigaOS /C/install, which installs bootblocks on floppy discs
4249 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4250 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4251 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4252 # OS/2's system install, which has a completely different semantic
4253 # ./install, which can be erroneously created by make from ./install.sh.
4254 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4255 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4256 if test -z "$INSTALL"; then
4257 if test "${ac_cv_path_install+set}" = set; then
4258   echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4262 do
4263   IFS=$as_save_IFS
4264   test -z "$as_dir" && as_dir=.
4265   # Account for people who put trailing slashes in PATH elements.
4266 case $as_dir/ in
4267   ./ | .// | /cC/* | \
4268   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4269   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4270   /usr/ucb/* ) ;;
4271   *)
4272     # OSF1 and SCO ODT 3.0 have their own names for install.
4273     # Don't use installbsd from OSF since it installs stuff as root
4274     # by default.
4275     for ac_prog in ginstall scoinst install; do
4276       for ac_exec_ext in '' $ac_executable_extensions; do
4277         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4278           if test $ac_prog = install &&
4279             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4280             # AIX install.  It has an incompatible calling convention.
4281             :
4282           elif test $ac_prog = install &&
4283             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4284             # program-specific install script used by HP pwplus--don't use.
4285             :
4286           else
4287             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4288             break 3
4289           fi
4290         fi
4291       done
4292     done
4293     ;;
4294 esac
4295 done
4296 IFS=$as_save_IFS
4297
4298
4299 fi
4300   if test "${ac_cv_path_install+set}" = set; then
4301     INSTALL=$ac_cv_path_install
4302   else
4303     # As a last resort, use the slow shell script.  Don't cache a
4304     # value for INSTALL within a source directory, because that will
4305     # break other packages using the cache if that directory is
4306     # removed, or if the value is a relative name.
4307     INSTALL=$ac_install_sh
4308   fi
4309 fi
4310 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4311 echo "${ECHO_T}$INSTALL" >&6; }
4312
4313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4314 # It thinks the first close brace ends the variable substitution.
4315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4316
4317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4318
4319 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4320
4321 # Extract the first word of "mv", so it can be a program name with args.
4322 set dummy mv; ac_word=$2
4323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4325 if test "${ac_cv_path_MV+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   case $MV in
4329   [\\/]* | ?:[\\/]*)
4330   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4331   ;;
4332   *)
4333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336   IFS=$as_save_IFS
4337   test -z "$as_dir" && as_dir=.
4338   for ac_exec_ext in '' $ac_executable_extensions; do
4339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342     break 2
4343   fi
4344 done
4345 done
4346 IFS=$as_save_IFS
4347
4348   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4349   ;;
4350 esac
4351 fi
4352 MV=$ac_cv_path_MV
4353 if test -n "$MV"; then
4354   { echo "$as_me:$LINENO: result: $MV" >&5
4355 echo "${ECHO_T}$MV" >&6; }
4356 else
4357   { echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6; }
4359 fi
4360
4361
4362 # Extract the first word of "rm", so it can be a program name with args.
4363 set dummy rm; ac_word=$2
4364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4366 if test "${ac_cv_path_REMOVE+set}" = set; then
4367   echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369   case $REMOVE in
4370   [\\/]* | ?:[\\/]*)
4371   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4372   ;;
4373   *)
4374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377   IFS=$as_save_IFS
4378   test -z "$as_dir" && as_dir=.
4379   for ac_exec_ext in '' $ac_executable_extensions; do
4380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383     break 2
4384   fi
4385 done
4386 done
4387 IFS=$as_save_IFS
4388
4389   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4390   ;;
4391 esac
4392 fi
4393 REMOVE=$ac_cv_path_REMOVE
4394 if test -n "$REMOVE"; then
4395   { echo "$as_me:$LINENO: result: $REMOVE" >&5
4396 echo "${ECHO_T}$REMOVE" >&6; }
4397 else
4398   { echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6; }
4400 fi
4401
4402
4403 # Extract the first word of "cp", so it can be a program name with args.
4404 set dummy cp; ac_word=$2
4405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4407 if test "${ac_cv_path_CP+set}" = set; then
4408   echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410   case $CP in
4411   [\\/]* | ?:[\\/]*)
4412   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4413   ;;
4414   *)
4415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4417 do
4418   IFS=$as_save_IFS
4419   test -z "$as_dir" && as_dir=.
4420   for ac_exec_ext in '' $ac_executable_extensions; do
4421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424     break 2
4425   fi
4426 done
4427 done
4428 IFS=$as_save_IFS
4429
4430   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4431   ;;
4432 esac
4433 fi
4434 CP=$ac_cv_path_CP
4435 if test -n "$CP"; then
4436   { echo "$as_me:$LINENO: result: $CP" >&5
4437 echo "${ECHO_T}$CP" >&6; }
4438 else
4439   { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4441 fi
4442
4443
4444 # Extract the first word of "sed", so it can be a program name with args.
4445 set dummy sed; ac_word=$2
4446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4448 if test "${ac_cv_path_SED+set}" = set; then
4449   echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451   case $SED in
4452   [\\/]* | ?:[\\/]*)
4453   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4454   ;;
4455   *)
4456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459   IFS=$as_save_IFS
4460   test -z "$as_dir" && as_dir=.
4461   for ac_exec_ext in '' $ac_executable_extensions; do
4462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465     break 2
4466   fi
4467 done
4468 done
4469 IFS=$as_save_IFS
4470
4471   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4472   ;;
4473 esac
4474 fi
4475 SED=$ac_cv_path_SED
4476 if test -n "$SED"; then
4477   { echo "$as_me:$LINENO: result: $SED" >&5
4478 echo "${ECHO_T}$SED" >&6; }
4479 else
4480   { echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6; }
4482 fi
4483
4484
4485 # Extract the first word of "echo", so it can be a program name with args.
4486 set dummy echo; ac_word=$2
4487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4489 if test "${ac_cv_path_ECHO+set}" = set; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   case $ECHO in
4493   [\\/]* | ?:[\\/]*)
4494   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4495   ;;
4496   *)
4497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500   IFS=$as_save_IFS
4501   test -z "$as_dir" && as_dir=.
4502   for ac_exec_ext in '' $ac_executable_extensions; do
4503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4504     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506     break 2
4507   fi
4508 done
4509 done
4510 IFS=$as_save_IFS
4511
4512   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4513   ;;
4514 esac
4515 fi
4516 ECHO=$ac_cv_path_ECHO
4517 if test -n "$ECHO"; then
4518   { echo "$as_me:$LINENO: result: $ECHO" >&5
4519 echo "${ECHO_T}$ECHO" >&6; }
4520 else
4521   { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4523 fi
4524
4525
4526 # Extract the first word of "cmp", so it can be a program name with args.
4527 set dummy cmp; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_path_CMP+set}" = set; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   case $CMP in
4534   [\\/]* | ?:[\\/]*)
4535   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4536   ;;
4537   *)
4538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4540 do
4541   IFS=$as_save_IFS
4542   test -z "$as_dir" && as_dir=.
4543   for ac_exec_ext in '' $ac_executable_extensions; do
4544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547     break 2
4548   fi
4549 done
4550 done
4551 IFS=$as_save_IFS
4552
4553   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4554   ;;
4555 esac
4556 fi
4557 CMP=$ac_cv_path_CMP
4558 if test -n "$CMP"; then
4559   { echo "$as_me:$LINENO: result: $CMP" >&5
4560 echo "${ECHO_T}$CMP" >&6; }
4561 else
4562   { echo "$as_me:$LINENO: result: no" >&5
4563 echo "${ECHO_T}no" >&6; }
4564 fi
4565
4566
4567 # Extract the first word of "tbl", so it can be a program name with args.
4568 set dummy tbl; ac_word=$2
4569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4571 if test "${ac_cv_path_TBL+set}" = set; then
4572   echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574   case $TBL in
4575   [\\/]* | ?:[\\/]*)
4576   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4577   ;;
4578   *)
4579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582   IFS=$as_save_IFS
4583   test -z "$as_dir" && as_dir=.
4584   for ac_exec_ext in '' $ac_executable_extensions; do
4585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588     break 2
4589   fi
4590 done
4591 done
4592 IFS=$as_save_IFS
4593
4594   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4595   ;;
4596 esac
4597 fi
4598 TBL=$ac_cv_path_TBL
4599 if test -n "$TBL"; then
4600   { echo "$as_me:$LINENO: result: $TBL" >&5
4601 echo "${ECHO_T}$TBL" >&6; }
4602 else
4603   { echo "$as_me:$LINENO: result: no" >&5
4604 echo "${ECHO_T}no" >&6; }
4605 fi
4606
4607
4608 # Extract the first word of "ar", so it can be a program name with args.
4609 set dummy ar; ac_word=$2
4610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4612 if test "${ac_cv_path_AR+set}" = set; then
4613   echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615   case $AR in
4616   [\\/]* | ?:[\\/]*)
4617   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4618   ;;
4619   *)
4620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623   IFS=$as_save_IFS
4624   test -z "$as_dir" && as_dir=.
4625   for ac_exec_ext in '' $ac_executable_extensions; do
4626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629     break 2
4630   fi
4631 done
4632 done
4633 IFS=$as_save_IFS
4634
4635   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4636   ;;
4637 esac
4638 fi
4639 AR=$ac_cv_path_AR
4640 if test -n "$AR"; then
4641   { echo "$as_me:$LINENO: result: $AR" >&5
4642 echo "${ECHO_T}$AR" >&6; }
4643 else
4644   { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4646 fi
4647
4648
4649 # Extract the first word of "openssl", so it can be a program name with args.
4650 set dummy openssl; ac_word=$2
4651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653 if test "${ac_cv_path_OPENSSL+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   case $OPENSSL in
4657   [\\/]* | ?:[\\/]*)
4658   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4659   ;;
4660   *)
4661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666   for ac_exec_ext in '' $ac_executable_extensions; do
4667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670     break 2
4671   fi
4672 done
4673 done
4674 IFS=$as_save_IFS
4675
4676   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4677   ;;
4678 esac
4679 fi
4680 OPENSSL=$ac_cv_path_OPENSSL
4681 if test -n "$OPENSSL"; then
4682   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4683 echo "${ECHO_T}$OPENSSL" >&6; }
4684 else
4685   { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4687 fi
4688
4689
4690 # Extract the first word of "mtx", so it can be a program name with args.
4691 set dummy mtx; ac_word=$2
4692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4694 if test "${ac_cv_path_MTX+set}" = set; then
4695   echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697   case $MTX in
4698   [\\/]* | ?:[\\/]*)
4699   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4700   ;;
4701   *)
4702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705   IFS=$as_save_IFS
4706   test -z "$as_dir" && as_dir=.
4707   for ac_exec_ext in '' $ac_executable_extensions; do
4708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711     break 2
4712   fi
4713 done
4714 done
4715 IFS=$as_save_IFS
4716
4717   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4718   ;;
4719 esac
4720 fi
4721 MTX=$ac_cv_path_MTX
4722 if test -n "$MTX"; then
4723   { echo "$as_me:$LINENO: result: $MTX" >&5
4724 echo "${ECHO_T}$MTX" >&6; }
4725 else
4726   { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4728 fi
4729
4730
4731 # Extract the first word of "dd", so it can be a program name with args.
4732 set dummy dd; ac_word=$2
4733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735 if test "${ac_cv_path_DD+set}" = set; then
4736   echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738   case $DD in
4739   [\\/]* | ?:[\\/]*)
4740   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4741   ;;
4742   *)
4743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746   IFS=$as_save_IFS
4747   test -z "$as_dir" && as_dir=.
4748   for ac_exec_ext in '' $ac_executable_extensions; do
4749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752     break 2
4753   fi
4754 done
4755 done
4756 IFS=$as_save_IFS
4757
4758   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4759   ;;
4760 esac
4761 fi
4762 DD=$ac_cv_path_DD
4763 if test -n "$DD"; then
4764   { echo "$as_me:$LINENO: result: $DD" >&5
4765 echo "${ECHO_T}$DD" >&6; }
4766 else
4767   { echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6; }
4769 fi
4770
4771
4772 # Extract the first word of "mkisofs", so it can be a program name with args.
4773 set dummy mkisofs; ac_word=$2
4774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776 if test "${ac_cv_path_MKISOFS+set}" = set; then
4777   echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779   case $MKISOFS in
4780   [\\/]* | ?:[\\/]*)
4781   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4782   ;;
4783   *)
4784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787   IFS=$as_save_IFS
4788   test -z "$as_dir" && as_dir=.
4789   for ac_exec_ext in '' $ac_executable_extensions; do
4790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793     break 2
4794   fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4800   ;;
4801 esac
4802 fi
4803 MKISOFS=$ac_cv_path_MKISOFS
4804 if test -n "$MKISOFS"; then
4805   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4806 echo "${ECHO_T}$MKISOFS" >&6; }
4807 else
4808   { echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6; }
4810 fi
4811
4812
4813 # Extract the first word of "python", so it can be a program name with args.
4814 set dummy python; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_path_PYTHON+set}" = set; then
4818   echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820   case $PYTHON in
4821   [\\/]* | ?:[\\/]*)
4822   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4823   ;;
4824   *)
4825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830   for ac_exec_ext in '' $ac_executable_extensions; do
4831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837 done
4838 IFS=$as_save_IFS
4839
4840   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4841   ;;
4842 esac
4843 fi
4844 PYTHON=$ac_cv_path_PYTHON
4845 if test -n "$PYTHON"; then
4846   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4847 echo "${ECHO_T}$PYTHON" >&6; }
4848 else
4849   { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4851 fi
4852
4853
4854 # Extract the first word of "growisofs", so it can be a program name with args.
4855 set dummy growisofs; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4859   echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861   case $GROWISOFS in
4862   [\\/]* | ?:[\\/]*)
4863   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4864   ;;
4865   *)
4866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871   for ac_exec_ext in '' $ac_executable_extensions; do
4872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875     break 2
4876   fi
4877 done
4878 done
4879 IFS=$as_save_IFS
4880
4881   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4882   ;;
4883 esac
4884 fi
4885 GROWISOFS=$ac_cv_path_GROWISOFS
4886 if test -n "$GROWISOFS"; then
4887   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4888 echo "${ECHO_T}$GROWISOFS" >&6; }
4889 else
4890   { echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6; }
4892 fi
4893
4894
4895 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4896 set dummy dvd+rw-mediainfo; ac_word=$2
4897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   case $DVDRWMEDIAINFO in
4903   [\\/]* | ?:[\\/]*)
4904   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4905   ;;
4906   *)
4907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4909 do
4910   IFS=$as_save_IFS
4911   test -z "$as_dir" && as_dir=.
4912   for ac_exec_ext in '' $ac_executable_extensions; do
4913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916     break 2
4917   fi
4918 done
4919 done
4920 IFS=$as_save_IFS
4921
4922   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4923   ;;
4924 esac
4925 fi
4926 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4927 if test -n "$DVDRWMEDIAINFO"; then
4928   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4929 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4930 else
4931   { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4933 fi
4934
4935
4936 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4937 set dummy dvd+rw-format; ac_word=$2
4938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4940 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   case $DVDRWFORMAT in
4944   [\\/]* | ?:[\\/]*)
4945   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4946   ;;
4947   *)
4948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951   IFS=$as_save_IFS
4952   test -z "$as_dir" && as_dir=.
4953   for ac_exec_ext in '' $ac_executable_extensions; do
4954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957     break 2
4958   fi
4959 done
4960 done
4961 IFS=$as_save_IFS
4962
4963   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4964   ;;
4965 esac
4966 fi
4967 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4968 if test -n "$DVDRWFORMAT"; then
4969   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4970 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4971 else
4972   { echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6; }
4974 fi
4975
4976
4977 # Extract the first word of "pkg-config", so it can be a program name with args.
4978 set dummy pkg-config; ac_word=$2
4979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4981 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   case $PKGCONFIG in
4985   [\\/]* | ?:[\\/]*)
4986   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4987   ;;
4988   *)
4989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992   IFS=$as_save_IFS
4993   test -z "$as_dir" && as_dir=.
4994   for ac_exec_ext in '' $ac_executable_extensions; do
4995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998     break 2
4999   fi
5000 done
5001 done
5002 IFS=$as_save_IFS
5003
5004   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5005   ;;
5006 esac
5007 fi
5008 PKGCONFIG=$ac_cv_path_PKGCONFIG
5009 if test -n "$PKGCONFIG"; then
5010   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5011 echo "${ECHO_T}$PKGCONFIG" >&6; }
5012 else
5013   { echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6; }
5015 fi
5016
5017
5018 # Extract the first word of "qmake", so it can be a program name with args.
5019 set dummy qmake; ac_word=$2
5020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5022 if test "${ac_cv_path_QMAKE+set}" = set; then
5023   echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025   case $QMAKE in
5026   [\\/]* | ?:[\\/]*)
5027   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5028   ;;
5029   *)
5030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035   for ac_exec_ext in '' $ac_executable_extensions; do
5036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042 done
5043 IFS=$as_save_IFS
5044
5045   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5046   ;;
5047 esac
5048 fi
5049 QMAKE=$ac_cv_path_QMAKE
5050 if test -n "$QMAKE"; then
5051   { echo "$as_me:$LINENO: result: $QMAKE" >&5
5052 echo "${ECHO_T}$QMAKE" >&6; }
5053 else
5054   { echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6; }
5056 fi
5057
5058
5059 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5060 set dummy qmake-qt4; ac_word=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   case $QMAKEQT4 in
5067   [\\/]* | ?:[\\/]*)
5068   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5069   ;;
5070   *)
5071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076   for ac_exec_ext in '' $ac_executable_extensions; do
5077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5087   ;;
5088 esac
5089 fi
5090 QMAKEQT4=$ac_cv_path_QMAKEQT4
5091 if test -n "$QMAKEQT4"; then
5092   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5093 echo "${ECHO_T}$QMAKEQT4" >&6; }
5094 else
5095   { echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6; }
5097 fi
5098
5099
5100 # Extract the first word of "gmake", so it can be a program name with args.
5101 set dummy gmake; ac_word=$2
5102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5104 if test "${ac_cv_path_GMAKE+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   case $GMAKE in
5108   [\\/]* | ?:[\\/]*)
5109   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5110   ;;
5111   *)
5112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115   IFS=$as_save_IFS
5116   test -z "$as_dir" && as_dir=.
5117   for ac_exec_ext in '' $ac_executable_extensions; do
5118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121     break 2
5122   fi
5123 done
5124 done
5125 IFS=$as_save_IFS
5126
5127   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5128   ;;
5129 esac
5130 fi
5131 GMAKE=$ac_cv_path_GMAKE
5132 if test -n "$GMAKE"; then
5133   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5134 echo "${ECHO_T}$GMAKE" >&6; }
5135 else
5136   { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5138 fi
5139
5140
5141
5142 if test "x$WXCONFIG" = x; then
5143    WXCONFIG=wx-config
5144 fi
5145 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5146 set dummy ${WXCONFIG}; ac_word=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152   case $WXCONFIG in
5153   [\\/]* | ?:[\\/]*)
5154   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5155   ;;
5156   *)
5157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5159 do
5160   IFS=$as_save_IFS
5161   test -z "$as_dir" && as_dir=.
5162   for ac_exec_ext in '' $ac_executable_extensions; do
5163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166     break 2
5167   fi
5168 done
5169 done
5170 IFS=$as_save_IFS
5171
5172   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5173   ;;
5174 esac
5175 fi
5176 WXCONFIG=$ac_cv_path_WXCONFIG
5177 if test -n "$WXCONFIG"; then
5178   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5179 echo "${ECHO_T}$WXCONFIG" >&6; }
5180 else
5181   { echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6; }
5183 fi
5184
5185
5186
5187 # Extract the first word of "cdrecord", so it can be a program name with args.
5188 set dummy cdrecord; ac_word=$2
5189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5191 if test "${ac_cv_path_CDRECORD+set}" = set; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   case $CDRECORD in
5195   [\\/]* | ?:[\\/]*)
5196   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5197   ;;
5198   *)
5199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5201 do
5202   IFS=$as_save_IFS
5203   test -z "$as_dir" && as_dir=.
5204   for ac_exec_ext in '' $ac_executable_extensions; do
5205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208     break 2
5209   fi
5210 done
5211 done
5212 IFS=$as_save_IFS
5213
5214   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5215   ;;
5216 esac
5217 fi
5218 CDRECORD=$ac_cv_path_CDRECORD
5219 if test -n "$CDRECORD"; then
5220   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5221 echo "${ECHO_T}$CDRECORD" >&6; }
5222 else
5223   { echo "$as_me:$LINENO: result: no" >&5
5224 echo "${ECHO_T}no" >&6; }
5225 fi
5226
5227
5228 # Extract the first word of "pidof", so it can be a program name with args.
5229 set dummy pidof; ac_word=$2
5230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232 if test "${ac_cv_path_PIDOF+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235   case $PIDOF in
5236   [\\/]* | ?:[\\/]*)
5237   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5238   ;;
5239   *)
5240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243   IFS=$as_save_IFS
5244   test -z "$as_dir" && as_dir=.
5245   for ac_exec_ext in '' $ac_executable_extensions; do
5246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249     break 2
5250   fi
5251 done
5252 done
5253 IFS=$as_save_IFS
5254
5255   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5256   ;;
5257 esac
5258 fi
5259 PIDOF=$ac_cv_path_PIDOF
5260 if test -n "$PIDOF"; then
5261   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5262 echo "${ECHO_T}$PIDOF" >&6; }
5263 else
5264   { echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6; }
5266 fi
5267
5268
5269 for ac_prog in gawk mawk nawk awk
5270 do
5271   # Extract the first word of "$ac_prog", so it can be a program name with args.
5272 set dummy $ac_prog; ac_word=$2
5273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5275 if test "${ac_cv_prog_AWK+set}" = set; then
5276   echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278   if test -n "$AWK"; then
5279   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284   IFS=$as_save_IFS
5285   test -z "$as_dir" && as_dir=.
5286   for ac_exec_ext in '' $ac_executable_extensions; do
5287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288     ac_cv_prog_AWK="$ac_prog"
5289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5290     break 2
5291   fi
5292 done
5293 done
5294 IFS=$as_save_IFS
5295
5296 fi
5297 fi
5298 AWK=$ac_cv_prog_AWK
5299 if test -n "$AWK"; then
5300   { echo "$as_me:$LINENO: result: $AWK" >&5
5301 echo "${ECHO_T}$AWK" >&6; }
5302 else
5303   { echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6; }
5305 fi
5306
5307
5308   test -n "$AWK" && break
5309 done
5310
5311 # Some AWK programs fail, so test it and warn the user
5312 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5313       { if ((prog == $2) || (("(" prog ")") == $2) ||
5314       (("" prog "") == $2) ||
5315       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5316 else
5317   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5318    The regex engine of $AWK is too broken to be used you
5319    might want to install GNU AWK.
5320    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5321 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5322    The regex engine of $AWK is too broken to be used you
5323    might want to install GNU AWK.
5324    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5325    { (exit 1); exit 1; }; }
5326 fi
5327 THE_AWK=$AWK
5328 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5329 set dummy $THE_AWK; ac_word=$2
5330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5332 if test "${ac_cv_path_AWK+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335   case $AWK in
5336   [\\/]* | ?:[\\/]*)
5337   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5338   ;;
5339   *)
5340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343   IFS=$as_save_IFS
5344   test -z "$as_dir" && as_dir=.
5345   for ac_exec_ext in '' $ac_executable_extensions; do
5346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5349     break 2
5350   fi
5351 done
5352 done
5353 IFS=$as_save_IFS
5354
5355   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5356   ;;
5357 esac
5358 fi
5359 AWK=$ac_cv_path_AWK
5360 if test -n "$AWK"; then
5361   { echo "$as_me:$LINENO: result: $AWK" >&5
5362 echo "${ECHO_T}$AWK" >&6; }
5363 else
5364   { echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6; }
5366 fi
5367
5368
5369
5370
5371 test -n "$ARFLAG" || ARFLAGS="cr"
5372
5373
5374 MAKE_SHELL=/bin/sh
5375
5376
5377
5378
5379
5380
5381
5382 # Check whether --enable-libtool was given.
5383 if test "${enable_libtool+set}" = set; then
5384   enableval=$enable_libtool;
5385        if test x$enableval = xno; then
5386           use_libtool=no
5387        fi
5388
5389
5390 fi
5391
5392 case `pwd` in
5393   *\ * | *\     *)
5394     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5395 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5396 esac
5397
5398
5399
5400 macro_version='2.2.6'
5401 macro_revision='1.3012'
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415 ltmain="$ac_aux_dir/ltmain.sh"
5416
5417 # Make sure we can run config.sub.
5418 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5419   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5420 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5421    { (exit 1); exit 1; }; }
5422
5423 { echo "$as_me:$LINENO: checking build system type" >&5
5424 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5425 if test "${ac_cv_build+set}" = set; then
5426   echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428   ac_build_alias=$build_alias
5429 test "x$ac_build_alias" = x &&
5430   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5431 test "x$ac_build_alias" = x &&
5432   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5433 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5434    { (exit 1); exit 1; }; }
5435 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5436   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5437 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5438    { (exit 1); exit 1; }; }
5439
5440 fi
5441 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5442 echo "${ECHO_T}$ac_cv_build" >&6; }
5443 case $ac_cv_build in
5444 *-*-*) ;;
5445 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5446 echo "$as_me: error: invalid value of canonical build" >&2;}
5447    { (exit 1); exit 1; }; };;
5448 esac
5449 build=$ac_cv_build
5450 ac_save_IFS=$IFS; IFS='-'
5451 set x $ac_cv_build
5452 shift
5453 build_cpu=$1
5454 build_vendor=$2
5455 shift; shift
5456 # Remember, the first character of IFS is used to create $*,
5457 # except with old shells:
5458 build_os=$*
5459 IFS=$ac_save_IFS
5460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5461
5462
5463 { echo "$as_me:$LINENO: checking host system type" >&5
5464 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5465 if test "${ac_cv_host+set}" = set; then
5466   echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468   if test "x$host_alias" = x; then
5469   ac_cv_host=$ac_cv_build
5470 else
5471   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5472     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5473 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5474    { (exit 1); exit 1; }; }
5475 fi
5476
5477 fi
5478 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5479 echo "${ECHO_T}$ac_cv_host" >&6; }
5480 case $ac_cv_host in
5481 *-*-*) ;;
5482 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5483 echo "$as_me: error: invalid value of canonical host" >&2;}
5484    { (exit 1); exit 1; }; };;
5485 esac
5486 host=$ac_cv_host
5487 ac_save_IFS=$IFS; IFS='-'
5488 set x $ac_cv_host
5489 shift
5490 host_cpu=$1
5491 host_vendor=$2
5492 shift; shift
5493 # Remember, the first character of IFS is used to create $*,
5494 # except with old shells:
5495 host_os=$*
5496 IFS=$ac_save_IFS
5497 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5498
5499
5500 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5501 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5502 if test "${ac_cv_path_SED+set}" = set; then
5503   echo $ECHO_N "(cached) $ECHO_C" >&6
5504 else
5505             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5506      for ac_i in 1 2 3 4 5 6 7; do
5507        ac_script="$ac_script$as_nl$ac_script"
5508      done
5509      echo "$ac_script" | sed 99q >conftest.sed
5510      $as_unset ac_script || ac_script=
5511      # Extract the first word of "sed gsed" to use in msg output
5512 if test -z "$SED"; then
5513 set dummy sed gsed; ac_prog_name=$2
5514 if test "${ac_cv_path_SED+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   ac_path_SED_found=false
5518 # Loop through the user's path and test for each of PROGNAME-LIST
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5521 do
5522   IFS=$as_save_IFS
5523   test -z "$as_dir" && as_dir=.
5524   for ac_prog in sed gsed; do
5525   for ac_exec_ext in '' $ac_executable_extensions; do
5526     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5527     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5528     # Check for GNU ac_path_SED and select it if it is found.
5529   # Check for GNU $ac_path_SED
5530 case `"$ac_path_SED" --version 2>&1` in
5531 *GNU*)
5532   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5533 *)
5534   ac_count=0
5535   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5536   while :
5537   do
5538     cat "conftest.in" "conftest.in" >"conftest.tmp"
5539     mv "conftest.tmp" "conftest.in"
5540     cp "conftest.in" "conftest.nl"
5541     echo '' >> "conftest.nl"
5542     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5543     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5544     ac_count=`expr $ac_count + 1`
5545     if test $ac_count -gt ${ac_path_SED_max-0}; then
5546       # Best one so far, save it but keep looking for a better one
5547       ac_cv_path_SED="$ac_path_SED"
5548       ac_path_SED_max=$ac_count
5549     fi
5550     # 10*(2^10) chars as input seems more than enough
5551     test $ac_count -gt 10 && break
5552   done
5553   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5554 esac
5555
5556
5557     $ac_path_SED_found && break 3
5558   done
5559 done
5560
5561 done
5562 IFS=$as_save_IFS
5563
5564
5565 fi
5566
5567 SED="$ac_cv_path_SED"
5568 if test -z "$SED"; then
5569   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5570 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5571    { (exit 1); exit 1; }; }
5572 fi
5573
5574 else
5575   ac_cv_path_SED=$SED
5576 fi
5577
5578 fi
5579 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5580 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5581  SED="$ac_cv_path_SED"
5582   rm -f conftest.sed
5583
5584 test -z "$SED" && SED=sed
5585 Xsed="$SED -e 1s/^X//"
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597 { echo "$as_me:$LINENO: checking for fgrep" >&5
5598 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5599 if test "${ac_cv_path_FGREP+set}" = set; then
5600   echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5603    then ac_cv_path_FGREP="$GREP -F"
5604    else
5605      # Extract the first word of "fgrep" to use in msg output
5606 if test -z "$FGREP"; then
5607 set dummy fgrep; ac_prog_name=$2
5608 if test "${ac_cv_path_FGREP+set}" = set; then
5609   echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611   ac_path_FGREP_found=false
5612 # Loop through the user's path and test for each of PROGNAME-LIST
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5615 do
5616   IFS=$as_save_IFS
5617   test -z "$as_dir" && as_dir=.
5618   for ac_prog in fgrep; do
5619   for ac_exec_ext in '' $ac_executable_extensions; do
5620     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5621     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5622     # Check for GNU ac_path_FGREP and select it if it is found.
5623   # Check for GNU $ac_path_FGREP
5624 case `"$ac_path_FGREP" --version 2>&1` in
5625 *GNU*)
5626   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5627 *)
5628   ac_count=0
5629   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5630   while :
5631   do
5632     cat "conftest.in" "conftest.in" >"conftest.tmp"
5633     mv "conftest.tmp" "conftest.in"
5634     cp "conftest.in" "conftest.nl"
5635     echo 'FGREP' >> "conftest.nl"
5636     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5637     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5638     ac_count=`expr $ac_count + 1`
5639     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5640       # Best one so far, save it but keep looking for a better one
5641       ac_cv_path_FGREP="$ac_path_FGREP"
5642       ac_path_FGREP_max=$ac_count
5643     fi
5644     # 10*(2^10) chars as input seems more than enough
5645     test $ac_count -gt 10 && break
5646   done
5647   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5648 esac
5649
5650
5651     $ac_path_FGREP_found && break 3
5652   done
5653 done
5654
5655 done
5656 IFS=$as_save_IFS
5657
5658
5659 fi
5660
5661 FGREP="$ac_cv_path_FGREP"
5662 if test -z "$FGREP"; then
5663   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5664 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5665    { (exit 1); exit 1; }; }
5666 fi
5667
5668 else
5669   ac_cv_path_FGREP=$FGREP
5670 fi
5671
5672
5673    fi
5674 fi
5675 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5676 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5677  FGREP="$ac_cv_path_FGREP"
5678
5679
5680 test -z "$GREP" && GREP=grep
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700 # Check whether --with-gnu-ld was given.
5701 if test "${with_gnu_ld+set}" = set; then
5702   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5703 else
5704   with_gnu_ld=no
5705 fi
5706
5707 ac_prog=ld
5708 if test "$GCC" = yes; then
5709   # Check if gcc -print-prog-name=ld gives a path.
5710   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5711 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5712   case $host in
5713   *-*-mingw*)
5714     # gcc leaves a trailing carriage return which upsets mingw
5715     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5716   *)
5717     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5718   esac
5719   case $ac_prog in
5720     # Accept absolute paths.
5721     [\\/]* | ?:[\\/]*)
5722       re_direlt='/[^/][^/]*/\.\./'
5723       # Canonicalize the pathname of ld
5724       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5725       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5726         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5727       done
5728       test -z "$LD" && LD="$ac_prog"
5729       ;;
5730   "")
5731     # If it fails, then pretend we aren't using GCC.
5732     ac_prog=ld
5733     ;;
5734   *)
5735     # If it is relative, then search for the first ld in PATH.
5736     with_gnu_ld=unknown
5737     ;;
5738   esac
5739 elif test "$with_gnu_ld" = yes; then
5740   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5741 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5742 else
5743   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5744 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5745 fi
5746 if test "${lt_cv_path_LD+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749   if test -z "$LD"; then
5750   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5751   for ac_dir in $PATH; do
5752     IFS="$lt_save_ifs"
5753     test -z "$ac_dir" && ac_dir=.
5754     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5755       lt_cv_path_LD="$ac_dir/$ac_prog"
5756       # Check to see if the program is GNU ld.  I'd rather use --version,
5757       # but apparently some variants of GNU ld only accept -v.
5758       # Break only if it was the GNU/non-GNU ld that we prefer.
5759       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5760       *GNU* | *'with BFD'*)
5761         test "$with_gnu_ld" != no && break
5762         ;;
5763       *)
5764         test "$with_gnu_ld" != yes && break
5765         ;;
5766       esac
5767     fi
5768   done
5769   IFS="$lt_save_ifs"
5770 else
5771   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5772 fi
5773 fi
5774
5775 LD="$lt_cv_path_LD"
5776 if test -n "$LD"; then
5777   { echo "$as_me:$LINENO: result: $LD" >&5
5778 echo "${ECHO_T}$LD" >&6; }
5779 else
5780   { echo "$as_me:$LINENO: result: no" >&5
5781 echo "${ECHO_T}no" >&6; }
5782 fi
5783 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5784 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5785    { (exit 1); exit 1; }; }
5786 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5787 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5788 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5792 case `$LD -v 2>&1 </dev/null` in
5793 *GNU* | *'with BFD'*)
5794   lt_cv_prog_gnu_ld=yes
5795   ;;
5796 *)
5797   lt_cv_prog_gnu_ld=no
5798   ;;
5799 esac
5800 fi
5801 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5802 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5803 with_gnu_ld=$lt_cv_prog_gnu_ld
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5814 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5815 if test "${lt_cv_path_NM+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   if test -n "$NM"; then
5819   # Let the user override the test.
5820   lt_cv_path_NM="$NM"
5821 else
5822   lt_nm_to_check="${ac_tool_prefix}nm"
5823   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5824     lt_nm_to_check="$lt_nm_to_check nm"
5825   fi
5826   for lt_tmp_nm in $lt_nm_to_check; do
5827     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5828     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5829       IFS="$lt_save_ifs"
5830       test -z "$ac_dir" && ac_dir=.
5831       tmp_nm="$ac_dir/$lt_tmp_nm"
5832       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5833         # Check to see if the nm accepts a BSD-compat flag.
5834         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5835         #   nm: unknown option "B" ignored
5836         # Tru64's nm complains that /dev/null is an invalid object file
5837         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5838         */dev/null* | *'Invalid file or object type'*)
5839           lt_cv_path_NM="$tmp_nm -B"
5840           break
5841           ;;
5842         *)
5843           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5844           */dev/null*)
5845             lt_cv_path_NM="$tmp_nm -p"
5846             break
5847             ;;
5848           *)
5849             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5850             continue # so that we can try to find one that supports BSD flags
5851             ;;
5852           esac
5853           ;;
5854         esac
5855       fi
5856     done
5857     IFS="$lt_save_ifs"
5858   done
5859   : ${lt_cv_path_NM=no}
5860 fi
5861 fi
5862 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5863 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5864 if test "$lt_cv_path_NM" != "no"; then
5865   NM="$lt_cv_path_NM"
5866 else
5867   # Didn't find any BSD compatible name lister, look for dumpbin.
5868   if test -n "$ac_tool_prefix"; then
5869   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5870   do
5871     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5875 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   if test -n "$DUMPBIN"; then
5879   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884   IFS=$as_save_IFS
5885   test -z "$as_dir" && as_dir=.
5886   for ac_exec_ext in '' $ac_executable_extensions; do
5887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890     break 2
5891   fi
5892 done
5893 done
5894 IFS=$as_save_IFS
5895
5896 fi
5897 fi
5898 DUMPBIN=$ac_cv_prog_DUMPBIN
5899 if test -n "$DUMPBIN"; then
5900   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5901 echo "${ECHO_T}$DUMPBIN" >&6; }
5902 else
5903   { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5905 fi
5906
5907
5908     test -n "$DUMPBIN" && break
5909   done
5910 fi
5911 if test -z "$DUMPBIN"; then
5912   ac_ct_DUMPBIN=$DUMPBIN
5913   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5914 do
5915   # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy $ac_prog; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   if test -n "$ac_ct_DUMPBIN"; then
5923   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928   IFS=$as_save_IFS
5929   test -z "$as_dir" && as_dir=.
5930   for ac_exec_ext in '' $ac_executable_extensions; do
5931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934     break 2
5935   fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5943 if test -n "$ac_ct_DUMPBIN"; then
5944   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5945 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5946 else
5947   { echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6; }
5949 fi
5950
5951
5952   test -n "$ac_ct_DUMPBIN" && break
5953 done
5954
5955   if test "x$ac_ct_DUMPBIN" = x; then
5956     DUMPBIN=":"
5957   else
5958     case $cross_compiling:$ac_tool_warned in
5959 yes:)
5960 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5961 whose name does not start with the host triplet.  If you think this
5962 configuration is useful to you, please write to autoconf@gnu.org." >&5
5963 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5964 whose name does not start with the host triplet.  If you think this
5965 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5966 ac_tool_warned=yes ;;
5967 esac
5968     DUMPBIN=$ac_ct_DUMPBIN
5969   fi
5970 fi
5971
5972
5973   if test "$DUMPBIN" != ":"; then
5974     NM="$DUMPBIN"
5975   fi
5976 fi
5977 test -z "$NM" && NM=nm
5978
5979
5980
5981
5982
5983
5984 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5985 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5986 if test "${lt_cv_nm_interface+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   lt_cv_nm_interface="BSD nm"
5990   echo "int some_variable = 0;" > conftest.$ac_ext
5991   (eval echo "\"\$as_me:5991: $ac_compile\"" >&5)
5992   (eval "$ac_compile" 2>conftest.err)
5993   cat conftest.err >&5
5994   (eval echo "\"\$as_me:5994: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5995   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5996   cat conftest.err >&5
5997   (eval echo "\"\$as_me:5997: output\"" >&5)
5998   cat conftest.out >&5
5999   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6000     lt_cv_nm_interface="MS dumpbin"
6001   fi
6002   rm -f conftest*
6003 fi
6004 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6005 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6006
6007 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6008 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6009 LN_S=$as_ln_s
6010 if test "$LN_S" = "ln -s"; then
6011   { echo "$as_me:$LINENO: result: yes" >&5
6012 echo "${ECHO_T}yes" >&6; }
6013 else
6014   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6015 echo "${ECHO_T}no, using $LN_S" >&6; }
6016 fi
6017
6018 # find the maximum length of command line arguments
6019 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6020 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6021 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6022   echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024     i=0
6025   teststring="ABCD"
6026
6027   case $build_os in
6028   msdosdjgpp*)
6029     # On DJGPP, this test can blow up pretty badly due to problems in libc
6030     # (any single argument exceeding 2000 bytes causes a buffer overrun
6031     # during glob expansion).  Even if it were fixed, the result of this
6032     # check would be larger than it should be.
6033     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6034     ;;
6035
6036   gnu*)
6037     # Under GNU Hurd, this test is not required because there is
6038     # no limit to the length of command line arguments.
6039     # Libtool will interpret -1 as no limit whatsoever
6040     lt_cv_sys_max_cmd_len=-1;
6041     ;;
6042
6043   cygwin* | mingw* | cegcc*)
6044     # On Win9x/ME, this test blows up -- it succeeds, but takes
6045     # about 5 minutes as the teststring grows exponentially.
6046     # Worse, since 9x/ME are not pre-emptively multitasking,
6047     # you end up with a "frozen" computer, even though with patience
6048     # the test eventually succeeds (with a max line length of 256k).
6049     # Instead, let's just punt: use the minimum linelength reported by
6050     # all of the supported platforms: 8192 (on NT/2K/XP).
6051     lt_cv_sys_max_cmd_len=8192;
6052     ;;
6053
6054   amigaos*)
6055     # On AmigaOS with pdksh, this test takes hours, literally.
6056     # So we just punt and use a minimum line length of 8192.
6057     lt_cv_sys_max_cmd_len=8192;
6058     ;;
6059
6060   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6061     # This has been around since 386BSD, at least.  Likely further.
6062     if test -x /sbin/sysctl; then
6063       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6064     elif test -x /usr/sbin/sysctl; then
6065       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6066     else
6067       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6068     fi
6069     # And add a safety zone
6070     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6071     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6072     ;;
6073
6074   interix*)
6075     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6076     lt_cv_sys_max_cmd_len=196608
6077     ;;
6078
6079   osf*)
6080     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6081     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6082     # nice to cause kernel panics so lets avoid the loop below.
6083     # First set a reasonable default.
6084     lt_cv_sys_max_cmd_len=16384
6085     #
6086     if test -x /sbin/sysconfig; then
6087       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6088         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6089       esac
6090     fi
6091     ;;
6092   sco3.2v5*)
6093     lt_cv_sys_max_cmd_len=102400
6094     ;;
6095   sysv5* | sco5v6* | sysv4.2uw2*)
6096     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6097     if test -n "$kargmax"; then
6098       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6099     else
6100       lt_cv_sys_max_cmd_len=32768
6101     fi
6102     ;;
6103   *)
6104     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6105     if test -n "$lt_cv_sys_max_cmd_len"; then
6106       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6107       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6108     else
6109       # Make teststring a little bigger before we do anything with it.
6110       # a 1K string should be a reasonable start.
6111       for i in 1 2 3 4 5 6 7 8 ; do
6112         teststring=$teststring$teststring
6113       done
6114       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6115       # If test is not a shell built-in, we'll probably end up computing a
6116       # maximum length that is only half of the actual maximum length, but
6117       # we can't tell.
6118       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6119                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6120               test $i != 17 # 1/2 MB should be enough
6121       do
6122         i=`expr $i + 1`
6123         teststring=$teststring$teststring
6124       done
6125       # Only check the string length outside the loop.
6126       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6127       teststring=
6128       # Add a significant safety factor because C++ compilers can tack on
6129       # massive amounts of additional arguments before passing them to the
6130       # linker.  It appears as though 1/2 is a usable value.
6131       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6132     fi
6133     ;;
6134   esac
6135
6136 fi
6137
6138 if test -n $lt_cv_sys_max_cmd_len ; then
6139   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6140 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6141 else
6142   { echo "$as_me:$LINENO: result: none" >&5
6143 echo "${ECHO_T}none" >&6; }
6144 fi
6145 max_cmd_len=$lt_cv_sys_max_cmd_len
6146
6147
6148
6149
6150
6151
6152 : ${CP="cp -f"}
6153 : ${MV="mv -f"}
6154 : ${RM="rm -f"}
6155
6156 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6157 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6158 # Try some XSI features
6159 xsi_shell=no
6160 ( _lt_dummy="a/b/c"
6161   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6162       = c,a/b,, \
6163     && eval 'test $(( 1 + 1 )) -eq 2 \
6164     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6165   && xsi_shell=yes
6166 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6167 echo "${ECHO_T}$xsi_shell" >&6; }
6168
6169
6170 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6171 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6172 lt_shell_append=no
6173 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6174     >/dev/null 2>&1 \
6175   && lt_shell_append=yes
6176 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6177 echo "${ECHO_T}$lt_shell_append" >&6; }
6178
6179
6180 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6181   lt_unset=unset
6182 else
6183   lt_unset=false
6184 fi
6185
6186
6187
6188
6189
6190 # test EBCDIC or ASCII
6191 case `echo X|tr X '\101'` in
6192  A) # ASCII based system
6193     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6194   lt_SP2NL='tr \040 \012'
6195   lt_NL2SP='tr \015\012 \040\040'
6196   ;;
6197  *) # EBCDIC based system
6198   lt_SP2NL='tr \100 \n'
6199   lt_NL2SP='tr \r\n \100\100'
6200   ;;
6201 esac
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6212 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6213 if test "${lt_cv_ld_reload_flag+set}" = set; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216   lt_cv_ld_reload_flag='-r'
6217 fi
6218 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6219 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6220 reload_flag=$lt_cv_ld_reload_flag
6221 case $reload_flag in
6222 "" | " "*) ;;
6223 *) reload_flag=" $reload_flag" ;;
6224 esac
6225 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6226 case $host_os in
6227   darwin*)
6228     if test "$GCC" = yes; then
6229       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6230     else
6231       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6232     fi
6233     ;;
6234 esac
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244 if test -n "$ac_tool_prefix"; then
6245   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6249 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6250   echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252   if test -n "$OBJDUMP"; then
6253   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258   IFS=$as_save_IFS
6259   test -z "$as_dir" && as_dir=.
6260   for ac_exec_ext in '' $ac_executable_extensions; do
6261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264     break 2
6265   fi
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 OBJDUMP=$ac_cv_prog_OBJDUMP
6273 if test -n "$OBJDUMP"; then
6274   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6275 echo "${ECHO_T}$OBJDUMP" >&6; }
6276 else
6277   { echo "$as_me:$LINENO: result: no" >&5
6278 echo "${ECHO_T}no" >&6; }
6279 fi
6280
6281
6282 fi
6283 if test -z "$ac_cv_prog_OBJDUMP"; then
6284   ac_ct_OBJDUMP=$OBJDUMP
6285   # Extract the first word of "objdump", so it can be a program name with args.
6286 set dummy objdump; ac_word=$2
6287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6289 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   if test -n "$ac_ct_OBJDUMP"; then
6293   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298   IFS=$as_save_IFS
6299   test -z "$as_dir" && as_dir=.
6300   for ac_exec_ext in '' $ac_executable_extensions; do
6301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304     break 2
6305   fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6313 if test -n "$ac_ct_OBJDUMP"; then
6314   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6315 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6316 else
6317   { echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6; }
6319 fi
6320
6321   if test "x$ac_ct_OBJDUMP" = x; then
6322     OBJDUMP="false"
6323   else
6324     case $cross_compiling:$ac_tool_warned in
6325 yes:)
6326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6327 whose name does not start with the host triplet.  If you think this
6328 configuration is useful to you, please write to autoconf@gnu.org." >&5
6329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6330 whose name does not start with the host triplet.  If you think this
6331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6332 ac_tool_warned=yes ;;
6333 esac
6334     OBJDUMP=$ac_ct_OBJDUMP
6335   fi
6336 else
6337   OBJDUMP="$ac_cv_prog_OBJDUMP"
6338 fi
6339
6340 test -z "$OBJDUMP" && OBJDUMP=objdump
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6351 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6352 if test "${lt_cv_deplibs_check_method+set}" = set; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   lt_cv_file_magic_cmd='$MAGIC_CMD'
6356 lt_cv_file_magic_test_file=
6357 lt_cv_deplibs_check_method='unknown'
6358 # Need to set the preceding variable on all platforms that support
6359 # interlibrary dependencies.
6360 # 'none' -- dependencies not supported.
6361 # `unknown' -- same as none, but documents that we really don't know.
6362 # 'pass_all' -- all dependencies passed with no checks.
6363 # 'test_compile' -- check by making test program.
6364 # 'file_magic [[regex]]' -- check by looking for files in library path
6365 # which responds to the $file_magic_cmd with a given extended regex.
6366 # If you have `file' or equivalent on your system and you're not sure
6367 # whether `pass_all' will *always* work, you probably want this one.
6368
6369 case $host_os in
6370 aix[4-9]*)
6371   lt_cv_deplibs_check_method=pass_all
6372   ;;
6373
6374 beos*)
6375   lt_cv_deplibs_check_method=pass_all
6376   ;;
6377
6378 bsdi[45]*)
6379   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6380   lt_cv_file_magic_cmd='/usr/bin/file -L'
6381   lt_cv_file_magic_test_file=/shlib/libc.so
6382   ;;
6383
6384 cygwin*)
6385   # func_win32_libid is a shell function defined in ltmain.sh
6386   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6387   lt_cv_file_magic_cmd='func_win32_libid'
6388   ;;
6389
6390 mingw* | pw32*)
6391   # Base MSYS/MinGW do not provide the 'file' command needed by
6392   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6393   # unless we find 'file', for example because we are cross-compiling.
6394   if ( file / ) >/dev/null 2>&1; then
6395     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6396     lt_cv_file_magic_cmd='func_win32_libid'
6397   else
6398     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6399     lt_cv_file_magic_cmd='$OBJDUMP -f'
6400   fi
6401   ;;
6402
6403 cegcc)
6404   # use the weaker test based on 'objdump'. See mingw*.
6405   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6406   lt_cv_file_magic_cmd='$OBJDUMP -f'
6407   ;;
6408
6409 darwin* | rhapsody*)
6410   lt_cv_deplibs_check_method=pass_all
6411   ;;
6412
6413 freebsd* | dragonfly*)
6414   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6415     case $host_cpu in
6416     i*86 )
6417       # Not sure whether the presence of OpenBSD here was a mistake.
6418       # Let's accept both of them until this is cleared up.
6419       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6420       lt_cv_file_magic_cmd=/usr/bin/file
6421       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6422       ;;
6423     esac
6424   else
6425     lt_cv_deplibs_check_method=pass_all
6426   fi
6427   ;;
6428
6429 gnu*)
6430   lt_cv_deplibs_check_method=pass_all
6431   ;;
6432
6433 hpux10.20* | hpux11*)
6434   lt_cv_file_magic_cmd=/usr/bin/file
6435   case $host_cpu in
6436   ia64*)
6437     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6438     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6439     ;;
6440   hppa*64*)
6441     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6442     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6443     ;;
6444   *)
6445     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6446     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6447     ;;
6448   esac
6449   ;;
6450
6451 interix[3-9]*)
6452   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6453   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6454   ;;
6455
6456 irix5* | irix6* | nonstopux*)
6457   case $LD in
6458   *-32|*"-32 ") libmagic=32-bit;;
6459   *-n32|*"-n32 ") libmagic=N32;;
6460   *-64|*"-64 ") libmagic=64-bit;;
6461   *) libmagic=never-match;;
6462   esac
6463   lt_cv_deplibs_check_method=pass_all
6464   ;;
6465
6466 # This must be Linux ELF.
6467 linux* | k*bsd*-gnu)
6468   lt_cv_deplibs_check_method=pass_all
6469   ;;
6470
6471 netbsd*)
6472   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6473     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6474   else
6475     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6476   fi
6477   ;;
6478
6479 newos6*)
6480   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6481   lt_cv_file_magic_cmd=/usr/bin/file
6482   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6483   ;;
6484
6485 *nto* | *qnx*)
6486   lt_cv_deplibs_check_method=pass_all
6487   ;;
6488
6489 openbsd*)
6490   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6491     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6492   else
6493     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6494   fi
6495   ;;
6496
6497 osf3* | osf4* | osf5*)
6498   lt_cv_deplibs_check_method=pass_all
6499   ;;
6500
6501 rdos*)
6502   lt_cv_deplibs_check_method=pass_all
6503   ;;
6504
6505 solaris*)
6506   lt_cv_deplibs_check_method=pass_all
6507   ;;
6508
6509 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6510   lt_cv_deplibs_check_method=pass_all
6511   ;;
6512
6513 sysv4 | sysv4.3*)
6514   case $host_vendor in
6515   motorola)
6516     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6517     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6518     ;;
6519   ncr)
6520     lt_cv_deplibs_check_method=pass_all
6521     ;;
6522   sequent)
6523     lt_cv_file_magic_cmd='/bin/file'
6524     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6525     ;;
6526   sni)
6527     lt_cv_file_magic_cmd='/bin/file'
6528     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6529     lt_cv_file_magic_test_file=/lib/libc.so
6530     ;;
6531   siemens)
6532     lt_cv_deplibs_check_method=pass_all
6533     ;;
6534   pc)
6535     lt_cv_deplibs_check_method=pass_all
6536     ;;
6537   esac
6538   ;;
6539
6540 tpf*)
6541   lt_cv_deplibs_check_method=pass_all
6542   ;;
6543 esac
6544
6545 fi
6546 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6547 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6548 file_magic_cmd=$lt_cv_file_magic_cmd
6549 deplibs_check_method=$lt_cv_deplibs_check_method
6550 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563 if test -n "$ac_tool_prefix"; then
6564   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}ar; ac_word=$2
6566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568 if test "${ac_cv_prog_AR+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   if test -n "$AR"; then
6572   ac_cv_prog_AR="$AR" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579   for ac_exec_ext in '' $ac_executable_extensions; do
6580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581     ac_cv_prog_AR="${ac_tool_prefix}ar"
6582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 AR=$ac_cv_prog_AR
6592 if test -n "$AR"; then
6593   { echo "$as_me:$LINENO: result: $AR" >&5
6594 echo "${ECHO_T}$AR" >&6; }
6595 else
6596   { echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6; }
6598 fi
6599
6600
6601 fi
6602 if test -z "$ac_cv_prog_AR"; then
6603   ac_ct_AR=$AR
6604   # Extract the first word of "ar", so it can be a program name with args.
6605 set dummy ar; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   if test -n "$ac_ct_AR"; then
6612   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619   for ac_exec_ext in '' $ac_executable_extensions; do
6620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621     ac_cv_prog_ac_ct_AR="ar"
6622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626 done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6632 if test -n "$ac_ct_AR"; then
6633   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6634 echo "${ECHO_T}$ac_ct_AR" >&6; }
6635 else
6636   { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6638 fi
6639
6640   if test "x$ac_ct_AR" = x; then
6641     AR="false"
6642   else
6643     case $cross_compiling:$ac_tool_warned in
6644 yes:)
6645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6646 whose name does not start with the host triplet.  If you think this
6647 configuration is useful to you, please write to autoconf@gnu.org." >&5
6648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6649 whose name does not start with the host triplet.  If you think this
6650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6651 ac_tool_warned=yes ;;
6652 esac
6653     AR=$ac_ct_AR
6654   fi
6655 else
6656   AR="$ac_cv_prog_AR"
6657 fi
6658
6659 test -z "$AR" && AR=ar
6660 test -z "$AR_FLAGS" && AR_FLAGS=cru
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672 if test -n "$ac_tool_prefix"; then
6673   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}strip; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_prog_STRIP+set}" = set; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   if test -n "$STRIP"; then
6681   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688   for ac_exec_ext in '' $ac_executable_extensions; do
6689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 STRIP=$ac_cv_prog_STRIP
6701 if test -n "$STRIP"; then
6702   { echo "$as_me:$LINENO: result: $STRIP" >&5
6703 echo "${ECHO_T}$STRIP" >&6; }
6704 else
6705   { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6707 fi
6708
6709
6710 fi
6711 if test -z "$ac_cv_prog_STRIP"; then
6712   ac_ct_STRIP=$STRIP
6713   # Extract the first word of "strip", so it can be a program name with args.
6714 set dummy strip; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6718   echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720   if test -n "$ac_ct_STRIP"; then
6721   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726   IFS=$as_save_IFS
6727   test -z "$as_dir" && as_dir=.
6728   for ac_exec_ext in '' $ac_executable_extensions; do
6729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730     ac_cv_prog_ac_ct_STRIP="strip"
6731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732     break 2
6733   fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6741 if test -n "$ac_ct_STRIP"; then
6742   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6743 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6744 else
6745   { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6747 fi
6748
6749   if test "x$ac_ct_STRIP" = x; then
6750     STRIP=":"
6751   else
6752     case $cross_compiling:$ac_tool_warned in
6753 yes:)
6754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6755 whose name does not start with the host triplet.  If you think this
6756 configuration is useful to you, please write to autoconf@gnu.org." >&5
6757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6758 whose name does not start with the host triplet.  If you think this
6759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762     STRIP=$ac_ct_STRIP
6763   fi
6764 else
6765   STRIP="$ac_cv_prog_STRIP"
6766 fi
6767
6768 test -z "$STRIP" && STRIP=:
6769
6770
6771
6772
6773
6774
6775 if test -n "$ac_tool_prefix"; then
6776   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_prog_RANLIB+set}" = set; then
6781   echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783   if test -n "$RANLIB"; then
6784   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789   IFS=$as_save_IFS
6790   test -z "$as_dir" && as_dir=.
6791   for ac_exec_ext in '' $ac_executable_extensions; do
6792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795     break 2
6796   fi
6797 done
6798 done
6799 IFS=$as_save_IFS
6800
6801 fi
6802 fi
6803 RANLIB=$ac_cv_prog_RANLIB
6804 if test -n "$RANLIB"; then
6805   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6806 echo "${ECHO_T}$RANLIB" >&6; }
6807 else
6808   { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6810 fi
6811
6812
6813 fi
6814 if test -z "$ac_cv_prog_RANLIB"; then
6815   ac_ct_RANLIB=$RANLIB
6816   # Extract the first word of "ranlib", so it can be a program name with args.
6817 set dummy ranlib; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   if test -n "$ac_ct_RANLIB"; then
6824   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829   IFS=$as_save_IFS
6830   test -z "$as_dir" && as_dir=.
6831   for ac_exec_ext in '' $ac_executable_extensions; do
6832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833     ac_cv_prog_ac_ct_RANLIB="ranlib"
6834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835     break 2
6836   fi
6837 done
6838 done
6839 IFS=$as_save_IFS
6840
6841 fi
6842 fi
6843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6844 if test -n "$ac_ct_RANLIB"; then
6845   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6846 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6847 else
6848   { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6850 fi
6851
6852   if test "x$ac_ct_RANLIB" = x; then
6853     RANLIB=":"
6854   else
6855     case $cross_compiling:$ac_tool_warned in
6856 yes:)
6857 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6858 whose name does not start with the host triplet.  If you think this
6859 configuration is useful to you, please write to autoconf@gnu.org." >&5
6860 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6861 whose name does not start with the host triplet.  If you think this
6862 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6863 ac_tool_warned=yes ;;
6864 esac
6865     RANLIB=$ac_ct_RANLIB
6866   fi
6867 else
6868   RANLIB="$ac_cv_prog_RANLIB"
6869 fi
6870
6871 test -z "$RANLIB" && RANLIB=:
6872
6873
6874
6875
6876
6877
6878 # Determine commands to create old-style static archives.
6879 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6880 old_postinstall_cmds='chmod 644 $oldlib'
6881 old_postuninstall_cmds=
6882
6883 if test -n "$RANLIB"; then
6884   case $host_os in
6885   openbsd*)
6886     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6887     ;;
6888   *)
6889     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6890     ;;
6891   esac
6892   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6893 fi
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928 # If no C compiler was specified, use CC.
6929 LTCC=${LTCC-"$CC"}
6930
6931 # If no C compiler flags were specified, use CFLAGS.
6932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6933
6934 # Allow CC to be a program name with arguments.
6935 compiler=$CC
6936
6937
6938 # Check for command to grab the raw symbol name followed by C symbol from nm.
6939 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6940 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6941 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6942   echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944
6945 # These are sane defaults that work on at least a few old systems.
6946 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6947
6948 # Character class describing NM global symbol codes.
6949 symcode='[BCDEGRST]'
6950
6951 # Regexp to match symbols that can be accessed directly from C.
6952 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6953
6954 # Define system-specific variables.
6955 case $host_os in
6956 aix*)
6957   symcode='[BCDT]'
6958   ;;
6959 cygwin* | mingw* | pw32* | cegcc*)
6960   symcode='[ABCDGISTW]'
6961   ;;
6962 hpux*)
6963   if test "$host_cpu" = ia64; then
6964     symcode='[ABCDEGRST]'
6965   fi
6966   ;;
6967 irix* | nonstopux*)
6968   symcode='[BCDEGRST]'
6969   ;;
6970 osf*)
6971   symcode='[BCDEGQRST]'
6972   ;;
6973 solaris*)
6974   symcode='[BDRT]'
6975   ;;
6976 sco3.2v5*)
6977   symcode='[DT]'
6978   ;;
6979 sysv4.2uw2*)
6980   symcode='[DT]'
6981   ;;
6982 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6983   symcode='[ABDT]'
6984   ;;
6985 sysv4)
6986   symcode='[DFNSTU]'
6987   ;;
6988 esac
6989
6990 # If we're using GNU nm, then use its standard symbol codes.
6991 case `$NM -V 2>&1` in
6992 *GNU* | *'with BFD'*)
6993   symcode='[ABCDGIRSTW]' ;;
6994 esac
6995
6996 # Transform an extracted symbol line into a proper C declaration.
6997 # Some systems (esp. on ia64) link data and code symbols differently,
6998 # so use this general approach.
6999 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7000
7001 # Transform an extracted symbol line into symbol name and symbol address
7002 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7003 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7004
7005 # Handle CRLF in mingw tool chain
7006 opt_cr=
7007 case $build_os in
7008 mingw*)
7009   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7010   ;;
7011 esac
7012
7013 # Try without a prefix underscore, then with it.
7014 for ac_symprfx in "" "_"; do
7015
7016   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7017   symxfrm="\\1 $ac_symprfx\\2 \\2"
7018
7019   # Write the raw and C identifiers.
7020   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7021     # Fake it for dumpbin and say T for any non-static function
7022     # and D for any global variable.
7023     # Also find C++ and __fastcall symbols from MSVC++,
7024     # which start with @ or ?.
7025     lt_cv_sys_global_symbol_pipe="$AWK '"\
7026 "     {last_section=section; section=\$ 3};"\
7027 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7028 "     \$ 0!~/External *\|/{next};"\
7029 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7030 "     {if(hide[section]) next};"\
7031 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7032 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7033 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7034 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7035 "     ' prfx=^$ac_symprfx"
7036   else
7037     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7038   fi
7039
7040   # Check to see that the pipe works correctly.
7041   pipe_works=no
7042
7043   rm -f conftest*
7044   cat > conftest.$ac_ext <<_LT_EOF
7045 #ifdef __cplusplus
7046 extern "C" {
7047 #endif
7048 char nm_test_var;
7049 void nm_test_func(void);
7050 void nm_test_func(void){}
7051 #ifdef __cplusplus
7052 }
7053 #endif
7054 int main(){nm_test_var='a';nm_test_func();return(0);}
7055 _LT_EOF
7056
7057   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7058   (eval $ac_compile) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); }; then
7062     # Now try to grab the symbols.
7063     nlist=conftest.nm
7064     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7065   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); } && test -s "$nlist"; then
7069       # Try sorting and uniquifying the output.
7070       if sort "$nlist" | uniq > "$nlist"T; then
7071         mv -f "$nlist"T "$nlist"
7072       else
7073         rm -f "$nlist"T
7074       fi
7075
7076       # Make sure that we snagged all the symbols we need.
7077       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7078         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7079           cat <<_LT_EOF > conftest.$ac_ext
7080 #ifdef __cplusplus
7081 extern "C" {
7082 #endif
7083
7084 _LT_EOF
7085           # Now generate the symbol file.
7086           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7087
7088           cat <<_LT_EOF >> conftest.$ac_ext
7089
7090 /* The mapping between symbol names and symbols.  */
7091 const struct {
7092   const char *name;
7093   void       *address;
7094 }
7095 lt__PROGRAM__LTX_preloaded_symbols[] =
7096 {
7097   { "@PROGRAM@", (void *) 0 },
7098 _LT_EOF
7099           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7100           cat <<\_LT_EOF >> conftest.$ac_ext
7101   {0, (void *) 0}
7102 };
7103
7104 /* This works around a problem in FreeBSD linker */
7105 #ifdef FREEBSD_WORKAROUND
7106 static const void *lt_preloaded_setup() {
7107   return lt__PROGRAM__LTX_preloaded_symbols;
7108 }
7109 #endif
7110
7111 #ifdef __cplusplus
7112 }
7113 #endif
7114 _LT_EOF
7115           # Now try linking the two files.
7116           mv conftest.$ac_objext conftstm.$ac_objext
7117           lt_save_LIBS="$LIBS"
7118           lt_save_CFLAGS="$CFLAGS"
7119           LIBS="conftstm.$ac_objext"
7120           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7121           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122   (eval $ac_link) 2>&5
7123   ac_status=$?
7124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7126             pipe_works=yes
7127           fi
7128           LIBS="$lt_save_LIBS"
7129           CFLAGS="$lt_save_CFLAGS"
7130         else
7131           echo "cannot find nm_test_func in $nlist" >&5
7132         fi
7133       else
7134         echo "cannot find nm_test_var in $nlist" >&5
7135       fi
7136     else
7137       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7138     fi
7139   else
7140     echo "$progname: failed program was:" >&5
7141     cat conftest.$ac_ext >&5
7142   fi
7143   rm -rf conftest* conftst*
7144
7145   # Do not use the global_symbol_pipe unless it works.
7146   if test "$pipe_works" = yes; then
7147     break
7148   else
7149     lt_cv_sys_global_symbol_pipe=
7150   fi
7151 done
7152
7153 fi
7154
7155 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7156   lt_cv_sys_global_symbol_to_cdecl=
7157 fi
7158 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7159   { echo "$as_me:$LINENO: result: failed" >&5
7160 echo "${ECHO_T}failed" >&6; }
7161 else
7162   { echo "$as_me:$LINENO: result: ok" >&5
7163 echo "${ECHO_T}ok" >&6; }
7164 fi
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187 # Check whether --enable-libtool-lock was given.
7188 if test "${enable_libtool_lock+set}" = set; then
7189   enableval=$enable_libtool_lock;
7190 fi
7191
7192 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7193
7194 # Some flags need to be propagated to the compiler or linker for good
7195 # libtool support.
7196 case $host in
7197 ia64-*-hpux*)
7198   # Find out which ABI we are using.
7199   echo 'int i;' > conftest.$ac_ext
7200   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201   (eval $ac_compile) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); }; then
7205     case `/usr/bin/file conftest.$ac_objext` in
7206       *ELF-32*)
7207         HPUX_IA64_MODE="32"
7208         ;;
7209       *ELF-64*)
7210         HPUX_IA64_MODE="64"
7211         ;;
7212     esac
7213   fi
7214   rm -rf conftest*
7215   ;;
7216 *-*-irix6*)
7217   # Find out which ABI we are using.
7218   echo '#line 7218 "configure"' > conftest.$ac_ext
7219   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7220   (eval $ac_compile) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); }; then
7224     if test "$lt_cv_prog_gnu_ld" = yes; then
7225       case `/usr/bin/file conftest.$ac_objext` in
7226         *32-bit*)
7227           LD="${LD-ld} -melf32bsmip"
7228           ;;
7229         *N32*)
7230           LD="${LD-ld} -melf32bmipn32"
7231           ;;
7232         *64-bit*)
7233           LD="${LD-ld} -melf64bmip"
7234         ;;
7235       esac
7236     else
7237       case `/usr/bin/file conftest.$ac_objext` in
7238         *32-bit*)
7239           LD="${LD-ld} -32"
7240           ;;
7241         *N32*)
7242           LD="${LD-ld} -n32"
7243           ;;
7244         *64-bit*)
7245           LD="${LD-ld} -64"
7246           ;;
7247       esac
7248     fi
7249   fi
7250   rm -rf conftest*
7251   ;;
7252
7253 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7254 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7255   # Find out which ABI we are using.
7256   echo 'int i;' > conftest.$ac_ext
7257   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258   (eval $ac_compile) 2>&5
7259   ac_status=$?
7260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261   (exit $ac_status); }; then
7262     case `/usr/bin/file conftest.o` in
7263       *32-bit*)
7264         case $host in
7265           x86_64-*kfreebsd*-gnu)
7266             LD="${LD-ld} -m elf_i386_fbsd"
7267             ;;
7268           x86_64-*linux*)
7269             LD="${LD-ld} -m elf_i386"
7270             ;;
7271           ppc64-*linux*|powerpc64-*linux*)
7272             LD="${LD-ld} -m elf32ppclinux"
7273             ;;
7274           s390x-*linux*)
7275             LD="${LD-ld} -m elf_s390"
7276             ;;
7277           sparc64-*linux*)
7278             LD="${LD-ld} -m elf32_sparc"
7279             ;;
7280         esac
7281         ;;
7282       *64-bit*)
7283         case $host in
7284           x86_64-*kfreebsd*-gnu)
7285             LD="${LD-ld} -m elf_x86_64_fbsd"
7286             ;;
7287           x86_64-*linux*)
7288             LD="${LD-ld} -m elf_x86_64"
7289             ;;
7290           ppc*-*linux*|powerpc*-*linux*)
7291             LD="${LD-ld} -m elf64ppc"
7292             ;;
7293           s390*-*linux*|s390*-*tpf*)
7294             LD="${LD-ld} -m elf64_s390"
7295             ;;
7296           sparc*-*linux*)
7297             LD="${LD-ld} -m elf64_sparc"
7298             ;;
7299         esac
7300         ;;
7301     esac
7302   fi
7303   rm -rf conftest*
7304   ;;
7305
7306 *-*-sco3.2v5*)
7307   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7308   SAVE_CFLAGS="$CFLAGS"
7309   CFLAGS="$CFLAGS -belf"
7310   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7311 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7312 if test "${lt_cv_cc_needs_belf+set}" = set; then
7313   echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315   ac_ext=c
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7320
7321      cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h.  */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h.  */
7327
7328 int
7329 main ()
7330 {
7331
7332   ;
7333   return 0;
7334 }
7335 _ACEOF
7336 rm -f conftest.$ac_objext conftest$ac_exeext
7337 if { (ac_try="$ac_link"
7338 case "(($ac_try" in
7339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340   *) ac_try_echo=$ac_try;;
7341 esac
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343   (eval "$ac_link") 2>conftest.er1
7344   ac_status=$?
7345   grep -v '^ *+' conftest.er1 >conftest.err
7346   rm -f conftest.er1
7347   cat conftest.err >&5
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); } && {
7350          test -z "$ac_c_werror_flag" ||
7351          test ! -s conftest.err
7352        } && test -s conftest$ac_exeext &&
7353        $as_test_x conftest$ac_exeext; then
7354   lt_cv_cc_needs_belf=yes
7355 else
7356   echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7358
7359         lt_cv_cc_needs_belf=no
7360 fi
7361
7362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7363       conftest$ac_exeext conftest.$ac_ext
7364      ac_ext=c
7365 ac_cpp='$CPP $CPPFLAGS'
7366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7369
7370 fi
7371 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7372 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7373   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7374     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7375     CFLAGS="$SAVE_CFLAGS"
7376   fi
7377   ;;
7378 sparc*-*solaris*)
7379   # Find out which ABI we are using.
7380   echo 'int i;' > conftest.$ac_ext
7381   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7382   (eval $ac_compile) 2>&5
7383   ac_status=$?
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); }; then
7386     case `/usr/bin/file conftest.o` in
7387     *64-bit*)
7388       case $lt_cv_prog_gnu_ld in
7389       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7390       *)
7391         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7392           LD="${LD-ld} -64"
7393         fi
7394         ;;
7395       esac
7396       ;;
7397     esac
7398   fi
7399   rm -rf conftest*
7400   ;;
7401 esac
7402
7403 need_locks="$enable_libtool_lock"
7404
7405
7406   case $host_os in
7407     rhapsody* | darwin*)
7408     if test -n "$ac_tool_prefix"; then
7409   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7410 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   if test -n "$DSYMUTIL"; then
7417   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422   IFS=$as_save_IFS
7423   test -z "$as_dir" && as_dir=.
7424   for ac_exec_ext in '' $ac_executable_extensions; do
7425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428     break 2
7429   fi
7430 done
7431 done
7432 IFS=$as_save_IFS
7433
7434 fi
7435 fi
7436 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7437 if test -n "$DSYMUTIL"; then
7438   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7439 echo "${ECHO_T}$DSYMUTIL" >&6; }
7440 else
7441   { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7443 fi
7444
7445
7446 fi
7447 if test -z "$ac_cv_prog_DSYMUTIL"; then
7448   ac_ct_DSYMUTIL=$DSYMUTIL
7449   # Extract the first word of "dsymutil", so it can be a program name with args.
7450 set dummy dsymutil; ac_word=$2
7451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7454   echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456   if test -n "$ac_ct_DSYMUTIL"; then
7457   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464   for ac_exec_ext in '' $ac_executable_extensions; do
7465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7466     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471 done
7472 IFS=$as_save_IFS
7473
7474 fi
7475 fi
7476 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7477 if test -n "$ac_ct_DSYMUTIL"; then
7478   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7479 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7480 else
7481   { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7483 fi
7484
7485   if test "x$ac_ct_DSYMUTIL" = x; then
7486     DSYMUTIL=":"
7487   else
7488     case $cross_compiling:$ac_tool_warned in
7489 yes:)
7490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7491 whose name does not start with the host triplet.  If you think this
7492 configuration is useful to you, please write to autoconf@gnu.org." >&5
7493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7494 whose name does not start with the host triplet.  If you think this
7495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7496 ac_tool_warned=yes ;;
7497 esac
7498     DSYMUTIL=$ac_ct_DSYMUTIL
7499   fi
7500 else
7501   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7502 fi
7503
7504     if test -n "$ac_tool_prefix"; then
7505   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7506 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7510   echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512   if test -n "$NMEDIT"; then
7513   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520   for ac_exec_ext in '' $ac_executable_extensions; do
7521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530 fi
7531 fi
7532 NMEDIT=$ac_cv_prog_NMEDIT
7533 if test -n "$NMEDIT"; then
7534   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7535 echo "${ECHO_T}$NMEDIT" >&6; }
7536 else
7537   { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7539 fi
7540
7541
7542 fi
7543 if test -z "$ac_cv_prog_NMEDIT"; then
7544   ac_ct_NMEDIT=$NMEDIT
7545   # Extract the first word of "nmedit", so it can be a program name with args.
7546 set dummy nmedit; ac_word=$2
7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7550   echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552   if test -n "$ac_ct_NMEDIT"; then
7553   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560   for ac_exec_ext in '' $ac_executable_extensions; do
7561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567 done
7568 IFS=$as_save_IFS
7569
7570 fi
7571 fi
7572 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7573 if test -n "$ac_ct_NMEDIT"; then
7574   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7575 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7576 else
7577   { echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6; }
7579 fi
7580
7581   if test "x$ac_ct_NMEDIT" = x; then
7582     NMEDIT=":"
7583   else
7584     case $cross_compiling:$ac_tool_warned in
7585 yes:)
7586 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7587 whose name does not start with the host triplet.  If you think this
7588 configuration is useful to you, please write to autoconf@gnu.org." >&5
7589 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7590 whose name does not start with the host triplet.  If you think this
7591 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7592 ac_tool_warned=yes ;;
7593 esac
7594     NMEDIT=$ac_ct_NMEDIT
7595   fi
7596 else
7597   NMEDIT="$ac_cv_prog_NMEDIT"
7598 fi
7599
7600     if test -n "$ac_tool_prefix"; then
7601   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7602 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7605 if test "${ac_cv_prog_LIPO+set}" = set; then
7606   echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608   if test -n "$LIPO"; then
7609   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7613 do
7614   IFS=$as_save_IFS
7615   test -z "$as_dir" && as_dir=.
7616   for ac_exec_ext in '' $ac_executable_extensions; do
7617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620     break 2
7621   fi
7622 done
7623 done
7624 IFS=$as_save_IFS
7625
7626 fi
7627 fi
7628 LIPO=$ac_cv_prog_LIPO
7629 if test -n "$LIPO"; then
7630   { echo "$as_me:$LINENO: result: $LIPO" >&5
7631 echo "${ECHO_T}$LIPO" >&6; }
7632 else
7633   { echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6; }
7635 fi
7636
7637
7638 fi
7639 if test -z "$ac_cv_prog_LIPO"; then
7640   ac_ct_LIPO=$LIPO
7641   # Extract the first word of "lipo", so it can be a program name with args.
7642 set dummy lipo; ac_word=$2
7643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7646   echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648   if test -n "$ac_ct_LIPO"; then
7649   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654   IFS=$as_save_IFS
7655   test -z "$as_dir" && as_dir=.
7656   for ac_exec_ext in '' $ac_executable_extensions; do
7657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658     ac_cv_prog_ac_ct_LIPO="lipo"
7659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660     break 2
7661   fi
7662 done
7663 done
7664 IFS=$as_save_IFS
7665
7666 fi
7667 fi
7668 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7669 if test -n "$ac_ct_LIPO"; then
7670   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7671 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7672 else
7673   { echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6; }
7675 fi
7676
7677   if test "x$ac_ct_LIPO" = x; then
7678     LIPO=":"
7679   else
7680     case $cross_compiling:$ac_tool_warned in
7681 yes:)
7682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7683 whose name does not start with the host triplet.  If you think this
7684 configuration is useful to you, please write to autoconf@gnu.org." >&5
7685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7686 whose name does not start with the host triplet.  If you think this
7687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7688 ac_tool_warned=yes ;;
7689 esac
7690     LIPO=$ac_ct_LIPO
7691   fi
7692 else
7693   LIPO="$ac_cv_prog_LIPO"
7694 fi
7695
7696     if test -n "$ac_tool_prefix"; then
7697   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7698 set dummy ${ac_tool_prefix}otool; ac_word=$2
7699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701 if test "${ac_cv_prog_OTOOL+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704   if test -n "$OTOOL"; then
7705   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710   IFS=$as_save_IFS
7711   test -z "$as_dir" && as_dir=.
7712   for ac_exec_ext in '' $ac_executable_extensions; do
7713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7714     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716     break 2
7717   fi
7718 done
7719 done
7720 IFS=$as_save_IFS
7721
7722 fi
7723 fi
7724 OTOOL=$ac_cv_prog_OTOOL
7725 if test -n "$OTOOL"; then
7726   { echo "$as_me:$LINENO: result: $OTOOL" >&5
7727 echo "${ECHO_T}$OTOOL" >&6; }
7728 else
7729   { echo "$as_me:$LINENO: result: no" >&5
7730 echo "${ECHO_T}no" >&6; }
7731 fi
7732
7733
7734 fi
7735 if test -z "$ac_cv_prog_OTOOL"; then
7736   ac_ct_OTOOL=$OTOOL
7737   # Extract the first word of "otool", so it can be a program name with args.
7738 set dummy otool; ac_word=$2
7739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7741 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7742   echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744   if test -n "$ac_ct_OTOOL"; then
7745   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750   IFS=$as_save_IFS
7751   test -z "$as_dir" && as_dir=.
7752   for ac_exec_ext in '' $ac_executable_extensions; do
7753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7754     ac_cv_prog_ac_ct_OTOOL="otool"
7755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756     break 2
7757   fi
7758 done
7759 done
7760 IFS=$as_save_IFS
7761
7762 fi
7763 fi
7764 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7765 if test -n "$ac_ct_OTOOL"; then
7766   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7767 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7768 else
7769   { echo "$as_me:$LINENO: result: no" >&5
7770 echo "${ECHO_T}no" >&6; }
7771 fi
7772
7773   if test "x$ac_ct_OTOOL" = x; then
7774     OTOOL=":"
7775   else
7776     case $cross_compiling:$ac_tool_warned in
7777 yes:)
7778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7779 whose name does not start with the host triplet.  If you think this
7780 configuration is useful to you, please write to autoconf@gnu.org." >&5
7781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7782 whose name does not start with the host triplet.  If you think this
7783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7784 ac_tool_warned=yes ;;
7785 esac
7786     OTOOL=$ac_ct_OTOOL
7787   fi
7788 else
7789   OTOOL="$ac_cv_prog_OTOOL"
7790 fi
7791
7792     if test -n "$ac_tool_prefix"; then
7793   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7794 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7797 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7798   echo $ECHO_N "(cached) $ECHO_C" >&6
7799 else
7800   if test -n "$OTOOL64"; then
7801   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7802 else
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7805 do
7806   IFS=$as_save_IFS
7807   test -z "$as_dir" && as_dir=.
7808   for ac_exec_ext in '' $ac_executable_extensions; do
7809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7810     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812     break 2
7813   fi
7814 done
7815 done
7816 IFS=$as_save_IFS
7817
7818 fi
7819 fi
7820 OTOOL64=$ac_cv_prog_OTOOL64
7821 if test -n "$OTOOL64"; then
7822   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7823 echo "${ECHO_T}$OTOOL64" >&6; }
7824 else
7825   { echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6; }
7827 fi
7828
7829
7830 fi
7831 if test -z "$ac_cv_prog_OTOOL64"; then
7832   ac_ct_OTOOL64=$OTOOL64
7833   # Extract the first word of "otool64", so it can be a program name with args.
7834 set dummy otool64; ac_word=$2
7835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7837 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7838   echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840   if test -n "$ac_ct_OTOOL64"; then
7841   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7842 else
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7845 do
7846   IFS=$as_save_IFS
7847   test -z "$as_dir" && as_dir=.
7848   for ac_exec_ext in '' $ac_executable_extensions; do
7849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7850     ac_cv_prog_ac_ct_OTOOL64="otool64"
7851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852     break 2
7853   fi
7854 done
7855 done
7856 IFS=$as_save_IFS
7857
7858 fi
7859 fi
7860 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7861 if test -n "$ac_ct_OTOOL64"; then
7862   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7863 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7864 else
7865   { echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6; }
7867 fi
7868
7869   if test "x$ac_ct_OTOOL64" = x; then
7870     OTOOL64=":"
7871   else
7872     case $cross_compiling:$ac_tool_warned in
7873 yes:)
7874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7875 whose name does not start with the host triplet.  If you think this
7876 configuration is useful to you, please write to autoconf@gnu.org." >&5
7877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7878 whose name does not start with the host triplet.  If you think this
7879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7880 ac_tool_warned=yes ;;
7881 esac
7882     OTOOL64=$ac_ct_OTOOL64
7883   fi
7884 else
7885   OTOOL64="$ac_cv_prog_OTOOL64"
7886 fi
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7915 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7916 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7917   echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919   lt_cv_apple_cc_single_mod=no
7920       if test -z "${LT_MULTI_MODULE}"; then
7921         # By default we will add the -single_module flag. You can override
7922         # by either setting the environment variable LT_MULTI_MODULE
7923         # non-empty at configure time, or by adding -multi_module to the
7924         # link flags.
7925         rm -rf libconftest.dylib*
7926         echo "int foo(void){return 1;}" > conftest.c
7927         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7928 -dynamiclib -Wl,-single_module conftest.c" >&5
7929         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7930           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7931         _lt_result=$?
7932         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7933           lt_cv_apple_cc_single_mod=yes
7934         else
7935           cat conftest.err >&5
7936         fi
7937         rm -rf libconftest.dylib*
7938         rm -f conftest.*
7939       fi
7940 fi
7941 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7942 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7943     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7944 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7945 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7946   echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948   lt_cv_ld_exported_symbols_list=no
7949       save_LDFLAGS=$LDFLAGS
7950       echo "_main" > conftest.sym
7951       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7952       cat >conftest.$ac_ext <<_ACEOF
7953 /* confdefs.h.  */
7954 _ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h.  */
7958
7959 int
7960 main ()
7961 {
7962
7963   ;
7964   return 0;
7965 }
7966 _ACEOF
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (ac_try="$ac_link"
7969 case "(($ac_try" in
7970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971   *) ac_try_echo=$ac_try;;
7972 esac
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974   (eval "$ac_link") 2>conftest.er1
7975   ac_status=$?
7976   grep -v '^ *+' conftest.er1 >conftest.err
7977   rm -f conftest.er1
7978   cat conftest.err >&5
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); } && {
7981          test -z "$ac_c_werror_flag" ||
7982          test ! -s conftest.err
7983        } && test -s conftest$ac_exeext &&
7984        $as_test_x conftest$ac_exeext; then
7985   lt_cv_ld_exported_symbols_list=yes
7986 else
7987   echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990         lt_cv_ld_exported_symbols_list=no
7991 fi
7992
7993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7994       conftest$ac_exeext conftest.$ac_ext
7995         LDFLAGS="$save_LDFLAGS"
7996
7997 fi
7998 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7999 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8000     case $host_os in
8001     rhapsody* | darwin1.[012])
8002       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8003     darwin1.*)
8004       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8005     darwin*) # darwin 5.x on
8006       # if running on 10.5 or later, the deployment target defaults
8007       # to the OS version, if on x86, and 10.4, the deployment
8008       # target defaults to 10.4. Don't you love it?
8009       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8010         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8011           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8012         10.[012]*)
8013           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8014         10.*)
8015           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8016       esac
8017     ;;
8018   esac
8019     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8020       _lt_dar_single_mod='$single_module'
8021     fi
8022     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8023       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8024     else
8025       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8026     fi
8027     if test "$DSYMUTIL" != ":"; then
8028       _lt_dsymutil='~$DSYMUTIL $lib || :'
8029     else
8030       _lt_dsymutil=
8031     fi
8032     ;;
8033   esac
8034
8035 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8036 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8037 if test "${ac_cv_header_stdc+set}" = set; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040   cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h.  */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h.  */
8046 #include <stdlib.h>
8047 #include <stdarg.h>
8048 #include <string.h>
8049 #include <float.h>
8050
8051 int
8052 main ()
8053 {
8054
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 rm -f conftest.$ac_objext
8060 if { (ac_try="$ac_compile"
8061 case "(($ac_try" in
8062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063   *) ac_try_echo=$ac_try;;
8064 esac
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066   (eval "$ac_compile") 2>conftest.er1
8067   ac_status=$?
8068   grep -v '^ *+' conftest.er1 >conftest.err
8069   rm -f conftest.er1
8070   cat conftest.err >&5
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); } && {
8073          test -z "$ac_c_werror_flag" ||
8074          test ! -s conftest.err
8075        } && test -s conftest.$ac_objext; then
8076   ac_cv_header_stdc=yes
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081         ac_cv_header_stdc=no
8082 fi
8083
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085
8086 if test $ac_cv_header_stdc = yes; then
8087   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8088   cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094 #include <string.h>
8095
8096 _ACEOF
8097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8098   $EGREP "memchr" >/dev/null 2>&1; then
8099   :
8100 else
8101   ac_cv_header_stdc=no
8102 fi
8103 rm -f conftest*
8104
8105 fi
8106
8107 if test $ac_cv_header_stdc = yes; then
8108   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8109   cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h.  */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h.  */
8115 #include <stdlib.h>
8116
8117 _ACEOF
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8119   $EGREP "free" >/dev/null 2>&1; then
8120   :
8121 else
8122   ac_cv_header_stdc=no
8123 fi
8124 rm -f conftest*
8125
8126 fi
8127
8128 if test $ac_cv_header_stdc = yes; then
8129   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8130   if test "$cross_compiling" = yes; then
8131   :
8132 else
8133   cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h.  */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h.  */
8139 #include <ctype.h>
8140 #include <stdlib.h>
8141 #if ((' ' & 0x0FF) == 0x020)
8142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8144 #else
8145 # define ISLOWER(c) \
8146                    (('a' <= (c) && (c) <= 'i') \
8147                      || ('j' <= (c) && (c) <= 'r') \
8148                      || ('s' <= (c) && (c) <= 'z'))
8149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8150 #endif
8151
8152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8153 int
8154 main ()
8155 {
8156   int i;
8157   for (i = 0; i < 256; i++)
8158     if (XOR (islower (i), ISLOWER (i))
8159         || toupper (i) != TOUPPER (i))
8160       return 2;
8161   return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8166 case "(($ac_try" in
8167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168   *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171   (eval "$ac_link") 2>&5
8172   ac_status=$?
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8175   { (case "(($ac_try" in
8176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177   *) ac_try_echo=$ac_try;;
8178 esac
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180   (eval "$ac_try") 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; }; then
8184   :
8185 else
8186   echo "$as_me: program exited with status $ac_status" >&5
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8189
8190 ( exit $ac_status )
8191 ac_cv_header_stdc=no
8192 fi
8193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8194 fi
8195
8196
8197 fi
8198 fi
8199 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8200 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8201 if test $ac_cv_header_stdc = yes; then
8202
8203 cat >>confdefs.h <<\_ACEOF
8204 #define STDC_HEADERS 1
8205 _ACEOF
8206
8207 fi
8208
8209 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8220                   inttypes.h stdint.h unistd.h
8221 do
8222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8226   echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228   cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h.  */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h.  */
8234 $ac_includes_default
8235
8236 #include <$ac_header>
8237 _ACEOF
8238 rm -f conftest.$ac_objext
8239 if { (ac_try="$ac_compile"
8240 case "(($ac_try" in
8241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242   *) ac_try_echo=$ac_try;;
8243 esac
8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245   (eval "$ac_compile") 2>conftest.er1
8246   ac_status=$?
8247   grep -v '^ *+' conftest.er1 >conftest.err
8248   rm -f conftest.er1
8249   cat conftest.err >&5
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); } && {
8252          test -z "$ac_c_werror_flag" ||
8253          test ! -s conftest.err
8254        } && test -s conftest.$ac_objext; then
8255   eval "$as_ac_Header=yes"
8256 else
8257   echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8259
8260         eval "$as_ac_Header=no"
8261 fi
8262
8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8264 fi
8265 ac_res=`eval echo '${'$as_ac_Header'}'`
8266                { echo "$as_me:$LINENO: result: $ac_res" >&5
8267 echo "${ECHO_T}$ac_res" >&6; }
8268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8269   cat >>confdefs.h <<_ACEOF
8270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8271 _ACEOF
8272
8273 fi
8274
8275 done
8276
8277
8278
8279 for ac_header in dlfcn.h
8280 do
8281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8285   echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287   cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h.  */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h.  */
8293 $ac_includes_default
8294
8295 #include <$ac_header>
8296 _ACEOF
8297 rm -f conftest.$ac_objext
8298 if { (ac_try="$ac_compile"
8299 case "(($ac_try" in
8300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301   *) ac_try_echo=$ac_try;;
8302 esac
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304   (eval "$ac_compile") 2>conftest.er1
8305   ac_status=$?
8306   grep -v '^ *+' conftest.er1 >conftest.err
8307   rm -f conftest.er1
8308   cat conftest.err >&5
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } && {
8311          test -z "$ac_c_werror_flag" ||
8312          test ! -s conftest.err
8313        } && test -s conftest.$ac_objext; then
8314   eval "$as_ac_Header=yes"
8315 else
8316   echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319         eval "$as_ac_Header=no"
8320 fi
8321
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 fi
8324 ac_res=`eval echo '${'$as_ac_Header'}'`
8325                { echo "$as_me:$LINENO: result: $ac_res" >&5
8326 echo "${ECHO_T}$ac_res" >&6; }
8327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8328   cat >>confdefs.h <<_ACEOF
8329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8330 _ACEOF
8331
8332 fi
8333
8334 done
8335
8336
8337
8338 ac_ext=cpp
8339 ac_cpp='$CXXCPP $CPPFLAGS'
8340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8343 if test -z "$CXX"; then
8344   if test -n "$CCC"; then
8345     CXX=$CCC
8346   else
8347     if test -n "$ac_tool_prefix"; then
8348   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8349   do
8350     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8354 if test "${ac_cv_prog_CXX+set}" = set; then
8355   echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357   if test -n "$CXX"; then
8358   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8359 else
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8362 do
8363   IFS=$as_save_IFS
8364   test -z "$as_dir" && as_dir=.
8365   for ac_exec_ext in '' $ac_executable_extensions; do
8366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8367     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8369     break 2
8370   fi
8371 done
8372 done
8373 IFS=$as_save_IFS
8374
8375 fi
8376 fi
8377 CXX=$ac_cv_prog_CXX
8378 if test -n "$CXX"; then
8379   { echo "$as_me:$LINENO: result: $CXX" >&5
8380 echo "${ECHO_T}$CXX" >&6; }
8381 else
8382   { echo "$as_me:$LINENO: result: no" >&5
8383 echo "${ECHO_T}no" >&6; }
8384 fi
8385
8386
8387     test -n "$CXX" && break
8388   done
8389 fi
8390 if test -z "$CXX"; then
8391   ac_ct_CXX=$CXX
8392   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8393 do
8394   # Extract the first word of "$ac_prog", so it can be a program name with args.
8395 set dummy $ac_prog; ac_word=$2
8396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8398 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8399   echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401   if test -n "$ac_ct_CXX"; then
8402   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8406 do
8407   IFS=$as_save_IFS
8408   test -z "$as_dir" && as_dir=.
8409   for ac_exec_ext in '' $ac_executable_extensions; do
8410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8411     ac_cv_prog_ac_ct_CXX="$ac_prog"
8412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8413     break 2
8414   fi
8415 done
8416 done
8417 IFS=$as_save_IFS
8418
8419 fi
8420 fi
8421 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8422 if test -n "$ac_ct_CXX"; then
8423   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8424 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8425 else
8426   { echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6; }
8428 fi
8429
8430
8431   test -n "$ac_ct_CXX" && break
8432 done
8433
8434   if test "x$ac_ct_CXX" = x; then
8435     CXX="g++"
8436   else
8437     case $cross_compiling:$ac_tool_warned in
8438 yes:)
8439 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8440 whose name does not start with the host triplet.  If you think this
8441 configuration is useful to you, please write to autoconf@gnu.org." >&5
8442 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8443 whose name does not start with the host triplet.  If you think this
8444 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8445 ac_tool_warned=yes ;;
8446 esac
8447     CXX=$ac_ct_CXX
8448   fi
8449 fi
8450
8451   fi
8452 fi
8453 # Provide some information about the compiler.
8454 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8455 ac_compiler=`set X $ac_compile; echo $2`
8456 { (ac_try="$ac_compiler --version >&5"
8457 case "(($ac_try" in
8458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459   *) ac_try_echo=$ac_try;;
8460 esac
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462   (eval "$ac_compiler --version >&5") 2>&5
8463   ac_status=$?
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); }
8466 { (ac_try="$ac_compiler -v >&5"
8467 case "(($ac_try" in
8468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469   *) ac_try_echo=$ac_try;;
8470 esac
8471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472   (eval "$ac_compiler -v >&5") 2>&5
8473   ac_status=$?
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); }
8476 { (ac_try="$ac_compiler -V >&5"
8477 case "(($ac_try" in
8478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479   *) ac_try_echo=$ac_try;;
8480 esac
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482   (eval "$ac_compiler -V >&5") 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }
8486
8487 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8488 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8489 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8490   echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492   cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h.  */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h.  */
8498
8499 int
8500 main ()
8501 {
8502 #ifndef __GNUC__
8503        choke me
8504 #endif
8505
8506   ;
8507   return 0;
8508 }
8509 _ACEOF
8510 rm -f conftest.$ac_objext
8511 if { (ac_try="$ac_compile"
8512 case "(($ac_try" in
8513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514   *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517   (eval "$ac_compile") 2>conftest.er1
8518   ac_status=$?
8519   grep -v '^ *+' conftest.er1 >conftest.err
8520   rm -f conftest.er1
8521   cat conftest.err >&5
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); } && {
8524          test -z "$ac_cxx_werror_flag" ||
8525          test ! -s conftest.err
8526        } && test -s conftest.$ac_objext; then
8527   ac_compiler_gnu=yes
8528 else
8529   echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8531
8532         ac_compiler_gnu=no
8533 fi
8534
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8537
8538 fi
8539 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8540 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8541 GXX=`test $ac_compiler_gnu = yes && echo yes`
8542 ac_test_CXXFLAGS=${CXXFLAGS+set}
8543 ac_save_CXXFLAGS=$CXXFLAGS
8544 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8545 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8546 if test "${ac_cv_prog_cxx_g+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8550    ac_cxx_werror_flag=yes
8551    ac_cv_prog_cxx_g=no
8552    CXXFLAGS="-g"
8553    cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h.  */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h.  */
8559
8560 int
8561 main ()
8562 {
8563
8564   ;
8565   return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8570 case "(($ac_try" in
8571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572   *) ac_try_echo=$ac_try;;
8573 esac
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575   (eval "$ac_compile") 2>conftest.er1
8576   ac_status=$?
8577   grep -v '^ *+' conftest.er1 >conftest.err
8578   rm -f conftest.er1
8579   cat conftest.err >&5
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); } && {
8582          test -z "$ac_cxx_werror_flag" ||
8583          test ! -s conftest.err
8584        } && test -s conftest.$ac_objext; then
8585   ac_cv_prog_cxx_g=yes
8586 else
8587   echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590         CXXFLAGS=""
8591       cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h.  */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h.  */
8597
8598 int
8599 main ()
8600 {
8601
8602   ;
8603   return 0;
8604 }
8605 _ACEOF
8606 rm -f conftest.$ac_objext
8607 if { (ac_try="$ac_compile"
8608 case "(($ac_try" in
8609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610   *) ac_try_echo=$ac_try;;
8611 esac
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613   (eval "$ac_compile") 2>conftest.er1
8614   ac_status=$?
8615   grep -v '^ *+' conftest.er1 >conftest.err
8616   rm -f conftest.er1
8617   cat conftest.err >&5
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); } && {
8620          test -z "$ac_cxx_werror_flag" ||
8621          test ! -s conftest.err
8622        } && test -s conftest.$ac_objext; then
8623   :
8624 else
8625   echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8627
8628         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8629          CXXFLAGS="-g"
8630          cat >conftest.$ac_ext <<_ACEOF
8631 /* confdefs.h.  */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h.  */
8636
8637 int
8638 main ()
8639 {
8640
8641   ;
8642   return 0;
8643 }
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8647 case "(($ac_try" in
8648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649   *) ac_try_echo=$ac_try;;
8650 esac
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652   (eval "$ac_compile") 2>conftest.er1
8653   ac_status=$?
8654   grep -v '^ *+' conftest.er1 >conftest.err
8655   rm -f conftest.er1
8656   cat conftest.err >&5
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } && {
8659          test -z "$ac_cxx_werror_flag" ||
8660          test ! -s conftest.err
8661        } && test -s conftest.$ac_objext; then
8662   ac_cv_prog_cxx_g=yes
8663 else
8664   echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8666
8667
8668 fi
8669
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 fi
8672
8673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8674 fi
8675
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8678 fi
8679 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8680 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8681 if test "$ac_test_CXXFLAGS" = set; then
8682   CXXFLAGS=$ac_save_CXXFLAGS
8683 elif test $ac_cv_prog_cxx_g = yes; then
8684   if test "$GXX" = yes; then
8685     CXXFLAGS="-g -O2"
8686   else
8687     CXXFLAGS="-g"
8688   fi
8689 else
8690   if test "$GXX" = yes; then
8691     CXXFLAGS="-O2"
8692   else
8693     CXXFLAGS=
8694   fi
8695 fi
8696 ac_ext=c
8697 ac_cpp='$CPP $CPPFLAGS'
8698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8701
8702 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8703     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8704     (test "X$CXX" != "Xg++"))) ; then
8705   ac_ext=cpp
8706 ac_cpp='$CXXCPP $CPPFLAGS'
8707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8710 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8711 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8712 if test -z "$CXXCPP"; then
8713   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8714   echo $ECHO_N "(cached) $ECHO_C" >&6
8715 else
8716       # Double quotes because CXXCPP needs to be expanded
8717     for CXXCPP in "$CXX -E" "/lib/cpp"
8718     do
8719       ac_preproc_ok=false
8720 for ac_cxx_preproc_warn_flag in '' yes
8721 do
8722   # Use a header file that comes with gcc, so configuring glibc
8723   # with a fresh cross-compiler works.
8724   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8725   # <limits.h> exists even on freestanding compilers.
8726   # On the NeXT, cc -E runs the code through the compiler's parser,
8727   # not just through cpp. "Syntax error" is here to catch this case.
8728   cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h.  */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h.  */
8734 #ifdef __STDC__
8735 # include <limits.h>
8736 #else
8737 # include <assert.h>
8738 #endif
8739                      Syntax error
8740 _ACEOF
8741 if { (ac_try="$ac_cpp conftest.$ac_ext"
8742 case "(($ac_try" in
8743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744   *) ac_try_echo=$ac_try;;
8745 esac
8746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8748   ac_status=$?
8749   grep -v '^ *+' conftest.er1 >conftest.err
8750   rm -f conftest.er1
8751   cat conftest.err >&5
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); } >/dev/null && {
8754          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8755          test ! -s conftest.err
8756        }; then
8757   :
8758 else
8759   echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762   # Broken: fails on valid input.
8763 continue
8764 fi
8765
8766 rm -f conftest.err conftest.$ac_ext
8767
8768   # OK, works on sane cases.  Now check whether nonexistent headers
8769   # can be detected and how.
8770   cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h.  */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h.  */
8776 #include <ac_nonexistent.h>
8777 _ACEOF
8778 if { (ac_try="$ac_cpp conftest.$ac_ext"
8779 case "(($ac_try" in
8780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781   *) ac_try_echo=$ac_try;;
8782 esac
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8785   ac_status=$?
8786   grep -v '^ *+' conftest.er1 >conftest.err
8787   rm -f conftest.er1
8788   cat conftest.err >&5
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); } >/dev/null && {
8791          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8792          test ! -s conftest.err
8793        }; then
8794   # Broken: success on invalid input.
8795 continue
8796 else
8797   echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8799
8800   # Passes both tests.
8801 ac_preproc_ok=:
8802 break
8803 fi
8804
8805 rm -f conftest.err conftest.$ac_ext
8806
8807 done
8808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8809 rm -f conftest.err conftest.$ac_ext
8810 if $ac_preproc_ok; then
8811   break
8812 fi
8813
8814     done
8815     ac_cv_prog_CXXCPP=$CXXCPP
8816
8817 fi
8818   CXXCPP=$ac_cv_prog_CXXCPP
8819 else
8820   ac_cv_prog_CXXCPP=$CXXCPP
8821 fi
8822 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8823 echo "${ECHO_T}$CXXCPP" >&6; }
8824 ac_preproc_ok=false
8825 for ac_cxx_preproc_warn_flag in '' yes
8826 do
8827   # Use a header file that comes with gcc, so configuring glibc
8828   # with a fresh cross-compiler works.
8829   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8830   # <limits.h> exists even on freestanding compilers.
8831   # On the NeXT, cc -E runs the code through the compiler's parser,
8832   # not just through cpp. "Syntax error" is here to catch this case.
8833   cat >conftest.$ac_ext <<_ACEOF
8834 /* confdefs.h.  */
8835 _ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h.  */
8839 #ifdef __STDC__
8840 # include <limits.h>
8841 #else
8842 # include <assert.h>
8843 #endif
8844                      Syntax error
8845 _ACEOF
8846 if { (ac_try="$ac_cpp conftest.$ac_ext"
8847 case "(($ac_try" in
8848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849   *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8853   ac_status=$?
8854   grep -v '^ *+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } >/dev/null && {
8859          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8860          test ! -s conftest.err
8861        }; then
8862   :
8863 else
8864   echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867   # Broken: fails on valid input.
8868 continue
8869 fi
8870
8871 rm -f conftest.err conftest.$ac_ext
8872
8873   # OK, works on sane cases.  Now check whether nonexistent headers
8874   # can be detected and how.
8875   cat >conftest.$ac_ext <<_ACEOF
8876 /* confdefs.h.  */
8877 _ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h.  */
8881 #include <ac_nonexistent.h>
8882 _ACEOF
8883 if { (ac_try="$ac_cpp conftest.$ac_ext"
8884 case "(($ac_try" in
8885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886   *) ac_try_echo=$ac_try;;
8887 esac
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8890   ac_status=$?
8891   grep -v '^ *+' conftest.er1 >conftest.err
8892   rm -f conftest.er1
8893   cat conftest.err >&5
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); } >/dev/null && {
8896          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8897          test ! -s conftest.err
8898        }; then
8899   # Broken: success on invalid input.
8900 continue
8901 else
8902   echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8904
8905   # Passes both tests.
8906 ac_preproc_ok=:
8907 break
8908 fi
8909
8910 rm -f conftest.err conftest.$ac_ext
8911
8912 done
8913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8914 rm -f conftest.err conftest.$ac_ext
8915 if $ac_preproc_ok; then
8916   :
8917 else
8918   _lt_caught_CXX_error=yes
8919 fi
8920
8921 ac_ext=c
8922 ac_cpp='$CPP $CPPFLAGS'
8923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8926
8927 else
8928   _lt_caught_CXX_error=yes
8929 fi
8930
8931
8932
8933
8934
8935 # Set options
8936 # Check whether --enable-shared was given.
8937 if test "${enable_shared+set}" = set; then
8938   enableval=$enable_shared; p=${PACKAGE-default}
8939     case $enableval in
8940     yes) enable_shared=yes ;;
8941     no) enable_shared=no ;;
8942     *)
8943       enable_shared=no
8944       # Look at the argument we got.  We use all the common list separators.
8945       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8946       for pkg in $enableval; do
8947         IFS="$lt_save_ifs"
8948         if test "X$pkg" = "X$p"; then
8949           enable_shared=yes
8950         fi
8951       done
8952       IFS="$lt_save_ifs"
8953       ;;
8954     esac
8955 else
8956   enable_shared=yes
8957 fi
8958
8959
8960
8961
8962
8963
8964
8965 # Check whether --enable-static was given.
8966 if test "${enable_static+set}" = set; then
8967   enableval=$enable_static; p=${PACKAGE-default}
8968     case $enableval in
8969     yes) enable_static=yes ;;
8970     no) enable_static=no ;;
8971     *)
8972      enable_static=no
8973       # Look at the argument we got.  We use all the common list separators.
8974       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8975       for pkg in $enableval; do
8976         IFS="$lt_save_ifs"
8977         if test "X$pkg" = "X$p"; then
8978           enable_static=yes
8979         fi
8980       done
8981       IFS="$lt_save_ifs"
8982       ;;
8983     esac
8984 else
8985   enable_static=no
8986 fi
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997         enable_dlopen=no
8998
8999
9000   enable_win32_dll=no
9001
9002
9003
9004
9005
9006 # Check whether --with-pic was given.
9007 if test "${with_pic+set}" = set; then
9008   withval=$with_pic; pic_mode="$withval"
9009 else
9010   pic_mode=default
9011 fi
9012
9013
9014 test -z "$pic_mode" && pic_mode=default
9015
9016
9017
9018
9019
9020
9021
9022   # Check whether --enable-fast-install was given.
9023 if test "${enable_fast_install+set}" = set; then
9024   enableval=$enable_fast_install; p=${PACKAGE-default}
9025     case $enableval in
9026     yes) enable_fast_install=yes ;;
9027     no) enable_fast_install=no ;;
9028     *)
9029       enable_fast_install=no
9030       # Look at the argument we got.  We use all the common list separators.
9031       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9032       for pkg in $enableval; do
9033         IFS="$lt_save_ifs"
9034         if test "X$pkg" = "X$p"; then
9035           enable_fast_install=yes
9036         fi
9037       done
9038       IFS="$lt_save_ifs"
9039       ;;
9040     esac
9041 else
9042   enable_fast_install=yes
9043 fi
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055 # This can be used to rebuild libtool when needed
9056 LIBTOOL_DEPS="$ltmain"
9057
9058 # Always use our own libtool.
9059 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085 test -z "$LN_S" && LN_S="ln -s"
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100 if test -n "${ZSH_VERSION+set}" ; then
9101    setopt NO_GLOB_SUBST
9102 fi
9103
9104 { echo "$as_me:$LINENO: checking for objdir" >&5
9105 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9106 if test "${lt_cv_objdir+set}" = set; then
9107   echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109   rm -f .libs 2>/dev/null
9110 mkdir .libs 2>/dev/null
9111 if test -d .libs; then
9112   lt_cv_objdir=.libs
9113 else
9114   # MS-DOS does not allow filenames that begin with a dot.
9115   lt_cv_objdir=_libs
9116 fi
9117 rmdir .libs 2>/dev/null
9118 fi
9119 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9120 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9121 objdir=$lt_cv_objdir
9122
9123
9124
9125
9126
9127 cat >>confdefs.h <<_ACEOF
9128 #define LT_OBJDIR "$lt_cv_objdir/"
9129 _ACEOF
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147 case $host_os in
9148 aix3*)
9149   # AIX sometimes has problems with the GCC collect2 program.  For some
9150   # reason, if we set the COLLECT_NAMES environment variable, the problems
9151   # vanish in a puff of smoke.
9152   if test "X${COLLECT_NAMES+set}" != Xset; then
9153     COLLECT_NAMES=
9154     export COLLECT_NAMES
9155   fi
9156   ;;
9157 esac
9158
9159 # Sed substitution that helps us do robust quoting.  It backslashifies
9160 # metacharacters that are still active within double-quoted strings.
9161 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9162
9163 # Same as above, but do not quote variable references.
9164 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9165
9166 # Sed substitution to delay expansion of an escaped shell variable in a
9167 # double_quote_subst'ed string.
9168 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9169
9170 # Sed substitution to delay expansion of an escaped single quote.
9171 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9172
9173 # Sed substitution to avoid accidental globbing in evaled expressions
9174 no_glob_subst='s/\*/\\\*/g'
9175
9176 # Global variables:
9177 ofile=libtool
9178 can_build_shared=yes
9179
9180 # All known linkers require a `.a' archive for static linking (except MSVC,
9181 # which needs '.lib').
9182 libext=a
9183
9184 with_gnu_ld="$lt_cv_prog_gnu_ld"
9185
9186 old_CC="$CC"
9187 old_CFLAGS="$CFLAGS"
9188
9189 # Set sane defaults for various variables
9190 test -z "$CC" && CC=cc
9191 test -z "$LTCC" && LTCC=$CC
9192 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9193 test -z "$LD" && LD=ld
9194 test -z "$ac_objext" && ac_objext=o
9195
9196 for cc_temp in $compiler""; do
9197   case $cc_temp in
9198     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9199     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9200     \-*) ;;
9201     *) break;;
9202   esac
9203 done
9204 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9205
9206
9207 # Only perform the check for file, if the check method requires it
9208 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9209 case $deplibs_check_method in
9210 file_magic*)
9211   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9212     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9213 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9214 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217   case $MAGIC_CMD in
9218 [\\/*] |  ?:[\\/]*)
9219   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9220   ;;
9221 *)
9222   lt_save_MAGIC_CMD="$MAGIC_CMD"
9223   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9224   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9225   for ac_dir in $ac_dummy; do
9226     IFS="$lt_save_ifs"
9227     test -z "$ac_dir" && ac_dir=.
9228     if test -f $ac_dir/${ac_tool_prefix}file; then
9229       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9230       if test -n "$file_magic_test_file"; then
9231         case $deplibs_check_method in
9232         "file_magic "*)
9233           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9234           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9235           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9236             $EGREP "$file_magic_regex" > /dev/null; then
9237             :
9238           else
9239             cat <<_LT_EOF 1>&2
9240
9241 *** Warning: the command libtool uses to detect shared libraries,
9242 *** $file_magic_cmd, produces output that libtool cannot recognize.
9243 *** The result is that libtool may fail to recognize shared libraries
9244 *** as such.  This will affect the creation of libtool libraries that
9245 *** depend on shared libraries, but programs linked with such libtool
9246 *** libraries will work regardless of this problem.  Nevertheless, you
9247 *** may want to report the problem to your system manager and/or to
9248 *** bug-libtool@gnu.org
9249
9250 _LT_EOF
9251           fi ;;
9252         esac
9253       fi
9254       break
9255     fi
9256   done
9257   IFS="$lt_save_ifs"
9258   MAGIC_CMD="$lt_save_MAGIC_CMD"
9259   ;;
9260 esac
9261 fi
9262
9263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9264 if test -n "$MAGIC_CMD"; then
9265   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9266 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9267 else
9268   { echo "$as_me:$LINENO: result: no" >&5
9269 echo "${ECHO_T}no" >&6; }
9270 fi
9271
9272
9273
9274
9275
9276 if test -z "$lt_cv_path_MAGIC_CMD"; then
9277   if test -n "$ac_tool_prefix"; then
9278     { echo "$as_me:$LINENO: checking for file" >&5
9279 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9280 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9281   echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283   case $MAGIC_CMD in
9284 [\\/*] |  ?:[\\/]*)
9285   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9286   ;;
9287 *)
9288   lt_save_MAGIC_CMD="$MAGIC_CMD"
9289   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9290   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9291   for ac_dir in $ac_dummy; do
9292     IFS="$lt_save_ifs"
9293     test -z "$ac_dir" && ac_dir=.
9294     if test -f $ac_dir/file; then
9295       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9296       if test -n "$file_magic_test_file"; then
9297         case $deplibs_check_method in
9298         "file_magic "*)
9299           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9300           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9301           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9302             $EGREP "$file_magic_regex" > /dev/null; then
9303             :
9304           else
9305             cat <<_LT_EOF 1>&2
9306
9307 *** Warning: the command libtool uses to detect shared libraries,
9308 *** $file_magic_cmd, produces output that libtool cannot recognize.
9309 *** The result is that libtool may fail to recognize shared libraries
9310 *** as such.  This will affect the creation of libtool libraries that
9311 *** depend on shared libraries, but programs linked with such libtool
9312 *** libraries will work regardless of this problem.  Nevertheless, you
9313 *** may want to report the problem to your system manager and/or to
9314 *** bug-libtool@gnu.org
9315
9316 _LT_EOF
9317           fi ;;
9318         esac
9319       fi
9320       break
9321     fi
9322   done
9323   IFS="$lt_save_ifs"
9324   MAGIC_CMD="$lt_save_MAGIC_CMD"
9325   ;;
9326 esac
9327 fi
9328
9329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9330 if test -n "$MAGIC_CMD"; then
9331   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9332 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9333 else
9334   { echo "$as_me:$LINENO: result: no" >&5
9335 echo "${ECHO_T}no" >&6; }
9336 fi
9337
9338
9339   else
9340     MAGIC_CMD=:
9341   fi
9342 fi
9343
9344   fi
9345   ;;
9346 esac
9347
9348 # Use C for the default configuration in the libtool script
9349
9350 lt_save_CC="$CC"
9351 ac_ext=c
9352 ac_cpp='$CPP $CPPFLAGS'
9353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9356
9357
9358 # Source file extension for C test sources.
9359 ac_ext=c
9360
9361 # Object file extension for compiled C test sources.
9362 objext=o
9363 objext=$objext
9364
9365 # Code to be used in simple compile tests
9366 lt_simple_compile_test_code="int some_variable = 0;"
9367
9368 # Code to be used in simple link tests
9369 lt_simple_link_test_code='int main(){return(0);}'
9370
9371
9372
9373
9374
9375
9376
9377 # If no C compiler was specified, use CC.
9378 LTCC=${LTCC-"$CC"}
9379
9380 # If no C compiler flags were specified, use CFLAGS.
9381 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9382
9383 # Allow CC to be a program name with arguments.
9384 compiler=$CC
9385
9386 # Save the default compiler, since it gets overwritten when the other
9387 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9388 compiler_DEFAULT=$CC
9389
9390 # save warnings/boilerplate of simple test code
9391 ac_outfile=conftest.$ac_objext
9392 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9393 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9394 _lt_compiler_boilerplate=`cat conftest.err`
9395 $RM conftest*
9396
9397 ac_outfile=conftest.$ac_objext
9398 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9399 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9400 _lt_linker_boilerplate=`cat conftest.err`
9401 $RM -r conftest*
9402
9403
9404 ## CAVEAT EMPTOR:
9405 ## There is no encapsulation within the following macros, do not change
9406 ## the running order or otherwise move them around unless you know exactly
9407 ## what you are doing...
9408 if test -n "$compiler"; then
9409
9410 lt_prog_compiler_no_builtin_flag=
9411
9412 if test "$GCC" = yes; then
9413   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9414
9415   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9416 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9417 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9418   echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420   lt_cv_prog_compiler_rtti_exceptions=no
9421    ac_outfile=conftest.$ac_objext
9422    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9423    lt_compiler_flag="-fno-rtti -fno-exceptions"
9424    # Insert the option either (1) after the last *FLAGS variable, or
9425    # (2) before a word containing "conftest.", or (3) at the end.
9426    # Note that $ac_compile itself does not contain backslashes and begins
9427    # with a dollar sign (not a hyphen), so the echo should work correctly.
9428    # The option is referenced via a variable to avoid confusing sed.
9429    lt_compile=`echo "$ac_compile" | $SED \
9430    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9431    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9432    -e 's:$: $lt_compiler_flag:'`
9433    (eval echo "\"\$as_me:9433: $lt_compile\"" >&5)
9434    (eval "$lt_compile" 2>conftest.err)
9435    ac_status=$?
9436    cat conftest.err >&5
9437    echo "$as_me:9437: \$? = $ac_status" >&5
9438    if (exit $ac_status) && test -s "$ac_outfile"; then
9439      # The compiler can only warn and ignore the option if not recognized
9440      # So say no if there are warnings other than the usual output.
9441      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9442      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9443      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9444        lt_cv_prog_compiler_rtti_exceptions=yes
9445      fi
9446    fi
9447    $RM conftest*
9448
9449 fi
9450 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9451 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9452
9453 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9454     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9455 else
9456     :
9457 fi
9458
9459 fi
9460
9461
9462
9463
9464
9465
9466   lt_prog_compiler_wl=
9467 lt_prog_compiler_pic=
9468 lt_prog_compiler_static=
9469
9470 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9471 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9472
9473   if test "$GCC" = yes; then
9474     lt_prog_compiler_wl='-Wl,'
9475     lt_prog_compiler_static='-static'
9476
9477     case $host_os in
9478       aix*)
9479       # All AIX code is PIC.
9480       if test "$host_cpu" = ia64; then
9481         # AIX 5 now supports IA64 processor
9482         lt_prog_compiler_static='-Bstatic'
9483       fi
9484       ;;
9485
9486     amigaos*)
9487       case $host_cpu in
9488       powerpc)
9489             # see comment about AmigaOS4 .so support
9490             lt_prog_compiler_pic='-fPIC'
9491         ;;
9492       m68k)
9493             # FIXME: we need at least 68020 code to build shared libraries, but
9494             # adding the `-m68020' flag to GCC prevents building anything better,
9495             # like `-m68040'.
9496             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9497         ;;
9498       esac
9499       ;;
9500
9501     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9502       # PIC is the default for these OSes.
9503       ;;
9504
9505     mingw* | cygwin* | pw32* | os2* | cegcc*)
9506       # This hack is so that the source file can tell whether it is being
9507       # built for inclusion in a dll (and should export symbols for example).
9508       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9509       # (--disable-auto-import) libraries
9510       lt_prog_compiler_pic='-DDLL_EXPORT'
9511       ;;
9512
9513     darwin* | rhapsody*)
9514       # PIC is the default on this platform
9515       # Common symbols not allowed in MH_DYLIB files
9516       lt_prog_compiler_pic='-fno-common'
9517       ;;
9518
9519     hpux*)
9520       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9521       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9522       # sets the default TLS model and affects inlining.
9523       case $host_cpu in
9524       hppa*64*)
9525         # +Z the default
9526         ;;
9527       *)
9528         lt_prog_compiler_pic='-fPIC'
9529         ;;
9530       esac
9531       ;;
9532
9533     interix[3-9]*)
9534       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9535       # Instead, we relocate shared libraries at runtime.
9536       ;;
9537
9538     msdosdjgpp*)
9539       # Just because we use GCC doesn't mean we suddenly get shared libraries
9540       # on systems that don't support them.
9541       lt_prog_compiler_can_build_shared=no
9542       enable_shared=no
9543       ;;
9544
9545     *nto* | *qnx*)
9546       # QNX uses GNU C++, but need to define -shared option too, otherwise
9547       # it will coredump.
9548       lt_prog_compiler_pic='-fPIC -shared'
9549       ;;
9550
9551     sysv4*MP*)
9552       if test -d /usr/nec; then
9553         lt_prog_compiler_pic=-Kconform_pic
9554       fi
9555       ;;
9556
9557     *)
9558       lt_prog_compiler_pic='-fPIC'
9559       ;;
9560     esac
9561   else
9562     # PORTME Check for flag to pass linker flags through the system compiler.
9563     case $host_os in
9564     aix*)
9565       lt_prog_compiler_wl='-Wl,'
9566       if test "$host_cpu" = ia64; then
9567         # AIX 5 now supports IA64 processor
9568         lt_prog_compiler_static='-Bstatic'
9569       else
9570         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9571       fi
9572       ;;
9573
9574     mingw* | cygwin* | pw32* | os2* | cegcc*)
9575       # This hack is so that the source file can tell whether it is being
9576       # built for inclusion in a dll (and should export symbols for example).
9577       lt_prog_compiler_pic='-DDLL_EXPORT'
9578       ;;
9579
9580     hpux9* | hpux10* | hpux11*)
9581       lt_prog_compiler_wl='-Wl,'
9582       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9583       # not for PA HP-UX.
9584       case $host_cpu in
9585       hppa*64*|ia64*)
9586         # +Z the default
9587         ;;
9588       *)
9589         lt_prog_compiler_pic='+Z'
9590         ;;
9591       esac
9592       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9593       lt_prog_compiler_static='${wl}-a ${wl}archive'
9594       ;;
9595
9596     irix5* | irix6* | nonstopux*)
9597       lt_prog_compiler_wl='-Wl,'
9598       # PIC (with -KPIC) is the default.
9599       lt_prog_compiler_static='-non_shared'
9600       ;;
9601
9602     linux* | k*bsd*-gnu)
9603       case $cc_basename in
9604       # old Intel for x86_64 which still supported -KPIC.
9605       ecc*)
9606         lt_prog_compiler_wl='-Wl,'
9607         lt_prog_compiler_pic='-KPIC'
9608         lt_prog_compiler_static='-static'
9609         ;;
9610       # icc used to be incompatible with GCC.
9611       # ICC 10 doesn't accept -KPIC any more.
9612       icc* | ifort*)
9613         lt_prog_compiler_wl='-Wl,'
9614         lt_prog_compiler_pic='-fPIC'
9615         lt_prog_compiler_static='-static'
9616         ;;
9617       # Lahey Fortran 8.1.
9618       lf95*)
9619         lt_prog_compiler_wl='-Wl,'
9620         lt_prog_compiler_pic='--shared'
9621         lt_prog_compiler_static='--static'
9622         ;;
9623       pgcc* | pgf77* | pgf90* | pgf95*)
9624         # Portland Group compilers (*not* the Pentium gcc compiler,
9625         # which looks to be a dead project)
9626         lt_prog_compiler_wl='-Wl,'
9627         lt_prog_compiler_pic='-fpic'
9628         lt_prog_compiler_static='-Bstatic'
9629         ;;
9630       ccc*)
9631         lt_prog_compiler_wl='-Wl,'
9632         # All Alpha code is PIC.
9633         lt_prog_compiler_static='-non_shared'
9634         ;;
9635       xl*)
9636         # IBM XL C 8.0/Fortran 10.1 on PPC
9637         lt_prog_compiler_wl='-Wl,'
9638         lt_prog_compiler_pic='-qpic'
9639         lt_prog_compiler_static='-qstaticlink'
9640         ;;
9641       *)
9642         case `$CC -V 2>&1 | sed 5q` in
9643         *Sun\ C*)
9644           # Sun C 5.9
9645           lt_prog_compiler_pic='-KPIC'
9646           lt_prog_compiler_static='-Bstatic'
9647           lt_prog_compiler_wl='-Wl,'
9648           ;;
9649         *Sun\ F*)
9650           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9651           lt_prog_compiler_pic='-KPIC'
9652           lt_prog_compiler_static='-Bstatic'
9653           lt_prog_compiler_wl=''
9654           ;;
9655         esac
9656         ;;
9657       esac
9658       ;;
9659
9660     newsos6)
9661       lt_prog_compiler_pic='-KPIC'
9662       lt_prog_compiler_static='-Bstatic'
9663       ;;
9664
9665     *nto* | *qnx*)
9666       # QNX uses GNU C++, but need to define -shared option too, otherwise
9667       # it will coredump.
9668       lt_prog_compiler_pic='-fPIC -shared'
9669       ;;
9670
9671     osf3* | osf4* | osf5*)
9672       lt_prog_compiler_wl='-Wl,'
9673       # All OSF/1 code is PIC.
9674       lt_prog_compiler_static='-non_shared'
9675       ;;
9676
9677     rdos*)
9678       lt_prog_compiler_static='-non_shared'
9679       ;;
9680
9681     solaris*)
9682       lt_prog_compiler_pic='-KPIC'
9683       lt_prog_compiler_static='-Bstatic'
9684       case $cc_basename in
9685       f77* | f90* | f95*)
9686         lt_prog_compiler_wl='-Qoption ld ';;
9687       *)
9688         lt_prog_compiler_wl='-Wl,';;
9689       esac
9690       ;;
9691
9692     sunos4*)
9693       lt_prog_compiler_wl='-Qoption ld '
9694       lt_prog_compiler_pic='-PIC'
9695       lt_prog_compiler_static='-Bstatic'
9696       ;;
9697
9698     sysv4 | sysv4.2uw2* | sysv4.3*)
9699       lt_prog_compiler_wl='-Wl,'
9700       lt_prog_compiler_pic='-KPIC'
9701       lt_prog_compiler_static='-Bstatic'
9702       ;;
9703
9704     sysv4*MP*)
9705       if test -d /usr/nec ;then
9706         lt_prog_compiler_pic='-Kconform_pic'
9707         lt_prog_compiler_static='-Bstatic'
9708       fi
9709       ;;
9710
9711     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9712       lt_prog_compiler_wl='-Wl,'
9713       lt_prog_compiler_pic='-KPIC'
9714       lt_prog_compiler_static='-Bstatic'
9715       ;;
9716
9717     unicos*)
9718       lt_prog_compiler_wl='-Wl,'
9719       lt_prog_compiler_can_build_shared=no
9720       ;;
9721
9722     uts4*)
9723       lt_prog_compiler_pic='-pic'
9724       lt_prog_compiler_static='-Bstatic'
9725       ;;
9726
9727     *)
9728       lt_prog_compiler_can_build_shared=no
9729       ;;
9730     esac
9731   fi
9732
9733 case $host_os in
9734   # For platforms which do not support PIC, -DPIC is meaningless:
9735   *djgpp*)
9736     lt_prog_compiler_pic=
9737     ;;
9738   *)
9739     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9740     ;;
9741 esac
9742 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9743 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9744
9745
9746
9747
9748
9749
9750 #
9751 # Check to make sure the PIC flag actually works.
9752 #
9753 if test -n "$lt_prog_compiler_pic"; then
9754   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9755 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9756 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759   lt_cv_prog_compiler_pic_works=no
9760    ac_outfile=conftest.$ac_objext
9761    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9762    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9763    # Insert the option either (1) after the last *FLAGS variable, or
9764    # (2) before a word containing "conftest.", or (3) at the end.
9765    # Note that $ac_compile itself does not contain backslashes and begins
9766    # with a dollar sign (not a hyphen), so the echo should work correctly.
9767    # The option is referenced via a variable to avoid confusing sed.
9768    lt_compile=`echo "$ac_compile" | $SED \
9769    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9770    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9771    -e 's:$: $lt_compiler_flag:'`
9772    (eval echo "\"\$as_me:9772: $lt_compile\"" >&5)
9773    (eval "$lt_compile" 2>conftest.err)
9774    ac_status=$?
9775    cat conftest.err >&5
9776    echo "$as_me:9776: \$? = $ac_status" >&5
9777    if (exit $ac_status) && test -s "$ac_outfile"; then
9778      # The compiler can only warn and ignore the option if not recognized
9779      # So say no if there are warnings other than the usual output.
9780      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9781      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9782      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9783        lt_cv_prog_compiler_pic_works=yes
9784      fi
9785    fi
9786    $RM conftest*
9787
9788 fi
9789 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9790 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9791
9792 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9793     case $lt_prog_compiler_pic in
9794      "" | " "*) ;;
9795      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9796      esac
9797 else
9798     lt_prog_compiler_pic=
9799      lt_prog_compiler_can_build_shared=no
9800 fi
9801
9802 fi
9803
9804
9805
9806
9807
9808
9809 #
9810 # Check to make sure the static flag actually works.
9811 #
9812 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9813 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9814 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9815 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9816   echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818   lt_cv_prog_compiler_static_works=no
9819    save_LDFLAGS="$LDFLAGS"
9820    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9821    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9822    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9823      # The linker can only warn and ignore the option if not recognized
9824      # So say no if there are warnings
9825      if test -s conftest.err; then
9826        # Append any errors to the config.log.
9827        cat conftest.err 1>&5
9828        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9829        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9830        if diff conftest.exp conftest.er2 >/dev/null; then
9831          lt_cv_prog_compiler_static_works=yes
9832        fi
9833      else
9834        lt_cv_prog_compiler_static_works=yes
9835      fi
9836    fi
9837    $RM -r conftest*
9838    LDFLAGS="$save_LDFLAGS"
9839
9840 fi
9841 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9842 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9843
9844 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9845     :
9846 else
9847     lt_prog_compiler_static=
9848 fi
9849
9850
9851
9852
9853
9854
9855
9856   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9857 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9858 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   lt_cv_prog_compiler_c_o=no
9862    $RM -r conftest 2>/dev/null
9863    mkdir conftest
9864    cd conftest
9865    mkdir out
9866    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9867
9868    lt_compiler_flag="-o out/conftest2.$ac_objext"
9869    # Insert the option either (1) after the last *FLAGS variable, or
9870    # (2) before a word containing "conftest.", or (3) at the end.
9871    # Note that $ac_compile itself does not contain backslashes and begins
9872    # with a dollar sign (not a hyphen), so the echo should work correctly.
9873    lt_compile=`echo "$ac_compile" | $SED \
9874    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9875    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9876    -e 's:$: $lt_compiler_flag:'`
9877    (eval echo "\"\$as_me:9877: $lt_compile\"" >&5)
9878    (eval "$lt_compile" 2>out/conftest.err)
9879    ac_status=$?
9880    cat out/conftest.err >&5
9881    echo "$as_me:9881: \$? = $ac_status" >&5
9882    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9883    then
9884      # The compiler can only warn and ignore the option if not recognized
9885      # So say no if there are warnings
9886      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9887      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9888      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9889        lt_cv_prog_compiler_c_o=yes
9890      fi
9891    fi
9892    chmod u+w . 2>&5
9893    $RM conftest*
9894    # SGI C++ compiler will create directory out/ii_files/ for
9895    # template instantiation
9896    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9897    $RM out/* && rmdir out
9898    cd ..
9899    $RM -r conftest
9900    $RM conftest*
9901
9902 fi
9903 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9904 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9905
9906
9907
9908
9909
9910
9911   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9912 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9913 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9914   echo $ECHO_N "(cached) $ECHO_C" >&6
9915 else
9916   lt_cv_prog_compiler_c_o=no
9917    $RM -r conftest 2>/dev/null
9918    mkdir conftest
9919    cd conftest
9920    mkdir out
9921    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9922
9923    lt_compiler_flag="-o out/conftest2.$ac_objext"
9924    # Insert the option either (1) after the last *FLAGS variable, or
9925    # (2) before a word containing "conftest.", or (3) at the end.
9926    # Note that $ac_compile itself does not contain backslashes and begins
9927    # with a dollar sign (not a hyphen), so the echo should work correctly.
9928    lt_compile=`echo "$ac_compile" | $SED \
9929    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9930    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9931    -e 's:$: $lt_compiler_flag:'`
9932    (eval echo "\"\$as_me:9932: $lt_compile\"" >&5)
9933    (eval "$lt_compile" 2>out/conftest.err)
9934    ac_status=$?
9935    cat out/conftest.err >&5
9936    echo "$as_me:9936: \$? = $ac_status" >&5
9937    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9938    then
9939      # The compiler can only warn and ignore the option if not recognized
9940      # So say no if there are warnings
9941      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9942      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9943      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9944        lt_cv_prog_compiler_c_o=yes
9945      fi
9946    fi
9947    chmod u+w . 2>&5
9948    $RM conftest*
9949    # SGI C++ compiler will create directory out/ii_files/ for
9950    # template instantiation
9951    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9952    $RM out/* && rmdir out
9953    cd ..
9954    $RM -r conftest
9955    $RM conftest*
9956
9957 fi
9958 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9959 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9960
9961
9962
9963
9964 hard_links="nottested"
9965 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9966   # do not overwrite the value of need_locks provided by the user
9967   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9968 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9969   hard_links=yes
9970   $RM conftest*
9971   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9972   touch conftest.a
9973   ln conftest.a conftest.b 2>&5 || hard_links=no
9974   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9975   { echo "$as_me:$LINENO: result: $hard_links" >&5
9976 echo "${ECHO_T}$hard_links" >&6; }
9977   if test "$hard_links" = no; then
9978     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9979 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9980     need_locks=warn
9981   fi
9982 else
9983   need_locks=no
9984 fi
9985
9986
9987
9988
9989
9990
9991   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9992 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9993
9994   runpath_var=
9995   allow_undefined_flag=
9996   always_export_symbols=no
9997   archive_cmds=
9998   archive_expsym_cmds=
9999   compiler_needs_object=no
10000   enable_shared_with_static_runtimes=no
10001   export_dynamic_flag_spec=
10002   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10003   hardcode_automatic=no
10004   hardcode_direct=no
10005   hardcode_direct_absolute=no
10006   hardcode_libdir_flag_spec=
10007   hardcode_libdir_flag_spec_ld=
10008   hardcode_libdir_separator=
10009   hardcode_minus_L=no
10010   hardcode_shlibpath_var=unsupported
10011   inherit_rpath=no
10012   link_all_deplibs=unknown
10013   module_cmds=
10014   module_expsym_cmds=
10015   old_archive_from_new_cmds=
10016   old_archive_from_expsyms_cmds=
10017   thread_safe_flag_spec=
10018   whole_archive_flag_spec=
10019   # include_expsyms should be a list of space-separated symbols to be *always*
10020   # included in the symbol list
10021   include_expsyms=
10022   # exclude_expsyms can be an extended regexp of symbols to exclude
10023   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10024   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10025   # as well as any symbol that contains `d'.
10026   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10027   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10028   # platforms (ab)use it in PIC code, but their linkers get confused if
10029   # the symbol is explicitly referenced.  Since portable code cannot
10030   # rely on this symbol name, it's probably fine to never include it in
10031   # preloaded symbol tables.
10032   # Exclude shared library initialization/finalization symbols.
10033   extract_expsyms_cmds=
10034
10035   case $host_os in
10036   cygwin* | mingw* | pw32* | cegcc*)
10037     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10038     # When not using gcc, we currently assume that we are using
10039     # Microsoft Visual C++.
10040     if test "$GCC" != yes; then
10041       with_gnu_ld=no
10042     fi
10043     ;;
10044   interix*)
10045     # we just hope/assume this is gcc and not c89 (= MSVC++)
10046     with_gnu_ld=yes
10047     ;;
10048   openbsd*)
10049     with_gnu_ld=no
10050     ;;
10051   esac
10052
10053   ld_shlibs=yes
10054   if test "$with_gnu_ld" = yes; then
10055     # If archive_cmds runs LD, not CC, wlarc should be empty
10056     wlarc='${wl}'
10057
10058     # Set some defaults for GNU ld with shared library support. These
10059     # are reset later if shared libraries are not supported. Putting them
10060     # here allows them to be overridden if necessary.
10061     runpath_var=LD_RUN_PATH
10062     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10063     export_dynamic_flag_spec='${wl}--export-dynamic'
10064     # ancient GNU ld didn't support --whole-archive et. al.
10065     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10066       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10067     else
10068       whole_archive_flag_spec=
10069     fi
10070     supports_anon_versioning=no
10071     case `$LD -v 2>&1` in
10072       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10073       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10074       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10075       *\ 2.11.*) ;; # other 2.11 versions
10076       *) supports_anon_versioning=yes ;;
10077     esac
10078
10079     # See if GNU ld supports shared libraries.
10080     case $host_os in
10081     aix[3-9]*)
10082       # On AIX/PPC, the GNU linker is very broken
10083       if test "$host_cpu" != ia64; then
10084         ld_shlibs=no
10085         cat <<_LT_EOF 1>&2
10086
10087 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10088 *** to be unable to reliably create shared libraries on AIX.
10089 *** Therefore, libtool is disabling shared libraries support.  If you
10090 *** really care for shared libraries, you may want to modify your PATH
10091 *** so that a non-GNU linker is found, and then restart.
10092
10093 _LT_EOF
10094       fi
10095       ;;
10096
10097     amigaos*)
10098       case $host_cpu in
10099       powerpc)
10100             # see comment about AmigaOS4 .so support
10101             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102             archive_expsym_cmds=''
10103         ;;
10104       m68k)
10105             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10106             hardcode_libdir_flag_spec='-L$libdir'
10107             hardcode_minus_L=yes
10108         ;;
10109       esac
10110       ;;
10111
10112     beos*)
10113       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10114         allow_undefined_flag=unsupported
10115         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10116         # support --undefined.  This deserves some investigation.  FIXME
10117         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10118       else
10119         ld_shlibs=no
10120       fi
10121       ;;
10122
10123     cygwin* | mingw* | pw32* | cegcc*)
10124       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10125       # as there is no search path for DLLs.
10126       hardcode_libdir_flag_spec='-L$libdir'
10127       allow_undefined_flag=unsupported
10128       always_export_symbols=no
10129       enable_shared_with_static_runtimes=yes
10130       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10131
10132       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10133         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10134         # If the export-symbols file already is a .def file (1st line
10135         # is EXPORTS), use it as is; otherwise, prepend...
10136         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10137           cp $export_symbols $output_objdir/$soname.def;
10138         else
10139           echo EXPORTS > $output_objdir/$soname.def;
10140           cat $export_symbols >> $output_objdir/$soname.def;
10141         fi~
10142         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10143       else
10144         ld_shlibs=no
10145       fi
10146       ;;
10147
10148     interix[3-9]*)
10149       hardcode_direct=no
10150       hardcode_shlibpath_var=no
10151       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10152       export_dynamic_flag_spec='${wl}-E'
10153       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10154       # Instead, shared libraries are loaded at an image base (0x10000000 by
10155       # default) and relocated if they conflict, which is a slow very memory
10156       # consuming and fragmenting process.  To avoid this, we pick a random,
10157       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10158       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10159       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10160       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10161       ;;
10162
10163     gnu* | linux* | tpf* | k*bsd*-gnu)
10164       tmp_diet=no
10165       if test "$host_os" = linux-dietlibc; then
10166         case $cc_basename in
10167           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10168         esac
10169       fi
10170       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10171          && test "$tmp_diet" = no
10172       then
10173         tmp_addflag=
10174         tmp_sharedflag='-shared'
10175         case $cc_basename,$host_cpu in
10176         pgcc*)                          # Portland Group C compiler
10177           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10178           tmp_addflag=' $pic_flag'
10179           ;;
10180         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10181           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10182           tmp_addflag=' $pic_flag -Mnomain' ;;
10183         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10184           tmp_addflag=' -i_dynamic' ;;
10185         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10186           tmp_addflag=' -i_dynamic -nofor_main' ;;
10187         ifc* | ifort*)                  # Intel Fortran compiler
10188           tmp_addflag=' -nofor_main' ;;
10189         lf95*)                          # Lahey Fortran 8.1
10190           whole_archive_flag_spec=
10191           tmp_sharedflag='--shared' ;;
10192         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10193           tmp_sharedflag='-qmkshrobj'
10194           tmp_addflag= ;;
10195         esac
10196         case `$CC -V 2>&1 | sed 5q` in
10197         *Sun\ C*)                       # Sun C 5.9
10198           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10199           compiler_needs_object=yes
10200           tmp_sharedflag='-G' ;;
10201         *Sun\ F*)                       # Sun Fortran 8.3
10202           tmp_sharedflag='-G' ;;
10203         esac
10204         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10205
10206         if test "x$supports_anon_versioning" = xyes; then
10207           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10208             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10209             echo "local: *; };" >> $output_objdir/$libname.ver~
10210             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10211         fi
10212
10213         case $cc_basename in
10214         xlf*)
10215           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10216           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10217           hardcode_libdir_flag_spec=
10218           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10219           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10220           if test "x$supports_anon_versioning" = xyes; then
10221             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10222               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10223               echo "local: *; };" >> $output_objdir/$libname.ver~
10224               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10225           fi
10226           ;;
10227         esac
10228       else
10229         ld_shlibs=no
10230       fi
10231       ;;
10232
10233     netbsd*)
10234       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10235         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10236         wlarc=
10237       else
10238         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10239         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10240       fi
10241       ;;
10242
10243     solaris*)
10244       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10245         ld_shlibs=no
10246         cat <<_LT_EOF 1>&2
10247
10248 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10249 *** create shared libraries on Solaris systems.  Therefore, libtool
10250 *** is disabling shared libraries support.  We urge you to upgrade GNU
10251 *** binutils to release 2.9.1 or newer.  Another option is to modify
10252 *** your PATH or compiler configuration so that the native linker is
10253 *** used, and then restart.
10254
10255 _LT_EOF
10256       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10257         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10258         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10259       else
10260         ld_shlibs=no
10261       fi
10262       ;;
10263
10264     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10265       case `$LD -v 2>&1` in
10266         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10267         ld_shlibs=no
10268         cat <<_LT_EOF 1>&2
10269
10270 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10271 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10272 *** is disabling shared libraries support.  We urge you to upgrade GNU
10273 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10274 *** your PATH or compiler configuration so that the native linker is
10275 *** used, and then restart.
10276
10277 _LT_EOF
10278         ;;
10279         *)
10280           # For security reasons, it is highly recommended that you always
10281           # use absolute paths for naming shared libraries, and exclude the
10282           # DT_RUNPATH tag from executables and libraries.  But doing so
10283           # requires that you compile everything twice, which is a pain.
10284           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10285             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10286             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10287             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10288           else
10289             ld_shlibs=no
10290           fi
10291         ;;
10292       esac
10293       ;;
10294
10295     sunos4*)
10296       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10297       wlarc=
10298       hardcode_direct=yes
10299       hardcode_shlibpath_var=no
10300       ;;
10301
10302     *)
10303       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10304         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10305         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10306       else
10307         ld_shlibs=no
10308       fi
10309       ;;
10310     esac
10311
10312     if test "$ld_shlibs" = no; then
10313       runpath_var=
10314       hardcode_libdir_flag_spec=
10315       export_dynamic_flag_spec=
10316       whole_archive_flag_spec=
10317     fi
10318   else
10319     # PORTME fill in a description of your system's linker (not GNU ld)
10320     case $host_os in
10321     aix3*)
10322       allow_undefined_flag=unsupported
10323       always_export_symbols=yes
10324       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10325       # Note: this linker hardcodes the directories in LIBPATH if there
10326       # are no directories specified by -L.
10327       hardcode_minus_L=yes
10328       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10329         # Neither direct hardcoding nor static linking is supported with a
10330         # broken collect2.
10331         hardcode_direct=unsupported
10332       fi
10333       ;;
10334
10335     aix[4-9]*)
10336       if test "$host_cpu" = ia64; then
10337         # On IA64, the linker does run time linking by default, so we don't
10338         # have to do anything special.
10339         aix_use_runtimelinking=no
10340         exp_sym_flag='-Bexport'
10341         no_entry_flag=""
10342       else
10343         # If we're using GNU nm, then we don't want the "-C" option.
10344         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10345         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10346           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10347         else
10348           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10349         fi
10350         aix_use_runtimelinking=no
10351
10352         # Test if we are trying to use run time linking or normal
10353         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10354         # need to do runtime linking.
10355         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10356           for ld_flag in $LDFLAGS; do
10357           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10358             aix_use_runtimelinking=yes
10359             break
10360           fi
10361           done
10362           ;;
10363         esac
10364
10365         exp_sym_flag='-bexport'
10366         no_entry_flag='-bnoentry'
10367       fi
10368
10369       # When large executables or shared objects are built, AIX ld can
10370       # have problems creating the table of contents.  If linking a library
10371       # or program results in "error TOC overflow" add -mminimal-toc to
10372       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10373       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10374
10375       archive_cmds=''
10376       hardcode_direct=yes
10377       hardcode_direct_absolute=yes
10378       hardcode_libdir_separator=':'
10379       link_all_deplibs=yes
10380       file_list_spec='${wl}-f,'
10381
10382       if test "$GCC" = yes; then
10383         case $host_os in aix4.[012]|aix4.[012].*)
10384         # We only want to do this on AIX 4.2 and lower, the check
10385         # below for broken collect2 doesn't work under 4.3+
10386           collect2name=`${CC} -print-prog-name=collect2`
10387           if test -f "$collect2name" &&
10388            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10389           then
10390           # We have reworked collect2
10391           :
10392           else
10393           # We have old collect2
10394           hardcode_direct=unsupported
10395           # It fails to find uninstalled libraries when the uninstalled
10396           # path is not listed in the libpath.  Setting hardcode_minus_L
10397           # to unsupported forces relinking
10398           hardcode_minus_L=yes
10399           hardcode_libdir_flag_spec='-L$libdir'
10400           hardcode_libdir_separator=
10401           fi
10402           ;;
10403         esac
10404         shared_flag='-shared'
10405         if test "$aix_use_runtimelinking" = yes; then
10406           shared_flag="$shared_flag "'${wl}-G'
10407         fi
10408       else
10409         # not using gcc
10410         if test "$host_cpu" = ia64; then
10411         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10412         # chokes on -Wl,-G. The following line is correct:
10413           shared_flag='-G'
10414         else
10415           if test "$aix_use_runtimelinking" = yes; then
10416             shared_flag='${wl}-G'
10417           else
10418             shared_flag='${wl}-bM:SRE'
10419           fi
10420         fi
10421       fi
10422
10423       export_dynamic_flag_spec='${wl}-bexpall'
10424       # It seems that -bexpall does not export symbols beginning with
10425       # underscore (_), so it is better to generate a list of symbols to export.
10426       always_export_symbols=yes
10427       if test "$aix_use_runtimelinking" = yes; then
10428         # Warning - without using the other runtime loading flags (-brtl),
10429         # -berok will link without error, but may produce a broken library.
10430         allow_undefined_flag='-berok'
10431         # Determine the default libpath from the value encoded in an
10432         # empty executable.
10433         cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h.  */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h.  */
10439
10440 int
10441 main ()
10442 {
10443
10444   ;
10445   return 0;
10446 }
10447 _ACEOF
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (ac_try="$ac_link"
10450 case "(($ac_try" in
10451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452   *) ac_try_echo=$ac_try;;
10453 esac
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455   (eval "$ac_link") 2>conftest.er1
10456   ac_status=$?
10457   grep -v '^ *+' conftest.er1 >conftest.err
10458   rm -f conftest.er1
10459   cat conftest.err >&5
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); } && {
10462          test -z "$ac_c_werror_flag" ||
10463          test ! -s conftest.err
10464        } && test -s conftest$ac_exeext &&
10465        $as_test_x conftest$ac_exeext; then
10466
10467 lt_aix_libpath_sed='
10468     /Import File Strings/,/^$/ {
10469         /^0/ {
10470             s/^0  *\(.*\)$/\1/
10471             p
10472         }
10473     }'
10474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10475 # Check for a 64-bit object if we didn't find anything.
10476 if test -z "$aix_libpath"; then
10477   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478 fi
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483
10484 fi
10485
10486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10487       conftest$ac_exeext conftest.$ac_ext
10488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10489
10490         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10491         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10492       else
10493         if test "$host_cpu" = ia64; then
10494           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10495           allow_undefined_flag="-z nodefs"
10496           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10497         else
10498          # Determine the default libpath from the value encoded in an
10499          # empty executable.
10500          cat >conftest.$ac_ext <<_ACEOF
10501 /* confdefs.h.  */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h.  */
10506
10507 int
10508 main ()
10509 {
10510
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 rm -f conftest.$ac_objext conftest$ac_exeext
10516 if { (ac_try="$ac_link"
10517 case "(($ac_try" in
10518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519   *) ac_try_echo=$ac_try;;
10520 esac
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522   (eval "$ac_link") 2>conftest.er1
10523   ac_status=$?
10524   grep -v '^ *+' conftest.er1 >conftest.err
10525   rm -f conftest.er1
10526   cat conftest.err >&5
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); } && {
10529          test -z "$ac_c_werror_flag" ||
10530          test ! -s conftest.err
10531        } && test -s conftest$ac_exeext &&
10532        $as_test_x conftest$ac_exeext; then
10533
10534 lt_aix_libpath_sed='
10535     /Import File Strings/,/^$/ {
10536         /^0/ {
10537             s/^0  *\(.*\)$/\1/
10538             p
10539         }
10540     }'
10541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10542 # Check for a 64-bit object if we didn't find anything.
10543 if test -z "$aix_libpath"; then
10544   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 fi
10546 else
10547   echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550
10551 fi
10552
10553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10554       conftest$ac_exeext conftest.$ac_ext
10555 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10556
10557          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10558           # Warning - without using the other run time loading flags,
10559           # -berok will link without error, but may produce a broken library.
10560           no_undefined_flag=' ${wl}-bernotok'
10561           allow_undefined_flag=' ${wl}-berok'
10562           # Exported symbols can be pulled into shared objects from archives
10563           whole_archive_flag_spec='$convenience'
10564           archive_cmds_need_lc=yes
10565           # This is similar to how AIX traditionally builds its shared libraries.
10566           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10567         fi
10568       fi
10569       ;;
10570
10571     amigaos*)
10572       case $host_cpu in
10573       powerpc)
10574             # see comment about AmigaOS4 .so support
10575             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10576             archive_expsym_cmds=''
10577         ;;
10578       m68k)
10579             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10580             hardcode_libdir_flag_spec='-L$libdir'
10581             hardcode_minus_L=yes
10582         ;;
10583       esac
10584       ;;
10585
10586     bsdi[45]*)
10587       export_dynamic_flag_spec=-rdynamic
10588       ;;
10589
10590     cygwin* | mingw* | pw32* | cegcc*)
10591       # When not using gcc, we currently assume that we are using
10592       # Microsoft Visual C++.
10593       # hardcode_libdir_flag_spec is actually meaningless, as there is
10594       # no search path for DLLs.
10595       hardcode_libdir_flag_spec=' '
10596       allow_undefined_flag=unsupported
10597       # Tell ltmain to make .lib files, not .a files.
10598       libext=lib
10599       # Tell ltmain to make .dll files, not .so files.
10600       shrext_cmds=".dll"
10601       # FIXME: Setting linknames here is a bad hack.
10602       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10603       # The linker will automatically build a .lib file if we build a DLL.
10604       old_archive_from_new_cmds='true'
10605       # FIXME: Should let the user specify the lib program.
10606       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10607       fix_srcfile_path='`cygpath -w "$srcfile"`'
10608       enable_shared_with_static_runtimes=yes
10609       ;;
10610
10611     darwin* | rhapsody*)
10612
10613
10614   archive_cmds_need_lc=no
10615   hardcode_direct=no
10616   hardcode_automatic=yes
10617   hardcode_shlibpath_var=unsupported
10618   whole_archive_flag_spec=''
10619   link_all_deplibs=yes
10620   allow_undefined_flag="$_lt_dar_allow_undefined"
10621   case $cc_basename in
10622      ifort*) _lt_dar_can_shared=yes ;;
10623      *) _lt_dar_can_shared=$GCC ;;
10624   esac
10625   if test "$_lt_dar_can_shared" = "yes"; then
10626     output_verbose_link_cmd=echo
10627     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10628     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10629     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10630     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10631
10632   else
10633   ld_shlibs=no
10634   fi
10635
10636       ;;
10637
10638     dgux*)
10639       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10640       hardcode_libdir_flag_spec='-L$libdir'
10641       hardcode_shlibpath_var=no
10642       ;;
10643
10644     freebsd1*)
10645       ld_shlibs=no
10646       ;;
10647
10648     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10649     # support.  Future versions do this automatically, but an explicit c++rt0.o
10650     # does not break anything, and helps significantly (at the cost of a little
10651     # extra space).
10652     freebsd2.2*)
10653       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10654       hardcode_libdir_flag_spec='-R$libdir'
10655       hardcode_direct=yes
10656       hardcode_shlibpath_var=no
10657       ;;
10658
10659     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10660     freebsd2*)
10661       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10662       hardcode_direct=yes
10663       hardcode_minus_L=yes
10664       hardcode_shlibpath_var=no
10665       ;;
10666
10667     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10668     freebsd* | dragonfly*)
10669       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10670       hardcode_libdir_flag_spec='-R$libdir'
10671       hardcode_direct=yes
10672       hardcode_shlibpath_var=no
10673       ;;
10674
10675     hpux9*)
10676       if test "$GCC" = yes; then
10677         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10678       else
10679         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10680       fi
10681       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10682       hardcode_libdir_separator=:
10683       hardcode_direct=yes
10684
10685       # hardcode_minus_L: Not really in the search PATH,
10686       # but as the default location of the library.
10687       hardcode_minus_L=yes
10688       export_dynamic_flag_spec='${wl}-E'
10689       ;;
10690
10691     hpux10*)
10692       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10693         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10694       else
10695         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10696       fi
10697       if test "$with_gnu_ld" = no; then
10698         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10699         hardcode_libdir_flag_spec_ld='+b $libdir'
10700         hardcode_libdir_separator=:
10701         hardcode_direct=yes
10702         hardcode_direct_absolute=yes
10703         export_dynamic_flag_spec='${wl}-E'
10704         # hardcode_minus_L: Not really in the search PATH,
10705         # but as the default location of the library.
10706         hardcode_minus_L=yes
10707       fi
10708       ;;
10709
10710     hpux11*)
10711       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10712         case $host_cpu in
10713         hppa*64*)
10714           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10715           ;;
10716         ia64*)
10717           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10718           ;;
10719         *)
10720           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10721           ;;
10722         esac
10723       else
10724         case $host_cpu in
10725         hppa*64*)
10726           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10727           ;;
10728         ia64*)
10729           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10730           ;;
10731         *)
10732           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10733           ;;
10734         esac
10735       fi
10736       if test "$with_gnu_ld" = no; then
10737         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10738         hardcode_libdir_separator=:
10739
10740         case $host_cpu in
10741         hppa*64*|ia64*)
10742           hardcode_direct=no
10743           hardcode_shlibpath_var=no
10744           ;;
10745         *)
10746           hardcode_direct=yes
10747           hardcode_direct_absolute=yes
10748           export_dynamic_flag_spec='${wl}-E'
10749
10750           # hardcode_minus_L: Not really in the search PATH,
10751           # but as the default location of the library.
10752           hardcode_minus_L=yes
10753           ;;
10754         esac
10755       fi
10756       ;;
10757
10758     irix5* | irix6* | nonstopux*)
10759       if test "$GCC" = yes; then
10760         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10761         # Try to use the -exported_symbol ld option, if it does not
10762         # work, assume that -exports_file does not work either and
10763         # implicitly export all symbols.
10764         save_LDFLAGS="$LDFLAGS"
10765         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10766         cat >conftest.$ac_ext <<_ACEOF
10767 int foo(void) {}
10768 _ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773   *) ac_try_echo=$ac_try;;
10774 esac
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776   (eval "$ac_link") 2>conftest.er1
10777   ac_status=$?
10778   grep -v '^ *+' conftest.er1 >conftest.err
10779   rm -f conftest.er1
10780   cat conftest.err >&5
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); } && {
10783          test -z "$ac_c_werror_flag" ||
10784          test ! -s conftest.err
10785        } && test -s conftest$ac_exeext &&
10786        $as_test_x conftest$ac_exeext; then
10787   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10788
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793
10794 fi
10795
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797       conftest$ac_exeext conftest.$ac_ext
10798         LDFLAGS="$save_LDFLAGS"
10799       else
10800         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10801         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10802       fi
10803       archive_cmds_need_lc='no'
10804       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10805       hardcode_libdir_separator=:
10806       inherit_rpath=yes
10807       link_all_deplibs=yes
10808       ;;
10809
10810     netbsd*)
10811       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10812         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10813       else
10814         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10815       fi
10816       hardcode_libdir_flag_spec='-R$libdir'
10817       hardcode_direct=yes
10818       hardcode_shlibpath_var=no
10819       ;;
10820
10821     newsos6)
10822       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10823       hardcode_direct=yes
10824       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10825       hardcode_libdir_separator=:
10826       hardcode_shlibpath_var=no
10827       ;;
10828
10829     *nto* | *qnx*)
10830       ;;
10831
10832     openbsd*)
10833       if test -f /usr/libexec/ld.so; then
10834         hardcode_direct=yes
10835         hardcode_shlibpath_var=no
10836         hardcode_direct_absolute=yes
10837         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10838           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10839           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10840           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10841           export_dynamic_flag_spec='${wl}-E'
10842         else
10843           case $host_os in
10844            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10845              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10846              hardcode_libdir_flag_spec='-R$libdir'
10847              ;;
10848            *)
10849              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10850              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10851              ;;
10852           esac
10853         fi
10854       else
10855         ld_shlibs=no
10856       fi
10857       ;;
10858
10859     os2*)
10860       hardcode_libdir_flag_spec='-L$libdir'
10861       hardcode_minus_L=yes
10862       allow_undefined_flag=unsupported
10863       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10864       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10865       ;;
10866
10867     osf3*)
10868       if test "$GCC" = yes; then
10869         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10870         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10871       else
10872         allow_undefined_flag=' -expect_unresolved \*'
10873         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10874       fi
10875       archive_cmds_need_lc='no'
10876       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10877       hardcode_libdir_separator=:
10878       ;;
10879
10880     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10881       if test "$GCC" = yes; then
10882         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10883         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10884         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10885       else
10886         allow_undefined_flag=' -expect_unresolved \*'
10887         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10888         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10889         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10890
10891         # Both c and cxx compiler support -rpath directly
10892         hardcode_libdir_flag_spec='-rpath $libdir'
10893       fi
10894       archive_cmds_need_lc='no'
10895       hardcode_libdir_separator=:
10896       ;;
10897
10898     solaris*)
10899       no_undefined_flag=' -z defs'
10900       if test "$GCC" = yes; then
10901         wlarc='${wl}'
10902         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10903         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10904           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10905       else
10906         case `$CC -V 2>&1` in
10907         *"Compilers 5.0"*)
10908           wlarc=''
10909           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10910           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10911           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10912           ;;
10913         *)
10914           wlarc='${wl}'
10915           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10916           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10917           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10918           ;;
10919         esac
10920       fi
10921       hardcode_libdir_flag_spec='-R$libdir'
10922       hardcode_shlibpath_var=no
10923       case $host_os in
10924       solaris2.[0-5] | solaris2.[0-5].*) ;;
10925       *)
10926         # The compiler driver will combine and reorder linker options,
10927         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10928         # but is careful enough not to reorder.
10929         # Supported since Solaris 2.6 (maybe 2.5.1?)
10930         if test "$GCC" = yes; then
10931           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10932         else
10933           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10934         fi
10935         ;;
10936       esac
10937       link_all_deplibs=yes
10938       ;;
10939
10940     sunos4*)
10941       if test "x$host_vendor" = xsequent; then
10942         # Use $CC to link under sequent, because it throws in some extra .o
10943         # files that make .init and .fini sections work.
10944         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10945       else
10946         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10947       fi
10948       hardcode_libdir_flag_spec='-L$libdir'
10949       hardcode_direct=yes
10950       hardcode_minus_L=yes
10951       hardcode_shlibpath_var=no
10952       ;;
10953
10954     sysv4)
10955       case $host_vendor in
10956         sni)
10957           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10958           hardcode_direct=yes # is this really true???
10959         ;;
10960         siemens)
10961           ## LD is ld it makes a PLAMLIB
10962           ## CC just makes a GrossModule.
10963           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10964           reload_cmds='$CC -r -o $output$reload_objs'
10965           hardcode_direct=no
10966         ;;
10967         motorola)
10968           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10969           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10970         ;;
10971       esac
10972       runpath_var='LD_RUN_PATH'
10973       hardcode_shlibpath_var=no
10974       ;;
10975
10976     sysv4.3*)
10977       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978       hardcode_shlibpath_var=no
10979       export_dynamic_flag_spec='-Bexport'
10980       ;;
10981
10982     sysv4*MP*)
10983       if test -d /usr/nec; then
10984         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10985         hardcode_shlibpath_var=no
10986         runpath_var=LD_RUN_PATH
10987         hardcode_runpath_var=yes
10988         ld_shlibs=yes
10989       fi
10990       ;;
10991
10992     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10993       no_undefined_flag='${wl}-z,text'
10994       archive_cmds_need_lc=no
10995       hardcode_shlibpath_var=no
10996       runpath_var='LD_RUN_PATH'
10997
10998       if test "$GCC" = yes; then
10999         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11000         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11001       else
11002         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004       fi
11005       ;;
11006
11007     sysv5* | sco3.2v5* | sco5v6*)
11008       # Note: We can NOT use -z defs as we might desire, because we do not
11009       # link with -lc, and that would cause any symbols used from libc to
11010       # always be unresolved, which means just about no library would
11011       # ever link correctly.  If we're not using GNU ld we use -z text
11012       # though, which does catch some bad symbols but isn't as heavy-handed
11013       # as -z defs.
11014       no_undefined_flag='${wl}-z,text'
11015       allow_undefined_flag='${wl}-z,nodefs'
11016       archive_cmds_need_lc=no
11017       hardcode_shlibpath_var=no
11018       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11019       hardcode_libdir_separator=':'
11020       link_all_deplibs=yes
11021       export_dynamic_flag_spec='${wl}-Bexport'
11022       runpath_var='LD_RUN_PATH'
11023
11024       if test "$GCC" = yes; then
11025         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11026         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11027       else
11028         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030       fi
11031       ;;
11032
11033     uts4*)
11034       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11035       hardcode_libdir_flag_spec='-L$libdir'
11036       hardcode_shlibpath_var=no
11037       ;;
11038
11039     *)
11040       ld_shlibs=no
11041       ;;
11042     esac
11043
11044     if test x$host_vendor = xsni; then
11045       case $host in
11046       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11047         export_dynamic_flag_spec='${wl}-Blargedynsym'
11048         ;;
11049       esac
11050     fi
11051   fi
11052
11053 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11054 echo "${ECHO_T}$ld_shlibs" >&6; }
11055 test "$ld_shlibs" = no && can_build_shared=no
11056
11057 with_gnu_ld=$with_gnu_ld
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073 #
11074 # Do we need to explicitly link libc?
11075 #
11076 case "x$archive_cmds_need_lc" in
11077 x|xyes)
11078   # Assume -lc should be added
11079   archive_cmds_need_lc=yes
11080
11081   if test "$enable_shared" = yes && test "$GCC" = yes; then
11082     case $archive_cmds in
11083     *'~'*)
11084       # FIXME: we may have to deal with multi-command sequences.
11085       ;;
11086     '$CC '*)
11087       # Test whether the compiler implicitly links with -lc since on some
11088       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11089       # to ld, don't add -lc before -lgcc.
11090       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11091 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11092       $RM conftest*
11093       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11094
11095       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11096   (eval $ac_compile) 2>&5
11097   ac_status=$?
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); } 2>conftest.err; then
11100         soname=conftest
11101         lib=conftest
11102         libobjs=conftest.$ac_objext
11103         deplibs=
11104         wl=$lt_prog_compiler_wl
11105         pic_flag=$lt_prog_compiler_pic
11106         compiler_flags=-v
11107         linker_flags=-v
11108         verstring=
11109         output_objdir=.
11110         libname=conftest
11111         lt_save_allow_undefined_flag=$allow_undefined_flag
11112         allow_undefined_flag=
11113         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11114   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); }
11118         then
11119           archive_cmds_need_lc=no
11120         else
11121           archive_cmds_need_lc=yes
11122         fi
11123         allow_undefined_flag=$lt_save_allow_undefined_flag
11124       else
11125         cat conftest.err 1>&5
11126       fi
11127       $RM conftest*
11128       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11129 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11130       ;;
11131     esac
11132   fi
11133   ;;
11134 esac
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11293 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11294
11295 if test "$GCC" = yes; then
11296   case $host_os in
11297     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11298     *) lt_awk_arg="/^libraries:/" ;;
11299   esac
11300   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11301   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11302     # if the path contains ";" then we assume it to be the separator
11303     # otherwise default to the standard path separator (i.e. ":") - it is
11304     # assumed that no part of a normal pathname contains ";" but that should
11305     # okay in the real world where ";" in dirpaths is itself problematic.
11306     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11307   else
11308     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11309   fi
11310   # Ok, now we have the path, separated by spaces, we can step through it
11311   # and add multilib dir if necessary.
11312   lt_tmp_lt_search_path_spec=
11313   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11314   for lt_sys_path in $lt_search_path_spec; do
11315     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11316       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11317     else
11318       test -d "$lt_sys_path" && \
11319         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11320     fi
11321   done
11322   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11323 BEGIN {RS=" "; FS="/|\n";} {
11324   lt_foo="";
11325   lt_count=0;
11326   for (lt_i = NF; lt_i > 0; lt_i--) {
11327     if ($lt_i != "" && $lt_i != ".") {
11328       if ($lt_i == "..") {
11329         lt_count++;
11330       } else {
11331         if (lt_count == 0) {
11332           lt_foo="/" $lt_i lt_foo;
11333         } else {
11334           lt_count--;
11335         }
11336       }
11337     }
11338   }
11339   if (lt_foo != "") { lt_freq[lt_foo]++; }
11340   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11341 }'`
11342   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11343 else
11344   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11345 fi
11346 library_names_spec=
11347 libname_spec='lib$name'
11348 soname_spec=
11349 shrext_cmds=".so"
11350 postinstall_cmds=
11351 postuninstall_cmds=
11352 finish_cmds=
11353 finish_eval=
11354 shlibpath_var=
11355 shlibpath_overrides_runpath=unknown
11356 version_type=none
11357 dynamic_linker="$host_os ld.so"
11358 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11359 need_lib_prefix=unknown
11360 hardcode_into_libs=no
11361
11362 # when you set need_version to no, make sure it does not cause -set_version
11363 # flags to be left without arguments
11364 need_version=unknown
11365
11366 case $host_os in
11367 aix3*)
11368   version_type=linux
11369   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11370   shlibpath_var=LIBPATH
11371
11372   # AIX 3 has no versioning support, so we append a major version to the name.
11373   soname_spec='${libname}${release}${shared_ext}$major'
11374   ;;
11375
11376 aix[4-9]*)
11377   version_type=linux
11378   need_lib_prefix=no
11379   need_version=no
11380   hardcode_into_libs=yes
11381   if test "$host_cpu" = ia64; then
11382     # AIX 5 supports IA64
11383     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11384     shlibpath_var=LD_LIBRARY_PATH
11385   else
11386     # With GCC up to 2.95.x, collect2 would create an import file
11387     # for dependence libraries.  The import file would start with
11388     # the line `#! .'.  This would cause the generated library to
11389     # depend on `.', always an invalid library.  This was fixed in
11390     # development snapshots of GCC prior to 3.0.
11391     case $host_os in
11392       aix4 | aix4.[01] | aix4.[01].*)
11393       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11394            echo ' yes '
11395            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11396         :
11397       else
11398         can_build_shared=no
11399       fi
11400       ;;
11401     esac
11402     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11403     # soname into executable. Probably we can add versioning support to
11404     # collect2, so additional links can be useful in future.
11405     if test "$aix_use_runtimelinking" = yes; then
11406       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11407       # instead of lib<name>.a to let people know that these are not
11408       # typical AIX shared libraries.
11409       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11410     else
11411       # We preserve .a as extension for shared libraries through AIX4.2
11412       # and later when we are not doing run time linking.
11413       library_names_spec='${libname}${release}.a $libname.a'
11414       soname_spec='${libname}${release}${shared_ext}$major'
11415     fi
11416     shlibpath_var=LIBPATH
11417   fi
11418   ;;
11419
11420 amigaos*)
11421   case $host_cpu in
11422   powerpc)
11423     # Since July 2007 AmigaOS4 officially supports .so libraries.
11424     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11426     ;;
11427   m68k)
11428     library_names_spec='$libname.ixlibrary $libname.a'
11429     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11430     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11431     ;;
11432   esac
11433   ;;
11434
11435 beos*)
11436   library_names_spec='${libname}${shared_ext}'
11437   dynamic_linker="$host_os ld.so"
11438   shlibpath_var=LIBRARY_PATH
11439   ;;
11440
11441 bsdi[45]*)
11442   version_type=linux
11443   need_version=no
11444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11445   soname_spec='${libname}${release}${shared_ext}$major'
11446   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11447   shlibpath_var=LD_LIBRARY_PATH
11448   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11449   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11450   # the default ld.so.conf also contains /usr/contrib/lib and
11451   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11452   # libtool to hard-code these into programs
11453   ;;
11454
11455 cygwin* | mingw* | pw32* | cegcc*)
11456   version_type=windows
11457   shrext_cmds=".dll"
11458   need_version=no
11459   need_lib_prefix=no
11460
11461   case $GCC,$host_os in
11462   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11463     library_names_spec='$libname.dll.a'
11464     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11465     postinstall_cmds='base_file=`basename \${file}`~
11466       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11467       dldir=$destdir/`dirname \$dlpath`~
11468       test -d \$dldir || mkdir -p \$dldir~
11469       $install_prog $dir/$dlname \$dldir/$dlname~
11470       chmod a+x \$dldir/$dlname~
11471       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11472         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11473       fi'
11474     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11475       dlpath=$dir/\$dldll~
11476        $RM \$dlpath'
11477     shlibpath_overrides_runpath=yes
11478
11479     case $host_os in
11480     cygwin*)
11481       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11482       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11483       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11484       ;;
11485     mingw* | cegcc*)
11486       # MinGW DLLs use traditional 'lib' prefix
11487       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11488       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11489       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11490         # It is most probably a Windows format PATH printed by
11491         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11492         # path with ; separators, and with drive letters. We can handle the
11493         # drive letters (cygwin fileutils understands them), so leave them,
11494         # especially as we might pass files found there to a mingw objdump,
11495         # which wouldn't understand a cygwinified path. Ahh.
11496         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11497       else
11498         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11499       fi
11500       ;;
11501     pw32*)
11502       # pw32 DLLs use 'pw' prefix rather than 'lib'
11503       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11504       ;;
11505     esac
11506     ;;
11507
11508   *)
11509     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11510     ;;
11511   esac
11512   dynamic_linker='Win32 ld.exe'
11513   # FIXME: first we should search . and the directory the executable is in
11514   shlibpath_var=PATH
11515   ;;
11516
11517 darwin* | rhapsody*)
11518   dynamic_linker="$host_os dyld"
11519   version_type=darwin
11520   need_lib_prefix=no
11521   need_version=no
11522   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11523   soname_spec='${libname}${release}${major}$shared_ext'
11524   shlibpath_overrides_runpath=yes
11525   shlibpath_var=DYLD_LIBRARY_PATH
11526   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11527
11528   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11529   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11530   ;;
11531
11532 dgux*)
11533   version_type=linux
11534   need_lib_prefix=no
11535   need_version=no
11536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11537   soname_spec='${libname}${release}${shared_ext}$major'
11538   shlibpath_var=LD_LIBRARY_PATH
11539   ;;
11540
11541 freebsd1*)
11542   dynamic_linker=no
11543   ;;
11544
11545 freebsd* | dragonfly*)
11546   # DragonFly does not have aout.  When/if they implement a new
11547   # versioning mechanism, adjust this.
11548   if test -x /usr/bin/objformat; then
11549     objformat=`/usr/bin/objformat`
11550   else
11551     case $host_os in
11552     freebsd[123]*) objformat=aout ;;
11553     *) objformat=elf ;;
11554     esac
11555   fi
11556   version_type=freebsd-$objformat
11557   case $version_type in
11558     freebsd-elf*)
11559       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11560       need_version=no
11561       need_lib_prefix=no
11562       ;;
11563     freebsd-*)
11564       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11565       need_version=yes
11566       ;;
11567   esac
11568   shlibpath_var=LD_LIBRARY_PATH
11569   case $host_os in
11570   freebsd2*)
11571     shlibpath_overrides_runpath=yes
11572     ;;
11573   freebsd3.[01]* | freebsdelf3.[01]*)
11574     shlibpath_overrides_runpath=yes
11575     hardcode_into_libs=yes
11576     ;;
11577   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11578   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11579     shlibpath_overrides_runpath=no
11580     hardcode_into_libs=yes
11581     ;;
11582   *) # from 4.6 on, and DragonFly
11583     shlibpath_overrides_runpath=yes
11584     hardcode_into_libs=yes
11585     ;;
11586   esac
11587   ;;
11588
11589 gnu*)
11590   version_type=linux
11591   need_lib_prefix=no
11592   need_version=no
11593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11594   soname_spec='${libname}${release}${shared_ext}$major'
11595   shlibpath_var=LD_LIBRARY_PATH
11596   hardcode_into_libs=yes
11597   ;;
11598
11599 hpux9* | hpux10* | hpux11*)
11600   # Give a soname corresponding to the major version so that dld.sl refuses to
11601   # link against other versions.
11602   version_type=sunos
11603   need_lib_prefix=no
11604   need_version=no
11605   case $host_cpu in
11606   ia64*)
11607     shrext_cmds='.so'
11608     hardcode_into_libs=yes
11609     dynamic_linker="$host_os dld.so"
11610     shlibpath_var=LD_LIBRARY_PATH
11611     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11612     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613     soname_spec='${libname}${release}${shared_ext}$major'
11614     if test "X$HPUX_IA64_MODE" = X32; then
11615       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11616     else
11617       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11618     fi
11619     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11620     ;;
11621   hppa*64*)
11622     shrext_cmds='.sl'
11623     hardcode_into_libs=yes
11624     dynamic_linker="$host_os dld.sl"
11625     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11626     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628     soname_spec='${libname}${release}${shared_ext}$major'
11629     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11630     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11631     ;;
11632   *)
11633     shrext_cmds='.sl'
11634     dynamic_linker="$host_os dld.sl"
11635     shlibpath_var=SHLIB_PATH
11636     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638     soname_spec='${libname}${release}${shared_ext}$major'
11639     ;;
11640   esac
11641   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11642   postinstall_cmds='chmod 555 $lib'
11643   ;;
11644
11645 interix[3-9]*)
11646   version_type=linux
11647   need_lib_prefix=no
11648   need_version=no
11649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11650   soname_spec='${libname}${release}${shared_ext}$major'
11651   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11652   shlibpath_var=LD_LIBRARY_PATH
11653   shlibpath_overrides_runpath=no
11654   hardcode_into_libs=yes
11655   ;;
11656
11657 irix5* | irix6* | nonstopux*)
11658   case $host_os in
11659     nonstopux*) version_type=nonstopux ;;
11660     *)
11661         if test "$lt_cv_prog_gnu_ld" = yes; then
11662                 version_type=linux
11663         else
11664                 version_type=irix
11665         fi ;;
11666   esac
11667   need_lib_prefix=no
11668   need_version=no
11669   soname_spec='${libname}${release}${shared_ext}$major'
11670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11671   case $host_os in
11672   irix5* | nonstopux*)
11673     libsuff= shlibsuff=
11674     ;;
11675   *)
11676     case $LD in # libtool.m4 will add one of these switches to LD
11677     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11678       libsuff= shlibsuff= libmagic=32-bit;;
11679     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11680       libsuff=32 shlibsuff=N32 libmagic=N32;;
11681     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11682       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11683     *) libsuff= shlibsuff= libmagic=never-match;;
11684     esac
11685     ;;
11686   esac
11687   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11688   shlibpath_overrides_runpath=no
11689   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11690   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11691   hardcode_into_libs=yes
11692   ;;
11693
11694 # No shared lib support for Linux oldld, aout, or coff.
11695 linux*oldld* | linux*aout* | linux*coff*)
11696   dynamic_linker=no
11697   ;;
11698
11699 # This must be Linux ELF.
11700 linux* | k*bsd*-gnu)
11701   version_type=linux
11702   need_lib_prefix=no
11703   need_version=no
11704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11705   soname_spec='${libname}${release}${shared_ext}$major'
11706   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11707   shlibpath_var=LD_LIBRARY_PATH
11708   shlibpath_overrides_runpath=no
11709   # Some binutils ld are patched to set DT_RUNPATH
11710   save_LDFLAGS=$LDFLAGS
11711   save_libdir=$libdir
11712   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11713        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11714   cat >conftest.$ac_ext <<_ACEOF
11715 /* confdefs.h.  */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h.  */
11720
11721 int
11722 main ()
11723 {
11724
11725   ;
11726   return 0;
11727 }
11728 _ACEOF
11729 rm -f conftest.$ac_objext conftest$ac_exeext
11730 if { (ac_try="$ac_link"
11731 case "(($ac_try" in
11732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733   *) ac_try_echo=$ac_try;;
11734 esac
11735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736   (eval "$ac_link") 2>conftest.er1
11737   ac_status=$?
11738   grep -v '^ *+' conftest.er1 >conftest.err
11739   rm -f conftest.er1
11740   cat conftest.err >&5
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); } && {
11743          test -z "$ac_c_werror_flag" ||
11744          test ! -s conftest.err
11745        } && test -s conftest$ac_exeext &&
11746        $as_test_x conftest$ac_exeext; then
11747   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11748   shlibpath_overrides_runpath=yes
11749 fi
11750
11751 else
11752   echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11754
11755
11756 fi
11757
11758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11759       conftest$ac_exeext conftest.$ac_ext
11760   LDFLAGS=$save_LDFLAGS
11761   libdir=$save_libdir
11762
11763   # This implies no fast_install, which is unacceptable.
11764   # Some rework will be needed to allow for fast_install
11765   # before this can be enabled.
11766   hardcode_into_libs=yes
11767
11768   # Append ld.so.conf contents to the search path
11769   if test -f /etc/ld.so.conf; then
11770     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11771     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11772   fi
11773
11774   # We used to test for /lib/ld.so.1 and disable shared libraries on
11775   # powerpc, because MkLinux only supported shared libraries with the
11776   # GNU dynamic linker.  Since this was broken with cross compilers,
11777   # most powerpc-linux boxes support dynamic linking these days and
11778   # people can always --disable-shared, the test was removed, and we
11779   # assume the GNU/Linux dynamic linker is in use.
11780   dynamic_linker='GNU/Linux ld.so'
11781   ;;
11782
11783 netbsd*)
11784   version_type=sunos
11785   need_lib_prefix=no
11786   need_version=no
11787   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11789     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11790     dynamic_linker='NetBSD (a.out) ld.so'
11791   else
11792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11793     soname_spec='${libname}${release}${shared_ext}$major'
11794     dynamic_linker='NetBSD ld.elf_so'
11795   fi
11796   shlibpath_var=LD_LIBRARY_PATH
11797   shlibpath_overrides_runpath=yes
11798   hardcode_into_libs=yes
11799   ;;
11800
11801 newsos6)
11802   version_type=linux
11803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804   shlibpath_var=LD_LIBRARY_PATH
11805   shlibpath_overrides_runpath=yes
11806   ;;
11807
11808 *nto* | *qnx*)
11809   version_type=qnx
11810   need_lib_prefix=no
11811   need_version=no
11812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813   soname_spec='${libname}${release}${shared_ext}$major'
11814   shlibpath_var=LD_LIBRARY_PATH
11815   shlibpath_overrides_runpath=no
11816   hardcode_into_libs=yes
11817   dynamic_linker='ldqnx.so'
11818   ;;
11819
11820 openbsd*)
11821   version_type=sunos
11822   sys_lib_dlsearch_path_spec="/usr/lib"
11823   need_lib_prefix=no
11824   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11825   case $host_os in
11826     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11827     *)                          need_version=no  ;;
11828   esac
11829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11830   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11831   shlibpath_var=LD_LIBRARY_PATH
11832   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11833     case $host_os in
11834       openbsd2.[89] | openbsd2.[89].*)
11835         shlibpath_overrides_runpath=no
11836         ;;
11837       *)
11838         shlibpath_overrides_runpath=yes
11839         ;;
11840       esac
11841   else
11842     shlibpath_overrides_runpath=yes
11843   fi
11844   ;;
11845
11846 os2*)
11847   libname_spec='$name'
11848   shrext_cmds=".dll"
11849   need_lib_prefix=no
11850   library_names_spec='$libname${shared_ext} $libname.a'
11851   dynamic_linker='OS/2 ld.exe'
11852   shlibpath_var=LIBPATH
11853   ;;
11854
11855 osf3* | osf4* | osf5*)
11856   version_type=osf
11857   need_lib_prefix=no
11858   need_version=no
11859   soname_spec='${libname}${release}${shared_ext}$major'
11860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861   shlibpath_var=LD_LIBRARY_PATH
11862   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11863   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11864   ;;
11865
11866 rdos*)
11867   dynamic_linker=no
11868   ;;
11869
11870 solaris*)
11871   version_type=linux
11872   need_lib_prefix=no
11873   need_version=no
11874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875   soname_spec='${libname}${release}${shared_ext}$major'
11876   shlibpath_var=LD_LIBRARY_PATH
11877   shlibpath_overrides_runpath=yes
11878   hardcode_into_libs=yes
11879   # ldd complains unless libraries are executable
11880   postinstall_cmds='chmod +x $lib'
11881   ;;
11882
11883 sunos4*)
11884   version_type=sunos
11885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11886   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11887   shlibpath_var=LD_LIBRARY_PATH
11888   shlibpath_overrides_runpath=yes
11889   if test "$with_gnu_ld" = yes; then
11890     need_lib_prefix=no
11891   fi
11892   need_version=yes
11893   ;;
11894
11895 sysv4 | sysv4.3*)
11896   version_type=linux
11897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11898   soname_spec='${libname}${release}${shared_ext}$major'
11899   shlibpath_var=LD_LIBRARY_PATH
11900   case $host_vendor in
11901     sni)
11902       shlibpath_overrides_runpath=no
11903       need_lib_prefix=no
11904       runpath_var=LD_RUN_PATH
11905       ;;
11906     siemens)
11907       need_lib_prefix=no
11908       ;;
11909     motorola)
11910       need_lib_prefix=no
11911       need_version=no
11912       shlibpath_overrides_runpath=no
11913       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11914       ;;
11915   esac
11916   ;;
11917
11918 sysv4*MP*)
11919   if test -d /usr/nec ;then
11920     version_type=linux
11921     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11922     soname_spec='$libname${shared_ext}.$major'
11923     shlibpath_var=LD_LIBRARY_PATH
11924   fi
11925   ;;
11926
11927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11928   version_type=freebsd-elf
11929   need_lib_prefix=no
11930   need_version=no
11931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11932   soname_spec='${libname}${release}${shared_ext}$major'
11933   shlibpath_var=LD_LIBRARY_PATH
11934   shlibpath_overrides_runpath=yes
11935   hardcode_into_libs=yes
11936   if test "$with_gnu_ld" = yes; then
11937     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11938   else
11939     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11940     case $host_os in
11941       sco3.2v5*)
11942         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11943         ;;
11944     esac
11945   fi
11946   sys_lib_dlsearch_path_spec='/usr/lib'
11947   ;;
11948
11949 tpf*)
11950   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11951   version_type=linux
11952   need_lib_prefix=no
11953   need_version=no
11954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955   shlibpath_var=LD_LIBRARY_PATH
11956   shlibpath_overrides_runpath=no
11957   hardcode_into_libs=yes
11958   ;;
11959
11960 uts4*)
11961   version_type=linux
11962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11963   soname_spec='${libname}${release}${shared_ext}$major'
11964   shlibpath_var=LD_LIBRARY_PATH
11965   ;;
11966
11967 *)
11968   dynamic_linker=no
11969   ;;
11970 esac
11971 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11972 echo "${ECHO_T}$dynamic_linker" >&6; }
11973 test "$dynamic_linker" = no && can_build_shared=no
11974
11975 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11976 if test "$GCC" = yes; then
11977   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11978 fi
11979
11980 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11981   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11982 fi
11983 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11984   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11985 fi
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12074 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12075 hardcode_action=
12076 if test -n "$hardcode_libdir_flag_spec" ||
12077    test -n "$runpath_var" ||
12078    test "X$hardcode_automatic" = "Xyes" ; then
12079
12080   # We can hardcode non-existent directories.
12081   if test "$hardcode_direct" != no &&
12082      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12083      # have to relink, otherwise we might link with an installed library
12084      # when we should be linking with a yet-to-be-installed one
12085      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12086      test "$hardcode_minus_L" != no; then
12087     # Linking always hardcodes the temporary library directory.
12088     hardcode_action=relink
12089   else
12090     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12091     hardcode_action=immediate
12092   fi
12093 else
12094   # We cannot hardcode anything, or else we can only hardcode existing
12095   # directories.
12096   hardcode_action=unsupported
12097 fi
12098 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12099 echo "${ECHO_T}$hardcode_action" >&6; }
12100
12101 if test "$hardcode_action" = relink ||
12102    test "$inherit_rpath" = yes; then
12103   # Fast installation is not supported
12104   enable_fast_install=no
12105 elif test "$shlibpath_overrides_runpath" = yes ||
12106      test "$enable_shared" = no; then
12107   # Fast installation is not necessary
12108   enable_fast_install=needless
12109 fi
12110
12111
12112
12113
12114
12115
12116   if test "x$enable_dlopen" != xyes; then
12117   enable_dlopen=unknown
12118   enable_dlopen_self=unknown
12119   enable_dlopen_self_static=unknown
12120 else
12121   lt_cv_dlopen=no
12122   lt_cv_dlopen_libs=
12123
12124   case $host_os in
12125   beos*)
12126     lt_cv_dlopen="load_add_on"
12127     lt_cv_dlopen_libs=
12128     lt_cv_dlopen_self=yes
12129     ;;
12130
12131   mingw* | pw32* | cegcc*)
12132     lt_cv_dlopen="LoadLibrary"
12133     lt_cv_dlopen_libs=
12134     ;;
12135
12136   cygwin*)
12137     lt_cv_dlopen="dlopen"
12138     lt_cv_dlopen_libs=
12139     ;;
12140
12141   darwin*)
12142   # if libdl is installed we need to link against it
12143     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12144 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12146   echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148   ac_check_lib_save_LIBS=$LIBS
12149 LIBS="-ldl  $LIBS"
12150 cat >conftest.$ac_ext <<_ACEOF
12151 /* confdefs.h.  */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h.  */
12156
12157 /* Override any GCC internal prototype to avoid an error.
12158    Use char because int might match the return type of a GCC
12159    builtin and then its argument prototype would still apply.  */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 char dlopen ();
12164 int
12165 main ()
12166 {
12167 return dlopen ();
12168   ;
12169   return 0;
12170 }
12171 _ACEOF
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (ac_try="$ac_link"
12174 case "(($ac_try" in
12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176   *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179   (eval "$ac_link") 2>conftest.er1
12180   ac_status=$?
12181   grep -v '^ *+' conftest.er1 >conftest.err
12182   rm -f conftest.er1
12183   cat conftest.err >&5
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); } && {
12186          test -z "$ac_c_werror_flag" ||
12187          test ! -s conftest.err
12188        } && test -s conftest$ac_exeext &&
12189        $as_test_x conftest$ac_exeext; then
12190   ac_cv_lib_dl_dlopen=yes
12191 else
12192   echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12194
12195         ac_cv_lib_dl_dlopen=no
12196 fi
12197
12198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12199       conftest$ac_exeext conftest.$ac_ext
12200 LIBS=$ac_check_lib_save_LIBS
12201 fi
12202 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12203 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12204 if test $ac_cv_lib_dl_dlopen = yes; then
12205   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12206 else
12207
12208     lt_cv_dlopen="dyld"
12209     lt_cv_dlopen_libs=
12210     lt_cv_dlopen_self=yes
12211
12212 fi
12213
12214     ;;
12215
12216   *)
12217     { echo "$as_me:$LINENO: checking for shl_load" >&5
12218 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12219 if test "${ac_cv_func_shl_load+set}" = set; then
12220   echo $ECHO_N "(cached) $ECHO_C" >&6
12221 else
12222   cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h.  */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h.  */
12228 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12230 #define shl_load innocuous_shl_load
12231
12232 /* System header to define __stub macros and hopefully few prototypes,
12233     which can conflict with char shl_load (); below.
12234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12235     <limits.h> exists even on freestanding compilers.  */
12236
12237 #ifdef __STDC__
12238 # include <limits.h>
12239 #else
12240 # include <assert.h>
12241 #endif
12242
12243 #undef shl_load
12244
12245 /* Override any GCC internal prototype to avoid an error.
12246    Use char because int might match the return type of a GCC
12247    builtin and then its argument prototype would still apply.  */
12248 #ifdef __cplusplus
12249 extern "C"
12250 #endif
12251 char shl_load ();
12252 /* The GNU C library defines this for functions which it implements
12253     to always fail with ENOSYS.  Some functions are actually named
12254     something starting with __ and the normal name is an alias.  */
12255 #if defined __stub_shl_load || defined __stub___shl_load
12256 choke me
12257 #endif
12258
12259 int
12260 main ()
12261 {
12262 return shl_load ();
12263   ;
12264   return 0;
12265 }
12266 _ACEOF
12267 rm -f conftest.$ac_objext conftest$ac_exeext
12268 if { (ac_try="$ac_link"
12269 case "(($ac_try" in
12270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271   *) ac_try_echo=$ac_try;;
12272 esac
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274   (eval "$ac_link") 2>conftest.er1
12275   ac_status=$?
12276   grep -v '^ *+' conftest.er1 >conftest.err
12277   rm -f conftest.er1
12278   cat conftest.err >&5
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); } && {
12281          test -z "$ac_c_werror_flag" ||
12282          test ! -s conftest.err
12283        } && test -s conftest$ac_exeext &&
12284        $as_test_x conftest$ac_exeext; then
12285   ac_cv_func_shl_load=yes
12286 else
12287   echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12289
12290         ac_cv_func_shl_load=no
12291 fi
12292
12293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12294       conftest$ac_exeext conftest.$ac_ext
12295 fi
12296 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12297 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12298 if test $ac_cv_func_shl_load = yes; then
12299   lt_cv_dlopen="shl_load"
12300 else
12301   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12302 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12303 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12304   echo $ECHO_N "(cached) $ECHO_C" >&6
12305 else
12306   ac_check_lib_save_LIBS=$LIBS
12307 LIBS="-ldld  $LIBS"
12308 cat >conftest.$ac_ext <<_ACEOF
12309 /* confdefs.h.  */
12310 _ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h.  */
12314
12315 /* Override any GCC internal prototype to avoid an error.
12316    Use char because int might match the return type of a GCC
12317    builtin and then its argument prototype would still apply.  */
12318 #ifdef __cplusplus
12319 extern "C"
12320 #endif
12321 char shl_load ();
12322 int
12323 main ()
12324 {
12325 return shl_load ();
12326   ;
12327   return 0;
12328 }
12329 _ACEOF
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (ac_try="$ac_link"
12332 case "(($ac_try" in
12333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334   *) ac_try_echo=$ac_try;;
12335 esac
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337   (eval "$ac_link") 2>conftest.er1
12338   ac_status=$?
12339   grep -v '^ *+' conftest.er1 >conftest.err
12340   rm -f conftest.er1
12341   cat conftest.err >&5
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); } && {
12344          test -z "$ac_c_werror_flag" ||
12345          test ! -s conftest.err
12346        } && test -s conftest$ac_exeext &&
12347        $as_test_x conftest$ac_exeext; then
12348   ac_cv_lib_dld_shl_load=yes
12349 else
12350   echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12352
12353         ac_cv_lib_dld_shl_load=no
12354 fi
12355
12356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12357       conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12359 fi
12360 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12361 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12362 if test $ac_cv_lib_dld_shl_load = yes; then
12363   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12364 else
12365   { echo "$as_me:$LINENO: checking for dlopen" >&5
12366 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12367 if test "${ac_cv_func_dlopen+set}" = set; then
12368   echo $ECHO_N "(cached) $ECHO_C" >&6
12369 else
12370   cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h.  */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h.  */
12376 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12378 #define dlopen innocuous_dlopen
12379
12380 /* System header to define __stub macros and hopefully few prototypes,
12381     which can conflict with char dlopen (); below.
12382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12383     <limits.h> exists even on freestanding compilers.  */
12384
12385 #ifdef __STDC__
12386 # include <limits.h>
12387 #else
12388 # include <assert.h>
12389 #endif
12390
12391 #undef dlopen
12392
12393 /* Override any GCC internal prototype to avoid an error.
12394    Use char because int might match the return type of a GCC
12395    builtin and then its argument prototype would still apply.  */
12396 #ifdef __cplusplus
12397 extern "C"
12398 #endif
12399 char dlopen ();
12400 /* The GNU C library defines this for functions which it implements
12401     to always fail with ENOSYS.  Some functions are actually named
12402     something starting with __ and the normal name is an alias.  */
12403 #if defined __stub_dlopen || defined __stub___dlopen
12404 choke me
12405 #endif
12406
12407 int
12408 main ()
12409 {
12410 return dlopen ();
12411   ;
12412   return 0;
12413 }
12414 _ACEOF
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (ac_try="$ac_link"
12417 case "(($ac_try" in
12418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419   *) ac_try_echo=$ac_try;;
12420 esac
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422   (eval "$ac_link") 2>conftest.er1
12423   ac_status=$?
12424   grep -v '^ *+' conftest.er1 >conftest.err
12425   rm -f conftest.er1
12426   cat conftest.err >&5
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); } && {
12429          test -z "$ac_c_werror_flag" ||
12430          test ! -s conftest.err
12431        } && test -s conftest$ac_exeext &&
12432        $as_test_x conftest$ac_exeext; then
12433   ac_cv_func_dlopen=yes
12434 else
12435   echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12437
12438         ac_cv_func_dlopen=no
12439 fi
12440
12441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12442       conftest$ac_exeext conftest.$ac_ext
12443 fi
12444 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12445 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12446 if test $ac_cv_func_dlopen = yes; then
12447   lt_cv_dlopen="dlopen"
12448 else
12449   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12450 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12451 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12452   echo $ECHO_N "(cached) $ECHO_C" >&6
12453 else
12454   ac_check_lib_save_LIBS=$LIBS
12455 LIBS="-ldl  $LIBS"
12456 cat >conftest.$ac_ext <<_ACEOF
12457 /* confdefs.h.  */
12458 _ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h.  */
12462
12463 /* Override any GCC internal prototype to avoid an error.
12464    Use char because int might match the return type of a GCC
12465    builtin and then its argument prototype would still apply.  */
12466 #ifdef __cplusplus
12467 extern "C"
12468 #endif
12469 char dlopen ();
12470 int
12471 main ()
12472 {
12473 return dlopen ();
12474   ;
12475   return 0;
12476 }
12477 _ACEOF
12478 rm -f conftest.$ac_objext conftest$ac_exeext
12479 if { (ac_try="$ac_link"
12480 case "(($ac_try" in
12481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482   *) ac_try_echo=$ac_try;;
12483 esac
12484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485   (eval "$ac_link") 2>conftest.er1
12486   ac_status=$?
12487   grep -v '^ *+' conftest.er1 >conftest.err
12488   rm -f conftest.er1
12489   cat conftest.err >&5
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); } && {
12492          test -z "$ac_c_werror_flag" ||
12493          test ! -s conftest.err
12494        } && test -s conftest$ac_exeext &&
12495        $as_test_x conftest$ac_exeext; then
12496   ac_cv_lib_dl_dlopen=yes
12497 else
12498   echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12500
12501         ac_cv_lib_dl_dlopen=no
12502 fi
12503
12504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12505       conftest$ac_exeext conftest.$ac_ext
12506 LIBS=$ac_check_lib_save_LIBS
12507 fi
12508 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12509 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12510 if test $ac_cv_lib_dl_dlopen = yes; then
12511   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12512 else
12513   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12514 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12515 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12516   echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518   ac_check_lib_save_LIBS=$LIBS
12519 LIBS="-lsvld  $LIBS"
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h.  */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h.  */
12526
12527 /* Override any GCC internal prototype to avoid an error.
12528    Use char because int might match the return type of a GCC
12529    builtin and then its argument prototype would still apply.  */
12530 #ifdef __cplusplus
12531 extern "C"
12532 #endif
12533 char dlopen ();
12534 int
12535 main ()
12536 {
12537 return dlopen ();
12538   ;
12539   return 0;
12540 }
12541 _ACEOF
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (ac_try="$ac_link"
12544 case "(($ac_try" in
12545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546   *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549   (eval "$ac_link") 2>conftest.er1
12550   ac_status=$?
12551   grep -v '^ *+' conftest.er1 >conftest.err
12552   rm -f conftest.er1
12553   cat conftest.err >&5
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); } && {
12556          test -z "$ac_c_werror_flag" ||
12557          test ! -s conftest.err
12558        } && test -s conftest$ac_exeext &&
12559        $as_test_x conftest$ac_exeext; then
12560   ac_cv_lib_svld_dlopen=yes
12561 else
12562   echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565         ac_cv_lib_svld_dlopen=no
12566 fi
12567
12568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12569       conftest$ac_exeext conftest.$ac_ext
12570 LIBS=$ac_check_lib_save_LIBS
12571 fi
12572 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12573 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12574 if test $ac_cv_lib_svld_dlopen = yes; then
12575   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12576 else
12577   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12578 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12579 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12580   echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12582   ac_check_lib_save_LIBS=$LIBS
12583 LIBS="-ldld  $LIBS"
12584 cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h.  */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h.  */
12590
12591 /* Override any GCC internal prototype to avoid an error.
12592    Use char because int might match the return type of a GCC
12593    builtin and then its argument prototype would still apply.  */
12594 #ifdef __cplusplus
12595 extern "C"
12596 #endif
12597 char dld_link ();
12598 int
12599 main ()
12600 {
12601 return dld_link ();
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (ac_try="$ac_link"
12608 case "(($ac_try" in
12609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610   *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613   (eval "$ac_link") 2>conftest.er1
12614   ac_status=$?
12615   grep -v '^ *+' conftest.er1 >conftest.err
12616   rm -f conftest.er1
12617   cat conftest.err >&5
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); } && {
12620          test -z "$ac_c_werror_flag" ||
12621          test ! -s conftest.err
12622        } && test -s conftest$ac_exeext &&
12623        $as_test_x conftest$ac_exeext; then
12624   ac_cv_lib_dld_dld_link=yes
12625 else
12626   echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12628
12629         ac_cv_lib_dld_dld_link=no
12630 fi
12631
12632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12633       conftest$ac_exeext conftest.$ac_ext
12634 LIBS=$ac_check_lib_save_LIBS
12635 fi
12636 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12637 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12638 if test $ac_cv_lib_dld_dld_link = yes; then
12639   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12640 fi
12641
12642
12643 fi
12644
12645
12646 fi
12647
12648
12649 fi
12650
12651
12652 fi
12653
12654
12655 fi
12656
12657     ;;
12658   esac
12659
12660   if test "x$lt_cv_dlopen" != xno; then
12661     enable_dlopen=yes
12662   else
12663     enable_dlopen=no
12664   fi
12665
12666   case $lt_cv_dlopen in
12667   dlopen)
12668     save_CPPFLAGS="$CPPFLAGS"
12669     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12670
12671     save_LDFLAGS="$LDFLAGS"
12672     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12673
12674     save_LIBS="$LIBS"
12675     LIBS="$lt_cv_dlopen_libs $LIBS"
12676
12677     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12678 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12679 if test "${lt_cv_dlopen_self+set}" = set; then
12680   echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682           if test "$cross_compiling" = yes; then :
12683   lt_cv_dlopen_self=cross
12684 else
12685   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12686   lt_status=$lt_dlunknown
12687   cat > conftest.$ac_ext <<_LT_EOF
12688 #line 12688 "configure"
12689 #include "confdefs.h"
12690
12691 #if HAVE_DLFCN_H
12692 #include <dlfcn.h>
12693 #endif
12694
12695 #include <stdio.h>
12696
12697 #ifdef RTLD_GLOBAL
12698 #  define LT_DLGLOBAL           RTLD_GLOBAL
12699 #else
12700 #  ifdef DL_GLOBAL
12701 #    define LT_DLGLOBAL         DL_GLOBAL
12702 #  else
12703 #    define LT_DLGLOBAL         0
12704 #  endif
12705 #endif
12706
12707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12708    find out it does not work in some platform. */
12709 #ifndef LT_DLLAZY_OR_NOW
12710 #  ifdef RTLD_LAZY
12711 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12712 #  else
12713 #    ifdef DL_LAZY
12714 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12715 #    else
12716 #      ifdef RTLD_NOW
12717 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12718 #      else
12719 #        ifdef DL_NOW
12720 #          define LT_DLLAZY_OR_NOW      DL_NOW
12721 #        else
12722 #          define LT_DLLAZY_OR_NOW      0
12723 #        endif
12724 #      endif
12725 #    endif
12726 #  endif
12727 #endif
12728
12729 void fnord() { int i=42;}
12730 int main ()
12731 {
12732   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12733   int status = $lt_dlunknown;
12734
12735   if (self)
12736     {
12737       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12738       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12739       /* dlclose (self); */
12740     }
12741   else
12742     puts (dlerror ());
12743
12744   return status;
12745 }
12746 _LT_EOF
12747   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748   (eval $ac_link) 2>&5
12749   ac_status=$?
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12752     (./conftest; exit; ) >&5 2>/dev/null
12753     lt_status=$?
12754     case x$lt_status in
12755       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12756       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12757       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12758     esac
12759   else :
12760     # compilation failed
12761     lt_cv_dlopen_self=no
12762   fi
12763 fi
12764 rm -fr conftest*
12765
12766
12767 fi
12768 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12769 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12770
12771     if test "x$lt_cv_dlopen_self" = xyes; then
12772       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12773       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12774 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12775 if test "${lt_cv_dlopen_self_static+set}" = set; then
12776   echo $ECHO_N "(cached) $ECHO_C" >&6
12777 else
12778           if test "$cross_compiling" = yes; then :
12779   lt_cv_dlopen_self_static=cross
12780 else
12781   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12782   lt_status=$lt_dlunknown
12783   cat > conftest.$ac_ext <<_LT_EOF
12784 #line 12784 "configure"
12785 #include "confdefs.h"
12786
12787 #if HAVE_DLFCN_H
12788 #include <dlfcn.h>
12789 #endif
12790
12791 #include <stdio.h>
12792
12793 #ifdef RTLD_GLOBAL
12794 #  define LT_DLGLOBAL           RTLD_GLOBAL
12795 #else
12796 #  ifdef DL_GLOBAL
12797 #    define LT_DLGLOBAL         DL_GLOBAL
12798 #  else
12799 #    define LT_DLGLOBAL         0
12800 #  endif
12801 #endif
12802
12803 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12804    find out it does not work in some platform. */
12805 #ifndef LT_DLLAZY_OR_NOW
12806 #  ifdef RTLD_LAZY
12807 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12808 #  else
12809 #    ifdef DL_LAZY
12810 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12811 #    else
12812 #      ifdef RTLD_NOW
12813 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12814 #      else
12815 #        ifdef DL_NOW
12816 #          define LT_DLLAZY_OR_NOW      DL_NOW
12817 #        else
12818 #          define LT_DLLAZY_OR_NOW      0
12819 #        endif
12820 #      endif
12821 #    endif
12822 #  endif
12823 #endif
12824
12825 void fnord() { int i=42;}
12826 int main ()
12827 {
12828   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12829   int status = $lt_dlunknown;
12830
12831   if (self)
12832     {
12833       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12834       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12835       /* dlclose (self); */
12836     }
12837   else
12838     puts (dlerror ());
12839
12840   return status;
12841 }
12842 _LT_EOF
12843   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12844   (eval $ac_link) 2>&5
12845   ac_status=$?
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12848     (./conftest; exit; ) >&5 2>/dev/null
12849     lt_status=$?
12850     case x$lt_status in
12851       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12852       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12853       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12854     esac
12855   else :
12856     # compilation failed
12857     lt_cv_dlopen_self_static=no
12858   fi
12859 fi
12860 rm -fr conftest*
12861
12862
12863 fi
12864 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12865 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12866     fi
12867
12868     CPPFLAGS="$save_CPPFLAGS"
12869     LDFLAGS="$save_LDFLAGS"
12870     LIBS="$save_LIBS"
12871     ;;
12872   esac
12873
12874   case $lt_cv_dlopen_self in
12875   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12876   *) enable_dlopen_self=unknown ;;
12877   esac
12878
12879   case $lt_cv_dlopen_self_static in
12880   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12881   *) enable_dlopen_self_static=unknown ;;
12882   esac
12883 fi
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901 striplib=
12902 old_striplib=
12903 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12904 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12905 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12906   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12907   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12908   { echo "$as_me:$LINENO: result: yes" >&5
12909 echo "${ECHO_T}yes" >&6; }
12910 else
12911 # FIXME - insert some real tests, host_os isn't really good enough
12912   case $host_os in
12913   darwin*)
12914     if test -n "$STRIP" ; then
12915       striplib="$STRIP -x"
12916       old_striplib="$STRIP -S"
12917       { echo "$as_me:$LINENO: result: yes" >&5
12918 echo "${ECHO_T}yes" >&6; }
12919     else
12920       { echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6; }
12922     fi
12923     ;;
12924   *)
12925     { echo "$as_me:$LINENO: result: no" >&5
12926 echo "${ECHO_T}no" >&6; }
12927     ;;
12928   esac
12929 fi
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942   # Report which library types will actually be built
12943   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12944 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12945   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12946 echo "${ECHO_T}$can_build_shared" >&6; }
12947
12948   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12949 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12950   test "$can_build_shared" = "no" && enable_shared=no
12951
12952   # On AIX, shared libraries and static libraries use the same namespace, and
12953   # are all built from PIC.
12954   case $host_os in
12955   aix3*)
12956     test "$enable_shared" = yes && enable_static=no
12957     if test -n "$RANLIB"; then
12958       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12959       postinstall_cmds='$RANLIB $lib'
12960     fi
12961     ;;
12962
12963   aix[4-9]*)
12964     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12965       test "$enable_shared" = yes && enable_static=no
12966     fi
12967     ;;
12968   esac
12969   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12970 echo "${ECHO_T}$enable_shared" >&6; }
12971
12972   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12973 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12974   # Make sure either enable_shared or enable_static is yes.
12975   test "$enable_shared" = yes || enable_static=yes
12976   { echo "$as_me:$LINENO: result: $enable_static" >&5
12977 echo "${ECHO_T}$enable_static" >&6; }
12978
12979
12980
12981
12982 fi
12983 ac_ext=c
12984 ac_cpp='$CPP $CPPFLAGS'
12985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12988
12989 CC="$lt_save_CC"
12990
12991
12992 ac_ext=cpp
12993 ac_cpp='$CXXCPP $CPPFLAGS'
12994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12997
12998 archive_cmds_need_lc_CXX=no
12999 allow_undefined_flag_CXX=
13000 always_export_symbols_CXX=no
13001 archive_expsym_cmds_CXX=
13002 compiler_needs_object_CXX=no
13003 export_dynamic_flag_spec_CXX=
13004 hardcode_direct_CXX=no
13005 hardcode_direct_absolute_CXX=no
13006 hardcode_libdir_flag_spec_CXX=
13007 hardcode_libdir_flag_spec_ld_CXX=
13008 hardcode_libdir_separator_CXX=
13009 hardcode_minus_L_CXX=no
13010 hardcode_shlibpath_var_CXX=unsupported
13011 hardcode_automatic_CXX=no
13012 inherit_rpath_CXX=no
13013 module_cmds_CXX=
13014 module_expsym_cmds_CXX=
13015 link_all_deplibs_CXX=unknown
13016 old_archive_cmds_CXX=$old_archive_cmds
13017 no_undefined_flag_CXX=
13018 whole_archive_flag_spec_CXX=
13019 enable_shared_with_static_runtimes_CXX=no
13020
13021 # Source file extension for C++ test sources.
13022 ac_ext=cpp
13023
13024 # Object file extension for compiled C++ test sources.
13025 objext=o
13026 objext_CXX=$objext
13027
13028 # No sense in running all these tests if we already determined that
13029 # the CXX compiler isn't working.  Some variables (like enable_shared)
13030 # are currently assumed to apply to all compilers on this platform,
13031 # and will be corrupted by setting them based on a non-working compiler.
13032 if test "$_lt_caught_CXX_error" != yes; then
13033   # Code to be used in simple compile tests
13034   lt_simple_compile_test_code="int some_variable = 0;"
13035
13036   # Code to be used in simple link tests
13037   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13038
13039   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13040
13041
13042
13043
13044
13045
13046 # If no C compiler was specified, use CC.
13047 LTCC=${LTCC-"$CC"}
13048
13049 # If no C compiler flags were specified, use CFLAGS.
13050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13051
13052 # Allow CC to be a program name with arguments.
13053 compiler=$CC
13054
13055
13056   # save warnings/boilerplate of simple test code
13057   ac_outfile=conftest.$ac_objext
13058 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13059 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13060 _lt_compiler_boilerplate=`cat conftest.err`
13061 $RM conftest*
13062
13063   ac_outfile=conftest.$ac_objext
13064 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13065 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13066 _lt_linker_boilerplate=`cat conftest.err`
13067 $RM -r conftest*
13068
13069
13070   # Allow CC to be a program name with arguments.
13071   lt_save_CC=$CC
13072   lt_save_LD=$LD
13073   lt_save_GCC=$GCC
13074   GCC=$GXX
13075   lt_save_with_gnu_ld=$with_gnu_ld
13076   lt_save_path_LD=$lt_cv_path_LD
13077   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13078     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13079   else
13080     $as_unset lt_cv_prog_gnu_ld
13081   fi
13082   if test -n "${lt_cv_path_LDCXX+set}"; then
13083     lt_cv_path_LD=$lt_cv_path_LDCXX
13084   else
13085     $as_unset lt_cv_path_LD
13086   fi
13087   test -z "${LDCXX+set}" || LD=$LDCXX
13088   CC=${CXX-"c++"}
13089   compiler=$CC
13090   compiler_CXX=$CC
13091   for cc_temp in $compiler""; do
13092   case $cc_temp in
13093     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13094     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13095     \-*) ;;
13096     *) break;;
13097   esac
13098 done
13099 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13100
13101
13102   if test -n "$compiler"; then
13103     # We don't want -fno-exception when compiling C++ code, so set the
13104     # no_builtin_flag separately
13105     if test "$GXX" = yes; then
13106       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13107     else
13108       lt_prog_compiler_no_builtin_flag_CXX=
13109     fi
13110
13111     if test "$GXX" = yes; then
13112       # Set up default GNU C++ configuration
13113
13114
13115
13116 # Check whether --with-gnu-ld was given.
13117 if test "${with_gnu_ld+set}" = set; then
13118   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13119 else
13120   with_gnu_ld=no
13121 fi
13122
13123 ac_prog=ld
13124 if test "$GCC" = yes; then
13125   # Check if gcc -print-prog-name=ld gives a path.
13126   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13127 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13128   case $host in
13129   *-*-mingw*)
13130     # gcc leaves a trailing carriage return which upsets mingw
13131     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13132   *)
13133     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13134   esac
13135   case $ac_prog in
13136     # Accept absolute paths.
13137     [\\/]* | ?:[\\/]*)
13138       re_direlt='/[^/][^/]*/\.\./'
13139       # Canonicalize the pathname of ld
13140       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13141       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13142         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13143       done
13144       test -z "$LD" && LD="$ac_prog"
13145       ;;
13146   "")
13147     # If it fails, then pretend we aren't using GCC.
13148     ac_prog=ld
13149     ;;
13150   *)
13151     # If it is relative, then search for the first ld in PATH.
13152     with_gnu_ld=unknown
13153     ;;
13154   esac
13155 elif test "$with_gnu_ld" = yes; then
13156   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13157 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13158 else
13159   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13160 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13161 fi
13162 if test "${lt_cv_path_LD+set}" = set; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165   if test -z "$LD"; then
13166   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13167   for ac_dir in $PATH; do
13168     IFS="$lt_save_ifs"
13169     test -z "$ac_dir" && ac_dir=.
13170     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13171       lt_cv_path_LD="$ac_dir/$ac_prog"
13172       # Check to see if the program is GNU ld.  I'd rather use --version,
13173       # but apparently some variants of GNU ld only accept -v.
13174       # Break only if it was the GNU/non-GNU ld that we prefer.
13175       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13176       *GNU* | *'with BFD'*)
13177         test "$with_gnu_ld" != no && break
13178         ;;
13179       *)
13180         test "$with_gnu_ld" != yes && break
13181         ;;
13182       esac
13183     fi
13184   done
13185   IFS="$lt_save_ifs"
13186 else
13187   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13188 fi
13189 fi
13190
13191 LD="$lt_cv_path_LD"
13192 if test -n "$LD"; then
13193   { echo "$as_me:$LINENO: result: $LD" >&5
13194 echo "${ECHO_T}$LD" >&6; }
13195 else
13196   { echo "$as_me:$LINENO: result: no" >&5
13197 echo "${ECHO_T}no" >&6; }
13198 fi
13199 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13200 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13201    { (exit 1); exit 1; }; }
13202 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13203 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13204 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13205   echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13208 case `$LD -v 2>&1 </dev/null` in
13209 *GNU* | *'with BFD'*)
13210   lt_cv_prog_gnu_ld=yes
13211   ;;
13212 *)
13213   lt_cv_prog_gnu_ld=no
13214   ;;
13215 esac
13216 fi
13217 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13218 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13219 with_gnu_ld=$lt_cv_prog_gnu_ld
13220
13221
13222
13223
13224
13225
13226
13227       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13228       # archiving commands below assume that GNU ld is being used.
13229       if test "$with_gnu_ld" = yes; then
13230         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13231         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13232
13233         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13234         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13235
13236         # If archive_cmds runs LD, not CC, wlarc should be empty
13237         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13238         #     investigate it a little bit more. (MM)
13239         wlarc='${wl}'
13240
13241         # ancient GNU ld didn't support --whole-archive et. al.
13242         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13243           $GREP 'no-whole-archive' > /dev/null; then
13244           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13245         else
13246           whole_archive_flag_spec_CXX=
13247         fi
13248       else
13249         with_gnu_ld=no
13250         wlarc=
13251
13252         # A generic and very simple default shared library creation
13253         # command for GNU C++ for the case where it uses the native
13254         # linker, instead of GNU ld.  If possible, this setting should
13255         # overridden to take advantage of the native linker features on
13256         # the platform it is being used on.
13257         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13258       fi
13259
13260       # Commands to make compiler produce verbose output that lists
13261       # what "hidden" libraries, object files and flags are used when
13262       # linking a shared library.
13263       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13264
13265     else
13266       GXX=no
13267       with_gnu_ld=no
13268       wlarc=
13269     fi
13270
13271     # PORTME: fill in a description of your system's C++ link characteristics
13272     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13273 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13274     ld_shlibs_CXX=yes
13275     case $host_os in
13276       aix3*)
13277         # FIXME: insert proper C++ library support
13278         ld_shlibs_CXX=no
13279         ;;
13280       aix[4-9]*)
13281         if test "$host_cpu" = ia64; then
13282           # On IA64, the linker does run time linking by default, so we don't
13283           # have to do anything special.
13284           aix_use_runtimelinking=no
13285           exp_sym_flag='-Bexport'
13286           no_entry_flag=""
13287         else
13288           aix_use_runtimelinking=no
13289
13290           # Test if we are trying to use run time linking or normal
13291           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13292           # need to do runtime linking.
13293           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13294             for ld_flag in $LDFLAGS; do
13295               case $ld_flag in
13296               *-brtl*)
13297                 aix_use_runtimelinking=yes
13298                 break
13299                 ;;
13300               esac
13301             done
13302             ;;
13303           esac
13304
13305           exp_sym_flag='-bexport'
13306           no_entry_flag='-bnoentry'
13307         fi
13308
13309         # When large executables or shared objects are built, AIX ld can
13310         # have problems creating the table of contents.  If linking a library
13311         # or program results in "error TOC overflow" add -mminimal-toc to
13312         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13313         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13314
13315         archive_cmds_CXX=''
13316         hardcode_direct_CXX=yes
13317         hardcode_direct_absolute_CXX=yes
13318         hardcode_libdir_separator_CXX=':'
13319         link_all_deplibs_CXX=yes
13320         file_list_spec_CXX='${wl}-f,'
13321
13322         if test "$GXX" = yes; then
13323           case $host_os in aix4.[012]|aix4.[012].*)
13324           # We only want to do this on AIX 4.2 and lower, the check
13325           # below for broken collect2 doesn't work under 4.3+
13326           collect2name=`${CC} -print-prog-name=collect2`
13327           if test -f "$collect2name" &&
13328              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13329           then
13330             # We have reworked collect2
13331             :
13332           else
13333             # We have old collect2
13334             hardcode_direct_CXX=unsupported
13335             # It fails to find uninstalled libraries when the uninstalled
13336             # path is not listed in the libpath.  Setting hardcode_minus_L
13337             # to unsupported forces relinking
13338             hardcode_minus_L_CXX=yes
13339             hardcode_libdir_flag_spec_CXX='-L$libdir'
13340             hardcode_libdir_separator_CXX=
13341           fi
13342           esac
13343           shared_flag='-shared'
13344           if test "$aix_use_runtimelinking" = yes; then
13345             shared_flag="$shared_flag "'${wl}-G'
13346           fi
13347         else
13348           # not using gcc
13349           if test "$host_cpu" = ia64; then
13350           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13351           # chokes on -Wl,-G. The following line is correct:
13352           shared_flag='-G'
13353           else
13354             if test "$aix_use_runtimelinking" = yes; then
13355               shared_flag='${wl}-G'
13356             else
13357               shared_flag='${wl}-bM:SRE'
13358             fi
13359           fi
13360         fi
13361
13362         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13363         # It seems that -bexpall does not export symbols beginning with
13364         # underscore (_), so it is better to generate a list of symbols to
13365         # export.
13366         always_export_symbols_CXX=yes
13367         if test "$aix_use_runtimelinking" = yes; then
13368           # Warning - without using the other runtime loading flags (-brtl),
13369           # -berok will link without error, but may produce a broken library.
13370           allow_undefined_flag_CXX='-berok'
13371           # Determine the default libpath from the value encoded in an empty
13372           # executable.
13373           cat >conftest.$ac_ext <<_ACEOF
13374 /* confdefs.h.  */
13375 _ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h.  */
13379
13380 int
13381 main ()
13382 {
13383
13384   ;
13385   return 0;
13386 }
13387 _ACEOF
13388 rm -f conftest.$ac_objext conftest$ac_exeext
13389 if { (ac_try="$ac_link"
13390 case "(($ac_try" in
13391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392   *) ac_try_echo=$ac_try;;
13393 esac
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395   (eval "$ac_link") 2>conftest.er1
13396   ac_status=$?
13397   grep -v '^ *+' conftest.er1 >conftest.err
13398   rm -f conftest.er1
13399   cat conftest.err >&5
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); } && {
13402          test -z "$ac_cxx_werror_flag" ||
13403          test ! -s conftest.err
13404        } && test -s conftest$ac_exeext &&
13405        $as_test_x conftest$ac_exeext; then
13406
13407 lt_aix_libpath_sed='
13408     /Import File Strings/,/^$/ {
13409         /^0/ {
13410             s/^0  *\(.*\)$/\1/
13411             p
13412         }
13413     }'
13414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13415 # Check for a 64-bit object if we didn't find anything.
13416 if test -z "$aix_libpath"; then
13417   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13418 fi
13419 else
13420   echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13422
13423
13424 fi
13425
13426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13427       conftest$ac_exeext conftest.$ac_ext
13428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13429
13430           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13431
13432           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13433         else
13434           if test "$host_cpu" = ia64; then
13435             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13436             allow_undefined_flag_CXX="-z nodefs"
13437             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13438           else
13439             # Determine the default libpath from the value encoded in an
13440             # empty executable.
13441             cat >conftest.$ac_ext <<_ACEOF
13442 /* confdefs.h.  */
13443 _ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h.  */
13447
13448 int
13449 main ()
13450 {
13451
13452   ;
13453   return 0;
13454 }
13455 _ACEOF
13456 rm -f conftest.$ac_objext conftest$ac_exeext
13457 if { (ac_try="$ac_link"
13458 case "(($ac_try" in
13459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460   *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463   (eval "$ac_link") 2>conftest.er1
13464   ac_status=$?
13465   grep -v '^ *+' conftest.er1 >conftest.err
13466   rm -f conftest.er1
13467   cat conftest.err >&5
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); } && {
13470          test -z "$ac_cxx_werror_flag" ||
13471          test ! -s conftest.err
13472        } && test -s conftest$ac_exeext &&
13473        $as_test_x conftest$ac_exeext; then
13474
13475 lt_aix_libpath_sed='
13476     /Import File Strings/,/^$/ {
13477         /^0/ {
13478             s/^0  *\(.*\)$/\1/
13479             p
13480         }
13481     }'
13482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13483 # Check for a 64-bit object if we didn't find anything.
13484 if test -z "$aix_libpath"; then
13485   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13486 fi
13487 else
13488   echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13490
13491
13492 fi
13493
13494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13495       conftest$ac_exeext conftest.$ac_ext
13496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13497
13498             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13499             # Warning - without using the other run time loading flags,
13500             # -berok will link without error, but may produce a broken library.
13501             no_undefined_flag_CXX=' ${wl}-bernotok'
13502             allow_undefined_flag_CXX=' ${wl}-berok'
13503             # Exported symbols can be pulled into shared objects from archives
13504             whole_archive_flag_spec_CXX='$convenience'
13505             archive_cmds_need_lc_CXX=yes
13506             # This is similar to how AIX traditionally builds its shared
13507             # libraries.
13508             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13509           fi
13510         fi
13511         ;;
13512
13513       beos*)
13514         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13515           allow_undefined_flag_CXX=unsupported
13516           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13517           # support --undefined.  This deserves some investigation.  FIXME
13518           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13519         else
13520           ld_shlibs_CXX=no
13521         fi
13522         ;;
13523
13524       chorus*)
13525         case $cc_basename in
13526           *)
13527           # FIXME: insert proper C++ library support
13528           ld_shlibs_CXX=no
13529           ;;
13530         esac
13531         ;;
13532
13533       cygwin* | mingw* | pw32* | cegcc*)
13534         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13535         # as there is no search path for DLLs.
13536         hardcode_libdir_flag_spec_CXX='-L$libdir'
13537         allow_undefined_flag_CXX=unsupported
13538         always_export_symbols_CXX=no
13539         enable_shared_with_static_runtimes_CXX=yes
13540
13541         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13542           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13543           # If the export-symbols file already is a .def file (1st line
13544           # is EXPORTS), use it as is; otherwise, prepend...
13545           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13546             cp $export_symbols $output_objdir/$soname.def;
13547           else
13548             echo EXPORTS > $output_objdir/$soname.def;
13549             cat $export_symbols >> $output_objdir/$soname.def;
13550           fi~
13551           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13552         else
13553           ld_shlibs_CXX=no
13554         fi
13555         ;;
13556       darwin* | rhapsody*)
13557
13558
13559   archive_cmds_need_lc_CXX=no
13560   hardcode_direct_CXX=no
13561   hardcode_automatic_CXX=yes
13562   hardcode_shlibpath_var_CXX=unsupported
13563   whole_archive_flag_spec_CXX=''
13564   link_all_deplibs_CXX=yes
13565   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13566   case $cc_basename in
13567      ifort*) _lt_dar_can_shared=yes ;;
13568      *) _lt_dar_can_shared=$GCC ;;
13569   esac
13570   if test "$_lt_dar_can_shared" = "yes"; then
13571     output_verbose_link_cmd=echo
13572     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13573     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13574     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13575     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13576        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13577       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13578       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13579     fi
13580
13581   else
13582   ld_shlibs_CXX=no
13583   fi
13584
13585         ;;
13586
13587       dgux*)
13588         case $cc_basename in
13589           ec++*)
13590             # FIXME: insert proper C++ library support
13591             ld_shlibs_CXX=no
13592             ;;
13593           ghcx*)
13594             # Green Hills C++ Compiler
13595             # FIXME: insert proper C++ library support
13596             ld_shlibs_CXX=no
13597             ;;
13598           *)
13599             # FIXME: insert proper C++ library support
13600             ld_shlibs_CXX=no
13601             ;;
13602         esac
13603         ;;
13604
13605       freebsd[12]*)
13606         # C++ shared libraries reported to be fairly broken before
13607         # switch to ELF
13608         ld_shlibs_CXX=no
13609         ;;
13610
13611       freebsd-elf*)
13612         archive_cmds_need_lc_CXX=no
13613         ;;
13614
13615       freebsd* | dragonfly*)
13616         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13617         # conventions
13618         ld_shlibs_CXX=yes
13619         ;;
13620
13621       gnu*)
13622         ;;
13623
13624       hpux9*)
13625         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13626         hardcode_libdir_separator_CXX=:
13627         export_dynamic_flag_spec_CXX='${wl}-E'
13628         hardcode_direct_CXX=yes
13629         hardcode_minus_L_CXX=yes # Not in the search PATH,
13630                                              # but as the default
13631                                              # location of the library.
13632
13633         case $cc_basename in
13634           CC*)
13635             # FIXME: insert proper C++ library support
13636             ld_shlibs_CXX=no
13637             ;;
13638           aCC*)
13639             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13640             # Commands to make compiler produce verbose output that lists
13641             # what "hidden" libraries, object files and flags are used when
13642             # linking a shared library.
13643             #
13644             # There doesn't appear to be a way to prevent this compiler from
13645             # explicitly linking system object files so we need to strip them
13646             # from the output so that they don't get included in the library
13647             # dependencies.
13648             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13649             ;;
13650           *)
13651             if test "$GXX" = yes; then
13652               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13653             else
13654               # FIXME: insert proper C++ library support
13655               ld_shlibs_CXX=no
13656             fi
13657             ;;
13658         esac
13659         ;;
13660
13661       hpux10*|hpux11*)
13662         if test $with_gnu_ld = no; then
13663           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13664           hardcode_libdir_separator_CXX=:
13665
13666           case $host_cpu in
13667             hppa*64*|ia64*)
13668               ;;
13669             *)
13670               export_dynamic_flag_spec_CXX='${wl}-E'
13671               ;;
13672           esac
13673         fi
13674         case $host_cpu in
13675           hppa*64*|ia64*)
13676             hardcode_direct_CXX=no
13677             hardcode_shlibpath_var_CXX=no
13678             ;;
13679           *)
13680             hardcode_direct_CXX=yes
13681             hardcode_direct_absolute_CXX=yes
13682             hardcode_minus_L_CXX=yes # Not in the search PATH,
13683                                                  # but as the default
13684                                                  # location of the library.
13685             ;;
13686         esac
13687
13688         case $cc_basename in
13689           CC*)
13690             # FIXME: insert proper C++ library support
13691             ld_shlibs_CXX=no
13692             ;;
13693           aCC*)
13694             case $host_cpu in
13695               hppa*64*)
13696                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13697                 ;;
13698               ia64*)
13699                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13700                 ;;
13701               *)
13702                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13703                 ;;
13704             esac
13705             # Commands to make compiler produce verbose output that lists
13706             # what "hidden" libraries, object files and flags are used when
13707             # linking a shared library.
13708             #
13709             # There doesn't appear to be a way to prevent this compiler from
13710             # explicitly linking system object files so we need to strip them
13711             # from the output so that they don't get included in the library
13712             # dependencies.
13713             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13714             ;;
13715           *)
13716             if test "$GXX" = yes; then
13717               if test $with_gnu_ld = no; then
13718                 case $host_cpu in
13719                   hppa*64*)
13720                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13721                     ;;
13722                   ia64*)
13723                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13724                     ;;
13725                   *)
13726                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13727                     ;;
13728                 esac
13729               fi
13730             else
13731               # FIXME: insert proper C++ library support
13732               ld_shlibs_CXX=no
13733             fi
13734             ;;
13735         esac
13736         ;;
13737
13738       interix[3-9]*)
13739         hardcode_direct_CXX=no
13740         hardcode_shlibpath_var_CXX=no
13741         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13742         export_dynamic_flag_spec_CXX='${wl}-E'
13743         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13744         # Instead, shared libraries are loaded at an image base (0x10000000 by
13745         # default) and relocated if they conflict, which is a slow very memory
13746         # consuming and fragmenting process.  To avoid this, we pick a random,
13747         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13748         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13749         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13750         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13751         ;;
13752       irix5* | irix6*)
13753         case $cc_basename in
13754           CC*)
13755             # SGI C++
13756             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13757
13758             # Archives containing C++ object files must be created using
13759             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13760             # necessary to make sure instantiated templates are included
13761             # in the archive.
13762             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13763             ;;
13764           *)
13765             if test "$GXX" = yes; then
13766               if test "$with_gnu_ld" = no; then
13767                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13768               else
13769                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13770               fi
13771             fi
13772             link_all_deplibs_CXX=yes
13773             ;;
13774         esac
13775         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13776         hardcode_libdir_separator_CXX=:
13777         inherit_rpath_CXX=yes
13778         ;;
13779
13780       linux* | k*bsd*-gnu)
13781         case $cc_basename in
13782           KCC*)
13783             # Kuck and Associates, Inc. (KAI) C++ Compiler
13784
13785             # KCC will only create a shared library if the output file
13786             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13787             # to its proper name (with version) after linking.
13788             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13789             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13790             # Commands to make compiler produce verbose output that lists
13791             # what "hidden" libraries, object files and flags are used when
13792             # linking a shared library.
13793             #
13794             # There doesn't appear to be a way to prevent this compiler from
13795             # explicitly linking system object files so we need to strip them
13796             # from the output so that they don't get included in the library
13797             # dependencies.
13798             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13799
13800             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13801             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13802
13803             # Archives containing C++ object files must be created using
13804             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13805             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13806             ;;
13807           icpc* | ecpc* )
13808             # Intel C++
13809             with_gnu_ld=yes
13810             # version 8.0 and above of icpc choke on multiply defined symbols
13811             # if we add $predep_objects and $postdep_objects, however 7.1 and
13812             # earlier do not add the objects themselves.
13813             case `$CC -V 2>&1` in
13814               *"Version 7."*)
13815                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13817                 ;;
13818               *)  # Version 8.0 or newer
13819                 tmp_idyn=
13820                 case $host_cpu in
13821                   ia64*) tmp_idyn=' -i_dynamic';;
13822                 esac
13823                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13824                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13825                 ;;
13826             esac
13827             archive_cmds_need_lc_CXX=no
13828             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13829             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13830             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13831             ;;
13832           pgCC* | pgcpp*)
13833             # Portland Group C++ compiler
13834             case `$CC -V` in
13835             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13836               prelink_cmds_CXX='tpldir=Template.dir~
13837                 rm -rf $tpldir~
13838                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13839                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13840               old_archive_cmds_CXX='tpldir=Template.dir~
13841                 rm -rf $tpldir~
13842                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13843                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13844                 $RANLIB $oldlib'
13845               archive_cmds_CXX='tpldir=Template.dir~
13846                 rm -rf $tpldir~
13847                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13848                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13849               archive_expsym_cmds_CXX='tpldir=Template.dir~
13850                 rm -rf $tpldir~
13851                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13852                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13853               ;;
13854             *) # Version 6 will use weak symbols
13855               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13856               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13857               ;;
13858             esac
13859
13860             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13861             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13862             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13863             ;;
13864           cxx*)
13865             # Compaq C++
13866             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13867             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13868
13869             runpath_var=LD_RUN_PATH
13870             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13871             hardcode_libdir_separator_CXX=:
13872
13873             # Commands to make compiler produce verbose output that lists
13874             # what "hidden" libraries, object files and flags are used when
13875             # linking a shared library.
13876             #
13877             # There doesn't appear to be a way to prevent this compiler from
13878             # explicitly linking system object files so we need to strip them
13879             # from the output so that they don't get included in the library
13880             # dependencies.
13881             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13882             ;;
13883           xl*)
13884             # IBM XL 8.0 on PPC, with GNU ld
13885             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13886             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13887             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888             if test "x$supports_anon_versioning" = xyes; then
13889               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13890                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13891                 echo "local: *; };" >> $output_objdir/$libname.ver~
13892                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13893             fi
13894             ;;
13895           *)
13896             case `$CC -V 2>&1 | sed 5q` in
13897             *Sun\ C*)
13898               # Sun C++ 5.9
13899               no_undefined_flag_CXX=' -zdefs'
13900               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13901               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13902               hardcode_libdir_flag_spec_CXX='-R$libdir'
13903               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13904               compiler_needs_object_CXX=yes
13905
13906               # Not sure whether something based on
13907               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13908               # would be better.
13909               output_verbose_link_cmd='echo'
13910
13911               # Archives containing C++ object files must be created using
13912               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13913               # necessary to make sure instantiated templates are included
13914               # in the archive.
13915               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13916               ;;
13917             esac
13918             ;;
13919         esac
13920         ;;
13921
13922       lynxos*)
13923         # FIXME: insert proper C++ library support
13924         ld_shlibs_CXX=no
13925         ;;
13926
13927       m88k*)
13928         # FIXME: insert proper C++ library support
13929         ld_shlibs_CXX=no
13930         ;;
13931
13932       mvs*)
13933         case $cc_basename in
13934           cxx*)
13935             # FIXME: insert proper C++ library support
13936             ld_shlibs_CXX=no
13937             ;;
13938           *)
13939             # FIXME: insert proper C++ library support
13940             ld_shlibs_CXX=no
13941             ;;
13942         esac
13943         ;;
13944
13945       netbsd*)
13946         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13947           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13948           wlarc=
13949           hardcode_libdir_flag_spec_CXX='-R$libdir'
13950           hardcode_direct_CXX=yes
13951           hardcode_shlibpath_var_CXX=no
13952         fi
13953         # Workaround some broken pre-1.5 toolchains
13954         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13955         ;;
13956
13957       *nto* | *qnx*)
13958         ld_shlibs_CXX=yes
13959         ;;
13960
13961       openbsd2*)
13962         # C++ shared libraries are fairly broken
13963         ld_shlibs_CXX=no
13964         ;;
13965
13966       openbsd*)
13967         if test -f /usr/libexec/ld.so; then
13968           hardcode_direct_CXX=yes
13969           hardcode_shlibpath_var_CXX=no
13970           hardcode_direct_absolute_CXX=yes
13971           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13972           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13973           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13974             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13975             export_dynamic_flag_spec_CXX='${wl}-E'
13976             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13977           fi
13978           output_verbose_link_cmd=echo
13979         else
13980           ld_shlibs_CXX=no
13981         fi
13982         ;;
13983
13984       osf3* | osf4* | osf5*)
13985         case $cc_basename in
13986           KCC*)
13987             # Kuck and Associates, Inc. (KAI) C++ Compiler
13988
13989             # KCC will only create a shared library if the output file
13990             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13991             # to its proper name (with version) after linking.
13992             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13993
13994             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13995             hardcode_libdir_separator_CXX=:
13996
13997             # Archives containing C++ object files must be created using
13998             # the KAI C++ compiler.
13999             case $host in
14000               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14001               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14002             esac
14003             ;;
14004           RCC*)
14005             # Rational C++ 2.4.1
14006             # FIXME: insert proper C++ library support
14007             ld_shlibs_CXX=no
14008             ;;
14009           cxx*)
14010             case $host in
14011               osf3*)
14012                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14013                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14014                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14015                 ;;
14016               *)
14017                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14018                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14019                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14020                   echo "-hidden">> $lib.exp~
14021                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14022                   $RM $lib.exp'
14023                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14024                 ;;
14025             esac
14026
14027             hardcode_libdir_separator_CXX=:
14028
14029             # Commands to make compiler produce verbose output that lists
14030             # what "hidden" libraries, object files and flags are used when
14031             # linking a shared library.
14032             #
14033             # There doesn't appear to be a way to prevent this compiler from
14034             # explicitly linking system object files so we need to strip them
14035             # from the output so that they don't get included in the library
14036             # dependencies.
14037             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14038             ;;
14039           *)
14040             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14041               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14042               case $host in
14043                 osf3*)
14044                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14045                   ;;
14046                 *)
14047                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14048                   ;;
14049               esac
14050
14051               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14052               hardcode_libdir_separator_CXX=:
14053
14054               # Commands to make compiler produce verbose output that lists
14055               # what "hidden" libraries, object files and flags are used when
14056               # linking a shared library.
14057               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14058
14059             else
14060               # FIXME: insert proper C++ library support
14061               ld_shlibs_CXX=no
14062             fi
14063             ;;
14064         esac
14065         ;;
14066
14067       psos*)
14068         # FIXME: insert proper C++ library support
14069         ld_shlibs_CXX=no
14070         ;;
14071
14072       sunos4*)
14073         case $cc_basename in
14074           CC*)
14075             # Sun C++ 4.x
14076             # FIXME: insert proper C++ library support
14077             ld_shlibs_CXX=no
14078             ;;
14079           lcc*)
14080             # Lucid
14081             # FIXME: insert proper C++ library support
14082             ld_shlibs_CXX=no
14083             ;;
14084           *)
14085             # FIXME: insert proper C++ library support
14086             ld_shlibs_CXX=no
14087             ;;
14088         esac
14089         ;;
14090
14091       solaris*)
14092         case $cc_basename in
14093           CC*)
14094             # Sun C++ 4.2, 5.x and Centerline C++
14095             archive_cmds_need_lc_CXX=yes
14096             no_undefined_flag_CXX=' -zdefs'
14097             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14098             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14099               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14100
14101             hardcode_libdir_flag_spec_CXX='-R$libdir'
14102             hardcode_shlibpath_var_CXX=no
14103             case $host_os in
14104               solaris2.[0-5] | solaris2.[0-5].*) ;;
14105               *)
14106                 # The compiler driver will combine and reorder linker options,
14107                 # but understands `-z linker_flag'.
14108                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14109                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14110                 ;;
14111             esac
14112             link_all_deplibs_CXX=yes
14113
14114             output_verbose_link_cmd='echo'
14115
14116             # Archives containing C++ object files must be created using
14117             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14118             # necessary to make sure instantiated templates are included
14119             # in the archive.
14120             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14121             ;;
14122           gcx*)
14123             # Green Hills C++ Compiler
14124             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14125
14126             # The C++ compiler must be used to create the archive.
14127             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14128             ;;
14129           *)
14130             # GNU C++ compiler with Solaris linker
14131             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14132               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14133               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14134                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14135                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14136                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14137
14138                 # Commands to make compiler produce verbose output that lists
14139                 # what "hidden" libraries, object files and flags are used when
14140                 # linking a shared library.
14141                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14142               else
14143                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14144                 # platform.
14145                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14146                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14147                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14148
14149                 # Commands to make compiler produce verbose output that lists
14150                 # what "hidden" libraries, object files and flags are used when
14151                 # linking a shared library.
14152                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14153               fi
14154
14155               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14156               case $host_os in
14157                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14158                 *)
14159                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14160                   ;;
14161               esac
14162             fi
14163             ;;
14164         esac
14165         ;;
14166
14167     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14168       no_undefined_flag_CXX='${wl}-z,text'
14169       archive_cmds_need_lc_CXX=no
14170       hardcode_shlibpath_var_CXX=no
14171       runpath_var='LD_RUN_PATH'
14172
14173       case $cc_basename in
14174         CC*)
14175           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14176           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14177           ;;
14178         *)
14179           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14181           ;;
14182       esac
14183       ;;
14184
14185       sysv5* | sco3.2v5* | sco5v6*)
14186         # Note: We can NOT use -z defs as we might desire, because we do not
14187         # link with -lc, and that would cause any symbols used from libc to
14188         # always be unresolved, which means just about no library would
14189         # ever link correctly.  If we're not using GNU ld we use -z text
14190         # though, which does catch some bad symbols but isn't as heavy-handed
14191         # as -z defs.
14192         no_undefined_flag_CXX='${wl}-z,text'
14193         allow_undefined_flag_CXX='${wl}-z,nodefs'
14194         archive_cmds_need_lc_CXX=no
14195         hardcode_shlibpath_var_CXX=no
14196         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14197         hardcode_libdir_separator_CXX=':'
14198         link_all_deplibs_CXX=yes
14199         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14200         runpath_var='LD_RUN_PATH'
14201
14202         case $cc_basename in
14203           CC*)
14204             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14205             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14206             ;;
14207           *)
14208             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14209             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14210             ;;
14211         esac
14212       ;;
14213
14214       tandem*)
14215         case $cc_basename in
14216           NCC*)
14217             # NonStop-UX NCC 3.20
14218             # FIXME: insert proper C++ library support
14219             ld_shlibs_CXX=no
14220             ;;
14221           *)
14222             # FIXME: insert proper C++ library support
14223             ld_shlibs_CXX=no
14224             ;;
14225         esac
14226         ;;
14227
14228       vxworks*)
14229         # FIXME: insert proper C++ library support
14230         ld_shlibs_CXX=no
14231         ;;
14232
14233       *)
14234         # FIXME: insert proper C++ library support
14235         ld_shlibs_CXX=no
14236         ;;
14237     esac
14238
14239     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14240 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14241     test "$ld_shlibs_CXX" = no && can_build_shared=no
14242
14243     GCC_CXX="$GXX"
14244     LD_CXX="$LD"
14245
14246     ## CAVEAT EMPTOR:
14247     ## There is no encapsulation within the following macros, do not change
14248     ## the running order or otherwise move them around unless you know exactly
14249     ## what you are doing...
14250     # Dependencies to place before and after the object being linked:
14251 predep_objects_CXX=
14252 postdep_objects_CXX=
14253 predeps_CXX=
14254 postdeps_CXX=
14255 compiler_lib_search_path_CXX=
14256
14257 cat > conftest.$ac_ext <<_LT_EOF
14258 class Foo
14259 {
14260 public:
14261   Foo (void) { a = 0; }
14262 private:
14263   int a;
14264 };
14265 _LT_EOF
14266
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268   (eval $ac_compile) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); }; then
14272   # Parse the compiler output and extract the necessary
14273   # objects, libraries and library flags.
14274
14275   # Sentinel used to keep track of whether or not we are before
14276   # the conftest object file.
14277   pre_test_object_deps_done=no
14278
14279   for p in `eval "$output_verbose_link_cmd"`; do
14280     case $p in
14281
14282     -L* | -R* | -l*)
14283        # Some compilers place space between "-{L,R}" and the path.
14284        # Remove the space.
14285        if test $p = "-L" ||
14286           test $p = "-R"; then
14287          prev=$p
14288          continue
14289        else
14290          prev=
14291        fi
14292
14293        if test "$pre_test_object_deps_done" = no; then
14294          case $p in
14295          -L* | -R*)
14296            # Internal compiler library paths should come after those
14297            # provided the user.  The postdeps already come after the
14298            # user supplied libs so there is no need to process them.
14299            if test -z "$compiler_lib_search_path_CXX"; then
14300              compiler_lib_search_path_CXX="${prev}${p}"
14301            else
14302              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14303            fi
14304            ;;
14305          # The "-l" case would never come before the object being
14306          # linked, so don't bother handling this case.
14307          esac
14308        else
14309          if test -z "$postdeps_CXX"; then
14310            postdeps_CXX="${prev}${p}"
14311          else
14312            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14313          fi
14314        fi
14315        ;;
14316
14317     *.$objext)
14318        # This assumes that the test object file only shows up
14319        # once in the compiler output.
14320        if test "$p" = "conftest.$objext"; then
14321          pre_test_object_deps_done=yes
14322          continue
14323        fi
14324
14325        if test "$pre_test_object_deps_done" = no; then
14326          if test -z "$predep_objects_CXX"; then
14327            predep_objects_CXX="$p"
14328          else
14329            predep_objects_CXX="$predep_objects_CXX $p"
14330          fi
14331        else
14332          if test -z "$postdep_objects_CXX"; then
14333            postdep_objects_CXX="$p"
14334          else
14335            postdep_objects_CXX="$postdep_objects_CXX $p"
14336          fi
14337        fi
14338        ;;
14339
14340     *) ;; # Ignore the rest.
14341
14342     esac
14343   done
14344
14345   # Clean up.
14346   rm -f a.out a.exe
14347 else
14348   echo "libtool.m4: error: problem compiling CXX test program"
14349 fi
14350
14351 $RM -f confest.$objext
14352
14353 # PORTME: override above test on systems where it is broken
14354 case $host_os in
14355 interix[3-9]*)
14356   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14357   # hack all around it, let's just trust "g++" to DTRT.
14358   predep_objects_CXX=
14359   postdep_objects_CXX=
14360   postdeps_CXX=
14361   ;;
14362
14363 linux*)
14364   case `$CC -V 2>&1 | sed 5q` in
14365   *Sun\ C*)
14366     # Sun C++ 5.9
14367
14368     # The more standards-conforming stlport4 library is
14369     # incompatible with the Cstd library. Avoid specifying
14370     # it if it's in CXXFLAGS. Ignore libCrun as
14371     # -library=stlport4 depends on it.
14372     case " $CXX $CXXFLAGS " in
14373     *" -library=stlport4 "*)
14374       solaris_use_stlport4=yes
14375       ;;
14376     esac
14377
14378     if test "$solaris_use_stlport4" != yes; then
14379       postdeps_CXX='-library=Cstd -library=Crun'
14380     fi
14381     ;;
14382   esac
14383   ;;
14384
14385 solaris*)
14386   case $cc_basename in
14387   CC*)
14388     # The more standards-conforming stlport4 library is
14389     # incompatible with the Cstd library. Avoid specifying
14390     # it if it's in CXXFLAGS. Ignore libCrun as
14391     # -library=stlport4 depends on it.
14392     case " $CXX $CXXFLAGS " in
14393     *" -library=stlport4 "*)
14394       solaris_use_stlport4=yes
14395       ;;
14396     esac
14397
14398     # Adding this requires a known-good setup of shared libraries for
14399     # Sun compiler versions before 5.6, else PIC objects from an old
14400     # archive will be linked into the output, leading to subtle bugs.
14401     if test "$solaris_use_stlport4" != yes; then
14402       postdeps_CXX='-library=Cstd -library=Crun'
14403     fi
14404     ;;
14405   esac
14406   ;;
14407 esac
14408
14409
14410 case " $postdeps_CXX " in
14411 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14412 esac
14413  compiler_lib_search_dirs_CXX=
14414 if test -n "${compiler_lib_search_path_CXX}"; then
14415  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14416 fi
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448     lt_prog_compiler_wl_CXX=
14449 lt_prog_compiler_pic_CXX=
14450 lt_prog_compiler_static_CXX=
14451
14452 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14453 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14454
14455   # C++ specific cases for pic, static, wl, etc.
14456   if test "$GXX" = yes; then
14457     lt_prog_compiler_wl_CXX='-Wl,'
14458     lt_prog_compiler_static_CXX='-static'
14459
14460     case $host_os in
14461     aix*)
14462       # All AIX code is PIC.
14463       if test "$host_cpu" = ia64; then
14464         # AIX 5 now supports IA64 processor
14465         lt_prog_compiler_static_CXX='-Bstatic'
14466       fi
14467       ;;
14468
14469     amigaos*)
14470       case $host_cpu in
14471       powerpc)
14472             # see comment about AmigaOS4 .so support
14473             lt_prog_compiler_pic_CXX='-fPIC'
14474         ;;
14475       m68k)
14476             # FIXME: we need at least 68020 code to build shared libraries, but
14477             # adding the `-m68020' flag to GCC prevents building anything better,
14478             # like `-m68040'.
14479             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14480         ;;
14481       esac
14482       ;;
14483
14484     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14485       # PIC is the default for these OSes.
14486       ;;
14487     mingw* | cygwin* | os2* | pw32* | cegcc*)
14488       # This hack is so that the source file can tell whether it is being
14489       # built for inclusion in a dll (and should export symbols for example).
14490       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14491       # (--disable-auto-import) libraries
14492       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14493       ;;
14494     darwin* | rhapsody*)
14495       # PIC is the default on this platform
14496       # Common symbols not allowed in MH_DYLIB files
14497       lt_prog_compiler_pic_CXX='-fno-common'
14498       ;;
14499     *djgpp*)
14500       # DJGPP does not support shared libraries at all
14501       lt_prog_compiler_pic_CXX=
14502       ;;
14503     interix[3-9]*)
14504       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14505       # Instead, we relocate shared libraries at runtime.
14506       ;;
14507     sysv4*MP*)
14508       if test -d /usr/nec; then
14509         lt_prog_compiler_pic_CXX=-Kconform_pic
14510       fi
14511       ;;
14512     hpux*)
14513       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14514       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14515       # sets the default TLS model and affects inlining.
14516       case $host_cpu in
14517       hppa*64*)
14518         ;;
14519       *)
14520         lt_prog_compiler_pic_CXX='-fPIC'
14521         ;;
14522       esac
14523       ;;
14524     *qnx* | *nto*)
14525       # QNX uses GNU C++, but need to define -shared option too, otherwise
14526       # it will coredump.
14527       lt_prog_compiler_pic_CXX='-fPIC -shared'
14528       ;;
14529     *)
14530       lt_prog_compiler_pic_CXX='-fPIC'
14531       ;;
14532     esac
14533   else
14534     case $host_os in
14535       aix[4-9]*)
14536         # All AIX code is PIC.
14537         if test "$host_cpu" = ia64; then
14538           # AIX 5 now supports IA64 processor
14539           lt_prog_compiler_static_CXX='-Bstatic'
14540         else
14541           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14542         fi
14543         ;;
14544       chorus*)
14545         case $cc_basename in
14546         cxch68*)
14547           # Green Hills C++ Compiler
14548           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14549           ;;
14550         esac
14551         ;;
14552       dgux*)
14553         case $cc_basename in
14554           ec++*)
14555             lt_prog_compiler_pic_CXX='-KPIC'
14556             ;;
14557           ghcx*)
14558             # Green Hills C++ Compiler
14559             lt_prog_compiler_pic_CXX='-pic'
14560             ;;
14561           *)
14562             ;;
14563         esac
14564         ;;
14565       freebsd* | dragonfly*)
14566         # FreeBSD uses GNU C++
14567         ;;
14568       hpux9* | hpux10* | hpux11*)
14569         case $cc_basename in
14570           CC*)
14571             lt_prog_compiler_wl_CXX='-Wl,'
14572             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14573             if test "$host_cpu" != ia64; then
14574               lt_prog_compiler_pic_CXX='+Z'
14575             fi
14576             ;;
14577           aCC*)
14578             lt_prog_compiler_wl_CXX='-Wl,'
14579             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14580             case $host_cpu in
14581             hppa*64*|ia64*)
14582               # +Z the default
14583               ;;
14584             *)
14585               lt_prog_compiler_pic_CXX='+Z'
14586               ;;
14587             esac
14588             ;;
14589           *)
14590             ;;
14591         esac
14592         ;;
14593       interix*)
14594         # This is c89, which is MS Visual C++ (no shared libs)
14595         # Anyone wants to do a port?
14596         ;;
14597       irix5* | irix6* | nonstopux*)
14598         case $cc_basename in
14599           CC*)
14600             lt_prog_compiler_wl_CXX='-Wl,'
14601             lt_prog_compiler_static_CXX='-non_shared'
14602             # CC pic flag -KPIC is the default.
14603             ;;
14604           *)
14605             ;;
14606         esac
14607         ;;
14608       linux* | k*bsd*-gnu)
14609         case $cc_basename in
14610           KCC*)
14611             # KAI C++ Compiler
14612             lt_prog_compiler_wl_CXX='--backend -Wl,'
14613             lt_prog_compiler_pic_CXX='-fPIC'
14614             ;;
14615           ecpc* )
14616             # old Intel C++ for x86_64 which still supported -KPIC.
14617             lt_prog_compiler_wl_CXX='-Wl,'
14618             lt_prog_compiler_pic_CXX='-KPIC'
14619             lt_prog_compiler_static_CXX='-static'
14620             ;;
14621           icpc* )
14622             # Intel C++, used to be incompatible with GCC.
14623             # ICC 10 doesn't accept -KPIC any more.
14624             lt_prog_compiler_wl_CXX='-Wl,'
14625             lt_prog_compiler_pic_CXX='-fPIC'
14626             lt_prog_compiler_static_CXX='-static'
14627             ;;
14628           pgCC* | pgcpp*)
14629             # Portland Group C++ compiler
14630             lt_prog_compiler_wl_CXX='-Wl,'
14631             lt_prog_compiler_pic_CXX='-fpic'
14632             lt_prog_compiler_static_CXX='-Bstatic'
14633             ;;
14634           cxx*)
14635             # Compaq C++
14636             # Make sure the PIC flag is empty.  It appears that all Alpha
14637             # Linux and Compaq Tru64 Unix objects are PIC.
14638             lt_prog_compiler_pic_CXX=
14639             lt_prog_compiler_static_CXX='-non_shared'
14640             ;;
14641           xlc* | xlC*)
14642             # IBM XL 8.0 on PPC
14643             lt_prog_compiler_wl_CXX='-Wl,'
14644             lt_prog_compiler_pic_CXX='-qpic'
14645             lt_prog_compiler_static_CXX='-qstaticlink'
14646             ;;
14647           *)
14648             case `$CC -V 2>&1 | sed 5q` in
14649             *Sun\ C*)
14650               # Sun C++ 5.9
14651               lt_prog_compiler_pic_CXX='-KPIC'
14652               lt_prog_compiler_static_CXX='-Bstatic'
14653               lt_prog_compiler_wl_CXX='-Qoption ld '
14654               ;;
14655             esac
14656             ;;
14657         esac
14658         ;;
14659       lynxos*)
14660         ;;
14661       m88k*)
14662         ;;
14663       mvs*)
14664         case $cc_basename in
14665           cxx*)
14666             lt_prog_compiler_pic_CXX='-W c,exportall'
14667             ;;
14668           *)
14669             ;;
14670         esac
14671         ;;
14672       netbsd*)
14673         ;;
14674       *qnx* | *nto*)
14675         # QNX uses GNU C++, but need to define -shared option too, otherwise
14676         # it will coredump.
14677         lt_prog_compiler_pic_CXX='-fPIC -shared'
14678         ;;
14679       osf3* | osf4* | osf5*)
14680         case $cc_basename in
14681           KCC*)
14682             lt_prog_compiler_wl_CXX='--backend -Wl,'
14683             ;;
14684           RCC*)
14685             # Rational C++ 2.4.1
14686             lt_prog_compiler_pic_CXX='-pic'
14687             ;;
14688           cxx*)
14689             # Digital/Compaq C++
14690             lt_prog_compiler_wl_CXX='-Wl,'
14691             # Make sure the PIC flag is empty.  It appears that all Alpha
14692             # Linux and Compaq Tru64 Unix objects are PIC.
14693             lt_prog_compiler_pic_CXX=
14694             lt_prog_compiler_static_CXX='-non_shared'
14695             ;;
14696           *)
14697             ;;
14698         esac
14699         ;;
14700       psos*)
14701         ;;
14702       solaris*)
14703         case $cc_basename in
14704           CC*)
14705             # Sun C++ 4.2, 5.x and Centerline C++
14706             lt_prog_compiler_pic_CXX='-KPIC'
14707             lt_prog_compiler_static_CXX='-Bstatic'
14708             lt_prog_compiler_wl_CXX='-Qoption ld '
14709             ;;
14710           gcx*)
14711             # Green Hills C++ Compiler
14712             lt_prog_compiler_pic_CXX='-PIC'
14713             ;;
14714           *)
14715             ;;
14716         esac
14717         ;;
14718       sunos4*)
14719         case $cc_basename in
14720           CC*)
14721             # Sun C++ 4.x
14722             lt_prog_compiler_pic_CXX='-pic'
14723             lt_prog_compiler_static_CXX='-Bstatic'
14724             ;;
14725           lcc*)
14726             # Lucid
14727             lt_prog_compiler_pic_CXX='-pic'
14728             ;;
14729           *)
14730             ;;
14731         esac
14732         ;;
14733       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14734         case $cc_basename in
14735           CC*)
14736             lt_prog_compiler_wl_CXX='-Wl,'
14737             lt_prog_compiler_pic_CXX='-KPIC'
14738             lt_prog_compiler_static_CXX='-Bstatic'
14739             ;;
14740         esac
14741         ;;
14742       tandem*)
14743         case $cc_basename in
14744           NCC*)
14745             # NonStop-UX NCC 3.20
14746             lt_prog_compiler_pic_CXX='-KPIC'
14747             ;;
14748           *)
14749             ;;
14750         esac
14751         ;;
14752       vxworks*)
14753         ;;
14754       *)
14755         lt_prog_compiler_can_build_shared_CXX=no
14756         ;;
14757     esac
14758   fi
14759
14760 case $host_os in
14761   # For platforms which do not support PIC, -DPIC is meaningless:
14762   *djgpp*)
14763     lt_prog_compiler_pic_CXX=
14764     ;;
14765   *)
14766     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14767     ;;
14768 esac
14769 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14770 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14771
14772
14773
14774 #
14775 # Check to make sure the PIC flag actually works.
14776 #
14777 if test -n "$lt_prog_compiler_pic_CXX"; then
14778   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14779 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14780 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14781   echo $ECHO_N "(cached) $ECHO_C" >&6
14782 else
14783   lt_cv_prog_compiler_pic_works_CXX=no
14784    ac_outfile=conftest.$ac_objext
14785    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14786    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14787    # Insert the option either (1) after the last *FLAGS variable, or
14788    # (2) before a word containing "conftest.", or (3) at the end.
14789    # Note that $ac_compile itself does not contain backslashes and begins
14790    # with a dollar sign (not a hyphen), so the echo should work correctly.
14791    # The option is referenced via a variable to avoid confusing sed.
14792    lt_compile=`echo "$ac_compile" | $SED \
14793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14795    -e 's:$: $lt_compiler_flag:'`
14796    (eval echo "\"\$as_me:14796: $lt_compile\"" >&5)
14797    (eval "$lt_compile" 2>conftest.err)
14798    ac_status=$?
14799    cat conftest.err >&5
14800    echo "$as_me:14800: \$? = $ac_status" >&5
14801    if (exit $ac_status) && test -s "$ac_outfile"; then
14802      # The compiler can only warn and ignore the option if not recognized
14803      # So say no if there are warnings other than the usual output.
14804      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14805      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14806      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14807        lt_cv_prog_compiler_pic_works_CXX=yes
14808      fi
14809    fi
14810    $RM conftest*
14811
14812 fi
14813 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14814 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14815
14816 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14817     case $lt_prog_compiler_pic_CXX in
14818      "" | " "*) ;;
14819      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14820      esac
14821 else
14822     lt_prog_compiler_pic_CXX=
14823      lt_prog_compiler_can_build_shared_CXX=no
14824 fi
14825
14826 fi
14827
14828
14829
14830 #
14831 # Check to make sure the static flag actually works.
14832 #
14833 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14834 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14835 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14836 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14837   echo $ECHO_N "(cached) $ECHO_C" >&6
14838 else
14839   lt_cv_prog_compiler_static_works_CXX=no
14840    save_LDFLAGS="$LDFLAGS"
14841    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14842    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14843    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14844      # The linker can only warn and ignore the option if not recognized
14845      # So say no if there are warnings
14846      if test -s conftest.err; then
14847        # Append any errors to the config.log.
14848        cat conftest.err 1>&5
14849        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14850        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14851        if diff conftest.exp conftest.er2 >/dev/null; then
14852          lt_cv_prog_compiler_static_works_CXX=yes
14853        fi
14854      else
14855        lt_cv_prog_compiler_static_works_CXX=yes
14856      fi
14857    fi
14858    $RM -r conftest*
14859    LDFLAGS="$save_LDFLAGS"
14860
14861 fi
14862 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14863 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14864
14865 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14866     :
14867 else
14868     lt_prog_compiler_static_CXX=
14869 fi
14870
14871
14872
14873
14874     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14875 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14876 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14877   echo $ECHO_N "(cached) $ECHO_C" >&6
14878 else
14879   lt_cv_prog_compiler_c_o_CXX=no
14880    $RM -r conftest 2>/dev/null
14881    mkdir conftest
14882    cd conftest
14883    mkdir out
14884    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14885
14886    lt_compiler_flag="-o out/conftest2.$ac_objext"
14887    # Insert the option either (1) after the last *FLAGS variable, or
14888    # (2) before a word containing "conftest.", or (3) at the end.
14889    # Note that $ac_compile itself does not contain backslashes and begins
14890    # with a dollar sign (not a hyphen), so the echo should work correctly.
14891    lt_compile=`echo "$ac_compile" | $SED \
14892    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14893    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14894    -e 's:$: $lt_compiler_flag:'`
14895    (eval echo "\"\$as_me:14895: $lt_compile\"" >&5)
14896    (eval "$lt_compile" 2>out/conftest.err)
14897    ac_status=$?
14898    cat out/conftest.err >&5
14899    echo "$as_me:14899: \$? = $ac_status" >&5
14900    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14901    then
14902      # The compiler can only warn and ignore the option if not recognized
14903      # So say no if there are warnings
14904      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14905      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14906      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14907        lt_cv_prog_compiler_c_o_CXX=yes
14908      fi
14909    fi
14910    chmod u+w . 2>&5
14911    $RM conftest*
14912    # SGI C++ compiler will create directory out/ii_files/ for
14913    # template instantiation
14914    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14915    $RM out/* && rmdir out
14916    cd ..
14917    $RM -r conftest
14918    $RM conftest*
14919
14920 fi
14921 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14922 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14923
14924
14925
14926     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14927 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14928 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14929   echo $ECHO_N "(cached) $ECHO_C" >&6
14930 else
14931   lt_cv_prog_compiler_c_o_CXX=no
14932    $RM -r conftest 2>/dev/null
14933    mkdir conftest
14934    cd conftest
14935    mkdir out
14936    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14937
14938    lt_compiler_flag="-o out/conftest2.$ac_objext"
14939    # Insert the option either (1) after the last *FLAGS variable, or
14940    # (2) before a word containing "conftest.", or (3) at the end.
14941    # Note that $ac_compile itself does not contain backslashes and begins
14942    # with a dollar sign (not a hyphen), so the echo should work correctly.
14943    lt_compile=`echo "$ac_compile" | $SED \
14944    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14945    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14946    -e 's:$: $lt_compiler_flag:'`
14947    (eval echo "\"\$as_me:14947: $lt_compile\"" >&5)
14948    (eval "$lt_compile" 2>out/conftest.err)
14949    ac_status=$?
14950    cat out/conftest.err >&5
14951    echo "$as_me:14951: \$? = $ac_status" >&5
14952    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14953    then
14954      # The compiler can only warn and ignore the option if not recognized
14955      # So say no if there are warnings
14956      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14957      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14958      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14959        lt_cv_prog_compiler_c_o_CXX=yes
14960      fi
14961    fi
14962    chmod u+w . 2>&5
14963    $RM conftest*
14964    # SGI C++ compiler will create directory out/ii_files/ for
14965    # template instantiation
14966    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14967    $RM out/* && rmdir out
14968    cd ..
14969    $RM -r conftest
14970    $RM conftest*
14971
14972 fi
14973 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14974 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14975
14976
14977
14978
14979 hard_links="nottested"
14980 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14981   # do not overwrite the value of need_locks provided by the user
14982   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14983 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14984   hard_links=yes
14985   $RM conftest*
14986   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14987   touch conftest.a
14988   ln conftest.a conftest.b 2>&5 || hard_links=no
14989   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14990   { echo "$as_me:$LINENO: result: $hard_links" >&5
14991 echo "${ECHO_T}$hard_links" >&6; }
14992   if test "$hard_links" = no; then
14993     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14994 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14995     need_locks=warn
14996   fi
14997 else
14998   need_locks=no
14999 fi
15000
15001
15002
15003     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15004 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15005
15006   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15007   case $host_os in
15008   aix[4-9]*)
15009     # If we're using GNU nm, then we don't want the "-C" option.
15010     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15011     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15012       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15013     else
15014       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15015     fi
15016     ;;
15017   pw32*)
15018     export_symbols_cmds_CXX="$ltdll_cmds"
15019   ;;
15020   cygwin* | mingw* | cegcc*)
15021     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15022   ;;
15023   *)
15024     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15025   ;;
15026   esac
15027   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15028
15029 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15030 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15031 test "$ld_shlibs_CXX" = no && can_build_shared=no
15032
15033 with_gnu_ld_CXX=$with_gnu_ld
15034
15035
15036
15037
15038
15039
15040 #
15041 # Do we need to explicitly link libc?
15042 #
15043 case "x$archive_cmds_need_lc_CXX" in
15044 x|xyes)
15045   # Assume -lc should be added
15046   archive_cmds_need_lc_CXX=yes
15047
15048   if test "$enable_shared" = yes && test "$GCC" = yes; then
15049     case $archive_cmds_CXX in
15050     *'~'*)
15051       # FIXME: we may have to deal with multi-command sequences.
15052       ;;
15053     '$CC '*)
15054       # Test whether the compiler implicitly links with -lc since on some
15055       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15056       # to ld, don't add -lc before -lgcc.
15057       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15058 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15059       $RM conftest*
15060       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15061
15062       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15063   (eval $ac_compile) 2>&5
15064   ac_status=$?
15065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066   (exit $ac_status); } 2>conftest.err; then
15067         soname=conftest
15068         lib=conftest
15069         libobjs=conftest.$ac_objext
15070         deplibs=
15071         wl=$lt_prog_compiler_wl_CXX
15072         pic_flag=$lt_prog_compiler_pic_CXX
15073         compiler_flags=-v
15074         linker_flags=-v
15075         verstring=
15076         output_objdir=.
15077         libname=conftest
15078         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15079         allow_undefined_flag_CXX=
15080         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15081   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15082   ac_status=$?
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); }
15085         then
15086           archive_cmds_need_lc_CXX=no
15087         else
15088           archive_cmds_need_lc_CXX=yes
15089         fi
15090         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15091       else
15092         cat conftest.err 1>&5
15093       fi
15094       $RM conftest*
15095       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15096 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15097       ;;
15098     esac
15099   fi
15100   ;;
15101 esac
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15167 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15168
15169 library_names_spec=
15170 libname_spec='lib$name'
15171 soname_spec=
15172 shrext_cmds=".so"
15173 postinstall_cmds=
15174 postuninstall_cmds=
15175 finish_cmds=
15176 finish_eval=
15177 shlibpath_var=
15178 shlibpath_overrides_runpath=unknown
15179 version_type=none
15180 dynamic_linker="$host_os ld.so"
15181 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15182 need_lib_prefix=unknown
15183 hardcode_into_libs=no
15184
15185 # when you set need_version to no, make sure it does not cause -set_version
15186 # flags to be left without arguments
15187 need_version=unknown
15188
15189 case $host_os in
15190 aix3*)
15191   version_type=linux
15192   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15193   shlibpath_var=LIBPATH
15194
15195   # AIX 3 has no versioning support, so we append a major version to the name.
15196   soname_spec='${libname}${release}${shared_ext}$major'
15197   ;;
15198
15199 aix[4-9]*)
15200   version_type=linux
15201   need_lib_prefix=no
15202   need_version=no
15203   hardcode_into_libs=yes
15204   if test "$host_cpu" = ia64; then
15205     # AIX 5 supports IA64
15206     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15207     shlibpath_var=LD_LIBRARY_PATH
15208   else
15209     # With GCC up to 2.95.x, collect2 would create an import file
15210     # for dependence libraries.  The import file would start with
15211     # the line `#! .'.  This would cause the generated library to
15212     # depend on `.', always an invalid library.  This was fixed in
15213     # development snapshots of GCC prior to 3.0.
15214     case $host_os in
15215       aix4 | aix4.[01] | aix4.[01].*)
15216       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15217            echo ' yes '
15218            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15219         :
15220       else
15221         can_build_shared=no
15222       fi
15223       ;;
15224     esac
15225     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15226     # soname into executable. Probably we can add versioning support to
15227     # collect2, so additional links can be useful in future.
15228     if test "$aix_use_runtimelinking" = yes; then
15229       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15230       # instead of lib<name>.a to let people know that these are not
15231       # typical AIX shared libraries.
15232       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15233     else
15234       # We preserve .a as extension for shared libraries through AIX4.2
15235       # and later when we are not doing run time linking.
15236       library_names_spec='${libname}${release}.a $libname.a'
15237       soname_spec='${libname}${release}${shared_ext}$major'
15238     fi
15239     shlibpath_var=LIBPATH
15240   fi
15241   ;;
15242
15243 amigaos*)
15244   case $host_cpu in
15245   powerpc)
15246     # Since July 2007 AmigaOS4 officially supports .so libraries.
15247     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249     ;;
15250   m68k)
15251     library_names_spec='$libname.ixlibrary $libname.a'
15252     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15253     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15254     ;;
15255   esac
15256   ;;
15257
15258 beos*)
15259   library_names_spec='${libname}${shared_ext}'
15260   dynamic_linker="$host_os ld.so"
15261   shlibpath_var=LIBRARY_PATH
15262   ;;
15263
15264 bsdi[45]*)
15265   version_type=linux
15266   need_version=no
15267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268   soname_spec='${libname}${release}${shared_ext}$major'
15269   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15270   shlibpath_var=LD_LIBRARY_PATH
15271   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15272   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15273   # the default ld.so.conf also contains /usr/contrib/lib and
15274   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15275   # libtool to hard-code these into programs
15276   ;;
15277
15278 cygwin* | mingw* | pw32* | cegcc*)
15279   version_type=windows
15280   shrext_cmds=".dll"
15281   need_version=no
15282   need_lib_prefix=no
15283
15284   case $GCC,$host_os in
15285   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15286     library_names_spec='$libname.dll.a'
15287     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15288     postinstall_cmds='base_file=`basename \${file}`~
15289       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15290       dldir=$destdir/`dirname \$dlpath`~
15291       test -d \$dldir || mkdir -p \$dldir~
15292       $install_prog $dir/$dlname \$dldir/$dlname~
15293       chmod a+x \$dldir/$dlname~
15294       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15295         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15296       fi'
15297     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15298       dlpath=$dir/\$dldll~
15299        $RM \$dlpath'
15300     shlibpath_overrides_runpath=yes
15301
15302     case $host_os in
15303     cygwin*)
15304       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15305       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15306       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15307       ;;
15308     mingw* | cegcc*)
15309       # MinGW DLLs use traditional 'lib' prefix
15310       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15311       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15312       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15313         # It is most probably a Windows format PATH printed by
15314         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15315         # path with ; separators, and with drive letters. We can handle the
15316         # drive letters (cygwin fileutils understands them), so leave them,
15317         # especially as we might pass files found there to a mingw objdump,
15318         # which wouldn't understand a cygwinified path. Ahh.
15319         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15320       else
15321         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15322       fi
15323       ;;
15324     pw32*)
15325       # pw32 DLLs use 'pw' prefix rather than 'lib'
15326       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15327       ;;
15328     esac
15329     ;;
15330
15331   *)
15332     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15333     ;;
15334   esac
15335   dynamic_linker='Win32 ld.exe'
15336   # FIXME: first we should search . and the directory the executable is in
15337   shlibpath_var=PATH
15338   ;;
15339
15340 darwin* | rhapsody*)
15341   dynamic_linker="$host_os dyld"
15342   version_type=darwin
15343   need_lib_prefix=no
15344   need_version=no
15345   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15346   soname_spec='${libname}${release}${major}$shared_ext'
15347   shlibpath_overrides_runpath=yes
15348   shlibpath_var=DYLD_LIBRARY_PATH
15349   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15350
15351   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15352   ;;
15353
15354 dgux*)
15355   version_type=linux
15356   need_lib_prefix=no
15357   need_version=no
15358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15359   soname_spec='${libname}${release}${shared_ext}$major'
15360   shlibpath_var=LD_LIBRARY_PATH
15361   ;;
15362
15363 freebsd1*)
15364   dynamic_linker=no
15365   ;;
15366
15367 freebsd* | dragonfly*)
15368   # DragonFly does not have aout.  When/if they implement a new
15369   # versioning mechanism, adjust this.
15370   if test -x /usr/bin/objformat; then
15371     objformat=`/usr/bin/objformat`
15372   else
15373     case $host_os in
15374     freebsd[123]*) objformat=aout ;;
15375     *) objformat=elf ;;
15376     esac
15377   fi
15378   version_type=freebsd-$objformat
15379   case $version_type in
15380     freebsd-elf*)
15381       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15382       need_version=no
15383       need_lib_prefix=no
15384       ;;
15385     freebsd-*)
15386       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15387       need_version=yes
15388       ;;
15389   esac
15390   shlibpath_var=LD_LIBRARY_PATH
15391   case $host_os in
15392   freebsd2*)
15393     shlibpath_overrides_runpath=yes
15394     ;;
15395   freebsd3.[01]* | freebsdelf3.[01]*)
15396     shlibpath_overrides_runpath=yes
15397     hardcode_into_libs=yes
15398     ;;
15399   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15400   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15401     shlibpath_overrides_runpath=no
15402     hardcode_into_libs=yes
15403     ;;
15404   *) # from 4.6 on, and DragonFly
15405     shlibpath_overrides_runpath=yes
15406     hardcode_into_libs=yes
15407     ;;
15408   esac
15409   ;;
15410
15411 gnu*)
15412   version_type=linux
15413   need_lib_prefix=no
15414   need_version=no
15415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15416   soname_spec='${libname}${release}${shared_ext}$major'
15417   shlibpath_var=LD_LIBRARY_PATH
15418   hardcode_into_libs=yes
15419   ;;
15420
15421 hpux9* | hpux10* | hpux11*)
15422   # Give a soname corresponding to the major version so that dld.sl refuses to
15423   # link against other versions.
15424   version_type=sunos
15425   need_lib_prefix=no
15426   need_version=no
15427   case $host_cpu in
15428   ia64*)
15429     shrext_cmds='.so'
15430     hardcode_into_libs=yes
15431     dynamic_linker="$host_os dld.so"
15432     shlibpath_var=LD_LIBRARY_PATH
15433     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435     soname_spec='${libname}${release}${shared_ext}$major'
15436     if test "X$HPUX_IA64_MODE" = X32; then
15437       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15438     else
15439       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15440     fi
15441     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15442     ;;
15443   hppa*64*)
15444     shrext_cmds='.sl'
15445     hardcode_into_libs=yes
15446     dynamic_linker="$host_os dld.sl"
15447     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15448     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15449     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450     soname_spec='${libname}${release}${shared_ext}$major'
15451     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15452     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15453     ;;
15454   *)
15455     shrext_cmds='.sl'
15456     dynamic_linker="$host_os dld.sl"
15457     shlibpath_var=SHLIB_PATH
15458     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460     soname_spec='${libname}${release}${shared_ext}$major'
15461     ;;
15462   esac
15463   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15464   postinstall_cmds='chmod 555 $lib'
15465   ;;
15466
15467 interix[3-9]*)
15468   version_type=linux
15469   need_lib_prefix=no
15470   need_version=no
15471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15472   soname_spec='${libname}${release}${shared_ext}$major'
15473   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15474   shlibpath_var=LD_LIBRARY_PATH
15475   shlibpath_overrides_runpath=no
15476   hardcode_into_libs=yes
15477   ;;
15478
15479 irix5* | irix6* | nonstopux*)
15480   case $host_os in
15481     nonstopux*) version_type=nonstopux ;;
15482     *)
15483         if test "$lt_cv_prog_gnu_ld" = yes; then
15484                 version_type=linux
15485         else
15486                 version_type=irix
15487         fi ;;
15488   esac
15489   need_lib_prefix=no
15490   need_version=no
15491   soname_spec='${libname}${release}${shared_ext}$major'
15492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15493   case $host_os in
15494   irix5* | nonstopux*)
15495     libsuff= shlibsuff=
15496     ;;
15497   *)
15498     case $LD in # libtool.m4 will add one of these switches to LD
15499     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15500       libsuff= shlibsuff= libmagic=32-bit;;
15501     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15502       libsuff=32 shlibsuff=N32 libmagic=N32;;
15503     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15504       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15505     *) libsuff= shlibsuff= libmagic=never-match;;
15506     esac
15507     ;;
15508   esac
15509   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15510   shlibpath_overrides_runpath=no
15511   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15512   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15513   hardcode_into_libs=yes
15514   ;;
15515
15516 # No shared lib support for Linux oldld, aout, or coff.
15517 linux*oldld* | linux*aout* | linux*coff*)
15518   dynamic_linker=no
15519   ;;
15520
15521 # This must be Linux ELF.
15522 linux* | k*bsd*-gnu)
15523   version_type=linux
15524   need_lib_prefix=no
15525   need_version=no
15526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527   soname_spec='${libname}${release}${shared_ext}$major'
15528   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15529   shlibpath_var=LD_LIBRARY_PATH
15530   shlibpath_overrides_runpath=no
15531   # Some binutils ld are patched to set DT_RUNPATH
15532   save_LDFLAGS=$LDFLAGS
15533   save_libdir=$libdir
15534   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15535        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15536   cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h.  */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h.  */
15542
15543 int
15544 main ()
15545 {
15546
15547   ;
15548   return 0;
15549 }
15550 _ACEOF
15551 rm -f conftest.$ac_objext conftest$ac_exeext
15552 if { (ac_try="$ac_link"
15553 case "(($ac_try" in
15554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555   *) ac_try_echo=$ac_try;;
15556 esac
15557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558   (eval "$ac_link") 2>conftest.er1
15559   ac_status=$?
15560   grep -v '^ *+' conftest.er1 >conftest.err
15561   rm -f conftest.er1
15562   cat conftest.err >&5
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); } && {
15565          test -z "$ac_cxx_werror_flag" ||
15566          test ! -s conftest.err
15567        } && test -s conftest$ac_exeext &&
15568        $as_test_x conftest$ac_exeext; then
15569   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15570   shlibpath_overrides_runpath=yes
15571 fi
15572
15573 else
15574   echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15576
15577
15578 fi
15579
15580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15581       conftest$ac_exeext conftest.$ac_ext
15582   LDFLAGS=$save_LDFLAGS
15583   libdir=$save_libdir
15584
15585   # This implies no fast_install, which is unacceptable.
15586   # Some rework will be needed to allow for fast_install
15587   # before this can be enabled.
15588   hardcode_into_libs=yes
15589
15590   # Append ld.so.conf contents to the search path
15591   if test -f /etc/ld.so.conf; then
15592     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15593     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15594   fi
15595
15596   # We used to test for /lib/ld.so.1 and disable shared libraries on
15597   # powerpc, because MkLinux only supported shared libraries with the
15598   # GNU dynamic linker.  Since this was broken with cross compilers,
15599   # most powerpc-linux boxes support dynamic linking these days and
15600   # people can always --disable-shared, the test was removed, and we
15601   # assume the GNU/Linux dynamic linker is in use.
15602   dynamic_linker='GNU/Linux ld.so'
15603   ;;
15604
15605 netbsd*)
15606   version_type=sunos
15607   need_lib_prefix=no
15608   need_version=no
15609   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15611     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15612     dynamic_linker='NetBSD (a.out) ld.so'
15613   else
15614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15615     soname_spec='${libname}${release}${shared_ext}$major'
15616     dynamic_linker='NetBSD ld.elf_so'
15617   fi
15618   shlibpath_var=LD_LIBRARY_PATH
15619   shlibpath_overrides_runpath=yes
15620   hardcode_into_libs=yes
15621   ;;
15622
15623 newsos6)
15624   version_type=linux
15625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626   shlibpath_var=LD_LIBRARY_PATH
15627   shlibpath_overrides_runpath=yes
15628   ;;
15629
15630 *nto* | *qnx*)
15631   version_type=qnx
15632   need_lib_prefix=no
15633   need_version=no
15634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635   soname_spec='${libname}${release}${shared_ext}$major'
15636   shlibpath_var=LD_LIBRARY_PATH
15637   shlibpath_overrides_runpath=no
15638   hardcode_into_libs=yes
15639   dynamic_linker='ldqnx.so'
15640   ;;
15641
15642 openbsd*)
15643   version_type=sunos
15644   sys_lib_dlsearch_path_spec="/usr/lib"
15645   need_lib_prefix=no
15646   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15647   case $host_os in
15648     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15649     *)                          need_version=no  ;;
15650   esac
15651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15652   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15653   shlibpath_var=LD_LIBRARY_PATH
15654   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15655     case $host_os in
15656       openbsd2.[89] | openbsd2.[89].*)
15657         shlibpath_overrides_runpath=no
15658         ;;
15659       *)
15660         shlibpath_overrides_runpath=yes
15661         ;;
15662       esac
15663   else
15664     shlibpath_overrides_runpath=yes
15665   fi
15666   ;;
15667
15668 os2*)
15669   libname_spec='$name'
15670   shrext_cmds=".dll"
15671   need_lib_prefix=no
15672   library_names_spec='$libname${shared_ext} $libname.a'
15673   dynamic_linker='OS/2 ld.exe'
15674   shlibpath_var=LIBPATH
15675   ;;
15676
15677 osf3* | osf4* | osf5*)
15678   version_type=osf
15679   need_lib_prefix=no
15680   need_version=no
15681   soname_spec='${libname}${release}${shared_ext}$major'
15682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683   shlibpath_var=LD_LIBRARY_PATH
15684   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15685   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15686   ;;
15687
15688 rdos*)
15689   dynamic_linker=no
15690   ;;
15691
15692 solaris*)
15693   version_type=linux
15694   need_lib_prefix=no
15695   need_version=no
15696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697   soname_spec='${libname}${release}${shared_ext}$major'
15698   shlibpath_var=LD_LIBRARY_PATH
15699   shlibpath_overrides_runpath=yes
15700   hardcode_into_libs=yes
15701   # ldd complains unless libraries are executable
15702   postinstall_cmds='chmod +x $lib'
15703   ;;
15704
15705 sunos4*)
15706   version_type=sunos
15707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15708   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15709   shlibpath_var=LD_LIBRARY_PATH
15710   shlibpath_overrides_runpath=yes
15711   if test "$with_gnu_ld" = yes; then
15712     need_lib_prefix=no
15713   fi
15714   need_version=yes
15715   ;;
15716
15717 sysv4 | sysv4.3*)
15718   version_type=linux
15719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720   soname_spec='${libname}${release}${shared_ext}$major'
15721   shlibpath_var=LD_LIBRARY_PATH
15722   case $host_vendor in
15723     sni)
15724       shlibpath_overrides_runpath=no
15725       need_lib_prefix=no
15726       runpath_var=LD_RUN_PATH
15727       ;;
15728     siemens)
15729       need_lib_prefix=no
15730       ;;
15731     motorola)
15732       need_lib_prefix=no
15733       need_version=no
15734       shlibpath_overrides_runpath=no
15735       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15736       ;;
15737   esac
15738   ;;
15739
15740 sysv4*MP*)
15741   if test -d /usr/nec ;then
15742     version_type=linux
15743     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15744     soname_spec='$libname${shared_ext}.$major'
15745     shlibpath_var=LD_LIBRARY_PATH
15746   fi
15747   ;;
15748
15749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15750   version_type=freebsd-elf
15751   need_lib_prefix=no
15752   need_version=no
15753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15754   soname_spec='${libname}${release}${shared_ext}$major'
15755   shlibpath_var=LD_LIBRARY_PATH
15756   shlibpath_overrides_runpath=yes
15757   hardcode_into_libs=yes
15758   if test "$with_gnu_ld" = yes; then
15759     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15760   else
15761     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15762     case $host_os in
15763       sco3.2v5*)
15764         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15765         ;;
15766     esac
15767   fi
15768   sys_lib_dlsearch_path_spec='/usr/lib'
15769   ;;
15770
15771 tpf*)
15772   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15773   version_type=linux
15774   need_lib_prefix=no
15775   need_version=no
15776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777   shlibpath_var=LD_LIBRARY_PATH
15778   shlibpath_overrides_runpath=no
15779   hardcode_into_libs=yes
15780   ;;
15781
15782 uts4*)
15783   version_type=linux
15784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785   soname_spec='${libname}${release}${shared_ext}$major'
15786   shlibpath_var=LD_LIBRARY_PATH
15787   ;;
15788
15789 *)
15790   dynamic_linker=no
15791   ;;
15792 esac
15793 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15794 echo "${ECHO_T}$dynamic_linker" >&6; }
15795 test "$dynamic_linker" = no && can_build_shared=no
15796
15797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15798 if test "$GCC" = yes; then
15799   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15800 fi
15801
15802 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15803   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15804 fi
15805 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15806   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15807 fi
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15845 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15846 hardcode_action_CXX=
15847 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15848    test -n "$runpath_var_CXX" ||
15849    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15850
15851   # We can hardcode non-existent directories.
15852   if test "$hardcode_direct_CXX" != no &&
15853      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15854      # have to relink, otherwise we might link with an installed library
15855      # when we should be linking with a yet-to-be-installed one
15856      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15857      test "$hardcode_minus_L_CXX" != no; then
15858     # Linking always hardcodes the temporary library directory.
15859     hardcode_action_CXX=relink
15860   else
15861     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15862     hardcode_action_CXX=immediate
15863   fi
15864 else
15865   # We cannot hardcode anything, or else we can only hardcode existing
15866   # directories.
15867   hardcode_action_CXX=unsupported
15868 fi
15869 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15870 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15871
15872 if test "$hardcode_action_CXX" = relink ||
15873    test "$inherit_rpath_CXX" = yes; then
15874   # Fast installation is not supported
15875   enable_fast_install=no
15876 elif test "$shlibpath_overrides_runpath" = yes ||
15877      test "$enable_shared" = no; then
15878   # Fast installation is not necessary
15879   enable_fast_install=needless
15880 fi
15881
15882
15883
15884
15885
15886
15887
15888   fi # test -n "$compiler"
15889
15890   CC=$lt_save_CC
15891   LDCXX=$LD
15892   LD=$lt_save_LD
15893   GCC=$lt_save_GCC
15894   with_gnu_ld=$lt_save_with_gnu_ld
15895   lt_cv_path_LDCXX=$lt_cv_path_LD
15896   lt_cv_path_LD=$lt_save_path_LD
15897   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15898   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15899 fi # test "$_lt_caught_CXX_error" != yes
15900
15901 ac_ext=c
15902 ac_cpp='$CPP $CPPFLAGS'
15903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919         ac_config_commands="$ac_config_commands libtool"
15920
15921
15922
15923
15924 # Only expand once:
15925
15926
15927
15928
15929 if test x$use_libtool != xno; then
15930    DEFAULT_OBJECT_TYPE=".lo"
15931    DEFAULT_ARCHIVE_TYPE=".la"
15932    DEFAULT_SHARED_OBJECT_TYPE=".la"
15933    LIBTOOL="\$(LIBTOOL)"
15934    LIBTOOL_INSTALL_TARGET="libtool-install"
15935    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15936    LIBTOOL_CLEAN_TARGET="libtool-clean"
15937    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15938 else
15939    DEFAULT_OBJECT_TYPE=".o"
15940    DEFAULT_ARCHIVE_TYPE=".a"
15941    DEFAULT_SHARED_OBJECT_TYPE=".so"
15942    LIBTOOL="# \$(LIBTOOL)"
15943    LIBTOOL_INSTALL_TARGET=""
15944    LIBTOOL_UNINSTALL_TARGET=""
15945    LIBTOOL_CLEAN_TARGET=""
15946    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15947 fi
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958 # Check whether --enable-includes was given.
15959 if test "${enable_includes+set}" = set; then
15960   enableval=$enable_includes;
15961        if test x$enableval = xyes; then
15962           install_includes=yes
15963        fi
15964
15965
15966 fi
15967
15968
15969
15970 if test x$use_libtool != xno -a x$install_includes = xyes; then
15971    INCLUDE_INSTALL_TARGET="install-includes"
15972    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15973 else
15974    INCLUDE_INSTALL_TARGET=""
15975    INCLUDE_UNINSTALL_TARGET=""
15976 fi
15977
15978
15979
15980
15981 { echo "$as_me:$LINENO: checking host system type" >&5
15982 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15983 if test "${ac_cv_host+set}" = set; then
15984   echo $ECHO_N "(cached) $ECHO_C" >&6
15985 else
15986   if test "x$host_alias" = x; then
15987   ac_cv_host=$ac_cv_build
15988 else
15989   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15990     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15991 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15992    { (exit 1); exit 1; }; }
15993 fi
15994
15995 fi
15996 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15997 echo "${ECHO_T}$ac_cv_host" >&6; }
15998 case $ac_cv_host in
15999 *-*-*) ;;
16000 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16001 echo "$as_me: error: invalid value of canonical host" >&2;}
16002    { (exit 1); exit 1; }; };;
16003 esac
16004 host=$ac_cv_host
16005 ac_save_IFS=$IFS; IFS='-'
16006 set x $ac_cv_host
16007 shift
16008 host_cpu=$1
16009 host_vendor=$2
16010 shift; shift
16011 # Remember, the first character of IFS is used to create $*,
16012 # except with old shells:
16013 host_os=$*
16014 IFS=$ac_save_IFS
16015 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16016
16017
16018 case $host_os in
16019   *cygwin* ) CYGWIN=yes;;
16020          * ) CYGWIN=no;;
16021 esac
16022
16023 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16024 then
16025
16026
16027 if $TRUEPRG; then
16028   HAVE_SUN_OS_TRUE=
16029   HAVE_SUN_OS_FALSE='#'
16030 else
16031   HAVE_SUN_OS_TRUE='#'
16032   HAVE_SUN_OS_FALSE=
16033 fi
16034         cat >>confdefs.h <<\_ACEOF
16035 #define HAVE_SUN_OS 1
16036 _ACEOF
16037
16038 else
16039
16040
16041 if $FALSEPRG; then
16042   HAVE_SUN_OS_TRUE=
16043   HAVE_SUN_OS_FALSE='#'
16044 else
16045   HAVE_SUN_OS_TRUE='#'
16046   HAVE_SUN_OS_FALSE=
16047 fi
16048 fi
16049
16050 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16051 then
16052
16053
16054 if $TRUEPRG; then
16055   HAVE_OSF1_OS_TRUE=
16056   HAVE_OSF1_OS_FALSE='#'
16057 else
16058   HAVE_OSF1_OS_TRUE='#'
16059   HAVE_OSF1_OS_FALSE=
16060 fi
16061         cat >>confdefs.h <<\_ACEOF
16062 #define HAVE_OSF1_OS 1
16063 _ACEOF
16064
16065 else
16066
16067
16068 if $FALSEPRG; then
16069   HAVE_OSF1_OS_TRUE=
16070   HAVE_OSF1_OS_FALSE='#'
16071 else
16072   HAVE_OSF1_OS_TRUE='#'
16073   HAVE_OSF1_OS_FALSE=
16074 fi
16075 fi
16076
16077 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16078 then
16079
16080
16081 if $TRUEPRG; then
16082   HAVE_AIX_OS_TRUE=
16083   HAVE_AIX_OS_FALSE='#'
16084 else
16085   HAVE_AIX_OS_TRUE='#'
16086   HAVE_AIX_OS_FALSE=
16087 fi
16088         cat >>confdefs.h <<\_ACEOF
16089 #define HAVE_AIX_OS 1
16090 _ACEOF
16091
16092 else
16093
16094
16095 if $FALSEPRG; then
16096   HAVE_AIX_OS_TRUE=
16097   HAVE_AIX_OS_FALSE='#'
16098 else
16099   HAVE_AIX_OS_TRUE='#'
16100   HAVE_AIX_OS_FALSE=
16101 fi
16102 fi
16103
16104 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16105 then
16106
16107
16108 if $TRUEPRG; then
16109   HAVE_HPUX_OS_TRUE=
16110   HAVE_HPUX_OS_FALSE='#'
16111 else
16112   HAVE_HPUX_OS_TRUE='#'
16113   HAVE_HPUX_OS_FALSE=
16114 fi
16115         cat >>confdefs.h <<\_ACEOF
16116 #define HAVE_HPUX_OS 1
16117 _ACEOF
16118
16119 else
16120
16121
16122 if $FALSEPRG; then
16123   HAVE_HPUX_OS_TRUE=
16124   HAVE_HPUX_OS_FALSE='#'
16125 else
16126   HAVE_HPUX_OS_TRUE='#'
16127   HAVE_HPUX_OS_FALSE=
16128 fi
16129 fi
16130
16131 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16132 then
16133
16134
16135 if $TRUEPRG; then
16136   HAVE_LINUX_OS_TRUE=
16137   HAVE_LINUX_OS_FALSE='#'
16138 else
16139   HAVE_LINUX_OS_TRUE='#'
16140   HAVE_LINUX_OS_FALSE=
16141 fi
16142         cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_LINUX_OS 1
16144 _ACEOF
16145
16146 else
16147
16148
16149 if $FALSEPRG; then
16150   HAVE_LINUX_OS_TRUE=
16151   HAVE_LINUX_OS_FALSE='#'
16152 else
16153   HAVE_LINUX_OS_TRUE='#'
16154   HAVE_LINUX_OS_FALSE=
16155 fi
16156 fi
16157
16158 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16159 then
16160
16161
16162 if $TRUEPRG; then
16163   HAVE_FREEBSD_OS_TRUE=
16164   HAVE_FREEBSD_OS_FALSE='#'
16165 else
16166   HAVE_FREEBSD_OS_TRUE='#'
16167   HAVE_FREEBSD_OS_FALSE=
16168 fi
16169         cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_FREEBSD_OS 1
16171 _ACEOF
16172
16173 else
16174
16175
16176 if $FALSEPRG; then
16177   HAVE_FREEBSD_OS_TRUE=
16178   HAVE_FREEBSD_OS_FALSE='#'
16179 else
16180   HAVE_FREEBSD_OS_TRUE='#'
16181   HAVE_FREEBSD_OS_FALSE=
16182 fi
16183 fi
16184
16185 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16186 then
16187
16188
16189 if $TRUEPRG; then
16190   HAVE_NETBSD_OS_TRUE=
16191   HAVE_NETBSD_OS_FALSE='#'
16192 else
16193   HAVE_NETBSD_OS_TRUE='#'
16194   HAVE_NETBSD_OS_FALSE=
16195 fi
16196         cat >>confdefs.h <<\_ACEOF
16197 #define HAVE_NETBSD_OS 1
16198 _ACEOF
16199
16200 else
16201
16202
16203 if $FALSEPRG; then
16204   HAVE_NETBSD_OS_TRUE=
16205   HAVE_NETBSD_OS_FALSE='#'
16206 else
16207   HAVE_NETBSD_OS_TRUE='#'
16208   HAVE_NETBSD_OS_FALSE=
16209 fi
16210 fi
16211
16212 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16213 then
16214
16215
16216 if $TRUEPRG; then
16217   HAVE_OPENBSD_OS_TRUE=
16218   HAVE_OPENBSD_OS_FALSE='#'
16219 else
16220   HAVE_OPENBSD_OS_TRUE='#'
16221   HAVE_OPENBSD_OS_FALSE=
16222 fi
16223         cat >>confdefs.h <<\_ACEOF
16224 #define HAVE_OPENBSD_OS 1
16225 _ACEOF
16226
16227 else
16228
16229
16230 if $FALSEPRG; then
16231   HAVE_OPENBSD_OS_TRUE=
16232   HAVE_OPENBSD_OS_FALSE='#'
16233 else
16234   HAVE_OPENBSD_OS_TRUE='#'
16235   HAVE_OPENBSD_OS_FALSE=
16236 fi
16237 fi
16238
16239 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16240 then
16241
16242
16243 if $TRUEPRG; then
16244   HAVE_BSDI_OS_TRUE=
16245   HAVE_BSDI_OS_FALSE='#'
16246 else
16247   HAVE_BSDI_OS_TRUE='#'
16248   HAVE_BSDI_OS_FALSE=
16249 fi
16250         cat >>confdefs.h <<\_ACEOF
16251 #define HAVE_BSDI_OS 1
16252 _ACEOF
16253
16254 else
16255
16256
16257 if $FALSEPRG; then
16258   HAVE_BSDI_OS_TRUE=
16259   HAVE_BSDI_OS_FALSE='#'
16260 else
16261   HAVE_BSDI_OS_TRUE='#'
16262   HAVE_BSDI_OS_FALSE=
16263 fi
16264 fi
16265
16266 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16267 then
16268
16269
16270 if $TRUEPRG; then
16271   HAVE_SGI_OS_TRUE=
16272   HAVE_SGI_OS_FALSE='#'
16273 else
16274   HAVE_SGI_OS_TRUE='#'
16275   HAVE_SGI_OS_FALSE=
16276 fi
16277         cat >>confdefs.h <<\_ACEOF
16278 #define HAVE_SGI_OS 1
16279 _ACEOF
16280
16281 else
16282
16283
16284 if $FALSEPRG; then
16285   HAVE_SGI_OS_TRUE=
16286   HAVE_SGI_OS_FALSE='#'
16287 else
16288   HAVE_SGI_OS_TRUE='#'
16289   HAVE_SGI_OS_FALSE=
16290 fi
16291 fi
16292
16293 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16294 then
16295
16296
16297 if $TRUEPRG; then
16298   HAVE_IRIX_OS_TRUE=
16299   HAVE_IRIX_OS_FALSE='#'
16300 else
16301   HAVE_IRIX_OS_TRUE='#'
16302   HAVE_IRIX_OS_FALSE=
16303 fi
16304         cat >>confdefs.h <<\_ACEOF
16305 #define HAVE_IRIX_OS 1
16306 _ACEOF
16307
16308 else
16309
16310
16311 if $FALSEPRG; then
16312   HAVE_IRIX_OS_TRUE=
16313   HAVE_IRIX_OS_FALSE='#'
16314 else
16315   HAVE_IRIX_OS_TRUE='#'
16316   HAVE_IRIX_OS_FALSE=
16317 fi
16318 fi
16319
16320 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16321 then
16322
16323
16324 if $TRUEPRG; then
16325   HAVE_DARWIN_OS_TRUE=
16326   HAVE_DARWIN_OS_FALSE='#'
16327 else
16328   HAVE_DARWIN_OS_TRUE='#'
16329   HAVE_DARWIN_OS_FALSE=
16330 fi
16331     cat >>confdefs.h <<\_ACEOF
16332 #define HAVE_DARWIN_OS 1
16333 _ACEOF
16334
16335 else
16336
16337
16338 if $FALSEPRG; then
16339   HAVE_DARWIN_OS_TRUE=
16340   HAVE_DARWIN_OS_FALSE='#'
16341 else
16342   HAVE_DARWIN_OS_TRUE='#'
16343   HAVE_DARWIN_OS_FALSE=
16344 fi
16345 fi
16346
16347
16348 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16349 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16350 if test "x$DISTNAME" != "x"
16351 then
16352         echo "distname set to $DISTNAME"
16353 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16354 then
16355         DISTNAME=alpha
16356 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16357 then
16358         DISTNAME=aix
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16360 then
16361         DISTNAME=hpux
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16363 then
16364         DISTNAME=solaris
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16366 then
16367         DISTNAME=freebsd
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16369 then
16370         DISTNAME=netbsd
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16372 then
16373         DISTNAME=openbsd
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16375 then
16376         DISTNAME=irix
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16378 then
16379         DISTNAME=bsdi
16380 elif test -f /etc/SuSE-release
16381 then
16382         DISTNAME=suse
16383 elif test -d /etc/SuSEconfig
16384 then
16385         DISTNAME=suse5
16386 elif test -f /etc/mandrake-release
16387 then
16388         DISTNAME=mandrake
16389 elif test -f /etc/whitebox-release
16390 then
16391        DISTNAME=redhat
16392 elif test -f /etc/redhat-release
16393 then
16394         DISTNAME=redhat
16395 elif test -f /etc/gentoo-release
16396 then
16397         DISTNAME=gentoo
16398 elif test -f /etc/debian_version
16399 then
16400         DISTNAME=debian
16401 elif test -f /etc/slackware-version
16402 then
16403         DISTNAME=slackware
16404 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16405 then
16406     DISTNAME=darwin
16407 elif test -f /etc/engarde-version
16408 then
16409         DISTNAME=engarde
16410 elif test "$CYGWIN" = yes
16411 then
16412         DISTNAME=cygwin
16413         cat >>confdefs.h <<\_ACEOF
16414 #define HAVE_CYGWIN 1
16415 _ACEOF
16416
16417 else
16418         DISTNAME=unknown
16419 fi
16420 { echo "$as_me:$LINENO: result: done" >&5
16421 echo "${ECHO_T}done" >&6; }
16422
16423
16424 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16425 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16426 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16427 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16428   echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430   cat >conftest.make <<\_ACEOF
16431 SHELL = /bin/sh
16432 all:
16433         @echo '@@@%%%=$(MAKE)=@@@%%%'
16434 _ACEOF
16435 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16436 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16437   *@@@%%%=?*=@@@%%%*)
16438     eval ac_cv_prog_make_${ac_make}_set=yes;;
16439   *)
16440     eval ac_cv_prog_make_${ac_make}_set=no;;
16441 esac
16442 rm -f conftest.make
16443 fi
16444 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16445   { echo "$as_me:$LINENO: result: yes" >&5
16446 echo "${ECHO_T}yes" >&6; }
16447   SET_MAKE=
16448 else
16449   { echo "$as_me:$LINENO: result: no" >&5
16450 echo "${ECHO_T}no" >&6; }
16451   SET_MAKE="MAKE=${MAKE-make}"
16452 fi
16453
16454
16455
16456         MKINSTALLDIRS=
16457   if test -n "$ac_aux_dir"; then
16458     case "$ac_aux_dir" in
16459       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16460       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16461     esac
16462   fi
16463   if test -z "$MKINSTALLDIRS"; then
16464     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16465   fi
16466
16467
16468
16469   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16470 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16471     # Check whether --enable-nls was given.
16472 if test "${enable_nls+set}" = set; then
16473   enableval=$enable_nls; USE_NLS=$enableval
16474 else
16475   USE_NLS=yes
16476 fi
16477
16478   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16479 echo "${ECHO_T}$USE_NLS" >&6; }
16480
16481
16482
16483
16484
16485
16486 # Prepare PATH_SEPARATOR.
16487 # The user is always right.
16488 if test "${PATH_SEPARATOR+set}" != set; then
16489   echo "#! /bin/sh" >conf$$.sh
16490   echo  "exit 0"   >>conf$$.sh
16491   chmod +x conf$$.sh
16492   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16493     PATH_SEPARATOR=';'
16494   else
16495     PATH_SEPARATOR=:
16496   fi
16497   rm -f conf$$.sh
16498 fi
16499
16500 # Find out how to test for executable files. Don't use a zero-byte file,
16501 # as systems may use methods other than mode bits to determine executability.
16502 cat >conf$$.file <<_ASEOF
16503 #! /bin/sh
16504 exit 0
16505 _ASEOF
16506 chmod +x conf$$.file
16507 if test -x conf$$.file >/dev/null 2>&1; then
16508   ac_executable_p="test -x"
16509 else
16510   ac_executable_p="test -f"
16511 fi
16512 rm -f conf$$.file
16513
16514 # Extract the first word of "msgfmt", so it can be a program name with args.
16515 set dummy msgfmt; ac_word=$2
16516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16518 if test "${ac_cv_path_MSGFMT+set}" = set; then
16519   echo $ECHO_N "(cached) $ECHO_C" >&6
16520 else
16521   case "$MSGFMT" in
16522   [\\/]* | ?:[\\/]*)
16523     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16524     ;;
16525   *)
16526     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16527     for ac_dir in $PATH; do
16528       IFS="$ac_save_IFS"
16529       test -z "$ac_dir" && ac_dir=.
16530       for ac_exec_ext in '' $ac_executable_extensions; do
16531         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16532           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16533           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16534      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16535             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16536             break 2
16537           fi
16538         fi
16539       done
16540     done
16541     IFS="$ac_save_IFS"
16542   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16543     ;;
16544 esac
16545 fi
16546 MSGFMT="$ac_cv_path_MSGFMT"
16547 if test "$MSGFMT" != ":"; then
16548   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16549 echo "${ECHO_T}$MSGFMT" >&6; }
16550 else
16551   { echo "$as_me:$LINENO: result: no" >&5
16552 echo "${ECHO_T}no" >&6; }
16553 fi
16554
16555   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16556 set dummy gmsgfmt; ac_word=$2
16557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16559 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16560   echo $ECHO_N "(cached) $ECHO_C" >&6
16561 else
16562   case $GMSGFMT in
16563   [\\/]* | ?:[\\/]*)
16564   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16565   ;;
16566   *)
16567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16568 for as_dir in $PATH
16569 do
16570   IFS=$as_save_IFS
16571   test -z "$as_dir" && as_dir=.
16572   for ac_exec_ext in '' $ac_executable_extensions; do
16573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16574     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16576     break 2
16577   fi
16578 done
16579 done
16580 IFS=$as_save_IFS
16581
16582   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16583   ;;
16584 esac
16585 fi
16586 GMSGFMT=$ac_cv_path_GMSGFMT
16587 if test -n "$GMSGFMT"; then
16588   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16589 echo "${ECHO_T}$GMSGFMT" >&6; }
16590 else
16591   { echo "$as_me:$LINENO: result: no" >&5
16592 echo "${ECHO_T}no" >&6; }
16593 fi
16594
16595
16596
16597
16598 # Prepare PATH_SEPARATOR.
16599 # The user is always right.
16600 if test "${PATH_SEPARATOR+set}" != set; then
16601   echo "#! /bin/sh" >conf$$.sh
16602   echo  "exit 0"   >>conf$$.sh
16603   chmod +x conf$$.sh
16604   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16605     PATH_SEPARATOR=';'
16606   else
16607     PATH_SEPARATOR=:
16608   fi
16609   rm -f conf$$.sh
16610 fi
16611
16612 # Find out how to test for executable files. Don't use a zero-byte file,
16613 # as systems may use methods other than mode bits to determine executability.
16614 cat >conf$$.file <<_ASEOF
16615 #! /bin/sh
16616 exit 0
16617 _ASEOF
16618 chmod +x conf$$.file
16619 if test -x conf$$.file >/dev/null 2>&1; then
16620   ac_executable_p="test -x"
16621 else
16622   ac_executable_p="test -f"
16623 fi
16624 rm -f conf$$.file
16625
16626 # Extract the first word of "xgettext", so it can be a program name with args.
16627 set dummy xgettext; ac_word=$2
16628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16630 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16631   echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16633   case "$XGETTEXT" in
16634   [\\/]* | ?:[\\/]*)
16635     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16636     ;;
16637   *)
16638     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16639     for ac_dir in $PATH; do
16640       IFS="$ac_save_IFS"
16641       test -z "$ac_dir" && ac_dir=.
16642       for ac_exec_ext in '' $ac_executable_extensions; do
16643         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16644           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16645           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16646      (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
16647             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16648             break 2
16649           fi
16650         fi
16651       done
16652     done
16653     IFS="$ac_save_IFS"
16654   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16655     ;;
16656 esac
16657 fi
16658 XGETTEXT="$ac_cv_path_XGETTEXT"
16659 if test "$XGETTEXT" != ":"; then
16660   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16661 echo "${ECHO_T}$XGETTEXT" >&6; }
16662 else
16663   { echo "$as_me:$LINENO: result: no" >&5
16664 echo "${ECHO_T}no" >&6; }
16665 fi
16666
16667     rm -f messages.po
16668
16669
16670 # Prepare PATH_SEPARATOR.
16671 # The user is always right.
16672 if test "${PATH_SEPARATOR+set}" != set; then
16673   echo "#! /bin/sh" >conf$$.sh
16674   echo  "exit 0"   >>conf$$.sh
16675   chmod +x conf$$.sh
16676   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16677     PATH_SEPARATOR=';'
16678   else
16679     PATH_SEPARATOR=:
16680   fi
16681   rm -f conf$$.sh
16682 fi
16683
16684 # Find out how to test for executable files. Don't use a zero-byte file,
16685 # as systems may use methods other than mode bits to determine executability.
16686 cat >conf$$.file <<_ASEOF
16687 #! /bin/sh
16688 exit 0
16689 _ASEOF
16690 chmod +x conf$$.file
16691 if test -x conf$$.file >/dev/null 2>&1; then
16692   ac_executable_p="test -x"
16693 else
16694   ac_executable_p="test -f"
16695 fi
16696 rm -f conf$$.file
16697
16698 # Extract the first word of "msgmerge", so it can be a program name with args.
16699 set dummy msgmerge; ac_word=$2
16700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16702 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16703   echo $ECHO_N "(cached) $ECHO_C" >&6
16704 else
16705   case "$MSGMERGE" in
16706   [\\/]* | ?:[\\/]*)
16707     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16708     ;;
16709   *)
16710     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16711     for ac_dir in $PATH; do
16712       IFS="$ac_save_IFS"
16713       test -z "$ac_dir" && ac_dir=.
16714       for ac_exec_ext in '' $ac_executable_extensions; do
16715         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16716           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16717           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16718             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16719             break 2
16720           fi
16721         fi
16722       done
16723     done
16724     IFS="$ac_save_IFS"
16725   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16726     ;;
16727 esac
16728 fi
16729 MSGMERGE="$ac_cv_path_MSGMERGE"
16730 if test "$MSGMERGE" != ":"; then
16731   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16732 echo "${ECHO_T}$MSGMERGE" >&6; }
16733 else
16734   { echo "$as_me:$LINENO: result: no" >&5
16735 echo "${ECHO_T}no" >&6; }
16736 fi
16737
16738
16739       if test "$GMSGFMT" != ":"; then
16740             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16741        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16742       : ;
16743     else
16744       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16745       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16746 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16747       GMSGFMT=":"
16748     fi
16749   fi
16750
16751       if test "$XGETTEXT" != ":"; then
16752             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16753        (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
16754       : ;
16755     else
16756       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16757 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16758       XGETTEXT=":"
16759     fi
16760         rm -f messages.po
16761   fi
16762
16763   ac_config_commands="$ac_config_commands default-1"
16764
16765
16766
16767       if test "X$prefix" = "XNONE"; then
16768     acl_final_prefix="$ac_default_prefix"
16769   else
16770     acl_final_prefix="$prefix"
16771   fi
16772   if test "X$exec_prefix" = "XNONE"; then
16773     acl_final_exec_prefix='${prefix}'
16774   else
16775     acl_final_exec_prefix="$exec_prefix"
16776   fi
16777   acl_save_prefix="$prefix"
16778   prefix="$acl_final_prefix"
16779   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16780   prefix="$acl_save_prefix"
16781
16782
16783 # Check whether --with-gnu-ld was given.
16784 if test "${with_gnu_ld+set}" = set; then
16785   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16786 else
16787   with_gnu_ld=no
16788 fi
16789
16790 # Prepare PATH_SEPARATOR.
16791 # The user is always right.
16792 if test "${PATH_SEPARATOR+set}" != set; then
16793   echo "#! /bin/sh" >conf$$.sh
16794   echo  "exit 0"   >>conf$$.sh
16795   chmod +x conf$$.sh
16796   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16797     PATH_SEPARATOR=';'
16798   else
16799     PATH_SEPARATOR=:
16800   fi
16801   rm -f conf$$.sh
16802 fi
16803 ac_prog=ld
16804 if test "$GCC" = yes; then
16805   # Check if gcc -print-prog-name=ld gives a path.
16806   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16807 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16808   case $host in
16809   *-*-mingw*)
16810     # gcc leaves a trailing carriage return which upsets mingw
16811     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16812   *)
16813     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16814   esac
16815   case $ac_prog in
16816     # Accept absolute paths.
16817     [\\/]* | [A-Za-z]:[\\/]*)
16818       re_direlt='/[^/][^/]*/\.\./'
16819       # Canonicalize the path of ld
16820       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16821       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16822         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16823       done
16824       test -z "$LD" && LD="$ac_prog"
16825       ;;
16826   "")
16827     # If it fails, then pretend we aren't using GCC.
16828     ac_prog=ld
16829     ;;
16830   *)
16831     # If it is relative, then search for the first ld in PATH.
16832     with_gnu_ld=unknown
16833     ;;
16834   esac
16835 elif test "$with_gnu_ld" = yes; then
16836   { echo "$as_me:$LINENO: checking for GNU ld" >&5
16837 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16838 else
16839   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16840 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16841 fi
16842 if test "${acl_cv_path_LD+set}" = set; then
16843   echo $ECHO_N "(cached) $ECHO_C" >&6
16844 else
16845   if test -z "$LD"; then
16846   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16847   for ac_dir in $PATH; do
16848     test -z "$ac_dir" && ac_dir=.
16849     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16850       acl_cv_path_LD="$ac_dir/$ac_prog"
16851       # Check to see if the program is GNU ld.  I'd rather use --version,
16852       # but apparently some GNU ld's only accept -v.
16853       # Break only if it was the GNU/non-GNU ld that we prefer.
16854       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16855       *GNU* | *'with BFD'*)
16856         test "$with_gnu_ld" != no && break ;;
16857       *)
16858         test "$with_gnu_ld" != yes && break ;;
16859       esac
16860     fi
16861   done
16862   IFS="$ac_save_ifs"
16863 else
16864   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16865 fi
16866 fi
16867
16868 LD="$acl_cv_path_LD"
16869 if test -n "$LD"; then
16870   { echo "$as_me:$LINENO: result: $LD" >&5
16871 echo "${ECHO_T}$LD" >&6; }
16872 else
16873   { echo "$as_me:$LINENO: result: no" >&5
16874 echo "${ECHO_T}no" >&6; }
16875 fi
16876 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16877 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16878    { (exit 1); exit 1; }; }
16879 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16880 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16881 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16882   echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16885 case `$LD -v 2>&1 </dev/null` in
16886 *GNU* | *'with BFD'*)
16887   acl_cv_prog_gnu_ld=yes ;;
16888 *)
16889   acl_cv_prog_gnu_ld=no ;;
16890 esac
16891 fi
16892 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16893 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16894 with_gnu_ld=$acl_cv_prog_gnu_ld
16895
16896
16897
16898
16899                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16900 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16901 if test "${acl_cv_rpath+set}" = set; then
16902   echo $ECHO_N "(cached) $ECHO_C" >&6
16903 else
16904
16905     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16906     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16907     . ./conftest.sh
16908     rm -f ./conftest.sh
16909     acl_cv_rpath=done
16910
16911 fi
16912 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16913 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16914   wl="$acl_cv_wl"
16915   libext="$acl_cv_libext"
16916   shlibext="$acl_cv_shlibext"
16917   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16918   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16919   hardcode_direct="$acl_cv_hardcode_direct"
16920   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16921     # Check whether --enable-rpath was given.
16922 if test "${enable_rpath+set}" = set; then
16923   enableval=$enable_rpath; :
16924 else
16925   enable_rpath=yes
16926 fi
16927
16928
16929
16930
16931
16932
16933
16934
16935     use_additional=yes
16936
16937   acl_save_prefix="$prefix"
16938   prefix="$acl_final_prefix"
16939   acl_save_exec_prefix="$exec_prefix"
16940   exec_prefix="$acl_final_exec_prefix"
16941
16942     eval additional_includedir=\"$includedir\"
16943     eval additional_libdir=\"$libdir\"
16944
16945   exec_prefix="$acl_save_exec_prefix"
16946   prefix="$acl_save_prefix"
16947
16948
16949 # Check whether --with-libiconv-prefix was given.
16950 if test "${with_libiconv_prefix+set}" = set; then
16951   withval=$with_libiconv_prefix;
16952     if test "X$withval" = "Xno"; then
16953       use_additional=no
16954     else
16955       if test "X$withval" = "X"; then
16956
16957   acl_save_prefix="$prefix"
16958   prefix="$acl_final_prefix"
16959   acl_save_exec_prefix="$exec_prefix"
16960   exec_prefix="$acl_final_exec_prefix"
16961
16962           eval additional_includedir=\"$includedir\"
16963           eval additional_libdir=\"$libdir\"
16964
16965   exec_prefix="$acl_save_exec_prefix"
16966   prefix="$acl_save_prefix"
16967
16968       else
16969         additional_includedir="$withval/include"
16970         additional_libdir="$withval/lib"
16971       fi
16972     fi
16973
16974 fi
16975
16976       LIBICONV=
16977   LTLIBICONV=
16978   INCICONV=
16979   rpathdirs=
16980   ltrpathdirs=
16981   names_already_handled=
16982   names_next_round='iconv '
16983   while test -n "$names_next_round"; do
16984     names_this_round="$names_next_round"
16985     names_next_round=
16986     for name in $names_this_round; do
16987       already_handled=
16988       for n in $names_already_handled; do
16989         if test "$n" = "$name"; then
16990           already_handled=yes
16991           break
16992         fi
16993       done
16994       if test -z "$already_handled"; then
16995         names_already_handled="$names_already_handled $name"
16996                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16997         eval value=\"\$HAVE_LIB$uppername\"
16998         if test -n "$value"; then
16999           if test "$value" = yes; then
17000             eval value=\"\$LIB$uppername\"
17001             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17002             eval value=\"\$LTLIB$uppername\"
17003             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17004           else
17005                                     :
17006           fi
17007         else
17008                               found_dir=
17009           found_la=
17010           found_so=
17011           found_a=
17012           if test $use_additional = yes; then
17013             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17014               found_dir="$additional_libdir"
17015               found_so="$additional_libdir/lib$name.$shlibext"
17016               if test -f "$additional_libdir/lib$name.la"; then
17017                 found_la="$additional_libdir/lib$name.la"
17018               fi
17019             else
17020               if test -f "$additional_libdir/lib$name.$libext"; then
17021                 found_dir="$additional_libdir"
17022                 found_a="$additional_libdir/lib$name.$libext"
17023                 if test -f "$additional_libdir/lib$name.la"; then
17024                   found_la="$additional_libdir/lib$name.la"
17025                 fi
17026               fi
17027             fi
17028           fi
17029           if test "X$found_dir" = "X"; then
17030             for x in $LDFLAGS $LTLIBICONV; do
17031
17032   acl_save_prefix="$prefix"
17033   prefix="$acl_final_prefix"
17034   acl_save_exec_prefix="$exec_prefix"
17035   exec_prefix="$acl_final_exec_prefix"
17036   eval x=\"$x\"
17037   exec_prefix="$acl_save_exec_prefix"
17038   prefix="$acl_save_prefix"
17039
17040               case "$x" in
17041                 -L*)
17042                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17043                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17044                     found_dir="$dir"
17045                     found_so="$dir/lib$name.$shlibext"
17046                     if test -f "$dir/lib$name.la"; then
17047                       found_la="$dir/lib$name.la"
17048                     fi
17049                   else
17050                     if test -f "$dir/lib$name.$libext"; then
17051                       found_dir="$dir"
17052                       found_a="$dir/lib$name.$libext"
17053                       if test -f "$dir/lib$name.la"; then
17054                         found_la="$dir/lib$name.la"
17055                       fi
17056                     fi
17057                   fi
17058                   ;;
17059               esac
17060               if test "X$found_dir" != "X"; then
17061                 break
17062               fi
17063             done
17064           fi
17065           if test "X$found_dir" != "X"; then
17066                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17067             if test "X$found_so" != "X"; then
17068                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17069                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17070               else
17071                                                                                 haveit=
17072                 for x in $ltrpathdirs; do
17073                   if test "X$x" = "X$found_dir"; then
17074                     haveit=yes
17075                     break
17076                   fi
17077                 done
17078                 if test -z "$haveit"; then
17079                   ltrpathdirs="$ltrpathdirs $found_dir"
17080                 fi
17081                                 if test "$hardcode_direct" = yes; then
17082                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17083                 else
17084                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17085                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17086                                                             haveit=
17087                     for x in $rpathdirs; do
17088                       if test "X$x" = "X$found_dir"; then
17089                         haveit=yes
17090                         break
17091                       fi
17092                     done
17093                     if test -z "$haveit"; then
17094                       rpathdirs="$rpathdirs $found_dir"
17095                     fi
17096                   else
17097                                                                                 haveit=
17098                     for x in $LDFLAGS $LIBICONV; do
17099
17100   acl_save_prefix="$prefix"
17101   prefix="$acl_final_prefix"
17102   acl_save_exec_prefix="$exec_prefix"
17103   exec_prefix="$acl_final_exec_prefix"
17104   eval x=\"$x\"
17105   exec_prefix="$acl_save_exec_prefix"
17106   prefix="$acl_save_prefix"
17107
17108                       if test "X$x" = "X-L$found_dir"; then
17109                         haveit=yes
17110                         break
17111                       fi
17112                     done
17113                     if test -z "$haveit"; then
17114                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17115                     fi
17116                     if test "$hardcode_minus_L" != no; then
17117                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17118                     else
17119                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17120                     fi
17121                   fi
17122                 fi
17123               fi
17124             else
17125               if test "X$found_a" != "X"; then
17126                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17127               else
17128                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17129               fi
17130             fi
17131                         additional_includedir=
17132             case "$found_dir" in
17133               */lib | */lib/)
17134                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17135                 additional_includedir="$basedir/include"
17136                 ;;
17137             esac
17138             if test "X$additional_includedir" != "X"; then
17139                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17140                 haveit=
17141                 if test "X$additional_includedir" = "X/usr/local/include"; then
17142                   if test -n "$GCC"; then
17143                     case $host_os in
17144                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17145                     esac
17146                   fi
17147                 fi
17148                 if test -z "$haveit"; then
17149                   for x in $CPPFLAGS $INCICONV; do
17150
17151   acl_save_prefix="$prefix"
17152   prefix="$acl_final_prefix"
17153   acl_save_exec_prefix="$exec_prefix"
17154   exec_prefix="$acl_final_exec_prefix"
17155   eval x=\"$x\"
17156   exec_prefix="$acl_save_exec_prefix"
17157   prefix="$acl_save_prefix"
17158
17159                     if test "X$x" = "X-I$additional_includedir"; then
17160                       haveit=yes
17161                       break
17162                     fi
17163                   done
17164                   if test -z "$haveit"; then
17165                     if test -d "$additional_includedir"; then
17166                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17167                     fi
17168                   fi
17169                 fi
17170               fi
17171             fi
17172                         if test -n "$found_la"; then
17173                                                         save_libdir="$libdir"
17174               case "$found_la" in
17175                 */* | *\\*) . "$found_la" ;;
17176                 *) . "./$found_la" ;;
17177               esac
17178               libdir="$save_libdir"
17179                             for dep in $dependency_libs; do
17180                 case "$dep" in
17181                   -L*)
17182                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17183                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17184                       haveit=
17185                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17186                         if test -n "$GCC"; then
17187                           case $host_os in
17188                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17189                           esac
17190                         fi
17191                       fi
17192                       if test -z "$haveit"; then
17193                         haveit=
17194                         for x in $LDFLAGS $LIBICONV; do
17195
17196   acl_save_prefix="$prefix"
17197   prefix="$acl_final_prefix"
17198   acl_save_exec_prefix="$exec_prefix"
17199   exec_prefix="$acl_final_exec_prefix"
17200   eval x=\"$x\"
17201   exec_prefix="$acl_save_exec_prefix"
17202   prefix="$acl_save_prefix"
17203
17204                           if test "X$x" = "X-L$additional_libdir"; then
17205                             haveit=yes
17206                             break
17207                           fi
17208                         done
17209                         if test -z "$haveit"; then
17210                           if test -d "$additional_libdir"; then
17211                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17212                           fi
17213                         fi
17214                         haveit=
17215                         for x in $LDFLAGS $LTLIBICONV; do
17216
17217   acl_save_prefix="$prefix"
17218   prefix="$acl_final_prefix"
17219   acl_save_exec_prefix="$exec_prefix"
17220   exec_prefix="$acl_final_exec_prefix"
17221   eval x=\"$x\"
17222   exec_prefix="$acl_save_exec_prefix"
17223   prefix="$acl_save_prefix"
17224
17225                           if test "X$x" = "X-L$additional_libdir"; then
17226                             haveit=yes
17227                             break
17228                           fi
17229                         done
17230                         if test -z "$haveit"; then
17231                           if test -d "$additional_libdir"; then
17232                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17233                           fi
17234                         fi
17235                       fi
17236                     fi
17237                     ;;
17238                   -R*)
17239                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17240                     if test "$enable_rpath" != no; then
17241                                                                   haveit=
17242                       for x in $rpathdirs; do
17243                         if test "X$x" = "X$dir"; then
17244                           haveit=yes
17245                           break
17246                         fi
17247                       done
17248                       if test -z "$haveit"; then
17249                         rpathdirs="$rpathdirs $dir"
17250                       fi
17251                                                                   haveit=
17252                       for x in $ltrpathdirs; do
17253                         if test "X$x" = "X$dir"; then
17254                           haveit=yes
17255                           break
17256                         fi
17257                       done
17258                       if test -z "$haveit"; then
17259                         ltrpathdirs="$ltrpathdirs $dir"
17260                       fi
17261                     fi
17262                     ;;
17263                   -l*)
17264                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17265                     ;;
17266                   *.la)
17267                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17268                     ;;
17269                   *)
17270                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17271                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17272                     ;;
17273                 esac
17274               done
17275             fi
17276           else
17277                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17278             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17279           fi
17280         fi
17281       fi
17282     done
17283   done
17284   if test "X$rpathdirs" != "X"; then
17285     if test -n "$hardcode_libdir_separator"; then
17286                         alldirs=
17287       for found_dir in $rpathdirs; do
17288         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17289       done
17290             acl_save_libdir="$libdir"
17291       libdir="$alldirs"
17292       eval flag=\"$hardcode_libdir_flag_spec\"
17293       libdir="$acl_save_libdir"
17294       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17295     else
17296             for found_dir in $rpathdirs; do
17297         acl_save_libdir="$libdir"
17298         libdir="$found_dir"
17299         eval flag=\"$hardcode_libdir_flag_spec\"
17300         libdir="$acl_save_libdir"
17301         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17302       done
17303     fi
17304   fi
17305   if test "X$ltrpathdirs" != "X"; then
17306             for found_dir in $ltrpathdirs; do
17307       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17308     done
17309   fi
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17329 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17330 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17331   echo $ECHO_N "(cached) $ECHO_C" >&6
17332 else
17333   gt_save_CPPFLAGS="$CPPFLAGS"
17334      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17335      gt_save_LIBS="$LIBS"
17336      LIBS="$LIBS -framework CoreFoundation"
17337      cat >conftest.$ac_ext <<_ACEOF
17338 /* confdefs.h.  */
17339 _ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h.  */
17343 #include <CFPreferences.h>
17344 int
17345 main ()
17346 {
17347 CFPreferencesCopyAppValue(NULL, NULL)
17348   ;
17349   return 0;
17350 }
17351 _ACEOF
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (ac_try="$ac_link"
17354 case "(($ac_try" in
17355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356   *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359   (eval "$ac_link") 2>conftest.er1
17360   ac_status=$?
17361   grep -v '^ *+' conftest.er1 >conftest.err
17362   rm -f conftest.er1
17363   cat conftest.err >&5
17364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); } && {
17366          test -z "$ac_c_werror_flag" ||
17367          test ! -s conftest.err
17368        } && test -s conftest$ac_exeext &&
17369        $as_test_x conftest$ac_exeext; then
17370   gt_cv_func_CFPreferencesCopyAppValue=yes
17371 else
17372   echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17374
17375         gt_cv_func_CFPreferencesCopyAppValue=no
17376 fi
17377
17378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17379       conftest$ac_exeext conftest.$ac_ext
17380      CPPFLAGS="$gt_save_CPPFLAGS"
17381      LIBS="$gt_save_LIBS"
17382 fi
17383 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17384 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17385   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17386
17387 cat >>confdefs.h <<\_ACEOF
17388 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17389 _ACEOF
17390
17391   fi
17392     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17393 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17394 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17395   echo $ECHO_N "(cached) $ECHO_C" >&6
17396 else
17397   gt_save_CPPFLAGS="$CPPFLAGS"
17398      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17399      gt_save_LIBS="$LIBS"
17400      LIBS="$LIBS -framework CoreFoundation"
17401      cat >conftest.$ac_ext <<_ACEOF
17402 /* confdefs.h.  */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h.  */
17407 #include <CFLocale.h>
17408 int
17409 main ()
17410 {
17411 CFLocaleCopyCurrent();
17412   ;
17413   return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (ac_try="$ac_link"
17418 case "(($ac_try" in
17419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420   *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423   (eval "$ac_link") 2>conftest.er1
17424   ac_status=$?
17425   grep -v '^ *+' conftest.er1 >conftest.err
17426   rm -f conftest.er1
17427   cat conftest.err >&5
17428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429   (exit $ac_status); } && {
17430          test -z "$ac_c_werror_flag" ||
17431          test ! -s conftest.err
17432        } && test -s conftest$ac_exeext &&
17433        $as_test_x conftest$ac_exeext; then
17434   gt_cv_func_CFLocaleCopyCurrent=yes
17435 else
17436   echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439         gt_cv_func_CFLocaleCopyCurrent=no
17440 fi
17441
17442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17443       conftest$ac_exeext conftest.$ac_ext
17444      CPPFLAGS="$gt_save_CPPFLAGS"
17445      LIBS="$gt_save_LIBS"
17446 fi
17447 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17448 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17449   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17450
17451 cat >>confdefs.h <<\_ACEOF
17452 #define HAVE_CFLOCALECOPYCURRENT 1
17453 _ACEOF
17454
17455   fi
17456   INTL_MACOSX_LIBS=
17457   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17458     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17459   fi
17460
17461
17462
17463
17464   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17465 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17466     # Check whether --enable-nls was given.
17467 if test "${enable_nls+set}" = set; then
17468   enableval=$enable_nls; USE_NLS=$enableval
17469 else
17470   USE_NLS=yes
17471 fi
17472
17473   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17474 echo "${ECHO_T}$USE_NLS" >&6; }
17475
17476
17477
17478
17479   LIBINTL=
17480   LTLIBINTL=
17481   POSUB=
17482
17483     if test "$USE_NLS" = "yes"; then
17484     gt_use_preinstalled_gnugettext=no
17485
17486
17487
17488
17489
17490
17491         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17492 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17493 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17494   echo $ECHO_N "(cached) $ECHO_C" >&6
17495 else
17496   cat >conftest.$ac_ext <<_ACEOF
17497 /* confdefs.h.  */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h.  */
17502 #include <libintl.h>
17503 extern int _nl_msg_cat_cntr;
17504 extern int *_nl_domain_bindings;
17505 int
17506 main ()
17507 {
17508 bindtextdomain ("", "");
17509 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17510   ;
17511   return 0;
17512 }
17513 _ACEOF
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (ac_try="$ac_link"
17516 case "(($ac_try" in
17517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518   *) ac_try_echo=$ac_try;;
17519 esac
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521   (eval "$ac_link") 2>conftest.er1
17522   ac_status=$?
17523   grep -v '^ *+' conftest.er1 >conftest.err
17524   rm -f conftest.er1
17525   cat conftest.err >&5
17526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); } && {
17528          test -z "$ac_c_werror_flag" ||
17529          test ! -s conftest.err
17530        } && test -s conftest$ac_exeext &&
17531        $as_test_x conftest$ac_exeext; then
17532   gt_cv_func_gnugettext1_libc=yes
17533 else
17534   echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17536
17537         gt_cv_func_gnugettext1_libc=no
17538 fi
17539
17540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17541       conftest$ac_exeext conftest.$ac_ext
17542 fi
17543 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17544 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17545
17546         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17547
17548
17549
17550
17551
17552           am_save_CPPFLAGS="$CPPFLAGS"
17553
17554   for element in $INCICONV; do
17555     haveit=
17556     for x in $CPPFLAGS; do
17557
17558   acl_save_prefix="$prefix"
17559   prefix="$acl_final_prefix"
17560   acl_save_exec_prefix="$exec_prefix"
17561   exec_prefix="$acl_final_exec_prefix"
17562   eval x=\"$x\"
17563   exec_prefix="$acl_save_exec_prefix"
17564   prefix="$acl_save_prefix"
17565
17566       if test "X$x" = "X$element"; then
17567         haveit=yes
17568         break
17569       fi
17570     done
17571     if test -z "$haveit"; then
17572       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17573     fi
17574   done
17575
17576
17577   { echo "$as_me:$LINENO: checking for iconv" >&5
17578 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17579 if test "${am_cv_func_iconv+set}" = set; then
17580   echo $ECHO_N "(cached) $ECHO_C" >&6
17581 else
17582
17583     am_cv_func_iconv="no, consider installing GNU libiconv"
17584     am_cv_lib_iconv=no
17585     cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h.  */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h.  */
17591 #include <stdlib.h>
17592 #include <iconv.h>
17593 int
17594 main ()
17595 {
17596 iconv_t cd = iconv_open("","");
17597        iconv(cd,NULL,NULL,NULL,NULL);
17598        iconv_close(cd);
17599   ;
17600   return 0;
17601 }
17602 _ACEOF
17603 rm -f conftest.$ac_objext conftest$ac_exeext
17604 if { (ac_try="$ac_link"
17605 case "(($ac_try" in
17606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607   *) ac_try_echo=$ac_try;;
17608 esac
17609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610   (eval "$ac_link") 2>conftest.er1
17611   ac_status=$?
17612   grep -v '^ *+' conftest.er1 >conftest.err
17613   rm -f conftest.er1
17614   cat conftest.err >&5
17615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616   (exit $ac_status); } && {
17617          test -z "$ac_c_werror_flag" ||
17618          test ! -s conftest.err
17619        } && test -s conftest$ac_exeext &&
17620        $as_test_x conftest$ac_exeext; then
17621   am_cv_func_iconv=yes
17622 else
17623   echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17625
17626
17627 fi
17628
17629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17630       conftest$ac_exeext conftest.$ac_ext
17631     if test "$am_cv_func_iconv" != yes; then
17632       am_save_LIBS="$LIBS"
17633       LIBS="$LIBS $LIBICONV"
17634       cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h.  */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h.  */
17640 #include <stdlib.h>
17641 #include <iconv.h>
17642 int
17643 main ()
17644 {
17645 iconv_t cd = iconv_open("","");
17646          iconv(cd,NULL,NULL,NULL,NULL);
17647          iconv_close(cd);
17648   ;
17649   return 0;
17650 }
17651 _ACEOF
17652 rm -f conftest.$ac_objext conftest$ac_exeext
17653 if { (ac_try="$ac_link"
17654 case "(($ac_try" in
17655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656   *) ac_try_echo=$ac_try;;
17657 esac
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659   (eval "$ac_link") 2>conftest.er1
17660   ac_status=$?
17661   grep -v '^ *+' conftest.er1 >conftest.err
17662   rm -f conftest.er1
17663   cat conftest.err >&5
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); } && {
17666          test -z "$ac_c_werror_flag" ||
17667          test ! -s conftest.err
17668        } && test -s conftest$ac_exeext &&
17669        $as_test_x conftest$ac_exeext; then
17670   am_cv_lib_iconv=yes
17671         am_cv_func_iconv=yes
17672 else
17673   echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17675
17676
17677 fi
17678
17679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17680       conftest$ac_exeext conftest.$ac_ext
17681       LIBS="$am_save_LIBS"
17682     fi
17683
17684 fi
17685 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17686 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17687   if test "$am_cv_func_iconv" = yes; then
17688
17689 cat >>confdefs.h <<\_ACEOF
17690 #define HAVE_ICONV 1
17691 _ACEOF
17692
17693   fi
17694   if test "$am_cv_lib_iconv" = yes; then
17695     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17696 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17697     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17698 echo "${ECHO_T}$LIBICONV" >&6; }
17699   else
17700             CPPFLAGS="$am_save_CPPFLAGS"
17701     LIBICONV=
17702     LTLIBICONV=
17703   fi
17704
17705
17706
17707
17708
17709
17710     use_additional=yes
17711
17712   acl_save_prefix="$prefix"
17713   prefix="$acl_final_prefix"
17714   acl_save_exec_prefix="$exec_prefix"
17715   exec_prefix="$acl_final_exec_prefix"
17716
17717     eval additional_includedir=\"$includedir\"
17718     eval additional_libdir=\"$libdir\"
17719
17720   exec_prefix="$acl_save_exec_prefix"
17721   prefix="$acl_save_prefix"
17722
17723
17724 # Check whether --with-libintl-prefix was given.
17725 if test "${with_libintl_prefix+set}" = set; then
17726   withval=$with_libintl_prefix;
17727     if test "X$withval" = "Xno"; then
17728       use_additional=no
17729     else
17730       if test "X$withval" = "X"; then
17731
17732   acl_save_prefix="$prefix"
17733   prefix="$acl_final_prefix"
17734   acl_save_exec_prefix="$exec_prefix"
17735   exec_prefix="$acl_final_exec_prefix"
17736
17737           eval additional_includedir=\"$includedir\"
17738           eval additional_libdir=\"$libdir\"
17739
17740   exec_prefix="$acl_save_exec_prefix"
17741   prefix="$acl_save_prefix"
17742
17743       else
17744         additional_includedir="$withval/include"
17745         additional_libdir="$withval/lib"
17746       fi
17747     fi
17748
17749 fi
17750
17751       LIBINTL=
17752   LTLIBINTL=
17753   INCINTL=
17754   rpathdirs=
17755   ltrpathdirs=
17756   names_already_handled=
17757   names_next_round='intl '
17758   while test -n "$names_next_round"; do
17759     names_this_round="$names_next_round"
17760     names_next_round=
17761     for name in $names_this_round; do
17762       already_handled=
17763       for n in $names_already_handled; do
17764         if test "$n" = "$name"; then
17765           already_handled=yes
17766           break
17767         fi
17768       done
17769       if test -z "$already_handled"; then
17770         names_already_handled="$names_already_handled $name"
17771                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17772         eval value=\"\$HAVE_LIB$uppername\"
17773         if test -n "$value"; then
17774           if test "$value" = yes; then
17775             eval value=\"\$LIB$uppername\"
17776             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17777             eval value=\"\$LTLIB$uppername\"
17778             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17779           else
17780                                     :
17781           fi
17782         else
17783                               found_dir=
17784           found_la=
17785           found_so=
17786           found_a=
17787           if test $use_additional = yes; then
17788             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17789               found_dir="$additional_libdir"
17790               found_so="$additional_libdir/lib$name.$shlibext"
17791               if test -f "$additional_libdir/lib$name.la"; then
17792                 found_la="$additional_libdir/lib$name.la"
17793               fi
17794             else
17795               if test -f "$additional_libdir/lib$name.$libext"; then
17796                 found_dir="$additional_libdir"
17797                 found_a="$additional_libdir/lib$name.$libext"
17798                 if test -f "$additional_libdir/lib$name.la"; then
17799                   found_la="$additional_libdir/lib$name.la"
17800                 fi
17801               fi
17802             fi
17803           fi
17804           if test "X$found_dir" = "X"; then
17805             for x in $LDFLAGS $LTLIBINTL; do
17806
17807   acl_save_prefix="$prefix"
17808   prefix="$acl_final_prefix"
17809   acl_save_exec_prefix="$exec_prefix"
17810   exec_prefix="$acl_final_exec_prefix"
17811   eval x=\"$x\"
17812   exec_prefix="$acl_save_exec_prefix"
17813   prefix="$acl_save_prefix"
17814
17815               case "$x" in
17816                 -L*)
17817                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17818                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17819                     found_dir="$dir"
17820                     found_so="$dir/lib$name.$shlibext"
17821                     if test -f "$dir/lib$name.la"; then
17822                       found_la="$dir/lib$name.la"
17823                     fi
17824                   else
17825                     if test -f "$dir/lib$name.$libext"; then
17826                       found_dir="$dir"
17827                       found_a="$dir/lib$name.$libext"
17828                       if test -f "$dir/lib$name.la"; then
17829                         found_la="$dir/lib$name.la"
17830                       fi
17831                     fi
17832                   fi
17833                   ;;
17834               esac
17835               if test "X$found_dir" != "X"; then
17836                 break
17837               fi
17838             done
17839           fi
17840           if test "X$found_dir" != "X"; then
17841                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17842             if test "X$found_so" != "X"; then
17843                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17844                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17845               else
17846                                                                                 haveit=
17847                 for x in $ltrpathdirs; do
17848                   if test "X$x" = "X$found_dir"; then
17849                     haveit=yes
17850                     break
17851                   fi
17852                 done
17853                 if test -z "$haveit"; then
17854                   ltrpathdirs="$ltrpathdirs $found_dir"
17855                 fi
17856                                 if test "$hardcode_direct" = yes; then
17857                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17858                 else
17859                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17860                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17861                                                             haveit=
17862                     for x in $rpathdirs; do
17863                       if test "X$x" = "X$found_dir"; then
17864                         haveit=yes
17865                         break
17866                       fi
17867                     done
17868                     if test -z "$haveit"; then
17869                       rpathdirs="$rpathdirs $found_dir"
17870                     fi
17871                   else
17872                                                                                 haveit=
17873                     for x in $LDFLAGS $LIBINTL; do
17874
17875   acl_save_prefix="$prefix"
17876   prefix="$acl_final_prefix"
17877   acl_save_exec_prefix="$exec_prefix"
17878   exec_prefix="$acl_final_exec_prefix"
17879   eval x=\"$x\"
17880   exec_prefix="$acl_save_exec_prefix"
17881   prefix="$acl_save_prefix"
17882
17883                       if test "X$x" = "X-L$found_dir"; then
17884                         haveit=yes
17885                         break
17886                       fi
17887                     done
17888                     if test -z "$haveit"; then
17889                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17890                     fi
17891                     if test "$hardcode_minus_L" != no; then
17892                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17893                     else
17894                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17895                     fi
17896                   fi
17897                 fi
17898               fi
17899             else
17900               if test "X$found_a" != "X"; then
17901                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17902               else
17903                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17904               fi
17905             fi
17906                         additional_includedir=
17907             case "$found_dir" in
17908               */lib | */lib/)
17909                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17910                 additional_includedir="$basedir/include"
17911                 ;;
17912             esac
17913             if test "X$additional_includedir" != "X"; then
17914                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17915                 haveit=
17916                 if test "X$additional_includedir" = "X/usr/local/include"; then
17917                   if test -n "$GCC"; then
17918                     case $host_os in
17919                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17920                     esac
17921                   fi
17922                 fi
17923                 if test -z "$haveit"; then
17924                   for x in $CPPFLAGS $INCINTL; do
17925
17926   acl_save_prefix="$prefix"
17927   prefix="$acl_final_prefix"
17928   acl_save_exec_prefix="$exec_prefix"
17929   exec_prefix="$acl_final_exec_prefix"
17930   eval x=\"$x\"
17931   exec_prefix="$acl_save_exec_prefix"
17932   prefix="$acl_save_prefix"
17933
17934                     if test "X$x" = "X-I$additional_includedir"; then
17935                       haveit=yes
17936                       break
17937                     fi
17938                   done
17939                   if test -z "$haveit"; then
17940                     if test -d "$additional_includedir"; then
17941                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17942                     fi
17943                   fi
17944                 fi
17945               fi
17946             fi
17947                         if test -n "$found_la"; then
17948                                                         save_libdir="$libdir"
17949               case "$found_la" in
17950                 */* | *\\*) . "$found_la" ;;
17951                 *) . "./$found_la" ;;
17952               esac
17953               libdir="$save_libdir"
17954                             for dep in $dependency_libs; do
17955                 case "$dep" in
17956                   -L*)
17957                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17958                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17959                       haveit=
17960                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17961                         if test -n "$GCC"; then
17962                           case $host_os in
17963                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17964                           esac
17965                         fi
17966                       fi
17967                       if test -z "$haveit"; then
17968                         haveit=
17969                         for x in $LDFLAGS $LIBINTL; do
17970
17971   acl_save_prefix="$prefix"
17972   prefix="$acl_final_prefix"
17973   acl_save_exec_prefix="$exec_prefix"
17974   exec_prefix="$acl_final_exec_prefix"
17975   eval x=\"$x\"
17976   exec_prefix="$acl_save_exec_prefix"
17977   prefix="$acl_save_prefix"
17978
17979                           if test "X$x" = "X-L$additional_libdir"; then
17980                             haveit=yes
17981                             break
17982                           fi
17983                         done
17984                         if test -z "$haveit"; then
17985                           if test -d "$additional_libdir"; then
17986                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17987                           fi
17988                         fi
17989                         haveit=
17990                         for x in $LDFLAGS $LTLIBINTL; do
17991
17992   acl_save_prefix="$prefix"
17993   prefix="$acl_final_prefix"
17994   acl_save_exec_prefix="$exec_prefix"
17995   exec_prefix="$acl_final_exec_prefix"
17996   eval x=\"$x\"
17997   exec_prefix="$acl_save_exec_prefix"
17998   prefix="$acl_save_prefix"
17999
18000                           if test "X$x" = "X-L$additional_libdir"; then
18001                             haveit=yes
18002                             break
18003                           fi
18004                         done
18005                         if test -z "$haveit"; then
18006                           if test -d "$additional_libdir"; then
18007                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18008                           fi
18009                         fi
18010                       fi
18011                     fi
18012                     ;;
18013                   -R*)
18014                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18015                     if test "$enable_rpath" != no; then
18016                                                                   haveit=
18017                       for x in $rpathdirs; do
18018                         if test "X$x" = "X$dir"; then
18019                           haveit=yes
18020                           break
18021                         fi
18022                       done
18023                       if test -z "$haveit"; then
18024                         rpathdirs="$rpathdirs $dir"
18025                       fi
18026                                                                   haveit=
18027                       for x in $ltrpathdirs; do
18028                         if test "X$x" = "X$dir"; then
18029                           haveit=yes
18030                           break
18031                         fi
18032                       done
18033                       if test -z "$haveit"; then
18034                         ltrpathdirs="$ltrpathdirs $dir"
18035                       fi
18036                     fi
18037                     ;;
18038                   -l*)
18039                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18040                     ;;
18041                   *.la)
18042                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18043                     ;;
18044                   *)
18045                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18046                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18047                     ;;
18048                 esac
18049               done
18050             fi
18051           else
18052                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18053             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18054           fi
18055         fi
18056       fi
18057     done
18058   done
18059   if test "X$rpathdirs" != "X"; then
18060     if test -n "$hardcode_libdir_separator"; then
18061                         alldirs=
18062       for found_dir in $rpathdirs; do
18063         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18064       done
18065             acl_save_libdir="$libdir"
18066       libdir="$alldirs"
18067       eval flag=\"$hardcode_libdir_flag_spec\"
18068       libdir="$acl_save_libdir"
18069       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18070     else
18071             for found_dir in $rpathdirs; do
18072         acl_save_libdir="$libdir"
18073         libdir="$found_dir"
18074         eval flag=\"$hardcode_libdir_flag_spec\"
18075         libdir="$acl_save_libdir"
18076         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18077       done
18078     fi
18079   fi
18080   if test "X$ltrpathdirs" != "X"; then
18081             for found_dir in $ltrpathdirs; do
18082       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18083     done
18084   fi
18085
18086           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18087 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18088 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18089   echo $ECHO_N "(cached) $ECHO_C" >&6
18090 else
18091   gt_save_CPPFLAGS="$CPPFLAGS"
18092             CPPFLAGS="$CPPFLAGS $INCINTL"
18093             gt_save_LIBS="$LIBS"
18094             LIBS="$LIBS $LIBINTL"
18095                         cat >conftest.$ac_ext <<_ACEOF
18096 /* confdefs.h.  */
18097 _ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h.  */
18101 #include <libintl.h>
18102 extern int _nl_msg_cat_cntr;
18103 extern
18104 #ifdef __cplusplus
18105 "C"
18106 #endif
18107 const char *_nl_expand_alias (const char *);
18108 int
18109 main ()
18110 {
18111 bindtextdomain ("", "");
18112 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18113   ;
18114   return 0;
18115 }
18116 _ACEOF
18117 rm -f conftest.$ac_objext conftest$ac_exeext
18118 if { (ac_try="$ac_link"
18119 case "(($ac_try" in
18120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121   *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124   (eval "$ac_link") 2>conftest.er1
18125   ac_status=$?
18126   grep -v '^ *+' conftest.er1 >conftest.err
18127   rm -f conftest.er1
18128   cat conftest.err >&5
18129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130   (exit $ac_status); } && {
18131          test -z "$ac_c_werror_flag" ||
18132          test ! -s conftest.err
18133        } && test -s conftest$ac_exeext &&
18134        $as_test_x conftest$ac_exeext; then
18135   gt_cv_func_gnugettext1_libintl=yes
18136 else
18137   echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18139
18140         gt_cv_func_gnugettext1_libintl=no
18141 fi
18142
18143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18144       conftest$ac_exeext conftest.$ac_ext
18145                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18146               LIBS="$LIBS $LIBICONV"
18147               cat >conftest.$ac_ext <<_ACEOF
18148 /* confdefs.h.  */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h.  */
18153 #include <libintl.h>
18154 extern int _nl_msg_cat_cntr;
18155 extern
18156 #ifdef __cplusplus
18157 "C"
18158 #endif
18159 const char *_nl_expand_alias (const char *);
18160 int
18161 main ()
18162 {
18163 bindtextdomain ("", "");
18164 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18165   ;
18166   return 0;
18167 }
18168 _ACEOF
18169 rm -f conftest.$ac_objext conftest$ac_exeext
18170 if { (ac_try="$ac_link"
18171 case "(($ac_try" in
18172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173   *) ac_try_echo=$ac_try;;
18174 esac
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176   (eval "$ac_link") 2>conftest.er1
18177   ac_status=$?
18178   grep -v '^ *+' conftest.er1 >conftest.err
18179   rm -f conftest.er1
18180   cat conftest.err >&5
18181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); } && {
18183          test -z "$ac_c_werror_flag" ||
18184          test ! -s conftest.err
18185        } && test -s conftest$ac_exeext &&
18186        $as_test_x conftest$ac_exeext; then
18187   LIBINTL="$LIBINTL $LIBICONV"
18188                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18189                 gt_cv_func_gnugettext1_libintl=yes
18190
18191 else
18192   echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18194
18195
18196 fi
18197
18198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18199       conftest$ac_exeext conftest.$ac_ext
18200             fi
18201             CPPFLAGS="$gt_save_CPPFLAGS"
18202             LIBS="$gt_save_LIBS"
18203 fi
18204 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18205 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18206         fi
18207
18208                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18209            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18210                 && test "$PACKAGE" != gettext-runtime \
18211                 && test "$PACKAGE" != gettext-tools; }; then
18212           gt_use_preinstalled_gnugettext=yes
18213         else
18214                     LIBINTL=
18215           LTLIBINTL=
18216           INCINTL=
18217         fi
18218
18219
18220
18221     if test -n "$INTL_MACOSX_LIBS"; then
18222       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18223          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18224                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18225         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18226       fi
18227     fi
18228
18229     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18230        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18231
18232 cat >>confdefs.h <<\_ACEOF
18233 #define ENABLE_NLS 1
18234 _ACEOF
18235
18236     else
18237       USE_NLS=no
18238     fi
18239   fi
18240
18241   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18242 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18243   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18244 echo "${ECHO_T}$USE_NLS" >&6; }
18245   if test "$USE_NLS" = "yes"; then
18246     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18247 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18248     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18249       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18250         gt_source="external libintl"
18251       else
18252         gt_source="libc"
18253       fi
18254     else
18255       gt_source="included intl directory"
18256     fi
18257     { echo "$as_me:$LINENO: result: $gt_source" >&5
18258 echo "${ECHO_T}$gt_source" >&6; }
18259   fi
18260
18261   if test "$USE_NLS" = "yes"; then
18262
18263     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18264       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18265         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18266 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18267         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18268 echo "${ECHO_T}$LIBINTL" >&6; }
18269
18270   for element in $INCINTL; do
18271     haveit=
18272     for x in $CPPFLAGS; do
18273
18274   acl_save_prefix="$prefix"
18275   prefix="$acl_final_prefix"
18276   acl_save_exec_prefix="$exec_prefix"
18277   exec_prefix="$acl_final_exec_prefix"
18278   eval x=\"$x\"
18279   exec_prefix="$acl_save_exec_prefix"
18280   prefix="$acl_save_prefix"
18281
18282       if test "X$x" = "X$element"; then
18283         haveit=yes
18284         break
18285       fi
18286     done
18287     if test -z "$haveit"; then
18288       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18289     fi
18290   done
18291
18292       fi
18293
18294
18295 cat >>confdefs.h <<\_ACEOF
18296 #define HAVE_GETTEXT 1
18297 _ACEOF
18298
18299
18300 cat >>confdefs.h <<\_ACEOF
18301 #define HAVE_DCGETTEXT 1
18302 _ACEOF
18303
18304     fi
18305
18306         POSUB=po
18307   fi
18308
18309
18310
18311     INTLLIBS="$LIBINTL"
18312
18313
18314
18315
18316
18317
18318
18319 if test x${prefix} = xNONE ; then
18320    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18321       sysconfdir=/etc/bacula
18322    fi
18323
18324    if test `eval echo ${libdir}` = NONE/lib ; then
18325       libdir=/usr/lib
18326    fi
18327
18328    if test `eval echo ${includedir}` = NONE/include ; then
18329       includedir=/usr/include
18330    fi
18331
18332    if test `eval echo ${datarootdir}` = NONE/share ; then
18333       datarootdir=/usr/share
18334    fi
18335    prefix=
18336 fi
18337
18338 if test x${exec_prefix} = xNONE ; then
18339    exec_prefix=${prefix}
18340 fi
18341
18342 sysconfdir=`eval echo ${sysconfdir}`
18343 datarootdir=`eval echo ${datarootdir}`
18344 docdir=`eval echo ${docdir}`
18345 htmldir=`eval echo ${htmldir}`
18346 libdir=`eval echo ${libdir}`
18347 includedir=`eval echo ${includedir}`
18348 localedir=`eval echo ${datarootdir}/locale`
18349 cat >>confdefs.h <<_ACEOF
18350 #define SYSCONFDIR "$sysconfdir"
18351 _ACEOF
18352
18353 cat >>confdefs.h <<_ACEOF
18354 #define LOCALEDIR "$localedir"
18355 _ACEOF
18356
18357
18358 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18359    sbindir=${exec_prefix}/sbin
18360 fi
18361 sbindir=`eval echo ${sbindir}`
18362
18363 if test x$mandir = x'${prefix}/man' ; then
18364    mandir=/usr/share/man
18365 fi
18366
18367 if test x$htmldir = x${docdir} ; then
18368    htmldir=`eval echo ${docdir}bacula/html`
18369 fi
18370
18371 if test x$docdir = x'/usr/share/doc/' ; then
18372    docdir=`eval echo ${docdir}bacula`
18373 fi
18374
18375
18376 for ac_prog in msgfmt
18377 do
18378   # Extract the first word of "$ac_prog", so it can be a program name with args.
18379 set dummy $ac_prog; ac_word=$2
18380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18382 if test "${ac_cv_path_MSGFMT+set}" = set; then
18383   echo $ECHO_N "(cached) $ECHO_C" >&6
18384 else
18385   case $MSGFMT in
18386   [\\/]* | ?:[\\/]*)
18387   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18388   ;;
18389   *)
18390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18391 for as_dir in $PATH
18392 do
18393   IFS=$as_save_IFS
18394   test -z "$as_dir" && as_dir=.
18395   for ac_exec_ext in '' $ac_executable_extensions; do
18396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18397     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18399     break 2
18400   fi
18401 done
18402 done
18403 IFS=$as_save_IFS
18404
18405   ;;
18406 esac
18407 fi
18408 MSGFMT=$ac_cv_path_MSGFMT
18409 if test -n "$MSGFMT"; then
18410   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18411 echo "${ECHO_T}$MSGFMT" >&6; }
18412 else
18413   { echo "$as_me:$LINENO: result: no" >&5
18414 echo "${ECHO_T}no" >&6; }
18415 fi
18416
18417
18418   test -n "$MSGFMT" && break
18419 done
18420 test -n "$MSGFMT" || MSGFMT="no"
18421
18422 if test "$MSGFMT" = "no"
18423 then
18424    echo 'msgfmt program not found, disabling NLS !'
18425    USE_NLS=no
18426    USE_INCLUDED_LIBINTL=no
18427 #else
18428
18429     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18430 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18431 if test "${ac_cv_gnu_library_2+set}" = set; then
18432   echo $ECHO_N "(cached) $ECHO_C" >&6
18433 else
18434   cat >conftest.$ac_ext <<_ACEOF
18435 /* confdefs.h.  */
18436 _ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h.  */
18440
18441 #include <features.h>
18442 #ifdef __GNU_LIBRARY__
18443  #if (__GLIBC__ >= 2)
18444   Lucky GNU user
18445  #endif
18446 #endif
18447
18448 _ACEOF
18449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18450   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18451   ac_cv_gnu_library_2=yes
18452 else
18453   ac_cv_gnu_library_2=no
18454 fi
18455 rm -f conftest*
18456
18457
18458
18459 fi
18460 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18461 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18462
18463     GLIBC2="$ac_cv_gnu_library_2"
18464
18465
18466 if test -n "$ac_tool_prefix"; then
18467   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18471 if test "${ac_cv_prog_RANLIB+set}" = set; then
18472   echo $ECHO_N "(cached) $ECHO_C" >&6
18473 else
18474   if test -n "$RANLIB"; then
18475   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18476 else
18477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18478 for as_dir in $PATH
18479 do
18480   IFS=$as_save_IFS
18481   test -z "$as_dir" && as_dir=.
18482   for ac_exec_ext in '' $ac_executable_extensions; do
18483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18484     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18486     break 2
18487   fi
18488 done
18489 done
18490 IFS=$as_save_IFS
18491
18492 fi
18493 fi
18494 RANLIB=$ac_cv_prog_RANLIB
18495 if test -n "$RANLIB"; then
18496   { echo "$as_me:$LINENO: result: $RANLIB" >&5
18497 echo "${ECHO_T}$RANLIB" >&6; }
18498 else
18499   { echo "$as_me:$LINENO: result: no" >&5
18500 echo "${ECHO_T}no" >&6; }
18501 fi
18502
18503
18504 fi
18505 if test -z "$ac_cv_prog_RANLIB"; then
18506   ac_ct_RANLIB=$RANLIB
18507   # Extract the first word of "ranlib", so it can be a program name with args.
18508 set dummy ranlib; ac_word=$2
18509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18511 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18512   echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514   if test -n "$ac_ct_RANLIB"; then
18515   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18516 else
18517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18518 for as_dir in $PATH
18519 do
18520   IFS=$as_save_IFS
18521   test -z "$as_dir" && as_dir=.
18522   for ac_exec_ext in '' $ac_executable_extensions; do
18523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18524     ac_cv_prog_ac_ct_RANLIB="ranlib"
18525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18526     break 2
18527   fi
18528 done
18529 done
18530 IFS=$as_save_IFS
18531
18532 fi
18533 fi
18534 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18535 if test -n "$ac_ct_RANLIB"; then
18536   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18537 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18538 else
18539   { echo "$as_me:$LINENO: result: no" >&5
18540 echo "${ECHO_T}no" >&6; }
18541 fi
18542
18543   if test "x$ac_ct_RANLIB" = x; then
18544     RANLIB=":"
18545   else
18546     case $cross_compiling:$ac_tool_warned in
18547 yes:)
18548 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18549 whose name does not start with the host triplet.  If you think this
18550 configuration is useful to you, please write to autoconf@gnu.org." >&5
18551 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18552 whose name does not start with the host triplet.  If you think this
18553 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18554 ac_tool_warned=yes ;;
18555 esac
18556     RANLIB=$ac_ct_RANLIB
18557   fi
18558 else
18559   RANLIB="$ac_cv_prog_RANLIB"
18560 fi
18561
18562
18563         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18564 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18565 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18566   echo $ECHO_N "(cached) $ECHO_C" >&6
18567 else
18568   ac_check_lib_save_LIBS=$LIBS
18569 LIBS="-lcposix  $LIBS"
18570 cat >conftest.$ac_ext <<_ACEOF
18571 /* confdefs.h.  */
18572 _ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h.  */
18576
18577 /* Override any GCC internal prototype to avoid an error.
18578    Use char because int might match the return type of a GCC
18579    builtin and then its argument prototype would still apply.  */
18580 #ifdef __cplusplus
18581 extern "C"
18582 #endif
18583 char strerror ();
18584 int
18585 main ()
18586 {
18587 return strerror ();
18588   ;
18589   return 0;
18590 }
18591 _ACEOF
18592 rm -f conftest.$ac_objext conftest$ac_exeext
18593 if { (ac_try="$ac_link"
18594 case "(($ac_try" in
18595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596   *) ac_try_echo=$ac_try;;
18597 esac
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599   (eval "$ac_link") 2>conftest.er1
18600   ac_status=$?
18601   grep -v '^ *+' conftest.er1 >conftest.err
18602   rm -f conftest.er1
18603   cat conftest.err >&5
18604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605   (exit $ac_status); } && {
18606          test -z "$ac_c_werror_flag" ||
18607          test ! -s conftest.err
18608        } && test -s conftest$ac_exeext &&
18609        $as_test_x conftest$ac_exeext; then
18610   ac_cv_lib_cposix_strerror=yes
18611 else
18612   echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18614
18615         ac_cv_lib_cposix_strerror=no
18616 fi
18617
18618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18619       conftest$ac_exeext conftest.$ac_ext
18620 LIBS=$ac_check_lib_save_LIBS
18621 fi
18622 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18623 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18624 if test $ac_cv_lib_cposix_strerror = yes; then
18625   LIBS="$LIBS -lcposix"
18626 fi
18627
18628
18629
18630 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18631 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18632 if test "${ac_cv_c_const+set}" = set; then
18633   echo $ECHO_N "(cached) $ECHO_C" >&6
18634 else
18635   cat >conftest.$ac_ext <<_ACEOF
18636 /* confdefs.h.  */
18637 _ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h.  */
18641
18642 int
18643 main ()
18644 {
18645 /* FIXME: Include the comments suggested by Paul. */
18646 #ifndef __cplusplus
18647   /* Ultrix mips cc rejects this.  */
18648   typedef int charset[2];
18649   const charset cs;
18650   /* SunOS 4.1.1 cc rejects this.  */
18651   char const *const *pcpcc;
18652   char **ppc;
18653   /* NEC SVR4.0.2 mips cc rejects this.  */
18654   struct point {int x, y;};
18655   static struct point const zero = {0,0};
18656   /* AIX XL C 1.02.0.0 rejects this.
18657      It does not let you subtract one const X* pointer from another in
18658      an arm of an if-expression whose if-part is not a constant
18659      expression */
18660   const char *g = "string";
18661   pcpcc = &g + (g ? g-g : 0);
18662   /* HPUX 7.0 cc rejects these. */
18663   ++pcpcc;
18664   ppc = (char**) pcpcc;
18665   pcpcc = (char const *const *) ppc;
18666   { /* SCO 3.2v4 cc rejects this.  */
18667     char *t;
18668     char const *s = 0 ? (char *) 0 : (char const *) 0;
18669
18670     *t++ = 0;
18671     if (s) return 0;
18672   }
18673   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18674     int x[] = {25, 17};
18675     const int *foo = &x[0];
18676     ++foo;
18677   }
18678   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18679     typedef const int *iptr;
18680     iptr p = 0;
18681     ++p;
18682   }
18683   { /* AIX XL C 1.02.0.0 rejects this saying
18684        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18685     struct s { int j; const int *ap[3]; };
18686     struct s *b; b->j = 5;
18687   }
18688   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18689     const int foo = 10;
18690     if (!foo) return 0;
18691   }
18692   return !cs[0] && !zero.x;
18693 #endif
18694
18695   ;
18696   return 0;
18697 }
18698 _ACEOF
18699 rm -f conftest.$ac_objext
18700 if { (ac_try="$ac_compile"
18701 case "(($ac_try" in
18702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703   *) ac_try_echo=$ac_try;;
18704 esac
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706   (eval "$ac_compile") 2>conftest.er1
18707   ac_status=$?
18708   grep -v '^ *+' conftest.er1 >conftest.err
18709   rm -f conftest.er1
18710   cat conftest.err >&5
18711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712   (exit $ac_status); } && {
18713          test -z "$ac_c_werror_flag" ||
18714          test ! -s conftest.err
18715        } && test -s conftest.$ac_objext; then
18716   ac_cv_c_const=yes
18717 else
18718   echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18720
18721         ac_cv_c_const=no
18722 fi
18723
18724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18725 fi
18726 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18727 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18728 if test $ac_cv_c_const = no; then
18729
18730 cat >>confdefs.h <<\_ACEOF
18731 #define const
18732 _ACEOF
18733
18734 fi
18735
18736
18737   { echo "$as_me:$LINENO: checking for signed" >&5
18738 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18739 if test "${bh_cv_c_signed+set}" = set; then
18740   echo $ECHO_N "(cached) $ECHO_C" >&6
18741 else
18742   cat >conftest.$ac_ext <<_ACEOF
18743 /* confdefs.h.  */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h.  */
18748
18749 int
18750 main ()
18751 {
18752 signed char x;
18753   ;
18754   return 0;
18755 }
18756 _ACEOF
18757 rm -f conftest.$ac_objext
18758 if { (ac_try="$ac_compile"
18759 case "(($ac_try" in
18760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761   *) ac_try_echo=$ac_try;;
18762 esac
18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764   (eval "$ac_compile") 2>conftest.er1
18765   ac_status=$?
18766   grep -v '^ *+' conftest.er1 >conftest.err
18767   rm -f conftest.er1
18768   cat conftest.err >&5
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); } && {
18771          test -z "$ac_c_werror_flag" ||
18772          test ! -s conftest.err
18773        } && test -s conftest.$ac_objext; then
18774   bh_cv_c_signed=yes
18775 else
18776   echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18778
18779         bh_cv_c_signed=no
18780 fi
18781
18782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18783 fi
18784 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18785 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18786   if test $bh_cv_c_signed = no; then
18787
18788 cat >>confdefs.h <<\_ACEOF
18789 #define signed
18790 _ACEOF
18791
18792   fi
18793
18794 { echo "$as_me:$LINENO: checking for inline" >&5
18795 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18796 if test "${ac_cv_c_inline+set}" = set; then
18797   echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799   ac_cv_c_inline=no
18800 for ac_kw in inline __inline__ __inline; do
18801   cat >conftest.$ac_ext <<_ACEOF
18802 /* confdefs.h.  */
18803 _ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h.  */
18807 #ifndef __cplusplus
18808 typedef int foo_t;
18809 static $ac_kw foo_t static_foo () {return 0; }
18810 $ac_kw foo_t foo () {return 0; }
18811 #endif
18812
18813 _ACEOF
18814 rm -f conftest.$ac_objext
18815 if { (ac_try="$ac_compile"
18816 case "(($ac_try" in
18817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818   *) ac_try_echo=$ac_try;;
18819 esac
18820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821   (eval "$ac_compile") 2>conftest.er1
18822   ac_status=$?
18823   grep -v '^ *+' conftest.er1 >conftest.err
18824   rm -f conftest.er1
18825   cat conftest.err >&5
18826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827   (exit $ac_status); } && {
18828          test -z "$ac_c_werror_flag" ||
18829          test ! -s conftest.err
18830        } && test -s conftest.$ac_objext; then
18831   ac_cv_c_inline=$ac_kw
18832 else
18833   echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18835
18836
18837 fi
18838
18839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18840   test "$ac_cv_c_inline" != no && break
18841 done
18842
18843 fi
18844 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18845 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18846
18847
18848 case $ac_cv_c_inline in
18849   inline | yes) ;;
18850   *)
18851     case $ac_cv_c_inline in
18852       no) ac_val=;;
18853       *) ac_val=$ac_cv_c_inline;;
18854     esac
18855     cat >>confdefs.h <<_ACEOF
18856 #ifndef __cplusplus
18857 #define inline $ac_val
18858 #endif
18859 _ACEOF
18860     ;;
18861 esac
18862
18863 { echo "$as_me:$LINENO: checking for off_t" >&5
18864 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18865 if test "${ac_cv_type_off_t+set}" = set; then
18866   echo $ECHO_N "(cached) $ECHO_C" >&6
18867 else
18868   cat >conftest.$ac_ext <<_ACEOF
18869 /* confdefs.h.  */
18870 _ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h.  */
18874 $ac_includes_default
18875 typedef off_t ac__type_new_;
18876 int
18877 main ()
18878 {
18879 if ((ac__type_new_ *) 0)
18880   return 0;
18881 if (sizeof (ac__type_new_))
18882   return 0;
18883   ;
18884   return 0;
18885 }
18886 _ACEOF
18887 rm -f conftest.$ac_objext
18888 if { (ac_try="$ac_compile"
18889 case "(($ac_try" in
18890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891   *) ac_try_echo=$ac_try;;
18892 esac
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894   (eval "$ac_compile") 2>conftest.er1
18895   ac_status=$?
18896   grep -v '^ *+' conftest.er1 >conftest.err
18897   rm -f conftest.er1
18898   cat conftest.err >&5
18899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900   (exit $ac_status); } && {
18901          test -z "$ac_c_werror_flag" ||
18902          test ! -s conftest.err
18903        } && test -s conftest.$ac_objext; then
18904   ac_cv_type_off_t=yes
18905 else
18906   echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18908
18909         ac_cv_type_off_t=no
18910 fi
18911
18912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18913 fi
18914 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18915 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18916 if test $ac_cv_type_off_t = yes; then
18917   :
18918 else
18919
18920 cat >>confdefs.h <<_ACEOF
18921 #define off_t long int
18922 _ACEOF
18923
18924 fi
18925
18926 { echo "$as_me:$LINENO: checking for size_t" >&5
18927 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18928 if test "${ac_cv_type_size_t+set}" = set; then
18929   echo $ECHO_N "(cached) $ECHO_C" >&6
18930 else
18931   cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h.  */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h.  */
18937 $ac_includes_default
18938 typedef size_t ac__type_new_;
18939 int
18940 main ()
18941 {
18942 if ((ac__type_new_ *) 0)
18943   return 0;
18944 if (sizeof (ac__type_new_))
18945   return 0;
18946   ;
18947   return 0;
18948 }
18949 _ACEOF
18950 rm -f conftest.$ac_objext
18951 if { (ac_try="$ac_compile"
18952 case "(($ac_try" in
18953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954   *) ac_try_echo=$ac_try;;
18955 esac
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957   (eval "$ac_compile") 2>conftest.er1
18958   ac_status=$?
18959   grep -v '^ *+' conftest.er1 >conftest.err
18960   rm -f conftest.er1
18961   cat conftest.err >&5
18962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); } && {
18964          test -z "$ac_c_werror_flag" ||
18965          test ! -s conftest.err
18966        } && test -s conftest.$ac_objext; then
18967   ac_cv_type_size_t=yes
18968 else
18969   echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971
18972         ac_cv_type_size_t=no
18973 fi
18974
18975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18976 fi
18977 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18978 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18979 if test $ac_cv_type_size_t = yes; then
18980   :
18981 else
18982
18983 cat >>confdefs.h <<_ACEOF
18984 #define size_t unsigned int
18985 _ACEOF
18986
18987 fi
18988
18989
18990   { echo "$as_me:$LINENO: checking for long long" >&5
18991 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18992 if test "${ac_cv_type_long_long+set}" = set; then
18993   echo $ECHO_N "(cached) $ECHO_C" >&6
18994 else
18995   cat >conftest.$ac_ext <<_ACEOF
18996 /* confdefs.h.  */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h.  */
19001 long long ll = 1LL; int i = 63;
19002 int
19003 main ()
19004 {
19005 long long llmax = (long long) -1;
19006      return ll << i | ll >> i | llmax / ll | llmax % ll;
19007   ;
19008   return 0;
19009 }
19010 _ACEOF
19011 rm -f conftest.$ac_objext conftest$ac_exeext
19012 if { (ac_try="$ac_link"
19013 case "(($ac_try" in
19014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015   *) ac_try_echo=$ac_try;;
19016 esac
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018   (eval "$ac_link") 2>conftest.er1
19019   ac_status=$?
19020   grep -v '^ *+' conftest.er1 >conftest.err
19021   rm -f conftest.er1
19022   cat conftest.err >&5
19023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024   (exit $ac_status); } && {
19025          test -z "$ac_c_werror_flag" ||
19026          test ! -s conftest.err
19027        } && test -s conftest$ac_exeext &&
19028        $as_test_x conftest$ac_exeext; then
19029   ac_cv_type_long_long=yes
19030 else
19031   echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19033
19034         ac_cv_type_long_long=no
19035 fi
19036
19037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19038       conftest$ac_exeext conftest.$ac_ext
19039 fi
19040 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19041 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19042   if test $ac_cv_type_long_long = yes; then
19043
19044 cat >>confdefs.h <<\_ACEOF
19045 #define HAVE_LONG_LONG 1
19046 _ACEOF
19047
19048   fi
19049
19050
19051   { echo "$as_me:$LINENO: checking for long double" >&5
19052 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19053 if test "${gt_cv_c_long_double+set}" = set; then
19054   echo $ECHO_N "(cached) $ECHO_C" >&6
19055 else
19056   if test "$GCC" = yes; then
19057        gt_cv_c_long_double=yes
19058      else
19059        cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h.  */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h.  */
19065
19066          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19067          long double foo = 0.0;
19068          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19069          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19070
19071 int
19072 main ()
19073 {
19074
19075   ;
19076   return 0;
19077 }
19078 _ACEOF
19079 rm -f conftest.$ac_objext
19080 if { (ac_try="$ac_compile"
19081 case "(($ac_try" in
19082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083   *) ac_try_echo=$ac_try;;
19084 esac
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086   (eval "$ac_compile") 2>conftest.er1
19087   ac_status=$?
19088   grep -v '^ *+' conftest.er1 >conftest.err
19089   rm -f conftest.er1
19090   cat conftest.err >&5
19091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092   (exit $ac_status); } && {
19093          test -z "$ac_c_werror_flag" ||
19094          test ! -s conftest.err
19095        } && test -s conftest.$ac_objext; then
19096   gt_cv_c_long_double=yes
19097 else
19098   echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19100
19101         gt_cv_c_long_double=no
19102 fi
19103
19104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19105      fi
19106 fi
19107 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19108 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19109   if test $gt_cv_c_long_double = yes; then
19110
19111 cat >>confdefs.h <<\_ACEOF
19112 #define HAVE_LONG_DOUBLE 1
19113 _ACEOF
19114
19115   fi
19116
19117
19118   { echo "$as_me:$LINENO: checking for wchar_t" >&5
19119 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19120 if test "${gt_cv_c_wchar_t+set}" = set; then
19121   echo $ECHO_N "(cached) $ECHO_C" >&6
19122 else
19123   cat >conftest.$ac_ext <<_ACEOF
19124 /* confdefs.h.  */
19125 _ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h.  */
19129 #include <stddef.h>
19130        wchar_t foo = (wchar_t)'\0';
19131 int
19132 main ()
19133 {
19134
19135   ;
19136   return 0;
19137 }
19138 _ACEOF
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143   *) ac_try_echo=$ac_try;;
19144 esac
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146   (eval "$ac_compile") 2>conftest.er1
19147   ac_status=$?
19148   grep -v '^ *+' conftest.er1 >conftest.err
19149   rm -f conftest.er1
19150   cat conftest.err >&5
19151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152   (exit $ac_status); } && {
19153          test -z "$ac_c_werror_flag" ||
19154          test ! -s conftest.err
19155        } && test -s conftest.$ac_objext; then
19156   gt_cv_c_wchar_t=yes
19157 else
19158   echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19160
19161         gt_cv_c_wchar_t=no
19162 fi
19163
19164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19165 fi
19166 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19167 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19168   if test $gt_cv_c_wchar_t = yes; then
19169
19170 cat >>confdefs.h <<\_ACEOF
19171 #define HAVE_WCHAR_T 1
19172 _ACEOF
19173
19174   fi
19175
19176
19177   { echo "$as_me:$LINENO: checking for wint_t" >&5
19178 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19179 if test "${gt_cv_c_wint_t+set}" = set; then
19180   echo $ECHO_N "(cached) $ECHO_C" >&6
19181 else
19182   cat >conftest.$ac_ext <<_ACEOF
19183 /* confdefs.h.  */
19184 _ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h.  */
19188 #include <wchar.h>
19189        wint_t foo = (wchar_t)'\0';
19190 int
19191 main ()
19192 {
19193
19194   ;
19195   return 0;
19196 }
19197 _ACEOF
19198 rm -f conftest.$ac_objext
19199 if { (ac_try="$ac_compile"
19200 case "(($ac_try" in
19201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202   *) ac_try_echo=$ac_try;;
19203 esac
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205   (eval "$ac_compile") 2>conftest.er1
19206   ac_status=$?
19207   grep -v '^ *+' conftest.er1 >conftest.err
19208   rm -f conftest.er1
19209   cat conftest.err >&5
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); } && {
19212          test -z "$ac_c_werror_flag" ||
19213          test ! -s conftest.err
19214        } && test -s conftest.$ac_objext; then
19215   gt_cv_c_wint_t=yes
19216 else
19217   echo "$as_me: failed program was:" >&5
19218 sed 's/^/| /' conftest.$ac_ext >&5
19219
19220         gt_cv_c_wint_t=no
19221 fi
19222
19223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19224 fi
19225 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19226 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19227   if test $gt_cv_c_wint_t = yes; then
19228
19229 cat >>confdefs.h <<\_ACEOF
19230 #define HAVE_WINT_T 1
19231 _ACEOF
19232
19233   fi
19234
19235
19236   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19237 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19238 if test "${gl_cv_header_inttypes_h+set}" = set; then
19239   echo $ECHO_N "(cached) $ECHO_C" >&6
19240 else
19241   cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h.  */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h.  */
19247 #include <sys/types.h>
19248 #include <inttypes.h>
19249 int
19250 main ()
19251 {
19252 uintmax_t i = (uintmax_t) -1;
19253   ;
19254   return 0;
19255 }
19256 _ACEOF
19257 rm -f conftest.$ac_objext
19258 if { (ac_try="$ac_compile"
19259 case "(($ac_try" in
19260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261   *) ac_try_echo=$ac_try;;
19262 esac
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264   (eval "$ac_compile") 2>conftest.er1
19265   ac_status=$?
19266   grep -v '^ *+' conftest.er1 >conftest.err
19267   rm -f conftest.er1
19268   cat conftest.err >&5
19269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270   (exit $ac_status); } && {
19271          test -z "$ac_c_werror_flag" ||
19272          test ! -s conftest.err
19273        } && test -s conftest.$ac_objext; then
19274   gl_cv_header_inttypes_h=yes
19275 else
19276   echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19278
19279         gl_cv_header_inttypes_h=no
19280 fi
19281
19282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19283 fi
19284 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19285 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19286   if test $gl_cv_header_inttypes_h = yes; then
19287
19288 cat >>confdefs.h <<_ACEOF
19289 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19290 _ACEOF
19291
19292   fi
19293
19294
19295   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19296 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19297 if test "${gl_cv_header_stdint_h+set}" = set; then
19298   echo $ECHO_N "(cached) $ECHO_C" >&6
19299 else
19300   cat >conftest.$ac_ext <<_ACEOF
19301 /* confdefs.h.  */
19302 _ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h.  */
19306 #include <sys/types.h>
19307 #include <stdint.h>
19308 int
19309 main ()
19310 {
19311 uintmax_t i = (uintmax_t) -1;
19312   ;
19313   return 0;
19314 }
19315 _ACEOF
19316 rm -f conftest.$ac_objext
19317 if { (ac_try="$ac_compile"
19318 case "(($ac_try" in
19319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320   *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323   (eval "$ac_compile") 2>conftest.er1
19324   ac_status=$?
19325   grep -v '^ *+' conftest.er1 >conftest.err
19326   rm -f conftest.er1
19327   cat conftest.err >&5
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); } && {
19330          test -z "$ac_c_werror_flag" ||
19331          test ! -s conftest.err
19332        } && test -s conftest.$ac_objext; then
19333   gl_cv_header_stdint_h=yes
19334 else
19335   echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19337
19338         gl_cv_header_stdint_h=no
19339 fi
19340
19341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19342 fi
19343 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19344 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19345   if test $gl_cv_header_stdint_h = yes; then
19346
19347 cat >>confdefs.h <<_ACEOF
19348 #define HAVE_STDINT_H_WITH_UINTMAX 1
19349 _ACEOF
19350
19351   fi
19352
19353
19354
19355
19356   { echo "$as_me:$LINENO: checking for intmax_t" >&5
19357 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19358 if test "${gt_cv_c_intmax_t+set}" = set; then
19359   echo $ECHO_N "(cached) $ECHO_C" >&6
19360 else
19361   cat >conftest.$ac_ext <<_ACEOF
19362 /* confdefs.h.  */
19363 _ACEOF
19364 cat confdefs.h >>conftest.$ac_ext
19365 cat >>conftest.$ac_ext <<_ACEOF
19366 /* end confdefs.h.  */
19367
19368 #include <stddef.h>
19369 #include <stdlib.h>
19370 #if HAVE_STDINT_H_WITH_UINTMAX
19371 #include <stdint.h>
19372 #endif
19373 #if HAVE_INTTYPES_H_WITH_UINTMAX
19374 #include <inttypes.h>
19375 #endif
19376
19377 int
19378 main ()
19379 {
19380 intmax_t x = -1;
19381   ;
19382   return 0;
19383 }
19384 _ACEOF
19385 rm -f conftest.$ac_objext
19386 if { (ac_try="$ac_compile"
19387 case "(($ac_try" in
19388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389   *) ac_try_echo=$ac_try;;
19390 esac
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392   (eval "$ac_compile") 2>conftest.er1
19393   ac_status=$?
19394   grep -v '^ *+' conftest.er1 >conftest.err
19395   rm -f conftest.er1
19396   cat conftest.err >&5
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); } && {
19399          test -z "$ac_c_werror_flag" ||
19400          test ! -s conftest.err
19401        } && test -s conftest.$ac_objext; then
19402   gt_cv_c_intmax_t=yes
19403 else
19404   echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19406
19407         gt_cv_c_intmax_t=no
19408 fi
19409
19410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19411 fi
19412 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19413 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19414   if test $gt_cv_c_intmax_t = yes; then
19415
19416 cat >>confdefs.h <<\_ACEOF
19417 #define HAVE_INTMAX_T 1
19418 _ACEOF
19419
19420   fi
19421
19422
19423
19424   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19425 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19426 if test "${gt_cv_func_printf_posix+set}" = set; then
19427   echo $ECHO_N "(cached) $ECHO_C" >&6
19428 else
19429
19430       if test "$cross_compiling" = yes; then
19431
19432         cat >conftest.$ac_ext <<_ACEOF
19433 /* confdefs.h.  */
19434 _ACEOF
19435 cat confdefs.h >>conftest.$ac_ext
19436 cat >>conftest.$ac_ext <<_ACEOF
19437 /* end confdefs.h.  */
19438
19439 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19440   notposix
19441 #endif
19442
19443 _ACEOF
19444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19445   $EGREP "notposix" >/dev/null 2>&1; then
19446   gt_cv_func_printf_posix="guessing no"
19447 else
19448   gt_cv_func_printf_posix="guessing yes"
19449 fi
19450 rm -f conftest*
19451
19452
19453 else
19454   cat >conftest.$ac_ext <<_ACEOF
19455 /* confdefs.h.  */
19456 _ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h.  */
19460
19461 #include <stdio.h>
19462 #include <string.h>
19463 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19464    dollar expansion (possibly an autoconf bug).  */
19465 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19466 static char buf[100];
19467 int main ()
19468 {
19469   sprintf (buf, format, 33, 55);
19470   return (strcmp (buf, "55 33") != 0);
19471 }
19472 _ACEOF
19473 rm -f conftest$ac_exeext
19474 if { (ac_try="$ac_link"
19475 case "(($ac_try" in
19476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477   *) ac_try_echo=$ac_try;;
19478 esac
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480   (eval "$ac_link") 2>&5
19481   ac_status=$?
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19484   { (case "(($ac_try" in
19485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486   *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489   (eval "$ac_try") 2>&5
19490   ac_status=$?
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); }; }; then
19493   gt_cv_func_printf_posix=yes
19494 else
19495   echo "$as_me: program exited with status $ac_status" >&5
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19498
19499 ( exit $ac_status )
19500 gt_cv_func_printf_posix=no
19501 fi
19502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19503 fi
19504
19505
19506
19507 fi
19508 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19509 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19510   case $gt_cv_func_printf_posix in
19511     *yes)
19512
19513 cat >>confdefs.h <<\_ACEOF
19514 #define HAVE_POSIX_PRINTF 1
19515 _ACEOF
19516
19517       ;;
19518   esac
19519
19520 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19521 # for constant arguments.  Useless!
19522 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19523 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19524 if test "${ac_cv_working_alloca_h+set}" = set; then
19525   echo $ECHO_N "(cached) $ECHO_C" >&6
19526 else
19527   cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h.  */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h.  */
19533 #include <alloca.h>
19534 int
19535 main ()
19536 {
19537 char *p = (char *) alloca (2 * sizeof (int));
19538                           if (p) return 0;
19539   ;
19540   return 0;
19541 }
19542 _ACEOF
19543 rm -f conftest.$ac_objext conftest$ac_exeext
19544 if { (ac_try="$ac_link"
19545 case "(($ac_try" in
19546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547   *) ac_try_echo=$ac_try;;
19548 esac
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550   (eval "$ac_link") 2>conftest.er1
19551   ac_status=$?
19552   grep -v '^ *+' conftest.er1 >conftest.err
19553   rm -f conftest.er1
19554   cat conftest.err >&5
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); } && {
19557          test -z "$ac_c_werror_flag" ||
19558          test ! -s conftest.err
19559        } && test -s conftest$ac_exeext &&
19560        $as_test_x conftest$ac_exeext; then
19561   ac_cv_working_alloca_h=yes
19562 else
19563   echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19565
19566         ac_cv_working_alloca_h=no
19567 fi
19568
19569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19570       conftest$ac_exeext conftest.$ac_ext
19571 fi
19572 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19573 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19574 if test $ac_cv_working_alloca_h = yes; then
19575
19576 cat >>confdefs.h <<\_ACEOF
19577 #define HAVE_ALLOCA_H 1
19578 _ACEOF
19579
19580 fi
19581
19582 { echo "$as_me:$LINENO: checking for alloca" >&5
19583 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19584 if test "${ac_cv_func_alloca_works+set}" = set; then
19585   echo $ECHO_N "(cached) $ECHO_C" >&6
19586 else
19587   cat >conftest.$ac_ext <<_ACEOF
19588 /* confdefs.h.  */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h.  */
19593 #ifdef __GNUC__
19594 # define alloca __builtin_alloca
19595 #else
19596 # ifdef _MSC_VER
19597 #  include <malloc.h>
19598 #  define alloca _alloca
19599 # else
19600 #  ifdef HAVE_ALLOCA_H
19601 #   include <alloca.h>
19602 #  else
19603 #   ifdef _AIX
19604  #pragma alloca
19605 #   else
19606 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19607 char *alloca ();
19608 #    endif
19609 #   endif
19610 #  endif
19611 # endif
19612 #endif
19613
19614 int
19615 main ()
19616 {
19617 char *p = (char *) alloca (1);
19618                                     if (p) return 0;
19619   ;
19620   return 0;
19621 }
19622 _ACEOF
19623 rm -f conftest.$ac_objext conftest$ac_exeext
19624 if { (ac_try="$ac_link"
19625 case "(($ac_try" in
19626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627   *) ac_try_echo=$ac_try;;
19628 esac
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630   (eval "$ac_link") 2>conftest.er1
19631   ac_status=$?
19632   grep -v '^ *+' conftest.er1 >conftest.err
19633   rm -f conftest.er1
19634   cat conftest.err >&5
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); } && {
19637          test -z "$ac_c_werror_flag" ||
19638          test ! -s conftest.err
19639        } && test -s conftest$ac_exeext &&
19640        $as_test_x conftest$ac_exeext; then
19641   ac_cv_func_alloca_works=yes
19642 else
19643   echo "$as_me: failed program was:" >&5
19644 sed 's/^/| /' conftest.$ac_ext >&5
19645
19646         ac_cv_func_alloca_works=no
19647 fi
19648
19649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19650       conftest$ac_exeext conftest.$ac_ext
19651 fi
19652 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19653 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19654
19655 if test $ac_cv_func_alloca_works = yes; then
19656
19657 cat >>confdefs.h <<\_ACEOF
19658 #define HAVE_ALLOCA 1
19659 _ACEOF
19660
19661 else
19662   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19663 # that cause trouble.  Some versions do not even contain alloca or
19664 # contain a buggy version.  If you still want to use their alloca,
19665 # use ar to extract alloca.o from them instead of compiling alloca.c.
19666
19667 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19668
19669 cat >>confdefs.h <<\_ACEOF
19670 #define C_ALLOCA 1
19671 _ACEOF
19672
19673
19674 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19675 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19676 if test "${ac_cv_os_cray+set}" = set; then
19677   echo $ECHO_N "(cached) $ECHO_C" >&6
19678 else
19679   cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h.  */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h.  */
19685 #if defined CRAY && ! defined CRAY2
19686 webecray
19687 #else
19688 wenotbecray
19689 #endif
19690
19691 _ACEOF
19692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19693   $EGREP "webecray" >/dev/null 2>&1; then
19694   ac_cv_os_cray=yes
19695 else
19696   ac_cv_os_cray=no
19697 fi
19698 rm -f conftest*
19699
19700 fi
19701 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19702 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19703 if test $ac_cv_os_cray = yes; then
19704   for ac_func in _getb67 GETB67 getb67; do
19705     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19709   echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711   cat >conftest.$ac_ext <<_ACEOF
19712 /* confdefs.h.  */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h.  */
19717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19719 #define $ac_func innocuous_$ac_func
19720
19721 /* System header to define __stub macros and hopefully few prototypes,
19722     which can conflict with char $ac_func (); below.
19723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19724     <limits.h> exists even on freestanding compilers.  */
19725
19726 #ifdef __STDC__
19727 # include <limits.h>
19728 #else
19729 # include <assert.h>
19730 #endif
19731
19732 #undef $ac_func
19733
19734 /* Override any GCC internal prototype to avoid an error.
19735    Use char because int might match the return type of a GCC
19736    builtin and then its argument prototype would still apply.  */
19737 #ifdef __cplusplus
19738 extern "C"
19739 #endif
19740 char $ac_func ();
19741 /* The GNU C library defines this for functions which it implements
19742     to always fail with ENOSYS.  Some functions are actually named
19743     something starting with __ and the normal name is an alias.  */
19744 #if defined __stub_$ac_func || defined __stub___$ac_func
19745 choke me
19746 #endif
19747
19748 int
19749 main ()
19750 {
19751 return $ac_func ();
19752   ;
19753   return 0;
19754 }
19755 _ACEOF
19756 rm -f conftest.$ac_objext conftest$ac_exeext
19757 if { (ac_try="$ac_link"
19758 case "(($ac_try" in
19759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760   *) ac_try_echo=$ac_try;;
19761 esac
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763   (eval "$ac_link") 2>conftest.er1
19764   ac_status=$?
19765   grep -v '^ *+' conftest.er1 >conftest.err
19766   rm -f conftest.er1
19767   cat conftest.err >&5
19768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769   (exit $ac_status); } && {
19770          test -z "$ac_c_werror_flag" ||
19771          test ! -s conftest.err
19772        } && test -s conftest$ac_exeext &&
19773        $as_test_x conftest$ac_exeext; then
19774   eval "$as_ac_var=yes"
19775 else
19776   echo "$as_me: failed program was:" >&5
19777 sed 's/^/| /' conftest.$ac_ext >&5
19778
19779         eval "$as_ac_var=no"
19780 fi
19781
19782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19783       conftest$ac_exeext conftest.$ac_ext
19784 fi
19785 ac_res=`eval echo '${'$as_ac_var'}'`
19786                { echo "$as_me:$LINENO: result: $ac_res" >&5
19787 echo "${ECHO_T}$ac_res" >&6; }
19788 if test `eval echo '${'$as_ac_var'}'` = yes; then
19789
19790 cat >>confdefs.h <<_ACEOF
19791 #define CRAY_STACKSEG_END $ac_func
19792 _ACEOF
19793
19794     break
19795 fi
19796
19797   done
19798 fi
19799
19800 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19801 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19802 if test "${ac_cv_c_stack_direction+set}" = set; then
19803   echo $ECHO_N "(cached) $ECHO_C" >&6
19804 else
19805   if test "$cross_compiling" = yes; then
19806   ac_cv_c_stack_direction=0
19807 else
19808   cat >conftest.$ac_ext <<_ACEOF
19809 /* confdefs.h.  */
19810 _ACEOF
19811 cat confdefs.h >>conftest.$ac_ext
19812 cat >>conftest.$ac_ext <<_ACEOF
19813 /* end confdefs.h.  */
19814 $ac_includes_default
19815 int
19816 find_stack_direction ()
19817 {
19818   static char *addr = 0;
19819   auto char dummy;
19820   if (addr == 0)
19821     {
19822       addr = &dummy;
19823       return find_stack_direction ();
19824     }
19825   else
19826     return (&dummy > addr) ? 1 : -1;
19827 }
19828
19829 int
19830 main ()
19831 {
19832   return find_stack_direction () < 0;
19833 }
19834 _ACEOF
19835 rm -f conftest$ac_exeext
19836 if { (ac_try="$ac_link"
19837 case "(($ac_try" in
19838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839   *) ac_try_echo=$ac_try;;
19840 esac
19841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842   (eval "$ac_link") 2>&5
19843   ac_status=$?
19844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19846   { (case "(($ac_try" in
19847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848   *) ac_try_echo=$ac_try;;
19849 esac
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851   (eval "$ac_try") 2>&5
19852   ac_status=$?
19853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); }; }; then
19855   ac_cv_c_stack_direction=1
19856 else
19857   echo "$as_me: program exited with status $ac_status" >&5
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19860
19861 ( exit $ac_status )
19862 ac_cv_c_stack_direction=-1
19863 fi
19864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19865 fi
19866
19867
19868 fi
19869 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19870 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19871
19872 cat >>confdefs.h <<_ACEOF
19873 #define STACK_DIRECTION $ac_cv_c_stack_direction
19874 _ACEOF
19875
19876
19877 fi
19878
19879
19880
19881 for ac_header in stdlib.h unistd.h
19882 do
19883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19885   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19888   echo $ECHO_N "(cached) $ECHO_C" >&6
19889 fi
19890 ac_res=`eval echo '${'$as_ac_Header'}'`
19891                { echo "$as_me:$LINENO: result: $ac_res" >&5
19892 echo "${ECHO_T}$ac_res" >&6; }
19893 else
19894   # Is the header compilable?
19895 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19897 cat >conftest.$ac_ext <<_ACEOF
19898 /* confdefs.h.  */
19899 _ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h.  */
19903 $ac_includes_default
19904 #include <$ac_header>
19905 _ACEOF
19906 rm -f conftest.$ac_objext
19907 if { (ac_try="$ac_compile"
19908 case "(($ac_try" in
19909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910   *) ac_try_echo=$ac_try;;
19911 esac
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913   (eval "$ac_compile") 2>conftest.er1
19914   ac_status=$?
19915   grep -v '^ *+' conftest.er1 >conftest.err
19916   rm -f conftest.er1
19917   cat conftest.err >&5
19918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919   (exit $ac_status); } && {
19920          test -z "$ac_c_werror_flag" ||
19921          test ! -s conftest.err
19922        } && test -s conftest.$ac_objext; then
19923   ac_header_compiler=yes
19924 else
19925   echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19927
19928         ac_header_compiler=no
19929 fi
19930
19931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19933 echo "${ECHO_T}$ac_header_compiler" >&6; }
19934
19935 # Is the header present?
19936 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19938 cat >conftest.$ac_ext <<_ACEOF
19939 /* confdefs.h.  */
19940 _ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h.  */
19944 #include <$ac_header>
19945 _ACEOF
19946 if { (ac_try="$ac_cpp conftest.$ac_ext"
19947 case "(($ac_try" in
19948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949   *) ac_try_echo=$ac_try;;
19950 esac
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19953   ac_status=$?
19954   grep -v '^ *+' conftest.er1 >conftest.err
19955   rm -f conftest.er1
19956   cat conftest.err >&5
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); } >/dev/null && {
19959          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19960          test ! -s conftest.err
19961        }; then
19962   ac_header_preproc=yes
19963 else
19964   echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19966
19967   ac_header_preproc=no
19968 fi
19969
19970 rm -f conftest.err conftest.$ac_ext
19971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19972 echo "${ECHO_T}$ac_header_preproc" >&6; }
19973
19974 # So?  What about this header?
19975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19976   yes:no: )
19977     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19981     ac_header_preproc=yes
19982     ;;
19983   no:yes:* )
19984     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19986     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19987 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19988     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19990     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19991 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19994     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19996
19997     ;;
19998 esac
19999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20002   echo $ECHO_N "(cached) $ECHO_C" >&6
20003 else
20004   eval "$as_ac_Header=\$ac_header_preproc"
20005 fi
20006 ac_res=`eval echo '${'$as_ac_Header'}'`
20007                { echo "$as_me:$LINENO: result: $ac_res" >&5
20008 echo "${ECHO_T}$ac_res" >&6; }
20009
20010 fi
20011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20012   cat >>confdefs.h <<_ACEOF
20013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20014 _ACEOF
20015
20016 fi
20017
20018 done
20019
20020
20021 for ac_func in getpagesize
20022 do
20023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20027   echo $ECHO_N "(cached) $ECHO_C" >&6
20028 else
20029   cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h.  */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h.  */
20035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20037 #define $ac_func innocuous_$ac_func
20038
20039 /* System header to define __stub macros and hopefully few prototypes,
20040     which can conflict with char $ac_func (); below.
20041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20042     <limits.h> exists even on freestanding compilers.  */
20043
20044 #ifdef __STDC__
20045 # include <limits.h>
20046 #else
20047 # include <assert.h>
20048 #endif
20049
20050 #undef $ac_func
20051
20052 /* Override any GCC internal prototype to avoid an error.
20053    Use char because int might match the return type of a GCC
20054    builtin and then its argument prototype would still apply.  */
20055 #ifdef __cplusplus
20056 extern "C"
20057 #endif
20058 char $ac_func ();
20059 /* The GNU C library defines this for functions which it implements
20060     to always fail with ENOSYS.  Some functions are actually named
20061     something starting with __ and the normal name is an alias.  */
20062 #if defined __stub_$ac_func || defined __stub___$ac_func
20063 choke me
20064 #endif
20065
20066 int
20067 main ()
20068 {
20069 return $ac_func ();
20070   ;
20071   return 0;
20072 }
20073 _ACEOF
20074 rm -f conftest.$ac_objext conftest$ac_exeext
20075 if { (ac_try="$ac_link"
20076 case "(($ac_try" in
20077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078   *) ac_try_echo=$ac_try;;
20079 esac
20080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20081   (eval "$ac_link") 2>conftest.er1
20082   ac_status=$?
20083   grep -v '^ *+' conftest.er1 >conftest.err
20084   rm -f conftest.er1
20085   cat conftest.err >&5
20086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); } && {
20088          test -z "$ac_c_werror_flag" ||
20089          test ! -s conftest.err
20090        } && test -s conftest$ac_exeext &&
20091        $as_test_x conftest$ac_exeext; then
20092   eval "$as_ac_var=yes"
20093 else
20094   echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20096
20097         eval "$as_ac_var=no"
20098 fi
20099
20100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20101       conftest$ac_exeext conftest.$ac_ext
20102 fi
20103 ac_res=`eval echo '${'$as_ac_var'}'`
20104                { echo "$as_me:$LINENO: result: $ac_res" >&5
20105 echo "${ECHO_T}$ac_res" >&6; }
20106 if test `eval echo '${'$as_ac_var'}'` = yes; then
20107   cat >>confdefs.h <<_ACEOF
20108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20109 _ACEOF
20110
20111 fi
20112 done
20113
20114 { echo "$as_me:$LINENO: checking for working mmap" >&5
20115 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20116 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20117   echo $ECHO_N "(cached) $ECHO_C" >&6
20118 else
20119   if test "$cross_compiling" = yes; then
20120   ac_cv_func_mmap_fixed_mapped=no
20121 else
20122   cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h.  */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h.  */
20128 $ac_includes_default
20129 /* malloc might have been renamed as rpl_malloc. */
20130 #undef malloc
20131
20132 /* Thanks to Mike Haertel and Jim Avera for this test.
20133    Here is a matrix of mmap possibilities:
20134         mmap private not fixed
20135         mmap private fixed at somewhere currently unmapped
20136         mmap private fixed at somewhere already mapped
20137         mmap shared not fixed
20138         mmap shared fixed at somewhere currently unmapped
20139         mmap shared fixed at somewhere already mapped
20140    For private mappings, we should verify that changes cannot be read()
20141    back from the file, nor mmap's back from the file at a different
20142    address.  (There have been systems where private was not correctly
20143    implemented like the infamous i386 svr4.0, and systems where the
20144    VM page cache was not coherent with the file system buffer cache
20145    like early versions of FreeBSD and possibly contemporary NetBSD.)
20146    For shared mappings, we should conversely verify that changes get
20147    propagated back to all the places they're supposed to be.
20148
20149    Grep wants private fixed already mapped.
20150    The main things grep needs to know about mmap are:
20151    * does it exist and is it safe to write into the mmap'd area
20152    * how to use it (BSD variants)  */
20153
20154 #include <fcntl.h>
20155 #include <sys/mman.h>
20156
20157 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20158 char *malloc ();
20159 #endif
20160
20161 /* This mess was copied from the GNU getpagesize.h.  */
20162 #ifndef HAVE_GETPAGESIZE
20163 /* Assume that all systems that can run configure have sys/param.h.  */
20164 # ifndef HAVE_SYS_PARAM_H
20165 #  define HAVE_SYS_PARAM_H 1
20166 # endif
20167
20168 # ifdef _SC_PAGESIZE
20169 #  define getpagesize() sysconf(_SC_PAGESIZE)
20170 # else /* no _SC_PAGESIZE */
20171 #  ifdef HAVE_SYS_PARAM_H
20172 #   include <sys/param.h>
20173 #   ifdef EXEC_PAGESIZE
20174 #    define getpagesize() EXEC_PAGESIZE
20175 #   else /* no EXEC_PAGESIZE */
20176 #    ifdef NBPG
20177 #     define getpagesize() NBPG * CLSIZE
20178 #     ifndef CLSIZE
20179 #      define CLSIZE 1
20180 #     endif /* no CLSIZE */
20181 #    else /* no NBPG */
20182 #     ifdef NBPC
20183 #      define getpagesize() NBPC
20184 #     else /* no NBPC */
20185 #      ifdef PAGESIZE
20186 #       define getpagesize() PAGESIZE
20187 #      endif /* PAGESIZE */
20188 #     endif /* no NBPC */
20189 #    endif /* no NBPG */
20190 #   endif /* no EXEC_PAGESIZE */
20191 #  else /* no HAVE_SYS_PARAM_H */
20192 #   define getpagesize() 8192   /* punt totally */
20193 #  endif /* no HAVE_SYS_PARAM_H */
20194 # endif /* no _SC_PAGESIZE */
20195
20196 #endif /* no HAVE_GETPAGESIZE */
20197
20198 int
20199 main ()
20200 {
20201   char *data, *data2, *data3;
20202   int i, pagesize;
20203   int fd;
20204
20205   pagesize = getpagesize ();
20206
20207   /* First, make a file with some known garbage in it. */
20208   data = (char *) malloc (pagesize);
20209   if (!data)
20210     return 1;
20211   for (i = 0; i < pagesize; ++i)
20212     *(data + i) = rand ();
20213   umask (0);
20214   fd = creat ("conftest.mmap", 0600);
20215   if (fd < 0)
20216     return 1;
20217   if (write (fd, data, pagesize) != pagesize)
20218     return 1;
20219   close (fd);
20220
20221   /* Next, try to mmap the file at a fixed address which already has
20222      something else allocated at it.  If we can, also make sure that
20223      we see the same garbage.  */
20224   fd = open ("conftest.mmap", O_RDWR);
20225   if (fd < 0)
20226     return 1;
20227   data2 = (char *) malloc (2 * pagesize);
20228   if (!data2)
20229     return 1;
20230   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20231   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20232                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20233     return 1;
20234   for (i = 0; i < pagesize; ++i)
20235     if (*(data + i) != *(data2 + i))
20236       return 1;
20237
20238   /* Finally, make sure that changes to the mapped area do not
20239      percolate back to the file as seen by read().  (This is a bug on
20240      some variants of i386 svr4.0.)  */
20241   for (i = 0; i < pagesize; ++i)
20242     *(data2 + i) = *(data2 + i) + 1;
20243   data3 = (char *) malloc (pagesize);
20244   if (!data3)
20245     return 1;
20246   if (read (fd, data3, pagesize) != pagesize)
20247     return 1;
20248   for (i = 0; i < pagesize; ++i)
20249     if (*(data + i) != *(data3 + i))
20250       return 1;
20251   close (fd);
20252   return 0;
20253 }
20254 _ACEOF
20255 rm -f conftest$ac_exeext
20256 if { (ac_try="$ac_link"
20257 case "(($ac_try" in
20258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259   *) ac_try_echo=$ac_try;;
20260 esac
20261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20262   (eval "$ac_link") 2>&5
20263   ac_status=$?
20264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20266   { (case "(($ac_try" in
20267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268   *) ac_try_echo=$ac_try;;
20269 esac
20270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20271   (eval "$ac_try") 2>&5
20272   ac_status=$?
20273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274   (exit $ac_status); }; }; then
20275   ac_cv_func_mmap_fixed_mapped=yes
20276 else
20277   echo "$as_me: program exited with status $ac_status" >&5
20278 echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20280
20281 ( exit $ac_status )
20282 ac_cv_func_mmap_fixed_mapped=no
20283 fi
20284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20285 fi
20286
20287
20288 fi
20289 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20290 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20291 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20292
20293 cat >>confdefs.h <<\_ACEOF
20294 #define HAVE_MMAP 1
20295 _ACEOF
20296
20297 fi
20298 rm -f conftest.mmap
20299
20300
20301     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20302 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20303 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20304   echo $ECHO_N "(cached) $ECHO_C" >&6
20305 else
20306   cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h.  */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h.  */
20312
20313 #include <features.h>
20314 #ifdef __GNU_LIBRARY__
20315  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20316   Lucky GNU user
20317  #endif
20318 #endif
20319
20320 _ACEOF
20321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20322   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20323   ac_cv_gnu_library_2_1=yes
20324 else
20325   ac_cv_gnu_library_2_1=no
20326 fi
20327 rm -f conftest*
20328
20329
20330
20331 fi
20332 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20333 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20334
20335     GLIBC21="$ac_cv_gnu_library_2_1"
20336
20337
20338
20339
20340   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20341 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20342 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20343   echo $ECHO_N "(cached) $ECHO_C" >&6
20344 else
20345
20346       if test "$cross_compiling" = yes; then
20347
20348           # Guess based on the CPU.
20349           case "$host_cpu" in
20350             alpha* | i3456786 | m68k | s390*)
20351               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20352             *)
20353               gt_cv_int_divbyzero_sigfpe="guessing no";;
20354           esac
20355
20356 else
20357   cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h.  */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h.  */
20363
20364 #include <stdlib.h>
20365 #include <signal.h>
20366
20367 static void
20368 #ifdef __cplusplus
20369 sigfpe_handler (int sig)
20370 #else
20371 sigfpe_handler (sig) int sig;
20372 #endif
20373 {
20374   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20375   exit (sig != SIGFPE);
20376 }
20377
20378 int x = 1;
20379 int y = 0;
20380 int z;
20381 int nan;
20382
20383 int main ()
20384 {
20385   signal (SIGFPE, sigfpe_handler);
20386 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20387 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20388   signal (SIGTRAP, sigfpe_handler);
20389 #endif
20390 /* Linux/SPARC yields signal SIGILL.  */
20391 #if defined (__sparc__) && defined (__linux__)
20392   signal (SIGILL, sigfpe_handler);
20393 #endif
20394
20395   z = x / y;
20396   nan = y / y;
20397   exit (1);
20398 }
20399
20400 _ACEOF
20401 rm -f conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405   *) ac_try_echo=$ac_try;;
20406 esac
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408   (eval "$ac_link") 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20412   { (case "(($ac_try" in
20413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20414   *) ac_try_echo=$ac_try;;
20415 esac
20416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20417   (eval "$ac_try") 2>&5
20418   ac_status=$?
20419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420   (exit $ac_status); }; }; then
20421   gt_cv_int_divbyzero_sigfpe=yes
20422 else
20423   echo "$as_me: program exited with status $ac_status" >&5
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427 ( exit $ac_status )
20428 gt_cv_int_divbyzero_sigfpe=no
20429 fi
20430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20431 fi
20432
20433
20434
20435 fi
20436 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20437 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20438   case "$gt_cv_int_divbyzero_sigfpe" in
20439     *yes) value=1;;
20440     *) value=0;;
20441   esac
20442
20443 cat >>confdefs.h <<_ACEOF
20444 #define INTDIV0_RAISES_SIGFPE $value
20445 _ACEOF
20446
20447
20448
20449   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20450 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20451 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20452   echo $ECHO_N "(cached) $ECHO_C" >&6
20453 else
20454   cat >conftest.$ac_ext <<_ACEOF
20455 /* confdefs.h.  */
20456 _ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h.  */
20460 unsigned long long ull = 1ULL; int i = 63;
20461 int
20462 main ()
20463 {
20464 unsigned long long ullmax = (unsigned long long) -1;
20465      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20466   ;
20467   return 0;
20468 }
20469 _ACEOF
20470 rm -f conftest.$ac_objext conftest$ac_exeext
20471 if { (ac_try="$ac_link"
20472 case "(($ac_try" in
20473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474   *) ac_try_echo=$ac_try;;
20475 esac
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477   (eval "$ac_link") 2>conftest.er1
20478   ac_status=$?
20479   grep -v '^ *+' conftest.er1 >conftest.err
20480   rm -f conftest.er1
20481   cat conftest.err >&5
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); } && {
20484          test -z "$ac_c_werror_flag" ||
20485          test ! -s conftest.err
20486        } && test -s conftest$ac_exeext &&
20487        $as_test_x conftest$ac_exeext; then
20488   ac_cv_type_unsigned_long_long=yes
20489 else
20490   echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20492
20493         ac_cv_type_unsigned_long_long=no
20494 fi
20495
20496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20497       conftest$ac_exeext conftest.$ac_ext
20498 fi
20499 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20500 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20501   if test $ac_cv_type_unsigned_long_long = yes; then
20502
20503 cat >>confdefs.h <<\_ACEOF
20504 #define HAVE_UNSIGNED_LONG_LONG 1
20505 _ACEOF
20506
20507   fi
20508
20509
20510
20511
20512   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20513
20514     test $ac_cv_type_unsigned_long_long = yes \
20515       && ac_type='unsigned long long' \
20516       || ac_type='unsigned long'
20517
20518 cat >>confdefs.h <<_ACEOF
20519 #define uintmax_t $ac_type
20520 _ACEOF
20521
20522   else
20523
20524 cat >>confdefs.h <<\_ACEOF
20525 #define HAVE_UINTMAX_T 1
20526 _ACEOF
20527
20528   fi
20529
20530
20531   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20532 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20533 if test "${gt_cv_header_inttypes_h+set}" = set; then
20534   echo $ECHO_N "(cached) $ECHO_C" >&6
20535 else
20536
20537     cat >conftest.$ac_ext <<_ACEOF
20538 /* confdefs.h.  */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h.  */
20543 #include <sys/types.h>
20544 #include <inttypes.h>
20545 int
20546 main ()
20547 {
20548
20549   ;
20550   return 0;
20551 }
20552 _ACEOF
20553 rm -f conftest.$ac_objext
20554 if { (ac_try="$ac_compile"
20555 case "(($ac_try" in
20556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557   *) ac_try_echo=$ac_try;;
20558 esac
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560   (eval "$ac_compile") 2>conftest.er1
20561   ac_status=$?
20562   grep -v '^ *+' conftest.er1 >conftest.err
20563   rm -f conftest.er1
20564   cat conftest.err >&5
20565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); } && {
20567          test -z "$ac_c_werror_flag" ||
20568          test ! -s conftest.err
20569        } && test -s conftest.$ac_objext; then
20570   gt_cv_header_inttypes_h=yes
20571 else
20572   echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20574
20575         gt_cv_header_inttypes_h=no
20576 fi
20577
20578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20579
20580 fi
20581 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20582 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20583   if test $gt_cv_header_inttypes_h = yes; then
20584
20585 cat >>confdefs.h <<_ACEOF
20586 #define HAVE_INTTYPES_H 1
20587 _ACEOF
20588
20589   fi
20590
20591
20592
20593   if test $gt_cv_header_inttypes_h = yes; then
20594     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20595 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20596 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20597   echo $ECHO_N "(cached) $ECHO_C" >&6
20598 else
20599
20600         cat >conftest.$ac_ext <<_ACEOF
20601 /* confdefs.h.  */
20602 _ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h.  */
20606 #include <inttypes.h>
20607 #ifdef PRId32
20608 char *p = PRId32;
20609 #endif
20610
20611 int
20612 main ()
20613 {
20614
20615   ;
20616   return 0;
20617 }
20618 _ACEOF
20619 rm -f conftest.$ac_objext
20620 if { (ac_try="$ac_compile"
20621 case "(($ac_try" in
20622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623   *) ac_try_echo=$ac_try;;
20624 esac
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626   (eval "$ac_compile") 2>conftest.er1
20627   ac_status=$?
20628   grep -v '^ *+' conftest.er1 >conftest.err
20629   rm -f conftest.er1
20630   cat conftest.err >&5
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); } && {
20633          test -z "$ac_c_werror_flag" ||
20634          test ! -s conftest.err
20635        } && test -s conftest.$ac_objext; then
20636   gt_cv_inttypes_pri_broken=no
20637 else
20638   echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20640
20641         gt_cv_inttypes_pri_broken=yes
20642 fi
20643
20644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20645
20646 fi
20647 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20648 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20649   fi
20650   if test "$gt_cv_inttypes_pri_broken" = yes; then
20651
20652 cat >>confdefs.h <<_ACEOF
20653 #define PRI_MACROS_BROKEN 1
20654 _ACEOF
20655
20656   fi
20657
20658
20659
20660 for ac_header in stdint.h
20661 do
20662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20664   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20667   echo $ECHO_N "(cached) $ECHO_C" >&6
20668 fi
20669 ac_res=`eval echo '${'$as_ac_Header'}'`
20670                { echo "$as_me:$LINENO: result: $ac_res" >&5
20671 echo "${ECHO_T}$ac_res" >&6; }
20672 else
20673   # Is the header compilable?
20674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20676 cat >conftest.$ac_ext <<_ACEOF
20677 /* confdefs.h.  */
20678 _ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h.  */
20682 $ac_includes_default
20683 #include <$ac_header>
20684 _ACEOF
20685 rm -f conftest.$ac_objext
20686 if { (ac_try="$ac_compile"
20687 case "(($ac_try" in
20688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689   *) ac_try_echo=$ac_try;;
20690 esac
20691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692   (eval "$ac_compile") 2>conftest.er1
20693   ac_status=$?
20694   grep -v '^ *+' conftest.er1 >conftest.err
20695   rm -f conftest.er1
20696   cat conftest.err >&5
20697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698   (exit $ac_status); } && {
20699          test -z "$ac_c_werror_flag" ||
20700          test ! -s conftest.err
20701        } && test -s conftest.$ac_objext; then
20702   ac_header_compiler=yes
20703 else
20704   echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20706
20707         ac_header_compiler=no
20708 fi
20709
20710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20712 echo "${ECHO_T}$ac_header_compiler" >&6; }
20713
20714 # Is the header present?
20715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20717 cat >conftest.$ac_ext <<_ACEOF
20718 /* confdefs.h.  */
20719 _ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h.  */
20723 #include <$ac_header>
20724 _ACEOF
20725 if { (ac_try="$ac_cpp conftest.$ac_ext"
20726 case "(($ac_try" in
20727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20728   *) ac_try_echo=$ac_try;;
20729 esac
20730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20732   ac_status=$?
20733   grep -v '^ *+' conftest.er1 >conftest.err
20734   rm -f conftest.er1
20735   cat conftest.err >&5
20736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737   (exit $ac_status); } >/dev/null && {
20738          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20739          test ! -s conftest.err
20740        }; then
20741   ac_header_preproc=yes
20742 else
20743   echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20745
20746   ac_header_preproc=no
20747 fi
20748
20749 rm -f conftest.err conftest.$ac_ext
20750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20751 echo "${ECHO_T}$ac_header_preproc" >&6; }
20752
20753 # So?  What about this header?
20754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20755   yes:no: )
20756     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20760     ac_header_preproc=yes
20761     ;;
20762   no:yes:* )
20763     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20765     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20766 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20767     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20769     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20770 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20773     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20775
20776     ;;
20777 esac
20778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20781   echo $ECHO_N "(cached) $ECHO_C" >&6
20782 else
20783   eval "$as_ac_Header=\$ac_header_preproc"
20784 fi
20785 ac_res=`eval echo '${'$as_ac_Header'}'`
20786                { echo "$as_me:$LINENO: result: $ac_res" >&5
20787 echo "${ECHO_T}$ac_res" >&6; }
20788
20789 fi
20790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20791   cat >>confdefs.h <<_ACEOF
20792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20793 _ACEOF
20794
20795 fi
20796
20797 done
20798
20799     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20800 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20801   result=
20802   cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h.  */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h.  */
20808
20809 #include <limits.h>
20810 #if HAVE_STDINT_H
20811 #include <stdint.h>
20812 #endif
20813 #ifdef SIZE_MAX
20814 Found it
20815 #endif
20816
20817 _ACEOF
20818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20819   $EGREP "Found it" >/dev/null 2>&1; then
20820   result=yes
20821 fi
20822 rm -f conftest*
20823
20824   if test -z "$result"; then
20825                     if test "$cross_compiling" = yes; then
20826   # Depending upon the size, compute the lo and hi bounds.
20827 cat >conftest.$ac_ext <<_ACEOF
20828 /* confdefs.h.  */
20829 _ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h.  */
20833 #include <stddef.h>
20834 int
20835 main ()
20836 {
20837 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20838 test_array [0] = 0
20839
20840   ;
20841   return 0;
20842 }
20843 _ACEOF
20844 rm -f conftest.$ac_objext
20845 if { (ac_try="$ac_compile"
20846 case "(($ac_try" in
20847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848   *) ac_try_echo=$ac_try;;
20849 esac
20850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20851   (eval "$ac_compile") 2>conftest.er1
20852   ac_status=$?
20853   grep -v '^ *+' conftest.er1 >conftest.err
20854   rm -f conftest.er1
20855   cat conftest.err >&5
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); } && {
20858          test -z "$ac_c_werror_flag" ||
20859          test ! -s conftest.err
20860        } && test -s conftest.$ac_objext; then
20861   ac_lo=0 ac_mid=0
20862   while :; do
20863     cat >conftest.$ac_ext <<_ACEOF
20864 /* confdefs.h.  */
20865 _ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h.  */
20869 #include <stddef.h>
20870 int
20871 main ()
20872 {
20873 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20874 test_array [0] = 0
20875
20876   ;
20877   return 0;
20878 }
20879 _ACEOF
20880 rm -f conftest.$ac_objext
20881 if { (ac_try="$ac_compile"
20882 case "(($ac_try" in
20883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884   *) ac_try_echo=$ac_try;;
20885 esac
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887   (eval "$ac_compile") 2>conftest.er1
20888   ac_status=$?
20889   grep -v '^ *+' conftest.er1 >conftest.err
20890   rm -f conftest.er1
20891   cat conftest.err >&5
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); } && {
20894          test -z "$ac_c_werror_flag" ||
20895          test ! -s conftest.err
20896        } && test -s conftest.$ac_objext; then
20897   ac_hi=$ac_mid; break
20898 else
20899   echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20901
20902         ac_lo=`expr $ac_mid + 1`
20903                         if test $ac_lo -le $ac_mid; then
20904                           ac_lo= ac_hi=
20905                           break
20906                         fi
20907                         ac_mid=`expr 2 '*' $ac_mid + 1`
20908 fi
20909
20910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20911   done
20912 else
20913   echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20915
20916         cat >conftest.$ac_ext <<_ACEOF
20917 /* confdefs.h.  */
20918 _ACEOF
20919 cat confdefs.h >>conftest.$ac_ext
20920 cat >>conftest.$ac_ext <<_ACEOF
20921 /* end confdefs.h.  */
20922 #include <stddef.h>
20923 int
20924 main ()
20925 {
20926 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20927 test_array [0] = 0
20928
20929   ;
20930   return 0;
20931 }
20932 _ACEOF
20933 rm -f conftest.$ac_objext
20934 if { (ac_try="$ac_compile"
20935 case "(($ac_try" in
20936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937   *) ac_try_echo=$ac_try;;
20938 esac
20939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940   (eval "$ac_compile") 2>conftest.er1
20941   ac_status=$?
20942   grep -v '^ *+' conftest.er1 >conftest.err
20943   rm -f conftest.er1
20944   cat conftest.err >&5
20945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946   (exit $ac_status); } && {
20947          test -z "$ac_c_werror_flag" ||
20948          test ! -s conftest.err
20949        } && test -s conftest.$ac_objext; then
20950   ac_hi=-1 ac_mid=-1
20951   while :; do
20952     cat >conftest.$ac_ext <<_ACEOF
20953 /* confdefs.h.  */
20954 _ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h.  */
20958 #include <stddef.h>
20959 int
20960 main ()
20961 {
20962 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20963 test_array [0] = 0
20964
20965   ;
20966   return 0;
20967 }
20968 _ACEOF
20969 rm -f conftest.$ac_objext
20970 if { (ac_try="$ac_compile"
20971 case "(($ac_try" in
20972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20973   *) ac_try_echo=$ac_try;;
20974 esac
20975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976   (eval "$ac_compile") 2>conftest.er1
20977   ac_status=$?
20978   grep -v '^ *+' conftest.er1 >conftest.err
20979   rm -f conftest.er1
20980   cat conftest.err >&5
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); } && {
20983          test -z "$ac_c_werror_flag" ||
20984          test ! -s conftest.err
20985        } && test -s conftest.$ac_objext; then
20986   ac_lo=$ac_mid; break
20987 else
20988   echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20990
20991         ac_hi=`expr '(' $ac_mid ')' - 1`
20992                         if test $ac_mid -le $ac_hi; then
20993                           ac_lo= ac_hi=
20994                           break
20995                         fi
20996                         ac_mid=`expr 2 '*' $ac_mid`
20997 fi
20998
20999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21000   done
21001 else
21002   echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21004
21005         ac_lo= ac_hi=
21006 fi
21007
21008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21009 fi
21010
21011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21012 # Binary search between lo and hi bounds.
21013 while test "x$ac_lo" != "x$ac_hi"; do
21014   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21015   cat >conftest.$ac_ext <<_ACEOF
21016 /* confdefs.h.  */
21017 _ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h.  */
21021 #include <stddef.h>
21022 int
21023 main ()
21024 {
21025 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21026 test_array [0] = 0
21027
21028   ;
21029   return 0;
21030 }
21031 _ACEOF
21032 rm -f conftest.$ac_objext
21033 if { (ac_try="$ac_compile"
21034 case "(($ac_try" in
21035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036   *) ac_try_echo=$ac_try;;
21037 esac
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039   (eval "$ac_compile") 2>conftest.er1
21040   ac_status=$?
21041   grep -v '^ *+' conftest.er1 >conftest.err
21042   rm -f conftest.er1
21043   cat conftest.err >&5
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); } && {
21046          test -z "$ac_c_werror_flag" ||
21047          test ! -s conftest.err
21048        } && test -s conftest.$ac_objext; then
21049   ac_hi=$ac_mid
21050 else
21051   echo "$as_me: failed program was:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21053
21054         ac_lo=`expr '(' $ac_mid ')' + 1`
21055 fi
21056
21057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21058 done
21059 case $ac_lo in
21060 ?*) res_hi=$ac_lo;;
21061 '') result=? ;;
21062 esac
21063 else
21064   cat >conftest.$ac_ext <<_ACEOF
21065 /* confdefs.h.  */
21066 _ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
21069 /* end confdefs.h.  */
21070 #include <stddef.h>
21071 static long int longval () { return ~(size_t)0 / 10; }
21072 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21073 #include <stdio.h>
21074 #include <stdlib.h>
21075 int
21076 main ()
21077 {
21078
21079   FILE *f = fopen ("conftest.val", "w");
21080   if (! f)
21081     return 1;
21082   if ((~(size_t)0 / 10) < 0)
21083     {
21084       long int i = longval ();
21085       if (i != (~(size_t)0 / 10))
21086         return 1;
21087       fprintf (f, "%ld\n", i);
21088     }
21089   else
21090     {
21091       unsigned long int i = ulongval ();
21092       if (i != (~(size_t)0 / 10))
21093         return 1;
21094       fprintf (f, "%lu\n", i);
21095     }
21096   return ferror (f) || fclose (f) != 0;
21097
21098   ;
21099   return 0;
21100 }
21101 _ACEOF
21102 rm -f conftest$ac_exeext
21103 if { (ac_try="$ac_link"
21104 case "(($ac_try" in
21105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106   *) ac_try_echo=$ac_try;;
21107 esac
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109   (eval "$ac_link") 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21113   { (case "(($ac_try" in
21114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115   *) ac_try_echo=$ac_try;;
21116 esac
21117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118   (eval "$ac_try") 2>&5
21119   ac_status=$?
21120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121   (exit $ac_status); }; }; then
21122   res_hi=`cat conftest.val`
21123 else
21124   echo "$as_me: program exited with status $ac_status" >&5
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 ( exit $ac_status )
21129 result=?
21130 fi
21131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21132 fi
21133 rm -f conftest.val
21134
21135     if test "$cross_compiling" = yes; then
21136   # Depending upon the size, compute the lo and hi bounds.
21137 cat >conftest.$ac_ext <<_ACEOF
21138 /* confdefs.h.  */
21139 _ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h.  */
21143 #include <stddef.h>
21144 int
21145 main ()
21146 {
21147 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21148 test_array [0] = 0
21149
21150   ;
21151   return 0;
21152 }
21153 _ACEOF
21154 rm -f conftest.$ac_objext
21155 if { (ac_try="$ac_compile"
21156 case "(($ac_try" in
21157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158   *) ac_try_echo=$ac_try;;
21159 esac
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161   (eval "$ac_compile") 2>conftest.er1
21162   ac_status=$?
21163   grep -v '^ *+' conftest.er1 >conftest.err
21164   rm -f conftest.er1
21165   cat conftest.err >&5
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); } && {
21168          test -z "$ac_c_werror_flag" ||
21169          test ! -s conftest.err
21170        } && test -s conftest.$ac_objext; then
21171   ac_lo=0 ac_mid=0
21172   while :; do
21173     cat >conftest.$ac_ext <<_ACEOF
21174 /* confdefs.h.  */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h.  */
21179 #include <stddef.h>
21180 int
21181 main ()
21182 {
21183 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21184 test_array [0] = 0
21185
21186   ;
21187   return 0;
21188 }
21189 _ACEOF
21190 rm -f conftest.$ac_objext
21191 if { (ac_try="$ac_compile"
21192 case "(($ac_try" in
21193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194   *) ac_try_echo=$ac_try;;
21195 esac
21196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197   (eval "$ac_compile") 2>conftest.er1
21198   ac_status=$?
21199   grep -v '^ *+' conftest.er1 >conftest.err
21200   rm -f conftest.er1
21201   cat conftest.err >&5
21202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203   (exit $ac_status); } && {
21204          test -z "$ac_c_werror_flag" ||
21205          test ! -s conftest.err
21206        } && test -s conftest.$ac_objext; then
21207   ac_hi=$ac_mid; break
21208 else
21209   echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21211
21212         ac_lo=`expr $ac_mid + 1`
21213                         if test $ac_lo -le $ac_mid; then
21214                           ac_lo= ac_hi=
21215                           break
21216                         fi
21217                         ac_mid=`expr 2 '*' $ac_mid + 1`
21218 fi
21219
21220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21221   done
21222 else
21223   echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21225
21226         cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h.  */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h.  */
21232 #include <stddef.h>
21233 int
21234 main ()
21235 {
21236 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21237 test_array [0] = 0
21238
21239   ;
21240   return 0;
21241 }
21242 _ACEOF
21243 rm -f conftest.$ac_objext
21244 if { (ac_try="$ac_compile"
21245 case "(($ac_try" in
21246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247   *) ac_try_echo=$ac_try;;
21248 esac
21249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21250   (eval "$ac_compile") 2>conftest.er1
21251   ac_status=$?
21252   grep -v '^ *+' conftest.er1 >conftest.err
21253   rm -f conftest.er1
21254   cat conftest.err >&5
21255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256   (exit $ac_status); } && {
21257          test -z "$ac_c_werror_flag" ||
21258          test ! -s conftest.err
21259        } && test -s conftest.$ac_objext; then
21260   ac_hi=-1 ac_mid=-1
21261   while :; do
21262     cat >conftest.$ac_ext <<_ACEOF
21263 /* confdefs.h.  */
21264 _ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h.  */
21268 #include <stddef.h>
21269 int
21270 main ()
21271 {
21272 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21273 test_array [0] = 0
21274
21275   ;
21276   return 0;
21277 }
21278 _ACEOF
21279 rm -f conftest.$ac_objext
21280 if { (ac_try="$ac_compile"
21281 case "(($ac_try" in
21282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283   *) ac_try_echo=$ac_try;;
21284 esac
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286   (eval "$ac_compile") 2>conftest.er1
21287   ac_status=$?
21288   grep -v '^ *+' conftest.er1 >conftest.err
21289   rm -f conftest.er1
21290   cat conftest.err >&5
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); } && {
21293          test -z "$ac_c_werror_flag" ||
21294          test ! -s conftest.err
21295        } && test -s conftest.$ac_objext; then
21296   ac_lo=$ac_mid; break
21297 else
21298   echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.$ac_ext >&5
21300
21301         ac_hi=`expr '(' $ac_mid ')' - 1`
21302                         if test $ac_mid -le $ac_hi; then
21303                           ac_lo= ac_hi=
21304                           break
21305                         fi
21306                         ac_mid=`expr 2 '*' $ac_mid`
21307 fi
21308
21309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21310   done
21311 else
21312   echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21314
21315         ac_lo= ac_hi=
21316 fi
21317
21318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319 fi
21320
21321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322 # Binary search between lo and hi bounds.
21323 while test "x$ac_lo" != "x$ac_hi"; do
21324   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21325   cat >conftest.$ac_ext <<_ACEOF
21326 /* confdefs.h.  */
21327 _ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h.  */
21331 #include <stddef.h>
21332 int
21333 main ()
21334 {
21335 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21336 test_array [0] = 0
21337
21338   ;
21339   return 0;
21340 }
21341 _ACEOF
21342 rm -f conftest.$ac_objext
21343 if { (ac_try="$ac_compile"
21344 case "(($ac_try" in
21345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21346   *) ac_try_echo=$ac_try;;
21347 esac
21348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21349   (eval "$ac_compile") 2>conftest.er1
21350   ac_status=$?
21351   grep -v '^ *+' conftest.er1 >conftest.err
21352   rm -f conftest.er1
21353   cat conftest.err >&5
21354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355   (exit $ac_status); } && {
21356          test -z "$ac_c_werror_flag" ||
21357          test ! -s conftest.err
21358        } && test -s conftest.$ac_objext; then
21359   ac_hi=$ac_mid
21360 else
21361   echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21363
21364         ac_lo=`expr '(' $ac_mid ')' + 1`
21365 fi
21366
21367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21368 done
21369 case $ac_lo in
21370 ?*) res_lo=$ac_lo;;
21371 '') result=? ;;
21372 esac
21373 else
21374   cat >conftest.$ac_ext <<_ACEOF
21375 /* confdefs.h.  */
21376 _ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h.  */
21380 #include <stddef.h>
21381 static long int longval () { return ~(size_t)0 % 10; }
21382 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21383 #include <stdio.h>
21384 #include <stdlib.h>
21385 int
21386 main ()
21387 {
21388
21389   FILE *f = fopen ("conftest.val", "w");
21390   if (! f)
21391     return 1;
21392   if ((~(size_t)0 % 10) < 0)
21393     {
21394       long int i = longval ();
21395       if (i != (~(size_t)0 % 10))
21396         return 1;
21397       fprintf (f, "%ld\n", i);
21398     }
21399   else
21400     {
21401       unsigned long int i = ulongval ();
21402       if (i != (~(size_t)0 % 10))
21403         return 1;
21404       fprintf (f, "%lu\n", i);
21405     }
21406   return ferror (f) || fclose (f) != 0;
21407
21408   ;
21409   return 0;
21410 }
21411 _ACEOF
21412 rm -f conftest$ac_exeext
21413 if { (ac_try="$ac_link"
21414 case "(($ac_try" in
21415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416   *) ac_try_echo=$ac_try;;
21417 esac
21418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419   (eval "$ac_link") 2>&5
21420   ac_status=$?
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21423   { (case "(($ac_try" in
21424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425   *) ac_try_echo=$ac_try;;
21426 esac
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428   (eval "$ac_try") 2>&5
21429   ac_status=$?
21430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431   (exit $ac_status); }; }; then
21432   res_lo=`cat conftest.val`
21433 else
21434   echo "$as_me: program exited with status $ac_status" >&5
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438 ( exit $ac_status )
21439 result=?
21440 fi
21441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21442 fi
21443 rm -f conftest.val
21444
21445     if test "$cross_compiling" = yes; then
21446   # Depending upon the size, compute the lo and hi bounds.
21447 cat >conftest.$ac_ext <<_ACEOF
21448 /* confdefs.h.  */
21449 _ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h.  */
21453 #include <stddef.h>
21454 int
21455 main ()
21456 {
21457 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21458 test_array [0] = 0
21459
21460   ;
21461   return 0;
21462 }
21463 _ACEOF
21464 rm -f conftest.$ac_objext
21465 if { (ac_try="$ac_compile"
21466 case "(($ac_try" in
21467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468   *) ac_try_echo=$ac_try;;
21469 esac
21470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21471   (eval "$ac_compile") 2>conftest.er1
21472   ac_status=$?
21473   grep -v '^ *+' conftest.er1 >conftest.err
21474   rm -f conftest.er1
21475   cat conftest.err >&5
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); } && {
21478          test -z "$ac_c_werror_flag" ||
21479          test ! -s conftest.err
21480        } && test -s conftest.$ac_objext; then
21481   ac_lo=0 ac_mid=0
21482   while :; do
21483     cat >conftest.$ac_ext <<_ACEOF
21484 /* confdefs.h.  */
21485 _ACEOF
21486 cat confdefs.h >>conftest.$ac_ext
21487 cat >>conftest.$ac_ext <<_ACEOF
21488 /* end confdefs.h.  */
21489 #include <stddef.h>
21490 int
21491 main ()
21492 {
21493 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21494 test_array [0] = 0
21495
21496   ;
21497   return 0;
21498 }
21499 _ACEOF
21500 rm -f conftest.$ac_objext
21501 if { (ac_try="$ac_compile"
21502 case "(($ac_try" in
21503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504   *) ac_try_echo=$ac_try;;
21505 esac
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507   (eval "$ac_compile") 2>conftest.er1
21508   ac_status=$?
21509   grep -v '^ *+' conftest.er1 >conftest.err
21510   rm -f conftest.er1
21511   cat conftest.err >&5
21512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513   (exit $ac_status); } && {
21514          test -z "$ac_c_werror_flag" ||
21515          test ! -s conftest.err
21516        } && test -s conftest.$ac_objext; then
21517   ac_hi=$ac_mid; break
21518 else
21519   echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21521
21522         ac_lo=`expr $ac_mid + 1`
21523                         if test $ac_lo -le $ac_mid; then
21524                           ac_lo= ac_hi=
21525                           break
21526                         fi
21527                         ac_mid=`expr 2 '*' $ac_mid + 1`
21528 fi
21529
21530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21531   done
21532 else
21533   echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21535
21536         cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h.  */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h.  */
21542 #include <stddef.h>
21543 int
21544 main ()
21545 {
21546 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21547 test_array [0] = 0
21548
21549   ;
21550   return 0;
21551 }
21552 _ACEOF
21553 rm -f conftest.$ac_objext
21554 if { (ac_try="$ac_compile"
21555 case "(($ac_try" in
21556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557   *) ac_try_echo=$ac_try;;
21558 esac
21559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21560   (eval "$ac_compile") 2>conftest.er1
21561   ac_status=$?
21562   grep -v '^ *+' conftest.er1 >conftest.err
21563   rm -f conftest.er1
21564   cat conftest.err >&5
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); } && {
21567          test -z "$ac_c_werror_flag" ||
21568          test ! -s conftest.err
21569        } && test -s conftest.$ac_objext; then
21570   ac_hi=-1 ac_mid=-1
21571   while :; do
21572     cat >conftest.$ac_ext <<_ACEOF
21573 /* confdefs.h.  */
21574 _ACEOF
21575 cat confdefs.h >>conftest.$ac_ext
21576 cat >>conftest.$ac_ext <<_ACEOF
21577 /* end confdefs.h.  */
21578 #include <stddef.h>
21579 int
21580 main ()
21581 {
21582 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21583 test_array [0] = 0
21584
21585   ;
21586   return 0;
21587 }
21588 _ACEOF
21589 rm -f conftest.$ac_objext
21590 if { (ac_try="$ac_compile"
21591 case "(($ac_try" in
21592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21593   *) ac_try_echo=$ac_try;;
21594 esac
21595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21596   (eval "$ac_compile") 2>conftest.er1
21597   ac_status=$?
21598   grep -v '^ *+' conftest.er1 >conftest.err
21599   rm -f conftest.er1
21600   cat conftest.err >&5
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); } && {
21603          test -z "$ac_c_werror_flag" ||
21604          test ! -s conftest.err
21605        } && test -s conftest.$ac_objext; then
21606   ac_lo=$ac_mid; break
21607 else
21608   echo "$as_me: failed program was:" >&5
21609 sed 's/^/| /' conftest.$ac_ext >&5
21610
21611         ac_hi=`expr '(' $ac_mid ')' - 1`
21612                         if test $ac_mid -le $ac_hi; then
21613                           ac_lo= ac_hi=
21614                           break
21615                         fi
21616                         ac_mid=`expr 2 '*' $ac_mid`
21617 fi
21618
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21620   done
21621 else
21622   echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21624
21625         ac_lo= ac_hi=
21626 fi
21627
21628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21629 fi
21630
21631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21632 # Binary search between lo and hi bounds.
21633 while test "x$ac_lo" != "x$ac_hi"; do
21634   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21635   cat >conftest.$ac_ext <<_ACEOF
21636 /* confdefs.h.  */
21637 _ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h.  */
21641 #include <stddef.h>
21642 int
21643 main ()
21644 {
21645 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21646 test_array [0] = 0
21647
21648   ;
21649   return 0;
21650 }
21651 _ACEOF
21652 rm -f conftest.$ac_objext
21653 if { (ac_try="$ac_compile"
21654 case "(($ac_try" in
21655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656   *) ac_try_echo=$ac_try;;
21657 esac
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659   (eval "$ac_compile") 2>conftest.er1
21660   ac_status=$?
21661   grep -v '^ *+' conftest.er1 >conftest.err
21662   rm -f conftest.er1
21663   cat conftest.err >&5
21664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665   (exit $ac_status); } && {
21666          test -z "$ac_c_werror_flag" ||
21667          test ! -s conftest.err
21668        } && test -s conftest.$ac_objext; then
21669   ac_hi=$ac_mid
21670 else
21671   echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21673
21674         ac_lo=`expr '(' $ac_mid ')' + 1`
21675 fi
21676
21677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678 done
21679 case $ac_lo in
21680 ?*) fits_in_uint=$ac_lo;;
21681 '') result=? ;;
21682 esac
21683 else
21684   cat >conftest.$ac_ext <<_ACEOF
21685 /* confdefs.h.  */
21686 _ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h.  */
21690 #include <stddef.h>
21691 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21692 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21693 #include <stdio.h>
21694 #include <stdlib.h>
21695 int
21696 main ()
21697 {
21698
21699   FILE *f = fopen ("conftest.val", "w");
21700   if (! f)
21701     return 1;
21702   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21703     {
21704       long int i = longval ();
21705       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21706         return 1;
21707       fprintf (f, "%ld\n", i);
21708     }
21709   else
21710     {
21711       unsigned long int i = ulongval ();
21712       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21713         return 1;
21714       fprintf (f, "%lu\n", i);
21715     }
21716   return ferror (f) || fclose (f) != 0;
21717
21718   ;
21719   return 0;
21720 }
21721 _ACEOF
21722 rm -f conftest$ac_exeext
21723 if { (ac_try="$ac_link"
21724 case "(($ac_try" in
21725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726   *) ac_try_echo=$ac_try;;
21727 esac
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729   (eval "$ac_link") 2>&5
21730   ac_status=$?
21731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21733   { (case "(($ac_try" in
21734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735   *) ac_try_echo=$ac_try;;
21736 esac
21737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738   (eval "$ac_try") 2>&5
21739   ac_status=$?
21740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741   (exit $ac_status); }; }; then
21742   fits_in_uint=`cat conftest.val`
21743 else
21744   echo "$as_me: program exited with status $ac_status" >&5
21745 echo "$as_me: failed program was:" >&5
21746 sed 's/^/| /' conftest.$ac_ext >&5
21747
21748 ( exit $ac_status )
21749 result=?
21750 fi
21751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21752 fi
21753 rm -f conftest.val
21754
21755     if test "$fits_in_uint" = 1; then
21756                   cat >conftest.$ac_ext <<_ACEOF
21757 /* confdefs.h.  */
21758 _ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h.  */
21762 #include <stddef.h>
21763         extern size_t foo;
21764         extern unsigned long foo;
21765
21766 int
21767 main ()
21768 {
21769
21770   ;
21771   return 0;
21772 }
21773 _ACEOF
21774 rm -f conftest.$ac_objext
21775 if { (ac_try="$ac_compile"
21776 case "(($ac_try" in
21777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778   *) ac_try_echo=$ac_try;;
21779 esac
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781   (eval "$ac_compile") 2>conftest.er1
21782   ac_status=$?
21783   grep -v '^ *+' conftest.er1 >conftest.err
21784   rm -f conftest.er1
21785   cat conftest.err >&5
21786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787   (exit $ac_status); } && {
21788          test -z "$ac_c_werror_flag" ||
21789          test ! -s conftest.err
21790        } && test -s conftest.$ac_objext; then
21791   fits_in_uint=0
21792 else
21793   echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21795
21796
21797 fi
21798
21799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21800     fi
21801     if test -z "$result"; then
21802       if test "$fits_in_uint" = 1; then
21803         result="$res_hi$res_lo"U
21804       else
21805         result="$res_hi$res_lo"UL
21806       fi
21807     else
21808             result='~(size_t)0'
21809     fi
21810   fi
21811   { echo "$as_me:$LINENO: result: $result" >&5
21812 echo "${ECHO_T}$result" >&6; }
21813   if test "$result" != yes; then
21814
21815 cat >>confdefs.h <<_ACEOF
21816 #define SIZE_MAX $result
21817 _ACEOF
21818
21819   fi
21820
21821
21822
21823
21824
21825 for ac_header in stdint.h
21826 do
21827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21829   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21832   echo $ECHO_N "(cached) $ECHO_C" >&6
21833 fi
21834 ac_res=`eval echo '${'$as_ac_Header'}'`
21835                { echo "$as_me:$LINENO: result: $ac_res" >&5
21836 echo "${ECHO_T}$ac_res" >&6; }
21837 else
21838   # Is the header compilable?
21839 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21841 cat >conftest.$ac_ext <<_ACEOF
21842 /* confdefs.h.  */
21843 _ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h.  */
21847 $ac_includes_default
21848 #include <$ac_header>
21849 _ACEOF
21850 rm -f conftest.$ac_objext
21851 if { (ac_try="$ac_compile"
21852 case "(($ac_try" in
21853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854   *) ac_try_echo=$ac_try;;
21855 esac
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857   (eval "$ac_compile") 2>conftest.er1
21858   ac_status=$?
21859   grep -v '^ *+' conftest.er1 >conftest.err
21860   rm -f conftest.er1
21861   cat conftest.err >&5
21862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863   (exit $ac_status); } && {
21864          test -z "$ac_c_werror_flag" ||
21865          test ! -s conftest.err
21866        } && test -s conftest.$ac_objext; then
21867   ac_header_compiler=yes
21868 else
21869   echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21871
21872         ac_header_compiler=no
21873 fi
21874
21875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21877 echo "${ECHO_T}$ac_header_compiler" >&6; }
21878
21879 # Is the header present?
21880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21882 cat >conftest.$ac_ext <<_ACEOF
21883 /* confdefs.h.  */
21884 _ACEOF
21885 cat confdefs.h >>conftest.$ac_ext
21886 cat >>conftest.$ac_ext <<_ACEOF
21887 /* end confdefs.h.  */
21888 #include <$ac_header>
21889 _ACEOF
21890 if { (ac_try="$ac_cpp conftest.$ac_ext"
21891 case "(($ac_try" in
21892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893   *) ac_try_echo=$ac_try;;
21894 esac
21895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21897   ac_status=$?
21898   grep -v '^ *+' conftest.er1 >conftest.err
21899   rm -f conftest.er1
21900   cat conftest.err >&5
21901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902   (exit $ac_status); } >/dev/null && {
21903          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21904          test ! -s conftest.err
21905        }; then
21906   ac_header_preproc=yes
21907 else
21908   echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21910
21911   ac_header_preproc=no
21912 fi
21913
21914 rm -f conftest.err conftest.$ac_ext
21915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21916 echo "${ECHO_T}$ac_header_preproc" >&6; }
21917
21918 # So?  What about this header?
21919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21920   yes:no: )
21921     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21925     ac_header_preproc=yes
21926     ;;
21927   no:yes:* )
21928     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21930     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21931 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21932     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21934     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21935 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21938     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21940
21941     ;;
21942 esac
21943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21946   echo $ECHO_N "(cached) $ECHO_C" >&6
21947 else
21948   eval "$as_ac_Header=\$ac_header_preproc"
21949 fi
21950 ac_res=`eval echo '${'$as_ac_Header'}'`
21951                { echo "$as_me:$LINENO: result: $ac_res" >&5
21952 echo "${ECHO_T}$ac_res" >&6; }
21953
21954 fi
21955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21956   cat >>confdefs.h <<_ACEOF
21957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21958 _ACEOF
21959
21960 fi
21961
21962 done
21963
21964
21965
21966
21967
21968
21969
21970
21971   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21972 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21973 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21974   echo $ECHO_N "(cached) $ECHO_C" >&6
21975 else
21976   cat >conftest.$ac_ext <<_ACEOF
21977 /* confdefs.h.  */
21978 _ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h.  */
21982 $ac_includes_default
21983 typedef ptrdiff_t ac__type_new_;
21984 int
21985 main ()
21986 {
21987 if ((ac__type_new_ *) 0)
21988   return 0;
21989 if (sizeof (ac__type_new_))
21990   return 0;
21991   ;
21992   return 0;
21993 }
21994 _ACEOF
21995 rm -f conftest.$ac_objext
21996 if { (ac_try="$ac_compile"
21997 case "(($ac_try" in
21998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999   *) ac_try_echo=$ac_try;;
22000 esac
22001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22002   (eval "$ac_compile") 2>conftest.er1
22003   ac_status=$?
22004   grep -v '^ *+' conftest.er1 >conftest.err
22005   rm -f conftest.er1
22006   cat conftest.err >&5
22007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008   (exit $ac_status); } && {
22009          test -z "$ac_c_werror_flag" ||
22010          test ! -s conftest.err
22011        } && test -s conftest.$ac_objext; then
22012   ac_cv_type_ptrdiff_t=yes
22013 else
22014   echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22016
22017         ac_cv_type_ptrdiff_t=no
22018 fi
22019
22020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22021 fi
22022 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22023 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22024 if test $ac_cv_type_ptrdiff_t = yes; then
22025   :
22026 else
22027
22028 cat >>confdefs.h <<\_ACEOF
22029 #define ptrdiff_t long
22030 _ACEOF
22031
22032
22033 fi
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22046 stdlib.h string.h unistd.h sys/param.h
22047 do
22048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22050   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22053   echo $ECHO_N "(cached) $ECHO_C" >&6
22054 fi
22055 ac_res=`eval echo '${'$as_ac_Header'}'`
22056                { echo "$as_me:$LINENO: result: $ac_res" >&5
22057 echo "${ECHO_T}$ac_res" >&6; }
22058 else
22059   # Is the header compilable?
22060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22062 cat >conftest.$ac_ext <<_ACEOF
22063 /* confdefs.h.  */
22064 _ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h.  */
22068 $ac_includes_default
22069 #include <$ac_header>
22070 _ACEOF
22071 rm -f conftest.$ac_objext
22072 if { (ac_try="$ac_compile"
22073 case "(($ac_try" in
22074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075   *) ac_try_echo=$ac_try;;
22076 esac
22077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22078   (eval "$ac_compile") 2>conftest.er1
22079   ac_status=$?
22080   grep -v '^ *+' conftest.er1 >conftest.err
22081   rm -f conftest.er1
22082   cat conftest.err >&5
22083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084   (exit $ac_status); } && {
22085          test -z "$ac_c_werror_flag" ||
22086          test ! -s conftest.err
22087        } && test -s conftest.$ac_objext; then
22088   ac_header_compiler=yes
22089 else
22090   echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22092
22093         ac_header_compiler=no
22094 fi
22095
22096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22098 echo "${ECHO_T}$ac_header_compiler" >&6; }
22099
22100 # Is the header present?
22101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22103 cat >conftest.$ac_ext <<_ACEOF
22104 /* confdefs.h.  */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h.  */
22109 #include <$ac_header>
22110 _ACEOF
22111 if { (ac_try="$ac_cpp conftest.$ac_ext"
22112 case "(($ac_try" in
22113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114   *) ac_try_echo=$ac_try;;
22115 esac
22116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22117   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22118   ac_status=$?
22119   grep -v '^ *+' conftest.er1 >conftest.err
22120   rm -f conftest.er1
22121   cat conftest.err >&5
22122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123   (exit $ac_status); } >/dev/null && {
22124          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22125          test ! -s conftest.err
22126        }; then
22127   ac_header_preproc=yes
22128 else
22129   echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22131
22132   ac_header_preproc=no
22133 fi
22134
22135 rm -f conftest.err conftest.$ac_ext
22136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22137 echo "${ECHO_T}$ac_header_preproc" >&6; }
22138
22139 # So?  What about this header?
22140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22141   yes:no: )
22142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22146     ac_header_preproc=yes
22147     ;;
22148   no:yes:* )
22149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22151     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22152 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22153     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22155     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22156 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22159     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22161
22162     ;;
22163 esac
22164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22167   echo $ECHO_N "(cached) $ECHO_C" >&6
22168 else
22169   eval "$as_ac_Header=\$ac_header_preproc"
22170 fi
22171 ac_res=`eval echo '${'$as_ac_Header'}'`
22172                { echo "$as_me:$LINENO: result: $ac_res" >&5
22173 echo "${ECHO_T}$ac_res" >&6; }
22174
22175 fi
22176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22177   cat >>confdefs.h <<_ACEOF
22178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22179 _ACEOF
22180
22181 fi
22182
22183 done
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22209 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22210 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22211 __fsetlocking
22212 do
22213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22217   echo $ECHO_N "(cached) $ECHO_C" >&6
22218 else
22219   cat >conftest.$ac_ext <<_ACEOF
22220 /* confdefs.h.  */
22221 _ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h.  */
22225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22227 #define $ac_func innocuous_$ac_func
22228
22229 /* System header to define __stub macros and hopefully few prototypes,
22230     which can conflict with char $ac_func (); below.
22231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22232     <limits.h> exists even on freestanding compilers.  */
22233
22234 #ifdef __STDC__
22235 # include <limits.h>
22236 #else
22237 # include <assert.h>
22238 #endif
22239
22240 #undef $ac_func
22241
22242 /* Override any GCC internal prototype to avoid an error.
22243    Use char because int might match the return type of a GCC
22244    builtin and then its argument prototype would still apply.  */
22245 #ifdef __cplusplus
22246 extern "C"
22247 #endif
22248 char $ac_func ();
22249 /* The GNU C library defines this for functions which it implements
22250     to always fail with ENOSYS.  Some functions are actually named
22251     something starting with __ and the normal name is an alias.  */
22252 #if defined __stub_$ac_func || defined __stub___$ac_func
22253 choke me
22254 #endif
22255
22256 int
22257 main ()
22258 {
22259 return $ac_func ();
22260   ;
22261   return 0;
22262 }
22263 _ACEOF
22264 rm -f conftest.$ac_objext conftest$ac_exeext
22265 if { (ac_try="$ac_link"
22266 case "(($ac_try" in
22267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268   *) ac_try_echo=$ac_try;;
22269 esac
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271   (eval "$ac_link") 2>conftest.er1
22272   ac_status=$?
22273   grep -v '^ *+' conftest.er1 >conftest.err
22274   rm -f conftest.er1
22275   cat conftest.err >&5
22276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277   (exit $ac_status); } && {
22278          test -z "$ac_c_werror_flag" ||
22279          test ! -s conftest.err
22280        } && test -s conftest$ac_exeext &&
22281        $as_test_x conftest$ac_exeext; then
22282   eval "$as_ac_var=yes"
22283 else
22284   echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22286
22287         eval "$as_ac_var=no"
22288 fi
22289
22290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22291       conftest$ac_exeext conftest.$ac_ext
22292 fi
22293 ac_res=`eval echo '${'$as_ac_var'}'`
22294                { echo "$as_me:$LINENO: result: $ac_res" >&5
22295 echo "${ECHO_T}$ac_res" >&6; }
22296 if test `eval echo '${'$as_ac_var'}'` = yes; then
22297   cat >>confdefs.h <<_ACEOF
22298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22299 _ACEOF
22300
22301 fi
22302 done
22303
22304
22305
22306   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22307 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22308 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22309   echo $ECHO_N "(cached) $ECHO_C" >&6
22310 else
22311   cat >conftest.$ac_ext <<_ACEOF
22312 /* confdefs.h.  */
22313 _ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h.  */
22317 #include <stdio.h>
22318 int
22319 main ()
22320 {
22321
22322 #ifndef _snprintf
22323   char *p = (char *) _snprintf;
22324 #endif
22325
22326   ;
22327   return 0;
22328 }
22329 _ACEOF
22330 rm -f conftest.$ac_objext
22331 if { (ac_try="$ac_compile"
22332 case "(($ac_try" in
22333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334   *) ac_try_echo=$ac_try;;
22335 esac
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337   (eval "$ac_compile") 2>conftest.er1
22338   ac_status=$?
22339   grep -v '^ *+' conftest.er1 >conftest.err
22340   rm -f conftest.er1
22341   cat conftest.err >&5
22342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343   (exit $ac_status); } && {
22344          test -z "$ac_c_werror_flag" ||
22345          test ! -s conftest.err
22346        } && test -s conftest.$ac_objext; then
22347   ac_cv_have_decl__snprintf=yes
22348 else
22349   echo "$as_me: failed program was:" >&5
22350 sed 's/^/| /' conftest.$ac_ext >&5
22351
22352         ac_cv_have_decl__snprintf=no
22353 fi
22354
22355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22356 fi
22357 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22358 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22359   if test $ac_cv_have_decl__snprintf = yes; then
22360     gt_value=1
22361   else
22362     gt_value=0
22363   fi
22364
22365 cat >>confdefs.h <<_ACEOF
22366 #define HAVE_DECL__SNPRINTF $gt_value
22367 _ACEOF
22368
22369
22370
22371   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22372 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22373 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22374   echo $ECHO_N "(cached) $ECHO_C" >&6
22375 else
22376   cat >conftest.$ac_ext <<_ACEOF
22377 /* confdefs.h.  */
22378 _ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h.  */
22382 #include <stdio.h>
22383 int
22384 main ()
22385 {
22386
22387 #ifndef _snwprintf
22388   char *p = (char *) _snwprintf;
22389 #endif
22390
22391   ;
22392   return 0;
22393 }
22394 _ACEOF
22395 rm -f conftest.$ac_objext
22396 if { (ac_try="$ac_compile"
22397 case "(($ac_try" in
22398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399   *) ac_try_echo=$ac_try;;
22400 esac
22401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22402   (eval "$ac_compile") 2>conftest.er1
22403   ac_status=$?
22404   grep -v '^ *+' conftest.er1 >conftest.err
22405   rm -f conftest.er1
22406   cat conftest.err >&5
22407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408   (exit $ac_status); } && {
22409          test -z "$ac_c_werror_flag" ||
22410          test ! -s conftest.err
22411        } && test -s conftest.$ac_objext; then
22412   ac_cv_have_decl__snwprintf=yes
22413 else
22414   echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.$ac_ext >&5
22416
22417         ac_cv_have_decl__snwprintf=no
22418 fi
22419
22420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22421 fi
22422 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22423 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22424   if test $ac_cv_have_decl__snwprintf = yes; then
22425     gt_value=1
22426   else
22427     gt_value=0
22428   fi
22429
22430 cat >>confdefs.h <<_ACEOF
22431 #define HAVE_DECL__SNWPRINTF $gt_value
22432 _ACEOF
22433
22434
22435
22436
22437   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22438 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22439 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22440   echo $ECHO_N "(cached) $ECHO_C" >&6
22441 else
22442   cat >conftest.$ac_ext <<_ACEOF
22443 /* confdefs.h.  */
22444 _ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h.  */
22448 #include <stdio.h>
22449 int
22450 main ()
22451 {
22452
22453 #ifndef feof_unlocked
22454   char *p = (char *) feof_unlocked;
22455 #endif
22456
22457   ;
22458   return 0;
22459 }
22460 _ACEOF
22461 rm -f conftest.$ac_objext
22462 if { (ac_try="$ac_compile"
22463 case "(($ac_try" in
22464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22465   *) ac_try_echo=$ac_try;;
22466 esac
22467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22468   (eval "$ac_compile") 2>conftest.er1
22469   ac_status=$?
22470   grep -v '^ *+' conftest.er1 >conftest.err
22471   rm -f conftest.er1
22472   cat conftest.err >&5
22473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); } && {
22475          test -z "$ac_c_werror_flag" ||
22476          test ! -s conftest.err
22477        } && test -s conftest.$ac_objext; then
22478   ac_cv_have_decl_feof_unlocked=yes
22479 else
22480   echo "$as_me: failed program was:" >&5
22481 sed 's/^/| /' conftest.$ac_ext >&5
22482
22483         ac_cv_have_decl_feof_unlocked=no
22484 fi
22485
22486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22487 fi
22488 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22489 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22490   if test $ac_cv_have_decl_feof_unlocked = yes; then
22491     gt_value=1
22492   else
22493     gt_value=0
22494   fi
22495
22496 cat >>confdefs.h <<_ACEOF
22497 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22498 _ACEOF
22499
22500
22501
22502   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22503 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22504 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22505   echo $ECHO_N "(cached) $ECHO_C" >&6
22506 else
22507   cat >conftest.$ac_ext <<_ACEOF
22508 /* confdefs.h.  */
22509 _ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h.  */
22513 #include <stdio.h>
22514 int
22515 main ()
22516 {
22517
22518 #ifndef fgets_unlocked
22519   char *p = (char *) fgets_unlocked;
22520 #endif
22521
22522   ;
22523   return 0;
22524 }
22525 _ACEOF
22526 rm -f conftest.$ac_objext
22527 if { (ac_try="$ac_compile"
22528 case "(($ac_try" in
22529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530   *) ac_try_echo=$ac_try;;
22531 esac
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533   (eval "$ac_compile") 2>conftest.er1
22534   ac_status=$?
22535   grep -v '^ *+' conftest.er1 >conftest.err
22536   rm -f conftest.er1
22537   cat conftest.err >&5
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); } && {
22540          test -z "$ac_c_werror_flag" ||
22541          test ! -s conftest.err
22542        } && test -s conftest.$ac_objext; then
22543   ac_cv_have_decl_fgets_unlocked=yes
22544 else
22545   echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548         ac_cv_have_decl_fgets_unlocked=no
22549 fi
22550
22551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22552 fi
22553 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22554 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22555   if test $ac_cv_have_decl_fgets_unlocked = yes; then
22556     gt_value=1
22557   else
22558     gt_value=0
22559   fi
22560
22561 cat >>confdefs.h <<_ACEOF
22562 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22563 _ACEOF
22564
22565
22566
22567   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22568 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22569 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22570   echo $ECHO_N "(cached) $ECHO_C" >&6
22571 else
22572   cat >conftest.$ac_ext <<_ACEOF
22573 /* confdefs.h.  */
22574 _ACEOF
22575 cat confdefs.h >>conftest.$ac_ext
22576 cat >>conftest.$ac_ext <<_ACEOF
22577 /* end confdefs.h.  */
22578 #include <stdio.h>
22579 int
22580 main ()
22581 {
22582
22583 #ifndef getc_unlocked
22584   char *p = (char *) getc_unlocked;
22585 #endif
22586
22587   ;
22588   return 0;
22589 }
22590 _ACEOF
22591 rm -f conftest.$ac_objext
22592 if { (ac_try="$ac_compile"
22593 case "(($ac_try" in
22594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595   *) ac_try_echo=$ac_try;;
22596 esac
22597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22598   (eval "$ac_compile") 2>conftest.er1
22599   ac_status=$?
22600   grep -v '^ *+' conftest.er1 >conftest.err
22601   rm -f conftest.er1
22602   cat conftest.err >&5
22603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604   (exit $ac_status); } && {
22605          test -z "$ac_c_werror_flag" ||
22606          test ! -s conftest.err
22607        } && test -s conftest.$ac_objext; then
22608   ac_cv_have_decl_getc_unlocked=yes
22609 else
22610   echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22612
22613         ac_cv_have_decl_getc_unlocked=no
22614 fi
22615
22616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22617 fi
22618 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22619 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22620   if test $ac_cv_have_decl_getc_unlocked = yes; then
22621     gt_value=1
22622   else
22623     gt_value=0
22624   fi
22625
22626 cat >>confdefs.h <<_ACEOF
22627 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22628 _ACEOF
22629
22630
22631
22632   case $gt_cv_func_printf_posix in
22633     *yes) HAVE_POSIX_PRINTF=1 ;;
22634     *) HAVE_POSIX_PRINTF=0 ;;
22635   esac
22636
22637   if test "$ac_cv_func_asprintf" = yes; then
22638     HAVE_ASPRINTF=1
22639   else
22640     HAVE_ASPRINTF=0
22641   fi
22642
22643   if test "$ac_cv_func_snprintf" = yes; then
22644     HAVE_SNPRINTF=1
22645   else
22646     HAVE_SNPRINTF=0
22647   fi
22648
22649   if test "$ac_cv_func_wprintf" = yes; then
22650     HAVE_WPRINTF=1
22651   else
22652     HAVE_WPRINTF=0
22653   fi
22654
22655
22656
22657
22658
22659
22660
22661           am_save_CPPFLAGS="$CPPFLAGS"
22662
22663   for element in $INCICONV; do
22664     haveit=
22665     for x in $CPPFLAGS; do
22666
22667   acl_save_prefix="$prefix"
22668   prefix="$acl_final_prefix"
22669   acl_save_exec_prefix="$exec_prefix"
22670   exec_prefix="$acl_final_exec_prefix"
22671   eval x=\"$x\"
22672   exec_prefix="$acl_save_exec_prefix"
22673   prefix="$acl_save_prefix"
22674
22675       if test "X$x" = "X$element"; then
22676         haveit=yes
22677         break
22678       fi
22679     done
22680     if test -z "$haveit"; then
22681       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22682     fi
22683   done
22684
22685
22686   { echo "$as_me:$LINENO: checking for iconv" >&5
22687 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22688 if test "${am_cv_func_iconv+set}" = set; then
22689   echo $ECHO_N "(cached) $ECHO_C" >&6
22690 else
22691
22692     am_cv_func_iconv="no, consider installing GNU libiconv"
22693     am_cv_lib_iconv=no
22694     cat >conftest.$ac_ext <<_ACEOF
22695 /* confdefs.h.  */
22696 _ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h.  */
22700 #include <stdlib.h>
22701 #include <iconv.h>
22702 int
22703 main ()
22704 {
22705 iconv_t cd = iconv_open("","");
22706        iconv(cd,NULL,NULL,NULL,NULL);
22707        iconv_close(cd);
22708   ;
22709   return 0;
22710 }
22711 _ACEOF
22712 rm -f conftest.$ac_objext conftest$ac_exeext
22713 if { (ac_try="$ac_link"
22714 case "(($ac_try" in
22715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716   *) ac_try_echo=$ac_try;;
22717 esac
22718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22719   (eval "$ac_link") 2>conftest.er1
22720   ac_status=$?
22721   grep -v '^ *+' conftest.er1 >conftest.err
22722   rm -f conftest.er1
22723   cat conftest.err >&5
22724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725   (exit $ac_status); } && {
22726          test -z "$ac_c_werror_flag" ||
22727          test ! -s conftest.err
22728        } && test -s conftest$ac_exeext &&
22729        $as_test_x conftest$ac_exeext; then
22730   am_cv_func_iconv=yes
22731 else
22732   echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22734
22735
22736 fi
22737
22738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22739       conftest$ac_exeext conftest.$ac_ext
22740     if test "$am_cv_func_iconv" != yes; then
22741       am_save_LIBS="$LIBS"
22742       LIBS="$LIBS $LIBICONV"
22743       cat >conftest.$ac_ext <<_ACEOF
22744 /* confdefs.h.  */
22745 _ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h.  */
22749 #include <stdlib.h>
22750 #include <iconv.h>
22751 int
22752 main ()
22753 {
22754 iconv_t cd = iconv_open("","");
22755          iconv(cd,NULL,NULL,NULL,NULL);
22756          iconv_close(cd);
22757   ;
22758   return 0;
22759 }
22760 _ACEOF
22761 rm -f conftest.$ac_objext conftest$ac_exeext
22762 if { (ac_try="$ac_link"
22763 case "(($ac_try" in
22764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22765   *) ac_try_echo=$ac_try;;
22766 esac
22767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22768   (eval "$ac_link") 2>conftest.er1
22769   ac_status=$?
22770   grep -v '^ *+' conftest.er1 >conftest.err
22771   rm -f conftest.er1
22772   cat conftest.err >&5
22773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774   (exit $ac_status); } && {
22775          test -z "$ac_c_werror_flag" ||
22776          test ! -s conftest.err
22777        } && test -s conftest$ac_exeext &&
22778        $as_test_x conftest$ac_exeext; then
22779   am_cv_lib_iconv=yes
22780         am_cv_func_iconv=yes
22781 else
22782   echo "$as_me: failed program was:" >&5
22783 sed 's/^/| /' conftest.$ac_ext >&5
22784
22785
22786 fi
22787
22788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22789       conftest$ac_exeext conftest.$ac_ext
22790       LIBS="$am_save_LIBS"
22791     fi
22792
22793 fi
22794 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22795 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22796   if test "$am_cv_func_iconv" = yes; then
22797
22798 cat >>confdefs.h <<\_ACEOF
22799 #define HAVE_ICONV 1
22800 _ACEOF
22801
22802   fi
22803   if test "$am_cv_lib_iconv" = yes; then
22804     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22805 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22806     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22807 echo "${ECHO_T}$LIBICONV" >&6; }
22808   else
22809             CPPFLAGS="$am_save_CPPFLAGS"
22810     LIBICONV=
22811     LTLIBICONV=
22812   fi
22813
22814
22815
22816   if test "$am_cv_func_iconv" = yes; then
22817     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22818 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22819     if test "${am_cv_proto_iconv+set}" = set; then
22820   echo $ECHO_N "(cached) $ECHO_C" >&6
22821 else
22822
22823       cat >conftest.$ac_ext <<_ACEOF
22824 /* confdefs.h.  */
22825 _ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h.  */
22829
22830 #include <stdlib.h>
22831 #include <iconv.h>
22832 extern
22833 #ifdef __cplusplus
22834 "C"
22835 #endif
22836 #if defined(__STDC__) || defined(__cplusplus)
22837 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22838 #else
22839 size_t iconv();
22840 #endif
22841
22842 int
22843 main ()
22844 {
22845
22846   ;
22847   return 0;
22848 }
22849 _ACEOF
22850 rm -f conftest.$ac_objext
22851 if { (ac_try="$ac_compile"
22852 case "(($ac_try" in
22853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854   *) ac_try_echo=$ac_try;;
22855 esac
22856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22857   (eval "$ac_compile") 2>conftest.er1
22858   ac_status=$?
22859   grep -v '^ *+' conftest.er1 >conftest.err
22860   rm -f conftest.er1
22861   cat conftest.err >&5
22862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863   (exit $ac_status); } && {
22864          test -z "$ac_c_werror_flag" ||
22865          test ! -s conftest.err
22866        } && test -s conftest.$ac_objext; then
22867   am_cv_proto_iconv_arg1=""
22868 else
22869   echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22871
22872         am_cv_proto_iconv_arg1="const"
22873 fi
22874
22875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22876       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);"
22877 fi
22878
22879     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22880     { echo "$as_me:$LINENO: result: ${ac_t:-
22881          }$am_cv_proto_iconv" >&5
22882 echo "${ECHO_T}${ac_t:-
22883          }$am_cv_proto_iconv" >&6; }
22884
22885 cat >>confdefs.h <<_ACEOF
22886 #define ICONV_CONST $am_cv_proto_iconv_arg1
22887 _ACEOF
22888
22889   fi
22890
22891
22892   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22893 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22894 if test "${am_cv_langinfo_codeset+set}" = set; then
22895   echo $ECHO_N "(cached) $ECHO_C" >&6
22896 else
22897   cat >conftest.$ac_ext <<_ACEOF
22898 /* confdefs.h.  */
22899 _ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h.  */
22903 #include <langinfo.h>
22904 int
22905 main ()
22906 {
22907 char* cs = nl_langinfo(CODESET);
22908   ;
22909   return 0;
22910 }
22911 _ACEOF
22912 rm -f conftest.$ac_objext conftest$ac_exeext
22913 if { (ac_try="$ac_link"
22914 case "(($ac_try" in
22915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916   *) ac_try_echo=$ac_try;;
22917 esac
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919   (eval "$ac_link") 2>conftest.er1
22920   ac_status=$?
22921   grep -v '^ *+' conftest.er1 >conftest.err
22922   rm -f conftest.er1
22923   cat conftest.err >&5
22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925   (exit $ac_status); } && {
22926          test -z "$ac_c_werror_flag" ||
22927          test ! -s conftest.err
22928        } && test -s conftest$ac_exeext &&
22929        $as_test_x conftest$ac_exeext; then
22930   am_cv_langinfo_codeset=yes
22931 else
22932   echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22934
22935         am_cv_langinfo_codeset=no
22936 fi
22937
22938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22939       conftest$ac_exeext conftest.$ac_ext
22940
22941 fi
22942 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22943 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22944   if test $am_cv_langinfo_codeset = yes; then
22945
22946 cat >>confdefs.h <<\_ACEOF
22947 #define HAVE_LANGINFO_CODESET 1
22948 _ACEOF
22949
22950   fi
22951
22952   if test $ac_cv_header_locale_h = yes; then
22953
22954   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22955 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22956 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22957   echo $ECHO_N "(cached) $ECHO_C" >&6
22958 else
22959   cat >conftest.$ac_ext <<_ACEOF
22960 /* confdefs.h.  */
22961 _ACEOF
22962 cat confdefs.h >>conftest.$ac_ext
22963 cat >>conftest.$ac_ext <<_ACEOF
22964 /* end confdefs.h.  */
22965 #include <locale.h>
22966 int
22967 main ()
22968 {
22969 return LC_MESSAGES
22970   ;
22971   return 0;
22972 }
22973 _ACEOF
22974 rm -f conftest.$ac_objext conftest$ac_exeext
22975 if { (ac_try="$ac_link"
22976 case "(($ac_try" in
22977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22978   *) ac_try_echo=$ac_try;;
22979 esac
22980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22981   (eval "$ac_link") 2>conftest.er1
22982   ac_status=$?
22983   grep -v '^ *+' conftest.er1 >conftest.err
22984   rm -f conftest.er1
22985   cat conftest.err >&5
22986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987   (exit $ac_status); } && {
22988          test -z "$ac_c_werror_flag" ||
22989          test ! -s conftest.err
22990        } && test -s conftest$ac_exeext &&
22991        $as_test_x conftest$ac_exeext; then
22992   gt_cv_val_LC_MESSAGES=yes
22993 else
22994   echo "$as_me: failed program was:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22996
22997         gt_cv_val_LC_MESSAGES=no
22998 fi
22999
23000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23001       conftest$ac_exeext conftest.$ac_ext
23002 fi
23003 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23004 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23005   if test $gt_cv_val_LC_MESSAGES = yes; then
23006
23007 cat >>confdefs.h <<\_ACEOF
23008 #define HAVE_LC_MESSAGES 1
23009 _ACEOF
23010
23011   fi
23012
23013   fi
23014
23015   if test -n "$INTL_MACOSX_LIBS"; then
23016     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23017   fi
23018
23019                       for ac_prog in bison
23020 do
23021   # Extract the first word of "$ac_prog", so it can be a program name with args.
23022 set dummy $ac_prog; ac_word=$2
23023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23025 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23026   echo $ECHO_N "(cached) $ECHO_C" >&6
23027 else
23028   if test -n "$INTLBISON"; then
23029   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23030 else
23031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23032 for as_dir in $PATH
23033 do
23034   IFS=$as_save_IFS
23035   test -z "$as_dir" && as_dir=.
23036   for ac_exec_ext in '' $ac_executable_extensions; do
23037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23038     ac_cv_prog_INTLBISON="$ac_prog"
23039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23040     break 2
23041   fi
23042 done
23043 done
23044 IFS=$as_save_IFS
23045
23046 fi
23047 fi
23048 INTLBISON=$ac_cv_prog_INTLBISON
23049 if test -n "$INTLBISON"; then
23050   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23051 echo "${ECHO_T}$INTLBISON" >&6; }
23052 else
23053   { echo "$as_me:$LINENO: result: no" >&5
23054 echo "${ECHO_T}no" >&6; }
23055 fi
23056
23057
23058   test -n "$INTLBISON" && break
23059 done
23060
23061   if test -z "$INTLBISON"; then
23062     ac_verc_fail=yes
23063   else
23064         { echo "$as_me:$LINENO: checking version of bison" >&5
23065 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23066     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23067     case $ac_prog_version in
23068       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23069       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23070          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23071       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23072     esac
23073     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23074 echo "${ECHO_T}$ac_prog_version" >&6; }
23075   fi
23076   if test $ac_verc_fail = yes; then
23077     INTLBISON=:
23078   fi
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23096 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23097 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23098   echo $ECHO_N "(cached) $ECHO_C" >&6
23099 else
23100   gt_save_CPPFLAGS="$CPPFLAGS"
23101      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23102      gt_save_LIBS="$LIBS"
23103      LIBS="$LIBS -framework CoreFoundation"
23104      cat >conftest.$ac_ext <<_ACEOF
23105 /* confdefs.h.  */
23106 _ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h.  */
23110 #include <CFPreferences.h>
23111 int
23112 main ()
23113 {
23114 CFPreferencesCopyAppValue(NULL, NULL)
23115   ;
23116   return 0;
23117 }
23118 _ACEOF
23119 rm -f conftest.$ac_objext conftest$ac_exeext
23120 if { (ac_try="$ac_link"
23121 case "(($ac_try" in
23122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123   *) ac_try_echo=$ac_try;;
23124 esac
23125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23126   (eval "$ac_link") 2>conftest.er1
23127   ac_status=$?
23128   grep -v '^ *+' conftest.er1 >conftest.err
23129   rm -f conftest.er1
23130   cat conftest.err >&5
23131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132   (exit $ac_status); } && {
23133          test -z "$ac_c_werror_flag" ||
23134          test ! -s conftest.err
23135        } && test -s conftest$ac_exeext &&
23136        $as_test_x conftest$ac_exeext; then
23137   gt_cv_func_CFPreferencesCopyAppValue=yes
23138 else
23139   echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23141
23142         gt_cv_func_CFPreferencesCopyAppValue=no
23143 fi
23144
23145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23146       conftest$ac_exeext conftest.$ac_ext
23147      CPPFLAGS="$gt_save_CPPFLAGS"
23148      LIBS="$gt_save_LIBS"
23149 fi
23150 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23151 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23152   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23153
23154 cat >>confdefs.h <<\_ACEOF
23155 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23156 _ACEOF
23157
23158   fi
23159     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23160 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23161 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23162   echo $ECHO_N "(cached) $ECHO_C" >&6
23163 else
23164   gt_save_CPPFLAGS="$CPPFLAGS"
23165      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23166      gt_save_LIBS="$LIBS"
23167      LIBS="$LIBS -framework CoreFoundation"
23168      cat >conftest.$ac_ext <<_ACEOF
23169 /* confdefs.h.  */
23170 _ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h.  */
23174 #include <CFLocale.h>
23175 int
23176 main ()
23177 {
23178 CFLocaleCopyCurrent();
23179   ;
23180   return 0;
23181 }
23182 _ACEOF
23183 rm -f conftest.$ac_objext conftest$ac_exeext
23184 if { (ac_try="$ac_link"
23185 case "(($ac_try" in
23186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23187   *) ac_try_echo=$ac_try;;
23188 esac
23189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23190   (eval "$ac_link") 2>conftest.er1
23191   ac_status=$?
23192   grep -v '^ *+' conftest.er1 >conftest.err
23193   rm -f conftest.er1
23194   cat conftest.err >&5
23195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196   (exit $ac_status); } && {
23197          test -z "$ac_c_werror_flag" ||
23198          test ! -s conftest.err
23199        } && test -s conftest$ac_exeext &&
23200        $as_test_x conftest$ac_exeext; then
23201   gt_cv_func_CFLocaleCopyCurrent=yes
23202 else
23203   echo "$as_me: failed program was:" >&5
23204 sed 's/^/| /' conftest.$ac_ext >&5
23205
23206         gt_cv_func_CFLocaleCopyCurrent=no
23207 fi
23208
23209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23210       conftest$ac_exeext conftest.$ac_ext
23211      CPPFLAGS="$gt_save_CPPFLAGS"
23212      LIBS="$gt_save_LIBS"
23213 fi
23214 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23215 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23216   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23217
23218 cat >>confdefs.h <<\_ACEOF
23219 #define HAVE_CFLOCALECOPYCURRENT 1
23220 _ACEOF
23221
23222   fi
23223   INTL_MACOSX_LIBS=
23224   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23225     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23226   fi
23227
23228
23229
23230
23231   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23232 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23233     # Check whether --enable-nls was given.
23234 if test "${enable_nls+set}" = set; then
23235   enableval=$enable_nls; USE_NLS=$enableval
23236 else
23237   USE_NLS=yes
23238 fi
23239
23240   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23241 echo "${ECHO_T}$USE_NLS" >&6; }
23242
23243
23244
23245
23246     BUILD_INCLUDED_LIBINTL=no
23247     USE_INCLUDED_LIBINTL=no
23248
23249   LIBINTL=
23250   LTLIBINTL=
23251   POSUB=
23252
23253     if test "$USE_NLS" = "yes"; then
23254     gt_use_preinstalled_gnugettext=no
23255
23256       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23257 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23258
23259 # Check whether --with-included-gettext was given.
23260 if test "${with_included_gettext+set}" = set; then
23261   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23262 else
23263   nls_cv_force_use_gnu_gettext=no
23264 fi
23265
23266       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23267 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23268
23269       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23270       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23271
23272
23273
23274
23275
23276
23277         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23278 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23279 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23280   echo $ECHO_N "(cached) $ECHO_C" >&6
23281 else
23282   cat >conftest.$ac_ext <<_ACEOF
23283 /* confdefs.h.  */
23284 _ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h.  */
23288 #include <libintl.h>
23289 extern int _nl_msg_cat_cntr;
23290 extern int *_nl_domain_bindings;
23291 int
23292 main ()
23293 {
23294 bindtextdomain ("", "");
23295 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23296   ;
23297   return 0;
23298 }
23299 _ACEOF
23300 rm -f conftest.$ac_objext conftest$ac_exeext
23301 if { (ac_try="$ac_link"
23302 case "(($ac_try" in
23303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23304   *) ac_try_echo=$ac_try;;
23305 esac
23306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23307   (eval "$ac_link") 2>conftest.er1
23308   ac_status=$?
23309   grep -v '^ *+' conftest.er1 >conftest.err
23310   rm -f conftest.er1
23311   cat conftest.err >&5
23312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313   (exit $ac_status); } && {
23314          test -z "$ac_c_werror_flag" ||
23315          test ! -s conftest.err
23316        } && test -s conftest$ac_exeext &&
23317        $as_test_x conftest$ac_exeext; then
23318   gt_cv_func_gnugettext1_libc=yes
23319 else
23320   echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23322
23323         gt_cv_func_gnugettext1_libc=no
23324 fi
23325
23326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23327       conftest$ac_exeext conftest.$ac_ext
23328 fi
23329 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23330 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23331
23332         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23333
23334
23335
23336     use_additional=yes
23337
23338   acl_save_prefix="$prefix"
23339   prefix="$acl_final_prefix"
23340   acl_save_exec_prefix="$exec_prefix"
23341   exec_prefix="$acl_final_exec_prefix"
23342
23343     eval additional_includedir=\"$includedir\"
23344     eval additional_libdir=\"$libdir\"
23345
23346   exec_prefix="$acl_save_exec_prefix"
23347   prefix="$acl_save_prefix"
23348
23349
23350 # Check whether --with-libintl-prefix was given.
23351 if test "${with_libintl_prefix+set}" = set; then
23352   withval=$with_libintl_prefix;
23353     if test "X$withval" = "Xno"; then
23354       use_additional=no
23355     else
23356       if test "X$withval" = "X"; then
23357
23358   acl_save_prefix="$prefix"
23359   prefix="$acl_final_prefix"
23360   acl_save_exec_prefix="$exec_prefix"
23361   exec_prefix="$acl_final_exec_prefix"
23362
23363           eval additional_includedir=\"$includedir\"
23364           eval additional_libdir=\"$libdir\"
23365
23366   exec_prefix="$acl_save_exec_prefix"
23367   prefix="$acl_save_prefix"
23368
23369       else
23370         additional_includedir="$withval/include"
23371         additional_libdir="$withval/lib"
23372       fi
23373     fi
23374
23375 fi
23376
23377       LIBINTL=
23378   LTLIBINTL=
23379   INCINTL=
23380   rpathdirs=
23381   ltrpathdirs=
23382   names_already_handled=
23383   names_next_round='intl '
23384   while test -n "$names_next_round"; do
23385     names_this_round="$names_next_round"
23386     names_next_round=
23387     for name in $names_this_round; do
23388       already_handled=
23389       for n in $names_already_handled; do
23390         if test "$n" = "$name"; then
23391           already_handled=yes
23392           break
23393         fi
23394       done
23395       if test -z "$already_handled"; then
23396         names_already_handled="$names_already_handled $name"
23397                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23398         eval value=\"\$HAVE_LIB$uppername\"
23399         if test -n "$value"; then
23400           if test "$value" = yes; then
23401             eval value=\"\$LIB$uppername\"
23402             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23403             eval value=\"\$LTLIB$uppername\"
23404             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23405           else
23406                                     :
23407           fi
23408         else
23409                               found_dir=
23410           found_la=
23411           found_so=
23412           found_a=
23413           if test $use_additional = yes; then
23414             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23415               found_dir="$additional_libdir"
23416               found_so="$additional_libdir/lib$name.$shlibext"
23417               if test -f "$additional_libdir/lib$name.la"; then
23418                 found_la="$additional_libdir/lib$name.la"
23419               fi
23420             else
23421               if test -f "$additional_libdir/lib$name.$libext"; then
23422                 found_dir="$additional_libdir"
23423                 found_a="$additional_libdir/lib$name.$libext"
23424                 if test -f "$additional_libdir/lib$name.la"; then
23425                   found_la="$additional_libdir/lib$name.la"
23426                 fi
23427               fi
23428             fi
23429           fi
23430           if test "X$found_dir" = "X"; then
23431             for x in $LDFLAGS $LTLIBINTL; do
23432
23433   acl_save_prefix="$prefix"
23434   prefix="$acl_final_prefix"
23435   acl_save_exec_prefix="$exec_prefix"
23436   exec_prefix="$acl_final_exec_prefix"
23437   eval x=\"$x\"
23438   exec_prefix="$acl_save_exec_prefix"
23439   prefix="$acl_save_prefix"
23440
23441               case "$x" in
23442                 -L*)
23443                   dir=`echo "X$x" | sed -e 's/^X-L//'`
23444                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23445                     found_dir="$dir"
23446                     found_so="$dir/lib$name.$shlibext"
23447                     if test -f "$dir/lib$name.la"; then
23448                       found_la="$dir/lib$name.la"
23449                     fi
23450                   else
23451                     if test -f "$dir/lib$name.$libext"; then
23452                       found_dir="$dir"
23453                       found_a="$dir/lib$name.$libext"
23454                       if test -f "$dir/lib$name.la"; then
23455                         found_la="$dir/lib$name.la"
23456                       fi
23457                     fi
23458                   fi
23459                   ;;
23460               esac
23461               if test "X$found_dir" != "X"; then
23462                 break
23463               fi
23464             done
23465           fi
23466           if test "X$found_dir" != "X"; then
23467                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23468             if test "X$found_so" != "X"; then
23469                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23470                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23471               else
23472                                                                                 haveit=
23473                 for x in $ltrpathdirs; do
23474                   if test "X$x" = "X$found_dir"; then
23475                     haveit=yes
23476                     break
23477                   fi
23478                 done
23479                 if test -z "$haveit"; then
23480                   ltrpathdirs="$ltrpathdirs $found_dir"
23481                 fi
23482                                 if test "$hardcode_direct" = yes; then
23483                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23484                 else
23485                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23486                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23487                                                             haveit=
23488                     for x in $rpathdirs; do
23489                       if test "X$x" = "X$found_dir"; then
23490                         haveit=yes
23491                         break
23492                       fi
23493                     done
23494                     if test -z "$haveit"; then
23495                       rpathdirs="$rpathdirs $found_dir"
23496                     fi
23497                   else
23498                                                                                 haveit=
23499                     for x in $LDFLAGS $LIBINTL; do
23500
23501   acl_save_prefix="$prefix"
23502   prefix="$acl_final_prefix"
23503   acl_save_exec_prefix="$exec_prefix"
23504   exec_prefix="$acl_final_exec_prefix"
23505   eval x=\"$x\"
23506   exec_prefix="$acl_save_exec_prefix"
23507   prefix="$acl_save_prefix"
23508
23509                       if test "X$x" = "X-L$found_dir"; then
23510                         haveit=yes
23511                         break
23512                       fi
23513                     done
23514                     if test -z "$haveit"; then
23515                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23516                     fi
23517                     if test "$hardcode_minus_L" != no; then
23518                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23519                     else
23520                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23521                     fi
23522                   fi
23523                 fi
23524               fi
23525             else
23526               if test "X$found_a" != "X"; then
23527                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23528               else
23529                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23530               fi
23531             fi
23532                         additional_includedir=
23533             case "$found_dir" in
23534               */lib | */lib/)
23535                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23536                 additional_includedir="$basedir/include"
23537                 ;;
23538             esac
23539             if test "X$additional_includedir" != "X"; then
23540                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
23541                 haveit=
23542                 if test "X$additional_includedir" = "X/usr/local/include"; then
23543                   if test -n "$GCC"; then
23544                     case $host_os in
23545                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23546                     esac
23547                   fi
23548                 fi
23549                 if test -z "$haveit"; then
23550                   for x in $CPPFLAGS $INCINTL; do
23551
23552   acl_save_prefix="$prefix"
23553   prefix="$acl_final_prefix"
23554   acl_save_exec_prefix="$exec_prefix"
23555   exec_prefix="$acl_final_exec_prefix"
23556   eval x=\"$x\"
23557   exec_prefix="$acl_save_exec_prefix"
23558   prefix="$acl_save_prefix"
23559
23560                     if test "X$x" = "X-I$additional_includedir"; then
23561                       haveit=yes
23562                       break
23563                     fi
23564                   done
23565                   if test -z "$haveit"; then
23566                     if test -d "$additional_includedir"; then
23567                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23568                     fi
23569                   fi
23570                 fi
23571               fi
23572             fi
23573                         if test -n "$found_la"; then
23574                                                         save_libdir="$libdir"
23575               case "$found_la" in
23576                 */* | *\\*) . "$found_la" ;;
23577                 *) . "./$found_la" ;;
23578               esac
23579               libdir="$save_libdir"
23580                             for dep in $dependency_libs; do
23581                 case "$dep" in
23582                   -L*)
23583                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23584                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
23585                       haveit=
23586                       if test "X$additional_libdir" = "X/usr/local/lib"; then
23587                         if test -n "$GCC"; then
23588                           case $host_os in
23589                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23590                           esac
23591                         fi
23592                       fi
23593                       if test -z "$haveit"; then
23594                         haveit=
23595                         for x in $LDFLAGS $LIBINTL; do
23596
23597   acl_save_prefix="$prefix"
23598   prefix="$acl_final_prefix"
23599   acl_save_exec_prefix="$exec_prefix"
23600   exec_prefix="$acl_final_exec_prefix"
23601   eval x=\"$x\"
23602   exec_prefix="$acl_save_exec_prefix"
23603   prefix="$acl_save_prefix"
23604
23605                           if test "X$x" = "X-L$additional_libdir"; then
23606                             haveit=yes
23607                             break
23608                           fi
23609                         done
23610                         if test -z "$haveit"; then
23611                           if test -d "$additional_libdir"; then
23612                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23613                           fi
23614                         fi
23615                         haveit=
23616                         for x in $LDFLAGS $LTLIBINTL; do
23617
23618   acl_save_prefix="$prefix"
23619   prefix="$acl_final_prefix"
23620   acl_save_exec_prefix="$exec_prefix"
23621   exec_prefix="$acl_final_exec_prefix"
23622   eval x=\"$x\"
23623   exec_prefix="$acl_save_exec_prefix"
23624   prefix="$acl_save_prefix"
23625
23626                           if test "X$x" = "X-L$additional_libdir"; then
23627                             haveit=yes
23628                             break
23629                           fi
23630                         done
23631                         if test -z "$haveit"; then
23632                           if test -d "$additional_libdir"; then
23633                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23634                           fi
23635                         fi
23636                       fi
23637                     fi
23638                     ;;
23639                   -R*)
23640                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
23641                     if test "$enable_rpath" != no; then
23642                                                                   haveit=
23643                       for x in $rpathdirs; do
23644                         if test "X$x" = "X$dir"; then
23645                           haveit=yes
23646                           break
23647                         fi
23648                       done
23649                       if test -z "$haveit"; then
23650                         rpathdirs="$rpathdirs $dir"
23651                       fi
23652                                                                   haveit=
23653                       for x in $ltrpathdirs; do
23654                         if test "X$x" = "X$dir"; then
23655                           haveit=yes
23656                           break
23657                         fi
23658                       done
23659                       if test -z "$haveit"; then
23660                         ltrpathdirs="$ltrpathdirs $dir"
23661                       fi
23662                     fi
23663                     ;;
23664                   -l*)
23665                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23666                     ;;
23667                   *.la)
23668                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23669                     ;;
23670                   *)
23671                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23672                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23673                     ;;
23674                 esac
23675               done
23676             fi
23677           else
23678                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23679             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23680           fi
23681         fi
23682       fi
23683     done
23684   done
23685   if test "X$rpathdirs" != "X"; then
23686     if test -n "$hardcode_libdir_separator"; then
23687                         alldirs=
23688       for found_dir in $rpathdirs; do
23689         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23690       done
23691             acl_save_libdir="$libdir"
23692       libdir="$alldirs"
23693       eval flag=\"$hardcode_libdir_flag_spec\"
23694       libdir="$acl_save_libdir"
23695       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23696     else
23697             for found_dir in $rpathdirs; do
23698         acl_save_libdir="$libdir"
23699         libdir="$found_dir"
23700         eval flag=\"$hardcode_libdir_flag_spec\"
23701         libdir="$acl_save_libdir"
23702         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23703       done
23704     fi
23705   fi
23706   if test "X$ltrpathdirs" != "X"; then
23707             for found_dir in $ltrpathdirs; do
23708       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23709     done
23710   fi
23711
23712           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23713 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23714 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23715   echo $ECHO_N "(cached) $ECHO_C" >&6
23716 else
23717   gt_save_CPPFLAGS="$CPPFLAGS"
23718             CPPFLAGS="$CPPFLAGS $INCINTL"
23719             gt_save_LIBS="$LIBS"
23720             LIBS="$LIBS $LIBINTL"
23721                         cat >conftest.$ac_ext <<_ACEOF
23722 /* confdefs.h.  */
23723 _ACEOF
23724 cat confdefs.h >>conftest.$ac_ext
23725 cat >>conftest.$ac_ext <<_ACEOF
23726 /* end confdefs.h.  */
23727 #include <libintl.h>
23728 extern int _nl_msg_cat_cntr;
23729 extern
23730 #ifdef __cplusplus
23731 "C"
23732 #endif
23733 const char *_nl_expand_alias (const char *);
23734 int
23735 main ()
23736 {
23737 bindtextdomain ("", "");
23738 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23739   ;
23740   return 0;
23741 }
23742 _ACEOF
23743 rm -f conftest.$ac_objext conftest$ac_exeext
23744 if { (ac_try="$ac_link"
23745 case "(($ac_try" in
23746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23747   *) ac_try_echo=$ac_try;;
23748 esac
23749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23750   (eval "$ac_link") 2>conftest.er1
23751   ac_status=$?
23752   grep -v '^ *+' conftest.er1 >conftest.err
23753   rm -f conftest.er1
23754   cat conftest.err >&5
23755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756   (exit $ac_status); } && {
23757          test -z "$ac_c_werror_flag" ||
23758          test ! -s conftest.err
23759        } && test -s conftest$ac_exeext &&
23760        $as_test_x conftest$ac_exeext; then
23761   gt_cv_func_gnugettext1_libintl=yes
23762 else
23763   echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23765
23766         gt_cv_func_gnugettext1_libintl=no
23767 fi
23768
23769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23770       conftest$ac_exeext conftest.$ac_ext
23771                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23772               LIBS="$LIBS $LIBICONV"
23773               cat >conftest.$ac_ext <<_ACEOF
23774 /* confdefs.h.  */
23775 _ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h.  */
23779 #include <libintl.h>
23780 extern int _nl_msg_cat_cntr;
23781 extern
23782 #ifdef __cplusplus
23783 "C"
23784 #endif
23785 const char *_nl_expand_alias (const char *);
23786 int
23787 main ()
23788 {
23789 bindtextdomain ("", "");
23790 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23791   ;
23792   return 0;
23793 }
23794 _ACEOF
23795 rm -f conftest.$ac_objext conftest$ac_exeext
23796 if { (ac_try="$ac_link"
23797 case "(($ac_try" in
23798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23799   *) ac_try_echo=$ac_try;;
23800 esac
23801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23802   (eval "$ac_link") 2>conftest.er1
23803   ac_status=$?
23804   grep -v '^ *+' conftest.er1 >conftest.err
23805   rm -f conftest.er1
23806   cat conftest.err >&5
23807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808   (exit $ac_status); } && {
23809          test -z "$ac_c_werror_flag" ||
23810          test ! -s conftest.err
23811        } && test -s conftest$ac_exeext &&
23812        $as_test_x conftest$ac_exeext; then
23813   LIBINTL="$LIBINTL $LIBICONV"
23814                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23815                 gt_cv_func_gnugettext1_libintl=yes
23816
23817 else
23818   echo "$as_me: failed program was:" >&5
23819 sed 's/^/| /' conftest.$ac_ext >&5
23820
23821
23822 fi
23823
23824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23825       conftest$ac_exeext conftest.$ac_ext
23826             fi
23827             CPPFLAGS="$gt_save_CPPFLAGS"
23828             LIBS="$gt_save_LIBS"
23829 fi
23830 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23831 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23832         fi
23833
23834                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23835            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23836                 && test "$PACKAGE" != gettext-runtime \
23837                 && test "$PACKAGE" != gettext-tools; }; then
23838           gt_use_preinstalled_gnugettext=yes
23839         else
23840                     LIBINTL=
23841           LTLIBINTL=
23842           INCINTL=
23843         fi
23844
23845
23846         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23847                               nls_cv_use_gnu_gettext=yes
23848         fi
23849       fi
23850
23851       if test "$nls_cv_use_gnu_gettext" = "yes"; then
23852                 BUILD_INCLUDED_LIBINTL=yes
23853         USE_INCLUDED_LIBINTL=yes
23854         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23855         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23856         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23857       fi
23858
23859       CATOBJEXT=
23860       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23861          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23862                 CATOBJEXT=.gmo
23863       fi
23864
23865
23866     if test -n "$INTL_MACOSX_LIBS"; then
23867       if test "$gt_use_preinstalled_gnugettext" = "yes" \
23868          || test "$nls_cv_use_gnu_gettext" = "yes"; then
23869                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23870         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23871       fi
23872     fi
23873
23874     if test "$gt_use_preinstalled_gnugettext" = "yes" \
23875        || test "$nls_cv_use_gnu_gettext" = "yes"; then
23876
23877 cat >>confdefs.h <<\_ACEOF
23878 #define ENABLE_NLS 1
23879 _ACEOF
23880
23881     else
23882       USE_NLS=no
23883     fi
23884   fi
23885
23886   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23887 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23888   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23889 echo "${ECHO_T}$USE_NLS" >&6; }
23890   if test "$USE_NLS" = "yes"; then
23891     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23892 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23893     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23894       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23895         gt_source="external libintl"
23896       else
23897         gt_source="libc"
23898       fi
23899     else
23900       gt_source="included intl directory"
23901     fi
23902     { echo "$as_me:$LINENO: result: $gt_source" >&5
23903 echo "${ECHO_T}$gt_source" >&6; }
23904   fi
23905
23906   if test "$USE_NLS" = "yes"; then
23907
23908     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23909       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23910         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23911 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23912         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23913 echo "${ECHO_T}$LIBINTL" >&6; }
23914
23915   for element in $INCINTL; do
23916     haveit=
23917     for x in $CPPFLAGS; do
23918
23919   acl_save_prefix="$prefix"
23920   prefix="$acl_final_prefix"
23921   acl_save_exec_prefix="$exec_prefix"
23922   exec_prefix="$acl_final_exec_prefix"
23923   eval x=\"$x\"
23924   exec_prefix="$acl_save_exec_prefix"
23925   prefix="$acl_save_prefix"
23926
23927       if test "X$x" = "X$element"; then
23928         haveit=yes
23929         break
23930       fi
23931     done
23932     if test -z "$haveit"; then
23933       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23934     fi
23935   done
23936
23937       fi
23938
23939
23940 cat >>confdefs.h <<\_ACEOF
23941 #define HAVE_GETTEXT 1
23942 _ACEOF
23943
23944
23945 cat >>confdefs.h <<\_ACEOF
23946 #define HAVE_DCGETTEXT 1
23947 _ACEOF
23948
23949     fi
23950
23951         POSUB=po
23952   fi
23953
23954
23955             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23956       BUILD_INCLUDED_LIBINTL=yes
23957     fi
23958
23959
23960
23961
23962
23963         nls_cv_header_intl=
23964     nls_cv_header_libgt=
23965
23966         DATADIRNAME=share
23967
23968
23969         INSTOBJEXT=.mo
23970
23971
23972         GENCAT=gencat
23973
23974
23975         INTLOBJS=
23976     if test "$USE_INCLUDED_LIBINTL" = yes; then
23977       INTLOBJS="\$(GETTOBJS)"
23978     fi
23979
23980
23981         INTL_LIBTOOL_SUFFIX_PREFIX=
23982
23983
23984
23985     INTLLIBS="$LIBINTL"
23986
23987
23988
23989
23990
23991
23992 fi
23993
23994 support_mysql=no
23995 support_sqlite=no
23996 support_sqlite3=no
23997 support_postgresql=no
23998 support_dbi=no
23999 support_smartalloc=yes
24000 support_readline=yes
24001 support_conio=yes
24002 support_gnome=no
24003 support_bat=no
24004 support_wx_console=no
24005 support_tray_monitor=no
24006 support_tls=no
24007 support_crypto=no
24008 gnome_version=
24009 wx_version=
24010 support_static_tools=no
24011 support_static_fd=no
24012 support_static_sd=no
24013 support_static_dir=no
24014 support_static_cons=no
24015 support_python=no
24016 build_client_only=no
24017 build_dird=yes
24018 build_stored=yes
24019 cats=
24020 db_type=Internal
24021 support_lockmgr=no
24022 DB_TYPE=bdb
24023
24024
24025 # Check whether --enable-gnome was given.
24026 if test "${enable_gnome+set}" = set; then
24027   enableval=$enable_gnome;
24028        if test x$enableval = xyes; then
24029           support_gnome=yes
24030        fi
24031
24032
24033 fi
24034
24035
24036 GNOME_DIR=
24037 if test x$support_gnome = xyes; then
24038    abc=`$PKGCONFIG --exists libgnomeui-2.0`
24039    pkg=$?
24040    if test $pkg = 0; then
24041       GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
24042       GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24043       GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
24044       GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24045
24046
24047
24048
24049       GNOME_DIR=src/gnome2-console
24050       gnome_version="Version 2.x"
24051    else
24052       { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24053 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24054    { (exit 1); exit 1; }; }
24055    fi
24056 fi
24057
24058
24059 # Check whether --enable-bat was given.
24060 if test "${enable_bat+set}" = set; then
24061   enableval=$enable_bat;
24062        if test x$enableval = xyes; then
24063
24064 cat >>confdefs.h <<\_ACEOF
24065 #define HAVE_BAT 1
24066 _ACEOF
24067
24068           support_bat=yes
24069        fi
24070
24071
24072 fi
24073
24074
24075 BAT_DIR=
24076 if test x$support_bat = xyes; then
24077    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24078    pkg=$?
24079    if test $pkg = 0; then
24080       BAT_DIR=src/qt-console
24081    else
24082       { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24083 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24084    { (exit 1); exit 1; }; }
24085    fi
24086 fi
24087
24088 got_qwt=no
24089 QWT_INC=
24090 QWT_LDFLAGS=
24091 QWT_LIB=
24092 QWT=
24093 no_qwt=no
24094 if test x$support_bat = xyes; then
24095    { echo "$as_me:$LINENO: checking for qwt support" >&5
24096 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24097
24098 # Check whether --with-qwt was given.
24099 if test "${with_qwt+set}" = set; then
24100   withval=$with_qwt;
24101           case "$with_qwt" in
24102           no)
24103              no_qwt=yes
24104              ;;
24105           yes|*)
24106              if test -f ${with_qwt}/include/qwt.h; then
24107                 QWT_INC="${with_qwt}/include"
24108                 QWT_LDFLAGS="-L${with_qwt}/lib"
24109                 QWT_LIB="-lqwt"
24110                 QWT="qwt"
24111              fi
24112              ;;
24113           esac
24114
24115
24116 fi
24117
24118
24119             if test $no_qwt = no; then
24120       if test x$QWT_INC = x; then
24121          for root in /usr /usr/local; do
24122             for ver in qwt qwt5 qwt-qt4; do
24123                if test -f ${root}/include/${ver}/qwt.h; then
24124                   QWT_INC="${root}/include/${ver}"
24125                   if test -d ${root}/lib64/; then
24126                      QWT_LDFLAGS="-L${root}/lib64"
24127                   elif test -d ${root}/lib/64/; then
24128                      QWT_LDFLAGS="-L${root}/64"
24129                   else
24130                      QWT_LDFLAGS="-L${root}/lib"
24131                   fi
24132                   QWT_LIB="-lqwt"
24133                   QWT="qwt"
24134                   got_qwt=yes
24135                   break;
24136                fi
24137             done
24138          done
24139       fi
24140    fi
24141    if test x$QWT_INC = x; then
24142       { echo "$as_me:$LINENO: result: no" >&5
24143 echo "${ECHO_T}no" >&6; }
24144    else
24145
24146 cat >>confdefs.h <<\_ACEOF
24147 #define HAVE_QWT 1
24148 _ACEOF
24149
24150       { echo "$as_me:$LINENO: result: yes" >&5
24151 echo "${ECHO_T}yes" >&6; }
24152    fi
24153 fi
24154
24155
24156
24157
24158
24159
24160
24161 # Check whether --enable-bwx-console was given.
24162 if test "${enable_bwx_console+set}" = set; then
24163   enableval=$enable_bwx_console;
24164        if test x$enableval = xyes; then
24165           support_wx_console=yes
24166        fi
24167
24168
24169 fi
24170
24171
24172 WX_DIR=
24173 if test x$support_wx_console = xyes; then
24174    abc=`$WXCONFIG $WXFLAGS --cppflags`
24175    pkg=$?
24176    if test $pkg = 0; then
24177       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24178       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24179       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24180
24181
24182
24183       WX_DIR="src/wx-console"
24184    else
24185       echo " "
24186       echo "wx-config program not found. bwx-console disabled."
24187       echo " "
24188       support_wx_console=no
24189    fi
24190 fi
24191
24192
24193 # Check whether --enable-tray-monitor was given.
24194 if test "${enable_tray_monitor+set}" = set; then
24195   enableval=$enable_tray_monitor;
24196        if test x$enableval = xyes; then
24197           support_tray_monitor=yes
24198        fi
24199
24200
24201 fi
24202
24203
24204 TRAY_MONITOR_DIR=
24205 if test x$support_tray_monitor = xyes; then
24206    abc=`$PKGCONFIG --exists gtk+-2.0`
24207    pkg=$?
24208    if test $pkg = 0; then
24209       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24210       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24211
24212
24213       TRAY_MONITOR_DIR=src/tray-monitor
24214       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24215       pkg=$?
24216       if test $pkg = 0; then
24217
24218 cat >>confdefs.h <<\_ACEOF
24219 #define HAVE_GTK_2_4 1
24220 _ACEOF
24221
24222       fi
24223    fi
24224 fi
24225
24226
24227 # Check whether --enable-smartalloc was given.
24228 if test "${enable_smartalloc+set}" = set; then
24229   enableval=$enable_smartalloc;
24230        if test x$enableval = xno; then
24231           support_smartalloc=no
24232        fi
24233
24234
24235 fi
24236
24237
24238 if test x$support_smartalloc = xyes; then
24239
24240 cat >>confdefs.h <<\_ACEOF
24241 #define SMARTALLOC 1
24242 _ACEOF
24243
24244 fi
24245
24246 # Check whether --enable-lockmgr was given.
24247 if test "${enable_lockmgr+set}" = set; then
24248   enableval=$enable_lockmgr;
24249        if test x$enableval = xyes; then
24250           support_lockmgr=yes
24251        fi
24252
24253
24254 fi
24255
24256
24257 if test x$support_lockmgr = xyes; then
24258
24259 cat >>confdefs.h <<\_ACEOF
24260 #define _USE_LOCKMGR 1
24261 _ACEOF
24262
24263 fi
24264
24265
24266 # Check whether --enable-static-tools was given.
24267 if test "${enable_static_tools+set}" = set; then
24268   enableval=$enable_static_tools;
24269        if test x$enableval = xyes; then
24270           if test x$use_libtool = xyes; then
24271              echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24272              exit 1
24273           fi
24274           support_static_tools=yes
24275        fi
24276
24277
24278 fi
24279
24280
24281 TTOOL_LDFLAGS=
24282 if test x$support_static_tools = xyes; then
24283    TTOOL_LDFLAGS="-static"
24284 fi
24285
24286
24287 # Check whether --enable-static-fd was given.
24288 if test "${enable_static_fd+set}" = set; then
24289   enableval=$enable_static_fd;
24290        if test x$enableval = xyes; then
24291           if test x$use_libtool = xyes; then
24292              echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24293              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 "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24314              exit 1
24315           fi
24316           support_static_sd=yes
24317        fi
24318
24319
24320 fi
24321
24322
24323 STATIC_SD=
24324 if test x$support_static_sd = xyes; then
24325    STATIC_SD="static-bacula-sd"
24326 fi
24327
24328
24329 # Check whether --enable-static-dir was given.
24330 if test "${enable_static_dir+set}" = set; then
24331   enableval=$enable_static_dir;
24332        if test x$enableval = xyes; then
24333           if test x$use_libtool = xyes; then
24334              echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24335              exit 1
24336           fi
24337           support_static_dir=yes
24338        fi
24339
24340
24341 fi
24342
24343
24344 STATIC_DIR=
24345 if test x$support_static_dir = xyes; then
24346    STATIC_DIR="static-bacula-dir"
24347 fi
24348
24349
24350 # Check whether --enable-static-cons was given.
24351 if test "${enable_static_cons+set}" = set; then
24352   enableval=$enable_static_cons;
24353        if test x$enableval = xyes; then
24354           if test x$use_libtool = xyes; then
24355              echo "Libtool is enabled, not compatible with static tools, please rerun configure with --disable-libtool"
24356              exit 1
24357           fi
24358           support_static_cons=yes
24359        fi
24360
24361
24362 fi
24363
24364
24365 STATIC_CONS=
24366 STATIC_GNOME_CONS=
24367 STATIC_WX_CONS=
24368 if test x$support_static_cons = xyes; then
24369    STATIC_CONS="static-bconsole"
24370    STATIC_GNOME_CONS="static-bgnome-console"
24371    STATIC_WX_CONS="static-bwx-console"
24372 fi
24373
24374
24375
24376
24377 # Check whether --enable-client-only was given.
24378 if test "${enable_client_only+set}" = set; then
24379   enableval=$enable_client_only;
24380        if test x$enableval = xyes; then
24381           build_client_only=yes
24382           db_type=None
24383           DB_TYPE=none
24384        fi
24385
24386
24387 fi
24388
24389 if test x$build_client_only = xno; then
24390    ALL_DIRS="subdirs"
24391 else
24392    ALL_DIRS=""
24393 fi
24394
24395
24396 # Check whether --enable-build-dird was given.
24397 if test "${enable_build_dird+set}" = set; then
24398   enableval=$enable_build_dird;
24399        if test x$enableval = xno; then
24400           build_dird=no
24401        fi
24402
24403
24404 fi
24405
24406 if test x$build_dird = xyes; then
24407    DIRD_DIR="src/dird"
24408    DIR_TOOLS="DIRTOOLS"
24409 else
24410    DIRD_DIR=""
24411    DIR_TOOLS="NODIRTOOLS"
24412 fi
24413
24414
24415
24416 # Check whether --enable-build-stored was given.
24417 if test "${enable_build_stored+set}" = set; then
24418   enableval=$enable_build_stored;
24419       if test x$enableval = xno; then
24420          build_stored=no
24421       fi
24422
24423
24424 fi
24425
24426 if test x$build_stored = xyes; then
24427    STORED_DIR="src/stored"
24428 else
24429    STORED_DIR=""
24430 fi
24431
24432
24433 # Check whether --enable-conio was given.
24434 if test "${enable_conio+set}" = set; then
24435   enableval=$enable_conio;
24436        if test x$enableval = xno; then
24437           support_conio=no
24438        fi
24439
24440
24441 fi
24442
24443
24444
24445 support_ipv6=yes
24446 # Check whether --enable-ipv6 was given.
24447 if test "${enable_ipv6+set}" = set; then
24448   enableval=$enable_ipv6;
24449        if test x$enableval = xno; then
24450           support_ipv6=no
24451        fi
24452
24453
24454 fi
24455
24456
24457 if test x$support_ipv6 = xyes; then
24458     cat >conftest.$ac_ext <<_ACEOF
24459 /* confdefs.h.  */
24460 _ACEOF
24461 cat confdefs.h >>conftest.$ac_ext
24462 cat >>conftest.$ac_ext <<_ACEOF
24463 /* end confdefs.h.  */
24464  #include <sys/types.h>
24465 #include <sys/socket.h>
24466 #include <netinet/in.h>
24467 int
24468 main ()
24469 {
24470 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24471   ;
24472   return 0;
24473 }
24474 _ACEOF
24475 rm -f conftest.$ac_objext conftest$ac_exeext
24476 if { (ac_try="$ac_link"
24477 case "(($ac_try" in
24478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24479   *) ac_try_echo=$ac_try;;
24480 esac
24481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24482   (eval "$ac_link") 2>conftest.er1
24483   ac_status=$?
24484   grep -v '^ *+' conftest.er1 >conftest.err
24485   rm -f conftest.er1
24486   cat conftest.err >&5
24487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488   (exit $ac_status); } && {
24489          test -z "$ac_c_werror_flag" ||
24490          test ! -s conftest.err
24491        } && test -s conftest$ac_exeext &&
24492        $as_test_x conftest$ac_exeext; then
24493   support_ipv6=yes
24494 else
24495   echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24497
24498         support_ipv6=no
24499 fi
24500
24501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24502       conftest$ac_exeext conftest.$ac_ext
24503 fi
24504
24505 if test x$support_ipv6 = xyes; then
24506
24507 cat >>confdefs.h <<\_ACEOF
24508 #define HAVE_IPV6 1
24509 _ACEOF
24510
24511 fi
24512
24513 got_conio="no"
24514 if test x$support_conio = xyes; then
24515    if test "${ac_cv_header_termcap_h+set}" = set; then
24516   { echo "$as_me:$LINENO: checking for termcap.h" >&5
24517 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24518 if test "${ac_cv_header_termcap_h+set}" = set; then
24519   echo $ECHO_N "(cached) $ECHO_C" >&6
24520 fi
24521 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24522 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24523 else
24524   # Is the header compilable?
24525 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24526 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24527 cat >conftest.$ac_ext <<_ACEOF
24528 /* confdefs.h.  */
24529 _ACEOF
24530 cat confdefs.h >>conftest.$ac_ext
24531 cat >>conftest.$ac_ext <<_ACEOF
24532 /* end confdefs.h.  */
24533 $ac_includes_default
24534 #include <termcap.h>
24535 _ACEOF
24536 rm -f conftest.$ac_objext
24537 if { (ac_try="$ac_compile"
24538 case "(($ac_try" in
24539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24540   *) ac_try_echo=$ac_try;;
24541 esac
24542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24543   (eval "$ac_compile") 2>conftest.er1
24544   ac_status=$?
24545   grep -v '^ *+' conftest.er1 >conftest.err
24546   rm -f conftest.er1
24547   cat conftest.err >&5
24548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549   (exit $ac_status); } && {
24550          test -z "$ac_c_werror_flag" ||
24551          test ! -s conftest.err
24552        } && test -s conftest.$ac_objext; then
24553   ac_header_compiler=yes
24554 else
24555   echo "$as_me: failed program was:" >&5
24556 sed 's/^/| /' conftest.$ac_ext >&5
24557
24558         ac_header_compiler=no
24559 fi
24560
24561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24563 echo "${ECHO_T}$ac_header_compiler" >&6; }
24564
24565 # Is the header present?
24566 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24567 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24568 cat >conftest.$ac_ext <<_ACEOF
24569 /* confdefs.h.  */
24570 _ACEOF
24571 cat confdefs.h >>conftest.$ac_ext
24572 cat >>conftest.$ac_ext <<_ACEOF
24573 /* end confdefs.h.  */
24574 #include <termcap.h>
24575 _ACEOF
24576 if { (ac_try="$ac_cpp conftest.$ac_ext"
24577 case "(($ac_try" in
24578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579   *) ac_try_echo=$ac_try;;
24580 esac
24581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24583   ac_status=$?
24584   grep -v '^ *+' conftest.er1 >conftest.err
24585   rm -f conftest.er1
24586   cat conftest.err >&5
24587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588   (exit $ac_status); } >/dev/null && {
24589          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24590          test ! -s conftest.err
24591        }; then
24592   ac_header_preproc=yes
24593 else
24594   echo "$as_me: failed program was:" >&5
24595 sed 's/^/| /' conftest.$ac_ext >&5
24596
24597   ac_header_preproc=no
24598 fi
24599
24600 rm -f conftest.err conftest.$ac_ext
24601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24602 echo "${ECHO_T}$ac_header_preproc" >&6; }
24603
24604 # So?  What about this header?
24605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24606   yes:no: )
24607     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24608 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24609     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24610 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24611     ac_header_preproc=yes
24612     ;;
24613   no:yes:* )
24614     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24615 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24616     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
24617 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
24618     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24619 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24620     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
24621 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24622     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24623 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24624     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24625 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24626
24627     ;;
24628 esac
24629 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24630 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24631 if test "${ac_cv_header_termcap_h+set}" = set; then
24632   echo $ECHO_N "(cached) $ECHO_C" >&6
24633 else
24634   ac_cv_header_termcap_h=$ac_header_preproc
24635 fi
24636 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24637 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24638
24639 fi
24640 if test $ac_cv_header_termcap_h = yes; then
24641    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24642 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24643 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24644   echo $ECHO_N "(cached) $ECHO_C" >&6
24645 else
24646   ac_check_lib_save_LIBS=$LIBS
24647 LIBS="-ltermcap  $LIBS"
24648 cat >conftest.$ac_ext <<_ACEOF
24649 /* confdefs.h.  */
24650 _ACEOF
24651 cat confdefs.h >>conftest.$ac_ext
24652 cat >>conftest.$ac_ext <<_ACEOF
24653 /* end confdefs.h.  */
24654
24655 /* Override any GCC internal prototype to avoid an error.
24656    Use char because int might match the return type of a GCC
24657    builtin and then its argument prototype would still apply.  */
24658 #ifdef __cplusplus
24659 extern "C"
24660 #endif
24661 char tgetent ();
24662 int
24663 main ()
24664 {
24665 return tgetent ();
24666   ;
24667   return 0;
24668 }
24669 _ACEOF
24670 rm -f conftest.$ac_objext conftest$ac_exeext
24671 if { (ac_try="$ac_link"
24672 case "(($ac_try" in
24673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674   *) ac_try_echo=$ac_try;;
24675 esac
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677   (eval "$ac_link") 2>conftest.er1
24678   ac_status=$?
24679   grep -v '^ *+' conftest.er1 >conftest.err
24680   rm -f conftest.er1
24681   cat conftest.err >&5
24682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683   (exit $ac_status); } && {
24684          test -z "$ac_c_werror_flag" ||
24685          test ! -s conftest.err
24686        } && test -s conftest$ac_exeext &&
24687        $as_test_x conftest$ac_exeext; then
24688   ac_cv_lib_termcap_tgetent=yes
24689 else
24690   echo "$as_me: failed program was:" >&5
24691 sed 's/^/| /' conftest.$ac_ext >&5
24692
24693         ac_cv_lib_termcap_tgetent=no
24694 fi
24695
24696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24697       conftest$ac_exeext conftest.$ac_ext
24698 LIBS=$ac_check_lib_save_LIBS
24699 fi
24700 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24701 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24702 if test $ac_cv_lib_termcap_tgetent = yes; then
24703    CONS_LIBS="-ltermcap"
24704     CONS_OBJ="conio.o"
24705     CONS_SRC="conio.c"
24706     got_conio="yes"
24707     support_readline=no
24708
24709 cat >>confdefs.h <<\_ACEOF
24710 #define HAVE_CONIO 1
24711 _ACEOF
24712
24713
24714 else
24715    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24716 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24717 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24718   echo $ECHO_N "(cached) $ECHO_C" >&6
24719 else
24720   ac_check_lib_save_LIBS=$LIBS
24721 LIBS="-lncurses  $LIBS"
24722 cat >conftest.$ac_ext <<_ACEOF
24723 /* confdefs.h.  */
24724 _ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h.  */
24728
24729 /* Override any GCC internal prototype to avoid an error.
24730    Use char because int might match the return type of a GCC
24731    builtin and then its argument prototype would still apply.  */
24732 #ifdef __cplusplus
24733 extern "C"
24734 #endif
24735 char tgetent ();
24736 int
24737 main ()
24738 {
24739 return tgetent ();
24740   ;
24741   return 0;
24742 }
24743 _ACEOF
24744 rm -f conftest.$ac_objext conftest$ac_exeext
24745 if { (ac_try="$ac_link"
24746 case "(($ac_try" in
24747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24748   *) ac_try_echo=$ac_try;;
24749 esac
24750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24751   (eval "$ac_link") 2>conftest.er1
24752   ac_status=$?
24753   grep -v '^ *+' conftest.er1 >conftest.err
24754   rm -f conftest.er1
24755   cat conftest.err >&5
24756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757   (exit $ac_status); } && {
24758          test -z "$ac_c_werror_flag" ||
24759          test ! -s conftest.err
24760        } && test -s conftest$ac_exeext &&
24761        $as_test_x conftest$ac_exeext; then
24762   ac_cv_lib_ncurses_tgetent=yes
24763 else
24764   echo "$as_me: failed program was:" >&5
24765 sed 's/^/| /' conftest.$ac_ext >&5
24766
24767         ac_cv_lib_ncurses_tgetent=no
24768 fi
24769
24770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24771       conftest$ac_exeext conftest.$ac_ext
24772 LIBS=$ac_check_lib_save_LIBS
24773 fi
24774 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24775 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24776 if test $ac_cv_lib_ncurses_tgetent = yes; then
24777    CONS_LIBS="-lncurses"
24778       CONS_OBJ="conio.o"
24779       CONS_SRC="conio.c"
24780       got_conio="yes"
24781       support_readline=no
24782
24783 cat >>confdefs.h <<\_ACEOF
24784 #define HAVE_CONIO 1
24785 _ACEOF
24786
24787
24788 fi
24789
24790
24791 fi
24792
24793
24794 else
24795
24796
24797 for ac_header in curses.h
24798 do
24799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24801   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24804   echo $ECHO_N "(cached) $ECHO_C" >&6
24805 fi
24806 ac_res=`eval echo '${'$as_ac_Header'}'`
24807                { echo "$as_me:$LINENO: result: $ac_res" >&5
24808 echo "${ECHO_T}$ac_res" >&6; }
24809 else
24810   # Is the header compilable?
24811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24813 cat >conftest.$ac_ext <<_ACEOF
24814 /* confdefs.h.  */
24815 _ACEOF
24816 cat confdefs.h >>conftest.$ac_ext
24817 cat >>conftest.$ac_ext <<_ACEOF
24818 /* end confdefs.h.  */
24819 $ac_includes_default
24820 #include <$ac_header>
24821 _ACEOF
24822 rm -f conftest.$ac_objext
24823 if { (ac_try="$ac_compile"
24824 case "(($ac_try" in
24825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24826   *) ac_try_echo=$ac_try;;
24827 esac
24828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24829   (eval "$ac_compile") 2>conftest.er1
24830   ac_status=$?
24831   grep -v '^ *+' conftest.er1 >conftest.err
24832   rm -f conftest.er1
24833   cat conftest.err >&5
24834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835   (exit $ac_status); } && {
24836          test -z "$ac_c_werror_flag" ||
24837          test ! -s conftest.err
24838        } && test -s conftest.$ac_objext; then
24839   ac_header_compiler=yes
24840 else
24841   echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24843
24844         ac_header_compiler=no
24845 fi
24846
24847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24849 echo "${ECHO_T}$ac_header_compiler" >&6; }
24850
24851 # Is the header present?
24852 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24854 cat >conftest.$ac_ext <<_ACEOF
24855 /* confdefs.h.  */
24856 _ACEOF
24857 cat confdefs.h >>conftest.$ac_ext
24858 cat >>conftest.$ac_ext <<_ACEOF
24859 /* end confdefs.h.  */
24860 #include <$ac_header>
24861 _ACEOF
24862 if { (ac_try="$ac_cpp conftest.$ac_ext"
24863 case "(($ac_try" in
24864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24865   *) ac_try_echo=$ac_try;;
24866 esac
24867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24868   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24869   ac_status=$?
24870   grep -v '^ *+' conftest.er1 >conftest.err
24871   rm -f conftest.er1
24872   cat conftest.err >&5
24873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874   (exit $ac_status); } >/dev/null && {
24875          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24876          test ! -s conftest.err
24877        }; then
24878   ac_header_preproc=yes
24879 else
24880   echo "$as_me: failed program was:" >&5
24881 sed 's/^/| /' conftest.$ac_ext >&5
24882
24883   ac_header_preproc=no
24884 fi
24885
24886 rm -f conftest.err conftest.$ac_ext
24887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24888 echo "${ECHO_T}$ac_header_preproc" >&6; }
24889
24890 # So?  What about this header?
24891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24892   yes:no: )
24893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24897     ac_header_preproc=yes
24898     ;;
24899   no:yes:* )
24900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24912
24913     ;;
24914 esac
24915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24918   echo $ECHO_N "(cached) $ECHO_C" >&6
24919 else
24920   eval "$as_ac_Header=\$ac_header_preproc"
24921 fi
24922 ac_res=`eval echo '${'$as_ac_Header'}'`
24923                { echo "$as_me:$LINENO: result: $ac_res" >&5
24924 echo "${ECHO_T}$ac_res" >&6; }
24925
24926 fi
24927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24928   cat >>confdefs.h <<_ACEOF
24929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24930 _ACEOF
24931
24932 fi
24933
24934 done
24935
24936     { echo "$as_me:$LINENO: checking for term.h" >&5
24937 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24938 if test "${ac_cv_header_term_h+set}" = set; then
24939   echo $ECHO_N "(cached) $ECHO_C" >&6
24940 else
24941   cat >conftest.$ac_ext <<_ACEOF
24942 /* confdefs.h.  */
24943 _ACEOF
24944 cat confdefs.h >>conftest.$ac_ext
24945 cat >>conftest.$ac_ext <<_ACEOF
24946 /* end confdefs.h.  */
24947 #if HAVE_CURSES_H
24948 #include <curses.h>
24949 #endif
24950
24951
24952 #include <term.h>
24953 _ACEOF
24954 rm -f conftest.$ac_objext
24955 if { (ac_try="$ac_compile"
24956 case "(($ac_try" in
24957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24958   *) ac_try_echo=$ac_try;;
24959 esac
24960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24961   (eval "$ac_compile") 2>conftest.er1
24962   ac_status=$?
24963   grep -v '^ *+' conftest.er1 >conftest.err
24964   rm -f conftest.er1
24965   cat conftest.err >&5
24966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967   (exit $ac_status); } && {
24968          test -z "$ac_c_werror_flag" ||
24969          test ! -s conftest.err
24970        } && test -s conftest.$ac_objext; then
24971   ac_cv_header_term_h=yes
24972 else
24973   echo "$as_me: failed program was:" >&5
24974 sed 's/^/| /' conftest.$ac_ext >&5
24975
24976         ac_cv_header_term_h=no
24977 fi
24978
24979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24980 fi
24981 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24982 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24983 if test $ac_cv_header_term_h = yes; then
24984    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24985 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24986 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24987   echo $ECHO_N "(cached) $ECHO_C" >&6
24988 else
24989   ac_check_lib_save_LIBS=$LIBS
24990 LIBS="-lcurses  $LIBS"
24991 cat >conftest.$ac_ext <<_ACEOF
24992 /* confdefs.h.  */
24993 _ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h.  */
24997
24998 /* Override any GCC internal prototype to avoid an error.
24999    Use char because int might match the return type of a GCC
25000    builtin and then its argument prototype would still apply.  */
25001 #ifdef __cplusplus
25002 extern "C"
25003 #endif
25004 char tgetent ();
25005 int
25006 main ()
25007 {
25008 return tgetent ();
25009   ;
25010   return 0;
25011 }
25012 _ACEOF
25013 rm -f conftest.$ac_objext conftest$ac_exeext
25014 if { (ac_try="$ac_link"
25015 case "(($ac_try" in
25016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25017   *) ac_try_echo=$ac_try;;
25018 esac
25019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25020   (eval "$ac_link") 2>conftest.er1
25021   ac_status=$?
25022   grep -v '^ *+' conftest.er1 >conftest.err
25023   rm -f conftest.er1
25024   cat conftest.err >&5
25025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026   (exit $ac_status); } && {
25027          test -z "$ac_c_werror_flag" ||
25028          test ! -s conftest.err
25029        } && test -s conftest$ac_exeext &&
25030        $as_test_x conftest$ac_exeext; then
25031   ac_cv_lib_curses_tgetent=yes
25032 else
25033   echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25035
25036         ac_cv_lib_curses_tgetent=no
25037 fi
25038
25039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25040       conftest$ac_exeext conftest.$ac_ext
25041 LIBS=$ac_check_lib_save_LIBS
25042 fi
25043 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25044 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25045 if test $ac_cv_lib_curses_tgetent = yes; then
25046    CONS_LIBS="-lcurses"
25047          CONS_OBJ="conio.o"
25048          CONS_SRC="conio.c"
25049          got_conio="yes"
25050          support_readline=no
25051
25052 cat >>confdefs.h <<\_ACEOF
25053 #define HAVE_CONIO 1
25054 _ACEOF
25055
25056
25057 fi
25058
25059
25060 else
25061    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25062 fi
25063
25064
25065
25066 fi
25067
25068
25069 fi
25070
25071
25072 # Check whether --enable-readline was given.
25073 if test "${enable_readline+set}" = set; then
25074   enableval=$enable_readline;
25075        if test x$enableval = xno; then
25076           support_readline=no
25077        fi
25078
25079
25080 fi
25081
25082
25083 got_readline="no"
25084 READLINE_SRC=
25085 if test x$support_readline = xyes; then
25086
25087 # Check whether --with-readline was given.
25088 if test "${with_readline+set}" = set; then
25089   withval=$with_readline;
25090           case "$with_readline" in
25091           no)
25092              :
25093              ;;
25094           yes|*)
25095              if test -f ${with_readline}/readline.h; then
25096                 CONS_INC="-I${with_readline}"
25097                 CONS_LDFLAGS="-L$with_readline"
25098              elif test -f ${with_readline}/include/readline/readline.h; then
25099                 CONS_INC="-I${with_readline}/include/readline"
25100                 CONS_LDFLAGS="-L${with_readline}/lib"
25101                 with_readline="${with_readline}/include/readline"
25102              else
25103                 with_readline="/usr/include/readline"
25104              fi
25105
25106              as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25108   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25109 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25111   echo $ECHO_N "(cached) $ECHO_C" >&6
25112 fi
25113 ac_res=`eval echo '${'$as_ac_Header'}'`
25114                { echo "$as_me:$LINENO: result: $ac_res" >&5
25115 echo "${ECHO_T}$ac_res" >&6; }
25116 else
25117   # Is the header compilable?
25118 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25119 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25120 cat >conftest.$ac_ext <<_ACEOF
25121 /* confdefs.h.  */
25122 _ACEOF
25123 cat confdefs.h >>conftest.$ac_ext
25124 cat >>conftest.$ac_ext <<_ACEOF
25125 /* end confdefs.h.  */
25126 $ac_includes_default
25127 #include <${with_readline}/readline.h>
25128 _ACEOF
25129 rm -f conftest.$ac_objext
25130 if { (ac_try="$ac_compile"
25131 case "(($ac_try" in
25132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25133   *) ac_try_echo=$ac_try;;
25134 esac
25135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25136   (eval "$ac_compile") 2>conftest.er1
25137   ac_status=$?
25138   grep -v '^ *+' conftest.er1 >conftest.err
25139   rm -f conftest.er1
25140   cat conftest.err >&5
25141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142   (exit $ac_status); } && {
25143          test -z "$ac_c_werror_flag" ||
25144          test ! -s conftest.err
25145        } && test -s conftest.$ac_objext; then
25146   ac_header_compiler=yes
25147 else
25148   echo "$as_me: failed program was:" >&5
25149 sed 's/^/| /' conftest.$ac_ext >&5
25150
25151         ac_header_compiler=no
25152 fi
25153
25154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25156 echo "${ECHO_T}$ac_header_compiler" >&6; }
25157
25158 # Is the header present?
25159 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25160 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25161 cat >conftest.$ac_ext <<_ACEOF
25162 /* confdefs.h.  */
25163 _ACEOF
25164 cat confdefs.h >>conftest.$ac_ext
25165 cat >>conftest.$ac_ext <<_ACEOF
25166 /* end confdefs.h.  */
25167 #include <${with_readline}/readline.h>
25168 _ACEOF
25169 if { (ac_try="$ac_cpp conftest.$ac_ext"
25170 case "(($ac_try" in
25171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25172   *) ac_try_echo=$ac_try;;
25173 esac
25174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25175   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25176   ac_status=$?
25177   grep -v '^ *+' conftest.er1 >conftest.err
25178   rm -f conftest.er1
25179   cat conftest.err >&5
25180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181   (exit $ac_status); } >/dev/null && {
25182          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25183          test ! -s conftest.err
25184        }; then
25185   ac_header_preproc=yes
25186 else
25187   echo "$as_me: failed program was:" >&5
25188 sed 's/^/| /' conftest.$ac_ext >&5
25189
25190   ac_header_preproc=no
25191 fi
25192
25193 rm -f conftest.err conftest.$ac_ext
25194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25195 echo "${ECHO_T}$ac_header_preproc" >&6; }
25196
25197 # So?  What about this header?
25198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25199   yes:no: )
25200     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25201 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25202     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25203 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25204     ac_header_preproc=yes
25205     ;;
25206   no:yes:* )
25207     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25208 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25209     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
25210 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
25211     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25212 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25213     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25214 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25215     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25216 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25217     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25218 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25219
25220     ;;
25221 esac
25222 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25223 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25225   echo $ECHO_N "(cached) $ECHO_C" >&6
25226 else
25227   eval "$as_ac_Header=\$ac_header_preproc"
25228 fi
25229 ac_res=`eval echo '${'$as_ac_Header'}'`
25230                { echo "$as_me:$LINENO: result: $ac_res" >&5
25231 echo "${ECHO_T}$ac_res" >&6; }
25232
25233 fi
25234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25235
25236
25237 cat >>confdefs.h <<\_ACEOF
25238 #define HAVE_READLINE 1
25239 _ACEOF
25240
25241                     CONS_LIBS="-lreadline -lhistory -ltermcap"
25242                     got_readline="yes"
25243
25244 else
25245
25246                     echo " "
25247                     echo "readline.h not found. readline turned off ..."
25248                     echo " "
25249
25250
25251 fi
25252
25253
25254              ;;
25255           esac
25256
25257 else
25258
25259                  if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25260   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25261 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25262 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25263   echo $ECHO_N "(cached) $ECHO_C" >&6
25264 fi
25265 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25266 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25267 else
25268   # Is the header compilable?
25269 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25270 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25271 cat >conftest.$ac_ext <<_ACEOF
25272 /* confdefs.h.  */
25273 _ACEOF
25274 cat confdefs.h >>conftest.$ac_ext
25275 cat >>conftest.$ac_ext <<_ACEOF
25276 /* end confdefs.h.  */
25277 $ac_includes_default
25278 #include </usr/include/readline/readline.h>
25279 _ACEOF
25280 rm -f conftest.$ac_objext
25281 if { (ac_try="$ac_compile"
25282 case "(($ac_try" in
25283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25284   *) ac_try_echo=$ac_try;;
25285 esac
25286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25287   (eval "$ac_compile") 2>conftest.er1
25288   ac_status=$?
25289   grep -v '^ *+' conftest.er1 >conftest.err
25290   rm -f conftest.er1
25291   cat conftest.err >&5
25292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293   (exit $ac_status); } && {
25294          test -z "$ac_c_werror_flag" ||
25295          test ! -s conftest.err
25296        } && test -s conftest.$ac_objext; then
25297   ac_header_compiler=yes
25298 else
25299   echo "$as_me: failed program was:" >&5
25300 sed 's/^/| /' conftest.$ac_ext >&5
25301
25302         ac_header_compiler=no
25303 fi
25304
25305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25307 echo "${ECHO_T}$ac_header_compiler" >&6; }
25308
25309 # Is the header present?
25310 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25311 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25312 cat >conftest.$ac_ext <<_ACEOF
25313 /* confdefs.h.  */
25314 _ACEOF
25315 cat confdefs.h >>conftest.$ac_ext
25316 cat >>conftest.$ac_ext <<_ACEOF
25317 /* end confdefs.h.  */
25318 #include </usr/include/readline/readline.h>
25319 _ACEOF
25320 if { (ac_try="$ac_cpp conftest.$ac_ext"
25321 case "(($ac_try" in
25322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323   *) ac_try_echo=$ac_try;;
25324 esac
25325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25327   ac_status=$?
25328   grep -v '^ *+' conftest.er1 >conftest.err
25329   rm -f conftest.er1
25330   cat conftest.err >&5
25331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332   (exit $ac_status); } >/dev/null && {
25333          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25334          test ! -s conftest.err
25335        }; then
25336   ac_header_preproc=yes
25337 else
25338   echo "$as_me: failed program was:" >&5
25339 sed 's/^/| /' conftest.$ac_ext >&5
25340
25341   ac_header_preproc=no
25342 fi
25343
25344 rm -f conftest.err conftest.$ac_ext
25345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25346 echo "${ECHO_T}$ac_header_preproc" >&6; }
25347
25348 # So?  What about this header?
25349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25350   yes:no: )
25351     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25352 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25353     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25354 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25355     ac_header_preproc=yes
25356     ;;
25357   no:yes:* )
25358     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25359 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25360     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
25361 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25362     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25363 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25364     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25365 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25366     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25367 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25368     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25369 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25370
25371     ;;
25372 esac
25373 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25374 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25375 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25376   echo $ECHO_N "(cached) $ECHO_C" >&6
25377 else
25378   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25379 fi
25380 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25381 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25382
25383 fi
25384 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25385
25386
25387 cat >>confdefs.h <<\_ACEOF
25388 #define HAVE_READLINE 1
25389 _ACEOF
25390
25391                 got_readline="yes"
25392                 CONS_INC="-I/usr/include/readline"
25393                 CONS_LIBS="-lreadline -ltermcap"
25394
25395 else
25396
25397                                 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25399   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25400 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25402   echo $ECHO_N "(cached) $ECHO_C" >&6
25403 fi
25404 ac_res=`eval echo '${'$as_ac_Header'}'`
25405                { echo "$as_me:$LINENO: result: $ac_res" >&5
25406 echo "${ECHO_T}$ac_res" >&6; }
25407 else
25408   # Is the header compilable?
25409 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25410 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25411 cat >conftest.$ac_ext <<_ACEOF
25412 /* confdefs.h.  */
25413 _ACEOF
25414 cat confdefs.h >>conftest.$ac_ext
25415 cat >>conftest.$ac_ext <<_ACEOF
25416 /* end confdefs.h.  */
25417 $ac_includes_default
25418 #include <${TOP_DIR}/depkgs/readline/readline.h>
25419 _ACEOF
25420 rm -f conftest.$ac_objext
25421 if { (ac_try="$ac_compile"
25422 case "(($ac_try" in
25423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25424   *) ac_try_echo=$ac_try;;
25425 esac
25426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25427   (eval "$ac_compile") 2>conftest.er1
25428   ac_status=$?
25429   grep -v '^ *+' conftest.er1 >conftest.err
25430   rm -f conftest.er1
25431   cat conftest.err >&5
25432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433   (exit $ac_status); } && {
25434          test -z "$ac_c_werror_flag" ||
25435          test ! -s conftest.err
25436        } && test -s conftest.$ac_objext; then
25437   ac_header_compiler=yes
25438 else
25439   echo "$as_me: failed program was:" >&5
25440 sed 's/^/| /' conftest.$ac_ext >&5
25441
25442         ac_header_compiler=no
25443 fi
25444
25445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25447 echo "${ECHO_T}$ac_header_compiler" >&6; }
25448
25449 # Is the header present?
25450 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25451 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25452 cat >conftest.$ac_ext <<_ACEOF
25453 /* confdefs.h.  */
25454 _ACEOF
25455 cat confdefs.h >>conftest.$ac_ext
25456 cat >>conftest.$ac_ext <<_ACEOF
25457 /* end confdefs.h.  */
25458 #include <${TOP_DIR}/depkgs/readline/readline.h>
25459 _ACEOF
25460 if { (ac_try="$ac_cpp conftest.$ac_ext"
25461 case "(($ac_try" in
25462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25463   *) ac_try_echo=$ac_try;;
25464 esac
25465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25466   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25467   ac_status=$?
25468   grep -v '^ *+' conftest.er1 >conftest.err
25469   rm -f conftest.er1
25470   cat conftest.err >&5
25471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472   (exit $ac_status); } >/dev/null && {
25473          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25474          test ! -s conftest.err
25475        }; then
25476   ac_header_preproc=yes
25477 else
25478   echo "$as_me: failed program was:" >&5
25479 sed 's/^/| /' conftest.$ac_ext >&5
25480
25481   ac_header_preproc=no
25482 fi
25483
25484 rm -f conftest.err conftest.$ac_ext
25485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25486 echo "${ECHO_T}$ac_header_preproc" >&6; }
25487
25488 # So?  What about this header?
25489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25490   yes:no: )
25491     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25492 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25493     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25494 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25495     ac_header_preproc=yes
25496     ;;
25497   no:yes:* )
25498     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25499 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25500     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
25501 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
25502     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25503 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25504     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
25505 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25506     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25507 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25508     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25509 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25510
25511     ;;
25512 esac
25513 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25514 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25516   echo $ECHO_N "(cached) $ECHO_C" >&6
25517 else
25518   eval "$as_ac_Header=\$ac_header_preproc"
25519 fi
25520 ac_res=`eval echo '${'$as_ac_Header'}'`
25521                { echo "$as_me:$LINENO: result: $ac_res" >&5
25522 echo "${ECHO_T}$ac_res" >&6; }
25523
25524 fi
25525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25526
25527
25528 cat >>confdefs.h <<\_ACEOF
25529 #define HAVE_READLINE 1
25530 _ACEOF
25531
25532                         got_readline="yes"
25533                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
25534                         CONS_LIBS="-lreadline -lhistory -ltermcap"
25535                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25536                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25537
25538 else
25539
25540                         echo " "
25541                         echo "readline.h not found. readline turned off ..."
25542                         echo " "
25543
25544
25545 fi
25546
25547
25548
25549
25550 fi
25551
25552
25553
25554
25555 fi
25556
25557 fi
25558
25559
25560
25561
25562
25563
25564
25565
25566 MAKE_SHELL=/bin/sh
25567
25568 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25569 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25570 if test "${ac_cv_header_stat_broken+set}" = set; then
25571   echo $ECHO_N "(cached) $ECHO_C" >&6
25572 else
25573   cat >conftest.$ac_ext <<_ACEOF
25574 /* confdefs.h.  */
25575 _ACEOF
25576 cat confdefs.h >>conftest.$ac_ext
25577 cat >>conftest.$ac_ext <<_ACEOF
25578 /* end confdefs.h.  */
25579 #include <sys/types.h>
25580 #include <sys/stat.h>
25581
25582 #if defined S_ISBLK && defined S_IFDIR
25583 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25584 #endif
25585
25586 #if defined S_ISBLK && defined S_IFCHR
25587 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25588 #endif
25589
25590 #if defined S_ISLNK && defined S_IFREG
25591 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25592 #endif
25593
25594 #if defined S_ISSOCK && defined S_IFREG
25595 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25596 #endif
25597
25598 _ACEOF
25599 rm -f conftest.$ac_objext
25600 if { (ac_try="$ac_compile"
25601 case "(($ac_try" in
25602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25603   *) ac_try_echo=$ac_try;;
25604 esac
25605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25606   (eval "$ac_compile") 2>conftest.er1
25607   ac_status=$?
25608   grep -v '^ *+' conftest.er1 >conftest.err
25609   rm -f conftest.er1
25610   cat conftest.err >&5
25611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612   (exit $ac_status); } && {
25613          test -z "$ac_c_werror_flag" ||
25614          test ! -s conftest.err
25615        } && test -s conftest.$ac_objext; then
25616   ac_cv_header_stat_broken=no
25617 else
25618   echo "$as_me: failed program was:" >&5
25619 sed 's/^/| /' conftest.$ac_ext >&5
25620
25621         ac_cv_header_stat_broken=yes
25622 fi
25623
25624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25625 fi
25626 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25627 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25628 if test $ac_cv_header_stat_broken = yes; then
25629
25630 cat >>confdefs.h <<\_ACEOF
25631 #define STAT_MACROS_BROKEN 1
25632 _ACEOF
25633
25634 fi
25635
25636
25637
25638
25639
25640
25641 ac_header_dirent=no
25642 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25643   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25644 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25645 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25647   echo $ECHO_N "(cached) $ECHO_C" >&6
25648 else
25649   cat >conftest.$ac_ext <<_ACEOF
25650 /* confdefs.h.  */
25651 _ACEOF
25652 cat confdefs.h >>conftest.$ac_ext
25653 cat >>conftest.$ac_ext <<_ACEOF
25654 /* end confdefs.h.  */
25655 #include <sys/types.h>
25656 #include <$ac_hdr>
25657
25658 int
25659 main ()
25660 {
25661 if ((DIR *) 0)
25662 return 0;
25663   ;
25664   return 0;
25665 }
25666 _ACEOF
25667 rm -f conftest.$ac_objext
25668 if { (ac_try="$ac_compile"
25669 case "(($ac_try" in
25670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25671   *) ac_try_echo=$ac_try;;
25672 esac
25673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25674   (eval "$ac_compile") 2>conftest.er1
25675   ac_status=$?
25676   grep -v '^ *+' conftest.er1 >conftest.err
25677   rm -f conftest.er1
25678   cat conftest.err >&5
25679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680   (exit $ac_status); } && {
25681          test -z "$ac_c_werror_flag" ||
25682          test ! -s conftest.err
25683        } && test -s conftest.$ac_objext; then
25684   eval "$as_ac_Header=yes"
25685 else
25686   echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25688
25689         eval "$as_ac_Header=no"
25690 fi
25691
25692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25693 fi
25694 ac_res=`eval echo '${'$as_ac_Header'}'`
25695                { echo "$as_me:$LINENO: result: $ac_res" >&5
25696 echo "${ECHO_T}$ac_res" >&6; }
25697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25698   cat >>confdefs.h <<_ACEOF
25699 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25700 _ACEOF
25701
25702 ac_header_dirent=$ac_hdr; break
25703 fi
25704
25705 done
25706 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25707 if test $ac_header_dirent = dirent.h; then
25708   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25709 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25710 if test "${ac_cv_search_opendir+set}" = set; then
25711   echo $ECHO_N "(cached) $ECHO_C" >&6
25712 else
25713   ac_func_search_save_LIBS=$LIBS
25714 cat >conftest.$ac_ext <<_ACEOF
25715 /* confdefs.h.  */
25716 _ACEOF
25717 cat confdefs.h >>conftest.$ac_ext
25718 cat >>conftest.$ac_ext <<_ACEOF
25719 /* end confdefs.h.  */
25720
25721 /* Override any GCC internal prototype to avoid an error.
25722    Use char because int might match the return type of a GCC
25723    builtin and then its argument prototype would still apply.  */
25724 #ifdef __cplusplus
25725 extern "C"
25726 #endif
25727 char opendir ();
25728 int
25729 main ()
25730 {
25731 return opendir ();
25732   ;
25733   return 0;
25734 }
25735 _ACEOF
25736 for ac_lib in '' dir; do
25737   if test -z "$ac_lib"; then
25738     ac_res="none required"
25739   else
25740     ac_res=-l$ac_lib
25741     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25742   fi
25743   rm -f conftest.$ac_objext conftest$ac_exeext
25744 if { (ac_try="$ac_link"
25745 case "(($ac_try" in
25746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25747   *) ac_try_echo=$ac_try;;
25748 esac
25749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25750   (eval "$ac_link") 2>conftest.er1
25751   ac_status=$?
25752   grep -v '^ *+' conftest.er1 >conftest.err
25753   rm -f conftest.er1
25754   cat conftest.err >&5
25755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756   (exit $ac_status); } && {
25757          test -z "$ac_c_werror_flag" ||
25758          test ! -s conftest.err
25759        } && test -s conftest$ac_exeext &&
25760        $as_test_x conftest$ac_exeext; then
25761   ac_cv_search_opendir=$ac_res
25762 else
25763   echo "$as_me: failed program was:" >&5
25764 sed 's/^/| /' conftest.$ac_ext >&5
25765
25766
25767 fi
25768
25769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25770       conftest$ac_exeext
25771   if test "${ac_cv_search_opendir+set}" = set; then
25772   break
25773 fi
25774 done
25775 if test "${ac_cv_search_opendir+set}" = set; then
25776   :
25777 else
25778   ac_cv_search_opendir=no
25779 fi
25780 rm conftest.$ac_ext
25781 LIBS=$ac_func_search_save_LIBS
25782 fi
25783 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25784 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25785 ac_res=$ac_cv_search_opendir
25786 if test "$ac_res" != no; then
25787   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25788
25789 fi
25790
25791 else
25792   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25793 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25794 if test "${ac_cv_search_opendir+set}" = set; then
25795   echo $ECHO_N "(cached) $ECHO_C" >&6
25796 else
25797   ac_func_search_save_LIBS=$LIBS
25798 cat >conftest.$ac_ext <<_ACEOF
25799 /* confdefs.h.  */
25800 _ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h.  */
25804
25805 /* Override any GCC internal prototype to avoid an error.
25806    Use char because int might match the return type of a GCC
25807    builtin and then its argument prototype would still apply.  */
25808 #ifdef __cplusplus
25809 extern "C"
25810 #endif
25811 char opendir ();
25812 int
25813 main ()
25814 {
25815 return opendir ();
25816   ;
25817   return 0;
25818 }
25819 _ACEOF
25820 for ac_lib in '' x; do
25821   if test -z "$ac_lib"; then
25822     ac_res="none required"
25823   else
25824     ac_res=-l$ac_lib
25825     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25826   fi
25827   rm -f conftest.$ac_objext conftest$ac_exeext
25828 if { (ac_try="$ac_link"
25829 case "(($ac_try" in
25830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25831   *) ac_try_echo=$ac_try;;
25832 esac
25833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25834   (eval "$ac_link") 2>conftest.er1
25835   ac_status=$?
25836   grep -v '^ *+' conftest.er1 >conftest.err
25837   rm -f conftest.er1
25838   cat conftest.err >&5
25839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840   (exit $ac_status); } && {
25841          test -z "$ac_c_werror_flag" ||
25842          test ! -s conftest.err
25843        } && test -s conftest$ac_exeext &&
25844        $as_test_x conftest$ac_exeext; then
25845   ac_cv_search_opendir=$ac_res
25846 else
25847   echo "$as_me: failed program was:" >&5
25848 sed 's/^/| /' conftest.$ac_ext >&5
25849
25850
25851 fi
25852
25853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25854       conftest$ac_exeext
25855   if test "${ac_cv_search_opendir+set}" = set; then
25856   break
25857 fi
25858 done
25859 if test "${ac_cv_search_opendir+set}" = set; then
25860   :
25861 else
25862   ac_cv_search_opendir=no
25863 fi
25864 rm conftest.$ac_ext
25865 LIBS=$ac_func_search_save_LIBS
25866 fi
25867 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25868 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25869 ac_res=$ac_cv_search_opendir
25870 if test "$ac_res" != no; then
25871   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25872
25873 fi
25874
25875 fi
25876
25877
25878
25879
25880
25881
25882
25883
25884 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25885 do
25886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25890   echo $ECHO_N "(cached) $ECHO_C" >&6
25891 else
25892   cat >conftest.$ac_ext <<_ACEOF
25893 /* confdefs.h.  */
25894 _ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h.  */
25898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25900 #define $ac_func innocuous_$ac_func
25901
25902 /* System header to define __stub macros and hopefully few prototypes,
25903     which can conflict with char $ac_func (); below.
25904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25905     <limits.h> exists even on freestanding compilers.  */
25906
25907 #ifdef __STDC__
25908 # include <limits.h>
25909 #else
25910 # include <assert.h>
25911 #endif
25912
25913 #undef $ac_func
25914
25915 /* Override any GCC internal prototype to avoid an error.
25916    Use char because int might match the return type of a GCC
25917    builtin and then its argument prototype would still apply.  */
25918 #ifdef __cplusplus
25919 extern "C"
25920 #endif
25921 char $ac_func ();
25922 /* The GNU C library defines this for functions which it implements
25923     to always fail with ENOSYS.  Some functions are actually named
25924     something starting with __ and the normal name is an alias.  */
25925 #if defined __stub_$ac_func || defined __stub___$ac_func
25926 choke me
25927 #endif
25928
25929 int
25930 main ()
25931 {
25932 return $ac_func ();
25933   ;
25934   return 0;
25935 }
25936 _ACEOF
25937 rm -f conftest.$ac_objext conftest$ac_exeext
25938 if { (ac_try="$ac_link"
25939 case "(($ac_try" in
25940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25941   *) ac_try_echo=$ac_try;;
25942 esac
25943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25944   (eval "$ac_link") 2>conftest.er1
25945   ac_status=$?
25946   grep -v '^ *+' conftest.er1 >conftest.err
25947   rm -f conftest.er1
25948   cat conftest.err >&5
25949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950   (exit $ac_status); } && {
25951          test -z "$ac_c_werror_flag" ||
25952          test ! -s conftest.err
25953        } && test -s conftest$ac_exeext &&
25954        $as_test_x conftest$ac_exeext; then
25955   eval "$as_ac_var=yes"
25956 else
25957   echo "$as_me: failed program was:" >&5
25958 sed 's/^/| /' conftest.$ac_ext >&5
25959
25960         eval "$as_ac_var=no"
25961 fi
25962
25963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25964       conftest$ac_exeext conftest.$ac_ext
25965 fi
25966 ac_res=`eval echo '${'$as_ac_var'}'`
25967                { echo "$as_me:$LINENO: result: $ac_res" >&5
25968 echo "${ECHO_T}$ac_res" >&6; }
25969 if test `eval echo '${'$as_ac_var'}'` = yes; then
25970   cat >>confdefs.h <<_ACEOF
25971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25972 _ACEOF
25973
25974 fi
25975 done
25976
25977
25978
25979 for ac_func in nanosleep nl_langinfo
25980 do
25981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25985   echo $ECHO_N "(cached) $ECHO_C" >&6
25986 else
25987   cat >conftest.$ac_ext <<_ACEOF
25988 /* confdefs.h.  */
25989 _ACEOF
25990 cat confdefs.h >>conftest.$ac_ext
25991 cat >>conftest.$ac_ext <<_ACEOF
25992 /* end confdefs.h.  */
25993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25995 #define $ac_func innocuous_$ac_func
25996
25997 /* System header to define __stub macros and hopefully few prototypes,
25998     which can conflict with char $ac_func (); below.
25999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26000     <limits.h> exists even on freestanding compilers.  */
26001
26002 #ifdef __STDC__
26003 # include <limits.h>
26004 #else
26005 # include <assert.h>
26006 #endif
26007
26008 #undef $ac_func
26009
26010 /* Override any GCC internal prototype to avoid an error.
26011    Use char because int might match the return type of a GCC
26012    builtin and then its argument prototype would still apply.  */
26013 #ifdef __cplusplus
26014 extern "C"
26015 #endif
26016 char $ac_func ();
26017 /* The GNU C library defines this for functions which it implements
26018     to always fail with ENOSYS.  Some functions are actually named
26019     something starting with __ and the normal name is an alias.  */
26020 #if defined __stub_$ac_func || defined __stub___$ac_func
26021 choke me
26022 #endif
26023
26024 int
26025 main ()
26026 {
26027 return $ac_func ();
26028   ;
26029   return 0;
26030 }
26031 _ACEOF
26032 rm -f conftest.$ac_objext conftest$ac_exeext
26033 if { (ac_try="$ac_link"
26034 case "(($ac_try" in
26035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26036   *) ac_try_echo=$ac_try;;
26037 esac
26038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26039   (eval "$ac_link") 2>conftest.er1
26040   ac_status=$?
26041   grep -v '^ *+' conftest.er1 >conftest.err
26042   rm -f conftest.er1
26043   cat conftest.err >&5
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); } && {
26046          test -z "$ac_c_werror_flag" ||
26047          test ! -s conftest.err
26048        } && test -s conftest$ac_exeext &&
26049        $as_test_x conftest$ac_exeext; then
26050   eval "$as_ac_var=yes"
26051 else
26052   echo "$as_me: failed program was:" >&5
26053 sed 's/^/| /' conftest.$ac_ext >&5
26054
26055         eval "$as_ac_var=no"
26056 fi
26057
26058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26059       conftest$ac_exeext conftest.$ac_ext
26060 fi
26061 ac_res=`eval echo '${'$as_ac_var'}'`
26062                { echo "$as_me:$LINENO: result: $ac_res" >&5
26063 echo "${ECHO_T}$ac_res" >&6; }
26064 if test `eval echo '${'$as_ac_var'}'` = yes; then
26065   cat >>confdefs.h <<_ACEOF
26066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26067 _ACEOF
26068
26069 fi
26070 done
26071
26072
26073 for ac_header in varargs.h
26074 do
26075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26077   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26080   echo $ECHO_N "(cached) $ECHO_C" >&6
26081 fi
26082 ac_res=`eval echo '${'$as_ac_Header'}'`
26083                { echo "$as_me:$LINENO: result: $ac_res" >&5
26084 echo "${ECHO_T}$ac_res" >&6; }
26085 else
26086   # Is the header compilable?
26087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26089 cat >conftest.$ac_ext <<_ACEOF
26090 /* confdefs.h.  */
26091 _ACEOF
26092 cat confdefs.h >>conftest.$ac_ext
26093 cat >>conftest.$ac_ext <<_ACEOF
26094 /* end confdefs.h.  */
26095 $ac_includes_default
26096 #include <$ac_header>
26097 _ACEOF
26098 rm -f conftest.$ac_objext
26099 if { (ac_try="$ac_compile"
26100 case "(($ac_try" in
26101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26102   *) ac_try_echo=$ac_try;;
26103 esac
26104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26105   (eval "$ac_compile") 2>conftest.er1
26106   ac_status=$?
26107   grep -v '^ *+' conftest.er1 >conftest.err
26108   rm -f conftest.er1
26109   cat conftest.err >&5
26110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111   (exit $ac_status); } && {
26112          test -z "$ac_c_werror_flag" ||
26113          test ! -s conftest.err
26114        } && test -s conftest.$ac_objext; then
26115   ac_header_compiler=yes
26116 else
26117   echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26119
26120         ac_header_compiler=no
26121 fi
26122
26123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26125 echo "${ECHO_T}$ac_header_compiler" >&6; }
26126
26127 # Is the header present?
26128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26130 cat >conftest.$ac_ext <<_ACEOF
26131 /* confdefs.h.  */
26132 _ACEOF
26133 cat confdefs.h >>conftest.$ac_ext
26134 cat >>conftest.$ac_ext <<_ACEOF
26135 /* end confdefs.h.  */
26136 #include <$ac_header>
26137 _ACEOF
26138 if { (ac_try="$ac_cpp conftest.$ac_ext"
26139 case "(($ac_try" in
26140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26141   *) ac_try_echo=$ac_try;;
26142 esac
26143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26144   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26145   ac_status=$?
26146   grep -v '^ *+' conftest.er1 >conftest.err
26147   rm -f conftest.er1
26148   cat conftest.err >&5
26149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150   (exit $ac_status); } >/dev/null && {
26151          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26152          test ! -s conftest.err
26153        }; then
26154   ac_header_preproc=yes
26155 else
26156   echo "$as_me: failed program was:" >&5
26157 sed 's/^/| /' conftest.$ac_ext >&5
26158
26159   ac_header_preproc=no
26160 fi
26161
26162 rm -f conftest.err conftest.$ac_ext
26163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26164 echo "${ECHO_T}$ac_header_preproc" >&6; }
26165
26166 # So?  What about this header?
26167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26168   yes:no: )
26169     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26173     ac_header_preproc=yes
26174     ;;
26175   no:yes:* )
26176     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26178     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26179 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26180     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26182     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26183 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26186     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26188
26189     ;;
26190 esac
26191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26194   echo $ECHO_N "(cached) $ECHO_C" >&6
26195 else
26196   eval "$as_ac_Header=\$ac_header_preproc"
26197 fi
26198 ac_res=`eval echo '${'$as_ac_Header'}'`
26199                { echo "$as_me:$LINENO: result: $ac_res" >&5
26200 echo "${ECHO_T}$ac_res" >&6; }
26201
26202 fi
26203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26204   cat >>confdefs.h <<_ACEOF
26205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26206 _ACEOF
26207
26208 fi
26209
26210 done
26211
26212
26213
26214 { echo "$as_me:$LINENO: checking for Python support" >&5
26215 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26216
26217 # Check whether --with-python was given.
26218 if test "${with_python+set}" = set; then
26219   withval=$with_python;
26220        PYTHON_INCDIR=
26221        PYTHON_LIBS=
26222        if test "$withval" != "no"; then
26223           if test "$withval" = "yes"; then
26224              for python_root in /usr /usr/local /usr/sfw; do
26225                 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26226                    if test -f $python_root/include/${ver}/Python.h; then
26227                       PYTHON_INCDIR=-I$python_root/include/${ver}
26228                       if test -d $python_root/lib64/${ver}/config; then
26229                          PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26230                       else
26231                          PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26232                       fi
26233                       break
26234                    fi
26235                 done
26236              done
26237
26238              if test x$PYTHON_INCDIR = x; then
26239                 if test -f $prefix/include/Python.h; then
26240                    PYTHON_INCDIR=-I$prefix/include
26241                    if test -d $prefix/lib64/config; then
26242                       PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26243                    else
26244                       PYTHON_LIBS="-L$prefix/lib/config -lpython"
26245                    fi
26246                 else
26247                    { echo "$as_me:$LINENO: result: no" >&5
26248 echo "${ECHO_T}no" >&6; }
26249                    { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26250 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26251    { (exit 1); exit 1; }; }
26252                 fi
26253              fi
26254           else
26255              if test -f $withval/Python.h; then
26256                 PYTHON_INCDIR=-I$withval
26257                 PYTHON_LIBS="-L$withval/config -lpython"
26258              elif test -f $withval/include/Python.h; then
26259                 PYTHON_INCDIR=-I$withval/include
26260                 if test -d $withval/lib64/config; then
26261                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
26262                 else
26263                    PYTHON_LIBS="-L$withval/lib/config -lpython"
26264                 fi
26265              elif test -f $withval/include/python/Python.h; then
26266                 PYTHON_INCDIR=-I$withval/include/python
26267                 if test -d $withval/lib64/python/config; then
26268                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26269                 else
26270                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26271                 fi
26272              else
26273                 { echo "$as_me:$LINENO: result: no" >&5
26274 echo "${ECHO_T}no" >&6; }
26275                 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26276 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26277    { (exit 1); exit 1; }; }
26278              fi
26279           fi
26280
26281           cat >>confdefs.h <<\_ACEOF
26282 #define HAVE_PYTHON 1
26283 _ACEOF
26284
26285           { echo "$as_me:$LINENO: result: yes" >&5
26286 echo "${ECHO_T}yes" >&6; }
26287           support_python=yes
26288           { echo "$as_me:$LINENO: checking for more Python libs" >&5
26289 echo "$as_me: checking for more Python libs" >&6;}
26290           saved_LIBS="$LIBS"; LIBS=
26291           { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26292 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26293 if test "${ac_cv_search_shm_open+set}" = set; then
26294   echo $ECHO_N "(cached) $ECHO_C" >&6
26295 else
26296   ac_func_search_save_LIBS=$LIBS
26297 cat >conftest.$ac_ext <<_ACEOF
26298 /* confdefs.h.  */
26299 _ACEOF
26300 cat confdefs.h >>conftest.$ac_ext
26301 cat >>conftest.$ac_ext <<_ACEOF
26302 /* end confdefs.h.  */
26303
26304 /* Override any GCC internal prototype to avoid an error.
26305    Use char because int might match the return type of a GCC
26306    builtin and then its argument prototype would still apply.  */
26307 #ifdef __cplusplus
26308 extern "C"
26309 #endif
26310 char shm_open ();
26311 int
26312 main ()
26313 {
26314 return shm_open ();
26315   ;
26316   return 0;
26317 }
26318 _ACEOF
26319 for ac_lib in '' rt; do
26320   if test -z "$ac_lib"; then
26321     ac_res="none required"
26322   else
26323     ac_res=-l$ac_lib
26324     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26325   fi
26326   rm -f conftest.$ac_objext conftest$ac_exeext
26327 if { (ac_try="$ac_link"
26328 case "(($ac_try" in
26329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26330   *) ac_try_echo=$ac_try;;
26331 esac
26332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26333   (eval "$ac_link") 2>conftest.er1
26334   ac_status=$?
26335   grep -v '^ *+' conftest.er1 >conftest.err
26336   rm -f conftest.er1
26337   cat conftest.err >&5
26338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339   (exit $ac_status); } && {
26340          test -z "$ac_c_werror_flag" ||
26341          test ! -s conftest.err
26342        } && test -s conftest$ac_exeext &&
26343        $as_test_x conftest$ac_exeext; then
26344   ac_cv_search_shm_open=$ac_res
26345 else
26346   echo "$as_me: failed program was:" >&5
26347 sed 's/^/| /' conftest.$ac_ext >&5
26348
26349
26350 fi
26351
26352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26353       conftest$ac_exeext
26354   if test "${ac_cv_search_shm_open+set}" = set; then
26355   break
26356 fi
26357 done
26358 if test "${ac_cv_search_shm_open+set}" = set; then
26359   :
26360 else
26361   ac_cv_search_shm_open=no
26362 fi
26363 rm conftest.$ac_ext
26364 LIBS=$ac_func_search_save_LIBS
26365 fi
26366 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26367 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26368 ac_res=$ac_cv_search_shm_open
26369 if test "$ac_res" != no; then
26370   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26371
26372 fi
26373
26374
26375 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26376 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26377 if test "${ac_cv_lib_util_openpty+set}" = set; then
26378   echo $ECHO_N "(cached) $ECHO_C" >&6
26379 else
26380   ac_check_lib_save_LIBS=$LIBS
26381 LIBS="-lutil  $LIBS"
26382 cat >conftest.$ac_ext <<_ACEOF
26383 /* confdefs.h.  */
26384 _ACEOF
26385 cat confdefs.h >>conftest.$ac_ext
26386 cat >>conftest.$ac_ext <<_ACEOF
26387 /* end confdefs.h.  */
26388
26389 /* Override any GCC internal prototype to avoid an error.
26390    Use char because int might match the return type of a GCC
26391    builtin and then its argument prototype would still apply.  */
26392 #ifdef __cplusplus
26393 extern "C"
26394 #endif
26395 char openpty ();
26396 int
26397 main ()
26398 {
26399 return openpty ();
26400   ;
26401   return 0;
26402 }
26403 _ACEOF
26404 rm -f conftest.$ac_objext conftest$ac_exeext
26405 if { (ac_try="$ac_link"
26406 case "(($ac_try" in
26407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26408   *) ac_try_echo=$ac_try;;
26409 esac
26410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26411   (eval "$ac_link") 2>conftest.er1
26412   ac_status=$?
26413   grep -v '^ *+' conftest.er1 >conftest.err
26414   rm -f conftest.er1
26415   cat conftest.err >&5
26416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417   (exit $ac_status); } && {
26418          test -z "$ac_c_werror_flag" ||
26419          test ! -s conftest.err
26420        } && test -s conftest$ac_exeext &&
26421        $as_test_x conftest$ac_exeext; then
26422   ac_cv_lib_util_openpty=yes
26423 else
26424   echo "$as_me: failed program was:" >&5
26425 sed 's/^/| /' conftest.$ac_ext >&5
26426
26427         ac_cv_lib_util_openpty=no
26428 fi
26429
26430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26431       conftest$ac_exeext conftest.$ac_ext
26432 LIBS=$ac_check_lib_save_LIBS
26433 fi
26434 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26435 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26436 if test $ac_cv_lib_util_openpty = yes; then
26437   cat >>confdefs.h <<_ACEOF
26438 #define HAVE_LIBUTIL 1
26439 _ACEOF
26440
26441   LIBS="-lutil $LIBS"
26442
26443 fi
26444
26445           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26446           LIBS="$saved_LIBS"
26447        else
26448           { echo "$as_me:$LINENO: result: no" >&5
26449 echo "${ECHO_T}no" >&6; }
26450        fi
26451
26452 else
26453
26454        { echo "$as_me:$LINENO: result: no" >&5
26455 echo "${ECHO_T}no" >&6; }
26456
26457
26458 fi
26459
26460
26461
26462
26463 { echo "$as_me:$LINENO: checking for socket" >&5
26464 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26465 if test "${ac_cv_func_socket+set}" = set; then
26466   echo $ECHO_N "(cached) $ECHO_C" >&6
26467 else
26468   cat >conftest.$ac_ext <<_ACEOF
26469 /* confdefs.h.  */
26470 _ACEOF
26471 cat confdefs.h >>conftest.$ac_ext
26472 cat >>conftest.$ac_ext <<_ACEOF
26473 /* end confdefs.h.  */
26474 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26476 #define socket innocuous_socket
26477
26478 /* System header to define __stub macros and hopefully few prototypes,
26479     which can conflict with char socket (); below.
26480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26481     <limits.h> exists even on freestanding compilers.  */
26482
26483 #ifdef __STDC__
26484 # include <limits.h>
26485 #else
26486 # include <assert.h>
26487 #endif
26488
26489 #undef socket
26490
26491 /* Override any GCC internal prototype to avoid an error.
26492    Use char because int might match the return type of a GCC
26493    builtin and then its argument prototype would still apply.  */
26494 #ifdef __cplusplus
26495 extern "C"
26496 #endif
26497 char socket ();
26498 /* The GNU C library defines this for functions which it implements
26499     to always fail with ENOSYS.  Some functions are actually named
26500     something starting with __ and the normal name is an alias.  */
26501 #if defined __stub_socket || defined __stub___socket
26502 choke me
26503 #endif
26504
26505 int
26506 main ()
26507 {
26508 return socket ();
26509   ;
26510   return 0;
26511 }
26512 _ACEOF
26513 rm -f conftest.$ac_objext conftest$ac_exeext
26514 if { (ac_try="$ac_link"
26515 case "(($ac_try" in
26516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26517   *) ac_try_echo=$ac_try;;
26518 esac
26519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26520   (eval "$ac_link") 2>conftest.er1
26521   ac_status=$?
26522   grep -v '^ *+' conftest.er1 >conftest.err
26523   rm -f conftest.er1
26524   cat conftest.err >&5
26525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526   (exit $ac_status); } && {
26527          test -z "$ac_c_werror_flag" ||
26528          test ! -s conftest.err
26529        } && test -s conftest$ac_exeext &&
26530        $as_test_x conftest$ac_exeext; then
26531   ac_cv_func_socket=yes
26532 else
26533   echo "$as_me: failed program was:" >&5
26534 sed 's/^/| /' conftest.$ac_ext >&5
26535
26536         ac_cv_func_socket=no
26537 fi
26538
26539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26540       conftest$ac_exeext conftest.$ac_ext
26541 fi
26542 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26543 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26544 if test $ac_cv_func_socket = yes; then
26545   { echo "$as_me:$LINENO: result: using libc's socket" >&5
26546 echo "${ECHO_T}using libc's socket" >&6; }
26547 else
26548
26549 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26550 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26551 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26552   echo $ECHO_N "(cached) $ECHO_C" >&6
26553 else
26554   ac_check_lib_save_LIBS=$LIBS
26555 LIBS="-lxnet  $LIBS"
26556 cat >conftest.$ac_ext <<_ACEOF
26557 /* confdefs.h.  */
26558 _ACEOF
26559 cat confdefs.h >>conftest.$ac_ext
26560 cat >>conftest.$ac_ext <<_ACEOF
26561 /* end confdefs.h.  */
26562
26563 /* Override any GCC internal prototype to avoid an error.
26564    Use char because int might match the return type of a GCC
26565    builtin and then its argument prototype would still apply.  */
26566 #ifdef __cplusplus
26567 extern "C"
26568 #endif
26569 char socket ();
26570 int
26571 main ()
26572 {
26573 return socket ();
26574   ;
26575   return 0;
26576 }
26577 _ACEOF
26578 rm -f conftest.$ac_objext conftest$ac_exeext
26579 if { (ac_try="$ac_link"
26580 case "(($ac_try" in
26581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26582   *) ac_try_echo=$ac_try;;
26583 esac
26584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26585   (eval "$ac_link") 2>conftest.er1
26586   ac_status=$?
26587   grep -v '^ *+' conftest.er1 >conftest.err
26588   rm -f conftest.er1
26589   cat conftest.err >&5
26590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591   (exit $ac_status); } && {
26592          test -z "$ac_c_werror_flag" ||
26593          test ! -s conftest.err
26594        } && test -s conftest$ac_exeext &&
26595        $as_test_x conftest$ac_exeext; then
26596   ac_cv_lib_xnet_socket=yes
26597 else
26598   echo "$as_me: failed program was:" >&5
26599 sed 's/^/| /' conftest.$ac_ext >&5
26600
26601         ac_cv_lib_xnet_socket=no
26602 fi
26603
26604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26605       conftest$ac_exeext conftest.$ac_ext
26606 LIBS=$ac_check_lib_save_LIBS
26607 fi
26608 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26609 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26610 if test $ac_cv_lib_xnet_socket = yes; then
26611   cat >>confdefs.h <<_ACEOF
26612 #define HAVE_LIBXNET 1
26613 _ACEOF
26614
26615   LIBS="-lxnet $LIBS"
26616
26617 fi
26618
26619
26620 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26621 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26622 if test "${ac_cv_lib_socket_socket+set}" = set; then
26623   echo $ECHO_N "(cached) $ECHO_C" >&6
26624 else
26625   ac_check_lib_save_LIBS=$LIBS
26626 LIBS="-lsocket  $LIBS"
26627 cat >conftest.$ac_ext <<_ACEOF
26628 /* confdefs.h.  */
26629 _ACEOF
26630 cat confdefs.h >>conftest.$ac_ext
26631 cat >>conftest.$ac_ext <<_ACEOF
26632 /* end confdefs.h.  */
26633
26634 /* Override any GCC internal prototype to avoid an error.
26635    Use char because int might match the return type of a GCC
26636    builtin and then its argument prototype would still apply.  */
26637 #ifdef __cplusplus
26638 extern "C"
26639 #endif
26640 char socket ();
26641 int
26642 main ()
26643 {
26644 return socket ();
26645   ;
26646   return 0;
26647 }
26648 _ACEOF
26649 rm -f conftest.$ac_objext conftest$ac_exeext
26650 if { (ac_try="$ac_link"
26651 case "(($ac_try" in
26652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26653   *) ac_try_echo=$ac_try;;
26654 esac
26655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26656   (eval "$ac_link") 2>conftest.er1
26657   ac_status=$?
26658   grep -v '^ *+' conftest.er1 >conftest.err
26659   rm -f conftest.er1
26660   cat conftest.err >&5
26661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662   (exit $ac_status); } && {
26663          test -z "$ac_c_werror_flag" ||
26664          test ! -s conftest.err
26665        } && test -s conftest$ac_exeext &&
26666        $as_test_x conftest$ac_exeext; then
26667   ac_cv_lib_socket_socket=yes
26668 else
26669   echo "$as_me: failed program was:" >&5
26670 sed 's/^/| /' conftest.$ac_ext >&5
26671
26672         ac_cv_lib_socket_socket=no
26673 fi
26674
26675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26676       conftest$ac_exeext conftest.$ac_ext
26677 LIBS=$ac_check_lib_save_LIBS
26678 fi
26679 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26680 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26681 if test $ac_cv_lib_socket_socket = yes; then
26682   cat >>confdefs.h <<_ACEOF
26683 #define HAVE_LIBSOCKET 1
26684 _ACEOF
26685
26686   LIBS="-lsocket $LIBS"
26687
26688 fi
26689
26690
26691 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26692 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26693 if test "${ac_cv_lib_inet_socket+set}" = set; then
26694   echo $ECHO_N "(cached) $ECHO_C" >&6
26695 else
26696   ac_check_lib_save_LIBS=$LIBS
26697 LIBS="-linet  $LIBS"
26698 cat >conftest.$ac_ext <<_ACEOF
26699 /* confdefs.h.  */
26700 _ACEOF
26701 cat confdefs.h >>conftest.$ac_ext
26702 cat >>conftest.$ac_ext <<_ACEOF
26703 /* end confdefs.h.  */
26704
26705 /* Override any GCC internal prototype to avoid an error.
26706    Use char because int might match the return type of a GCC
26707    builtin and then its argument prototype would still apply.  */
26708 #ifdef __cplusplus
26709 extern "C"
26710 #endif
26711 char socket ();
26712 int
26713 main ()
26714 {
26715 return socket ();
26716   ;
26717   return 0;
26718 }
26719 _ACEOF
26720 rm -f conftest.$ac_objext conftest$ac_exeext
26721 if { (ac_try="$ac_link"
26722 case "(($ac_try" in
26723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26724   *) ac_try_echo=$ac_try;;
26725 esac
26726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26727   (eval "$ac_link") 2>conftest.er1
26728   ac_status=$?
26729   grep -v '^ *+' conftest.er1 >conftest.err
26730   rm -f conftest.er1
26731   cat conftest.err >&5
26732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733   (exit $ac_status); } && {
26734          test -z "$ac_c_werror_flag" ||
26735          test ! -s conftest.err
26736        } && test -s conftest$ac_exeext &&
26737        $as_test_x conftest$ac_exeext; then
26738   ac_cv_lib_inet_socket=yes
26739 else
26740   echo "$as_me: failed program was:" >&5
26741 sed 's/^/| /' conftest.$ac_ext >&5
26742
26743         ac_cv_lib_inet_socket=no
26744 fi
26745
26746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26747       conftest$ac_exeext conftest.$ac_ext
26748 LIBS=$ac_check_lib_save_LIBS
26749 fi
26750 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26751 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26752 if test $ac_cv_lib_inet_socket = yes; then
26753   cat >>confdefs.h <<_ACEOF
26754 #define HAVE_LIBINET 1
26755 _ACEOF
26756
26757   LIBS="-linet $LIBS"
26758
26759 fi
26760
26761 fi
26762
26763
26764 TCPW_MSG="no"
26765 WRAPLIBS=""
26766
26767 # Check whether --with-tcp-wrappers was given.
26768 if test "${with_tcp_wrappers+set}" = set; then
26769   withval=$with_tcp_wrappers;
26770        if test "x$withval" != "xno" ; then
26771           saved_LIBS="$LIBS"
26772           LIBS="$saved_LIBS -lwrap"
26773           { echo "$as_me:$LINENO: checking for libwrap" >&5
26774 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26775           { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26776 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26777 if test "${ac_cv_search_nanosleep+set}" = set; then
26778   echo $ECHO_N "(cached) $ECHO_C" >&6
26779 else
26780   ac_func_search_save_LIBS=$LIBS
26781 cat >conftest.$ac_ext <<_ACEOF
26782 /* confdefs.h.  */
26783 _ACEOF
26784 cat confdefs.h >>conftest.$ac_ext
26785 cat >>conftest.$ac_ext <<_ACEOF
26786 /* end confdefs.h.  */
26787
26788 /* Override any GCC internal prototype to avoid an error.
26789    Use char because int might match the return type of a GCC
26790    builtin and then its argument prototype would still apply.  */
26791 #ifdef __cplusplus
26792 extern "C"
26793 #endif
26794 char nanosleep ();
26795 int
26796 main ()
26797 {
26798 return nanosleep ();
26799   ;
26800   return 0;
26801 }
26802 _ACEOF
26803 for ac_lib in '' rt; do
26804   if test -z "$ac_lib"; then
26805     ac_res="none required"
26806   else
26807     ac_res=-l$ac_lib
26808     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26809   fi
26810   rm -f conftest.$ac_objext conftest$ac_exeext
26811 if { (ac_try="$ac_link"
26812 case "(($ac_try" in
26813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814   *) ac_try_echo=$ac_try;;
26815 esac
26816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26817   (eval "$ac_link") 2>conftest.er1
26818   ac_status=$?
26819   grep -v '^ *+' conftest.er1 >conftest.err
26820   rm -f conftest.er1
26821   cat conftest.err >&5
26822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823   (exit $ac_status); } && {
26824          test -z "$ac_c_werror_flag" ||
26825          test ! -s conftest.err
26826        } && test -s conftest$ac_exeext &&
26827        $as_test_x conftest$ac_exeext; then
26828   ac_cv_search_nanosleep=$ac_res
26829 else
26830   echo "$as_me: failed program was:" >&5
26831 sed 's/^/| /' conftest.$ac_ext >&5
26832
26833
26834 fi
26835
26836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26837       conftest$ac_exeext
26838   if test "${ac_cv_search_nanosleep+set}" = set; then
26839   break
26840 fi
26841 done
26842 if test "${ac_cv_search_nanosleep+set}" = set; then
26843   :
26844 else
26845   ac_cv_search_nanosleep=no
26846 fi
26847 rm conftest.$ac_ext
26848 LIBS=$ac_func_search_save_LIBS
26849 fi
26850 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26851 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26852 ac_res=$ac_cv_search_nanosleep
26853 if test "$ac_res" != no; then
26854   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26855
26856 fi
26857
26858           cat >conftest.$ac_ext <<_ACEOF
26859 /* confdefs.h.  */
26860 _ACEOF
26861 cat confdefs.h >>conftest.$ac_ext
26862 cat >>conftest.$ac_ext <<_ACEOF
26863 /* end confdefs.h.  */
26864
26865                #include <sys/types.h>
26866                #include <tcpd.h>
26867                int deny_severity = 0;
26868                int allow_severity = 0;
26869                struct request_info *req;
26870
26871 int
26872 main ()
26873 {
26874
26875                 hosts_access(req);
26876
26877   ;
26878   return 0;
26879 }
26880 _ACEOF
26881 rm -f conftest.$ac_objext conftest$ac_exeext
26882 if { (ac_try="$ac_link"
26883 case "(($ac_try" in
26884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26885   *) ac_try_echo=$ac_try;;
26886 esac
26887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26888   (eval "$ac_link") 2>conftest.er1
26889   ac_status=$?
26890   grep -v '^ *+' conftest.er1 >conftest.err
26891   rm -f conftest.er1
26892   cat conftest.err >&5
26893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894   (exit $ac_status); } && {
26895          test -z "$ac_c_werror_flag" ||
26896          test ! -s conftest.err
26897        } && test -s conftest$ac_exeext &&
26898        $as_test_x conftest$ac_exeext; then
26899
26900                  { echo "$as_me:$LINENO: result: yes" >&5
26901 echo "${ECHO_T}yes" >&6; }
26902
26903 cat >>confdefs.h <<\_ACEOF
26904 #define HAVE_LIBWRAP 1
26905 _ACEOF
26906
26907                  TCPW_MSG="yes"
26908                  LIBS="$saved_LIBS"
26909                  WRAPLIBS="-lwrap"
26910
26911 else
26912   echo "$as_me: failed program was:" >&5
26913 sed 's/^/| /' conftest.$ac_ext >&5
26914
26915
26916                  LIBS="$saved_LIBS -lwrap -lnsl"
26917                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26918                  cat >conftest.$ac_ext <<_ACEOF
26919 /* confdefs.h.  */
26920 _ACEOF
26921 cat confdefs.h >>conftest.$ac_ext
26922 cat >>conftest.$ac_ext <<_ACEOF
26923 /* end confdefs.h.  */
26924
26925                        #include <sys/types.h>
26926                        #include <tcpd.h>
26927                        int deny_severity = 0;
26928                        int allow_severity = 0;
26929                        struct request_info *req;
26930
26931 int
26932 main ()
26933 {
26934
26935                        hosts_access(req);
26936
26937   ;
26938   return 0;
26939 }
26940 _ACEOF
26941 rm -f conftest.$ac_objext conftest$ac_exeext
26942 if { (ac_try="$ac_link"
26943 case "(($ac_try" in
26944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26945   *) ac_try_echo=$ac_try;;
26946 esac
26947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26948   (eval "$ac_link") 2>conftest.er1
26949   ac_status=$?
26950   grep -v '^ *+' conftest.er1 >conftest.err
26951   rm -f conftest.er1
26952   cat conftest.err >&5
26953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954   (exit $ac_status); } && {
26955          test -z "$ac_c_werror_flag" ||
26956          test ! -s conftest.err
26957        } && test -s conftest$ac_exeext &&
26958        $as_test_x conftest$ac_exeext; then
26959
26960                       { echo "$as_me:$LINENO: result: yes" >&5
26961 echo "${ECHO_T}yes" >&6; }
26962
26963 cat >>confdefs.h <<\_ACEOF
26964 #define HAVE_LIBWRAP 1
26965 _ACEOF
26966
26967                       TCPW_MSG="yes"
26968                       LIBS="$saved_LIBS"
26969                       WRAPLIBS="-lwrap"
26970
26971 else
26972   echo "$as_me: failed program was:" >&5
26973 sed 's/^/| /' conftest.$ac_ext >&5
26974
26975
26976                       { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26977 echo "$as_me: error: *** libwrap missing" >&2;}
26978    { (exit 1); exit 1; }; }
26979
26980
26981 fi
26982
26983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26984       conftest$ac_exeext conftest.$ac_ext
26985
26986
26987 fi
26988
26989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26990       conftest$ac_exeext conftest.$ac_ext
26991        fi
26992
26993
26994 fi
26995
26996
26997 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26998 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26999
27000 # Check whether --with-openssl was given.
27001 if test "${with_openssl+set}" = set; then
27002   withval=$with_openssl;
27003         with_openssl_directory=${withval}
27004
27005
27006 fi
27007
27008
27009 if test "x$with_openssl_directory" != "xno"; then
27010    OPENSSL_LIBS="-lssl -lcrypto"
27011    OPENSSL_INC=""
27012
27013    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27014       #
27015       # Make sure the $with_openssl_directory also makes sense
27016       #
27017       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27018          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27019          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27020       fi
27021    fi
27022
27023    saved_LIBS="${LIBS}"
27024    saved_CFLAGS="${CFLAGS}"
27025    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27026    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27027
27028    cat >conftest.$ac_ext <<_ACEOF
27029 /* confdefs.h.  */
27030 _ACEOF
27031 cat confdefs.h >>conftest.$ac_ext
27032 cat >>conftest.$ac_ext <<_ACEOF
27033 /* end confdefs.h.  */
27034
27035           #include <openssl/ssl.h>
27036
27037 int
27038 main ()
27039 {
27040
27041            CRYPTO_set_id_callback(NULL);
27042
27043   ;
27044   return 0;
27045 }
27046 _ACEOF
27047 rm -f conftest.$ac_objext conftest$ac_exeext
27048 if { (ac_try="$ac_link"
27049 case "(($ac_try" in
27050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27051   *) ac_try_echo=$ac_try;;
27052 esac
27053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27054   (eval "$ac_link") 2>conftest.er1
27055   ac_status=$?
27056   grep -v '^ *+' conftest.er1 >conftest.err
27057   rm -f conftest.er1
27058   cat conftest.err >&5
27059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); } && {
27061          test -z "$ac_c_werror_flag" ||
27062          test ! -s conftest.err
27063        } && test -s conftest$ac_exeext &&
27064        $as_test_x conftest$ac_exeext; then
27065
27066           support_tls="yes"
27067           support_crypto="yes"
27068
27069 else
27070   echo "$as_me: failed program was:" >&5
27071 sed 's/^/| /' conftest.$ac_ext >&5
27072
27073
27074           support_tls="no"
27075
27076
27077 fi
27078
27079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27080       conftest$ac_exeext conftest.$ac_ext
27081
27082    cat >conftest.$ac_ext <<_ACEOF
27083 /* confdefs.h.  */
27084 _ACEOF
27085 cat confdefs.h >>conftest.$ac_ext
27086 cat >>conftest.$ac_ext <<_ACEOF
27087 /* end confdefs.h.  */
27088
27089           #include <openssl/evp.h>
27090
27091 int
27092 main ()
27093 {
27094
27095           EVP_sha512();
27096
27097   ;
27098   return 0;
27099 }
27100 _ACEOF
27101 rm -f conftest.$ac_objext conftest$ac_exeext
27102 if { (ac_try="$ac_link"
27103 case "(($ac_try" in
27104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105   *) ac_try_echo=$ac_try;;
27106 esac
27107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108   (eval "$ac_link") 2>conftest.er1
27109   ac_status=$?
27110   grep -v '^ *+' conftest.er1 >conftest.err
27111   rm -f conftest.er1
27112   cat conftest.err >&5
27113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114   (exit $ac_status); } && {
27115          test -z "$ac_c_werror_flag" ||
27116          test ! -s conftest.err
27117        } && test -s conftest$ac_exeext &&
27118        $as_test_x conftest$ac_exeext; then
27119
27120           ac_cv_openssl_sha2="yes"
27121
27122 else
27123   echo "$as_me: failed program was:" >&5
27124 sed 's/^/| /' conftest.$ac_ext >&5
27125
27126
27127           ac_cv_openssl_sha2="no"
27128
27129
27130 fi
27131
27132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27133       conftest$ac_exeext conftest.$ac_ext
27134
27135                cat >conftest.$ac_ext <<_ACEOF
27136 /* confdefs.h.  */
27137 _ACEOF
27138 cat confdefs.h >>conftest.$ac_ext
27139 cat >>conftest.$ac_ext <<_ACEOF
27140 /* end confdefs.h.  */
27141
27142           #include <openssl/evp.h>
27143
27144 int
27145 main ()
27146 {
27147
27148           EVP_aes_192_cbc();
27149
27150   ;
27151   return 0;
27152 }
27153 _ACEOF
27154 rm -f conftest.$ac_objext conftest$ac_exeext
27155 if { (ac_try="$ac_link"
27156 case "(($ac_try" in
27157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27158   *) ac_try_echo=$ac_try;;
27159 esac
27160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27161   (eval "$ac_link") 2>conftest.er1
27162   ac_status=$?
27163   grep -v '^ *+' conftest.er1 >conftest.err
27164   rm -f conftest.er1
27165   cat conftest.err >&5
27166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167   (exit $ac_status); } && {
27168          test -z "$ac_c_werror_flag" ||
27169          test ! -s conftest.err
27170        } && test -s conftest$ac_exeext &&
27171        $as_test_x conftest$ac_exeext; then
27172
27173           ac_cv_openssl_export="no"
27174
27175 else
27176   echo "$as_me: failed program was:" >&5
27177 sed 's/^/| /' conftest.$ac_ext >&5
27178
27179
27180           ac_cv_openssl_export="yes"
27181
27182
27183 fi
27184
27185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27186       conftest$ac_exeext conftest.$ac_ext
27187
27188    LIBS="${saved_LIBS}"
27189    CFLAGS="${saved_CFLAGS}"
27190
27191    if test "$support_tls" = "yes"; then
27192
27193 cat >>confdefs.h <<\_ACEOF
27194 #define HAVE_OPENSSL 1
27195 _ACEOF
27196
27197
27198 cat >>confdefs.h <<\_ACEOF
27199 #define HAVE_TLS 1
27200 _ACEOF
27201
27202
27203 cat >>confdefs.h <<\_ACEOF
27204 #define HAVE_CRYPTO 1
27205 _ACEOF
27206
27207    fi
27208
27209    if test "$ac_cv_openssl_sha2" = "yes"; then
27210
27211 cat >>confdefs.h <<\_ACEOF
27212 #define HAVE_SHA2 1
27213 _ACEOF
27214
27215    fi
27216
27217    if test "$ac_cv_openssl_export" = "yes"; then
27218
27219 cat >>confdefs.h <<\_ACEOF
27220 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27221 _ACEOF
27222
27223    fi
27224 else
27225    support_tls="no"
27226    support_crypto="no"
27227    OPENSSL_LIBS=""
27228    OPENSSL_INC=""
27229 fi
27230
27231 { echo "$as_me:$LINENO: result: $support_tls" >&5
27232 echo "${ECHO_T}$support_tls" >&6; }
27233
27234
27235
27236 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27237 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27238 if test "${ac_cv_search_dlopen+set}" = set; then
27239   echo $ECHO_N "(cached) $ECHO_C" >&6
27240 else
27241   ac_func_search_save_LIBS=$LIBS
27242 cat >conftest.$ac_ext <<_ACEOF
27243 /* confdefs.h.  */
27244 _ACEOF
27245 cat confdefs.h >>conftest.$ac_ext
27246 cat >>conftest.$ac_ext <<_ACEOF
27247 /* end confdefs.h.  */
27248
27249 /* Override any GCC internal prototype to avoid an error.
27250    Use char because int might match the return type of a GCC
27251    builtin and then its argument prototype would still apply.  */
27252 #ifdef __cplusplus
27253 extern "C"
27254 #endif
27255 char dlopen ();
27256 int
27257 main ()
27258 {
27259 return dlopen ();
27260   ;
27261   return 0;
27262 }
27263 _ACEOF
27264 for ac_lib in '' dl; do
27265   if test -z "$ac_lib"; then
27266     ac_res="none required"
27267   else
27268     ac_res=-l$ac_lib
27269     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27270   fi
27271   rm -f conftest.$ac_objext conftest$ac_exeext
27272 if { (ac_try="$ac_link"
27273 case "(($ac_try" in
27274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27275   *) ac_try_echo=$ac_try;;
27276 esac
27277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27278   (eval "$ac_link") 2>conftest.er1
27279   ac_status=$?
27280   grep -v '^ *+' conftest.er1 >conftest.err
27281   rm -f conftest.er1
27282   cat conftest.err >&5
27283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284   (exit $ac_status); } && {
27285          test -z "$ac_c_werror_flag" ||
27286          test ! -s conftest.err
27287        } && test -s conftest$ac_exeext &&
27288        $as_test_x conftest$ac_exeext; then
27289   ac_cv_search_dlopen=$ac_res
27290 else
27291   echo "$as_me: failed program was:" >&5
27292 sed 's/^/| /' conftest.$ac_ext >&5
27293
27294
27295 fi
27296
27297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27298       conftest$ac_exeext
27299   if test "${ac_cv_search_dlopen+set}" = set; then
27300   break
27301 fi
27302 done
27303 if test "${ac_cv_search_dlopen+set}" = set; then
27304   :
27305 else
27306   ac_cv_search_dlopen=no
27307 fi
27308 rm conftest.$ac_ext
27309 LIBS=$ac_func_search_save_LIBS
27310 fi
27311 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27312 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27313 ac_res=$ac_cv_search_dlopen
27314 if test "$ac_res" != no; then
27315   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27316
27317 fi
27318
27319
27320 working_dir=`eval echo ${prefix}/var/bacula/working`
27321
27322 # Check whether --with-working-dir was given.
27323 if test "${with_working_dir+set}" = set; then
27324   withval=$with_working_dir;
27325        if test "x$withval" != "xno" ; then
27326          working_dir=$withval
27327        fi
27328
27329
27330 fi
27331
27332
27333
27334
27335 archive_dir=/tmp
27336
27337 # Check whether --with-archivedir was given.
27338 if test "${with_archivedir+set}" = set; then
27339   withval=$with_archivedir;
27340        if test "x$withval" != "xno" ; then
27341           archivedir=$withval
27342        fi
27343
27344
27345 fi
27346
27347
27348
27349
27350 scriptdir=`eval echo ${sysconfdir}`
27351
27352 # Check whether --with-scriptdir was given.
27353 if test "${with_scriptdir+set}" = set; then
27354   withval=$with_scriptdir;
27355        if test "x$withval" != "xno" ; then
27356           scriptdir=$withval
27357        fi
27358
27359
27360 fi
27361
27362
27363
27364
27365 # ------------------------------------------
27366 # Where to place plugindir (plugin files)
27367 # ------------------------------------------
27368 plugindir=`eval echo ${sysconfdir}`
27369
27370 # Check whether --with-plugindir was given.
27371 if test "${with_plugindir+set}" = set; then
27372   withval=$with_plugindir;
27373        if test "x$withval" != "xno" ; then
27374           plugindir=$withval
27375        fi
27376
27377
27378 fi
27379
27380
27381
27382
27383 dump_email=root@localhost
27384
27385 # Check whether --with-dump-email was given.
27386 if test "${with_dump_email+set}" = set; then
27387   withval=$with_dump_email;
27388        if test "x$withval" != "xno" ; then
27389           dump_email=$withval
27390        fi
27391
27392
27393 fi
27394
27395
27396
27397
27398 job_email=root@localhost
27399
27400 # Check whether --with-job-email was given.
27401 if test "${with_job_email+set}" = set; then
27402   withval=$with_job_email;
27403        if test "x$withval" != "xno" ; then
27404           job_email=$withval
27405        fi
27406
27407
27408 fi
27409
27410
27411
27412
27413 smtp_host=localhost
27414
27415 # Check whether --with-smtp_host was given.
27416 if test "${with_smtp_host+set}" = set; then
27417   withval=$with_smtp_host;
27418        if test "x$withval" != "xno" ; then
27419           smtp_host=$withval
27420        fi
27421
27422
27423 fi
27424
27425
27426
27427
27428 piddir=/var/run
27429
27430 # Check whether --with-pid-dir was given.
27431 if test "${with_pid_dir+set}" = set; then
27432   withval=$with_pid_dir;
27433        if test "x$withval" != "xno" ; then
27434           piddir=$withval
27435        fi
27436
27437
27438 fi
27439
27440
27441 cat >>confdefs.h <<_ACEOF
27442 #define _PATH_BACULA_PIDDIR "$piddir"
27443 _ACEOF
27444
27445
27446
27447 subsysdir=/var/run/subsys
27448 if test -d /var/run/subsys; then
27449    subsysdir=/var/run/subsys
27450 elif test -d /var/lock/subsys; then
27451    subsysdir=/var/lock/subsys
27452 else
27453    subsysdir=/var/run/subsys
27454 fi
27455
27456 # Check whether --with-subsys-dir was given.
27457 if test "${with_subsys_dir+set}" = set; then
27458   withval=$with_subsys_dir;
27459        if test "x$withval" != "xno" ; then
27460           subsysdir=$withval
27461        fi
27462
27463
27464 fi
27465
27466
27467
27468
27469 baseport=9101
27470
27471 # Check whether --with-baseport was given.
27472 if test "${with_baseport+set}" = set; then
27473   withval=$with_baseport;
27474        if test "x$withval" != "xno" ; then
27475           baseport=$withval
27476        fi
27477
27478
27479 fi
27480
27481
27482
27483 dir_port=`expr $baseport`
27484 fd_port=`expr $baseport + 1`
27485 sd_port=`expr $fd_port + 1`
27486
27487
27488
27489
27490
27491 dir_password=
27492
27493 # Check whether --with-dir-password was given.
27494 if test "${with_dir_password+set}" = set; then
27495   withval=$with_dir_password;
27496        if test "x$withval" != "xno" ; then
27497           dir_password=$withval
27498        fi
27499
27500
27501 fi
27502
27503
27504 if test "x$dir_password" = "x" ; then
27505    if test "x$OPENSSL" = "xnone" ; then
27506       key=`autoconf/randpass 33`
27507    else
27508       key=`openssl rand -base64 33`
27509    fi
27510    dir_password=$key
27511 fi
27512
27513 fd_password=
27514
27515 # Check whether --with-fd-password was given.
27516 if test "${with_fd_password+set}" = set; then
27517   withval=$with_fd_password;
27518        if test "x$withval" != "xno" ; then
27519           fd_password=$withval
27520        fi
27521
27522
27523 fi
27524
27525
27526 if test "x$fd_password" = "x" ; then
27527    if test "x$OPENSSL" = "xnone" ; then
27528       key=`autoconf/randpass 37`
27529    else
27530       key=`openssl rand -base64 33`
27531    fi
27532    fd_password=$key
27533 fi
27534
27535 sd_password=
27536
27537 # Check whether --with-sd-password was given.
27538 if test "${with_sd_password+set}" = set; then
27539   withval=$with_sd_password;
27540        if test "x$withval" != "xno" ; then
27541           sd_password=$withval
27542        fi
27543
27544
27545 fi
27546
27547
27548 if test "x$sd_password" = "x" ; then
27549    if test "x$OPENSSL" = "xnone" ; then
27550       key=`autoconf/randpass 41`
27551    else
27552       key=`openssl rand -base64 33`
27553    fi
27554    sd_password=$key
27555 fi
27556
27557 mon_dir_password=
27558
27559 # Check whether --with-mon-dir-password was given.
27560 if test "${with_mon_dir_password+set}" = set; then
27561   withval=$with_mon_dir_password;
27562        if test "x$withval" != "xno" ; then
27563           mon_dir_password=$withval
27564        fi
27565
27566
27567 fi
27568
27569
27570 if test "x$mon_dir_password" = "x" ; then
27571    if test "x$OPENSSL" = "xnone" ; then
27572       key=`autoconf/randpass 33`
27573    else
27574       key=`openssl rand -base64 33`
27575    fi
27576    mon_dir_password=$key
27577 fi
27578
27579 mon_fd_password=
27580
27581 # Check whether --with-mon-fd-password was given.
27582 if test "${with_mon_fd_password+set}" = set; then
27583   withval=$with_mon_fd_password;
27584        if test "x$withval" != "xno" ; then
27585           mon_fd_password=$withval
27586        fi
27587
27588
27589 fi
27590
27591
27592 if test "x$mon_fd_password" = "x" ; then
27593    if test "x$OPENSSL" = "xnone" ; then
27594       key=`autoconf/randpass 37`
27595    else
27596       key=`openssl rand -base64 33`
27597    fi
27598    mon_fd_password=$key
27599 fi
27600
27601 mon_sd_password=
27602
27603 # Check whether --with-mon-sd-password was given.
27604 if test "${with_mon_sd_password+set}" = set; then
27605   withval=$with_mon_sd_password;
27606        if test "x$withval" != "xno" ; then
27607           mon_sd_password=$withval
27608        fi
27609
27610
27611 fi
27612
27613
27614 if test "x$mon_sd_password" = "x" ; then
27615    if test "x$OPENSSL" = "xnone" ; then
27616       key=`autoconf/randpass 41`
27617    else
27618       key=`openssl rand -base64 33`
27619    fi
27620    mon_sd_password=$key
27621 fi
27622
27623
27624
27625
27626
27627
27628
27629
27630 db_name=bacula
27631
27632 # Check whether --with-db_name was given.
27633 if test "${with_db_name+set}" = set; then
27634   withval=$with_db_name;
27635        if test "x$withval" != "x" ; then
27636           db_name=$withval
27637        fi
27638
27639
27640 fi
27641
27642
27643
27644 db_user=bacula
27645
27646 # Check whether --with-db_user was given.
27647 if test "${with_db_user+set}" = set; then
27648   withval=$with_db_user;
27649        if test "x$withval" != "x" ; then
27650           db_user=$withval
27651        fi
27652
27653
27654 fi
27655
27656
27657
27658 db_password=
27659
27660 # Check whether --with-db_password was given.
27661 if test "${with_db_password+set}" = set; then
27662   withval=$with_db_password;
27663        if test "x$withval" != "x" ; then
27664           db_password=$withval
27665        fi
27666
27667
27668 fi
27669
27670
27671
27672 db_port=" "
27673
27674 # Check whether --with-db_port was given.
27675 if test "${with_db_port+set}" = set; then
27676   withval=$with_db_port;
27677        if test "x$withval" != "x" ; then
27678           db_port=$withval
27679        fi
27680
27681
27682 fi
27683
27684
27685
27686 #
27687 # Handle users and groups for each daemon
27688 #
27689 dir_user=
27690
27691 # Check whether --with-dir_user was given.
27692 if test "${with_dir_user+set}" = set; then
27693   withval=$with_dir_user;
27694        if test "x$withval" != "x" ; then
27695            dir_user=$withval
27696        fi
27697
27698
27699 fi
27700
27701
27702 dir_group=
27703
27704 # Check whether --with-dir_group was given.
27705 if test "${with_dir_group+set}" = set; then
27706   withval=$with_dir_group;
27707        if test "x$withval" != "x" ; then
27708           dir_group=$withval
27709        fi
27710
27711
27712 fi
27713
27714
27715 sd_user=
27716
27717 # Check whether --with-sd_user was given.
27718 if test "${with_sd_user+set}" = set; then
27719   withval=$with_sd_user;
27720        if test "x$withval" != "x" ; then
27721           sd_user=$withval
27722        fi
27723
27724
27725 fi
27726
27727
27728 sd_group=
27729
27730 # Check whether --with-sd_group was given.
27731 if test "${with_sd_group+set}" = set; then
27732   withval=$with_sd_group;
27733        if test "x$withval" != "x" ; then
27734           sd_group=$withval
27735        fi
27736
27737
27738 fi
27739
27740
27741 fd_user=
27742
27743 # Check whether --with-fd_user was given.
27744 if test "${with_fd_user+set}" = set; then
27745   withval=$with_fd_user;
27746        if test "x$withval" != "x" ; then
27747           fd_user=$withval
27748        fi
27749
27750
27751 fi
27752
27753
27754 fd_group=
27755
27756 # Check whether --with-fd_group was given.
27757 if test "${with_fd_group+set}" = set; then
27758   withval=$with_fd_group;
27759        if test "x$withval" != "x" ; then
27760           fd_group=$withval
27761        fi
27762
27763
27764 fi
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774 SBINPERM=0754
27775
27776 # Check whether --with-sbin-perm was given.
27777 if test "${with_sbin_perm+set}" = set; then
27778   withval=$with_sbin_perm;
27779        if test "x$withval" != "x" ; then
27780           SBINPERM=$withval
27781        fi
27782
27783
27784 fi
27785
27786
27787
27788
27789 SQL_LIB=
27790
27791 db_found=no
27792 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27793 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27794
27795 # Check whether --with-postgresql was given.
27796 if test "${with_postgresql+set}" = set; then
27797   withval=$with_postgresql;
27798   if test "$withval" != "no"; then
27799       if test "$db_found" = "yes"; then
27800           { echo "$as_me:$LINENO: result: error" >&5
27801 echo "${ECHO_T}error" >&6; }
27802           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27803 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27804    { (exit 1); exit 1; }; };
27805       fi
27806       if test "$withval" = "yes"; then
27807           PG_CONFIG=`which pg_config`
27808           if test -n "$PG_CONFIG";then
27809               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27810               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27811               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27812           elif test -f /usr/local/include/libpq-fe.h; then
27813               POSTGRESQL_INCDIR=/usr/local/include
27814               if test -d /usr/local/lib64; then
27815                  POSTGRESQL_LIBDIR=/usr/local/lib64
27816               else
27817                  POSTGRESQL_LIBDIR=/usr/local/lib
27818               fi
27819               POSTGRESQL_BINDIR=/usr/local/bin
27820           elif test -f /usr/include/libpq-fe.h; then
27821               POSTGRESQL_INCDIR=/usr/include
27822               if test -d /usr/lib64; then
27823                  POSTGRESQL_LIBDIR=/usr/lib64
27824               else
27825                  POSTGRESQL_LIBDIR=/usr/lib
27826               fi
27827               POSTGRESQL_BINDIR=/usr/bin
27828           elif test -f /usr/include/pgsql/libpq-fe.h; then
27829               POSTGRESQL_INCDIR=/usr/include/pgsql
27830               if test -d /usr/lib64/pgsql; then
27831                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27832               else
27833                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
27834               fi
27835               POSTGRESQL_BINDIR=/usr/bin
27836           elif test -f /usr/include/postgresql/libpq-fe.h; then
27837               POSTGRESQL_INCDIR=/usr/include/postgresql
27838               if test -d /usr/lib64/postgresql; then
27839                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27840               else
27841                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
27842               fi
27843               POSTGRESQL_BINDIR=/usr/bin
27844           else
27845               { echo "$as_me:$LINENO: result: no" >&5
27846 echo "${ECHO_T}no" >&6; }
27847               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27848 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27849    { (exit 1); exit 1; }; }
27850           fi
27851       elif test -f $withval/include/libpq-fe.h; then
27852           POSTGRESQL_INCDIR=$withval/include
27853           POSTGRESQL_LIBDIR=$withval/lib
27854           POSTGRESQL_BINDIR=$withval/bin
27855       elif test -f $withval/include/postgresql/libpq-fe.h; then
27856           POSTGRESQL_INCDIR=$withval/include/postgresql
27857      if test -d $withval/lib64; then
27858          POSTGRESQL_LIBDIR=$withval/lib64
27859      else
27860          POSTGRESQL_LIBDIR=$withval/lib
27861      fi
27862           POSTGRESQL_BINDIR=$withval/bin
27863       else
27864           { echo "$as_me:$LINENO: result: no" >&5
27865 echo "${ECHO_T}no" >&6; }
27866           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27867 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27868    { (exit 1); exit 1; }; }
27869       fi
27870       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27871       { echo "$as_me:$LINENO: checking for crypt" >&5
27872 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27873 if test "${ac_cv_func_crypt+set}" = set; then
27874   echo $ECHO_N "(cached) $ECHO_C" >&6
27875 else
27876   cat >conftest.$ac_ext <<_ACEOF
27877 /* confdefs.h.  */
27878 _ACEOF
27879 cat confdefs.h >>conftest.$ac_ext
27880 cat >>conftest.$ac_ext <<_ACEOF
27881 /* end confdefs.h.  */
27882 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27884 #define crypt innocuous_crypt
27885
27886 /* System header to define __stub macros and hopefully few prototypes,
27887     which can conflict with char crypt (); below.
27888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27889     <limits.h> exists even on freestanding compilers.  */
27890
27891 #ifdef __STDC__
27892 # include <limits.h>
27893 #else
27894 # include <assert.h>
27895 #endif
27896
27897 #undef crypt
27898
27899 /* Override any GCC internal prototype to avoid an error.
27900    Use char because int might match the return type of a GCC
27901    builtin and then its argument prototype would still apply.  */
27902 #ifdef __cplusplus
27903 extern "C"
27904 #endif
27905 char crypt ();
27906 /* The GNU C library defines this for functions which it implements
27907     to always fail with ENOSYS.  Some functions are actually named
27908     something starting with __ and the normal name is an alias.  */
27909 #if defined __stub_crypt || defined __stub___crypt
27910 choke me
27911 #endif
27912
27913 int
27914 main ()
27915 {
27916 return crypt ();
27917   ;
27918   return 0;
27919 }
27920 _ACEOF
27921 rm -f conftest.$ac_objext conftest$ac_exeext
27922 if { (ac_try="$ac_link"
27923 case "(($ac_try" in
27924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925   *) ac_try_echo=$ac_try;;
27926 esac
27927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928   (eval "$ac_link") 2>conftest.er1
27929   ac_status=$?
27930   grep -v '^ *+' conftest.er1 >conftest.err
27931   rm -f conftest.er1
27932   cat conftest.err >&5
27933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934   (exit $ac_status); } && {
27935          test -z "$ac_c_werror_flag" ||
27936          test ! -s conftest.err
27937        } && test -s conftest$ac_exeext &&
27938        $as_test_x conftest$ac_exeext; then
27939   ac_cv_func_crypt=yes
27940 else
27941   echo "$as_me: failed program was:" >&5
27942 sed 's/^/| /' conftest.$ac_ext >&5
27943
27944         ac_cv_func_crypt=no
27945 fi
27946
27947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27948       conftest$ac_exeext conftest.$ac_ext
27949 fi
27950 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27951 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27952 if test $ac_cv_func_crypt = yes; then
27953   :
27954 else
27955   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27956 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27957 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27958   echo $ECHO_N "(cached) $ECHO_C" >&6
27959 else
27960   ac_check_lib_save_LIBS=$LIBS
27961 LIBS="-lcrypt  $LIBS"
27962 cat >conftest.$ac_ext <<_ACEOF
27963 /* confdefs.h.  */
27964 _ACEOF
27965 cat confdefs.h >>conftest.$ac_ext
27966 cat >>conftest.$ac_ext <<_ACEOF
27967 /* end confdefs.h.  */
27968
27969 /* Override any GCC internal prototype to avoid an error.
27970    Use char because int might match the return type of a GCC
27971    builtin and then its argument prototype would still apply.  */
27972 #ifdef __cplusplus
27973 extern "C"
27974 #endif
27975 char crypt ();
27976 int
27977 main ()
27978 {
27979 return crypt ();
27980   ;
27981   return 0;
27982 }
27983 _ACEOF
27984 rm -f conftest.$ac_objext conftest$ac_exeext
27985 if { (ac_try="$ac_link"
27986 case "(($ac_try" in
27987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988   *) ac_try_echo=$ac_try;;
27989 esac
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991   (eval "$ac_link") 2>conftest.er1
27992   ac_status=$?
27993   grep -v '^ *+' conftest.er1 >conftest.err
27994   rm -f conftest.er1
27995   cat conftest.err >&5
27996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997   (exit $ac_status); } && {
27998          test -z "$ac_c_werror_flag" ||
27999          test ! -s conftest.err
28000        } && test -s conftest$ac_exeext &&
28001        $as_test_x conftest$ac_exeext; then
28002   ac_cv_lib_crypt_crypt=yes
28003 else
28004   echo "$as_me: failed program was:" >&5
28005 sed 's/^/| /' conftest.$ac_ext >&5
28006
28007         ac_cv_lib_crypt_crypt=no
28008 fi
28009
28010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28011       conftest$ac_exeext conftest.$ac_ext
28012 LIBS=$ac_check_lib_save_LIBS
28013 fi
28014 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28015 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28016 if test $ac_cv_lib_crypt_crypt = yes; then
28017   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28018 fi
28019
28020 fi
28021
28022       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28023       SQL_LFLAGS=$POSTGRESQL_LFLAGS
28024       SQL_BINDIR=$POSTGRESQL_BINDIR
28025       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28026
28027       cat >>confdefs.h <<\_ACEOF
28028 #define HAVE_POSTGRESQL 1
28029 _ACEOF
28030
28031       { echo "$as_me:$LINENO: result: yes" >&5
28032 echo "${ECHO_T}yes" >&6; }
28033       db_found=yes
28034       support_postgresql=yes
28035       db_type=PostgreSQL
28036       DB_TYPE=postgresql
28037   else
28038       { echo "$as_me:$LINENO: result: no" >&5
28039 echo "${ECHO_T}no" >&6; }
28040   fi
28041
28042 else
28043
28044   { echo "$as_me:$LINENO: result: no" >&5
28045 echo "${ECHO_T}no" >&6; }
28046
28047 fi
28048
28049
28050
28051
28052
28053
28054
28055
28056 db_found=no
28057 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28058 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28059
28060 # Check whether --with-mysql was given.
28061 if test "${with_mysql+set}" = set; then
28062   withval=$with_mysql;
28063   if test "$withval" != "no"; then
28064         if test "$withval" = "yes"; then
28065            if test -f /usr/local/mysql/include/mysql/mysql.h; then
28066                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
28067                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28068                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28069                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28070                    else
28071                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28072                    fi
28073                    MYSQL_BINDIR=/usr/local/mysql/bin
28074            elif test -f /usr/include/mysql/mysql.h; then
28075                    MYSQL_INCDIR=/usr/include/mysql
28076                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28077                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28078                            MYSQL_LIBDIR=/usr/lib64/mysql
28079                    elif test -f /usr/lib64/libmysqlclient_r.a \
28080                         -o -f /usr/lib64/libmysqlclient_r.so; then
28081                            MYSQL_LIBDIR=/usr/lib64
28082                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28083                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28084                            MYSQL_LIBDIR=/usr/lib/mysql
28085                    else
28086                            MYSQL_LIBDIR=/usr/lib
28087                    fi
28088                    MYSQL_BINDIR=/usr/bin
28089            elif test -f /usr/include/mysql.h; then
28090                    MYSQL_INCDIR=/usr/include
28091                    if test -f /usr/lib64/libmysqlclient_r.a \
28092                         -o -f /usr/lib64/libmysqlclient_r.so; then
28093                            MYSQL_LIBDIR=/usr/lib64
28094                    else
28095                            MYSQL_LIBDIR=/usr/lib
28096                    fi
28097                    MYSQL_BINDIR=/usr/bin
28098            elif test -f /usr/local/include/mysql/mysql.h; then
28099                    MYSQL_INCDIR=/usr/local/include/mysql
28100                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28101                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28102                            MYSQL_LIBDIR=/usr/local/lib64/mysql
28103                    else
28104                            MYSQL_LIBDIR=/usr/local/lib/mysql
28105                    fi
28106                    MYSQL_BINDIR=/usr/local/bin
28107            elif test -f /usr/local/include/mysql.h; then
28108                    MYSQL_INCDIR=/usr/local/include
28109                    if test -f /usr/local/lib64/libmysqlclient_r.a \
28110                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
28111                            MYSQL_LIBDIR=/usr/local/lib64
28112                    else
28113                            MYSQL_LIBDIR=/usr/local/lib
28114                    fi
28115                    MYSQL_BINDIR=/usr/local/bin
28116            else
28117               { echo "$as_me:$LINENO: result: no" >&5
28118 echo "${ECHO_T}no" >&6; }
28119               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28120 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28121    { (exit 1); exit 1; }; }
28122            fi
28123         else
28124            if test -f $withval/include/mysql/mysql.h; then
28125               MYSQL_INCDIR=$withval/include/mysql
28126               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28127                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28128                  MYSQL_LIBDIR=$withval/lib64/mysql
28129               elif test -f $withval/lib64/libmysqlclient_r.a \
28130                    -o -f $withval/lib64/libmysqlclient_r.so; then
28131                  MYSQL_LIBDIR=$withval/lib64
28132               elif test -f $withval/lib/libmysqlclient_r.a \
28133                    -o -f $withval/lib/libmysqlclient_r.so; then
28134                  MYSQL_LIBDIR=$withval/lib
28135               else
28136                  MYSQL_LIBDIR=$withval/lib/mysql
28137               fi
28138               MYSQL_BINDIR=$withval/bin
28139            elif test -f $withval/include/mysql.h; then
28140               MYSQL_INCDIR=$withval/include
28141               if test -f $withval/lib64/libmysqlclient_r.a \
28142                    -o -f $withval/lib64/libmysqlclient_r.so; then
28143                  MYSQL_LIBDIR=$withval/lib64
28144               else
28145                  MYSQL_LIBDIR=$withval/lib
28146               fi
28147               MYSQL_BINDIR=$withval/bin
28148            else
28149               { echo "$as_me:$LINENO: result: no" >&5
28150 echo "${ECHO_T}no" >&6; }
28151               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28152 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28153    { (exit 1); exit 1; }; }
28154            fi
28155         fi
28156     SQL_INCLUDE=-I$MYSQL_INCDIR
28157     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28158          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28159        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28160        cat >>confdefs.h <<\_ACEOF
28161 #define HAVE_THREAD_SAFE_MYSQL 1
28162 _ACEOF
28163
28164     fi
28165     SQL_BINDIR=$MYSQL_BINDIR
28166     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28167
28168     cat >>confdefs.h <<\_ACEOF
28169 #define HAVE_MYSQL 1
28170 _ACEOF
28171
28172     { echo "$as_me:$LINENO: result: yes" >&5
28173 echo "${ECHO_T}yes" >&6; }
28174     db_found=yes
28175     support_mysql=yes
28176     db_type=MySQL
28177     DB_TYPE=mysql
28178
28179   else
28180         { echo "$as_me:$LINENO: result: no" >&5
28181 echo "${ECHO_T}no" >&6; }
28182   fi
28183
28184
28185 fi
28186
28187
28188
28189 # Check whether --with-embedded-mysql was given.
28190 if test "${with_embedded_mysql+set}" = set; then
28191   withval=$with_embedded_mysql;
28192   if test "$withval" != "no"; then
28193         if test "$withval" = "yes"; then
28194                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28195                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
28196                         if test -d /usr/local/mysql/lib64/mysql; then
28197                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28198                         else
28199                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28200                         fi
28201                         MYSQL_BINDIR=/usr/local/mysql/bin
28202                 elif test -f /usr/include/mysql/mysql.h; then
28203                         MYSQL_INCDIR=/usr/include/mysql
28204                         if test -d /usr/lib64/mysql; then
28205                                 MYSQL_LIBDIR=/usr/lib64/mysql
28206                         else
28207                                 MYSQL_LIBDIR=/usr/lib/mysql
28208                         fi
28209                         MYSQL_BINDIR=/usr/bin
28210                 elif test -f /usr/include/mysql.h; then
28211                         MYSQL_INCDIR=/usr/include
28212                         if test -d /usr/lib64; then
28213                                 MYSQL_LIBDIR=/usr/lib64
28214                         else
28215                                 MYSQL_LIBDIR=/usr/lib
28216                         fi
28217                         MYSQL_BINDIR=/usr/bin
28218                 elif test -f /usr/local/include/mysql/mysql.h; then
28219                         MYSQL_INCDIR=/usr/local/include/mysql
28220                         if test -d /usr/local/lib64/mysql; then
28221                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
28222                         else
28223                                 MYSQL_LIBDIR=/usr/local/lib/mysql
28224                         fi
28225                         MYSQL_BINDIR=/usr/local/bin
28226                 elif test -f /usr/local/include/mysql.h; then
28227                         MYSQL_INCDIR=/usr/local/include
28228                         if test -d /usr/local/lib64; then
28229                                 MYSQL_LIBDIR=/usr/local/lib64
28230                         else
28231                                 MYSQL_LIBDIR=/usr/local/lib
28232                         fi
28233                         MYSQL_BINDIR=/usr/local/bin
28234                 else
28235                    { echo "$as_me:$LINENO: result: no" >&5
28236 echo "${ECHO_T}no" >&6; }
28237                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28238 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28239    { (exit 1); exit 1; }; }
28240                 fi
28241         else
28242                 if test -f $withval/include/mysql/mysql.h; then
28243                         MYSQL_INCDIR=$withval/include/mysql
28244                         if test -d $withval/lib64/mysql; then
28245                                 MYSQL_LIBDIR=$withval/lib64/mysql
28246                         else
28247                                 MYSQL_LIBDIR=$withval/lib/mysql
28248                         fi
28249                         MYSQL_BINDIR=$withval/bin
28250                 elif test -f $withval/include/mysql.h; then
28251                         MYSQL_INCDIR=$withval/include
28252                         if test -d $withval/lib64; then
28253                                 MYSQL_LIBDIR=$withval/lib64
28254                         else
28255                                 MYSQL_LIBDIR=$withval/lib
28256                         fi
28257                         MYSQL_BINDIR=$withval/bin
28258                 else
28259                    { echo "$as_me:$LINENO: result: no" >&5
28260 echo "${ECHO_T}no" >&6; }
28261                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28262 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28263    { (exit 1); exit 1; }; }
28264                 fi
28265         fi
28266     SQL_INCLUDE=-I$MYSQL_INCDIR
28267     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28268     SQL_BINDIR=$MYSQL_BINDIR
28269     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28270
28271     cat >>confdefs.h <<\_ACEOF
28272 #define HAVE_MYSQL 1
28273 _ACEOF
28274
28275     cat >>confdefs.h <<\_ACEOF
28276 #define HAVE_EMBEDDED_MYSQL 1
28277 _ACEOF
28278
28279     { echo "$as_me:$LINENO: result: yes" >&5
28280 echo "${ECHO_T}yes" >&6; }
28281     db_found=yes
28282     support_mysql=yes
28283     db_type=MySQL
28284     DB_TYPE=mysql
28285
28286   else
28287         { echo "$as_me:$LINENO: result: no" >&5
28288 echo "${ECHO_T}no" >&6; }
28289   fi
28290
28291
28292 fi
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303 db_found=no
28304 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28305 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28306
28307 # Check whether --with-sqlite3 was given.
28308 if test "${with_sqlite3+set}" = set; then
28309   withval=$with_sqlite3;
28310   if test "$withval" != "no"; then
28311      if test "$withval" = "yes"; then
28312         if test -f /usr/local/include/sqlite3.h; then
28313            SQLITE_INCDIR=/usr/local/include
28314            if test -d /usr/local/lib64; then
28315               SQLITE_LIBDIR=/usr/local/lib64
28316            else
28317               SQLITE_LIBDIR=/usr/local/lib
28318            fi
28319            SQLITE_BINDIR=/usr/local/bin
28320         elif test -f /usr/include/sqlite3.h; then
28321            SQLITE_INCDIR=/usr/include
28322            if test -d /usr/lib64; then
28323               SQLITE_LIBDIR=/usr/lib64
28324            else
28325               SQLITE_LIBDIR=/usr/lib
28326            fi
28327            SQLITE_BINDIR=/usr/bin
28328         elif test -f $prefix/include/sqlite3.h; then
28329            SQLITE_INCDIR=$prefix/include
28330            if test -d $prefix/lib64; then
28331               SQLITE_LIBDIR=$prefix/lib64
28332            else
28333               SQLITE_LIBDIR=$prefix/lib
28334            fi
28335            SQLITE_BINDIR=$prefix/bin
28336         else
28337            { echo "$as_me:$LINENO: result: no" >&5
28338 echo "${ECHO_T}no" >&6; }
28339            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28340 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28341    { (exit 1); exit 1; }; }
28342         fi
28343      else
28344         if test -f $withval/sqlite3.h; then
28345            SQLITE_INCDIR=$withval
28346            SQLITE_LIBDIR=$withval
28347            SQLITE_BINDIR=$withval
28348         elif test -f $withval/include/sqlite3.h; then
28349            SQLITE_INCDIR=$withval/include
28350            if test -d $withval/lib64; then
28351               SQLITE_LIBDIR=$withval/lib64
28352            else
28353               SQLITE_LIBDIR=$withval/lib
28354            fi
28355            SQLITE_BINDIR=$withval/bin
28356         else
28357            { echo "$as_me:$LINENO: result: no" >&5
28358 echo "${ECHO_T}no" >&6; }
28359            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28360 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28361    { (exit 1); exit 1; }; }
28362         fi
28363      fi
28364      SQL_INCLUDE=-I$SQLITE_INCDIR
28365      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28366      SQL_BINDIR=$SQLITE_BINDIR
28367      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28368
28369      cat >>confdefs.h <<\_ACEOF
28370 #define HAVE_SQLITE3 1
28371 _ACEOF
28372
28373      { echo "$as_me:$LINENO: result: yes" >&5
28374 echo "${ECHO_T}yes" >&6; }
28375      db_found=yes
28376      support_sqlite3=yes
28377      db_type=SQLite3
28378      DB_TYPE=sqlite3
28379
28380   else
28381      { echo "$as_me:$LINENO: result: no" >&5
28382 echo "${ECHO_T}no" >&6; }
28383   fi
28384
28385 else
28386
28387   { echo "$as_me:$LINENO: result: no" >&5
28388 echo "${ECHO_T}no" >&6; }
28389
28390 fi
28391
28392
28393
28394
28395
28396
28397
28398
28399 db_found=no
28400 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28401 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28402
28403 # Check whether --with-sqlite was given.
28404 if test "${with_sqlite+set}" = set; then
28405   withval=$with_sqlite;
28406   if test "$withval" != "no"; then
28407      if test "$withval" = "yes"; then
28408         if test -f /usr/local/include/sqlite.h; then
28409            SQLITE_INCDIR=/usr/local/include
28410            if test -d /usr/local/lib64; then
28411               SQLITE_LIBDIR=/usr/local/lib64
28412            else
28413               SQLITE_LIBDIR=/usr/local/lib
28414            fi
28415            SQLITE_BINDIR=/usr/local/bin
28416         elif test -f /usr/include/sqlite.h; then
28417            SQLITE_INCDIR=/usr/include
28418            if test -d /usr/lib64; then
28419               SQLITE_LIBDIR=/usr/lib64
28420            else
28421               SQLITE_LIBDIR=/usr/lib
28422            fi
28423            SQLITE_BINDIR=/usr/bin
28424         elif test -f $prefix/include/sqlite.h; then
28425            SQLITE_INCDIR=$prefix/include
28426            if test -d $prefix/lib64; then
28427               SQLITE_LIBDIR=$prefix/lib64
28428            else
28429               SQLITE_LIBDIR=$prefix/lib
28430            fi
28431            SQLITE_BINDIR=$prefix/bin
28432         else
28433            { echo "$as_me:$LINENO: result: no" >&5
28434 echo "${ECHO_T}no" >&6; }
28435            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28436 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28437    { (exit 1); exit 1; }; }
28438         fi
28439      else
28440         if test -f $withval/sqlite.h; then
28441            SQLITE_INCDIR=$withval
28442            SQLITE_LIBDIR=$withval
28443            SQLITE_BINDIR=$withval
28444         elif test -f $withval/include/sqlite.h; then
28445            SQLITE_INCDIR=$withval/include
28446            if test -d $withval/lib64; then
28447               SQLITE_LIBDIR=$withval/lib64
28448            else
28449               SQLITE_LIBDIR=$withval/lib
28450            fi
28451            SQLITE_BINDIR=$withval/bin
28452         else
28453            { echo "$as_me:$LINENO: result: no" >&5
28454 echo "${ECHO_T}no" >&6; }
28455            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28456 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28457    { (exit 1); exit 1; }; }
28458         fi
28459      fi
28460      SQL_INCLUDE=-I$SQLITE_INCDIR
28461      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28462      SQL_BINDIR=$SQLITE_BINDIR
28463      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28464
28465      cat >>confdefs.h <<\_ACEOF
28466 #define HAVE_SQLITE 1
28467 _ACEOF
28468
28469      { echo "$as_me:$LINENO: result: yes" >&5
28470 echo "${ECHO_T}yes" >&6; }
28471      db_found=yes
28472      support_sqlite=yes
28473      db_type=SQLite
28474      DB_TYPE=sqlite
28475
28476   else
28477      { echo "$as_me:$LINENO: result: no" >&5
28478 echo "${ECHO_T}no" >&6; }
28479   fi
28480
28481 else
28482
28483   { echo "$as_me:$LINENO: result: no" >&5
28484 echo "${ECHO_T}no" >&6; }
28485
28486 fi
28487
28488
28489
28490
28491
28492
28493
28494
28495 db_found=no
28496 { echo "$as_me:$LINENO: checking for DBI support" >&5
28497 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28498
28499 # Check whether --with-dbi was given.
28500 if test "${with_dbi+set}" = set; then
28501   withval=$with_dbi;
28502   if test "$withval" != "no"; then
28503      if test "$withval" = "yes"; then
28504         if test -f /usr/local/include/dbi/dbi.h; then
28505            DBI_INCDIR=/usr/local/dbi/include
28506            if test -d /usr/local/lib64; then
28507               DBI_LIBDIR=/usr/local/lib64
28508            else
28509               DBI_LIBDIR=/usr/local/lib
28510            fi
28511            DBI_BINDIR=/usr/local/bin
28512         elif test -f /usr/include/dbi/dbi.h; then
28513            DBI_INCDIR=/usr/include
28514            if test -d /usr/lib64; then
28515               DBI_LIBDIR=/usr/lib64
28516            else
28517               DBI_LIBDIR=/usr/lib
28518            fi
28519            DBI_BINDIR=/usr/bin
28520         elif test -f $prefix/include/dbi/dbi.h; then
28521            DBI_INCDIR=$prefix/include
28522            if test -d $prefix/lib64; then
28523               DBI_LIBDIR=$prefix/lib64
28524            else
28525               DBI_LIBDIR=$prefix/lib
28526            fi
28527            DBI_BINDIR=$prefix/bin
28528         else
28529            { echo "$as_me:$LINENO: result: no" >&5
28530 echo "${ECHO_T}no" >&6; }
28531            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28532 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28533    { (exit 1); exit 1; }; }
28534         fi
28535         if test -d /usr/local/lib/dbd; then
28536            DRIVERDIR=/usr/local/lib/dbd
28537            if test -d /usr/local/lib64/dbd; then
28538               DRIVERDIR=/usr/local/lib64/dbd
28539            else
28540               DRIVERDIR=/usr/local/lib/dbd
28541            fi
28542         elif test -d /usr/lib/dbd; then
28543            DRIVERDIR=/usr/lib/dbd
28544            if test -d /usr/lib64/dbd; then
28545               DRIVERDIR=/usr/lib64/dbd
28546            else
28547               DRIVERDIR=/usr/lib/dbd
28548            fi
28549         elif test -d $prefix/lib/dbd; then
28550            if test -d $prefix/lib64/dbd; then
28551               DRIVERDIR=$prefix/lib64/dbd
28552            else
28553               DRIVERDIR=$prefix/lib/dbd
28554            fi
28555         else
28556            { echo "$as_me:$LINENO: result: no" >&5
28557 echo "${ECHO_T}no" >&6; }
28558            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28559 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28560    { (exit 1); exit 1; }; }
28561         fi
28562      else
28563         if test -f $withval/dbi.h; then
28564            DBI_INCDIR=$withval
28565            DBI_LIBDIR=$withval
28566            DBI_BINDIR=$withval
28567         elif test -f $withval/include/dbi/dbi.h; then
28568            DBI_INCDIR=$withval/include
28569            if test -d $withval/lib64; then
28570               DBI_LIBDIR=$withval/lib64
28571            else
28572               DBI_LIBDIR=$withval/lib
28573            fi
28574            DBI_BINDIR=$withval/bin
28575         else
28576            { echo "$as_me:$LINENO: result: no" >&5
28577 echo "${ECHO_T}no" >&6; }
28578            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28579 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28580    { (exit 1); exit 1; }; }
28581         fi
28582         if test -d $withval/dbd; then
28583            DRIVERDIR=$withval/dbd
28584         elif test -d $withval/lib/; then
28585            if test -d $withval/lib64/dbd; then
28586               DRIVERDIR=$withval/lib64/dbd
28587            else
28588               DRIVERDIR=$withval/lib/dbd
28589            fi
28590         else
28591            { echo "$as_me:$LINENO: result: no" >&5
28592 echo "${ECHO_T}no" >&6; }
28593            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28594 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28595    { (exit 1); exit 1; }; }
28596         fi
28597      fi
28598      SQL_INCLUDE=-I$DBI_INCDIR
28599      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28600      SQL_BINDIR=$DBI_BINDIR
28601      SQL_LIB=$DBI_LIBDIR/libdbi.a
28602      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28603
28604
28605 cat >>confdefs.h <<\_ACEOF
28606 #define HAVE_DBI 1
28607 _ACEOF
28608
28609      { echo "$as_me:$LINENO: result: yes" >&5
28610 echo "${ECHO_T}yes" >&6; }
28611      db_found=yes
28612      support_dbi=yes
28613      db_type=DBI
28614      DB_TYPE=dbi
28615      uncomment_dbi=" "
28616
28617   else
28618      { echo "$as_me:$LINENO: result: no" >&5
28619 echo "${ECHO_T}no" >&6; }
28620   fi
28621
28622 else
28623
28624   { echo "$as_me:$LINENO: result: no" >&5
28625 echo "${ECHO_T}no" >&6; }
28626
28627 fi
28628
28629
28630
28631
28632
28633
28634
28635
28636
28637
28638 db_found=no
28639 db_prog=no
28640 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28641 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28642
28643 # Check whether --with-dbi-driver was given.
28644 if test "${with_dbi_driver+set}" = set; then
28645   withval=$with_dbi_driver;
28646   if test "$withval" != "no"; then
28647      case $withval in
28648         "mysql")
28649            db_prog="mysql"
28650            if test -f /usr/local/mysql/bin/mysql; then
28651               SQL_BINDIR=/usr/local/mysql/bin
28652               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28653                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28654                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28655               else
28656                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
28657               fi
28658            elif test -f /usr/bin/mysql; then
28659               SQL_BINDIR=/usr/bin
28660               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28661                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28662                   SQL_LIBDIR=/usr/lib64/mysql
28663               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28664                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28665                   SQL_LIBDIR=/usr/lib/mysql
28666               else
28667                   SQL_LIBDIR=/usr/lib
28668               fi
28669            elif test -f /usr/local/bin/mysql; then
28670               SQL_BINDIR=/usr/local/bin
28671               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28672                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28673                   SQL_LIBDIR=/usr/local/lib64/mysql
28674               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28675                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28676                   SQL_LIBDIR=/usr/local/lib/mysql
28677               else
28678                   SQL_LIBDIR=/usr/local/lib
28679               fi
28680            elif test -f $withval/bin/mysql; then
28681               SQL_BINDIR=$withval/bin
28682               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28683                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28684                   SQL_LIBDIR=$withval/lib64/mysql
28685               elif test -f $withval/lib64/libmysqlclient_r.a \
28686                   -o -f $withval/lib64/libmysqlclient_r.so; then
28687                   SQL_LIBDIR=$withval/lib64
28688               elif test -f $withval/lib/libmysqlclient_r.a \
28689                   -o -f $withval/lib/libmysqlclient_r.so; then
28690                   SQL_LIBDIR=$withval/lib/
28691               else
28692                   SQL_LIBDIR=$withval/lib/mysql
28693               fi
28694            else
28695               { echo "$as_me:$LINENO: result: no" >&5
28696 echo "${ECHO_T}no" >&6; }
28697               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28698 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28699    { (exit 1); exit 1; }; }
28700            fi
28701            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28702               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28703            else
28704               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28705            fi
28706         ;;
28707         "postgresql")
28708            db_prog="postgresql"
28709            PG_CONFIG=`which pg_config`
28710            if test -n "$PG_CONFIG"; then
28711               SQL_BINDIR=`"$PG_CONFIG" --bindir`
28712               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28713            elif test -f /usr/local/bin/psql; then
28714               SQL_BINDIR=/usr/local/bin
28715               if test -d /usr/local/lib64; then
28716                  SQL_LIBDIR=/usr/local/lib64
28717               else
28718                  SQL_LIBDIR=/usr/local/lib
28719               fi
28720            elif test -f /usr/bin/psql; then
28721               SQL_BINDIR=/usr/local/bin
28722               if test -d /usr/lib64/postgresql; then
28723                  SQL_LIBDIR=/usr/lib64/postgresql
28724               elif test -d /usr/lib/postgresql; then
28725                  SQL_LIBDIR=/usr/lib/postgresql
28726               elif test -d /usr/lib64; then
28727                  SQL_LIBDIR=/usr/lib64
28728               else
28729                  SQL_LIBDIR=/usr/lib
28730               fi
28731            elif test -f $withval/bin/psql; then
28732               SQL_BINDIR=$withval/bin
28733               if test -d $withval/lib64; then
28734                  SQL_LIBDIR=$withval/lib64
28735               else
28736                  SQL_LIBDIR=$withval/lib
28737               fi
28738            else
28739               { echo "$as_me:$LINENO: result: no" >&5
28740 echo "${ECHO_T}no" >&6; }
28741               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28742 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28743    { (exit 1); exit 1; }; }
28744            fi
28745            if test -f $SQL_LIBDIR/libpq.so; then
28746               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28747            else
28748               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28749            fi
28750         ;;
28751         "sqlite")
28752            db_prog="sqlite"
28753            if test -f /usr/local/bin/sqlite; then
28754               SQL_BINDIR=/usr/local/bin
28755               if test -d /usr/local/lib64; then
28756                  SQL_LIBDIR=/usr/local/lib64
28757               else
28758                  SQL_LIBDIR=/usr/local/lib
28759               fi
28760            elif test -f /usr/bin/sqlite; then
28761               SQL_BINDIR=/usr/bin
28762               if test -d /usr/lib64; then
28763                  SQL_LIBDIR=/usr/lib64
28764               else
28765                  SQL_LIBDIR=/usr/lib
28766               fi
28767            elif test -f $withval/bin/sqlite; then
28768               SQL_BINDIR=$withval/bin
28769               if test -d $withval/lib64; then
28770                  SQL_LIBDIR=$withval/lib64
28771               else
28772                  SQL_LIBDIR=$withval/lib
28773               fi
28774            else
28775               { echo "$as_me:$LINENO: result: no" >&5
28776 echo "${ECHO_T}no" >&6; }
28777               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28778 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28779    { (exit 1); exit 1; }; }
28780            fi
28781            if test -f $SQL_LIBDIR/libsqlite.so; then
28782               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28783            else
28784               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28785            fi
28786         ;;
28787         "sqlite3")
28788            db_prog="sqlite3"
28789            if test -f /usr/local/bin/sqlite3; then
28790               SQL_BINDIR=/usr/local/bin
28791               if test -d /usr/local/lib64; then
28792                  SQL_LIBDIR=/usr/local/lib64
28793               else
28794                  SQL_LIBDIR=/usr/local/lib
28795               fi
28796            elif test -f /usr/bin/sqlite3; then
28797               SQL_BINDIR=/usr/bin
28798               if test -d /usr/lib64; then
28799                  SQL_LIBDIR=/usr/lib64
28800               else
28801                  SQL_LIBDIR=/usr/lib
28802               fi
28803            elif test -f $withval/bin/sqlite3; then
28804               SQL_BINDIR=$withval/bin
28805               if test -d $withval/lib64; then
28806                  SQL_LIBDIR=$withval/lib64
28807               else
28808                  SQL_LIBDIR=$withval/lib
28809               fi
28810            else
28811               { echo "$as_me:$LINENO: result: no" >&5
28812 echo "${ECHO_T}no" >&6; }
28813               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28814 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28815    { (exit 1); exit 1; }; }
28816            fi
28817            if test -f $SQL_LIBDIR/libsqlite3.so; then
28818               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28819            else
28820               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28821            fi
28822         ;;
28823         *)
28824            { echo "$as_me:$LINENO: result: no" >&5
28825 echo "${ECHO_T}no" >&6; }
28826            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28827 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28828    { (exit 1); exit 1; }; }
28829         ;;
28830      esac
28831
28832      { echo "$as_me:$LINENO: result: yes" >&5
28833 echo "${ECHO_T}yes" >&6; }
28834      DB_PROG=$db_prog
28835   else
28836      { echo "$as_me:$LINENO: result: no" >&5
28837 echo "${ECHO_T}no" >&6; }
28838   fi
28839
28840 else
28841
28842   { echo "$as_me:$LINENO: result: no" >&5
28843 echo "${ECHO_T}no" >&6; }
28844
28845 fi
28846
28847
28848
28849
28850
28851
28852
28853
28854
28855
28856 support_batch_insert=no
28857 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28858 pkg=$?
28859 if test $pkg = 0; then
28860    support_batch_insert=yes
28861    # Check whether --enable-batch-insert was given.
28862 if test "${enable_batch_insert+set}" = set; then
28863   enableval=$enable_batch_insert;
28864           if test x$enableval = xno; then
28865              support_batch_insert=no
28866           else
28867              support_batch_insert=yes
28868           fi
28869
28870
28871 fi
28872
28873 fi
28874
28875 if test x$DB_TYPE = xpostgresql; then
28876    A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28877    pkg=$?
28878    if test $pkg != 0; then
28879       support_batch_insert=no
28880    fi
28881 fi
28882
28883 if test x$DB_TYPE = xdbi; then
28884    DB_TYPE=$DB_PROG
28885    db_type=$DB_PROG
28886    pkg=1
28887       if test $DB_PROG = postgresql; then
28888       A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28889       pkg=$?
28890    fi
28891
28892    if test $DB_PROG = mysql; then
28893       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28894       pkg=$?
28895    fi
28896
28897    if test $DB_PROG = sqlite3; then
28898       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28899       pkg=$?
28900    fi
28901
28902    if test $pkg = 0; then
28903       # Check whether --enable-batch-insert was given.
28904 if test "${enable_batch_insert+set}" = set; then
28905   enableval=$enable_batch_insert;
28906              if test x$enableval = xno; then
28907                 support_batch_insert=no
28908              else
28909                 support_batch_insert=yes
28910              fi
28911
28912
28913 fi
28914
28915    fi
28916 else
28917       uncomment_dbi="#"
28918 fi
28919
28920
28921
28922 if test $support_batch_insert = yes ; then
28923
28924 cat >>confdefs.h <<\_ACEOF
28925 #define HAVE_BATCH_FILE_INSERT 1
28926 _ACEOF
28927
28928 fi
28929
28930 cat >>confdefs.h <<\_ACEOF
28931 #define PROTOTYPES 1
28932 _ACEOF
28933
28934
28935 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28936    if test -z "$CCOPTS"; then
28937       CCOPTS='-g -O2 -Wall'
28938    fi
28939    CFLAGS="$CCOPTS"
28940 fi
28941
28942
28943
28944 largefile_support="no"
28945
28946    # Check whether --enable-largefile was given.
28947 if test "${enable_largefile+set}" = set; then
28948   enableval=$enable_largefile;
28949 fi
28950
28951    if test "$enable_largefile" != no; then
28952      if test -n "$ac_tool_prefix"; then
28953   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28954 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28957 if test "${ac_cv_prog_GETCONF+set}" = set; then
28958   echo $ECHO_N "(cached) $ECHO_C" >&6
28959 else
28960   if test -n "$GETCONF"; then
28961   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28962 else
28963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28964 for as_dir in $PATH
28965 do
28966   IFS=$as_save_IFS
28967   test -z "$as_dir" && as_dir=.
28968   for ac_exec_ext in '' $ac_executable_extensions; do
28969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28970     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28972     break 2
28973   fi
28974 done
28975 done
28976 IFS=$as_save_IFS
28977
28978 fi
28979 fi
28980 GETCONF=$ac_cv_prog_GETCONF
28981 if test -n "$GETCONF"; then
28982   { echo "$as_me:$LINENO: result: $GETCONF" >&5
28983 echo "${ECHO_T}$GETCONF" >&6; }
28984 else
28985   { echo "$as_me:$LINENO: result: no" >&5
28986 echo "${ECHO_T}no" >&6; }
28987 fi
28988
28989
28990 fi
28991 if test -z "$ac_cv_prog_GETCONF"; then
28992   ac_ct_GETCONF=$GETCONF
28993   # Extract the first word of "getconf", so it can be a program name with args.
28994 set dummy getconf; ac_word=$2
28995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28997 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28998   echo $ECHO_N "(cached) $ECHO_C" >&6
28999 else
29000   if test -n "$ac_ct_GETCONF"; then
29001   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29002 else
29003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29004 for as_dir in $PATH
29005 do
29006   IFS=$as_save_IFS
29007   test -z "$as_dir" && as_dir=.
29008   for ac_exec_ext in '' $ac_executable_extensions; do
29009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29010     ac_cv_prog_ac_ct_GETCONF="getconf"
29011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29012     break 2
29013   fi
29014 done
29015 done
29016 IFS=$as_save_IFS
29017
29018 fi
29019 fi
29020 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29021 if test -n "$ac_ct_GETCONF"; then
29022   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29023 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29024 else
29025   { echo "$as_me:$LINENO: result: no" >&5
29026 echo "${ECHO_T}no" >&6; }
29027 fi
29028
29029   if test "x$ac_ct_GETCONF" = x; then
29030     GETCONF=""
29031   else
29032     case $cross_compiling:$ac_tool_warned in
29033 yes:)
29034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29035 whose name does not start with the host triplet.  If you think this
29036 configuration is useful to you, please write to autoconf@gnu.org." >&5
29037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29038 whose name does not start with the host triplet.  If you think this
29039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29040 ac_tool_warned=yes ;;
29041 esac
29042     GETCONF=$ac_ct_GETCONF
29043   fi
29044 else
29045   GETCONF="$ac_cv_prog_GETCONF"
29046 fi
29047
29048      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29049 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29050 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29051   echo $ECHO_N "(cached) $ECHO_C" >&6
29052 else
29053   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29054         ac_cv_sys_largefile_CFLAGS=no
29055         case "$host_os" in
29056            # IRIX 6.2 and later require cc -n32.
29057            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29058              if test "$GCC" != yes; then
29059                ac_cv_sys_largefile_CFLAGS=-n32
29060              fi
29061              ac_save_CC="$CC"
29062              CC="$CC $ac_cv_sys_largefile_CFLAGS"
29063              cat >conftest.$ac_ext <<_ACEOF
29064 /* confdefs.h.  */
29065 _ACEOF
29066 cat confdefs.h >>conftest.$ac_ext
29067 cat >>conftest.$ac_ext <<_ACEOF
29068 /* end confdefs.h.  */
29069
29070 int
29071 main ()
29072 {
29073
29074   ;
29075   return 0;
29076 }
29077 _ACEOF
29078 rm -f conftest.$ac_objext conftest$ac_exeext
29079 if { (ac_try="$ac_link"
29080 case "(($ac_try" in
29081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29082   *) ac_try_echo=$ac_try;;
29083 esac
29084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29085   (eval "$ac_link") 2>conftest.er1
29086   ac_status=$?
29087   grep -v '^ *+' conftest.er1 >conftest.err
29088   rm -f conftest.er1
29089   cat conftest.err >&5
29090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29091   (exit $ac_status); } && {
29092          test -z "$ac_c_werror_flag" ||
29093          test ! -s conftest.err
29094        } && test -s conftest$ac_exeext &&
29095        $as_test_x conftest$ac_exeext; then
29096   :
29097 else
29098   echo "$as_me: failed program was:" >&5
29099 sed 's/^/| /' conftest.$ac_ext >&5
29100
29101         ac_cv_sys_largefile_CFLAGS=no
29102 fi
29103
29104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29105       conftest$ac_exeext conftest.$ac_ext
29106              CC="$ac_save_CC"
29107            esac
29108       }
29109 fi
29110 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29111 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29112      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29113 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29114 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29115   echo $ECHO_N "(cached) $ECHO_C" >&6
29116 else
29117   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29118         ac_cv_sys_largefile_LDFLAGS=no
29119
29120       }
29121 fi
29122 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29123 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29124      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29125 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29126 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29127   echo $ECHO_N "(cached) $ECHO_C" >&6
29128 else
29129   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29130         ac_cv_sys_largefile_LIBS=no
29131
29132       }
29133 fi
29134 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29135 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29136
29137      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29138        case "$ac_flag" in
29139        no) ;;
29140        -D_FILE_OFFSET_BITS=*) ;;
29141        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29142        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29143        -D?* | -I?*)
29144          case "$ac_flag" in
29145    no) ;;
29146    ?*)
29147      case "$CPPFLAGS" in
29148      '') CPPFLAGS="$ac_flag" ;;
29149      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29150      esac ;;
29151    esac ;;
29152        *)
29153          case "$ac_flag" in
29154    no) ;;
29155    ?*)
29156      case "$CFLAGS" in
29157      '') CFLAGS="$ac_flag" ;;
29158      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29159      esac ;;
29160    esac ;;
29161        esac
29162      done
29163      case "$ac_cv_sys_largefile_LDFLAGS" in
29164    no) ;;
29165    ?*)
29166      case "$LDFLAGS" in
29167      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29168      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29169      esac ;;
29170    esac
29171      case "$ac_cv_sys_largefile_LIBS" in
29172    no) ;;
29173    ?*)
29174      case "$LIBS" in
29175      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29176      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29177      esac ;;
29178    esac
29179      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29180 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29181 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29182   echo $ECHO_N "(cached) $ECHO_C" >&6
29183 else
29184   ac_cv_sys_file_offset_bits=no
29185       ac_cv_sys_file_offset_bits=64
29186       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29187         case "$ac_flag" in
29188         -D_FILE_OFFSET_BITS)
29189           ac_cv_sys_file_offset_bits=1 ;;
29190         -D_FILE_OFFSET_BITS=*)
29191           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29192         esac
29193       done
29194
29195 fi
29196 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29197 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29198    if test "$ac_cv_sys_file_offset_bits" != no; then
29199
29200 cat >>confdefs.h <<_ACEOF
29201 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29202 _ACEOF
29203
29204    fi
29205      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29206 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29207 if test "${ac_cv_sys_largefile_source+set}" = set; then
29208   echo $ECHO_N "(cached) $ECHO_C" >&6
29209 else
29210   ac_cv_sys_largefile_source=no
29211       ac_cv_sys_largefile_source=1
29212       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29213         case "$ac_flag" in
29214         -D_LARGEFILE_SOURCE)
29215           ac_cv_sys_largefile_source=1 ;;
29216         -D_LARGEFILE_SOURCE=*)
29217           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29218         esac
29219       done
29220
29221 fi
29222 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29223 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29224    if test "$ac_cv_sys_largefile_source" != no; then
29225
29226 cat >>confdefs.h <<_ACEOF
29227 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29228 _ACEOF
29229
29230    fi
29231      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29232 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29233 if test "${ac_cv_sys_large_files+set}" = set; then
29234   echo $ECHO_N "(cached) $ECHO_C" >&6
29235 else
29236   ac_cv_sys_large_files=no
29237       ac_cv_sys_large_files=1
29238       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29239         case "$ac_flag" in
29240         -D_LARGE_FILES)
29241           ac_cv_sys_large_files=1 ;;
29242         -D_LARGE_FILES=*)
29243           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29244         esac
29245       done
29246
29247 fi
29248 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29249 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29250    if test "$ac_cv_sys_large_files" != no; then
29251
29252 cat >>confdefs.h <<_ACEOF
29253 #define _LARGE_FILES $ac_cv_sys_large_files
29254 _ACEOF
29255
29256    fi
29257    fi
29258
29259
29260 { echo "$as_me:$LINENO: checking for X" >&5
29261 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29262
29263
29264 # Check whether --with-x was given.
29265 if test "${with_x+set}" = set; then
29266   withval=$with_x;
29267 fi
29268
29269 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29270 if test "x$with_x" = xno; then
29271   # The user explicitly disabled X.
29272   have_x=disabled
29273 else
29274   case $x_includes,$x_libraries in #(
29275     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29276 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29277    { (exit 1); exit 1; }; };; #(
29278     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29279   echo $ECHO_N "(cached) $ECHO_C" >&6
29280 else
29281   # One or both of the vars are not set, and there is no cached value.
29282 ac_x_includes=no ac_x_libraries=no
29283 rm -f -r conftest.dir
29284 if mkdir conftest.dir; then
29285   cd conftest.dir
29286   cat >Imakefile <<'_ACEOF'
29287 incroot:
29288         @echo incroot='${INCROOT}'
29289 usrlibdir:
29290         @echo usrlibdir='${USRLIBDIR}'
29291 libdir:
29292         @echo libdir='${LIBDIR}'
29293 _ACEOF
29294   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29295     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29296     for ac_var in incroot usrlibdir libdir; do
29297       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29298     done
29299     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29300     for ac_extension in a so sl; do
29301       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29302          test -f "$ac_im_libdir/libX11.$ac_extension"; then
29303         ac_im_usrlibdir=$ac_im_libdir; break
29304       fi
29305     done
29306     # Screen out bogus values from the imake configuration.  They are
29307     # bogus both because they are the default anyway, and because
29308     # using them would break gcc on systems where it needs fixed includes.
29309     case $ac_im_incroot in
29310         /usr/include) ac_x_includes= ;;
29311         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29312     esac
29313     case $ac_im_usrlibdir in
29314         /usr/lib | /lib) ;;
29315         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29316     esac
29317   fi
29318   cd ..
29319   rm -f -r conftest.dir
29320 fi
29321
29322 # Standard set of common directories for X headers.
29323 # Check X11 before X11Rn because it is often a symlink to the current release.
29324 ac_x_header_dirs='
29325 /usr/X11/include
29326 /usr/X11R6/include
29327 /usr/X11R5/include
29328 /usr/X11R4/include
29329
29330 /usr/include/X11
29331 /usr/include/X11R6
29332 /usr/include/X11R5
29333 /usr/include/X11R4
29334
29335 /usr/local/X11/include
29336 /usr/local/X11R6/include
29337 /usr/local/X11R5/include
29338 /usr/local/X11R4/include
29339
29340 /usr/local/include/X11
29341 /usr/local/include/X11R6
29342 /usr/local/include/X11R5
29343 /usr/local/include/X11R4
29344
29345 /usr/X386/include
29346 /usr/x386/include
29347 /usr/XFree86/include/X11
29348
29349 /usr/include
29350 /usr/local/include
29351 /usr/unsupported/include
29352 /usr/athena/include
29353 /usr/local/x11r5/include
29354 /usr/lpp/Xamples/include
29355
29356 /usr/openwin/include
29357 /usr/openwin/share/include'
29358
29359 if test "$ac_x_includes" = no; then
29360   # Guess where to find include files, by looking for Xlib.h.
29361   # First, try using that file with no special directory specified.
29362   cat >conftest.$ac_ext <<_ACEOF
29363 /* confdefs.h.  */
29364 _ACEOF
29365 cat confdefs.h >>conftest.$ac_ext
29366 cat >>conftest.$ac_ext <<_ACEOF
29367 /* end confdefs.h.  */
29368 #include <X11/Xlib.h>
29369 _ACEOF
29370 if { (ac_try="$ac_cpp conftest.$ac_ext"
29371 case "(($ac_try" in
29372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29373   *) ac_try_echo=$ac_try;;
29374 esac
29375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29377   ac_status=$?
29378   grep -v '^ *+' conftest.er1 >conftest.err
29379   rm -f conftest.er1
29380   cat conftest.err >&5
29381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382   (exit $ac_status); } >/dev/null && {
29383          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29384          test ! -s conftest.err
29385        }; then
29386   # We can compile using X headers with no special include directory.
29387 ac_x_includes=
29388 else
29389   echo "$as_me: failed program was:" >&5
29390 sed 's/^/| /' conftest.$ac_ext >&5
29391
29392   for ac_dir in $ac_x_header_dirs; do
29393   if test -r "$ac_dir/X11/Xlib.h"; then
29394     ac_x_includes=$ac_dir
29395     break
29396   fi
29397 done
29398 fi
29399
29400 rm -f conftest.err conftest.$ac_ext
29401 fi # $ac_x_includes = no
29402
29403 if test "$ac_x_libraries" = no; then
29404   # Check for the libraries.
29405   # See if we find them without any special options.
29406   # Don't add to $LIBS permanently.
29407   ac_save_LIBS=$LIBS
29408   LIBS="-lX11 $LIBS"
29409   cat >conftest.$ac_ext <<_ACEOF
29410 /* confdefs.h.  */
29411 _ACEOF
29412 cat confdefs.h >>conftest.$ac_ext
29413 cat >>conftest.$ac_ext <<_ACEOF
29414 /* end confdefs.h.  */
29415 #include <X11/Xlib.h>
29416 int
29417 main ()
29418 {
29419 XrmInitialize ()
29420   ;
29421   return 0;
29422 }
29423 _ACEOF
29424 rm -f conftest.$ac_objext conftest$ac_exeext
29425 if { (ac_try="$ac_link"
29426 case "(($ac_try" in
29427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29428   *) ac_try_echo=$ac_try;;
29429 esac
29430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29431   (eval "$ac_link") 2>conftest.er1
29432   ac_status=$?
29433   grep -v '^ *+' conftest.er1 >conftest.err
29434   rm -f conftest.er1
29435   cat conftest.err >&5
29436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29437   (exit $ac_status); } && {
29438          test -z "$ac_c_werror_flag" ||
29439          test ! -s conftest.err
29440        } && test -s conftest$ac_exeext &&
29441        $as_test_x conftest$ac_exeext; then
29442   LIBS=$ac_save_LIBS
29443 # We can link X programs with no special library path.
29444 ac_x_libraries=
29445 else
29446   echo "$as_me: failed program was:" >&5
29447 sed 's/^/| /' conftest.$ac_ext >&5
29448
29449         LIBS=$ac_save_LIBS
29450 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29451 do
29452   # Don't even attempt the hair of trying to link an X program!
29453   for ac_extension in a so sl; do
29454     if test -r "$ac_dir/libX11.$ac_extension"; then
29455       ac_x_libraries=$ac_dir
29456       break 2
29457     fi
29458   done
29459 done
29460 fi
29461
29462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29463       conftest$ac_exeext conftest.$ac_ext
29464 fi # $ac_x_libraries = no
29465
29466 case $ac_x_includes,$ac_x_libraries in #(
29467   no,* | *,no | *\'*)
29468     # Didn't find X, or a directory has "'" in its name.
29469     ac_cv_have_x="have_x=no";; #(
29470   *)
29471     # Record where we found X for the cache.
29472     ac_cv_have_x="have_x=yes\
29473         ac_x_includes='$ac_x_includes'\
29474         ac_x_libraries='$ac_x_libraries'"
29475 esac
29476 fi
29477 ;; #(
29478     *) have_x=yes;;
29479   esac
29480   eval "$ac_cv_have_x"
29481 fi # $with_x != no
29482
29483 if test "$have_x" != yes; then
29484   { echo "$as_me:$LINENO: result: $have_x" >&5
29485 echo "${ECHO_T}$have_x" >&6; }
29486   no_x=yes
29487 else
29488   # If each of the values was on the command line, it overrides each guess.
29489   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29490   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29491   # Update the cache value to reflect the command line values.
29492   ac_cv_have_x="have_x=yes\
29493         ac_x_includes='$x_includes'\
29494         ac_x_libraries='$x_libraries'"
29495   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29496 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29497 fi
29498
29499 if test "$no_x" = yes; then
29500   # Not all programs may use this symbol, but it does not hurt to define it.
29501
29502 cat >>confdefs.h <<\_ACEOF
29503 #define X_DISPLAY_MISSING 1
29504 _ACEOF
29505
29506   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29507 else
29508   if test -n "$x_includes"; then
29509     X_CFLAGS="$X_CFLAGS -I$x_includes"
29510   fi
29511
29512   # It would also be nice to do this for all -L options, not just this one.
29513   if test -n "$x_libraries"; then
29514     X_LIBS="$X_LIBS -L$x_libraries"
29515     # For Solaris; some versions of Sun CC require a space after -R and
29516     # others require no space.  Words are not sufficient . . . .
29517     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29518 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29519     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29520     ac_xsave_c_werror_flag=$ac_c_werror_flag
29521     ac_c_werror_flag=yes
29522     cat >conftest.$ac_ext <<_ACEOF
29523 /* confdefs.h.  */
29524 _ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h.  */
29528
29529 int
29530 main ()
29531 {
29532
29533   ;
29534   return 0;
29535 }
29536 _ACEOF
29537 rm -f conftest.$ac_objext conftest$ac_exeext
29538 if { (ac_try="$ac_link"
29539 case "(($ac_try" in
29540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29541   *) ac_try_echo=$ac_try;;
29542 esac
29543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29544   (eval "$ac_link") 2>conftest.er1
29545   ac_status=$?
29546   grep -v '^ *+' conftest.er1 >conftest.err
29547   rm -f conftest.er1
29548   cat conftest.err >&5
29549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550   (exit $ac_status); } && {
29551          test -z "$ac_c_werror_flag" ||
29552          test ! -s conftest.err
29553        } && test -s conftest$ac_exeext &&
29554        $as_test_x conftest$ac_exeext; then
29555   { echo "$as_me:$LINENO: result: no" >&5
29556 echo "${ECHO_T}no" >&6; }
29557        X_LIBS="$X_LIBS -R$x_libraries"
29558 else
29559   echo "$as_me: failed program was:" >&5
29560 sed 's/^/| /' conftest.$ac_ext >&5
29561
29562         LIBS="$ac_xsave_LIBS -R $x_libraries"
29563        cat >conftest.$ac_ext <<_ACEOF
29564 /* confdefs.h.  */
29565 _ACEOF
29566 cat confdefs.h >>conftest.$ac_ext
29567 cat >>conftest.$ac_ext <<_ACEOF
29568 /* end confdefs.h.  */
29569
29570 int
29571 main ()
29572 {
29573
29574   ;
29575   return 0;
29576 }
29577 _ACEOF
29578 rm -f conftest.$ac_objext conftest$ac_exeext
29579 if { (ac_try="$ac_link"
29580 case "(($ac_try" in
29581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29582   *) ac_try_echo=$ac_try;;
29583 esac
29584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29585   (eval "$ac_link") 2>conftest.er1
29586   ac_status=$?
29587   grep -v '^ *+' conftest.er1 >conftest.err
29588   rm -f conftest.er1
29589   cat conftest.err >&5
29590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591   (exit $ac_status); } && {
29592          test -z "$ac_c_werror_flag" ||
29593          test ! -s conftest.err
29594        } && test -s conftest$ac_exeext &&
29595        $as_test_x conftest$ac_exeext; then
29596   { echo "$as_me:$LINENO: result: yes" >&5
29597 echo "${ECHO_T}yes" >&6; }
29598           X_LIBS="$X_LIBS -R $x_libraries"
29599 else
29600   echo "$as_me: failed program was:" >&5
29601 sed 's/^/| /' conftest.$ac_ext >&5
29602
29603         { echo "$as_me:$LINENO: result: neither works" >&5
29604 echo "${ECHO_T}neither works" >&6; }
29605 fi
29606
29607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29608       conftest$ac_exeext conftest.$ac_ext
29609 fi
29610
29611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29612       conftest$ac_exeext conftest.$ac_ext
29613     ac_c_werror_flag=$ac_xsave_c_werror_flag
29614     LIBS=$ac_xsave_LIBS
29615   fi
29616
29617   # Check for system-dependent libraries X programs must link with.
29618   # Do this before checking for the system-independent R6 libraries
29619   # (-lICE), since we may need -lsocket or whatever for X linking.
29620
29621   if test "$ISC" = yes; then
29622     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29623   else
29624     # Martyn Johnson says this is needed for Ultrix, if the X
29625     # libraries were built with DECnet support.  And Karl Berry says
29626     # the Alpha needs dnet_stub (dnet does not exist).
29627     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29628     cat >conftest.$ac_ext <<_ACEOF
29629 /* confdefs.h.  */
29630 _ACEOF
29631 cat confdefs.h >>conftest.$ac_ext
29632 cat >>conftest.$ac_ext <<_ACEOF
29633 /* end confdefs.h.  */
29634
29635 /* Override any GCC internal prototype to avoid an error.
29636    Use char because int might match the return type of a GCC
29637    builtin and then its argument prototype would still apply.  */
29638 #ifdef __cplusplus
29639 extern "C"
29640 #endif
29641 char XOpenDisplay ();
29642 int
29643 main ()
29644 {
29645 return XOpenDisplay ();
29646   ;
29647   return 0;
29648 }
29649 _ACEOF
29650 rm -f conftest.$ac_objext conftest$ac_exeext
29651 if { (ac_try="$ac_link"
29652 case "(($ac_try" in
29653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29654   *) ac_try_echo=$ac_try;;
29655 esac
29656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29657   (eval "$ac_link") 2>conftest.er1
29658   ac_status=$?
29659   grep -v '^ *+' conftest.er1 >conftest.err
29660   rm -f conftest.er1
29661   cat conftest.err >&5
29662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663   (exit $ac_status); } && {
29664          test -z "$ac_c_werror_flag" ||
29665          test ! -s conftest.err
29666        } && test -s conftest$ac_exeext &&
29667        $as_test_x conftest$ac_exeext; then
29668   :
29669 else
29670   echo "$as_me: failed program was:" >&5
29671 sed 's/^/| /' conftest.$ac_ext >&5
29672
29673         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29674 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29675 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29676   echo $ECHO_N "(cached) $ECHO_C" >&6
29677 else
29678   ac_check_lib_save_LIBS=$LIBS
29679 LIBS="-ldnet  $LIBS"
29680 cat >conftest.$ac_ext <<_ACEOF
29681 /* confdefs.h.  */
29682 _ACEOF
29683 cat confdefs.h >>conftest.$ac_ext
29684 cat >>conftest.$ac_ext <<_ACEOF
29685 /* end confdefs.h.  */
29686
29687 /* Override any GCC internal prototype to avoid an error.
29688    Use char because int might match the return type of a GCC
29689    builtin and then its argument prototype would still apply.  */
29690 #ifdef __cplusplus
29691 extern "C"
29692 #endif
29693 char dnet_ntoa ();
29694 int
29695 main ()
29696 {
29697 return dnet_ntoa ();
29698   ;
29699   return 0;
29700 }
29701 _ACEOF
29702 rm -f conftest.$ac_objext conftest$ac_exeext
29703 if { (ac_try="$ac_link"
29704 case "(($ac_try" in
29705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29706   *) ac_try_echo=$ac_try;;
29707 esac
29708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29709   (eval "$ac_link") 2>conftest.er1
29710   ac_status=$?
29711   grep -v '^ *+' conftest.er1 >conftest.err
29712   rm -f conftest.er1
29713   cat conftest.err >&5
29714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715   (exit $ac_status); } && {
29716          test -z "$ac_c_werror_flag" ||
29717          test ! -s conftest.err
29718        } && test -s conftest$ac_exeext &&
29719        $as_test_x conftest$ac_exeext; then
29720   ac_cv_lib_dnet_dnet_ntoa=yes
29721 else
29722   echo "$as_me: failed program was:" >&5
29723 sed 's/^/| /' conftest.$ac_ext >&5
29724
29725         ac_cv_lib_dnet_dnet_ntoa=no
29726 fi
29727
29728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29729       conftest$ac_exeext conftest.$ac_ext
29730 LIBS=$ac_check_lib_save_LIBS
29731 fi
29732 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29733 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29734 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29735   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29736 fi
29737
29738     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29739       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29740 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29741 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29742   echo $ECHO_N "(cached) $ECHO_C" >&6
29743 else
29744   ac_check_lib_save_LIBS=$LIBS
29745 LIBS="-ldnet_stub  $LIBS"
29746 cat >conftest.$ac_ext <<_ACEOF
29747 /* confdefs.h.  */
29748 _ACEOF
29749 cat confdefs.h >>conftest.$ac_ext
29750 cat >>conftest.$ac_ext <<_ACEOF
29751 /* end confdefs.h.  */
29752
29753 /* Override any GCC internal prototype to avoid an error.
29754    Use char because int might match the return type of a GCC
29755    builtin and then its argument prototype would still apply.  */
29756 #ifdef __cplusplus
29757 extern "C"
29758 #endif
29759 char dnet_ntoa ();
29760 int
29761 main ()
29762 {
29763 return dnet_ntoa ();
29764   ;
29765   return 0;
29766 }
29767 _ACEOF
29768 rm -f conftest.$ac_objext conftest$ac_exeext
29769 if { (ac_try="$ac_link"
29770 case "(($ac_try" in
29771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29772   *) ac_try_echo=$ac_try;;
29773 esac
29774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29775   (eval "$ac_link") 2>conftest.er1
29776   ac_status=$?
29777   grep -v '^ *+' conftest.er1 >conftest.err
29778   rm -f conftest.er1
29779   cat conftest.err >&5
29780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781   (exit $ac_status); } && {
29782          test -z "$ac_c_werror_flag" ||
29783          test ! -s conftest.err
29784        } && test -s conftest$ac_exeext &&
29785        $as_test_x conftest$ac_exeext; then
29786   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29787 else
29788   echo "$as_me: failed program was:" >&5
29789 sed 's/^/| /' conftest.$ac_ext >&5
29790
29791         ac_cv_lib_dnet_stub_dnet_ntoa=no
29792 fi
29793
29794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29795       conftest$ac_exeext conftest.$ac_ext
29796 LIBS=$ac_check_lib_save_LIBS
29797 fi
29798 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29799 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29800 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29801   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29802 fi
29803
29804     fi
29805 fi
29806
29807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29808       conftest$ac_exeext conftest.$ac_ext
29809     LIBS="$ac_xsave_LIBS"
29810
29811     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29812     # to get the SysV transport functions.
29813     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29814     # needs -lnsl.
29815     # The nsl library prevents programs from opening the X display
29816     # on Irix 5.2, according to T.E. Dickey.
29817     # The functions gethostbyname, getservbyname, and inet_addr are
29818     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29819     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29820 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29821 if test "${ac_cv_func_gethostbyname+set}" = set; then
29822   echo $ECHO_N "(cached) $ECHO_C" >&6
29823 else
29824   cat >conftest.$ac_ext <<_ACEOF
29825 /* confdefs.h.  */
29826 _ACEOF
29827 cat confdefs.h >>conftest.$ac_ext
29828 cat >>conftest.$ac_ext <<_ACEOF
29829 /* end confdefs.h.  */
29830 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29832 #define gethostbyname innocuous_gethostbyname
29833
29834 /* System header to define __stub macros and hopefully few prototypes,
29835     which can conflict with char gethostbyname (); below.
29836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29837     <limits.h> exists even on freestanding compilers.  */
29838
29839 #ifdef __STDC__
29840 # include <limits.h>
29841 #else
29842 # include <assert.h>
29843 #endif
29844
29845 #undef gethostbyname
29846
29847 /* Override any GCC internal prototype to avoid an error.
29848    Use char because int might match the return type of a GCC
29849    builtin and then its argument prototype would still apply.  */
29850 #ifdef __cplusplus
29851 extern "C"
29852 #endif
29853 char gethostbyname ();
29854 /* The GNU C library defines this for functions which it implements
29855     to always fail with ENOSYS.  Some functions are actually named
29856     something starting with __ and the normal name is an alias.  */
29857 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29858 choke me
29859 #endif
29860
29861 int
29862 main ()
29863 {
29864 return gethostbyname ();
29865   ;
29866   return 0;
29867 }
29868 _ACEOF
29869 rm -f conftest.$ac_objext conftest$ac_exeext
29870 if { (ac_try="$ac_link"
29871 case "(($ac_try" in
29872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29873   *) ac_try_echo=$ac_try;;
29874 esac
29875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29876   (eval "$ac_link") 2>conftest.er1
29877   ac_status=$?
29878   grep -v '^ *+' conftest.er1 >conftest.err
29879   rm -f conftest.er1
29880   cat conftest.err >&5
29881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882   (exit $ac_status); } && {
29883          test -z "$ac_c_werror_flag" ||
29884          test ! -s conftest.err
29885        } && test -s conftest$ac_exeext &&
29886        $as_test_x conftest$ac_exeext; then
29887   ac_cv_func_gethostbyname=yes
29888 else
29889   echo "$as_me: failed program was:" >&5
29890 sed 's/^/| /' conftest.$ac_ext >&5
29891
29892         ac_cv_func_gethostbyname=no
29893 fi
29894
29895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29896       conftest$ac_exeext conftest.$ac_ext
29897 fi
29898 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29899 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29900
29901     if test $ac_cv_func_gethostbyname = no; then
29902       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29903 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29904 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29905   echo $ECHO_N "(cached) $ECHO_C" >&6
29906 else
29907   ac_check_lib_save_LIBS=$LIBS
29908 LIBS="-lnsl  $LIBS"
29909 cat >conftest.$ac_ext <<_ACEOF
29910 /* confdefs.h.  */
29911 _ACEOF
29912 cat confdefs.h >>conftest.$ac_ext
29913 cat >>conftest.$ac_ext <<_ACEOF
29914 /* end confdefs.h.  */
29915
29916 /* Override any GCC internal prototype to avoid an error.
29917    Use char because int might match the return type of a GCC
29918    builtin and then its argument prototype would still apply.  */
29919 #ifdef __cplusplus
29920 extern "C"
29921 #endif
29922 char gethostbyname ();
29923 int
29924 main ()
29925 {
29926 return gethostbyname ();
29927   ;
29928   return 0;
29929 }
29930 _ACEOF
29931 rm -f conftest.$ac_objext conftest$ac_exeext
29932 if { (ac_try="$ac_link"
29933 case "(($ac_try" in
29934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29935   *) ac_try_echo=$ac_try;;
29936 esac
29937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29938   (eval "$ac_link") 2>conftest.er1
29939   ac_status=$?
29940   grep -v '^ *+' conftest.er1 >conftest.err
29941   rm -f conftest.er1
29942   cat conftest.err >&5
29943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944   (exit $ac_status); } && {
29945          test -z "$ac_c_werror_flag" ||
29946          test ! -s conftest.err
29947        } && test -s conftest$ac_exeext &&
29948        $as_test_x conftest$ac_exeext; then
29949   ac_cv_lib_nsl_gethostbyname=yes
29950 else
29951   echo "$as_me: failed program was:" >&5
29952 sed 's/^/| /' conftest.$ac_ext >&5
29953
29954         ac_cv_lib_nsl_gethostbyname=no
29955 fi
29956
29957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29958       conftest$ac_exeext conftest.$ac_ext
29959 LIBS=$ac_check_lib_save_LIBS
29960 fi
29961 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29962 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29963 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29964   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29965 fi
29966
29967       if test $ac_cv_lib_nsl_gethostbyname = no; then
29968         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29969 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29970 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29971   echo $ECHO_N "(cached) $ECHO_C" >&6
29972 else
29973   ac_check_lib_save_LIBS=$LIBS
29974 LIBS="-lbsd  $LIBS"
29975 cat >conftest.$ac_ext <<_ACEOF
29976 /* confdefs.h.  */
29977 _ACEOF
29978 cat confdefs.h >>conftest.$ac_ext
29979 cat >>conftest.$ac_ext <<_ACEOF
29980 /* end confdefs.h.  */
29981
29982 /* Override any GCC internal prototype to avoid an error.
29983    Use char because int might match the return type of a GCC
29984    builtin and then its argument prototype would still apply.  */
29985 #ifdef __cplusplus
29986 extern "C"
29987 #endif
29988 char gethostbyname ();
29989 int
29990 main ()
29991 {
29992 return gethostbyname ();
29993   ;
29994   return 0;
29995 }
29996 _ACEOF
29997 rm -f conftest.$ac_objext conftest$ac_exeext
29998 if { (ac_try="$ac_link"
29999 case "(($ac_try" in
30000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001   *) ac_try_echo=$ac_try;;
30002 esac
30003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30004   (eval "$ac_link") 2>conftest.er1
30005   ac_status=$?
30006   grep -v '^ *+' conftest.er1 >conftest.err
30007   rm -f conftest.er1
30008   cat conftest.err >&5
30009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30010   (exit $ac_status); } && {
30011          test -z "$ac_c_werror_flag" ||
30012          test ! -s conftest.err
30013        } && test -s conftest$ac_exeext &&
30014        $as_test_x conftest$ac_exeext; then
30015   ac_cv_lib_bsd_gethostbyname=yes
30016 else
30017   echo "$as_me: failed program was:" >&5
30018 sed 's/^/| /' conftest.$ac_ext >&5
30019
30020         ac_cv_lib_bsd_gethostbyname=no
30021 fi
30022
30023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30024       conftest$ac_exeext conftest.$ac_ext
30025 LIBS=$ac_check_lib_save_LIBS
30026 fi
30027 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30028 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30029 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30030   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30031 fi
30032
30033       fi
30034     fi
30035
30036     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30037     # socket/setsockopt and other routines are undefined under SCO ODT
30038     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30039     # on later versions), says Simon Leinen: it contains gethostby*
30040     # variants that don't use the name server (or something).  -lsocket
30041     # must be given before -lnsl if both are needed.  We assume that
30042     # if connect needs -lnsl, so does gethostbyname.
30043     { echo "$as_me:$LINENO: checking for connect" >&5
30044 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30045 if test "${ac_cv_func_connect+set}" = set; then
30046   echo $ECHO_N "(cached) $ECHO_C" >&6
30047 else
30048   cat >conftest.$ac_ext <<_ACEOF
30049 /* confdefs.h.  */
30050 _ACEOF
30051 cat confdefs.h >>conftest.$ac_ext
30052 cat >>conftest.$ac_ext <<_ACEOF
30053 /* end confdefs.h.  */
30054 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30056 #define connect innocuous_connect
30057
30058 /* System header to define __stub macros and hopefully few prototypes,
30059     which can conflict with char connect (); below.
30060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30061     <limits.h> exists even on freestanding compilers.  */
30062
30063 #ifdef __STDC__
30064 # include <limits.h>
30065 #else
30066 # include <assert.h>
30067 #endif
30068
30069 #undef connect
30070
30071 /* Override any GCC internal prototype to avoid an error.
30072    Use char because int might match the return type of a GCC
30073    builtin and then its argument prototype would still apply.  */
30074 #ifdef __cplusplus
30075 extern "C"
30076 #endif
30077 char connect ();
30078 /* The GNU C library defines this for functions which it implements
30079     to always fail with ENOSYS.  Some functions are actually named
30080     something starting with __ and the normal name is an alias.  */
30081 #if defined __stub_connect || defined __stub___connect
30082 choke me
30083 #endif
30084
30085 int
30086 main ()
30087 {
30088 return connect ();
30089   ;
30090   return 0;
30091 }
30092 _ACEOF
30093 rm -f conftest.$ac_objext conftest$ac_exeext
30094 if { (ac_try="$ac_link"
30095 case "(($ac_try" in
30096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097   *) ac_try_echo=$ac_try;;
30098 esac
30099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100   (eval "$ac_link") 2>conftest.er1
30101   ac_status=$?
30102   grep -v '^ *+' conftest.er1 >conftest.err
30103   rm -f conftest.er1
30104   cat conftest.err >&5
30105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106   (exit $ac_status); } && {
30107          test -z "$ac_c_werror_flag" ||
30108          test ! -s conftest.err
30109        } && test -s conftest$ac_exeext &&
30110        $as_test_x conftest$ac_exeext; then
30111   ac_cv_func_connect=yes
30112 else
30113   echo "$as_me: failed program was:" >&5
30114 sed 's/^/| /' conftest.$ac_ext >&5
30115
30116         ac_cv_func_connect=no
30117 fi
30118
30119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30120       conftest$ac_exeext conftest.$ac_ext
30121 fi
30122 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30123 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30124
30125     if test $ac_cv_func_connect = no; then
30126       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30127 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30128 if test "${ac_cv_lib_socket_connect+set}" = set; then
30129   echo $ECHO_N "(cached) $ECHO_C" >&6
30130 else
30131   ac_check_lib_save_LIBS=$LIBS
30132 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30133 cat >conftest.$ac_ext <<_ACEOF
30134 /* confdefs.h.  */
30135 _ACEOF
30136 cat confdefs.h >>conftest.$ac_ext
30137 cat >>conftest.$ac_ext <<_ACEOF
30138 /* end confdefs.h.  */
30139
30140 /* Override any GCC internal prototype to avoid an error.
30141    Use char because int might match the return type of a GCC
30142    builtin and then its argument prototype would still apply.  */
30143 #ifdef __cplusplus
30144 extern "C"
30145 #endif
30146 char connect ();
30147 int
30148 main ()
30149 {
30150 return connect ();
30151   ;
30152   return 0;
30153 }
30154 _ACEOF
30155 rm -f conftest.$ac_objext conftest$ac_exeext
30156 if { (ac_try="$ac_link"
30157 case "(($ac_try" in
30158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30159   *) ac_try_echo=$ac_try;;
30160 esac
30161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30162   (eval "$ac_link") 2>conftest.er1
30163   ac_status=$?
30164   grep -v '^ *+' conftest.er1 >conftest.err
30165   rm -f conftest.er1
30166   cat conftest.err >&5
30167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168   (exit $ac_status); } && {
30169          test -z "$ac_c_werror_flag" ||
30170          test ! -s conftest.err
30171        } && test -s conftest$ac_exeext &&
30172        $as_test_x conftest$ac_exeext; then
30173   ac_cv_lib_socket_connect=yes
30174 else
30175   echo "$as_me: failed program was:" >&5
30176 sed 's/^/| /' conftest.$ac_ext >&5
30177
30178         ac_cv_lib_socket_connect=no
30179 fi
30180
30181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30182       conftest$ac_exeext conftest.$ac_ext
30183 LIBS=$ac_check_lib_save_LIBS
30184 fi
30185 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30186 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30187 if test $ac_cv_lib_socket_connect = yes; then
30188   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30189 fi
30190
30191     fi
30192
30193     # Guillermo Gomez says -lposix is necessary on A/UX.
30194     { echo "$as_me:$LINENO: checking for remove" >&5
30195 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30196 if test "${ac_cv_func_remove+set}" = set; then
30197   echo $ECHO_N "(cached) $ECHO_C" >&6
30198 else
30199   cat >conftest.$ac_ext <<_ACEOF
30200 /* confdefs.h.  */
30201 _ACEOF
30202 cat confdefs.h >>conftest.$ac_ext
30203 cat >>conftest.$ac_ext <<_ACEOF
30204 /* end confdefs.h.  */
30205 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30207 #define remove innocuous_remove
30208
30209 /* System header to define __stub macros and hopefully few prototypes,
30210     which can conflict with char remove (); below.
30211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30212     <limits.h> exists even on freestanding compilers.  */
30213
30214 #ifdef __STDC__
30215 # include <limits.h>
30216 #else
30217 # include <assert.h>
30218 #endif
30219
30220 #undef remove
30221
30222 /* Override any GCC internal prototype to avoid an error.
30223    Use char because int might match the return type of a GCC
30224    builtin and then its argument prototype would still apply.  */
30225 #ifdef __cplusplus
30226 extern "C"
30227 #endif
30228 char remove ();
30229 /* The GNU C library defines this for functions which it implements
30230     to always fail with ENOSYS.  Some functions are actually named
30231     something starting with __ and the normal name is an alias.  */
30232 #if defined __stub_remove || defined __stub___remove
30233 choke me
30234 #endif
30235
30236 int
30237 main ()
30238 {
30239 return remove ();
30240   ;
30241   return 0;
30242 }
30243 _ACEOF
30244 rm -f conftest.$ac_objext conftest$ac_exeext
30245 if { (ac_try="$ac_link"
30246 case "(($ac_try" in
30247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30248   *) ac_try_echo=$ac_try;;
30249 esac
30250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30251   (eval "$ac_link") 2>conftest.er1
30252   ac_status=$?
30253   grep -v '^ *+' conftest.er1 >conftest.err
30254   rm -f conftest.er1
30255   cat conftest.err >&5
30256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257   (exit $ac_status); } && {
30258          test -z "$ac_c_werror_flag" ||
30259          test ! -s conftest.err
30260        } && test -s conftest$ac_exeext &&
30261        $as_test_x conftest$ac_exeext; then
30262   ac_cv_func_remove=yes
30263 else
30264   echo "$as_me: failed program was:" >&5
30265 sed 's/^/| /' conftest.$ac_ext >&5
30266
30267         ac_cv_func_remove=no
30268 fi
30269
30270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30271       conftest$ac_exeext conftest.$ac_ext
30272 fi
30273 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30274 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30275
30276     if test $ac_cv_func_remove = no; then
30277       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30278 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30279 if test "${ac_cv_lib_posix_remove+set}" = set; then
30280   echo $ECHO_N "(cached) $ECHO_C" >&6
30281 else
30282   ac_check_lib_save_LIBS=$LIBS
30283 LIBS="-lposix  $LIBS"
30284 cat >conftest.$ac_ext <<_ACEOF
30285 /* confdefs.h.  */
30286 _ACEOF
30287 cat confdefs.h >>conftest.$ac_ext
30288 cat >>conftest.$ac_ext <<_ACEOF
30289 /* end confdefs.h.  */
30290
30291 /* Override any GCC internal prototype to avoid an error.
30292    Use char because int might match the return type of a GCC
30293    builtin and then its argument prototype would still apply.  */
30294 #ifdef __cplusplus
30295 extern "C"
30296 #endif
30297 char remove ();
30298 int
30299 main ()
30300 {
30301 return remove ();
30302   ;
30303   return 0;
30304 }
30305 _ACEOF
30306 rm -f conftest.$ac_objext conftest$ac_exeext
30307 if { (ac_try="$ac_link"
30308 case "(($ac_try" in
30309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30310   *) ac_try_echo=$ac_try;;
30311 esac
30312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30313   (eval "$ac_link") 2>conftest.er1
30314   ac_status=$?
30315   grep -v '^ *+' conftest.er1 >conftest.err
30316   rm -f conftest.er1
30317   cat conftest.err >&5
30318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319   (exit $ac_status); } && {
30320          test -z "$ac_c_werror_flag" ||
30321          test ! -s conftest.err
30322        } && test -s conftest$ac_exeext &&
30323        $as_test_x conftest$ac_exeext; then
30324   ac_cv_lib_posix_remove=yes
30325 else
30326   echo "$as_me: failed program was:" >&5
30327 sed 's/^/| /' conftest.$ac_ext >&5
30328
30329         ac_cv_lib_posix_remove=no
30330 fi
30331
30332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30333       conftest$ac_exeext conftest.$ac_ext
30334 LIBS=$ac_check_lib_save_LIBS
30335 fi
30336 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30337 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30338 if test $ac_cv_lib_posix_remove = yes; then
30339   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30340 fi
30341
30342     fi
30343
30344     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30345     { echo "$as_me:$LINENO: checking for shmat" >&5
30346 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30347 if test "${ac_cv_func_shmat+set}" = set; then
30348   echo $ECHO_N "(cached) $ECHO_C" >&6
30349 else
30350   cat >conftest.$ac_ext <<_ACEOF
30351 /* confdefs.h.  */
30352 _ACEOF
30353 cat confdefs.h >>conftest.$ac_ext
30354 cat >>conftest.$ac_ext <<_ACEOF
30355 /* end confdefs.h.  */
30356 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30358 #define shmat innocuous_shmat
30359
30360 /* System header to define __stub macros and hopefully few prototypes,
30361     which can conflict with char shmat (); below.
30362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30363     <limits.h> exists even on freestanding compilers.  */
30364
30365 #ifdef __STDC__
30366 # include <limits.h>
30367 #else
30368 # include <assert.h>
30369 #endif
30370
30371 #undef shmat
30372
30373 /* Override any GCC internal prototype to avoid an error.
30374    Use char because int might match the return type of a GCC
30375    builtin and then its argument prototype would still apply.  */
30376 #ifdef __cplusplus
30377 extern "C"
30378 #endif
30379 char shmat ();
30380 /* The GNU C library defines this for functions which it implements
30381     to always fail with ENOSYS.  Some functions are actually named
30382     something starting with __ and the normal name is an alias.  */
30383 #if defined __stub_shmat || defined __stub___shmat
30384 choke me
30385 #endif
30386
30387 int
30388 main ()
30389 {
30390 return shmat ();
30391   ;
30392   return 0;
30393 }
30394 _ACEOF
30395 rm -f conftest.$ac_objext conftest$ac_exeext
30396 if { (ac_try="$ac_link"
30397 case "(($ac_try" in
30398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30399   *) ac_try_echo=$ac_try;;
30400 esac
30401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30402   (eval "$ac_link") 2>conftest.er1
30403   ac_status=$?
30404   grep -v '^ *+' conftest.er1 >conftest.err
30405   rm -f conftest.er1
30406   cat conftest.err >&5
30407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408   (exit $ac_status); } && {
30409          test -z "$ac_c_werror_flag" ||
30410          test ! -s conftest.err
30411        } && test -s conftest$ac_exeext &&
30412        $as_test_x conftest$ac_exeext; then
30413   ac_cv_func_shmat=yes
30414 else
30415   echo "$as_me: failed program was:" >&5
30416 sed 's/^/| /' conftest.$ac_ext >&5
30417
30418         ac_cv_func_shmat=no
30419 fi
30420
30421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30422       conftest$ac_exeext conftest.$ac_ext
30423 fi
30424 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30425 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30426
30427     if test $ac_cv_func_shmat = no; then
30428       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30429 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30430 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30431   echo $ECHO_N "(cached) $ECHO_C" >&6
30432 else
30433   ac_check_lib_save_LIBS=$LIBS
30434 LIBS="-lipc  $LIBS"
30435 cat >conftest.$ac_ext <<_ACEOF
30436 /* confdefs.h.  */
30437 _ACEOF
30438 cat confdefs.h >>conftest.$ac_ext
30439 cat >>conftest.$ac_ext <<_ACEOF
30440 /* end confdefs.h.  */
30441
30442 /* Override any GCC internal prototype to avoid an error.
30443    Use char because int might match the return type of a GCC
30444    builtin and then its argument prototype would still apply.  */
30445 #ifdef __cplusplus
30446 extern "C"
30447 #endif
30448 char shmat ();
30449 int
30450 main ()
30451 {
30452 return shmat ();
30453   ;
30454   return 0;
30455 }
30456 _ACEOF
30457 rm -f conftest.$ac_objext conftest$ac_exeext
30458 if { (ac_try="$ac_link"
30459 case "(($ac_try" in
30460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30461   *) ac_try_echo=$ac_try;;
30462 esac
30463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30464   (eval "$ac_link") 2>conftest.er1
30465   ac_status=$?
30466   grep -v '^ *+' conftest.er1 >conftest.err
30467   rm -f conftest.er1
30468   cat conftest.err >&5
30469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470   (exit $ac_status); } && {
30471          test -z "$ac_c_werror_flag" ||
30472          test ! -s conftest.err
30473        } && test -s conftest$ac_exeext &&
30474        $as_test_x conftest$ac_exeext; then
30475   ac_cv_lib_ipc_shmat=yes
30476 else
30477   echo "$as_me: failed program was:" >&5
30478 sed 's/^/| /' conftest.$ac_ext >&5
30479
30480         ac_cv_lib_ipc_shmat=no
30481 fi
30482
30483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30484       conftest$ac_exeext conftest.$ac_ext
30485 LIBS=$ac_check_lib_save_LIBS
30486 fi
30487 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30488 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30489 if test $ac_cv_lib_ipc_shmat = yes; then
30490   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30491 fi
30492
30493     fi
30494   fi
30495
30496   # Check for libraries that X11R6 Xt/Xaw programs need.
30497   ac_save_LDFLAGS=$LDFLAGS
30498   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30499   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30500   # check for ICE first), but we must link in the order -lSM -lICE or
30501   # we get undefined symbols.  So assume we have SM if we have ICE.
30502   # These have to be linked with before -lX11, unlike the other
30503   # libraries we check for below, so use a different variable.
30504   # John Interrante, Karl Berry
30505   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30506 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30507 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30508   echo $ECHO_N "(cached) $ECHO_C" >&6
30509 else
30510   ac_check_lib_save_LIBS=$LIBS
30511 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30512 cat >conftest.$ac_ext <<_ACEOF
30513 /* confdefs.h.  */
30514 _ACEOF
30515 cat confdefs.h >>conftest.$ac_ext
30516 cat >>conftest.$ac_ext <<_ACEOF
30517 /* end confdefs.h.  */
30518
30519 /* Override any GCC internal prototype to avoid an error.
30520    Use char because int might match the return type of a GCC
30521    builtin and then its argument prototype would still apply.  */
30522 #ifdef __cplusplus
30523 extern "C"
30524 #endif
30525 char IceConnectionNumber ();
30526 int
30527 main ()
30528 {
30529 return IceConnectionNumber ();
30530   ;
30531   return 0;
30532 }
30533 _ACEOF
30534 rm -f conftest.$ac_objext conftest$ac_exeext
30535 if { (ac_try="$ac_link"
30536 case "(($ac_try" in
30537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30538   *) ac_try_echo=$ac_try;;
30539 esac
30540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30541   (eval "$ac_link") 2>conftest.er1
30542   ac_status=$?
30543   grep -v '^ *+' conftest.er1 >conftest.err
30544   rm -f conftest.er1
30545   cat conftest.err >&5
30546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547   (exit $ac_status); } && {
30548          test -z "$ac_c_werror_flag" ||
30549          test ! -s conftest.err
30550        } && test -s conftest$ac_exeext &&
30551        $as_test_x conftest$ac_exeext; then
30552   ac_cv_lib_ICE_IceConnectionNumber=yes
30553 else
30554   echo "$as_me: failed program was:" >&5
30555 sed 's/^/| /' conftest.$ac_ext >&5
30556
30557         ac_cv_lib_ICE_IceConnectionNumber=no
30558 fi
30559
30560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30561       conftest$ac_exeext conftest.$ac_ext
30562 LIBS=$ac_check_lib_save_LIBS
30563 fi
30564 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30565 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30566 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30567   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30568 fi
30569
30570   LDFLAGS=$ac_save_LDFLAGS
30571
30572 fi
30573
30574
30575
30576
30577
30578
30579
30580
30581
30582
30583
30584
30585
30586
30587
30588
30589
30590
30591
30592
30593
30594
30595
30596
30597
30598
30599
30600
30601
30602
30603
30604 for ac_header in \
30605    assert.h \
30606    fcntl.h \
30607    grp.h \
30608    pwd.h \
30609    libc.h \
30610    limits.h \
30611    stdarg.h \
30612    stdlib.h \
30613    stdint.h \
30614    string.h \
30615    strings.h \
30616    termios.h \
30617    termcap.h \
30618    term.h \
30619    unistd.h \
30620    sys/bitypes.h \
30621    sys/byteorder.h \
30622    sys/ioctl.h \
30623    sys/select.h \
30624    sys/socket.h \
30625    sys/sockio.h \
30626    sys/stat.h \
30627    sys/time.h \
30628    sys/types.h \
30629    arpa/nameser.h \
30630    mtio.h \
30631    sys/mtio.h \
30632    sys/tape.h \
30633    regex.h \
30634
30635 do
30636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30638   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30641   echo $ECHO_N "(cached) $ECHO_C" >&6
30642 fi
30643 ac_res=`eval echo '${'$as_ac_Header'}'`
30644                { echo "$as_me:$LINENO: result: $ac_res" >&5
30645 echo "${ECHO_T}$ac_res" >&6; }
30646 else
30647   # Is the header compilable?
30648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30650 cat >conftest.$ac_ext <<_ACEOF
30651 /* confdefs.h.  */
30652 _ACEOF
30653 cat confdefs.h >>conftest.$ac_ext
30654 cat >>conftest.$ac_ext <<_ACEOF
30655 /* end confdefs.h.  */
30656 $ac_includes_default
30657 #include <$ac_header>
30658 _ACEOF
30659 rm -f conftest.$ac_objext
30660 if { (ac_try="$ac_compile"
30661 case "(($ac_try" in
30662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663   *) ac_try_echo=$ac_try;;
30664 esac
30665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30666   (eval "$ac_compile") 2>conftest.er1
30667   ac_status=$?
30668   grep -v '^ *+' conftest.er1 >conftest.err
30669   rm -f conftest.er1
30670   cat conftest.err >&5
30671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672   (exit $ac_status); } && {
30673          test -z "$ac_c_werror_flag" ||
30674          test ! -s conftest.err
30675        } && test -s conftest.$ac_objext; then
30676   ac_header_compiler=yes
30677 else
30678   echo "$as_me: failed program was:" >&5
30679 sed 's/^/| /' conftest.$ac_ext >&5
30680
30681         ac_header_compiler=no
30682 fi
30683
30684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30686 echo "${ECHO_T}$ac_header_compiler" >&6; }
30687
30688 # Is the header present?
30689 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30691 cat >conftest.$ac_ext <<_ACEOF
30692 /* confdefs.h.  */
30693 _ACEOF
30694 cat confdefs.h >>conftest.$ac_ext
30695 cat >>conftest.$ac_ext <<_ACEOF
30696 /* end confdefs.h.  */
30697 #include <$ac_header>
30698 _ACEOF
30699 if { (ac_try="$ac_cpp conftest.$ac_ext"
30700 case "(($ac_try" in
30701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30702   *) ac_try_echo=$ac_try;;
30703 esac
30704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30705   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30706   ac_status=$?
30707   grep -v '^ *+' conftest.er1 >conftest.err
30708   rm -f conftest.er1
30709   cat conftest.err >&5
30710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711   (exit $ac_status); } >/dev/null && {
30712          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30713          test ! -s conftest.err
30714        }; then
30715   ac_header_preproc=yes
30716 else
30717   echo "$as_me: failed program was:" >&5
30718 sed 's/^/| /' conftest.$ac_ext >&5
30719
30720   ac_header_preproc=no
30721 fi
30722
30723 rm -f conftest.err conftest.$ac_ext
30724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30725 echo "${ECHO_T}$ac_header_preproc" >&6; }
30726
30727 # So?  What about this header?
30728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30729   yes:no: )
30730     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30734     ac_header_preproc=yes
30735     ;;
30736   no:yes:* )
30737     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30739     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30740 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30741     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30743     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30744 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30747     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30749
30750     ;;
30751 esac
30752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30755   echo $ECHO_N "(cached) $ECHO_C" >&6
30756 else
30757   eval "$as_ac_Header=\$ac_header_preproc"
30758 fi
30759 ac_res=`eval echo '${'$as_ac_Header'}'`
30760                { echo "$as_me:$LINENO: result: $ac_res" >&5
30761 echo "${ECHO_T}$ac_res" >&6; }
30762
30763 fi
30764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30765   cat >>confdefs.h <<_ACEOF
30766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30767 _ACEOF
30768
30769 fi
30770
30771 done
30772
30773 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30774 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30775 if test "${ac_cv_header_stdc+set}" = set; then
30776   echo $ECHO_N "(cached) $ECHO_C" >&6
30777 else
30778   cat >conftest.$ac_ext <<_ACEOF
30779 /* confdefs.h.  */
30780 _ACEOF
30781 cat confdefs.h >>conftest.$ac_ext
30782 cat >>conftest.$ac_ext <<_ACEOF
30783 /* end confdefs.h.  */
30784 #include <stdlib.h>
30785 #include <stdarg.h>
30786 #include <string.h>
30787 #include <float.h>
30788
30789 int
30790 main ()
30791 {
30792
30793   ;
30794   return 0;
30795 }
30796 _ACEOF
30797 rm -f conftest.$ac_objext
30798 if { (ac_try="$ac_compile"
30799 case "(($ac_try" in
30800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30801   *) ac_try_echo=$ac_try;;
30802 esac
30803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30804   (eval "$ac_compile") 2>conftest.er1
30805   ac_status=$?
30806   grep -v '^ *+' conftest.er1 >conftest.err
30807   rm -f conftest.er1
30808   cat conftest.err >&5
30809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810   (exit $ac_status); } && {
30811          test -z "$ac_c_werror_flag" ||
30812          test ! -s conftest.err
30813        } && test -s conftest.$ac_objext; then
30814   ac_cv_header_stdc=yes
30815 else
30816   echo "$as_me: failed program was:" >&5
30817 sed 's/^/| /' conftest.$ac_ext >&5
30818
30819         ac_cv_header_stdc=no
30820 fi
30821
30822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30823
30824 if test $ac_cv_header_stdc = yes; then
30825   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30826   cat >conftest.$ac_ext <<_ACEOF
30827 /* confdefs.h.  */
30828 _ACEOF
30829 cat confdefs.h >>conftest.$ac_ext
30830 cat >>conftest.$ac_ext <<_ACEOF
30831 /* end confdefs.h.  */
30832 #include <string.h>
30833
30834 _ACEOF
30835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30836   $EGREP "memchr" >/dev/null 2>&1; then
30837   :
30838 else
30839   ac_cv_header_stdc=no
30840 fi
30841 rm -f conftest*
30842
30843 fi
30844
30845 if test $ac_cv_header_stdc = yes; then
30846   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30847   cat >conftest.$ac_ext <<_ACEOF
30848 /* confdefs.h.  */
30849 _ACEOF
30850 cat confdefs.h >>conftest.$ac_ext
30851 cat >>conftest.$ac_ext <<_ACEOF
30852 /* end confdefs.h.  */
30853 #include <stdlib.h>
30854
30855 _ACEOF
30856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30857   $EGREP "free" >/dev/null 2>&1; then
30858   :
30859 else
30860   ac_cv_header_stdc=no
30861 fi
30862 rm -f conftest*
30863
30864 fi
30865
30866 if test $ac_cv_header_stdc = yes; then
30867   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30868   if test "$cross_compiling" = yes; then
30869   :
30870 else
30871   cat >conftest.$ac_ext <<_ACEOF
30872 /* confdefs.h.  */
30873 _ACEOF
30874 cat confdefs.h >>conftest.$ac_ext
30875 cat >>conftest.$ac_ext <<_ACEOF
30876 /* end confdefs.h.  */
30877 #include <ctype.h>
30878 #include <stdlib.h>
30879 #if ((' ' & 0x0FF) == 0x020)
30880 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30881 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30882 #else
30883 # define ISLOWER(c) \
30884                    (('a' <= (c) && (c) <= 'i') \
30885                      || ('j' <= (c) && (c) <= 'r') \
30886                      || ('s' <= (c) && (c) <= 'z'))
30887 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30888 #endif
30889
30890 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30891 int
30892 main ()
30893 {
30894   int i;
30895   for (i = 0; i < 256; i++)
30896     if (XOR (islower (i), ISLOWER (i))
30897         || toupper (i) != TOUPPER (i))
30898       return 2;
30899   return 0;
30900 }
30901 _ACEOF
30902 rm -f conftest$ac_exeext
30903 if { (ac_try="$ac_link"
30904 case "(($ac_try" in
30905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30906   *) ac_try_echo=$ac_try;;
30907 esac
30908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30909   (eval "$ac_link") 2>&5
30910   ac_status=$?
30911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30913   { (case "(($ac_try" in
30914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30915   *) ac_try_echo=$ac_try;;
30916 esac
30917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30918   (eval "$ac_try") 2>&5
30919   ac_status=$?
30920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921   (exit $ac_status); }; }; then
30922   :
30923 else
30924   echo "$as_me: program exited with status $ac_status" >&5
30925 echo "$as_me: failed program was:" >&5
30926 sed 's/^/| /' conftest.$ac_ext >&5
30927
30928 ( exit $ac_status )
30929 ac_cv_header_stdc=no
30930 fi
30931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30932 fi
30933
30934
30935 fi
30936 fi
30937 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30938 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30939 if test $ac_cv_header_stdc = yes; then
30940
30941 cat >>confdefs.h <<\_ACEOF
30942 #define STDC_HEADERS 1
30943 _ACEOF
30944
30945 fi
30946
30947 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30948 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30949 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30950   echo $ECHO_N "(cached) $ECHO_C" >&6
30951 else
30952   cat >conftest.$ac_ext <<_ACEOF
30953 /* confdefs.h.  */
30954 _ACEOF
30955 cat confdefs.h >>conftest.$ac_ext
30956 cat >>conftest.$ac_ext <<_ACEOF
30957 /* end confdefs.h.  */
30958 #include <sys/types.h>
30959 int
30960 main ()
30961 {
30962 return makedev(0, 0);
30963   ;
30964   return 0;
30965 }
30966 _ACEOF
30967 rm -f conftest.$ac_objext conftest$ac_exeext
30968 if { (ac_try="$ac_link"
30969 case "(($ac_try" in
30970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30971   *) ac_try_echo=$ac_try;;
30972 esac
30973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30974   (eval "$ac_link") 2>conftest.er1
30975   ac_status=$?
30976   grep -v '^ *+' conftest.er1 >conftest.err
30977   rm -f conftest.er1
30978   cat conftest.err >&5
30979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980   (exit $ac_status); } && {
30981          test -z "$ac_c_werror_flag" ||
30982          test ! -s conftest.err
30983        } && test -s conftest$ac_exeext &&
30984        $as_test_x conftest$ac_exeext; then
30985   ac_cv_header_sys_types_h_makedev=yes
30986 else
30987   echo "$as_me: failed program was:" >&5
30988 sed 's/^/| /' conftest.$ac_ext >&5
30989
30990         ac_cv_header_sys_types_h_makedev=no
30991 fi
30992
30993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30994       conftest$ac_exeext conftest.$ac_ext
30995
30996 fi
30997 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30998 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30999
31000 if test $ac_cv_header_sys_types_h_makedev = no; then
31001 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31002   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31003 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31004 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31005   echo $ECHO_N "(cached) $ECHO_C" >&6
31006 fi
31007 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31008 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31009 else
31010   # Is the header compilable?
31011 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31012 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31013 cat >conftest.$ac_ext <<_ACEOF
31014 /* confdefs.h.  */
31015 _ACEOF
31016 cat confdefs.h >>conftest.$ac_ext
31017 cat >>conftest.$ac_ext <<_ACEOF
31018 /* end confdefs.h.  */
31019 $ac_includes_default
31020 #include <sys/mkdev.h>
31021 _ACEOF
31022 rm -f conftest.$ac_objext
31023 if { (ac_try="$ac_compile"
31024 case "(($ac_try" in
31025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31026   *) ac_try_echo=$ac_try;;
31027 esac
31028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31029   (eval "$ac_compile") 2>conftest.er1
31030   ac_status=$?
31031   grep -v '^ *+' conftest.er1 >conftest.err
31032   rm -f conftest.er1
31033   cat conftest.err >&5
31034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035   (exit $ac_status); } && {
31036          test -z "$ac_c_werror_flag" ||
31037          test ! -s conftest.err
31038        } && test -s conftest.$ac_objext; then
31039   ac_header_compiler=yes
31040 else
31041   echo "$as_me: failed program was:" >&5
31042 sed 's/^/| /' conftest.$ac_ext >&5
31043
31044         ac_header_compiler=no
31045 fi
31046
31047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31049 echo "${ECHO_T}$ac_header_compiler" >&6; }
31050
31051 # Is the header present?
31052 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31053 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31054 cat >conftest.$ac_ext <<_ACEOF
31055 /* confdefs.h.  */
31056 _ACEOF
31057 cat confdefs.h >>conftest.$ac_ext
31058 cat >>conftest.$ac_ext <<_ACEOF
31059 /* end confdefs.h.  */
31060 #include <sys/mkdev.h>
31061 _ACEOF
31062 if { (ac_try="$ac_cpp conftest.$ac_ext"
31063 case "(($ac_try" in
31064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31065   *) ac_try_echo=$ac_try;;
31066 esac
31067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31069   ac_status=$?
31070   grep -v '^ *+' conftest.er1 >conftest.err
31071   rm -f conftest.er1
31072   cat conftest.err >&5
31073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074   (exit $ac_status); } >/dev/null && {
31075          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31076          test ! -s conftest.err
31077        }; then
31078   ac_header_preproc=yes
31079 else
31080   echo "$as_me: failed program was:" >&5
31081 sed 's/^/| /' conftest.$ac_ext >&5
31082
31083   ac_header_preproc=no
31084 fi
31085
31086 rm -f conftest.err conftest.$ac_ext
31087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31088 echo "${ECHO_T}$ac_header_preproc" >&6; }
31089
31090 # So?  What about this header?
31091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31092   yes:no: )
31093     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31094 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31095     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31096 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31097     ac_header_preproc=yes
31098     ;;
31099   no:yes:* )
31100     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31101 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31102     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
31103 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
31104     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31105 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31106     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
31107 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31108     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31109 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31110     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31111 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31112
31113     ;;
31114 esac
31115 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31116 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31117 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31118   echo $ECHO_N "(cached) $ECHO_C" >&6
31119 else
31120   ac_cv_header_sys_mkdev_h=$ac_header_preproc
31121 fi
31122 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31123 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31124
31125 fi
31126 if test $ac_cv_header_sys_mkdev_h = yes; then
31127
31128 cat >>confdefs.h <<\_ACEOF
31129 #define MAJOR_IN_MKDEV 1
31130 _ACEOF
31131
31132 fi
31133
31134
31135
31136   if test $ac_cv_header_sys_mkdev_h = no; then
31137     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31138   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31139 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31140 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31141   echo $ECHO_N "(cached) $ECHO_C" >&6
31142 fi
31143 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31144 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31145 else
31146   # Is the header compilable?
31147 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31148 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31149 cat >conftest.$ac_ext <<_ACEOF
31150 /* confdefs.h.  */
31151 _ACEOF
31152 cat confdefs.h >>conftest.$ac_ext
31153 cat >>conftest.$ac_ext <<_ACEOF
31154 /* end confdefs.h.  */
31155 $ac_includes_default
31156 #include <sys/sysmacros.h>
31157 _ACEOF
31158 rm -f conftest.$ac_objext
31159 if { (ac_try="$ac_compile"
31160 case "(($ac_try" in
31161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31162   *) ac_try_echo=$ac_try;;
31163 esac
31164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31165   (eval "$ac_compile") 2>conftest.er1
31166   ac_status=$?
31167   grep -v '^ *+' conftest.er1 >conftest.err
31168   rm -f conftest.er1
31169   cat conftest.err >&5
31170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171   (exit $ac_status); } && {
31172          test -z "$ac_c_werror_flag" ||
31173          test ! -s conftest.err
31174        } && test -s conftest.$ac_objext; then
31175   ac_header_compiler=yes
31176 else
31177   echo "$as_me: failed program was:" >&5
31178 sed 's/^/| /' conftest.$ac_ext >&5
31179
31180         ac_header_compiler=no
31181 fi
31182
31183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31185 echo "${ECHO_T}$ac_header_compiler" >&6; }
31186
31187 # Is the header present?
31188 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31189 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31190 cat >conftest.$ac_ext <<_ACEOF
31191 /* confdefs.h.  */
31192 _ACEOF
31193 cat confdefs.h >>conftest.$ac_ext
31194 cat >>conftest.$ac_ext <<_ACEOF
31195 /* end confdefs.h.  */
31196 #include <sys/sysmacros.h>
31197 _ACEOF
31198 if { (ac_try="$ac_cpp conftest.$ac_ext"
31199 case "(($ac_try" in
31200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31201   *) ac_try_echo=$ac_try;;
31202 esac
31203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31205   ac_status=$?
31206   grep -v '^ *+' conftest.er1 >conftest.err
31207   rm -f conftest.er1
31208   cat conftest.err >&5
31209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210   (exit $ac_status); } >/dev/null && {
31211          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31212          test ! -s conftest.err
31213        }; then
31214   ac_header_preproc=yes
31215 else
31216   echo "$as_me: failed program was:" >&5
31217 sed 's/^/| /' conftest.$ac_ext >&5
31218
31219   ac_header_preproc=no
31220 fi
31221
31222 rm -f conftest.err conftest.$ac_ext
31223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31224 echo "${ECHO_T}$ac_header_preproc" >&6; }
31225
31226 # So?  What about this header?
31227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31228   yes:no: )
31229     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31230 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31231     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31232 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31233     ac_header_preproc=yes
31234     ;;
31235   no:yes:* )
31236     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31237 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31238     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
31239 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
31240     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31241 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31242     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
31243 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31244     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31245 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31246     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31247 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31248
31249     ;;
31250 esac
31251 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31252 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31253 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31254   echo $ECHO_N "(cached) $ECHO_C" >&6
31255 else
31256   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31257 fi
31258 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31259 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31260
31261 fi
31262 if test $ac_cv_header_sys_sysmacros_h = yes; then
31263
31264 cat >>confdefs.h <<\_ACEOF
31265 #define MAJOR_IN_SYSMACROS 1
31266 _ACEOF
31267
31268 fi
31269
31270
31271   fi
31272 fi
31273
31274
31275
31276
31277
31278
31279 ac_header_dirent=no
31280 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31281   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31282 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31283 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31285   echo $ECHO_N "(cached) $ECHO_C" >&6
31286 else
31287   cat >conftest.$ac_ext <<_ACEOF
31288 /* confdefs.h.  */
31289 _ACEOF
31290 cat confdefs.h >>conftest.$ac_ext
31291 cat >>conftest.$ac_ext <<_ACEOF
31292 /* end confdefs.h.  */
31293 #include <sys/types.h>
31294 #include <$ac_hdr>
31295
31296 int
31297 main ()
31298 {
31299 if ((DIR *) 0)
31300 return 0;
31301   ;
31302   return 0;
31303 }
31304 _ACEOF
31305 rm -f conftest.$ac_objext
31306 if { (ac_try="$ac_compile"
31307 case "(($ac_try" in
31308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31309   *) ac_try_echo=$ac_try;;
31310 esac
31311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31312   (eval "$ac_compile") 2>conftest.er1
31313   ac_status=$?
31314   grep -v '^ *+' conftest.er1 >conftest.err
31315   rm -f conftest.er1
31316   cat conftest.err >&5
31317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318   (exit $ac_status); } && {
31319          test -z "$ac_c_werror_flag" ||
31320          test ! -s conftest.err
31321        } && test -s conftest.$ac_objext; then
31322   eval "$as_ac_Header=yes"
31323 else
31324   echo "$as_me: failed program was:" >&5
31325 sed 's/^/| /' conftest.$ac_ext >&5
31326
31327         eval "$as_ac_Header=no"
31328 fi
31329
31330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31331 fi
31332 ac_res=`eval echo '${'$as_ac_Header'}'`
31333                { echo "$as_me:$LINENO: result: $ac_res" >&5
31334 echo "${ECHO_T}$ac_res" >&6; }
31335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31336   cat >>confdefs.h <<_ACEOF
31337 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31338 _ACEOF
31339
31340 ac_header_dirent=$ac_hdr; break
31341 fi
31342
31343 done
31344 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31345 if test $ac_header_dirent = dirent.h; then
31346   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31347 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31348 if test "${ac_cv_search_opendir+set}" = set; then
31349   echo $ECHO_N "(cached) $ECHO_C" >&6
31350 else
31351   ac_func_search_save_LIBS=$LIBS
31352 cat >conftest.$ac_ext <<_ACEOF
31353 /* confdefs.h.  */
31354 _ACEOF
31355 cat confdefs.h >>conftest.$ac_ext
31356 cat >>conftest.$ac_ext <<_ACEOF
31357 /* end confdefs.h.  */
31358
31359 /* Override any GCC internal prototype to avoid an error.
31360    Use char because int might match the return type of a GCC
31361    builtin and then its argument prototype would still apply.  */
31362 #ifdef __cplusplus
31363 extern "C"
31364 #endif
31365 char opendir ();
31366 int
31367 main ()
31368 {
31369 return opendir ();
31370   ;
31371   return 0;
31372 }
31373 _ACEOF
31374 for ac_lib in '' dir; do
31375   if test -z "$ac_lib"; then
31376     ac_res="none required"
31377   else
31378     ac_res=-l$ac_lib
31379     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31380   fi
31381   rm -f conftest.$ac_objext conftest$ac_exeext
31382 if { (ac_try="$ac_link"
31383 case "(($ac_try" in
31384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385   *) ac_try_echo=$ac_try;;
31386 esac
31387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388   (eval "$ac_link") 2>conftest.er1
31389   ac_status=$?
31390   grep -v '^ *+' conftest.er1 >conftest.err
31391   rm -f conftest.er1
31392   cat conftest.err >&5
31393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394   (exit $ac_status); } && {
31395          test -z "$ac_c_werror_flag" ||
31396          test ! -s conftest.err
31397        } && test -s conftest$ac_exeext &&
31398        $as_test_x conftest$ac_exeext; then
31399   ac_cv_search_opendir=$ac_res
31400 else
31401   echo "$as_me: failed program was:" >&5
31402 sed 's/^/| /' conftest.$ac_ext >&5
31403
31404
31405 fi
31406
31407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31408       conftest$ac_exeext
31409   if test "${ac_cv_search_opendir+set}" = set; then
31410   break
31411 fi
31412 done
31413 if test "${ac_cv_search_opendir+set}" = set; then
31414   :
31415 else
31416   ac_cv_search_opendir=no
31417 fi
31418 rm conftest.$ac_ext
31419 LIBS=$ac_func_search_save_LIBS
31420 fi
31421 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31422 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31423 ac_res=$ac_cv_search_opendir
31424 if test "$ac_res" != no; then
31425   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31426
31427 fi
31428
31429 else
31430   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31431 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31432 if test "${ac_cv_search_opendir+set}" = set; then
31433   echo $ECHO_N "(cached) $ECHO_C" >&6
31434 else
31435   ac_func_search_save_LIBS=$LIBS
31436 cat >conftest.$ac_ext <<_ACEOF
31437 /* confdefs.h.  */
31438 _ACEOF
31439 cat confdefs.h >>conftest.$ac_ext
31440 cat >>conftest.$ac_ext <<_ACEOF
31441 /* end confdefs.h.  */
31442
31443 /* Override any GCC internal prototype to avoid an error.
31444    Use char because int might match the return type of a GCC
31445    builtin and then its argument prototype would still apply.  */
31446 #ifdef __cplusplus
31447 extern "C"
31448 #endif
31449 char opendir ();
31450 int
31451 main ()
31452 {
31453 return opendir ();
31454   ;
31455   return 0;
31456 }
31457 _ACEOF
31458 for ac_lib in '' x; do
31459   if test -z "$ac_lib"; then
31460     ac_res="none required"
31461   else
31462     ac_res=-l$ac_lib
31463     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31464   fi
31465   rm -f conftest.$ac_objext conftest$ac_exeext
31466 if { (ac_try="$ac_link"
31467 case "(($ac_try" in
31468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31469   *) ac_try_echo=$ac_try;;
31470 esac
31471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31472   (eval "$ac_link") 2>conftest.er1
31473   ac_status=$?
31474   grep -v '^ *+' conftest.er1 >conftest.err
31475   rm -f conftest.er1
31476   cat conftest.err >&5
31477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31478   (exit $ac_status); } && {
31479          test -z "$ac_c_werror_flag" ||
31480          test ! -s conftest.err
31481        } && test -s conftest$ac_exeext &&
31482        $as_test_x conftest$ac_exeext; then
31483   ac_cv_search_opendir=$ac_res
31484 else
31485   echo "$as_me: failed program was:" >&5
31486 sed 's/^/| /' conftest.$ac_ext >&5
31487
31488
31489 fi
31490
31491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31492       conftest$ac_exeext
31493   if test "${ac_cv_search_opendir+set}" = set; then
31494   break
31495 fi
31496 done
31497 if test "${ac_cv_search_opendir+set}" = set; then
31498   :
31499 else
31500   ac_cv_search_opendir=no
31501 fi
31502 rm conftest.$ac_ext
31503 LIBS=$ac_func_search_save_LIBS
31504 fi
31505 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31506 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31507 ac_res=$ac_cv_search_opendir
31508 if test "$ac_res" != no; then
31509   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31510
31511 fi
31512
31513 fi
31514
31515 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31516 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31517 if test "${ac_cv_header_stat_broken+set}" = set; then
31518   echo $ECHO_N "(cached) $ECHO_C" >&6
31519 else
31520   cat >conftest.$ac_ext <<_ACEOF
31521 /* confdefs.h.  */
31522 _ACEOF
31523 cat confdefs.h >>conftest.$ac_ext
31524 cat >>conftest.$ac_ext <<_ACEOF
31525 /* end confdefs.h.  */
31526 #include <sys/types.h>
31527 #include <sys/stat.h>
31528
31529 #if defined S_ISBLK && defined S_IFDIR
31530 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31531 #endif
31532
31533 #if defined S_ISBLK && defined S_IFCHR
31534 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31535 #endif
31536
31537 #if defined S_ISLNK && defined S_IFREG
31538 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31539 #endif
31540
31541 #if defined S_ISSOCK && defined S_IFREG
31542 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31543 #endif
31544
31545 _ACEOF
31546 rm -f conftest.$ac_objext
31547 if { (ac_try="$ac_compile"
31548 case "(($ac_try" in
31549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31550   *) ac_try_echo=$ac_try;;
31551 esac
31552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31553   (eval "$ac_compile") 2>conftest.er1
31554   ac_status=$?
31555   grep -v '^ *+' conftest.er1 >conftest.err
31556   rm -f conftest.er1
31557   cat conftest.err >&5
31558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559   (exit $ac_status); } && {
31560          test -z "$ac_c_werror_flag" ||
31561          test ! -s conftest.err
31562        } && test -s conftest.$ac_objext; then
31563   ac_cv_header_stat_broken=no
31564 else
31565   echo "$as_me: failed program was:" >&5
31566 sed 's/^/| /' conftest.$ac_ext >&5
31567
31568         ac_cv_header_stat_broken=yes
31569 fi
31570
31571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31572 fi
31573 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31574 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31575 if test $ac_cv_header_stat_broken = yes; then
31576
31577 cat >>confdefs.h <<\_ACEOF
31578 #define STAT_MACROS_BROKEN 1
31579 _ACEOF
31580
31581 fi
31582
31583 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31584 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31585 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31586   echo $ECHO_N "(cached) $ECHO_C" >&6
31587 else
31588   cat >conftest.$ac_ext <<_ACEOF
31589 /* confdefs.h.  */
31590 _ACEOF
31591 cat confdefs.h >>conftest.$ac_ext
31592 cat >>conftest.$ac_ext <<_ACEOF
31593 /* end confdefs.h.  */
31594 #include <sys/types.h>
31595 #include <sys/wait.h>
31596 #ifndef WEXITSTATUS
31597 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31598 #endif
31599 #ifndef WIFEXITED
31600 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31601 #endif
31602
31603 int
31604 main ()
31605 {
31606   int s;
31607   wait (&s);
31608   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31609   ;
31610   return 0;
31611 }
31612 _ACEOF
31613 rm -f conftest.$ac_objext
31614 if { (ac_try="$ac_compile"
31615 case "(($ac_try" in
31616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31617   *) ac_try_echo=$ac_try;;
31618 esac
31619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31620   (eval "$ac_compile") 2>conftest.er1
31621   ac_status=$?
31622   grep -v '^ *+' conftest.er1 >conftest.err
31623   rm -f conftest.er1
31624   cat conftest.err >&5
31625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626   (exit $ac_status); } && {
31627          test -z "$ac_c_werror_flag" ||
31628          test ! -s conftest.err
31629        } && test -s conftest.$ac_objext; then
31630   ac_cv_header_sys_wait_h=yes
31631 else
31632   echo "$as_me: failed program was:" >&5
31633 sed 's/^/| /' conftest.$ac_ext >&5
31634
31635         ac_cv_header_sys_wait_h=no
31636 fi
31637
31638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31639 fi
31640 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31641 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31642 if test $ac_cv_header_sys_wait_h = yes; then
31643
31644 cat >>confdefs.h <<\_ACEOF
31645 #define HAVE_SYS_WAIT_H 1
31646 _ACEOF
31647
31648 fi
31649
31650 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31651 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31652 if test "${ac_cv_header_time+set}" = set; then
31653   echo $ECHO_N "(cached) $ECHO_C" >&6
31654 else
31655   cat >conftest.$ac_ext <<_ACEOF
31656 /* confdefs.h.  */
31657 _ACEOF
31658 cat confdefs.h >>conftest.$ac_ext
31659 cat >>conftest.$ac_ext <<_ACEOF
31660 /* end confdefs.h.  */
31661 #include <sys/types.h>
31662 #include <sys/time.h>
31663 #include <time.h>
31664
31665 int
31666 main ()
31667 {
31668 if ((struct tm *) 0)
31669 return 0;
31670   ;
31671   return 0;
31672 }
31673 _ACEOF
31674 rm -f conftest.$ac_objext
31675 if { (ac_try="$ac_compile"
31676 case "(($ac_try" in
31677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31678   *) ac_try_echo=$ac_try;;
31679 esac
31680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31681   (eval "$ac_compile") 2>conftest.er1
31682   ac_status=$?
31683   grep -v '^ *+' conftest.er1 >conftest.err
31684   rm -f conftest.er1
31685   cat conftest.err >&5
31686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687   (exit $ac_status); } && {
31688          test -z "$ac_c_werror_flag" ||
31689          test ! -s conftest.err
31690        } && test -s conftest.$ac_objext; then
31691   ac_cv_header_time=yes
31692 else
31693   echo "$as_me: failed program was:" >&5
31694 sed 's/^/| /' conftest.$ac_ext >&5
31695
31696         ac_cv_header_time=no
31697 fi
31698
31699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31700 fi
31701 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31702 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31703 if test $ac_cv_header_time = yes; then
31704
31705 cat >>confdefs.h <<\_ACEOF
31706 #define TIME_WITH_SYS_TIME 1
31707 _ACEOF
31708
31709 fi
31710
31711 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31712 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31713 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31714   echo $ECHO_N "(cached) $ECHO_C" >&6
31715 else
31716   cat >conftest.$ac_ext <<_ACEOF
31717 /* confdefs.h.  */
31718 _ACEOF
31719 cat confdefs.h >>conftest.$ac_ext
31720 cat >>conftest.$ac_ext <<_ACEOF
31721 /* end confdefs.h.  */
31722 $ac_includes_default
31723 int
31724 main ()
31725 {
31726 static struct stat ac_aggr;
31727 if (ac_aggr.st_blksize)
31728 return 0;
31729   ;
31730   return 0;
31731 }
31732 _ACEOF
31733 rm -f conftest.$ac_objext
31734 if { (ac_try="$ac_compile"
31735 case "(($ac_try" in
31736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31737   *) ac_try_echo=$ac_try;;
31738 esac
31739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31740   (eval "$ac_compile") 2>conftest.er1
31741   ac_status=$?
31742   grep -v '^ *+' conftest.er1 >conftest.err
31743   rm -f conftest.er1
31744   cat conftest.err >&5
31745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746   (exit $ac_status); } && {
31747          test -z "$ac_c_werror_flag" ||
31748          test ! -s conftest.err
31749        } && test -s conftest.$ac_objext; then
31750   ac_cv_member_struct_stat_st_blksize=yes
31751 else
31752   echo "$as_me: failed program was:" >&5
31753 sed 's/^/| /' conftest.$ac_ext >&5
31754
31755         cat >conftest.$ac_ext <<_ACEOF
31756 /* confdefs.h.  */
31757 _ACEOF
31758 cat confdefs.h >>conftest.$ac_ext
31759 cat >>conftest.$ac_ext <<_ACEOF
31760 /* end confdefs.h.  */
31761 $ac_includes_default
31762 int
31763 main ()
31764 {
31765 static struct stat ac_aggr;
31766 if (sizeof ac_aggr.st_blksize)
31767 return 0;
31768   ;
31769   return 0;
31770 }
31771 _ACEOF
31772 rm -f conftest.$ac_objext
31773 if { (ac_try="$ac_compile"
31774 case "(($ac_try" in
31775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31776   *) ac_try_echo=$ac_try;;
31777 esac
31778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31779   (eval "$ac_compile") 2>conftest.er1
31780   ac_status=$?
31781   grep -v '^ *+' conftest.er1 >conftest.err
31782   rm -f conftest.er1
31783   cat conftest.err >&5
31784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785   (exit $ac_status); } && {
31786          test -z "$ac_c_werror_flag" ||
31787          test ! -s conftest.err
31788        } && test -s conftest.$ac_objext; then
31789   ac_cv_member_struct_stat_st_blksize=yes
31790 else
31791   echo "$as_me: failed program was:" >&5
31792 sed 's/^/| /' conftest.$ac_ext >&5
31793
31794         ac_cv_member_struct_stat_st_blksize=no
31795 fi
31796
31797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31798 fi
31799
31800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31801 fi
31802 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31803 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31804 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31805
31806 cat >>confdefs.h <<_ACEOF
31807 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31808 _ACEOF
31809
31810
31811 cat >>confdefs.h <<\_ACEOF
31812 #define HAVE_ST_BLKSIZE 1
31813 _ACEOF
31814
31815 fi
31816
31817
31818 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31819 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31820 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31821   echo $ECHO_N "(cached) $ECHO_C" >&6
31822 else
31823   cat >conftest.$ac_ext <<_ACEOF
31824 /* confdefs.h.  */
31825 _ACEOF
31826 cat confdefs.h >>conftest.$ac_ext
31827 cat >>conftest.$ac_ext <<_ACEOF
31828 /* end confdefs.h.  */
31829 $ac_includes_default
31830 int
31831 main ()
31832 {
31833 static struct stat ac_aggr;
31834 if (ac_aggr.st_blocks)
31835 return 0;
31836   ;
31837   return 0;
31838 }
31839 _ACEOF
31840 rm -f conftest.$ac_objext
31841 if { (ac_try="$ac_compile"
31842 case "(($ac_try" in
31843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844   *) ac_try_echo=$ac_try;;
31845 esac
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847   (eval "$ac_compile") 2>conftest.er1
31848   ac_status=$?
31849   grep -v '^ *+' conftest.er1 >conftest.err
31850   rm -f conftest.er1
31851   cat conftest.err >&5
31852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853   (exit $ac_status); } && {
31854          test -z "$ac_c_werror_flag" ||
31855          test ! -s conftest.err
31856        } && test -s conftest.$ac_objext; then
31857   ac_cv_member_struct_stat_st_blocks=yes
31858 else
31859   echo "$as_me: failed program was:" >&5
31860 sed 's/^/| /' conftest.$ac_ext >&5
31861
31862         cat >conftest.$ac_ext <<_ACEOF
31863 /* confdefs.h.  */
31864 _ACEOF
31865 cat confdefs.h >>conftest.$ac_ext
31866 cat >>conftest.$ac_ext <<_ACEOF
31867 /* end confdefs.h.  */
31868 $ac_includes_default
31869 int
31870 main ()
31871 {
31872 static struct stat ac_aggr;
31873 if (sizeof ac_aggr.st_blocks)
31874 return 0;
31875   ;
31876   return 0;
31877 }
31878 _ACEOF
31879 rm -f conftest.$ac_objext
31880 if { (ac_try="$ac_compile"
31881 case "(($ac_try" in
31882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31883   *) ac_try_echo=$ac_try;;
31884 esac
31885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31886   (eval "$ac_compile") 2>conftest.er1
31887   ac_status=$?
31888   grep -v '^ *+' conftest.er1 >conftest.err
31889   rm -f conftest.er1
31890   cat conftest.err >&5
31891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892   (exit $ac_status); } && {
31893          test -z "$ac_c_werror_flag" ||
31894          test ! -s conftest.err
31895        } && test -s conftest.$ac_objext; then
31896   ac_cv_member_struct_stat_st_blocks=yes
31897 else
31898   echo "$as_me: failed program was:" >&5
31899 sed 's/^/| /' conftest.$ac_ext >&5
31900
31901         ac_cv_member_struct_stat_st_blocks=no
31902 fi
31903
31904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31905 fi
31906
31907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31908 fi
31909 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31910 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31911 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31912
31913 cat >>confdefs.h <<_ACEOF
31914 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31915 _ACEOF
31916
31917
31918 cat >>confdefs.h <<\_ACEOF
31919 #define HAVE_ST_BLOCKS 1
31920 _ACEOF
31921
31922 else
31923   case " $LIBOBJS " in
31924   *" fileblocks.$ac_objext "* ) ;;
31925   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31926  ;;
31927 esac
31928
31929 fi
31930
31931
31932 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31933 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31934 if test "${ac_cv_struct_tm+set}" = set; then
31935   echo $ECHO_N "(cached) $ECHO_C" >&6
31936 else
31937   cat >conftest.$ac_ext <<_ACEOF
31938 /* confdefs.h.  */
31939 _ACEOF
31940 cat confdefs.h >>conftest.$ac_ext
31941 cat >>conftest.$ac_ext <<_ACEOF
31942 /* end confdefs.h.  */
31943 #include <sys/types.h>
31944 #include <time.h>
31945
31946 int
31947 main ()
31948 {
31949 struct tm tm;
31950                                      int *p = &tm.tm_sec;
31951                                      return !p;
31952   ;
31953   return 0;
31954 }
31955 _ACEOF
31956 rm -f conftest.$ac_objext
31957 if { (ac_try="$ac_compile"
31958 case "(($ac_try" in
31959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31960   *) ac_try_echo=$ac_try;;
31961 esac
31962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31963   (eval "$ac_compile") 2>conftest.er1
31964   ac_status=$?
31965   grep -v '^ *+' conftest.er1 >conftest.err
31966   rm -f conftest.er1
31967   cat conftest.err >&5
31968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969   (exit $ac_status); } && {
31970          test -z "$ac_c_werror_flag" ||
31971          test ! -s conftest.err
31972        } && test -s conftest.$ac_objext; then
31973   ac_cv_struct_tm=time.h
31974 else
31975   echo "$as_me: failed program was:" >&5
31976 sed 's/^/| /' conftest.$ac_ext >&5
31977
31978         ac_cv_struct_tm=sys/time.h
31979 fi
31980
31981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31982 fi
31983 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31984 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31985 if test $ac_cv_struct_tm = sys/time.h; then
31986
31987 cat >>confdefs.h <<\_ACEOF
31988 #define TM_IN_SYS_TIME 1
31989 _ACEOF
31990
31991 fi
31992
31993 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31994 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31995 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31996   echo $ECHO_N "(cached) $ECHO_C" >&6
31997 else
31998   cat >conftest.$ac_ext <<_ACEOF
31999 /* confdefs.h.  */
32000 _ACEOF
32001 cat confdefs.h >>conftest.$ac_ext
32002 cat >>conftest.$ac_ext <<_ACEOF
32003 /* end confdefs.h.  */
32004 #include <sys/types.h>
32005 #include <$ac_cv_struct_tm>
32006
32007
32008 int
32009 main ()
32010 {
32011 static struct tm ac_aggr;
32012 if (ac_aggr.tm_zone)
32013 return 0;
32014   ;
32015   return 0;
32016 }
32017 _ACEOF
32018 rm -f conftest.$ac_objext
32019 if { (ac_try="$ac_compile"
32020 case "(($ac_try" in
32021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022   *) ac_try_echo=$ac_try;;
32023 esac
32024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025   (eval "$ac_compile") 2>conftest.er1
32026   ac_status=$?
32027   grep -v '^ *+' conftest.er1 >conftest.err
32028   rm -f conftest.er1
32029   cat conftest.err >&5
32030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031   (exit $ac_status); } && {
32032          test -z "$ac_c_werror_flag" ||
32033          test ! -s conftest.err
32034        } && test -s conftest.$ac_objext; then
32035   ac_cv_member_struct_tm_tm_zone=yes
32036 else
32037   echo "$as_me: failed program was:" >&5
32038 sed 's/^/| /' conftest.$ac_ext >&5
32039
32040         cat >conftest.$ac_ext <<_ACEOF
32041 /* confdefs.h.  */
32042 _ACEOF
32043 cat confdefs.h >>conftest.$ac_ext
32044 cat >>conftest.$ac_ext <<_ACEOF
32045 /* end confdefs.h.  */
32046 #include <sys/types.h>
32047 #include <$ac_cv_struct_tm>
32048
32049
32050 int
32051 main ()
32052 {
32053 static struct tm ac_aggr;
32054 if (sizeof ac_aggr.tm_zone)
32055 return 0;
32056   ;
32057   return 0;
32058 }
32059 _ACEOF
32060 rm -f conftest.$ac_objext
32061 if { (ac_try="$ac_compile"
32062 case "(($ac_try" in
32063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32064   *) ac_try_echo=$ac_try;;
32065 esac
32066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32067   (eval "$ac_compile") 2>conftest.er1
32068   ac_status=$?
32069   grep -v '^ *+' conftest.er1 >conftest.err
32070   rm -f conftest.er1
32071   cat conftest.err >&5
32072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073   (exit $ac_status); } && {
32074          test -z "$ac_c_werror_flag" ||
32075          test ! -s conftest.err
32076        } && test -s conftest.$ac_objext; then
32077   ac_cv_member_struct_tm_tm_zone=yes
32078 else
32079   echo "$as_me: failed program was:" >&5
32080 sed 's/^/| /' conftest.$ac_ext >&5
32081
32082         ac_cv_member_struct_tm_tm_zone=no
32083 fi
32084
32085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32086 fi
32087
32088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32089 fi
32090 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32091 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32092 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32093
32094 cat >>confdefs.h <<_ACEOF
32095 #define HAVE_STRUCT_TM_TM_ZONE 1
32096 _ACEOF
32097
32098
32099 fi
32100
32101 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32102
32103 cat >>confdefs.h <<\_ACEOF
32104 #define HAVE_TM_ZONE 1
32105 _ACEOF
32106
32107 else
32108   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32109 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32110 if test "${ac_cv_have_decl_tzname+set}" = set; then
32111   echo $ECHO_N "(cached) $ECHO_C" >&6
32112 else
32113   cat >conftest.$ac_ext <<_ACEOF
32114 /* confdefs.h.  */
32115 _ACEOF
32116 cat confdefs.h >>conftest.$ac_ext
32117 cat >>conftest.$ac_ext <<_ACEOF
32118 /* end confdefs.h.  */
32119 #include <time.h>
32120
32121 int
32122 main ()
32123 {
32124 #ifndef tzname
32125   (void) tzname;
32126 #endif
32127
32128   ;
32129   return 0;
32130 }
32131 _ACEOF
32132 rm -f conftest.$ac_objext
32133 if { (ac_try="$ac_compile"
32134 case "(($ac_try" in
32135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32136   *) ac_try_echo=$ac_try;;
32137 esac
32138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32139   (eval "$ac_compile") 2>conftest.er1
32140   ac_status=$?
32141   grep -v '^ *+' conftest.er1 >conftest.err
32142   rm -f conftest.er1
32143   cat conftest.err >&5
32144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145   (exit $ac_status); } && {
32146          test -z "$ac_c_werror_flag" ||
32147          test ! -s conftest.err
32148        } && test -s conftest.$ac_objext; then
32149   ac_cv_have_decl_tzname=yes
32150 else
32151   echo "$as_me: failed program was:" >&5
32152 sed 's/^/| /' conftest.$ac_ext >&5
32153
32154         ac_cv_have_decl_tzname=no
32155 fi
32156
32157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32158 fi
32159 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32160 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32161 if test $ac_cv_have_decl_tzname = yes; then
32162
32163 cat >>confdefs.h <<_ACEOF
32164 #define HAVE_DECL_TZNAME 1
32165 _ACEOF
32166
32167
32168 else
32169   cat >>confdefs.h <<_ACEOF
32170 #define HAVE_DECL_TZNAME 0
32171 _ACEOF
32172
32173
32174 fi
32175
32176
32177   { echo "$as_me:$LINENO: checking for tzname" >&5
32178 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32179 if test "${ac_cv_var_tzname+set}" = set; then
32180   echo $ECHO_N "(cached) $ECHO_C" >&6
32181 else
32182   cat >conftest.$ac_ext <<_ACEOF
32183 /* confdefs.h.  */
32184 _ACEOF
32185 cat confdefs.h >>conftest.$ac_ext
32186 cat >>conftest.$ac_ext <<_ACEOF
32187 /* end confdefs.h.  */
32188 #include <time.h>
32189 #if !HAVE_DECL_TZNAME
32190 extern char *tzname[];
32191 #endif
32192
32193 int
32194 main ()
32195 {
32196 return tzname[0][0];
32197   ;
32198   return 0;
32199 }
32200 _ACEOF
32201 rm -f conftest.$ac_objext conftest$ac_exeext
32202 if { (ac_try="$ac_link"
32203 case "(($ac_try" in
32204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205   *) ac_try_echo=$ac_try;;
32206 esac
32207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208   (eval "$ac_link") 2>conftest.er1
32209   ac_status=$?
32210   grep -v '^ *+' conftest.er1 >conftest.err
32211   rm -f conftest.er1
32212   cat conftest.err >&5
32213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214   (exit $ac_status); } && {
32215          test -z "$ac_c_werror_flag" ||
32216          test ! -s conftest.err
32217        } && test -s conftest$ac_exeext &&
32218        $as_test_x conftest$ac_exeext; then
32219   ac_cv_var_tzname=yes
32220 else
32221   echo "$as_me: failed program was:" >&5
32222 sed 's/^/| /' conftest.$ac_ext >&5
32223
32224         ac_cv_var_tzname=no
32225 fi
32226
32227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32228       conftest$ac_exeext conftest.$ac_ext
32229 fi
32230 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32231 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32232   if test $ac_cv_var_tzname = yes; then
32233
32234 cat >>confdefs.h <<\_ACEOF
32235 #define HAVE_TZNAME 1
32236 _ACEOF
32237
32238   fi
32239 fi
32240
32241
32242 { echo "$as_me:$LINENO: checking for utime.h" >&5
32243 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32244 if test "${ba_cv_header_utime_h+set}" = set; then
32245   echo $ECHO_N "(cached) $ECHO_C" >&6
32246 else
32247
32248        cat >conftest.$ac_ext <<_ACEOF
32249 /* confdefs.h.  */
32250 _ACEOF
32251 cat confdefs.h >>conftest.$ac_ext
32252 cat >>conftest.$ac_ext <<_ACEOF
32253 /* end confdefs.h.  */
32254
32255               #include <sys/types.h>
32256               #include <utime.h>
32257
32258 int
32259 main ()
32260 {
32261
32262               struct utimbuf foo
32263
32264   ;
32265   return 0;
32266 }
32267 _ACEOF
32268 rm -f conftest.$ac_objext
32269 if { (ac_try="$ac_compile"
32270 case "(($ac_try" in
32271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32272   *) ac_try_echo=$ac_try;;
32273 esac
32274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32275   (eval "$ac_compile") 2>conftest.er1
32276   ac_status=$?
32277   grep -v '^ *+' conftest.er1 >conftest.err
32278   rm -f conftest.er1
32279   cat conftest.err >&5
32280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281   (exit $ac_status); } && {
32282          test -z "$ac_c_werror_flag" ||
32283          test ! -s conftest.err
32284        } && test -s conftest.$ac_objext; then
32285
32286               ba_cv_header_utime_h=yes
32287
32288 else
32289   echo "$as_me: failed program was:" >&5
32290 sed 's/^/| /' conftest.$ac_ext >&5
32291
32292
32293               ba_cv_header_utime_h=no
32294
32295
32296 fi
32297
32298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32299
32300
32301 fi
32302 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32303 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32304 test $ba_cv_header_utime_h = yes &&
32305 cat >>confdefs.h <<\_ACEOF
32306 #define HAVE_UTIME_H 1
32307 _ACEOF
32308
32309
32310 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32311 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32312 if test "${ba_cv_header_socklen_t+set}" = set; then
32313   echo $ECHO_N "(cached) $ECHO_C" >&6
32314 else
32315
32316        cat >conftest.$ac_ext <<_ACEOF
32317 /* confdefs.h.  */
32318 _ACEOF
32319 cat confdefs.h >>conftest.$ac_ext
32320 cat >>conftest.$ac_ext <<_ACEOF
32321 /* end confdefs.h.  */
32322
32323               #include <sys/types.h>
32324               #include <sys/socket.h>
32325
32326 int
32327 main ()
32328 {
32329
32330               socklen_t x
32331
32332   ;
32333   return 0;
32334 }
32335 _ACEOF
32336 rm -f conftest.$ac_objext
32337 if { (ac_try="$ac_compile"
32338 case "(($ac_try" in
32339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32340   *) ac_try_echo=$ac_try;;
32341 esac
32342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32343   (eval "$ac_compile") 2>conftest.er1
32344   ac_status=$?
32345   grep -v '^ *+' conftest.er1 >conftest.err
32346   rm -f conftest.er1
32347   cat conftest.err >&5
32348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349   (exit $ac_status); } && {
32350          test -z "$ac_c_werror_flag" ||
32351          test ! -s conftest.err
32352        } && test -s conftest.$ac_objext; then
32353
32354              ba_cv_header_socklen_t=yes
32355
32356 else
32357   echo "$as_me: failed program was:" >&5
32358 sed 's/^/| /' conftest.$ac_ext >&5
32359
32360
32361              ba_cv_header_socklen_t=no
32362
32363
32364 fi
32365
32366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32367
32368
32369 fi
32370 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32371 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32372 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32373 #define HAVE_SOCKLEN_T 1
32374 _ACEOF
32375
32376
32377 { echo "$as_me:$LINENO: checking for bigendian" >&5
32378 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32379 if test "${ba_cv_bigendian+set}" = set; then
32380   echo $ECHO_N "(cached) $ECHO_C" >&6
32381 else
32382
32383        if test "$cross_compiling" = yes; then
32384
32385              ba_cv_bigendian=no
32386
32387
32388 else
32389   cat >conftest.$ac_ext <<_ACEOF
32390 /* confdefs.h.  */
32391 _ACEOF
32392 cat confdefs.h >>conftest.$ac_ext
32393 cat >>conftest.$ac_ext <<_ACEOF
32394 /* end confdefs.h.  */
32395
32396               main(){long a=1L; char *p=(char *)&a; exit(*p);}
32397
32398 _ACEOF
32399 rm -f conftest$ac_exeext
32400 if { (ac_try="$ac_link"
32401 case "(($ac_try" in
32402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32403   *) ac_try_echo=$ac_try;;
32404 esac
32405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32406   (eval "$ac_link") 2>&5
32407   ac_status=$?
32408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32409   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32410   { (case "(($ac_try" in
32411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32412   *) ac_try_echo=$ac_try;;
32413 esac
32414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32415   (eval "$ac_try") 2>&5
32416   ac_status=$?
32417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418   (exit $ac_status); }; }; then
32419
32420              ba_cv_bigendian=yes
32421
32422 else
32423   echo "$as_me: program exited with status $ac_status" >&5
32424 echo "$as_me: failed program was:" >&5
32425 sed 's/^/| /' conftest.$ac_ext >&5
32426
32427 ( exit $ac_status )
32428
32429              ba_cv_bigendian=no
32430
32431 fi
32432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32433 fi
32434
32435
32436
32437
32438 fi
32439 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32440 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32441 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32442 #define HAVE_BIGENDIAN 1
32443 _ACEOF
32444
32445
32446 ac_ext=cpp
32447 ac_cpp='$CXXCPP $CPPFLAGS'
32448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32451
32452 { echo "$as_me:$LINENO: checking for typeof" >&5
32453 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32454 if test "${ba_cv_have_typeof+set}" = set; then
32455   echo $ECHO_N "(cached) $ECHO_C" >&6
32456 else
32457
32458        if test "$cross_compiling" = yes; then
32459
32460               ba_cv_have_typeof=no
32461
32462
32463 else
32464   cat >conftest.$ac_ext <<_ACEOF
32465 /* confdefs.h.  */
32466 _ACEOF
32467 cat confdefs.h >>conftest.$ac_ext
32468 cat >>conftest.$ac_ext <<_ACEOF
32469 /* end confdefs.h.  */
32470
32471               main(){char *a = 0; a = (typeof a)a;}
32472
32473 _ACEOF
32474 rm -f conftest$ac_exeext
32475 if { (ac_try="$ac_link"
32476 case "(($ac_try" in
32477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478   *) ac_try_echo=$ac_try;;
32479 esac
32480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32481   (eval "$ac_link") 2>&5
32482   ac_status=$?
32483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32485   { (case "(($ac_try" in
32486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32487   *) ac_try_echo=$ac_try;;
32488 esac
32489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32490   (eval "$ac_try") 2>&5
32491   ac_status=$?
32492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493   (exit $ac_status); }; }; then
32494
32495               ba_cv_have_typeof=yes
32496
32497 else
32498   echo "$as_me: program exited with status $ac_status" >&5
32499 echo "$as_me: failed program was:" >&5
32500 sed 's/^/| /' conftest.$ac_ext >&5
32501
32502 ( exit $ac_status )
32503
32504               ba_cv_have_typeof=no
32505
32506 fi
32507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32508 fi
32509
32510
32511
32512
32513 fi
32514 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32515 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32516 test $ba_cv_have_typeof = yes &&
32517 cat >>confdefs.h <<\_ACEOF
32518 #define HAVE_TYPEOF 1
32519 _ACEOF
32520
32521 ac_ext=c
32522 ac_cpp='$CPP $CPPFLAGS'
32523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32526
32527
32528 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32529 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32530 if test "${ac_cv_c_const+set}" = set; then
32531   echo $ECHO_N "(cached) $ECHO_C" >&6
32532 else
32533   cat >conftest.$ac_ext <<_ACEOF
32534 /* confdefs.h.  */
32535 _ACEOF
32536 cat confdefs.h >>conftest.$ac_ext
32537 cat >>conftest.$ac_ext <<_ACEOF
32538 /* end confdefs.h.  */
32539
32540 int
32541 main ()
32542 {
32543 /* FIXME: Include the comments suggested by Paul. */
32544 #ifndef __cplusplus
32545   /* Ultrix mips cc rejects this.  */
32546   typedef int charset[2];
32547   const charset cs;
32548   /* SunOS 4.1.1 cc rejects this.  */
32549   char const *const *pcpcc;
32550   char **ppc;
32551   /* NEC SVR4.0.2 mips cc rejects this.  */
32552   struct point {int x, y;};
32553   static struct point const zero = {0,0};
32554   /* AIX XL C 1.02.0.0 rejects this.
32555      It does not let you subtract one const X* pointer from another in
32556      an arm of an if-expression whose if-part is not a constant
32557      expression */
32558   const char *g = "string";
32559   pcpcc = &g + (g ? g-g : 0);
32560   /* HPUX 7.0 cc rejects these. */
32561   ++pcpcc;
32562   ppc = (char**) pcpcc;
32563   pcpcc = (char const *const *) ppc;
32564   { /* SCO 3.2v4 cc rejects this.  */
32565     char *t;
32566     char const *s = 0 ? (char *) 0 : (char const *) 0;
32567
32568     *t++ = 0;
32569     if (s) return 0;
32570   }
32571   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32572     int x[] = {25, 17};
32573     const int *foo = &x[0];
32574     ++foo;
32575   }
32576   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32577     typedef const int *iptr;
32578     iptr p = 0;
32579     ++p;
32580   }
32581   { /* AIX XL C 1.02.0.0 rejects this saying
32582        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32583     struct s { int j; const int *ap[3]; };
32584     struct s *b; b->j = 5;
32585   }
32586   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32587     const int foo = 10;
32588     if (!foo) return 0;
32589   }
32590   return !cs[0] && !zero.x;
32591 #endif
32592
32593   ;
32594   return 0;
32595 }
32596 _ACEOF
32597 rm -f conftest.$ac_objext
32598 if { (ac_try="$ac_compile"
32599 case "(($ac_try" in
32600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32601   *) ac_try_echo=$ac_try;;
32602 esac
32603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32604   (eval "$ac_compile") 2>conftest.er1
32605   ac_status=$?
32606   grep -v '^ *+' conftest.er1 >conftest.err
32607   rm -f conftest.er1
32608   cat conftest.err >&5
32609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32610   (exit $ac_status); } && {
32611          test -z "$ac_c_werror_flag" ||
32612          test ! -s conftest.err
32613        } && test -s conftest.$ac_objext; then
32614   ac_cv_c_const=yes
32615 else
32616   echo "$as_me: failed program was:" >&5
32617 sed 's/^/| /' conftest.$ac_ext >&5
32618
32619         ac_cv_c_const=no
32620 fi
32621
32622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32623 fi
32624 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32625 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32626 if test $ac_cv_c_const = no; then
32627
32628 cat >>confdefs.h <<\_ACEOF
32629 #define const
32630 _ACEOF
32631
32632 fi
32633
32634
32635 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32636 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32637 fstype=no
32638 # The order of these tests is important.
32639 cat >conftest.$ac_ext <<_ACEOF
32640 /* confdefs.h.  */
32641 _ACEOF
32642 cat confdefs.h >>conftest.$ac_ext
32643 cat >>conftest.$ac_ext <<_ACEOF
32644 /* end confdefs.h.  */
32645
32646        #include <sys/statvfs.h>
32647        #include <sys/fstyp.h>
32648
32649 _ACEOF
32650 if { (ac_try="$ac_cpp conftest.$ac_ext"
32651 case "(($ac_try" in
32652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32653   *) ac_try_echo=$ac_try;;
32654 esac
32655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32656   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32657   ac_status=$?
32658   grep -v '^ *+' conftest.er1 >conftest.err
32659   rm -f conftest.er1
32660   cat conftest.err >&5
32661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32662   (exit $ac_status); } >/dev/null && {
32663          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32664          test ! -s conftest.err
32665        }; then
32666   cat >>confdefs.h <<\_ACEOF
32667 #define FSTYPE_STATVFS 1
32668 _ACEOF
32669  fstype=SVR4
32670
32671 else
32672   echo "$as_me: failed program was:" >&5
32673 sed 's/^/| /' conftest.$ac_ext >&5
32674
32675
32676 fi
32677
32678 rm -f conftest.err conftest.$ac_ext
32679 if test $fstype = no; then
32680    cat >conftest.$ac_ext <<_ACEOF
32681 /* confdefs.h.  */
32682 _ACEOF
32683 cat confdefs.h >>conftest.$ac_ext
32684 cat >>conftest.$ac_ext <<_ACEOF
32685 /* end confdefs.h.  */
32686
32687           #include <sys/statfs.h>
32688           #include <sys/fstyp.h>
32689
32690 _ACEOF
32691 if { (ac_try="$ac_cpp conftest.$ac_ext"
32692 case "(($ac_try" in
32693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694   *) ac_try_echo=$ac_try;;
32695 esac
32696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32698   ac_status=$?
32699   grep -v '^ *+' conftest.er1 >conftest.err
32700   rm -f conftest.er1
32701   cat conftest.err >&5
32702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703   (exit $ac_status); } >/dev/null && {
32704          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32705          test ! -s conftest.err
32706        }; then
32707   cat >>confdefs.h <<\_ACEOF
32708 #define FSTYPE_USG_STATFS 1
32709 _ACEOF
32710  fstype=SVR3
32711
32712 else
32713   echo "$as_me: failed program was:" >&5
32714 sed 's/^/| /' conftest.$ac_ext >&5
32715
32716
32717 fi
32718
32719 rm -f conftest.err conftest.$ac_ext
32720 fi
32721 if test $fstype = no; then
32722    cat >conftest.$ac_ext <<_ACEOF
32723 /* confdefs.h.  */
32724 _ACEOF
32725 cat confdefs.h >>conftest.$ac_ext
32726 cat >>conftest.$ac_ext <<_ACEOF
32727 /* end confdefs.h.  */
32728
32729           #include <sys/statfs.h>
32730           #include <sys/vmount.h>
32731
32732 _ACEOF
32733 if { (ac_try="$ac_cpp conftest.$ac_ext"
32734 case "(($ac_try" in
32735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32736   *) ac_try_echo=$ac_try;;
32737 esac
32738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32739   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32740   ac_status=$?
32741   grep -v '^ *+' conftest.er1 >conftest.err
32742   rm -f conftest.er1
32743   cat conftest.err >&5
32744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32745   (exit $ac_status); } >/dev/null && {
32746          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32747          test ! -s conftest.err
32748        }; then
32749   cat >>confdefs.h <<\_ACEOF
32750 #define FSTYPE_AIX_STATFS 1
32751 _ACEOF
32752  fstype=AIX
32753
32754 else
32755   echo "$as_me: failed program was:" >&5
32756 sed 's/^/| /' conftest.$ac_ext >&5
32757
32758
32759 fi
32760
32761 rm -f conftest.err conftest.$ac_ext
32762 fi
32763 if test $fstype = no; then
32764    cat >conftest.$ac_ext <<_ACEOF
32765 /* confdefs.h.  */
32766 _ACEOF
32767 cat confdefs.h >>conftest.$ac_ext
32768 cat >>conftest.$ac_ext <<_ACEOF
32769 /* end confdefs.h.  */
32770
32771           #include <mntent.h>
32772
32773 _ACEOF
32774 if { (ac_try="$ac_cpp conftest.$ac_ext"
32775 case "(($ac_try" in
32776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32777   *) ac_try_echo=$ac_try;;
32778 esac
32779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32781   ac_status=$?
32782   grep -v '^ *+' conftest.er1 >conftest.err
32783   rm -f conftest.er1
32784   cat conftest.err >&5
32785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786   (exit $ac_status); } >/dev/null && {
32787          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32788          test ! -s conftest.err
32789        }; then
32790   cat >>confdefs.h <<\_ACEOF
32791 #define FSTYPE_MNTENT 1
32792 _ACEOF
32793  fstype=4.3BSD
32794
32795 else
32796   echo "$as_me: failed program was:" >&5
32797 sed 's/^/| /' conftest.$ac_ext >&5
32798
32799
32800 fi
32801
32802 rm -f conftest.err conftest.$ac_ext
32803 fi
32804 if test $fstype = no; then
32805    cat >conftest.$ac_ext <<_ACEOF
32806 /* confdefs.h.  */
32807 _ACEOF
32808 cat confdefs.h >>conftest.$ac_ext
32809 cat >>conftest.$ac_ext <<_ACEOF
32810 /* end confdefs.h.  */
32811 #include <sys/mount.h>
32812
32813 _ACEOF
32814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32815   $EGREP "f_type;" >/dev/null 2>&1; then
32816   cat >>confdefs.h <<\_ACEOF
32817 #define FSTYPE_STATFS 1
32818 _ACEOF
32819  fstype=4.4BSD/OSF1
32820 fi
32821 rm -f conftest*
32822
32823 fi
32824 if test $fstype = no; then
32825    cat >conftest.$ac_ext <<_ACEOF
32826 /* confdefs.h.  */
32827 _ACEOF
32828 cat confdefs.h >>conftest.$ac_ext
32829 cat >>conftest.$ac_ext <<_ACEOF
32830 /* end confdefs.h.  */
32831
32832           #include <sys/mount.h>
32833           #include <sys/fs_types.h>
32834
32835 _ACEOF
32836 if { (ac_try="$ac_cpp conftest.$ac_ext"
32837 case "(($ac_try" in
32838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32839   *) ac_try_echo=$ac_try;;
32840 esac
32841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32842   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32843   ac_status=$?
32844   grep -v '^ *+' conftest.er1 >conftest.err
32845   rm -f conftest.er1
32846   cat conftest.err >&5
32847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32848   (exit $ac_status); } >/dev/null && {
32849          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32850          test ! -s conftest.err
32851        }; then
32852   cat >>confdefs.h <<\_ACEOF
32853 #define FSTYPE_GETMNT 1
32854 _ACEOF
32855  fstype=Ultrix
32856
32857 else
32858   echo "$as_me: failed program was:" >&5
32859 sed 's/^/| /' conftest.$ac_ext >&5
32860
32861
32862 fi
32863
32864 rm -f conftest.err conftest.$ac_ext
32865 fi
32866 { echo "$as_me:$LINENO: result: $fstype" >&5
32867 echo "${ECHO_T}$fstype" >&6; }
32868
32869 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32870   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32871 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32872 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32873   echo $ECHO_N "(cached) $ECHO_C" >&6
32874 fi
32875 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32876 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32877 else
32878   # Is the header compilable?
32879 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32880 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32881 cat >conftest.$ac_ext <<_ACEOF
32882 /* confdefs.h.  */
32883 _ACEOF
32884 cat confdefs.h >>conftest.$ac_ext
32885 cat >>conftest.$ac_ext <<_ACEOF
32886 /* end confdefs.h.  */
32887 $ac_includes_default
32888 #include <sys/statvfs.h>
32889 _ACEOF
32890 rm -f conftest.$ac_objext
32891 if { (ac_try="$ac_compile"
32892 case "(($ac_try" in
32893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32894   *) ac_try_echo=$ac_try;;
32895 esac
32896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32897   (eval "$ac_compile") 2>conftest.er1
32898   ac_status=$?
32899   grep -v '^ *+' conftest.er1 >conftest.err
32900   rm -f conftest.er1
32901   cat conftest.err >&5
32902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903   (exit $ac_status); } && {
32904          test -z "$ac_c_werror_flag" ||
32905          test ! -s conftest.err
32906        } && test -s conftest.$ac_objext; then
32907   ac_header_compiler=yes
32908 else
32909   echo "$as_me: failed program was:" >&5
32910 sed 's/^/| /' conftest.$ac_ext >&5
32911
32912         ac_header_compiler=no
32913 fi
32914
32915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32917 echo "${ECHO_T}$ac_header_compiler" >&6; }
32918
32919 # Is the header present?
32920 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32921 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32922 cat >conftest.$ac_ext <<_ACEOF
32923 /* confdefs.h.  */
32924 _ACEOF
32925 cat confdefs.h >>conftest.$ac_ext
32926 cat >>conftest.$ac_ext <<_ACEOF
32927 /* end confdefs.h.  */
32928 #include <sys/statvfs.h>
32929 _ACEOF
32930 if { (ac_try="$ac_cpp conftest.$ac_ext"
32931 case "(($ac_try" in
32932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32933   *) ac_try_echo=$ac_try;;
32934 esac
32935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32936   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32937   ac_status=$?
32938   grep -v '^ *+' conftest.er1 >conftest.err
32939   rm -f conftest.er1
32940   cat conftest.err >&5
32941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942   (exit $ac_status); } >/dev/null && {
32943          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32944          test ! -s conftest.err
32945        }; then
32946   ac_header_preproc=yes
32947 else
32948   echo "$as_me: failed program was:" >&5
32949 sed 's/^/| /' conftest.$ac_ext >&5
32950
32951   ac_header_preproc=no
32952 fi
32953
32954 rm -f conftest.err conftest.$ac_ext
32955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32956 echo "${ECHO_T}$ac_header_preproc" >&6; }
32957
32958 # So?  What about this header?
32959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32960   yes:no: )
32961     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32962 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32963     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32964 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32965     ac_header_preproc=yes
32966     ;;
32967   no:yes:* )
32968     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32969 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32970     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
32971 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
32972     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32973 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32974     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
32975 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32976     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32977 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32978     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32979 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32980
32981     ;;
32982 esac
32983 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32984 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32985 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32986   echo $ECHO_N "(cached) $ECHO_C" >&6
32987 else
32988   ac_cv_header_sys_statvfs_h=$ac_header_preproc
32989 fi
32990 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32991 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32992
32993 fi
32994 if test $ac_cv_header_sys_statvfs_h = yes; then
32995
32996 cat >>confdefs.h <<\_ACEOF
32997 #define HAVE_SYS_STATVFS_H 1
32998 _ACEOF
32999
33000 fi
33001
33002
33003
33004 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33005 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33006 if test "${ac_cv_type_signal+set}" = set; then
33007   echo $ECHO_N "(cached) $ECHO_C" >&6
33008 else
33009   cat >conftest.$ac_ext <<_ACEOF
33010 /* confdefs.h.  */
33011 _ACEOF
33012 cat confdefs.h >>conftest.$ac_ext
33013 cat >>conftest.$ac_ext <<_ACEOF
33014 /* end confdefs.h.  */
33015 #include <sys/types.h>
33016 #include <signal.h>
33017
33018 int
33019 main ()
33020 {
33021 return *(signal (0, 0)) (0) == 1;
33022   ;
33023   return 0;
33024 }
33025 _ACEOF
33026 rm -f conftest.$ac_objext
33027 if { (ac_try="$ac_compile"
33028 case "(($ac_try" in
33029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33030   *) ac_try_echo=$ac_try;;
33031 esac
33032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33033   (eval "$ac_compile") 2>conftest.er1
33034   ac_status=$?
33035   grep -v '^ *+' conftest.er1 >conftest.err
33036   rm -f conftest.er1
33037   cat conftest.err >&5
33038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33039   (exit $ac_status); } && {
33040          test -z "$ac_c_werror_flag" ||
33041          test ! -s conftest.err
33042        } && test -s conftest.$ac_objext; then
33043   ac_cv_type_signal=int
33044 else
33045   echo "$as_me: failed program was:" >&5
33046 sed 's/^/| /' conftest.$ac_ext >&5
33047
33048         ac_cv_type_signal=void
33049 fi
33050
33051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33052 fi
33053 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33054 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33055
33056 cat >>confdefs.h <<_ACEOF
33057 #define RETSIGTYPE $ac_cv_type_signal
33058 _ACEOF
33059
33060
33061
33062   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33063 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33064   if test "${bash_cv_signal_vintage+set}" = set; then
33065   echo $ECHO_N "(cached) $ECHO_C" >&6
33066 else
33067
33068     cat >conftest.$ac_ext <<_ACEOF
33069 /* confdefs.h.  */
33070 _ACEOF
33071 cat confdefs.h >>conftest.$ac_ext
33072 cat >>conftest.$ac_ext <<_ACEOF
33073 /* end confdefs.h.  */
33074 #include <signal.h>
33075 int
33076 main ()
33077 {
33078
33079       sigset_t ss;
33080       struct sigaction sa;
33081       sigemptyset(&ss); sigsuspend(&ss);
33082       sigaction(SIGINT, &sa, (struct sigaction *) 0);
33083       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33084
33085   ;
33086   return 0;
33087 }
33088 _ACEOF
33089 rm -f conftest.$ac_objext conftest$ac_exeext
33090 if { (ac_try="$ac_link"
33091 case "(($ac_try" in
33092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33093   *) ac_try_echo=$ac_try;;
33094 esac
33095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33096   (eval "$ac_link") 2>conftest.er1
33097   ac_status=$?
33098   grep -v '^ *+' conftest.er1 >conftest.err
33099   rm -f conftest.er1
33100   cat conftest.err >&5
33101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33102   (exit $ac_status); } && {
33103          test -z "$ac_c_werror_flag" ||
33104          test ! -s conftest.err
33105        } && test -s conftest$ac_exeext &&
33106        $as_test_x conftest$ac_exeext; then
33107   bash_cv_signal_vintage="posix"
33108 else
33109   echo "$as_me: failed program was:" >&5
33110 sed 's/^/| /' conftest.$ac_ext >&5
33111
33112
33113       cat >conftest.$ac_ext <<_ACEOF
33114 /* confdefs.h.  */
33115 _ACEOF
33116 cat confdefs.h >>conftest.$ac_ext
33117 cat >>conftest.$ac_ext <<_ACEOF
33118 /* end confdefs.h.  */
33119 #include <signal.h>
33120 int
33121 main ()
33122 {
33123
33124           int mask = sigmask(SIGINT);
33125           sigsetmask(mask); sigblock(mask); sigpause(mask);
33126
33127   ;
33128   return 0;
33129 }
33130 _ACEOF
33131 rm -f conftest.$ac_objext conftest$ac_exeext
33132 if { (ac_try="$ac_link"
33133 case "(($ac_try" in
33134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33135   *) ac_try_echo=$ac_try;;
33136 esac
33137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33138   (eval "$ac_link") 2>conftest.er1
33139   ac_status=$?
33140   grep -v '^ *+' conftest.er1 >conftest.err
33141   rm -f conftest.er1
33142   cat conftest.err >&5
33143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33144   (exit $ac_status); } && {
33145          test -z "$ac_c_werror_flag" ||
33146          test ! -s conftest.err
33147        } && test -s conftest$ac_exeext &&
33148        $as_test_x conftest$ac_exeext; then
33149   bash_cv_signal_vintage="4.2bsd"
33150 else
33151   echo "$as_me: failed program was:" >&5
33152 sed 's/^/| /' conftest.$ac_ext >&5
33153
33154
33155         cat >conftest.$ac_ext <<_ACEOF
33156 /* confdefs.h.  */
33157 _ACEOF
33158 cat confdefs.h >>conftest.$ac_ext
33159 cat >>conftest.$ac_ext <<_ACEOF
33160 /* end confdefs.h.  */
33161
33162           #include <signal.h>
33163           RETSIGTYPE foo() { }
33164 int
33165 main ()
33166 {
33167
33168                   int mask = sigmask(SIGINT);
33169                   sigset(SIGINT, foo); sigrelse(SIGINT);
33170                   sighold(SIGINT); sigpause(SIGINT);
33171
33172   ;
33173   return 0;
33174 }
33175 _ACEOF
33176 rm -f conftest.$ac_objext conftest$ac_exeext
33177 if { (ac_try="$ac_link"
33178 case "(($ac_try" in
33179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180   *) ac_try_echo=$ac_try;;
33181 esac
33182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183   (eval "$ac_link") 2>conftest.er1
33184   ac_status=$?
33185   grep -v '^ *+' conftest.er1 >conftest.err
33186   rm -f conftest.er1
33187   cat conftest.err >&5
33188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189   (exit $ac_status); } && {
33190          test -z "$ac_c_werror_flag" ||
33191          test ! -s conftest.err
33192        } && test -s conftest$ac_exeext &&
33193        $as_test_x conftest$ac_exeext; then
33194   bash_cv_signal_vintage="svr3"
33195 else
33196   echo "$as_me: failed program was:" >&5
33197 sed 's/^/| /' conftest.$ac_ext >&5
33198
33199         bash_cv_signal_vintage="v7"
33200
33201 fi
33202
33203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33204       conftest$ac_exeext conftest.$ac_ext
33205
33206 fi
33207
33208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33209       conftest$ac_exeext conftest.$ac_ext
33210
33211 fi
33212
33213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33214       conftest$ac_exeext conftest.$ac_ext
33215
33216 fi
33217
33218   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33219 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33220   if test "$bash_cv_signal_vintage" = "posix"; then
33221     cat >>confdefs.h <<\_ACEOF
33222 #define HAVE_POSIX_SIGNALS 1
33223 _ACEOF
33224
33225   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33226     cat >>confdefs.h <<\_ACEOF
33227 #define HAVE_BSD_SIGNALS 1
33228 _ACEOF
33229
33230   elif test "$bash_cv_signal_vintage" = "svr3"; then
33231     cat >>confdefs.h <<\_ACEOF
33232 #define HAVE_USG_SIGHOLD 1
33233 _ACEOF
33234
33235   fi
33236
33237 { echo "$as_me:$LINENO: checking for mode_t" >&5
33238 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33239 if test "${ac_cv_type_mode_t+set}" = set; then
33240   echo $ECHO_N "(cached) $ECHO_C" >&6
33241 else
33242   cat >conftest.$ac_ext <<_ACEOF
33243 /* confdefs.h.  */
33244 _ACEOF
33245 cat confdefs.h >>conftest.$ac_ext
33246 cat >>conftest.$ac_ext <<_ACEOF
33247 /* end confdefs.h.  */
33248 $ac_includes_default
33249 typedef mode_t ac__type_new_;
33250 int
33251 main ()
33252 {
33253 if ((ac__type_new_ *) 0)
33254   return 0;
33255 if (sizeof (ac__type_new_))
33256   return 0;
33257   ;
33258   return 0;
33259 }
33260 _ACEOF
33261 rm -f conftest.$ac_objext
33262 if { (ac_try="$ac_compile"
33263 case "(($ac_try" in
33264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33265   *) ac_try_echo=$ac_try;;
33266 esac
33267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33268   (eval "$ac_compile") 2>conftest.er1
33269   ac_status=$?
33270   grep -v '^ *+' conftest.er1 >conftest.err
33271   rm -f conftest.er1
33272   cat conftest.err >&5
33273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274   (exit $ac_status); } && {
33275          test -z "$ac_c_werror_flag" ||
33276          test ! -s conftest.err
33277        } && test -s conftest.$ac_objext; then
33278   ac_cv_type_mode_t=yes
33279 else
33280   echo "$as_me: failed program was:" >&5
33281 sed 's/^/| /' conftest.$ac_ext >&5
33282
33283         ac_cv_type_mode_t=no
33284 fi
33285
33286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33287 fi
33288 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33289 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33290 if test $ac_cv_type_mode_t = yes; then
33291   :
33292 else
33293
33294 cat >>confdefs.h <<_ACEOF
33295 #define mode_t int
33296 _ACEOF
33297
33298 fi
33299
33300 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33301 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33302 if test "${ac_cv_type_uid_t+set}" = set; then
33303   echo $ECHO_N "(cached) $ECHO_C" >&6
33304 else
33305   cat >conftest.$ac_ext <<_ACEOF
33306 /* confdefs.h.  */
33307 _ACEOF
33308 cat confdefs.h >>conftest.$ac_ext
33309 cat >>conftest.$ac_ext <<_ACEOF
33310 /* end confdefs.h.  */
33311 #include <sys/types.h>
33312
33313 _ACEOF
33314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33315   $EGREP "uid_t" >/dev/null 2>&1; then
33316   ac_cv_type_uid_t=yes
33317 else
33318   ac_cv_type_uid_t=no
33319 fi
33320 rm -f conftest*
33321
33322 fi
33323 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33324 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33325 if test $ac_cv_type_uid_t = no; then
33326
33327 cat >>confdefs.h <<\_ACEOF
33328 #define uid_t int
33329 _ACEOF
33330
33331
33332 cat >>confdefs.h <<\_ACEOF
33333 #define gid_t int
33334 _ACEOF
33335
33336 fi
33337
33338 { echo "$as_me:$LINENO: checking for size_t" >&5
33339 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33340 if test "${ac_cv_type_size_t+set}" = set; then
33341   echo $ECHO_N "(cached) $ECHO_C" >&6
33342 else
33343   cat >conftest.$ac_ext <<_ACEOF
33344 /* confdefs.h.  */
33345 _ACEOF
33346 cat confdefs.h >>conftest.$ac_ext
33347 cat >>conftest.$ac_ext <<_ACEOF
33348 /* end confdefs.h.  */
33349 $ac_includes_default
33350 typedef size_t ac__type_new_;
33351 int
33352 main ()
33353 {
33354 if ((ac__type_new_ *) 0)
33355   return 0;
33356 if (sizeof (ac__type_new_))
33357   return 0;
33358   ;
33359   return 0;
33360 }
33361 _ACEOF
33362 rm -f conftest.$ac_objext
33363 if { (ac_try="$ac_compile"
33364 case "(($ac_try" in
33365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33366   *) ac_try_echo=$ac_try;;
33367 esac
33368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33369   (eval "$ac_compile") 2>conftest.er1
33370   ac_status=$?
33371   grep -v '^ *+' conftest.er1 >conftest.err
33372   rm -f conftest.er1
33373   cat conftest.err >&5
33374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375   (exit $ac_status); } && {
33376          test -z "$ac_c_werror_flag" ||
33377          test ! -s conftest.err
33378        } && test -s conftest.$ac_objext; then
33379   ac_cv_type_size_t=yes
33380 else
33381   echo "$as_me: failed program was:" >&5
33382 sed 's/^/| /' conftest.$ac_ext >&5
33383
33384         ac_cv_type_size_t=no
33385 fi
33386
33387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33388 fi
33389 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33390 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33391 if test $ac_cv_type_size_t = yes; then
33392   :
33393 else
33394
33395 cat >>confdefs.h <<_ACEOF
33396 #define size_t unsigned int
33397 _ACEOF
33398
33399 fi
33400
33401 { echo "$as_me:$LINENO: checking for pid_t" >&5
33402 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33403 if test "${ac_cv_type_pid_t+set}" = set; then
33404   echo $ECHO_N "(cached) $ECHO_C" >&6
33405 else
33406   cat >conftest.$ac_ext <<_ACEOF
33407 /* confdefs.h.  */
33408 _ACEOF
33409 cat confdefs.h >>conftest.$ac_ext
33410 cat >>conftest.$ac_ext <<_ACEOF
33411 /* end confdefs.h.  */
33412 $ac_includes_default
33413 typedef pid_t ac__type_new_;
33414 int
33415 main ()
33416 {
33417 if ((ac__type_new_ *) 0)
33418   return 0;
33419 if (sizeof (ac__type_new_))
33420   return 0;
33421   ;
33422   return 0;
33423 }
33424 _ACEOF
33425 rm -f conftest.$ac_objext
33426 if { (ac_try="$ac_compile"
33427 case "(($ac_try" in
33428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33429   *) ac_try_echo=$ac_try;;
33430 esac
33431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33432   (eval "$ac_compile") 2>conftest.er1
33433   ac_status=$?
33434   grep -v '^ *+' conftest.er1 >conftest.err
33435   rm -f conftest.er1
33436   cat conftest.err >&5
33437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33438   (exit $ac_status); } && {
33439          test -z "$ac_c_werror_flag" ||
33440          test ! -s conftest.err
33441        } && test -s conftest.$ac_objext; then
33442   ac_cv_type_pid_t=yes
33443 else
33444   echo "$as_me: failed program was:" >&5
33445 sed 's/^/| /' conftest.$ac_ext >&5
33446
33447         ac_cv_type_pid_t=no
33448 fi
33449
33450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33451 fi
33452 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33453 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33454 if test $ac_cv_type_pid_t = yes; then
33455   :
33456 else
33457
33458 cat >>confdefs.h <<_ACEOF
33459 #define pid_t int
33460 _ACEOF
33461
33462 fi
33463
33464 { echo "$as_me:$LINENO: checking for off_t" >&5
33465 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33466 if test "${ac_cv_type_off_t+set}" = set; then
33467   echo $ECHO_N "(cached) $ECHO_C" >&6
33468 else
33469   cat >conftest.$ac_ext <<_ACEOF
33470 /* confdefs.h.  */
33471 _ACEOF
33472 cat confdefs.h >>conftest.$ac_ext
33473 cat >>conftest.$ac_ext <<_ACEOF
33474 /* end confdefs.h.  */
33475 $ac_includes_default
33476 typedef off_t ac__type_new_;
33477 int
33478 main ()
33479 {
33480 if ((ac__type_new_ *) 0)
33481   return 0;
33482 if (sizeof (ac__type_new_))
33483   return 0;
33484   ;
33485   return 0;
33486 }
33487 _ACEOF
33488 rm -f conftest.$ac_objext
33489 if { (ac_try="$ac_compile"
33490 case "(($ac_try" in
33491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33492   *) ac_try_echo=$ac_try;;
33493 esac
33494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33495   (eval "$ac_compile") 2>conftest.er1
33496   ac_status=$?
33497   grep -v '^ *+' conftest.er1 >conftest.err
33498   rm -f conftest.er1
33499   cat conftest.err >&5
33500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33501   (exit $ac_status); } && {
33502          test -z "$ac_c_werror_flag" ||
33503          test ! -s conftest.err
33504        } && test -s conftest.$ac_objext; then
33505   ac_cv_type_off_t=yes
33506 else
33507   echo "$as_me: failed program was:" >&5
33508 sed 's/^/| /' conftest.$ac_ext >&5
33509
33510         ac_cv_type_off_t=no
33511 fi
33512
33513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33514 fi
33515 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33516 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33517 if test $ac_cv_type_off_t = yes; then
33518   :
33519 else
33520
33521 cat >>confdefs.h <<_ACEOF
33522 #define off_t long int
33523 _ACEOF
33524
33525 fi
33526
33527
33528   { echo "$as_me:$LINENO: checking for intptr_t" >&5
33529 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33530 if test "${ac_cv_type_intptr_t+set}" = set; then
33531   echo $ECHO_N "(cached) $ECHO_C" >&6
33532 else
33533   cat >conftest.$ac_ext <<_ACEOF
33534 /* confdefs.h.  */
33535 _ACEOF
33536 cat confdefs.h >>conftest.$ac_ext
33537 cat >>conftest.$ac_ext <<_ACEOF
33538 /* end confdefs.h.  */
33539 $ac_includes_default
33540 typedef intptr_t ac__type_new_;
33541 int
33542 main ()
33543 {
33544 if ((ac__type_new_ *) 0)
33545   return 0;
33546 if (sizeof (ac__type_new_))
33547   return 0;
33548   ;
33549   return 0;
33550 }
33551 _ACEOF
33552 rm -f conftest.$ac_objext
33553 if { (ac_try="$ac_compile"
33554 case "(($ac_try" in
33555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33556   *) ac_try_echo=$ac_try;;
33557 esac
33558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33559   (eval "$ac_compile") 2>conftest.er1
33560   ac_status=$?
33561   grep -v '^ *+' conftest.er1 >conftest.err
33562   rm -f conftest.er1
33563   cat conftest.err >&5
33564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565   (exit $ac_status); } && {
33566          test -z "$ac_c_werror_flag" ||
33567          test ! -s conftest.err
33568        } && test -s conftest.$ac_objext; then
33569   ac_cv_type_intptr_t=yes
33570 else
33571   echo "$as_me: failed program was:" >&5
33572 sed 's/^/| /' conftest.$ac_ext >&5
33573
33574         ac_cv_type_intptr_t=no
33575 fi
33576
33577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33578 fi
33579 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33580 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33581 if test $ac_cv_type_intptr_t = yes; then
33582
33583 cat >>confdefs.h <<\_ACEOF
33584 #define HAVE_INTPTR_T 1
33585 _ACEOF
33586
33587 else
33588   for ac_type in 'int' 'long int' 'long long int'; do
33589        cat >conftest.$ac_ext <<_ACEOF
33590 /* confdefs.h.  */
33591 _ACEOF
33592 cat confdefs.h >>conftest.$ac_ext
33593 cat >>conftest.$ac_ext <<_ACEOF
33594 /* end confdefs.h.  */
33595 $ac_includes_default
33596 int
33597 main ()
33598 {
33599 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33600 test_array [0] = 0
33601
33602   ;
33603   return 0;
33604 }
33605 _ACEOF
33606 rm -f conftest.$ac_objext
33607 if { (ac_try="$ac_compile"
33608 case "(($ac_try" in
33609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33610   *) ac_try_echo=$ac_try;;
33611 esac
33612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33613   (eval "$ac_compile") 2>conftest.er1
33614   ac_status=$?
33615   grep -v '^ *+' conftest.er1 >conftest.err
33616   rm -f conftest.er1
33617   cat conftest.err >&5
33618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33619   (exit $ac_status); } && {
33620          test -z "$ac_c_werror_flag" ||
33621          test ! -s conftest.err
33622        } && test -s conftest.$ac_objext; then
33623
33624 cat >>confdefs.h <<_ACEOF
33625 #define intptr_t $ac_type
33626 _ACEOF
33627
33628           ac_type=
33629 else
33630   echo "$as_me: failed program was:" >&5
33631 sed 's/^/| /' conftest.$ac_ext >&5
33632
33633
33634 fi
33635
33636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33637        test -z "$ac_type" && break
33638      done
33639 fi
33640
33641
33642
33643   { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33644 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33645 if test "${ac_cv_type_uintptr_t+set}" = set; then
33646   echo $ECHO_N "(cached) $ECHO_C" >&6
33647 else
33648   cat >conftest.$ac_ext <<_ACEOF
33649 /* confdefs.h.  */
33650 _ACEOF
33651 cat confdefs.h >>conftest.$ac_ext
33652 cat >>conftest.$ac_ext <<_ACEOF
33653 /* end confdefs.h.  */
33654 $ac_includes_default
33655 typedef uintptr_t ac__type_new_;
33656 int
33657 main ()
33658 {
33659 if ((ac__type_new_ *) 0)
33660   return 0;
33661 if (sizeof (ac__type_new_))
33662   return 0;
33663   ;
33664   return 0;
33665 }
33666 _ACEOF
33667 rm -f conftest.$ac_objext
33668 if { (ac_try="$ac_compile"
33669 case "(($ac_try" in
33670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33671   *) ac_try_echo=$ac_try;;
33672 esac
33673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33674   (eval "$ac_compile") 2>conftest.er1
33675   ac_status=$?
33676   grep -v '^ *+' conftest.er1 >conftest.err
33677   rm -f conftest.er1
33678   cat conftest.err >&5
33679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680   (exit $ac_status); } && {
33681          test -z "$ac_c_werror_flag" ||
33682          test ! -s conftest.err
33683        } && test -s conftest.$ac_objext; then
33684   ac_cv_type_uintptr_t=yes
33685 else
33686   echo "$as_me: failed program was:" >&5
33687 sed 's/^/| /' conftest.$ac_ext >&5
33688
33689         ac_cv_type_uintptr_t=no
33690 fi
33691
33692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33693 fi
33694 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33695 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33696 if test $ac_cv_type_uintptr_t = yes; then
33697
33698 cat >>confdefs.h <<\_ACEOF
33699 #define HAVE_UINTPTR_T 1
33700 _ACEOF
33701
33702 else
33703   for ac_type in 'unsigned int' 'unsigned long int' \
33704         'unsigned long long int'; do
33705        cat >conftest.$ac_ext <<_ACEOF
33706 /* confdefs.h.  */
33707 _ACEOF
33708 cat confdefs.h >>conftest.$ac_ext
33709 cat >>conftest.$ac_ext <<_ACEOF
33710 /* end confdefs.h.  */
33711 $ac_includes_default
33712 int
33713 main ()
33714 {
33715 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33716 test_array [0] = 0
33717
33718   ;
33719   return 0;
33720 }
33721 _ACEOF
33722 rm -f conftest.$ac_objext
33723 if { (ac_try="$ac_compile"
33724 case "(($ac_try" in
33725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33726   *) ac_try_echo=$ac_try;;
33727 esac
33728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33729   (eval "$ac_compile") 2>conftest.er1
33730   ac_status=$?
33731   grep -v '^ *+' conftest.er1 >conftest.err
33732   rm -f conftest.er1
33733   cat conftest.err >&5
33734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735   (exit $ac_status); } && {
33736          test -z "$ac_c_werror_flag" ||
33737          test ! -s conftest.err
33738        } && test -s conftest.$ac_objext; then
33739
33740 cat >>confdefs.h <<_ACEOF
33741 #define uintptr_t $ac_type
33742 _ACEOF
33743
33744           ac_type=
33745 else
33746   echo "$as_me: failed program was:" >&5
33747 sed 's/^/| /' conftest.$ac_ext >&5
33748
33749
33750 fi
33751
33752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33753        test -z "$ac_type" && break
33754      done
33755 fi
33756
33757
33758 { echo "$as_me:$LINENO: checking for ino_t" >&5
33759 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33760 if test "${ac_cv_type_ino_t+set}" = set; then
33761   echo $ECHO_N "(cached) $ECHO_C" >&6
33762 else
33763   cat >conftest.$ac_ext <<_ACEOF
33764 /* confdefs.h.  */
33765 _ACEOF
33766 cat confdefs.h >>conftest.$ac_ext
33767 cat >>conftest.$ac_ext <<_ACEOF
33768 /* end confdefs.h.  */
33769 $ac_includes_default
33770 typedef ino_t ac__type_new_;
33771 int
33772 main ()
33773 {
33774 if ((ac__type_new_ *) 0)
33775   return 0;
33776 if (sizeof (ac__type_new_))
33777   return 0;
33778   ;
33779   return 0;
33780 }
33781 _ACEOF
33782 rm -f conftest.$ac_objext
33783 if { (ac_try="$ac_compile"
33784 case "(($ac_try" in
33785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33786   *) ac_try_echo=$ac_try;;
33787 esac
33788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33789   (eval "$ac_compile") 2>conftest.er1
33790   ac_status=$?
33791   grep -v '^ *+' conftest.er1 >conftest.err
33792   rm -f conftest.er1
33793   cat conftest.err >&5
33794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795   (exit $ac_status); } && {
33796          test -z "$ac_c_werror_flag" ||
33797          test ! -s conftest.err
33798        } && test -s conftest.$ac_objext; then
33799   ac_cv_type_ino_t=yes
33800 else
33801   echo "$as_me: failed program was:" >&5
33802 sed 's/^/| /' conftest.$ac_ext >&5
33803
33804         ac_cv_type_ino_t=no
33805 fi
33806
33807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33808 fi
33809 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33810 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33811 if test $ac_cv_type_ino_t = yes; then
33812   :
33813 else
33814
33815 cat >>confdefs.h <<_ACEOF
33816 #define ino_t unsigned long
33817 _ACEOF
33818
33819 fi
33820
33821 { echo "$as_me:$LINENO: checking for dev_t" >&5
33822 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33823 if test "${ac_cv_type_dev_t+set}" = set; then
33824   echo $ECHO_N "(cached) $ECHO_C" >&6
33825 else
33826   cat >conftest.$ac_ext <<_ACEOF
33827 /* confdefs.h.  */
33828 _ACEOF
33829 cat confdefs.h >>conftest.$ac_ext
33830 cat >>conftest.$ac_ext <<_ACEOF
33831 /* end confdefs.h.  */
33832 $ac_includes_default
33833 typedef dev_t ac__type_new_;
33834 int
33835 main ()
33836 {
33837 if ((ac__type_new_ *) 0)
33838   return 0;
33839 if (sizeof (ac__type_new_))
33840   return 0;
33841   ;
33842   return 0;
33843 }
33844 _ACEOF
33845 rm -f conftest.$ac_objext
33846 if { (ac_try="$ac_compile"
33847 case "(($ac_try" in
33848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33849   *) ac_try_echo=$ac_try;;
33850 esac
33851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33852   (eval "$ac_compile") 2>conftest.er1
33853   ac_status=$?
33854   grep -v '^ *+' conftest.er1 >conftest.err
33855   rm -f conftest.er1
33856   cat conftest.err >&5
33857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33858   (exit $ac_status); } && {
33859          test -z "$ac_c_werror_flag" ||
33860          test ! -s conftest.err
33861        } && test -s conftest.$ac_objext; then
33862   ac_cv_type_dev_t=yes
33863 else
33864   echo "$as_me: failed program was:" >&5
33865 sed 's/^/| /' conftest.$ac_ext >&5
33866
33867         ac_cv_type_dev_t=no
33868 fi
33869
33870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33871 fi
33872 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33873 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33874 if test $ac_cv_type_dev_t = yes; then
33875   :
33876 else
33877
33878 cat >>confdefs.h <<_ACEOF
33879 #define dev_t unsigned long
33880 _ACEOF
33881
33882 fi
33883
33884 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33885 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33886 if test "${ac_cv_type_daddr_t+set}" = set; then
33887   echo $ECHO_N "(cached) $ECHO_C" >&6
33888 else
33889   cat >conftest.$ac_ext <<_ACEOF
33890 /* confdefs.h.  */
33891 _ACEOF
33892 cat confdefs.h >>conftest.$ac_ext
33893 cat >>conftest.$ac_ext <<_ACEOF
33894 /* end confdefs.h.  */
33895 $ac_includes_default
33896 typedef daddr_t ac__type_new_;
33897 int
33898 main ()
33899 {
33900 if ((ac__type_new_ *) 0)
33901   return 0;
33902 if (sizeof (ac__type_new_))
33903   return 0;
33904   ;
33905   return 0;
33906 }
33907 _ACEOF
33908 rm -f conftest.$ac_objext
33909 if { (ac_try="$ac_compile"
33910 case "(($ac_try" in
33911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33912   *) ac_try_echo=$ac_try;;
33913 esac
33914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33915   (eval "$ac_compile") 2>conftest.er1
33916   ac_status=$?
33917   grep -v '^ *+' conftest.er1 >conftest.err
33918   rm -f conftest.er1
33919   cat conftest.err >&5
33920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33921   (exit $ac_status); } && {
33922          test -z "$ac_c_werror_flag" ||
33923          test ! -s conftest.err
33924        } && test -s conftest.$ac_objext; then
33925   ac_cv_type_daddr_t=yes
33926 else
33927   echo "$as_me: failed program was:" >&5
33928 sed 's/^/| /' conftest.$ac_ext >&5
33929
33930         ac_cv_type_daddr_t=no
33931 fi
33932
33933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33934 fi
33935 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33936 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33937 if test $ac_cv_type_daddr_t = yes; then
33938   :
33939 else
33940
33941 cat >>confdefs.h <<_ACEOF
33942 #define daddr_t long
33943 _ACEOF
33944
33945 fi
33946
33947 { echo "$as_me:$LINENO: checking for major_t" >&5
33948 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33949 if test "${ac_cv_type_major_t+set}" = set; then
33950   echo $ECHO_N "(cached) $ECHO_C" >&6
33951 else
33952   cat >conftest.$ac_ext <<_ACEOF
33953 /* confdefs.h.  */
33954 _ACEOF
33955 cat confdefs.h >>conftest.$ac_ext
33956 cat >>conftest.$ac_ext <<_ACEOF
33957 /* end confdefs.h.  */
33958 $ac_includes_default
33959 typedef major_t ac__type_new_;
33960 int
33961 main ()
33962 {
33963 if ((ac__type_new_ *) 0)
33964   return 0;
33965 if (sizeof (ac__type_new_))
33966   return 0;
33967   ;
33968   return 0;
33969 }
33970 _ACEOF
33971 rm -f conftest.$ac_objext
33972 if { (ac_try="$ac_compile"
33973 case "(($ac_try" in
33974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33975   *) ac_try_echo=$ac_try;;
33976 esac
33977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33978   (eval "$ac_compile") 2>conftest.er1
33979   ac_status=$?
33980   grep -v '^ *+' conftest.er1 >conftest.err
33981   rm -f conftest.er1
33982   cat conftest.err >&5
33983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33984   (exit $ac_status); } && {
33985          test -z "$ac_c_werror_flag" ||
33986          test ! -s conftest.err
33987        } && test -s conftest.$ac_objext; then
33988   ac_cv_type_major_t=yes
33989 else
33990   echo "$as_me: failed program was:" >&5
33991 sed 's/^/| /' conftest.$ac_ext >&5
33992
33993         ac_cv_type_major_t=no
33994 fi
33995
33996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33997 fi
33998 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33999 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34000 if test $ac_cv_type_major_t = yes; then
34001   :
34002 else
34003
34004 cat >>confdefs.h <<_ACEOF
34005 #define major_t int
34006 _ACEOF
34007
34008 fi
34009
34010 { echo "$as_me:$LINENO: checking for minor_t" >&5
34011 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34012 if test "${ac_cv_type_minor_t+set}" = set; then
34013   echo $ECHO_N "(cached) $ECHO_C" >&6
34014 else
34015   cat >conftest.$ac_ext <<_ACEOF
34016 /* confdefs.h.  */
34017 _ACEOF
34018 cat confdefs.h >>conftest.$ac_ext
34019 cat >>conftest.$ac_ext <<_ACEOF
34020 /* end confdefs.h.  */
34021 $ac_includes_default
34022 typedef minor_t ac__type_new_;
34023 int
34024 main ()
34025 {
34026 if ((ac__type_new_ *) 0)
34027   return 0;
34028 if (sizeof (ac__type_new_))
34029   return 0;
34030   ;
34031   return 0;
34032 }
34033 _ACEOF
34034 rm -f conftest.$ac_objext
34035 if { (ac_try="$ac_compile"
34036 case "(($ac_try" in
34037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34038   *) ac_try_echo=$ac_try;;
34039 esac
34040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34041   (eval "$ac_compile") 2>conftest.er1
34042   ac_status=$?
34043   grep -v '^ *+' conftest.er1 >conftest.err
34044   rm -f conftest.er1
34045   cat conftest.err >&5
34046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047   (exit $ac_status); } && {
34048          test -z "$ac_c_werror_flag" ||
34049          test ! -s conftest.err
34050        } && test -s conftest.$ac_objext; then
34051   ac_cv_type_minor_t=yes
34052 else
34053   echo "$as_me: failed program was:" >&5
34054 sed 's/^/| /' conftest.$ac_ext >&5
34055
34056         ac_cv_type_minor_t=no
34057 fi
34058
34059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34060 fi
34061 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34062 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34063 if test $ac_cv_type_minor_t = yes; then
34064   :
34065 else
34066
34067 cat >>confdefs.h <<_ACEOF
34068 #define minor_t int
34069 _ACEOF
34070
34071 fi
34072
34073 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34074 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34075 if test "${ac_cv_type_ssize_t+set}" = set; then
34076   echo $ECHO_N "(cached) $ECHO_C" >&6
34077 else
34078   cat >conftest.$ac_ext <<_ACEOF
34079 /* confdefs.h.  */
34080 _ACEOF
34081 cat confdefs.h >>conftest.$ac_ext
34082 cat >>conftest.$ac_ext <<_ACEOF
34083 /* end confdefs.h.  */
34084 $ac_includes_default
34085 typedef ssize_t ac__type_new_;
34086 int
34087 main ()
34088 {
34089 if ((ac__type_new_ *) 0)
34090   return 0;
34091 if (sizeof (ac__type_new_))
34092   return 0;
34093   ;
34094   return 0;
34095 }
34096 _ACEOF
34097 rm -f conftest.$ac_objext
34098 if { (ac_try="$ac_compile"
34099 case "(($ac_try" in
34100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34101   *) ac_try_echo=$ac_try;;
34102 esac
34103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34104   (eval "$ac_compile") 2>conftest.er1
34105   ac_status=$?
34106   grep -v '^ *+' conftest.er1 >conftest.err
34107   rm -f conftest.er1
34108   cat conftest.err >&5
34109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34110   (exit $ac_status); } && {
34111          test -z "$ac_c_werror_flag" ||
34112          test ! -s conftest.err
34113        } && test -s conftest.$ac_objext; then
34114   ac_cv_type_ssize_t=yes
34115 else
34116   echo "$as_me: failed program was:" >&5
34117 sed 's/^/| /' conftest.$ac_ext >&5
34118
34119         ac_cv_type_ssize_t=no
34120 fi
34121
34122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34123 fi
34124 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34125 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34126 if test $ac_cv_type_ssize_t = yes; then
34127   :
34128 else
34129
34130 cat >>confdefs.h <<_ACEOF
34131 #define ssize_t int
34132 _ACEOF
34133
34134 fi
34135
34136 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34137 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34138 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34139   echo $ECHO_N "(cached) $ECHO_C" >&6
34140 else
34141   cat >conftest.$ac_ext <<_ACEOF
34142 /* confdefs.h.  */
34143 _ACEOF
34144 cat confdefs.h >>conftest.$ac_ext
34145 cat >>conftest.$ac_ext <<_ACEOF
34146 /* end confdefs.h.  */
34147 $ac_includes_default
34148 int
34149 main ()
34150 {
34151 static struct stat ac_aggr;
34152 if (ac_aggr.st_blocks)
34153 return 0;
34154   ;
34155   return 0;
34156 }
34157 _ACEOF
34158 rm -f conftest.$ac_objext
34159 if { (ac_try="$ac_compile"
34160 case "(($ac_try" in
34161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34162   *) ac_try_echo=$ac_try;;
34163 esac
34164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34165   (eval "$ac_compile") 2>conftest.er1
34166   ac_status=$?
34167   grep -v '^ *+' conftest.er1 >conftest.err
34168   rm -f conftest.er1
34169   cat conftest.err >&5
34170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34171   (exit $ac_status); } && {
34172          test -z "$ac_c_werror_flag" ||
34173          test ! -s conftest.err
34174        } && test -s conftest.$ac_objext; then
34175   ac_cv_member_struct_stat_st_blocks=yes
34176 else
34177   echo "$as_me: failed program was:" >&5
34178 sed 's/^/| /' conftest.$ac_ext >&5
34179
34180         cat >conftest.$ac_ext <<_ACEOF
34181 /* confdefs.h.  */
34182 _ACEOF
34183 cat confdefs.h >>conftest.$ac_ext
34184 cat >>conftest.$ac_ext <<_ACEOF
34185 /* end confdefs.h.  */
34186 $ac_includes_default
34187 int
34188 main ()
34189 {
34190 static struct stat ac_aggr;
34191 if (sizeof ac_aggr.st_blocks)
34192 return 0;
34193   ;
34194   return 0;
34195 }
34196 _ACEOF
34197 rm -f conftest.$ac_objext
34198 if { (ac_try="$ac_compile"
34199 case "(($ac_try" in
34200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34201   *) ac_try_echo=$ac_try;;
34202 esac
34203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34204   (eval "$ac_compile") 2>conftest.er1
34205   ac_status=$?
34206   grep -v '^ *+' conftest.er1 >conftest.err
34207   rm -f conftest.er1
34208   cat conftest.err >&5
34209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34210   (exit $ac_status); } && {
34211          test -z "$ac_c_werror_flag" ||
34212          test ! -s conftest.err
34213        } && test -s conftest.$ac_objext; then
34214   ac_cv_member_struct_stat_st_blocks=yes
34215 else
34216   echo "$as_me: failed program was:" >&5
34217 sed 's/^/| /' conftest.$ac_ext >&5
34218
34219         ac_cv_member_struct_stat_st_blocks=no
34220 fi
34221
34222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34223 fi
34224
34225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34226 fi
34227 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34228 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34229 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34230
34231 cat >>confdefs.h <<_ACEOF
34232 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34233 _ACEOF
34234
34235
34236 cat >>confdefs.h <<\_ACEOF
34237 #define HAVE_ST_BLOCKS 1
34238 _ACEOF
34239
34240 else
34241   case " $LIBOBJS " in
34242   *" fileblocks.$ac_objext "* ) ;;
34243   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34244  ;;
34245 esac
34246
34247 fi
34248
34249
34250 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34251 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34252 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34253   echo $ECHO_N "(cached) $ECHO_C" >&6
34254 else
34255   cat >conftest.$ac_ext <<_ACEOF
34256 /* confdefs.h.  */
34257 _ACEOF
34258 cat confdefs.h >>conftest.$ac_ext
34259 cat >>conftest.$ac_ext <<_ACEOF
34260 /* end confdefs.h.  */
34261 $ac_includes_default
34262 int
34263 main ()
34264 {
34265 static struct stat ac_aggr;
34266 if (ac_aggr.st_rdev)
34267 return 0;
34268   ;
34269   return 0;
34270 }
34271 _ACEOF
34272 rm -f conftest.$ac_objext
34273 if { (ac_try="$ac_compile"
34274 case "(($ac_try" in
34275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34276   *) ac_try_echo=$ac_try;;
34277 esac
34278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34279   (eval "$ac_compile") 2>conftest.er1
34280   ac_status=$?
34281   grep -v '^ *+' conftest.er1 >conftest.err
34282   rm -f conftest.er1
34283   cat conftest.err >&5
34284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34285   (exit $ac_status); } && {
34286          test -z "$ac_c_werror_flag" ||
34287          test ! -s conftest.err
34288        } && test -s conftest.$ac_objext; then
34289   ac_cv_member_struct_stat_st_rdev=yes
34290 else
34291   echo "$as_me: failed program was:" >&5
34292 sed 's/^/| /' conftest.$ac_ext >&5
34293
34294         cat >conftest.$ac_ext <<_ACEOF
34295 /* confdefs.h.  */
34296 _ACEOF
34297 cat confdefs.h >>conftest.$ac_ext
34298 cat >>conftest.$ac_ext <<_ACEOF
34299 /* end confdefs.h.  */
34300 $ac_includes_default
34301 int
34302 main ()
34303 {
34304 static struct stat ac_aggr;
34305 if (sizeof ac_aggr.st_rdev)
34306 return 0;
34307   ;
34308   return 0;
34309 }
34310 _ACEOF
34311 rm -f conftest.$ac_objext
34312 if { (ac_try="$ac_compile"
34313 case "(($ac_try" in
34314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34315   *) ac_try_echo=$ac_try;;
34316 esac
34317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34318   (eval "$ac_compile") 2>conftest.er1
34319   ac_status=$?
34320   grep -v '^ *+' conftest.er1 >conftest.err
34321   rm -f conftest.er1
34322   cat conftest.err >&5
34323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34324   (exit $ac_status); } && {
34325          test -z "$ac_c_werror_flag" ||
34326          test ! -s conftest.err
34327        } && test -s conftest.$ac_objext; then
34328   ac_cv_member_struct_stat_st_rdev=yes
34329 else
34330   echo "$as_me: failed program was:" >&5
34331 sed 's/^/| /' conftest.$ac_ext >&5
34332
34333         ac_cv_member_struct_stat_st_rdev=no
34334 fi
34335
34336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34337 fi
34338
34339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34340 fi
34341 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34342 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34343 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34344
34345 cat >>confdefs.h <<_ACEOF
34346 #define HAVE_STRUCT_STAT_ST_RDEV 1
34347 _ACEOF
34348
34349
34350 cat >>confdefs.h <<\_ACEOF
34351 #define HAVE_ST_RDEV 1
34352 _ACEOF
34353
34354 fi
34355
34356
34357 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34358 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34359 if test "${ac_cv_struct_tm+set}" = set; then
34360   echo $ECHO_N "(cached) $ECHO_C" >&6
34361 else
34362   cat >conftest.$ac_ext <<_ACEOF
34363 /* confdefs.h.  */
34364 _ACEOF
34365 cat confdefs.h >>conftest.$ac_ext
34366 cat >>conftest.$ac_ext <<_ACEOF
34367 /* end confdefs.h.  */
34368 #include <sys/types.h>
34369 #include <time.h>
34370
34371 int
34372 main ()
34373 {
34374 struct tm tm;
34375                                      int *p = &tm.tm_sec;
34376                                      return !p;
34377   ;
34378   return 0;
34379 }
34380 _ACEOF
34381 rm -f conftest.$ac_objext
34382 if { (ac_try="$ac_compile"
34383 case "(($ac_try" in
34384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34385   *) ac_try_echo=$ac_try;;
34386 esac
34387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34388   (eval "$ac_compile") 2>conftest.er1
34389   ac_status=$?
34390   grep -v '^ *+' conftest.er1 >conftest.err
34391   rm -f conftest.er1
34392   cat conftest.err >&5
34393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394   (exit $ac_status); } && {
34395          test -z "$ac_c_werror_flag" ||
34396          test ! -s conftest.err
34397        } && test -s conftest.$ac_objext; then
34398   ac_cv_struct_tm=time.h
34399 else
34400   echo "$as_me: failed program was:" >&5
34401 sed 's/^/| /' conftest.$ac_ext >&5
34402
34403         ac_cv_struct_tm=sys/time.h
34404 fi
34405
34406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34407 fi
34408 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34409 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34410 if test $ac_cv_struct_tm = sys/time.h; then
34411
34412 cat >>confdefs.h <<\_ACEOF
34413 #define TM_IN_SYS_TIME 1
34414 _ACEOF
34415
34416 fi
34417
34418 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34419 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34420 if test "${ac_cv_c_const+set}" = set; then
34421   echo $ECHO_N "(cached) $ECHO_C" >&6
34422 else
34423   cat >conftest.$ac_ext <<_ACEOF
34424 /* confdefs.h.  */
34425 _ACEOF
34426 cat confdefs.h >>conftest.$ac_ext
34427 cat >>conftest.$ac_ext <<_ACEOF
34428 /* end confdefs.h.  */
34429
34430 int
34431 main ()
34432 {
34433 /* FIXME: Include the comments suggested by Paul. */
34434 #ifndef __cplusplus
34435   /* Ultrix mips cc rejects this.  */
34436   typedef int charset[2];
34437   const charset cs;
34438   /* SunOS 4.1.1 cc rejects this.  */
34439   char const *const *pcpcc;
34440   char **ppc;
34441   /* NEC SVR4.0.2 mips cc rejects this.  */
34442   struct point {int x, y;};
34443   static struct point const zero = {0,0};
34444   /* AIX XL C 1.02.0.0 rejects this.
34445      It does not let you subtract one const X* pointer from another in
34446      an arm of an if-expression whose if-part is not a constant
34447      expression */
34448   const char *g = "string";
34449   pcpcc = &g + (g ? g-g : 0);
34450   /* HPUX 7.0 cc rejects these. */
34451   ++pcpcc;
34452   ppc = (char**) pcpcc;
34453   pcpcc = (char const *const *) ppc;
34454   { /* SCO 3.2v4 cc rejects this.  */
34455     char *t;
34456     char const *s = 0 ? (char *) 0 : (char const *) 0;
34457
34458     *t++ = 0;
34459     if (s) return 0;
34460   }
34461   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34462     int x[] = {25, 17};
34463     const int *foo = &x[0];
34464     ++foo;
34465   }
34466   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34467     typedef const int *iptr;
34468     iptr p = 0;
34469     ++p;
34470   }
34471   { /* AIX XL C 1.02.0.0 rejects this saying
34472        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34473     struct s { int j; const int *ap[3]; };
34474     struct s *b; b->j = 5;
34475   }
34476   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34477     const int foo = 10;
34478     if (!foo) return 0;
34479   }
34480   return !cs[0] && !zero.x;
34481 #endif
34482
34483   ;
34484   return 0;
34485 }
34486 _ACEOF
34487 rm -f conftest.$ac_objext
34488 if { (ac_try="$ac_compile"
34489 case "(($ac_try" in
34490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34491   *) ac_try_echo=$ac_try;;
34492 esac
34493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34494   (eval "$ac_compile") 2>conftest.er1
34495   ac_status=$?
34496   grep -v '^ *+' conftest.er1 >conftest.err
34497   rm -f conftest.er1
34498   cat conftest.err >&5
34499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500   (exit $ac_status); } && {
34501          test -z "$ac_c_werror_flag" ||
34502          test ! -s conftest.err
34503        } && test -s conftest.$ac_objext; then
34504   ac_cv_c_const=yes
34505 else
34506   echo "$as_me: failed program was:" >&5
34507 sed 's/^/| /' conftest.$ac_ext >&5
34508
34509         ac_cv_c_const=no
34510 fi
34511
34512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34513 fi
34514 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34515 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34516 if test $ac_cv_c_const = no; then
34517
34518 cat >>confdefs.h <<\_ACEOF
34519 #define const
34520 _ACEOF
34521
34522 fi
34523
34524
34525 { echo "$as_me:$LINENO: checking for char" >&5
34526 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34527 if test "${ac_cv_type_char+set}" = set; then
34528   echo $ECHO_N "(cached) $ECHO_C" >&6
34529 else
34530   cat >conftest.$ac_ext <<_ACEOF
34531 /* confdefs.h.  */
34532 _ACEOF
34533 cat confdefs.h >>conftest.$ac_ext
34534 cat >>conftest.$ac_ext <<_ACEOF
34535 /* end confdefs.h.  */
34536 $ac_includes_default
34537 typedef char ac__type_new_;
34538 int
34539 main ()
34540 {
34541 if ((ac__type_new_ *) 0)
34542   return 0;
34543 if (sizeof (ac__type_new_))
34544   return 0;
34545   ;
34546   return 0;
34547 }
34548 _ACEOF
34549 rm -f conftest.$ac_objext
34550 if { (ac_try="$ac_compile"
34551 case "(($ac_try" in
34552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34553   *) ac_try_echo=$ac_try;;
34554 esac
34555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34556   (eval "$ac_compile") 2>conftest.er1
34557   ac_status=$?
34558   grep -v '^ *+' conftest.er1 >conftest.err
34559   rm -f conftest.er1
34560   cat conftest.err >&5
34561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562   (exit $ac_status); } && {
34563          test -z "$ac_c_werror_flag" ||
34564          test ! -s conftest.err
34565        } && test -s conftest.$ac_objext; then
34566   ac_cv_type_char=yes
34567 else
34568   echo "$as_me: failed program was:" >&5
34569 sed 's/^/| /' conftest.$ac_ext >&5
34570
34571         ac_cv_type_char=no
34572 fi
34573
34574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34575 fi
34576 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34577 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34578
34579 # The cast to long int works around a bug in the HP C Compiler
34580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34582 # This bug is HP SR number 8606223364.
34583 { echo "$as_me:$LINENO: checking size of char" >&5
34584 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34585 if test "${ac_cv_sizeof_char+set}" = set; then
34586   echo $ECHO_N "(cached) $ECHO_C" >&6
34587 else
34588   if test "$cross_compiling" = yes; then
34589   # Depending upon the size, compute the lo and hi bounds.
34590 cat >conftest.$ac_ext <<_ACEOF
34591 /* confdefs.h.  */
34592 _ACEOF
34593 cat confdefs.h >>conftest.$ac_ext
34594 cat >>conftest.$ac_ext <<_ACEOF
34595 /* end confdefs.h.  */
34596 $ac_includes_default
34597    typedef char ac__type_sizeof_;
34598 int
34599 main ()
34600 {
34601 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34602 test_array [0] = 0
34603
34604   ;
34605   return 0;
34606 }
34607 _ACEOF
34608 rm -f conftest.$ac_objext
34609 if { (ac_try="$ac_compile"
34610 case "(($ac_try" in
34611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34612   *) ac_try_echo=$ac_try;;
34613 esac
34614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34615   (eval "$ac_compile") 2>conftest.er1
34616   ac_status=$?
34617   grep -v '^ *+' conftest.er1 >conftest.err
34618   rm -f conftest.er1
34619   cat conftest.err >&5
34620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621   (exit $ac_status); } && {
34622          test -z "$ac_c_werror_flag" ||
34623          test ! -s conftest.err
34624        } && test -s conftest.$ac_objext; then
34625   ac_lo=0 ac_mid=0
34626   while :; do
34627     cat >conftest.$ac_ext <<_ACEOF
34628 /* confdefs.h.  */
34629 _ACEOF
34630 cat confdefs.h >>conftest.$ac_ext
34631 cat >>conftest.$ac_ext <<_ACEOF
34632 /* end confdefs.h.  */
34633 $ac_includes_default
34634    typedef char ac__type_sizeof_;
34635 int
34636 main ()
34637 {
34638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34639 test_array [0] = 0
34640
34641   ;
34642   return 0;
34643 }
34644 _ACEOF
34645 rm -f conftest.$ac_objext
34646 if { (ac_try="$ac_compile"
34647 case "(($ac_try" in
34648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34649   *) ac_try_echo=$ac_try;;
34650 esac
34651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34652   (eval "$ac_compile") 2>conftest.er1
34653   ac_status=$?
34654   grep -v '^ *+' conftest.er1 >conftest.err
34655   rm -f conftest.er1
34656   cat conftest.err >&5
34657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658   (exit $ac_status); } && {
34659          test -z "$ac_c_werror_flag" ||
34660          test ! -s conftest.err
34661        } && test -s conftest.$ac_objext; then
34662   ac_hi=$ac_mid; break
34663 else
34664   echo "$as_me: failed program was:" >&5
34665 sed 's/^/| /' conftest.$ac_ext >&5
34666
34667         ac_lo=`expr $ac_mid + 1`
34668                         if test $ac_lo -le $ac_mid; then
34669                           ac_lo= ac_hi=
34670                           break
34671                         fi
34672                         ac_mid=`expr 2 '*' $ac_mid + 1`
34673 fi
34674
34675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34676   done
34677 else
34678   echo "$as_me: failed program was:" >&5
34679 sed 's/^/| /' conftest.$ac_ext >&5
34680
34681         cat >conftest.$ac_ext <<_ACEOF
34682 /* confdefs.h.  */
34683 _ACEOF
34684 cat confdefs.h >>conftest.$ac_ext
34685 cat >>conftest.$ac_ext <<_ACEOF
34686 /* end confdefs.h.  */
34687 $ac_includes_default
34688    typedef char ac__type_sizeof_;
34689 int
34690 main ()
34691 {
34692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34693 test_array [0] = 0
34694
34695   ;
34696   return 0;
34697 }
34698 _ACEOF
34699 rm -f conftest.$ac_objext
34700 if { (ac_try="$ac_compile"
34701 case "(($ac_try" in
34702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34703   *) ac_try_echo=$ac_try;;
34704 esac
34705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34706   (eval "$ac_compile") 2>conftest.er1
34707   ac_status=$?
34708   grep -v '^ *+' conftest.er1 >conftest.err
34709   rm -f conftest.er1
34710   cat conftest.err >&5
34711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712   (exit $ac_status); } && {
34713          test -z "$ac_c_werror_flag" ||
34714          test ! -s conftest.err
34715        } && test -s conftest.$ac_objext; then
34716   ac_hi=-1 ac_mid=-1
34717   while :; do
34718     cat >conftest.$ac_ext <<_ACEOF
34719 /* confdefs.h.  */
34720 _ACEOF
34721 cat confdefs.h >>conftest.$ac_ext
34722 cat >>conftest.$ac_ext <<_ACEOF
34723 /* end confdefs.h.  */
34724 $ac_includes_default
34725    typedef char ac__type_sizeof_;
34726 int
34727 main ()
34728 {
34729 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34730 test_array [0] = 0
34731
34732   ;
34733   return 0;
34734 }
34735 _ACEOF
34736 rm -f conftest.$ac_objext
34737 if { (ac_try="$ac_compile"
34738 case "(($ac_try" in
34739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34740   *) ac_try_echo=$ac_try;;
34741 esac
34742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34743   (eval "$ac_compile") 2>conftest.er1
34744   ac_status=$?
34745   grep -v '^ *+' conftest.er1 >conftest.err
34746   rm -f conftest.er1
34747   cat conftest.err >&5
34748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34749   (exit $ac_status); } && {
34750          test -z "$ac_c_werror_flag" ||
34751          test ! -s conftest.err
34752        } && test -s conftest.$ac_objext; then
34753   ac_lo=$ac_mid; break
34754 else
34755   echo "$as_me: failed program was:" >&5
34756 sed 's/^/| /' conftest.$ac_ext >&5
34757
34758         ac_hi=`expr '(' $ac_mid ')' - 1`
34759                         if test $ac_mid -le $ac_hi; then
34760                           ac_lo= ac_hi=
34761                           break
34762                         fi
34763                         ac_mid=`expr 2 '*' $ac_mid`
34764 fi
34765
34766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34767   done
34768 else
34769   echo "$as_me: failed program was:" >&5
34770 sed 's/^/| /' conftest.$ac_ext >&5
34771
34772         ac_lo= ac_hi=
34773 fi
34774
34775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34776 fi
34777
34778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34779 # Binary search between lo and hi bounds.
34780 while test "x$ac_lo" != "x$ac_hi"; do
34781   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34782   cat >conftest.$ac_ext <<_ACEOF
34783 /* confdefs.h.  */
34784 _ACEOF
34785 cat confdefs.h >>conftest.$ac_ext
34786 cat >>conftest.$ac_ext <<_ACEOF
34787 /* end confdefs.h.  */
34788 $ac_includes_default
34789    typedef char ac__type_sizeof_;
34790 int
34791 main ()
34792 {
34793 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34794 test_array [0] = 0
34795
34796   ;
34797   return 0;
34798 }
34799 _ACEOF
34800 rm -f conftest.$ac_objext
34801 if { (ac_try="$ac_compile"
34802 case "(($ac_try" in
34803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34804   *) ac_try_echo=$ac_try;;
34805 esac
34806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34807   (eval "$ac_compile") 2>conftest.er1
34808   ac_status=$?
34809   grep -v '^ *+' conftest.er1 >conftest.err
34810   rm -f conftest.er1
34811   cat conftest.err >&5
34812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34813   (exit $ac_status); } && {
34814          test -z "$ac_c_werror_flag" ||
34815          test ! -s conftest.err
34816        } && test -s conftest.$ac_objext; then
34817   ac_hi=$ac_mid
34818 else
34819   echo "$as_me: failed program was:" >&5
34820 sed 's/^/| /' conftest.$ac_ext >&5
34821
34822         ac_lo=`expr '(' $ac_mid ')' + 1`
34823 fi
34824
34825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34826 done
34827 case $ac_lo in
34828 ?*) ac_cv_sizeof_char=$ac_lo;;
34829 '') if test "$ac_cv_type_char" = yes; then
34830      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34831 See \`config.log' for more details." >&5
34832 echo "$as_me: error: cannot compute sizeof (char)
34833 See \`config.log' for more details." >&2;}
34834    { (exit 77); exit 77; }; }
34835    else
34836      ac_cv_sizeof_char=0
34837    fi ;;
34838 esac
34839 else
34840   cat >conftest.$ac_ext <<_ACEOF
34841 /* confdefs.h.  */
34842 _ACEOF
34843 cat confdefs.h >>conftest.$ac_ext
34844 cat >>conftest.$ac_ext <<_ACEOF
34845 /* end confdefs.h.  */
34846 $ac_includes_default
34847    typedef char ac__type_sizeof_;
34848 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34849 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34850 #include <stdio.h>
34851 #include <stdlib.h>
34852 int
34853 main ()
34854 {
34855
34856   FILE *f = fopen ("conftest.val", "w");
34857   if (! f)
34858     return 1;
34859   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34860     {
34861       long int i = longval ();
34862       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34863         return 1;
34864       fprintf (f, "%ld\n", i);
34865     }
34866   else
34867     {
34868       unsigned long int i = ulongval ();
34869       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34870         return 1;
34871       fprintf (f, "%lu\n", i);
34872     }
34873   return ferror (f) || fclose (f) != 0;
34874
34875   ;
34876   return 0;
34877 }
34878 _ACEOF
34879 rm -f conftest$ac_exeext
34880 if { (ac_try="$ac_link"
34881 case "(($ac_try" in
34882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34883   *) ac_try_echo=$ac_try;;
34884 esac
34885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34886   (eval "$ac_link") 2>&5
34887   ac_status=$?
34888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34890   { (case "(($ac_try" in
34891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34892   *) ac_try_echo=$ac_try;;
34893 esac
34894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34895   (eval "$ac_try") 2>&5
34896   ac_status=$?
34897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34898   (exit $ac_status); }; }; then
34899   ac_cv_sizeof_char=`cat conftest.val`
34900 else
34901   echo "$as_me: program exited with status $ac_status" >&5
34902 echo "$as_me: failed program was:" >&5
34903 sed 's/^/| /' conftest.$ac_ext >&5
34904
34905 ( exit $ac_status )
34906 if test "$ac_cv_type_char" = yes; then
34907      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34908 See \`config.log' for more details." >&5
34909 echo "$as_me: error: cannot compute sizeof (char)
34910 See \`config.log' for more details." >&2;}
34911    { (exit 77); exit 77; }; }
34912    else
34913      ac_cv_sizeof_char=0
34914    fi
34915 fi
34916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34917 fi
34918 rm -f conftest.val
34919 fi
34920 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34921 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34922
34923
34924
34925 cat >>confdefs.h <<_ACEOF
34926 #define SIZEOF_CHAR $ac_cv_sizeof_char
34927 _ACEOF
34928
34929
34930 { echo "$as_me:$LINENO: checking for short int" >&5
34931 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34932 if test "${ac_cv_type_short_int+set}" = set; then
34933   echo $ECHO_N "(cached) $ECHO_C" >&6
34934 else
34935   cat >conftest.$ac_ext <<_ACEOF
34936 /* confdefs.h.  */
34937 _ACEOF
34938 cat confdefs.h >>conftest.$ac_ext
34939 cat >>conftest.$ac_ext <<_ACEOF
34940 /* end confdefs.h.  */
34941 $ac_includes_default
34942 typedef short int ac__type_new_;
34943 int
34944 main ()
34945 {
34946 if ((ac__type_new_ *) 0)
34947   return 0;
34948 if (sizeof (ac__type_new_))
34949   return 0;
34950   ;
34951   return 0;
34952 }
34953 _ACEOF
34954 rm -f conftest.$ac_objext
34955 if { (ac_try="$ac_compile"
34956 case "(($ac_try" in
34957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34958   *) ac_try_echo=$ac_try;;
34959 esac
34960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34961   (eval "$ac_compile") 2>conftest.er1
34962   ac_status=$?
34963   grep -v '^ *+' conftest.er1 >conftest.err
34964   rm -f conftest.er1
34965   cat conftest.err >&5
34966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34967   (exit $ac_status); } && {
34968          test -z "$ac_c_werror_flag" ||
34969          test ! -s conftest.err
34970        } && test -s conftest.$ac_objext; then
34971   ac_cv_type_short_int=yes
34972 else
34973   echo "$as_me: failed program was:" >&5
34974 sed 's/^/| /' conftest.$ac_ext >&5
34975
34976         ac_cv_type_short_int=no
34977 fi
34978
34979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34980 fi
34981 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34982 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34983
34984 # The cast to long int works around a bug in the HP C Compiler
34985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34987 # This bug is HP SR number 8606223364.
34988 { echo "$as_me:$LINENO: checking size of short int" >&5
34989 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34990 if test "${ac_cv_sizeof_short_int+set}" = set; then
34991   echo $ECHO_N "(cached) $ECHO_C" >&6
34992 else
34993   if test "$cross_compiling" = yes; then
34994   # Depending upon the size, compute the lo and hi bounds.
34995 cat >conftest.$ac_ext <<_ACEOF
34996 /* confdefs.h.  */
34997 _ACEOF
34998 cat confdefs.h >>conftest.$ac_ext
34999 cat >>conftest.$ac_ext <<_ACEOF
35000 /* end confdefs.h.  */
35001 $ac_includes_default
35002    typedef short int ac__type_sizeof_;
35003 int
35004 main ()
35005 {
35006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35007 test_array [0] = 0
35008
35009   ;
35010   return 0;
35011 }
35012 _ACEOF
35013 rm -f conftest.$ac_objext
35014 if { (ac_try="$ac_compile"
35015 case "(($ac_try" in
35016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35017   *) ac_try_echo=$ac_try;;
35018 esac
35019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35020   (eval "$ac_compile") 2>conftest.er1
35021   ac_status=$?
35022   grep -v '^ *+' conftest.er1 >conftest.err
35023   rm -f conftest.er1
35024   cat conftest.err >&5
35025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026   (exit $ac_status); } && {
35027          test -z "$ac_c_werror_flag" ||
35028          test ! -s conftest.err
35029        } && test -s conftest.$ac_objext; then
35030   ac_lo=0 ac_mid=0
35031   while :; do
35032     cat >conftest.$ac_ext <<_ACEOF
35033 /* confdefs.h.  */
35034 _ACEOF
35035 cat confdefs.h >>conftest.$ac_ext
35036 cat >>conftest.$ac_ext <<_ACEOF
35037 /* end confdefs.h.  */
35038 $ac_includes_default
35039    typedef short int ac__type_sizeof_;
35040 int
35041 main ()
35042 {
35043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35044 test_array [0] = 0
35045
35046   ;
35047   return 0;
35048 }
35049 _ACEOF
35050 rm -f conftest.$ac_objext
35051 if { (ac_try="$ac_compile"
35052 case "(($ac_try" in
35053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35054   *) ac_try_echo=$ac_try;;
35055 esac
35056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35057   (eval "$ac_compile") 2>conftest.er1
35058   ac_status=$?
35059   grep -v '^ *+' conftest.er1 >conftest.err
35060   rm -f conftest.er1
35061   cat conftest.err >&5
35062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35063   (exit $ac_status); } && {
35064          test -z "$ac_c_werror_flag" ||
35065          test ! -s conftest.err
35066        } && test -s conftest.$ac_objext; then
35067   ac_hi=$ac_mid; break
35068 else
35069   echo "$as_me: failed program was:" >&5
35070 sed 's/^/| /' conftest.$ac_ext >&5
35071
35072         ac_lo=`expr $ac_mid + 1`
35073                         if test $ac_lo -le $ac_mid; then
35074                           ac_lo= ac_hi=
35075                           break
35076                         fi
35077                         ac_mid=`expr 2 '*' $ac_mid + 1`
35078 fi
35079
35080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35081   done
35082 else
35083   echo "$as_me: failed program was:" >&5
35084 sed 's/^/| /' conftest.$ac_ext >&5
35085
35086         cat >conftest.$ac_ext <<_ACEOF
35087 /* confdefs.h.  */
35088 _ACEOF
35089 cat confdefs.h >>conftest.$ac_ext
35090 cat >>conftest.$ac_ext <<_ACEOF
35091 /* end confdefs.h.  */
35092 $ac_includes_default
35093    typedef short int ac__type_sizeof_;
35094 int
35095 main ()
35096 {
35097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35098 test_array [0] = 0
35099
35100   ;
35101   return 0;
35102 }
35103 _ACEOF
35104 rm -f conftest.$ac_objext
35105 if { (ac_try="$ac_compile"
35106 case "(($ac_try" in
35107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35108   *) ac_try_echo=$ac_try;;
35109 esac
35110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35111   (eval "$ac_compile") 2>conftest.er1
35112   ac_status=$?
35113   grep -v '^ *+' conftest.er1 >conftest.err
35114   rm -f conftest.er1
35115   cat conftest.err >&5
35116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117   (exit $ac_status); } && {
35118          test -z "$ac_c_werror_flag" ||
35119          test ! -s conftest.err
35120        } && test -s conftest.$ac_objext; then
35121   ac_hi=-1 ac_mid=-1
35122   while :; do
35123     cat >conftest.$ac_ext <<_ACEOF
35124 /* confdefs.h.  */
35125 _ACEOF
35126 cat confdefs.h >>conftest.$ac_ext
35127 cat >>conftest.$ac_ext <<_ACEOF
35128 /* end confdefs.h.  */
35129 $ac_includes_default
35130    typedef short int ac__type_sizeof_;
35131 int
35132 main ()
35133 {
35134 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35135 test_array [0] = 0
35136
35137   ;
35138   return 0;
35139 }
35140 _ACEOF
35141 rm -f conftest.$ac_objext
35142 if { (ac_try="$ac_compile"
35143 case "(($ac_try" in
35144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35145   *) ac_try_echo=$ac_try;;
35146 esac
35147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35148   (eval "$ac_compile") 2>conftest.er1
35149   ac_status=$?
35150   grep -v '^ *+' conftest.er1 >conftest.err
35151   rm -f conftest.er1
35152   cat conftest.err >&5
35153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35154   (exit $ac_status); } && {
35155          test -z "$ac_c_werror_flag" ||
35156          test ! -s conftest.err
35157        } && test -s conftest.$ac_objext; then
35158   ac_lo=$ac_mid; break
35159 else
35160   echo "$as_me: failed program was:" >&5
35161 sed 's/^/| /' conftest.$ac_ext >&5
35162
35163         ac_hi=`expr '(' $ac_mid ')' - 1`
35164                         if test $ac_mid -le $ac_hi; then
35165                           ac_lo= ac_hi=
35166                           break
35167                         fi
35168                         ac_mid=`expr 2 '*' $ac_mid`
35169 fi
35170
35171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35172   done
35173 else
35174   echo "$as_me: failed program was:" >&5
35175 sed 's/^/| /' conftest.$ac_ext >&5
35176
35177         ac_lo= ac_hi=
35178 fi
35179
35180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35181 fi
35182
35183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35184 # Binary search between lo and hi bounds.
35185 while test "x$ac_lo" != "x$ac_hi"; do
35186   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35187   cat >conftest.$ac_ext <<_ACEOF
35188 /* confdefs.h.  */
35189 _ACEOF
35190 cat confdefs.h >>conftest.$ac_ext
35191 cat >>conftest.$ac_ext <<_ACEOF
35192 /* end confdefs.h.  */
35193 $ac_includes_default
35194    typedef short int ac__type_sizeof_;
35195 int
35196 main ()
35197 {
35198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35199 test_array [0] = 0
35200
35201   ;
35202   return 0;
35203 }
35204 _ACEOF
35205 rm -f conftest.$ac_objext
35206 if { (ac_try="$ac_compile"
35207 case "(($ac_try" in
35208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35209   *) ac_try_echo=$ac_try;;
35210 esac
35211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35212   (eval "$ac_compile") 2>conftest.er1
35213   ac_status=$?
35214   grep -v '^ *+' conftest.er1 >conftest.err
35215   rm -f conftest.er1
35216   cat conftest.err >&5
35217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35218   (exit $ac_status); } && {
35219          test -z "$ac_c_werror_flag" ||
35220          test ! -s conftest.err
35221        } && test -s conftest.$ac_objext; then
35222   ac_hi=$ac_mid
35223 else
35224   echo "$as_me: failed program was:" >&5
35225 sed 's/^/| /' conftest.$ac_ext >&5
35226
35227         ac_lo=`expr '(' $ac_mid ')' + 1`
35228 fi
35229
35230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35231 done
35232 case $ac_lo in
35233 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35234 '') if test "$ac_cv_type_short_int" = yes; then
35235      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35236 See \`config.log' for more details." >&5
35237 echo "$as_me: error: cannot compute sizeof (short int)
35238 See \`config.log' for more details." >&2;}
35239    { (exit 77); exit 77; }; }
35240    else
35241      ac_cv_sizeof_short_int=0
35242    fi ;;
35243 esac
35244 else
35245   cat >conftest.$ac_ext <<_ACEOF
35246 /* confdefs.h.  */
35247 _ACEOF
35248 cat confdefs.h >>conftest.$ac_ext
35249 cat >>conftest.$ac_ext <<_ACEOF
35250 /* end confdefs.h.  */
35251 $ac_includes_default
35252    typedef short int ac__type_sizeof_;
35253 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35254 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35255 #include <stdio.h>
35256 #include <stdlib.h>
35257 int
35258 main ()
35259 {
35260
35261   FILE *f = fopen ("conftest.val", "w");
35262   if (! f)
35263     return 1;
35264   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35265     {
35266       long int i = longval ();
35267       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35268         return 1;
35269       fprintf (f, "%ld\n", i);
35270     }
35271   else
35272     {
35273       unsigned long int i = ulongval ();
35274       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35275         return 1;
35276       fprintf (f, "%lu\n", i);
35277     }
35278   return ferror (f) || fclose (f) != 0;
35279
35280   ;
35281   return 0;
35282 }
35283 _ACEOF
35284 rm -f conftest$ac_exeext
35285 if { (ac_try="$ac_link"
35286 case "(($ac_try" in
35287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35288   *) ac_try_echo=$ac_try;;
35289 esac
35290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35291   (eval "$ac_link") 2>&5
35292   ac_status=$?
35293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35295   { (case "(($ac_try" in
35296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35297   *) ac_try_echo=$ac_try;;
35298 esac
35299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35300   (eval "$ac_try") 2>&5
35301   ac_status=$?
35302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35303   (exit $ac_status); }; }; then
35304   ac_cv_sizeof_short_int=`cat conftest.val`
35305 else
35306   echo "$as_me: program exited with status $ac_status" >&5
35307 echo "$as_me: failed program was:" >&5
35308 sed 's/^/| /' conftest.$ac_ext >&5
35309
35310 ( exit $ac_status )
35311 if test "$ac_cv_type_short_int" = yes; then
35312      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35313 See \`config.log' for more details." >&5
35314 echo "$as_me: error: cannot compute sizeof (short int)
35315 See \`config.log' for more details." >&2;}
35316    { (exit 77); exit 77; }; }
35317    else
35318      ac_cv_sizeof_short_int=0
35319    fi
35320 fi
35321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35322 fi
35323 rm -f conftest.val
35324 fi
35325 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35326 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35327
35328
35329
35330 cat >>confdefs.h <<_ACEOF
35331 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35332 _ACEOF
35333
35334
35335 { echo "$as_me:$LINENO: checking for int" >&5
35336 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35337 if test "${ac_cv_type_int+set}" = set; then
35338   echo $ECHO_N "(cached) $ECHO_C" >&6
35339 else
35340   cat >conftest.$ac_ext <<_ACEOF
35341 /* confdefs.h.  */
35342 _ACEOF
35343 cat confdefs.h >>conftest.$ac_ext
35344 cat >>conftest.$ac_ext <<_ACEOF
35345 /* end confdefs.h.  */
35346 $ac_includes_default
35347 typedef int ac__type_new_;
35348 int
35349 main ()
35350 {
35351 if ((ac__type_new_ *) 0)
35352   return 0;
35353 if (sizeof (ac__type_new_))
35354   return 0;
35355   ;
35356   return 0;
35357 }
35358 _ACEOF
35359 rm -f conftest.$ac_objext
35360 if { (ac_try="$ac_compile"
35361 case "(($ac_try" in
35362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35363   *) ac_try_echo=$ac_try;;
35364 esac
35365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35366   (eval "$ac_compile") 2>conftest.er1
35367   ac_status=$?
35368   grep -v '^ *+' conftest.er1 >conftest.err
35369   rm -f conftest.er1
35370   cat conftest.err >&5
35371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372   (exit $ac_status); } && {
35373          test -z "$ac_c_werror_flag" ||
35374          test ! -s conftest.err
35375        } && test -s conftest.$ac_objext; then
35376   ac_cv_type_int=yes
35377 else
35378   echo "$as_me: failed program was:" >&5
35379 sed 's/^/| /' conftest.$ac_ext >&5
35380
35381         ac_cv_type_int=no
35382 fi
35383
35384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35385 fi
35386 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35387 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35388
35389 # The cast to long int works around a bug in the HP C Compiler
35390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35392 # This bug is HP SR number 8606223364.
35393 { echo "$as_me:$LINENO: checking size of int" >&5
35394 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35395 if test "${ac_cv_sizeof_int+set}" = set; then
35396   echo $ECHO_N "(cached) $ECHO_C" >&6
35397 else
35398   if test "$cross_compiling" = yes; then
35399   # Depending upon the size, compute the lo and hi bounds.
35400 cat >conftest.$ac_ext <<_ACEOF
35401 /* confdefs.h.  */
35402 _ACEOF
35403 cat confdefs.h >>conftest.$ac_ext
35404 cat >>conftest.$ac_ext <<_ACEOF
35405 /* end confdefs.h.  */
35406 $ac_includes_default
35407    typedef int ac__type_sizeof_;
35408 int
35409 main ()
35410 {
35411 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35412 test_array [0] = 0
35413
35414   ;
35415   return 0;
35416 }
35417 _ACEOF
35418 rm -f conftest.$ac_objext
35419 if { (ac_try="$ac_compile"
35420 case "(($ac_try" in
35421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35422   *) ac_try_echo=$ac_try;;
35423 esac
35424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35425   (eval "$ac_compile") 2>conftest.er1
35426   ac_status=$?
35427   grep -v '^ *+' conftest.er1 >conftest.err
35428   rm -f conftest.er1
35429   cat conftest.err >&5
35430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431   (exit $ac_status); } && {
35432          test -z "$ac_c_werror_flag" ||
35433          test ! -s conftest.err
35434        } && test -s conftest.$ac_objext; then
35435   ac_lo=0 ac_mid=0
35436   while :; do
35437     cat >conftest.$ac_ext <<_ACEOF
35438 /* confdefs.h.  */
35439 _ACEOF
35440 cat confdefs.h >>conftest.$ac_ext
35441 cat >>conftest.$ac_ext <<_ACEOF
35442 /* end confdefs.h.  */
35443 $ac_includes_default
35444    typedef int ac__type_sizeof_;
35445 int
35446 main ()
35447 {
35448 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35449 test_array [0] = 0
35450
35451   ;
35452   return 0;
35453 }
35454 _ACEOF
35455 rm -f conftest.$ac_objext
35456 if { (ac_try="$ac_compile"
35457 case "(($ac_try" in
35458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35459   *) ac_try_echo=$ac_try;;
35460 esac
35461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35462   (eval "$ac_compile") 2>conftest.er1
35463   ac_status=$?
35464   grep -v '^ *+' conftest.er1 >conftest.err
35465   rm -f conftest.er1
35466   cat conftest.err >&5
35467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35468   (exit $ac_status); } && {
35469          test -z "$ac_c_werror_flag" ||
35470          test ! -s conftest.err
35471        } && test -s conftest.$ac_objext; then
35472   ac_hi=$ac_mid; break
35473 else
35474   echo "$as_me: failed program was:" >&5
35475 sed 's/^/| /' conftest.$ac_ext >&5
35476
35477         ac_lo=`expr $ac_mid + 1`
35478                         if test $ac_lo -le $ac_mid; then
35479                           ac_lo= ac_hi=
35480                           break
35481                         fi
35482                         ac_mid=`expr 2 '*' $ac_mid + 1`
35483 fi
35484
35485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35486   done
35487 else
35488   echo "$as_me: failed program was:" >&5
35489 sed 's/^/| /' conftest.$ac_ext >&5
35490
35491         cat >conftest.$ac_ext <<_ACEOF
35492 /* confdefs.h.  */
35493 _ACEOF
35494 cat confdefs.h >>conftest.$ac_ext
35495 cat >>conftest.$ac_ext <<_ACEOF
35496 /* end confdefs.h.  */
35497 $ac_includes_default
35498    typedef int ac__type_sizeof_;
35499 int
35500 main ()
35501 {
35502 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35503 test_array [0] = 0
35504
35505   ;
35506   return 0;
35507 }
35508 _ACEOF
35509 rm -f conftest.$ac_objext
35510 if { (ac_try="$ac_compile"
35511 case "(($ac_try" in
35512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35513   *) ac_try_echo=$ac_try;;
35514 esac
35515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35516   (eval "$ac_compile") 2>conftest.er1
35517   ac_status=$?
35518   grep -v '^ *+' conftest.er1 >conftest.err
35519   rm -f conftest.er1
35520   cat conftest.err >&5
35521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522   (exit $ac_status); } && {
35523          test -z "$ac_c_werror_flag" ||
35524          test ! -s conftest.err
35525        } && test -s conftest.$ac_objext; then
35526   ac_hi=-1 ac_mid=-1
35527   while :; do
35528     cat >conftest.$ac_ext <<_ACEOF
35529 /* confdefs.h.  */
35530 _ACEOF
35531 cat confdefs.h >>conftest.$ac_ext
35532 cat >>conftest.$ac_ext <<_ACEOF
35533 /* end confdefs.h.  */
35534 $ac_includes_default
35535    typedef int ac__type_sizeof_;
35536 int
35537 main ()
35538 {
35539 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35540 test_array [0] = 0
35541
35542   ;
35543   return 0;
35544 }
35545 _ACEOF
35546 rm -f conftest.$ac_objext
35547 if { (ac_try="$ac_compile"
35548 case "(($ac_try" in
35549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35550   *) ac_try_echo=$ac_try;;
35551 esac
35552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35553   (eval "$ac_compile") 2>conftest.er1
35554   ac_status=$?
35555   grep -v '^ *+' conftest.er1 >conftest.err
35556   rm -f conftest.er1
35557   cat conftest.err >&5
35558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559   (exit $ac_status); } && {
35560          test -z "$ac_c_werror_flag" ||
35561          test ! -s conftest.err
35562        } && test -s conftest.$ac_objext; then
35563   ac_lo=$ac_mid; break
35564 else
35565   echo "$as_me: failed program was:" >&5
35566 sed 's/^/| /' conftest.$ac_ext >&5
35567
35568         ac_hi=`expr '(' $ac_mid ')' - 1`
35569                         if test $ac_mid -le $ac_hi; then
35570                           ac_lo= ac_hi=
35571                           break
35572                         fi
35573                         ac_mid=`expr 2 '*' $ac_mid`
35574 fi
35575
35576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35577   done
35578 else
35579   echo "$as_me: failed program was:" >&5
35580 sed 's/^/| /' conftest.$ac_ext >&5
35581
35582         ac_lo= ac_hi=
35583 fi
35584
35585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35586 fi
35587
35588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35589 # Binary search between lo and hi bounds.
35590 while test "x$ac_lo" != "x$ac_hi"; do
35591   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35592   cat >conftest.$ac_ext <<_ACEOF
35593 /* confdefs.h.  */
35594 _ACEOF
35595 cat confdefs.h >>conftest.$ac_ext
35596 cat >>conftest.$ac_ext <<_ACEOF
35597 /* end confdefs.h.  */
35598 $ac_includes_default
35599    typedef int ac__type_sizeof_;
35600 int
35601 main ()
35602 {
35603 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35604 test_array [0] = 0
35605
35606   ;
35607   return 0;
35608 }
35609 _ACEOF
35610 rm -f conftest.$ac_objext
35611 if { (ac_try="$ac_compile"
35612 case "(($ac_try" in
35613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35614   *) ac_try_echo=$ac_try;;
35615 esac
35616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35617   (eval "$ac_compile") 2>conftest.er1
35618   ac_status=$?
35619   grep -v '^ *+' conftest.er1 >conftest.err
35620   rm -f conftest.er1
35621   cat conftest.err >&5
35622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623   (exit $ac_status); } && {
35624          test -z "$ac_c_werror_flag" ||
35625          test ! -s conftest.err
35626        } && test -s conftest.$ac_objext; then
35627   ac_hi=$ac_mid
35628 else
35629   echo "$as_me: failed program was:" >&5
35630 sed 's/^/| /' conftest.$ac_ext >&5
35631
35632         ac_lo=`expr '(' $ac_mid ')' + 1`
35633 fi
35634
35635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35636 done
35637 case $ac_lo in
35638 ?*) ac_cv_sizeof_int=$ac_lo;;
35639 '') if test "$ac_cv_type_int" = yes; then
35640      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35641 See \`config.log' for more details." >&5
35642 echo "$as_me: error: cannot compute sizeof (int)
35643 See \`config.log' for more details." >&2;}
35644    { (exit 77); exit 77; }; }
35645    else
35646      ac_cv_sizeof_int=0
35647    fi ;;
35648 esac
35649 else
35650   cat >conftest.$ac_ext <<_ACEOF
35651 /* confdefs.h.  */
35652 _ACEOF
35653 cat confdefs.h >>conftest.$ac_ext
35654 cat >>conftest.$ac_ext <<_ACEOF
35655 /* end confdefs.h.  */
35656 $ac_includes_default
35657    typedef int ac__type_sizeof_;
35658 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35659 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35660 #include <stdio.h>
35661 #include <stdlib.h>
35662 int
35663 main ()
35664 {
35665
35666   FILE *f = fopen ("conftest.val", "w");
35667   if (! f)
35668     return 1;
35669   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35670     {
35671       long int i = longval ();
35672       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35673         return 1;
35674       fprintf (f, "%ld\n", i);
35675     }
35676   else
35677     {
35678       unsigned long int i = ulongval ();
35679       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35680         return 1;
35681       fprintf (f, "%lu\n", i);
35682     }
35683   return ferror (f) || fclose (f) != 0;
35684
35685   ;
35686   return 0;
35687 }
35688 _ACEOF
35689 rm -f conftest$ac_exeext
35690 if { (ac_try="$ac_link"
35691 case "(($ac_try" in
35692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35693   *) ac_try_echo=$ac_try;;
35694 esac
35695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35696   (eval "$ac_link") 2>&5
35697   ac_status=$?
35698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35700   { (case "(($ac_try" in
35701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35702   *) ac_try_echo=$ac_try;;
35703 esac
35704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35705   (eval "$ac_try") 2>&5
35706   ac_status=$?
35707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35708   (exit $ac_status); }; }; then
35709   ac_cv_sizeof_int=`cat conftest.val`
35710 else
35711   echo "$as_me: program exited with status $ac_status" >&5
35712 echo "$as_me: failed program was:" >&5
35713 sed 's/^/| /' conftest.$ac_ext >&5
35714
35715 ( exit $ac_status )
35716 if test "$ac_cv_type_int" = yes; then
35717      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35718 See \`config.log' for more details." >&5
35719 echo "$as_me: error: cannot compute sizeof (int)
35720 See \`config.log' for more details." >&2;}
35721    { (exit 77); exit 77; }; }
35722    else
35723      ac_cv_sizeof_int=0
35724    fi
35725 fi
35726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35727 fi
35728 rm -f conftest.val
35729 fi
35730 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35731 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35732
35733
35734
35735 cat >>confdefs.h <<_ACEOF
35736 #define SIZEOF_INT $ac_cv_sizeof_int
35737 _ACEOF
35738
35739
35740 { echo "$as_me:$LINENO: checking for long int" >&5
35741 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35742 if test "${ac_cv_type_long_int+set}" = set; then
35743   echo $ECHO_N "(cached) $ECHO_C" >&6
35744 else
35745   cat >conftest.$ac_ext <<_ACEOF
35746 /* confdefs.h.  */
35747 _ACEOF
35748 cat confdefs.h >>conftest.$ac_ext
35749 cat >>conftest.$ac_ext <<_ACEOF
35750 /* end confdefs.h.  */
35751 $ac_includes_default
35752 typedef long int ac__type_new_;
35753 int
35754 main ()
35755 {
35756 if ((ac__type_new_ *) 0)
35757   return 0;
35758 if (sizeof (ac__type_new_))
35759   return 0;
35760   ;
35761   return 0;
35762 }
35763 _ACEOF
35764 rm -f conftest.$ac_objext
35765 if { (ac_try="$ac_compile"
35766 case "(($ac_try" in
35767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35768   *) ac_try_echo=$ac_try;;
35769 esac
35770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35771   (eval "$ac_compile") 2>conftest.er1
35772   ac_status=$?
35773   grep -v '^ *+' conftest.er1 >conftest.err
35774   rm -f conftest.er1
35775   cat conftest.err >&5
35776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35777   (exit $ac_status); } && {
35778          test -z "$ac_c_werror_flag" ||
35779          test ! -s conftest.err
35780        } && test -s conftest.$ac_objext; then
35781   ac_cv_type_long_int=yes
35782 else
35783   echo "$as_me: failed program was:" >&5
35784 sed 's/^/| /' conftest.$ac_ext >&5
35785
35786         ac_cv_type_long_int=no
35787 fi
35788
35789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35790 fi
35791 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35792 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35793
35794 # The cast to long int works around a bug in the HP C Compiler
35795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35797 # This bug is HP SR number 8606223364.
35798 { echo "$as_me:$LINENO: checking size of long int" >&5
35799 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35800 if test "${ac_cv_sizeof_long_int+set}" = set; then
35801   echo $ECHO_N "(cached) $ECHO_C" >&6
35802 else
35803   if test "$cross_compiling" = yes; then
35804   # Depending upon the size, compute the lo and hi bounds.
35805 cat >conftest.$ac_ext <<_ACEOF
35806 /* confdefs.h.  */
35807 _ACEOF
35808 cat confdefs.h >>conftest.$ac_ext
35809 cat >>conftest.$ac_ext <<_ACEOF
35810 /* end confdefs.h.  */
35811 $ac_includes_default
35812    typedef long int ac__type_sizeof_;
35813 int
35814 main ()
35815 {
35816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35817 test_array [0] = 0
35818
35819   ;
35820   return 0;
35821 }
35822 _ACEOF
35823 rm -f conftest.$ac_objext
35824 if { (ac_try="$ac_compile"
35825 case "(($ac_try" in
35826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35827   *) ac_try_echo=$ac_try;;
35828 esac
35829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35830   (eval "$ac_compile") 2>conftest.er1
35831   ac_status=$?
35832   grep -v '^ *+' conftest.er1 >conftest.err
35833   rm -f conftest.er1
35834   cat conftest.err >&5
35835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35836   (exit $ac_status); } && {
35837          test -z "$ac_c_werror_flag" ||
35838          test ! -s conftest.err
35839        } && test -s conftest.$ac_objext; then
35840   ac_lo=0 ac_mid=0
35841   while :; do
35842     cat >conftest.$ac_ext <<_ACEOF
35843 /* confdefs.h.  */
35844 _ACEOF
35845 cat confdefs.h >>conftest.$ac_ext
35846 cat >>conftest.$ac_ext <<_ACEOF
35847 /* end confdefs.h.  */
35848 $ac_includes_default
35849    typedef long int ac__type_sizeof_;
35850 int
35851 main ()
35852 {
35853 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35854 test_array [0] = 0
35855
35856   ;
35857   return 0;
35858 }
35859 _ACEOF
35860 rm -f conftest.$ac_objext
35861 if { (ac_try="$ac_compile"
35862 case "(($ac_try" in
35863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35864   *) ac_try_echo=$ac_try;;
35865 esac
35866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35867   (eval "$ac_compile") 2>conftest.er1
35868   ac_status=$?
35869   grep -v '^ *+' conftest.er1 >conftest.err
35870   rm -f conftest.er1
35871   cat conftest.err >&5
35872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873   (exit $ac_status); } && {
35874          test -z "$ac_c_werror_flag" ||
35875          test ! -s conftest.err
35876        } && test -s conftest.$ac_objext; then
35877   ac_hi=$ac_mid; break
35878 else
35879   echo "$as_me: failed program was:" >&5
35880 sed 's/^/| /' conftest.$ac_ext >&5
35881
35882         ac_lo=`expr $ac_mid + 1`
35883                         if test $ac_lo -le $ac_mid; then
35884                           ac_lo= ac_hi=
35885                           break
35886                         fi
35887                         ac_mid=`expr 2 '*' $ac_mid + 1`
35888 fi
35889
35890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35891   done
35892 else
35893   echo "$as_me: failed program was:" >&5
35894 sed 's/^/| /' conftest.$ac_ext >&5
35895
35896         cat >conftest.$ac_ext <<_ACEOF
35897 /* confdefs.h.  */
35898 _ACEOF
35899 cat confdefs.h >>conftest.$ac_ext
35900 cat >>conftest.$ac_ext <<_ACEOF
35901 /* end confdefs.h.  */
35902 $ac_includes_default
35903    typedef long int ac__type_sizeof_;
35904 int
35905 main ()
35906 {
35907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35908 test_array [0] = 0
35909
35910   ;
35911   return 0;
35912 }
35913 _ACEOF
35914 rm -f conftest.$ac_objext
35915 if { (ac_try="$ac_compile"
35916 case "(($ac_try" in
35917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35918   *) ac_try_echo=$ac_try;;
35919 esac
35920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35921   (eval "$ac_compile") 2>conftest.er1
35922   ac_status=$?
35923   grep -v '^ *+' conftest.er1 >conftest.err
35924   rm -f conftest.er1
35925   cat conftest.err >&5
35926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35927   (exit $ac_status); } && {
35928          test -z "$ac_c_werror_flag" ||
35929          test ! -s conftest.err
35930        } && test -s conftest.$ac_objext; then
35931   ac_hi=-1 ac_mid=-1
35932   while :; do
35933     cat >conftest.$ac_ext <<_ACEOF
35934 /* confdefs.h.  */
35935 _ACEOF
35936 cat confdefs.h >>conftest.$ac_ext
35937 cat >>conftest.$ac_ext <<_ACEOF
35938 /* end confdefs.h.  */
35939 $ac_includes_default
35940    typedef long int ac__type_sizeof_;
35941 int
35942 main ()
35943 {
35944 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35945 test_array [0] = 0
35946
35947   ;
35948   return 0;
35949 }
35950 _ACEOF
35951 rm -f conftest.$ac_objext
35952 if { (ac_try="$ac_compile"
35953 case "(($ac_try" in
35954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35955   *) ac_try_echo=$ac_try;;
35956 esac
35957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35958   (eval "$ac_compile") 2>conftest.er1
35959   ac_status=$?
35960   grep -v '^ *+' conftest.er1 >conftest.err
35961   rm -f conftest.er1
35962   cat conftest.err >&5
35963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964   (exit $ac_status); } && {
35965          test -z "$ac_c_werror_flag" ||
35966          test ! -s conftest.err
35967        } && test -s conftest.$ac_objext; then
35968   ac_lo=$ac_mid; break
35969 else
35970   echo "$as_me: failed program was:" >&5
35971 sed 's/^/| /' conftest.$ac_ext >&5
35972
35973         ac_hi=`expr '(' $ac_mid ')' - 1`
35974                         if test $ac_mid -le $ac_hi; then
35975                           ac_lo= ac_hi=
35976                           break
35977                         fi
35978                         ac_mid=`expr 2 '*' $ac_mid`
35979 fi
35980
35981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35982   done
35983 else
35984   echo "$as_me: failed program was:" >&5
35985 sed 's/^/| /' conftest.$ac_ext >&5
35986
35987         ac_lo= ac_hi=
35988 fi
35989
35990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35991 fi
35992
35993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35994 # Binary search between lo and hi bounds.
35995 while test "x$ac_lo" != "x$ac_hi"; do
35996   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35997   cat >conftest.$ac_ext <<_ACEOF
35998 /* confdefs.h.  */
35999 _ACEOF
36000 cat confdefs.h >>conftest.$ac_ext
36001 cat >>conftest.$ac_ext <<_ACEOF
36002 /* end confdefs.h.  */
36003 $ac_includes_default
36004    typedef long int ac__type_sizeof_;
36005 int
36006 main ()
36007 {
36008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36009 test_array [0] = 0
36010
36011   ;
36012   return 0;
36013 }
36014 _ACEOF
36015 rm -f conftest.$ac_objext
36016 if { (ac_try="$ac_compile"
36017 case "(($ac_try" in
36018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36019   *) ac_try_echo=$ac_try;;
36020 esac
36021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36022   (eval "$ac_compile") 2>conftest.er1
36023   ac_status=$?
36024   grep -v '^ *+' conftest.er1 >conftest.err
36025   rm -f conftest.er1
36026   cat conftest.err >&5
36027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36028   (exit $ac_status); } && {
36029          test -z "$ac_c_werror_flag" ||
36030          test ! -s conftest.err
36031        } && test -s conftest.$ac_objext; then
36032   ac_hi=$ac_mid
36033 else
36034   echo "$as_me: failed program was:" >&5
36035 sed 's/^/| /' conftest.$ac_ext >&5
36036
36037         ac_lo=`expr '(' $ac_mid ')' + 1`
36038 fi
36039
36040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36041 done
36042 case $ac_lo in
36043 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36044 '') if test "$ac_cv_type_long_int" = yes; then
36045      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36046 See \`config.log' for more details." >&5
36047 echo "$as_me: error: cannot compute sizeof (long int)
36048 See \`config.log' for more details." >&2;}
36049    { (exit 77); exit 77; }; }
36050    else
36051      ac_cv_sizeof_long_int=0
36052    fi ;;
36053 esac
36054 else
36055   cat >conftest.$ac_ext <<_ACEOF
36056 /* confdefs.h.  */
36057 _ACEOF
36058 cat confdefs.h >>conftest.$ac_ext
36059 cat >>conftest.$ac_ext <<_ACEOF
36060 /* end confdefs.h.  */
36061 $ac_includes_default
36062    typedef long int ac__type_sizeof_;
36063 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36064 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36065 #include <stdio.h>
36066 #include <stdlib.h>
36067 int
36068 main ()
36069 {
36070
36071   FILE *f = fopen ("conftest.val", "w");
36072   if (! f)
36073     return 1;
36074   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36075     {
36076       long int i = longval ();
36077       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36078         return 1;
36079       fprintf (f, "%ld\n", i);
36080     }
36081   else
36082     {
36083       unsigned long int i = ulongval ();
36084       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36085         return 1;
36086       fprintf (f, "%lu\n", i);
36087     }
36088   return ferror (f) || fclose (f) != 0;
36089
36090   ;
36091   return 0;
36092 }
36093 _ACEOF
36094 rm -f conftest$ac_exeext
36095 if { (ac_try="$ac_link"
36096 case "(($ac_try" in
36097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36098   *) ac_try_echo=$ac_try;;
36099 esac
36100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36101   (eval "$ac_link") 2>&5
36102   ac_status=$?
36103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36105   { (case "(($ac_try" in
36106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36107   *) ac_try_echo=$ac_try;;
36108 esac
36109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36110   (eval "$ac_try") 2>&5
36111   ac_status=$?
36112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36113   (exit $ac_status); }; }; then
36114   ac_cv_sizeof_long_int=`cat conftest.val`
36115 else
36116   echo "$as_me: program exited with status $ac_status" >&5
36117 echo "$as_me: failed program was:" >&5
36118 sed 's/^/| /' conftest.$ac_ext >&5
36119
36120 ( exit $ac_status )
36121 if test "$ac_cv_type_long_int" = yes; then
36122      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36123 See \`config.log' for more details." >&5
36124 echo "$as_me: error: cannot compute sizeof (long int)
36125 See \`config.log' for more details." >&2;}
36126    { (exit 77); exit 77; }; }
36127    else
36128      ac_cv_sizeof_long_int=0
36129    fi
36130 fi
36131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36132 fi
36133 rm -f conftest.val
36134 fi
36135 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36136 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36137
36138
36139
36140 cat >>confdefs.h <<_ACEOF
36141 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36142 _ACEOF
36143
36144
36145 { echo "$as_me:$LINENO: checking for long long int" >&5
36146 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36147 if test "${ac_cv_type_long_long_int+set}" = set; then
36148   echo $ECHO_N "(cached) $ECHO_C" >&6
36149 else
36150   cat >conftest.$ac_ext <<_ACEOF
36151 /* confdefs.h.  */
36152 _ACEOF
36153 cat confdefs.h >>conftest.$ac_ext
36154 cat >>conftest.$ac_ext <<_ACEOF
36155 /* end confdefs.h.  */
36156 $ac_includes_default
36157 typedef long long int ac__type_new_;
36158 int
36159 main ()
36160 {
36161 if ((ac__type_new_ *) 0)
36162   return 0;
36163 if (sizeof (ac__type_new_))
36164   return 0;
36165   ;
36166   return 0;
36167 }
36168 _ACEOF
36169 rm -f conftest.$ac_objext
36170 if { (ac_try="$ac_compile"
36171 case "(($ac_try" in
36172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36173   *) ac_try_echo=$ac_try;;
36174 esac
36175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36176   (eval "$ac_compile") 2>conftest.er1
36177   ac_status=$?
36178   grep -v '^ *+' conftest.er1 >conftest.err
36179   rm -f conftest.er1
36180   cat conftest.err >&5
36181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182   (exit $ac_status); } && {
36183          test -z "$ac_c_werror_flag" ||
36184          test ! -s conftest.err
36185        } && test -s conftest.$ac_objext; then
36186   ac_cv_type_long_long_int=yes
36187 else
36188   echo "$as_me: failed program was:" >&5
36189 sed 's/^/| /' conftest.$ac_ext >&5
36190
36191         ac_cv_type_long_long_int=no
36192 fi
36193
36194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36195 fi
36196 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36197 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36198
36199 # The cast to long int works around a bug in the HP C Compiler
36200 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36201 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36202 # This bug is HP SR number 8606223364.
36203 { echo "$as_me:$LINENO: checking size of long long int" >&5
36204 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36205 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36206   echo $ECHO_N "(cached) $ECHO_C" >&6
36207 else
36208   if test "$cross_compiling" = yes; then
36209   # Depending upon the size, compute the lo and hi bounds.
36210 cat >conftest.$ac_ext <<_ACEOF
36211 /* confdefs.h.  */
36212 _ACEOF
36213 cat confdefs.h >>conftest.$ac_ext
36214 cat >>conftest.$ac_ext <<_ACEOF
36215 /* end confdefs.h.  */
36216 $ac_includes_default
36217    typedef long long int ac__type_sizeof_;
36218 int
36219 main ()
36220 {
36221 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36222 test_array [0] = 0
36223
36224   ;
36225   return 0;
36226 }
36227 _ACEOF
36228 rm -f conftest.$ac_objext
36229 if { (ac_try="$ac_compile"
36230 case "(($ac_try" in
36231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36232   *) ac_try_echo=$ac_try;;
36233 esac
36234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36235   (eval "$ac_compile") 2>conftest.er1
36236   ac_status=$?
36237   grep -v '^ *+' conftest.er1 >conftest.err
36238   rm -f conftest.er1
36239   cat conftest.err >&5
36240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241   (exit $ac_status); } && {
36242          test -z "$ac_c_werror_flag" ||
36243          test ! -s conftest.err
36244        } && test -s conftest.$ac_objext; then
36245   ac_lo=0 ac_mid=0
36246   while :; do
36247     cat >conftest.$ac_ext <<_ACEOF
36248 /* confdefs.h.  */
36249 _ACEOF
36250 cat confdefs.h >>conftest.$ac_ext
36251 cat >>conftest.$ac_ext <<_ACEOF
36252 /* end confdefs.h.  */
36253 $ac_includes_default
36254    typedef long long int ac__type_sizeof_;
36255 int
36256 main ()
36257 {
36258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36259 test_array [0] = 0
36260
36261   ;
36262   return 0;
36263 }
36264 _ACEOF
36265 rm -f conftest.$ac_objext
36266 if { (ac_try="$ac_compile"
36267 case "(($ac_try" in
36268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36269   *) ac_try_echo=$ac_try;;
36270 esac
36271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36272   (eval "$ac_compile") 2>conftest.er1
36273   ac_status=$?
36274   grep -v '^ *+' conftest.er1 >conftest.err
36275   rm -f conftest.er1
36276   cat conftest.err >&5
36277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36278   (exit $ac_status); } && {
36279          test -z "$ac_c_werror_flag" ||
36280          test ! -s conftest.err
36281        } && test -s conftest.$ac_objext; then
36282   ac_hi=$ac_mid; break
36283 else
36284   echo "$as_me: failed program was:" >&5
36285 sed 's/^/| /' conftest.$ac_ext >&5
36286
36287         ac_lo=`expr $ac_mid + 1`
36288                         if test $ac_lo -le $ac_mid; then
36289                           ac_lo= ac_hi=
36290                           break
36291                         fi
36292                         ac_mid=`expr 2 '*' $ac_mid + 1`
36293 fi
36294
36295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36296   done
36297 else
36298   echo "$as_me: failed program was:" >&5
36299 sed 's/^/| /' conftest.$ac_ext >&5
36300
36301         cat >conftest.$ac_ext <<_ACEOF
36302 /* confdefs.h.  */
36303 _ACEOF
36304 cat confdefs.h >>conftest.$ac_ext
36305 cat >>conftest.$ac_ext <<_ACEOF
36306 /* end confdefs.h.  */
36307 $ac_includes_default
36308    typedef long long int ac__type_sizeof_;
36309 int
36310 main ()
36311 {
36312 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36313 test_array [0] = 0
36314
36315   ;
36316   return 0;
36317 }
36318 _ACEOF
36319 rm -f conftest.$ac_objext
36320 if { (ac_try="$ac_compile"
36321 case "(($ac_try" in
36322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36323   *) ac_try_echo=$ac_try;;
36324 esac
36325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36326   (eval "$ac_compile") 2>conftest.er1
36327   ac_status=$?
36328   grep -v '^ *+' conftest.er1 >conftest.err
36329   rm -f conftest.er1
36330   cat conftest.err >&5
36331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332   (exit $ac_status); } && {
36333          test -z "$ac_c_werror_flag" ||
36334          test ! -s conftest.err
36335        } && test -s conftest.$ac_objext; then
36336   ac_hi=-1 ac_mid=-1
36337   while :; do
36338     cat >conftest.$ac_ext <<_ACEOF
36339 /* confdefs.h.  */
36340 _ACEOF
36341 cat confdefs.h >>conftest.$ac_ext
36342 cat >>conftest.$ac_ext <<_ACEOF
36343 /* end confdefs.h.  */
36344 $ac_includes_default
36345    typedef long long int ac__type_sizeof_;
36346 int
36347 main ()
36348 {
36349 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36350 test_array [0] = 0
36351
36352   ;
36353   return 0;
36354 }
36355 _ACEOF
36356 rm -f conftest.$ac_objext
36357 if { (ac_try="$ac_compile"
36358 case "(($ac_try" in
36359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36360   *) ac_try_echo=$ac_try;;
36361 esac
36362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36363   (eval "$ac_compile") 2>conftest.er1
36364   ac_status=$?
36365   grep -v '^ *+' conftest.er1 >conftest.err
36366   rm -f conftest.er1
36367   cat conftest.err >&5
36368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36369   (exit $ac_status); } && {
36370          test -z "$ac_c_werror_flag" ||
36371          test ! -s conftest.err
36372        } && test -s conftest.$ac_objext; then
36373   ac_lo=$ac_mid; break
36374 else
36375   echo "$as_me: failed program was:" >&5
36376 sed 's/^/| /' conftest.$ac_ext >&5
36377
36378         ac_hi=`expr '(' $ac_mid ')' - 1`
36379                         if test $ac_mid -le $ac_hi; then
36380                           ac_lo= ac_hi=
36381                           break
36382                         fi
36383                         ac_mid=`expr 2 '*' $ac_mid`
36384 fi
36385
36386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36387   done
36388 else
36389   echo "$as_me: failed program was:" >&5
36390 sed 's/^/| /' conftest.$ac_ext >&5
36391
36392         ac_lo= ac_hi=
36393 fi
36394
36395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36396 fi
36397
36398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36399 # Binary search between lo and hi bounds.
36400 while test "x$ac_lo" != "x$ac_hi"; do
36401   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36402   cat >conftest.$ac_ext <<_ACEOF
36403 /* confdefs.h.  */
36404 _ACEOF
36405 cat confdefs.h >>conftest.$ac_ext
36406 cat >>conftest.$ac_ext <<_ACEOF
36407 /* end confdefs.h.  */
36408 $ac_includes_default
36409    typedef long long int ac__type_sizeof_;
36410 int
36411 main ()
36412 {
36413 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36414 test_array [0] = 0
36415
36416   ;
36417   return 0;
36418 }
36419 _ACEOF
36420 rm -f conftest.$ac_objext
36421 if { (ac_try="$ac_compile"
36422 case "(($ac_try" in
36423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36424   *) ac_try_echo=$ac_try;;
36425 esac
36426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36427   (eval "$ac_compile") 2>conftest.er1
36428   ac_status=$?
36429   grep -v '^ *+' conftest.er1 >conftest.err
36430   rm -f conftest.er1
36431   cat conftest.err >&5
36432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36433   (exit $ac_status); } && {
36434          test -z "$ac_c_werror_flag" ||
36435          test ! -s conftest.err
36436        } && test -s conftest.$ac_objext; then
36437   ac_hi=$ac_mid
36438 else
36439   echo "$as_me: failed program was:" >&5
36440 sed 's/^/| /' conftest.$ac_ext >&5
36441
36442         ac_lo=`expr '(' $ac_mid ')' + 1`
36443 fi
36444
36445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36446 done
36447 case $ac_lo in
36448 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36449 '') if test "$ac_cv_type_long_long_int" = yes; then
36450      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36451 See \`config.log' for more details." >&5
36452 echo "$as_me: error: cannot compute sizeof (long long int)
36453 See \`config.log' for more details." >&2;}
36454    { (exit 77); exit 77; }; }
36455    else
36456      ac_cv_sizeof_long_long_int=0
36457    fi ;;
36458 esac
36459 else
36460   cat >conftest.$ac_ext <<_ACEOF
36461 /* confdefs.h.  */
36462 _ACEOF
36463 cat confdefs.h >>conftest.$ac_ext
36464 cat >>conftest.$ac_ext <<_ACEOF
36465 /* end confdefs.h.  */
36466 $ac_includes_default
36467    typedef long long int ac__type_sizeof_;
36468 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36469 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36470 #include <stdio.h>
36471 #include <stdlib.h>
36472 int
36473 main ()
36474 {
36475
36476   FILE *f = fopen ("conftest.val", "w");
36477   if (! f)
36478     return 1;
36479   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36480     {
36481       long int i = longval ();
36482       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36483         return 1;
36484       fprintf (f, "%ld\n", i);
36485     }
36486   else
36487     {
36488       unsigned long int i = ulongval ();
36489       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36490         return 1;
36491       fprintf (f, "%lu\n", i);
36492     }
36493   return ferror (f) || fclose (f) != 0;
36494
36495   ;
36496   return 0;
36497 }
36498 _ACEOF
36499 rm -f conftest$ac_exeext
36500 if { (ac_try="$ac_link"
36501 case "(($ac_try" in
36502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36503   *) ac_try_echo=$ac_try;;
36504 esac
36505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36506   (eval "$ac_link") 2>&5
36507   ac_status=$?
36508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36510   { (case "(($ac_try" in
36511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36512   *) ac_try_echo=$ac_try;;
36513 esac
36514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36515   (eval "$ac_try") 2>&5
36516   ac_status=$?
36517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518   (exit $ac_status); }; }; then
36519   ac_cv_sizeof_long_long_int=`cat conftest.val`
36520 else
36521   echo "$as_me: program exited with status $ac_status" >&5
36522 echo "$as_me: failed program was:" >&5
36523 sed 's/^/| /' conftest.$ac_ext >&5
36524
36525 ( exit $ac_status )
36526 if test "$ac_cv_type_long_long_int" = yes; then
36527      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36528 See \`config.log' for more details." >&5
36529 echo "$as_me: error: cannot compute sizeof (long long int)
36530 See \`config.log' for more details." >&2;}
36531    { (exit 77); exit 77; }; }
36532    else
36533      ac_cv_sizeof_long_long_int=0
36534    fi
36535 fi
36536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36537 fi
36538 rm -f conftest.val
36539 fi
36540 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36541 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36542
36543
36544
36545 cat >>confdefs.h <<_ACEOF
36546 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36547 _ACEOF
36548
36549
36550 { echo "$as_me:$LINENO: checking for int *" >&5
36551 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36552 if test "${ac_cv_type_int_p+set}" = set; then
36553   echo $ECHO_N "(cached) $ECHO_C" >&6
36554 else
36555   cat >conftest.$ac_ext <<_ACEOF
36556 /* confdefs.h.  */
36557 _ACEOF
36558 cat confdefs.h >>conftest.$ac_ext
36559 cat >>conftest.$ac_ext <<_ACEOF
36560 /* end confdefs.h.  */
36561 $ac_includes_default
36562 typedef int * ac__type_new_;
36563 int
36564 main ()
36565 {
36566 if ((ac__type_new_ *) 0)
36567   return 0;
36568 if (sizeof (ac__type_new_))
36569   return 0;
36570   ;
36571   return 0;
36572 }
36573 _ACEOF
36574 rm -f conftest.$ac_objext
36575 if { (ac_try="$ac_compile"
36576 case "(($ac_try" in
36577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36578   *) ac_try_echo=$ac_try;;
36579 esac
36580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36581   (eval "$ac_compile") 2>conftest.er1
36582   ac_status=$?
36583   grep -v '^ *+' conftest.er1 >conftest.err
36584   rm -f conftest.er1
36585   cat conftest.err >&5
36586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36587   (exit $ac_status); } && {
36588          test -z "$ac_c_werror_flag" ||
36589          test ! -s conftest.err
36590        } && test -s conftest.$ac_objext; then
36591   ac_cv_type_int_p=yes
36592 else
36593   echo "$as_me: failed program was:" >&5
36594 sed 's/^/| /' conftest.$ac_ext >&5
36595
36596         ac_cv_type_int_p=no
36597 fi
36598
36599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36600 fi
36601 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36602 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36603
36604 # The cast to long int works around a bug in the HP C Compiler
36605 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36606 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36607 # This bug is HP SR number 8606223364.
36608 { echo "$as_me:$LINENO: checking size of int *" >&5
36609 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36610 if test "${ac_cv_sizeof_int_p+set}" = set; then
36611   echo $ECHO_N "(cached) $ECHO_C" >&6
36612 else
36613   if test "$cross_compiling" = yes; then
36614   # Depending upon the size, compute the lo and hi bounds.
36615 cat >conftest.$ac_ext <<_ACEOF
36616 /* confdefs.h.  */
36617 _ACEOF
36618 cat confdefs.h >>conftest.$ac_ext
36619 cat >>conftest.$ac_ext <<_ACEOF
36620 /* end confdefs.h.  */
36621 $ac_includes_default
36622    typedef int * ac__type_sizeof_;
36623 int
36624 main ()
36625 {
36626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36627 test_array [0] = 0
36628
36629   ;
36630   return 0;
36631 }
36632 _ACEOF
36633 rm -f conftest.$ac_objext
36634 if { (ac_try="$ac_compile"
36635 case "(($ac_try" in
36636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36637   *) ac_try_echo=$ac_try;;
36638 esac
36639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36640   (eval "$ac_compile") 2>conftest.er1
36641   ac_status=$?
36642   grep -v '^ *+' conftest.er1 >conftest.err
36643   rm -f conftest.er1
36644   cat conftest.err >&5
36645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646   (exit $ac_status); } && {
36647          test -z "$ac_c_werror_flag" ||
36648          test ! -s conftest.err
36649        } && test -s conftest.$ac_objext; then
36650   ac_lo=0 ac_mid=0
36651   while :; do
36652     cat >conftest.$ac_ext <<_ACEOF
36653 /* confdefs.h.  */
36654 _ACEOF
36655 cat confdefs.h >>conftest.$ac_ext
36656 cat >>conftest.$ac_ext <<_ACEOF
36657 /* end confdefs.h.  */
36658 $ac_includes_default
36659    typedef int * ac__type_sizeof_;
36660 int
36661 main ()
36662 {
36663 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36664 test_array [0] = 0
36665
36666   ;
36667   return 0;
36668 }
36669 _ACEOF
36670 rm -f conftest.$ac_objext
36671 if { (ac_try="$ac_compile"
36672 case "(($ac_try" in
36673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36674   *) ac_try_echo=$ac_try;;
36675 esac
36676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36677   (eval "$ac_compile") 2>conftest.er1
36678   ac_status=$?
36679   grep -v '^ *+' conftest.er1 >conftest.err
36680   rm -f conftest.er1
36681   cat conftest.err >&5
36682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36683   (exit $ac_status); } && {
36684          test -z "$ac_c_werror_flag" ||
36685          test ! -s conftest.err
36686        } && test -s conftest.$ac_objext; then
36687   ac_hi=$ac_mid; break
36688 else
36689   echo "$as_me: failed program was:" >&5
36690 sed 's/^/| /' conftest.$ac_ext >&5
36691
36692         ac_lo=`expr $ac_mid + 1`
36693                         if test $ac_lo -le $ac_mid; then
36694                           ac_lo= ac_hi=
36695                           break
36696                         fi
36697                         ac_mid=`expr 2 '*' $ac_mid + 1`
36698 fi
36699
36700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36701   done
36702 else
36703   echo "$as_me: failed program was:" >&5
36704 sed 's/^/| /' conftest.$ac_ext >&5
36705
36706         cat >conftest.$ac_ext <<_ACEOF
36707 /* confdefs.h.  */
36708 _ACEOF
36709 cat confdefs.h >>conftest.$ac_ext
36710 cat >>conftest.$ac_ext <<_ACEOF
36711 /* end confdefs.h.  */
36712 $ac_includes_default
36713    typedef int * ac__type_sizeof_;
36714 int
36715 main ()
36716 {
36717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36718 test_array [0] = 0
36719
36720   ;
36721   return 0;
36722 }
36723 _ACEOF
36724 rm -f conftest.$ac_objext
36725 if { (ac_try="$ac_compile"
36726 case "(($ac_try" in
36727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36728   *) ac_try_echo=$ac_try;;
36729 esac
36730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36731   (eval "$ac_compile") 2>conftest.er1
36732   ac_status=$?
36733   grep -v '^ *+' conftest.er1 >conftest.err
36734   rm -f conftest.er1
36735   cat conftest.err >&5
36736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36737   (exit $ac_status); } && {
36738          test -z "$ac_c_werror_flag" ||
36739          test ! -s conftest.err
36740        } && test -s conftest.$ac_objext; then
36741   ac_hi=-1 ac_mid=-1
36742   while :; do
36743     cat >conftest.$ac_ext <<_ACEOF
36744 /* confdefs.h.  */
36745 _ACEOF
36746 cat confdefs.h >>conftest.$ac_ext
36747 cat >>conftest.$ac_ext <<_ACEOF
36748 /* end confdefs.h.  */
36749 $ac_includes_default
36750    typedef int * ac__type_sizeof_;
36751 int
36752 main ()
36753 {
36754 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36755 test_array [0] = 0
36756
36757   ;
36758   return 0;
36759 }
36760 _ACEOF
36761 rm -f conftest.$ac_objext
36762 if { (ac_try="$ac_compile"
36763 case "(($ac_try" in
36764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36765   *) ac_try_echo=$ac_try;;
36766 esac
36767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36768   (eval "$ac_compile") 2>conftest.er1
36769   ac_status=$?
36770   grep -v '^ *+' conftest.er1 >conftest.err
36771   rm -f conftest.er1
36772   cat conftest.err >&5
36773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36774   (exit $ac_status); } && {
36775          test -z "$ac_c_werror_flag" ||
36776          test ! -s conftest.err
36777        } && test -s conftest.$ac_objext; then
36778   ac_lo=$ac_mid; break
36779 else
36780   echo "$as_me: failed program was:" >&5
36781 sed 's/^/| /' conftest.$ac_ext >&5
36782
36783         ac_hi=`expr '(' $ac_mid ')' - 1`
36784                         if test $ac_mid -le $ac_hi; then
36785                           ac_lo= ac_hi=
36786                           break
36787                         fi
36788                         ac_mid=`expr 2 '*' $ac_mid`
36789 fi
36790
36791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36792   done
36793 else
36794   echo "$as_me: failed program was:" >&5
36795 sed 's/^/| /' conftest.$ac_ext >&5
36796
36797         ac_lo= ac_hi=
36798 fi
36799
36800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36801 fi
36802
36803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36804 # Binary search between lo and hi bounds.
36805 while test "x$ac_lo" != "x$ac_hi"; do
36806   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36807   cat >conftest.$ac_ext <<_ACEOF
36808 /* confdefs.h.  */
36809 _ACEOF
36810 cat confdefs.h >>conftest.$ac_ext
36811 cat >>conftest.$ac_ext <<_ACEOF
36812 /* end confdefs.h.  */
36813 $ac_includes_default
36814    typedef int * ac__type_sizeof_;
36815 int
36816 main ()
36817 {
36818 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36819 test_array [0] = 0
36820
36821   ;
36822   return 0;
36823 }
36824 _ACEOF
36825 rm -f conftest.$ac_objext
36826 if { (ac_try="$ac_compile"
36827 case "(($ac_try" in
36828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36829   *) ac_try_echo=$ac_try;;
36830 esac
36831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36832   (eval "$ac_compile") 2>conftest.er1
36833   ac_status=$?
36834   grep -v '^ *+' conftest.er1 >conftest.err
36835   rm -f conftest.er1
36836   cat conftest.err >&5
36837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36838   (exit $ac_status); } && {
36839          test -z "$ac_c_werror_flag" ||
36840          test ! -s conftest.err
36841        } && test -s conftest.$ac_objext; then
36842   ac_hi=$ac_mid
36843 else
36844   echo "$as_me: failed program was:" >&5
36845 sed 's/^/| /' conftest.$ac_ext >&5
36846
36847         ac_lo=`expr '(' $ac_mid ')' + 1`
36848 fi
36849
36850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36851 done
36852 case $ac_lo in
36853 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36854 '') if test "$ac_cv_type_int_p" = yes; then
36855      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36856 See \`config.log' for more details." >&5
36857 echo "$as_me: error: cannot compute sizeof (int *)
36858 See \`config.log' for more details." >&2;}
36859    { (exit 77); exit 77; }; }
36860    else
36861      ac_cv_sizeof_int_p=0
36862    fi ;;
36863 esac
36864 else
36865   cat >conftest.$ac_ext <<_ACEOF
36866 /* confdefs.h.  */
36867 _ACEOF
36868 cat confdefs.h >>conftest.$ac_ext
36869 cat >>conftest.$ac_ext <<_ACEOF
36870 /* end confdefs.h.  */
36871 $ac_includes_default
36872    typedef int * ac__type_sizeof_;
36873 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36874 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36875 #include <stdio.h>
36876 #include <stdlib.h>
36877 int
36878 main ()
36879 {
36880
36881   FILE *f = fopen ("conftest.val", "w");
36882   if (! f)
36883     return 1;
36884   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36885     {
36886       long int i = longval ();
36887       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36888         return 1;
36889       fprintf (f, "%ld\n", i);
36890     }
36891   else
36892     {
36893       unsigned long int i = ulongval ();
36894       if (i != ((long int) (sizeof (ac__type_sizeof_))))
36895         return 1;
36896       fprintf (f, "%lu\n", i);
36897     }
36898   return ferror (f) || fclose (f) != 0;
36899
36900   ;
36901   return 0;
36902 }
36903 _ACEOF
36904 rm -f conftest$ac_exeext
36905 if { (ac_try="$ac_link"
36906 case "(($ac_try" in
36907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36908   *) ac_try_echo=$ac_try;;
36909 esac
36910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36911   (eval "$ac_link") 2>&5
36912   ac_status=$?
36913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36914   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36915   { (case "(($ac_try" in
36916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36917   *) ac_try_echo=$ac_try;;
36918 esac
36919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36920   (eval "$ac_try") 2>&5
36921   ac_status=$?
36922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923   (exit $ac_status); }; }; then
36924   ac_cv_sizeof_int_p=`cat conftest.val`
36925 else
36926   echo "$as_me: program exited with status $ac_status" >&5
36927 echo "$as_me: failed program was:" >&5
36928 sed 's/^/| /' conftest.$ac_ext >&5
36929
36930 ( exit $ac_status )
36931 if test "$ac_cv_type_int_p" = yes; then
36932      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36933 See \`config.log' for more details." >&5
36934 echo "$as_me: error: cannot compute sizeof (int *)
36935 See \`config.log' for more details." >&2;}
36936    { (exit 77); exit 77; }; }
36937    else
36938      ac_cv_sizeof_int_p=0
36939    fi
36940 fi
36941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36942 fi
36943 rm -f conftest.val
36944 fi
36945 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36946 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36947
36948
36949
36950 cat >>confdefs.h <<_ACEOF
36951 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36952 _ACEOF
36953
36954
36955
36956 { echo "$as_me:$LINENO: checking for u_int type" >&5
36957 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36958 if test "${ac_cv_have_u_int+set}" = set; then
36959   echo $ECHO_N "(cached) $ECHO_C" >&6
36960 else
36961
36962        cat >conftest.$ac_ext <<_ACEOF
36963 /* confdefs.h.  */
36964 _ACEOF
36965 cat confdefs.h >>conftest.$ac_ext
36966 cat >>conftest.$ac_ext <<_ACEOF
36967 /* end confdefs.h.  */
36968
36969               #include <sys/types.h>
36970
36971 int
36972 main ()
36973 {
36974
36975               u_int a; a = 1;
36976
36977   ;
36978   return 0;
36979 }
36980 _ACEOF
36981 rm -f conftest.$ac_objext
36982 if { (ac_try="$ac_compile"
36983 case "(($ac_try" in
36984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36985   *) ac_try_echo=$ac_try;;
36986 esac
36987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36988   (eval "$ac_compile") 2>conftest.er1
36989   ac_status=$?
36990   grep -v '^ *+' conftest.er1 >conftest.err
36991   rm -f conftest.er1
36992   cat conftest.err >&5
36993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36994   (exit $ac_status); } && {
36995          test -z "$ac_c_werror_flag" ||
36996          test ! -s conftest.err
36997        } && test -s conftest.$ac_objext; then
36998
36999               ac_cv_have_u_int="yes"
37000
37001 else
37002   echo "$as_me: failed program was:" >&5
37003 sed 's/^/| /' conftest.$ac_ext >&5
37004
37005
37006               ac_cv_have_u_int="no"
37007
37008
37009 fi
37010
37011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37012
37013
37014 fi
37015 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37016 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37017 if test "x$ac_cv_have_u_int" = "xyes" ; then
37018    cat >>confdefs.h <<\_ACEOF
37019 #define HAVE_U_INT 1
37020 _ACEOF
37021
37022    have_u_int=1
37023 fi
37024
37025 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37026 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37027 if test "${ac_cv_have_intmax_t+set}" = set; then
37028   echo $ECHO_N "(cached) $ECHO_C" >&6
37029 else
37030
37031        cat >conftest.$ac_ext <<_ACEOF
37032 /* confdefs.h.  */
37033 _ACEOF
37034 cat confdefs.h >>conftest.$ac_ext
37035 cat >>conftest.$ac_ext <<_ACEOF
37036 /* end confdefs.h.  */
37037
37038               #include <sys/types.h>
37039
37040 int
37041 main ()
37042 {
37043
37044               intmax_t a; a = 1;
37045
37046   ;
37047   return 0;
37048 }
37049 _ACEOF
37050 rm -f conftest.$ac_objext
37051 if { (ac_try="$ac_compile"
37052 case "(($ac_try" in
37053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37054   *) ac_try_echo=$ac_try;;
37055 esac
37056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37057   (eval "$ac_compile") 2>conftest.er1
37058   ac_status=$?
37059   grep -v '^ *+' conftest.er1 >conftest.err
37060   rm -f conftest.er1
37061   cat conftest.err >&5
37062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063   (exit $ac_status); } && {
37064          test -z "$ac_c_werror_flag" ||
37065          test ! -s conftest.err
37066        } && test -s conftest.$ac_objext; then
37067
37068               ac_cv_have_intmax_t="yes"
37069
37070 else
37071   echo "$as_me: failed program was:" >&5
37072 sed 's/^/| /' conftest.$ac_ext >&5
37073
37074
37075               cat >conftest.$ac_ext <<_ACEOF
37076 /* confdefs.h.  */
37077 _ACEOF
37078 cat confdefs.h >>conftest.$ac_ext
37079 cat >>conftest.$ac_ext <<_ACEOF
37080 /* end confdefs.h.  */
37081
37082                      #include <stdint.h>
37083
37084 int
37085 main ()
37086 {
37087
37088                      intmax_t a; a = 1;
37089
37090   ;
37091   return 0;
37092 }
37093 _ACEOF
37094 rm -f conftest.$ac_objext
37095 if { (ac_try="$ac_compile"
37096 case "(($ac_try" in
37097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37098   *) ac_try_echo=$ac_try;;
37099 esac
37100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37101   (eval "$ac_compile") 2>conftest.er1
37102   ac_status=$?
37103   grep -v '^ *+' conftest.er1 >conftest.err
37104   rm -f conftest.er1
37105   cat conftest.err >&5
37106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37107   (exit $ac_status); } && {
37108          test -z "$ac_c_werror_flag" ||
37109          test ! -s conftest.err
37110        } && test -s conftest.$ac_objext; then
37111
37112                      ac_cv_have_intmax_t="yes"
37113
37114 else
37115   echo "$as_me: failed program was:" >&5
37116 sed 's/^/| /' conftest.$ac_ext >&5
37117
37118
37119                      ac_cv_have_intmax_t="no"
37120
37121
37122 fi
37123
37124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37125
37126
37127 fi
37128
37129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37130
37131
37132 fi
37133 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37134 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37135 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37136    cat >>confdefs.h <<\_ACEOF
37137 #define HAVE_INTMAX_T 1
37138 _ACEOF
37139
37140    have_intmax_t=1
37141 fi
37142
37143 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37144 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37145 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37146   echo $ECHO_N "(cached) $ECHO_C" >&6
37147 else
37148
37149        cat >conftest.$ac_ext <<_ACEOF
37150 /* confdefs.h.  */
37151 _ACEOF
37152 cat confdefs.h >>conftest.$ac_ext
37153 cat >>conftest.$ac_ext <<_ACEOF
37154 /* end confdefs.h.  */
37155
37156               #include <sys/types.h>
37157
37158 int
37159 main ()
37160 {
37161
37162               u_intmax_t a; a = 1;
37163
37164   ;
37165   return 0;
37166 }
37167 _ACEOF
37168 rm -f conftest.$ac_objext
37169 if { (ac_try="$ac_compile"
37170 case "(($ac_try" in
37171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37172   *) ac_try_echo=$ac_try;;
37173 esac
37174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37175   (eval "$ac_compile") 2>conftest.er1
37176   ac_status=$?
37177   grep -v '^ *+' conftest.er1 >conftest.err
37178   rm -f conftest.er1
37179   cat conftest.err >&5
37180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181   (exit $ac_status); } && {
37182          test -z "$ac_c_werror_flag" ||
37183          test ! -s conftest.err
37184        } && test -s conftest.$ac_objext; then
37185
37186               ac_cv_have_u_intmax_t="yes"
37187
37188 else
37189   echo "$as_me: failed program was:" >&5
37190 sed 's/^/| /' conftest.$ac_ext >&5
37191
37192
37193               cat >conftest.$ac_ext <<_ACEOF
37194 /* confdefs.h.  */
37195 _ACEOF
37196 cat confdefs.h >>conftest.$ac_ext
37197 cat >>conftest.$ac_ext <<_ACEOF
37198 /* end confdefs.h.  */
37199
37200                      #include <stdint.h>
37201
37202 int
37203 main ()
37204 {
37205
37206                     u_intmax_t a; a = 1;
37207
37208   ;
37209   return 0;
37210 }
37211 _ACEOF
37212 rm -f conftest.$ac_objext
37213 if { (ac_try="$ac_compile"
37214 case "(($ac_try" in
37215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37216   *) ac_try_echo=$ac_try;;
37217 esac
37218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37219   (eval "$ac_compile") 2>conftest.er1
37220   ac_status=$?
37221   grep -v '^ *+' conftest.er1 >conftest.err
37222   rm -f conftest.er1
37223   cat conftest.err >&5
37224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37225   (exit $ac_status); } && {
37226          test -z "$ac_c_werror_flag" ||
37227          test ! -s conftest.err
37228        } && test -s conftest.$ac_objext; then
37229
37230                     ac_cv_have_u_intmax_t="yes"
37231
37232 else
37233   echo "$as_me: failed program was:" >&5
37234 sed 's/^/| /' conftest.$ac_ext >&5
37235
37236
37237                     ac_cv_have_u_intmax_t="no"
37238
37239
37240 fi
37241
37242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37243
37244
37245 fi
37246
37247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37248
37249
37250 fi
37251 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37252 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37253 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37254    cat >>confdefs.h <<\_ACEOF
37255 #define HAVE_U_INTMAX_T 1
37256 _ACEOF
37257
37258    have_u_intmax_t=1
37259 fi
37260
37261 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37262 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37263 if test "${ac_cv_have_intxx_t+set}" = set; then
37264   echo $ECHO_N "(cached) $ECHO_C" >&6
37265 else
37266
37267        cat >conftest.$ac_ext <<_ACEOF
37268 /* confdefs.h.  */
37269 _ACEOF
37270 cat confdefs.h >>conftest.$ac_ext
37271 cat >>conftest.$ac_ext <<_ACEOF
37272 /* end confdefs.h.  */
37273
37274               #include <sys/types.h>
37275
37276 int
37277 main ()
37278 {
37279
37280               int8_t a; int16_t b; int32_t c; a = b = c = 1;
37281
37282   ;
37283   return 0;
37284 }
37285 _ACEOF
37286 rm -f conftest.$ac_objext
37287 if { (ac_try="$ac_compile"
37288 case "(($ac_try" in
37289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37290   *) ac_try_echo=$ac_try;;
37291 esac
37292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37293   (eval "$ac_compile") 2>conftest.er1
37294   ac_status=$?
37295   grep -v '^ *+' conftest.er1 >conftest.err
37296   rm -f conftest.er1
37297   cat conftest.err >&5
37298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37299   (exit $ac_status); } && {
37300          test -z "$ac_c_werror_flag" ||
37301          test ! -s conftest.err
37302        } && test -s conftest.$ac_objext; then
37303
37304               ac_cv_have_intxx_t="yes"
37305
37306 else
37307   echo "$as_me: failed program was:" >&5
37308 sed 's/^/| /' conftest.$ac_ext >&5
37309
37310
37311               ac_cv_have_intxx_t="no"
37312
37313
37314 fi
37315
37316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37317
37318
37319 fi
37320 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37321 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37322 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37323    cat >>confdefs.h <<\_ACEOF
37324 #define HAVE_INTXX_T 1
37325 _ACEOF
37326
37327    have_intxx_t=1
37328 fi
37329
37330 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37331 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37332 if test "${ac_cv_have_int64_t+set}" = set; then
37333   echo $ECHO_N "(cached) $ECHO_C" >&6
37334 else
37335
37336        cat >conftest.$ac_ext <<_ACEOF
37337 /* confdefs.h.  */
37338 _ACEOF
37339 cat confdefs.h >>conftest.$ac_ext
37340 cat >>conftest.$ac_ext <<_ACEOF
37341 /* end confdefs.h.  */
37342
37343               #include <sys/types.h>
37344
37345 int
37346 main ()
37347 {
37348
37349               int64_t a; a = 1;
37350
37351   ;
37352   return 0;
37353 }
37354 _ACEOF
37355 rm -f conftest.$ac_objext
37356 if { (ac_try="$ac_compile"
37357 case "(($ac_try" in
37358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37359   *) ac_try_echo=$ac_try;;
37360 esac
37361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37362   (eval "$ac_compile") 2>conftest.er1
37363   ac_status=$?
37364   grep -v '^ *+' conftest.er1 >conftest.err
37365   rm -f conftest.er1
37366   cat conftest.err >&5
37367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37368   (exit $ac_status); } && {
37369          test -z "$ac_c_werror_flag" ||
37370          test ! -s conftest.err
37371        } && test -s conftest.$ac_objext; then
37372
37373               ac_cv_have_int64_t="yes"
37374
37375 else
37376   echo "$as_me: failed program was:" >&5
37377 sed 's/^/| /' conftest.$ac_ext >&5
37378
37379
37380               ac_cv_have_int64_t="no"
37381
37382
37383 fi
37384
37385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37386
37387
37388 fi
37389 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37390 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37391 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37392    cat >>confdefs.h <<\_ACEOF
37393 #define HAVE_INT64_T 1
37394 _ACEOF
37395
37396    have_int64_t=1
37397 fi
37398
37399 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37400 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37401 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37402   echo $ECHO_N "(cached) $ECHO_C" >&6
37403 else
37404
37405        cat >conftest.$ac_ext <<_ACEOF
37406 /* confdefs.h.  */
37407 _ACEOF
37408 cat confdefs.h >>conftest.$ac_ext
37409 cat >>conftest.$ac_ext <<_ACEOF
37410 /* end confdefs.h.  */
37411
37412               #include <sys/types.h>
37413
37414 int
37415 main ()
37416 {
37417
37418               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37419
37420   ;
37421   return 0;
37422 }
37423 _ACEOF
37424 rm -f conftest.$ac_objext
37425 if { (ac_try="$ac_compile"
37426 case "(($ac_try" in
37427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37428   *) ac_try_echo=$ac_try;;
37429 esac
37430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37431   (eval "$ac_compile") 2>conftest.er1
37432   ac_status=$?
37433   grep -v '^ *+' conftest.er1 >conftest.err
37434   rm -f conftest.er1
37435   cat conftest.err >&5
37436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37437   (exit $ac_status); } && {
37438          test -z "$ac_c_werror_flag" ||
37439          test ! -s conftest.err
37440        } && test -s conftest.$ac_objext; then
37441
37442              ac_cv_have_u_intxx_t="yes"
37443
37444 else
37445   echo "$as_me: failed program was:" >&5
37446 sed 's/^/| /' conftest.$ac_ext >&5
37447
37448
37449              ac_cv_have_u_intxx_t="no"
37450
37451
37452 fi
37453
37454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37455
37456
37457 fi
37458 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37459 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37460 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37461    cat >>confdefs.h <<\_ACEOF
37462 #define HAVE_U_INTXX_T 1
37463 _ACEOF
37464
37465    have_u_intxx_t=1
37466 fi
37467
37468 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37469 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37470 if test "${ac_cv_have_u_int64_t+set}" = set; then
37471   echo $ECHO_N "(cached) $ECHO_C" >&6
37472 else
37473
37474        cat >conftest.$ac_ext <<_ACEOF
37475 /* confdefs.h.  */
37476 _ACEOF
37477 cat confdefs.h >>conftest.$ac_ext
37478 cat >>conftest.$ac_ext <<_ACEOF
37479 /* end confdefs.h.  */
37480
37481               #include <sys/types.h>
37482
37483 int
37484 main ()
37485 {
37486
37487               u_int64_t a; a = 1;
37488
37489   ;
37490   return 0;
37491 }
37492 _ACEOF
37493 rm -f conftest.$ac_objext
37494 if { (ac_try="$ac_compile"
37495 case "(($ac_try" in
37496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37497   *) ac_try_echo=$ac_try;;
37498 esac
37499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37500   (eval "$ac_compile") 2>conftest.er1
37501   ac_status=$?
37502   grep -v '^ *+' conftest.er1 >conftest.err
37503   rm -f conftest.er1
37504   cat conftest.err >&5
37505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37506   (exit $ac_status); } && {
37507          test -z "$ac_c_werror_flag" ||
37508          test ! -s conftest.err
37509        } && test -s conftest.$ac_objext; then
37510
37511              ac_cv_have_u_int64_t="yes"
37512
37513 else
37514   echo "$as_me: failed program was:" >&5
37515 sed 's/^/| /' conftest.$ac_ext >&5
37516
37517
37518              ac_cv_have_u_int64_t="no"
37519
37520
37521 fi
37522
37523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37524
37525
37526 fi
37527 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37528 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37529 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37530    cat >>confdefs.h <<\_ACEOF
37531 #define HAVE_U_INT64_T 1
37532 _ACEOF
37533
37534    have_u_int64_t=1
37535 fi
37536
37537 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37538     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37539 then
37540    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37541 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37542    cat >conftest.$ac_ext <<_ACEOF
37543 /* confdefs.h.  */
37544 _ACEOF
37545 cat confdefs.h >>conftest.$ac_ext
37546 cat >>conftest.$ac_ext <<_ACEOF
37547 /* end confdefs.h.  */
37548
37549           #include <sys/bitypes.h>
37550
37551 int
37552 main ()
37553 {
37554
37555           int8_t a; int16_t b; int32_t c;
37556           u_int8_t e; u_int16_t f; u_int32_t g;
37557           a = b = c = e = f = g = 1;
37558
37559   ;
37560   return 0;
37561 }
37562 _ACEOF
37563 rm -f conftest.$ac_objext
37564 if { (ac_try="$ac_compile"
37565 case "(($ac_try" in
37566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37567   *) ac_try_echo=$ac_try;;
37568 esac
37569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37570   (eval "$ac_compile") 2>conftest.er1
37571   ac_status=$?
37572   grep -v '^ *+' conftest.er1 >conftest.err
37573   rm -f conftest.er1
37574   cat conftest.err >&5
37575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37576   (exit $ac_status); } && {
37577          test -z "$ac_c_werror_flag" ||
37578          test ! -s conftest.err
37579        } && test -s conftest.$ac_objext; then
37580
37581           cat >>confdefs.h <<\_ACEOF
37582 #define HAVE_U_INTXX_T 1
37583 _ACEOF
37584
37585           cat >>confdefs.h <<\_ACEOF
37586 #define HAVE_INTXX_T 1
37587 _ACEOF
37588
37589           cat >>confdefs.h <<\_ACEOF
37590 #define HAVE_SYS_BITYPES_H 1
37591 _ACEOF
37592
37593           { echo "$as_me:$LINENO: result: yes" >&5
37594 echo "${ECHO_T}yes" >&6; }
37595
37596 else
37597   echo "$as_me: failed program was:" >&5
37598 sed 's/^/| /' conftest.$ac_ext >&5
37599
37600
37601           { echo "$as_me:$LINENO: result: no" >&5
37602 echo "${ECHO_T}no" >&6; }
37603
37604
37605 fi
37606
37607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37608 fi
37609
37610 if test -z "$have_u_intxx_t" ; then
37611    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37612 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37613 if test "${ac_cv_have_uintxx_t+set}" = set; then
37614   echo $ECHO_N "(cached) $ECHO_C" >&6
37615 else
37616
37617           cat >conftest.$ac_ext <<_ACEOF
37618 /* confdefs.h.  */
37619 _ACEOF
37620 cat confdefs.h >>conftest.$ac_ext
37621 cat >>conftest.$ac_ext <<_ACEOF
37622 /* end confdefs.h.  */
37623
37624                  #include <sys/types.h>
37625
37626 int
37627 main ()
37628 {
37629
37630                  uint8_t a; uint16_t b;
37631                  uint32_t c; a = b = c = 1;
37632
37633   ;
37634   return 0;
37635 }
37636 _ACEOF
37637 rm -f conftest.$ac_objext
37638 if { (ac_try="$ac_compile"
37639 case "(($ac_try" in
37640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37641   *) ac_try_echo=$ac_try;;
37642 esac
37643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37644   (eval "$ac_compile") 2>conftest.er1
37645   ac_status=$?
37646   grep -v '^ *+' conftest.er1 >conftest.err
37647   rm -f conftest.er1
37648   cat conftest.err >&5
37649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650   (exit $ac_status); } && {
37651          test -z "$ac_c_werror_flag" ||
37652          test ! -s conftest.err
37653        } && test -s conftest.$ac_objext; then
37654
37655                 ac_cv_have_uintxx_t="yes"
37656
37657 else
37658   echo "$as_me: failed program was:" >&5
37659 sed 's/^/| /' conftest.$ac_ext >&5
37660
37661
37662                 ac_cv_have_uintxx_t="no"
37663
37664
37665 fi
37666
37667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37668
37669
37670 fi
37671 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37672 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37673    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37674       cat >>confdefs.h <<\_ACEOF
37675 #define HAVE_UINTXX_T 1
37676 _ACEOF
37677
37678    fi
37679 fi
37680
37681 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37682     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37683 then
37684    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37685 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37686    cat >conftest.$ac_ext <<_ACEOF
37687 /* confdefs.h.  */
37688 _ACEOF
37689 cat confdefs.h >>conftest.$ac_ext
37690 cat >>conftest.$ac_ext <<_ACEOF
37691 /* end confdefs.h.  */
37692
37693           #include <sys/bitypes.h>
37694
37695 int
37696 main ()
37697 {
37698
37699           int64_t a; u_int64_t b;
37700           a = b = 1;
37701
37702   ;
37703   return 0;
37704 }
37705 _ACEOF
37706 rm -f conftest.$ac_objext
37707 if { (ac_try="$ac_compile"
37708 case "(($ac_try" in
37709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37710   *) ac_try_echo=$ac_try;;
37711 esac
37712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37713   (eval "$ac_compile") 2>conftest.er1
37714   ac_status=$?
37715   grep -v '^ *+' conftest.er1 >conftest.err
37716   rm -f conftest.er1
37717   cat conftest.err >&5
37718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37719   (exit $ac_status); } && {
37720          test -z "$ac_c_werror_flag" ||
37721          test ! -s conftest.err
37722        } && test -s conftest.$ac_objext; then
37723
37724           cat >>confdefs.h <<\_ACEOF
37725 #define HAVE_U_INT64_T 1
37726 _ACEOF
37727
37728           cat >>confdefs.h <<\_ACEOF
37729 #define HAVE_INT64_T 1
37730 _ACEOF
37731
37732           { echo "$as_me:$LINENO: result: yes" >&5
37733 echo "${ECHO_T}yes" >&6; }
37734
37735 else
37736   echo "$as_me: failed program was:" >&5
37737 sed 's/^/| /' conftest.$ac_ext >&5
37738
37739
37740           { echo "$as_me:$LINENO: result: no" >&5
37741 echo "${ECHO_T}no" >&6; }
37742
37743
37744 fi
37745
37746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37747 fi
37748
37749 if (test -z "$have_uintxx_t" && \
37750     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37751 then
37752    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37753 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37754    cat >conftest.$ac_ext <<_ACEOF
37755 /* confdefs.h.  */
37756 _ACEOF
37757 cat confdefs.h >>conftest.$ac_ext
37758 cat >>conftest.$ac_ext <<_ACEOF
37759 /* end confdefs.h.  */
37760
37761           #include <sys/bitypes.h>
37762
37763 int
37764 main ()
37765 {
37766
37767           uint8_t a; uint16_t b;
37768           uint32_t c; a = b = c = 1;
37769
37770   ;
37771   return 0;
37772 }
37773 _ACEOF
37774 rm -f conftest.$ac_objext
37775 if { (ac_try="$ac_compile"
37776 case "(($ac_try" in
37777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37778   *) ac_try_echo=$ac_try;;
37779 esac
37780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37781   (eval "$ac_compile") 2>conftest.er1
37782   ac_status=$?
37783   grep -v '^ *+' conftest.er1 >conftest.err
37784   rm -f conftest.er1
37785   cat conftest.err >&5
37786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787   (exit $ac_status); } && {
37788          test -z "$ac_c_werror_flag" ||
37789          test ! -s conftest.err
37790        } && test -s conftest.$ac_objext; then
37791
37792           cat >>confdefs.h <<\_ACEOF
37793 #define HAVE_UINTXX_T 1
37794 _ACEOF
37795
37796           { echo "$as_me:$LINENO: result: yes" >&5
37797 echo "${ECHO_T}yes" >&6; }
37798
37799 else
37800   echo "$as_me: failed program was:" >&5
37801 sed 's/^/| /' conftest.$ac_ext >&5
37802
37803
37804           { echo "$as_me:$LINENO: result: no" >&5
37805 echo "${ECHO_T}no" >&6; }
37806
37807
37808 fi
37809
37810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37811 fi
37812
37813
37814
37815
37816
37817
37818
37819
37820
37821
37822
37823
37824
37825
37826 for ac_func in \
37827    fork \
37828    getcwd \
37829    gethostname \
37830    getpid \
37831    gettimeofday \
37832    setpgid \
37833    setpgrp \
37834    setsid \
37835    signal \
37836    strerror \
37837    strncmp \
37838    strncpy \
37839    vfprintf \
37840
37841 do
37842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37846   echo $ECHO_N "(cached) $ECHO_C" >&6
37847 else
37848   cat >conftest.$ac_ext <<_ACEOF
37849 /* confdefs.h.  */
37850 _ACEOF
37851 cat confdefs.h >>conftest.$ac_ext
37852 cat >>conftest.$ac_ext <<_ACEOF
37853 /* end confdefs.h.  */
37854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37856 #define $ac_func innocuous_$ac_func
37857
37858 /* System header to define __stub macros and hopefully few prototypes,
37859     which can conflict with char $ac_func (); below.
37860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37861     <limits.h> exists even on freestanding compilers.  */
37862
37863 #ifdef __STDC__
37864 # include <limits.h>
37865 #else
37866 # include <assert.h>
37867 #endif
37868
37869 #undef $ac_func
37870
37871 /* Override any GCC internal prototype to avoid an error.
37872    Use char because int might match the return type of a GCC
37873    builtin and then its argument prototype would still apply.  */
37874 #ifdef __cplusplus
37875 extern "C"
37876 #endif
37877 char $ac_func ();
37878 /* The GNU C library defines this for functions which it implements
37879     to always fail with ENOSYS.  Some functions are actually named
37880     something starting with __ and the normal name is an alias.  */
37881 #if defined __stub_$ac_func || defined __stub___$ac_func
37882 choke me
37883 #endif
37884
37885 int
37886 main ()
37887 {
37888 return $ac_func ();
37889   ;
37890   return 0;
37891 }
37892 _ACEOF
37893 rm -f conftest.$ac_objext conftest$ac_exeext
37894 if { (ac_try="$ac_link"
37895 case "(($ac_try" in
37896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37897   *) ac_try_echo=$ac_try;;
37898 esac
37899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37900   (eval "$ac_link") 2>conftest.er1
37901   ac_status=$?
37902   grep -v '^ *+' conftest.er1 >conftest.err
37903   rm -f conftest.er1
37904   cat conftest.err >&5
37905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37906   (exit $ac_status); } && {
37907          test -z "$ac_c_werror_flag" ||
37908          test ! -s conftest.err
37909        } && test -s conftest$ac_exeext &&
37910        $as_test_x conftest$ac_exeext; then
37911   eval "$as_ac_var=yes"
37912 else
37913   echo "$as_me: failed program was:" >&5
37914 sed 's/^/| /' conftest.$ac_ext >&5
37915
37916         eval "$as_ac_var=no"
37917 fi
37918
37919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37920       conftest$ac_exeext conftest.$ac_ext
37921 fi
37922 ac_res=`eval echo '${'$as_ac_var'}'`
37923                { echo "$as_me:$LINENO: result: $ac_res" >&5
37924 echo "${ECHO_T}$ac_res" >&6; }
37925 if test `eval echo '${'$as_ac_var'}'` = yes; then
37926   cat >>confdefs.h <<_ACEOF
37927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37928 _ACEOF
37929
37930 else
37931   echo 'configure: cannot find needed function.'; exit 1
37932
37933 fi
37934 done
37935
37936
37937
37938 for ac_func in fchdir
37939 do
37940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37944   echo $ECHO_N "(cached) $ECHO_C" >&6
37945 else
37946   cat >conftest.$ac_ext <<_ACEOF
37947 /* confdefs.h.  */
37948 _ACEOF
37949 cat confdefs.h >>conftest.$ac_ext
37950 cat >>conftest.$ac_ext <<_ACEOF
37951 /* end confdefs.h.  */
37952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37954 #define $ac_func innocuous_$ac_func
37955
37956 /* System header to define __stub macros and hopefully few prototypes,
37957     which can conflict with char $ac_func (); below.
37958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37959     <limits.h> exists even on freestanding compilers.  */
37960
37961 #ifdef __STDC__
37962 # include <limits.h>
37963 #else
37964 # include <assert.h>
37965 #endif
37966
37967 #undef $ac_func
37968
37969 /* Override any GCC internal prototype to avoid an error.
37970    Use char because int might match the return type of a GCC
37971    builtin and then its argument prototype would still apply.  */
37972 #ifdef __cplusplus
37973 extern "C"
37974 #endif
37975 char $ac_func ();
37976 /* The GNU C library defines this for functions which it implements
37977     to always fail with ENOSYS.  Some functions are actually named
37978     something starting with __ and the normal name is an alias.  */
37979 #if defined __stub_$ac_func || defined __stub___$ac_func
37980 choke me
37981 #endif
37982
37983 int
37984 main ()
37985 {
37986 return $ac_func ();
37987   ;
37988   return 0;
37989 }
37990 _ACEOF
37991 rm -f conftest.$ac_objext conftest$ac_exeext
37992 if { (ac_try="$ac_link"
37993 case "(($ac_try" in
37994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37995   *) ac_try_echo=$ac_try;;
37996 esac
37997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37998   (eval "$ac_link") 2>conftest.er1
37999   ac_status=$?
38000   grep -v '^ *+' conftest.er1 >conftest.err
38001   rm -f conftest.er1
38002   cat conftest.err >&5
38003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38004   (exit $ac_status); } && {
38005          test -z "$ac_c_werror_flag" ||
38006          test ! -s conftest.err
38007        } && test -s conftest$ac_exeext &&
38008        $as_test_x conftest$ac_exeext; then
38009   eval "$as_ac_var=yes"
38010 else
38011   echo "$as_me: failed program was:" >&5
38012 sed 's/^/| /' conftest.$ac_ext >&5
38013
38014         eval "$as_ac_var=no"
38015 fi
38016
38017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38018       conftest$ac_exeext conftest.$ac_ext
38019 fi
38020 ac_res=`eval echo '${'$as_ac_var'}'`
38021                { echo "$as_me:$LINENO: result: $ac_res" >&5
38022 echo "${ECHO_T}$ac_res" >&6; }
38023 if test `eval echo '${'$as_ac_var'}'` = yes; then
38024   cat >>confdefs.h <<_ACEOF
38025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38026 _ACEOF
38027  cat >>confdefs.h <<\_ACEOF
38028 #define HAVE_FCHDIR 1
38029 _ACEOF
38030
38031 fi
38032 done
38033
38034
38035 for ac_func in strtoll
38036 do
38037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38041   echo $ECHO_N "(cached) $ECHO_C" >&6
38042 else
38043   cat >conftest.$ac_ext <<_ACEOF
38044 /* confdefs.h.  */
38045 _ACEOF
38046 cat confdefs.h >>conftest.$ac_ext
38047 cat >>conftest.$ac_ext <<_ACEOF
38048 /* end confdefs.h.  */
38049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38051 #define $ac_func innocuous_$ac_func
38052
38053 /* System header to define __stub macros and hopefully few prototypes,
38054     which can conflict with char $ac_func (); below.
38055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38056     <limits.h> exists even on freestanding compilers.  */
38057
38058 #ifdef __STDC__
38059 # include <limits.h>
38060 #else
38061 # include <assert.h>
38062 #endif
38063
38064 #undef $ac_func
38065
38066 /* Override any GCC internal prototype to avoid an error.
38067    Use char because int might match the return type of a GCC
38068    builtin and then its argument prototype would still apply.  */
38069 #ifdef __cplusplus
38070 extern "C"
38071 #endif
38072 char $ac_func ();
38073 /* The GNU C library defines this for functions which it implements
38074     to always fail with ENOSYS.  Some functions are actually named
38075     something starting with __ and the normal name is an alias.  */
38076 #if defined __stub_$ac_func || defined __stub___$ac_func
38077 choke me
38078 #endif
38079
38080 int
38081 main ()
38082 {
38083 return $ac_func ();
38084   ;
38085   return 0;
38086 }
38087 _ACEOF
38088 rm -f conftest.$ac_objext conftest$ac_exeext
38089 if { (ac_try="$ac_link"
38090 case "(($ac_try" in
38091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38092   *) ac_try_echo=$ac_try;;
38093 esac
38094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38095   (eval "$ac_link") 2>conftest.er1
38096   ac_status=$?
38097   grep -v '^ *+' conftest.er1 >conftest.err
38098   rm -f conftest.er1
38099   cat conftest.err >&5
38100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38101   (exit $ac_status); } && {
38102          test -z "$ac_c_werror_flag" ||
38103          test ! -s conftest.err
38104        } && test -s conftest$ac_exeext &&
38105        $as_test_x conftest$ac_exeext; then
38106   eval "$as_ac_var=yes"
38107 else
38108   echo "$as_me: failed program was:" >&5
38109 sed 's/^/| /' conftest.$ac_ext >&5
38110
38111         eval "$as_ac_var=no"
38112 fi
38113
38114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38115       conftest$ac_exeext conftest.$ac_ext
38116 fi
38117 ac_res=`eval echo '${'$as_ac_var'}'`
38118                { echo "$as_me:$LINENO: result: $ac_res" >&5
38119 echo "${ECHO_T}$ac_res" >&6; }
38120 if test `eval echo '${'$as_ac_var'}'` = yes; then
38121   cat >>confdefs.h <<_ACEOF
38122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38123 _ACEOF
38124  cat >>confdefs.h <<\_ACEOF
38125 #define HAVE_STRTOLL 1
38126 _ACEOF
38127
38128 fi
38129 done
38130
38131
38132 for ac_func in posix_fadvise
38133 do
38134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38138   echo $ECHO_N "(cached) $ECHO_C" >&6
38139 else
38140   cat >conftest.$ac_ext <<_ACEOF
38141 /* confdefs.h.  */
38142 _ACEOF
38143 cat confdefs.h >>conftest.$ac_ext
38144 cat >>conftest.$ac_ext <<_ACEOF
38145 /* end confdefs.h.  */
38146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38148 #define $ac_func innocuous_$ac_func
38149
38150 /* System header to define __stub macros and hopefully few prototypes,
38151     which can conflict with char $ac_func (); below.
38152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38153     <limits.h> exists even on freestanding compilers.  */
38154
38155 #ifdef __STDC__
38156 # include <limits.h>
38157 #else
38158 # include <assert.h>
38159 #endif
38160
38161 #undef $ac_func
38162
38163 /* Override any GCC internal prototype to avoid an error.
38164    Use char because int might match the return type of a GCC
38165    builtin and then its argument prototype would still apply.  */
38166 #ifdef __cplusplus
38167 extern "C"
38168 #endif
38169 char $ac_func ();
38170 /* The GNU C library defines this for functions which it implements
38171     to always fail with ENOSYS.  Some functions are actually named
38172     something starting with __ and the normal name is an alias.  */
38173 #if defined __stub_$ac_func || defined __stub___$ac_func
38174 choke me
38175 #endif
38176
38177 int
38178 main ()
38179 {
38180 return $ac_func ();
38181   ;
38182   return 0;
38183 }
38184 _ACEOF
38185 rm -f conftest.$ac_objext conftest$ac_exeext
38186 if { (ac_try="$ac_link"
38187 case "(($ac_try" in
38188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38189   *) ac_try_echo=$ac_try;;
38190 esac
38191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38192   (eval "$ac_link") 2>conftest.er1
38193   ac_status=$?
38194   grep -v '^ *+' conftest.er1 >conftest.err
38195   rm -f conftest.er1
38196   cat conftest.err >&5
38197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198   (exit $ac_status); } && {
38199          test -z "$ac_c_werror_flag" ||
38200          test ! -s conftest.err
38201        } && test -s conftest$ac_exeext &&
38202        $as_test_x conftest$ac_exeext; then
38203   eval "$as_ac_var=yes"
38204 else
38205   echo "$as_me: failed program was:" >&5
38206 sed 's/^/| /' conftest.$ac_ext >&5
38207
38208         eval "$as_ac_var=no"
38209 fi
38210
38211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38212       conftest$ac_exeext conftest.$ac_ext
38213 fi
38214 ac_res=`eval echo '${'$as_ac_var'}'`
38215                { echo "$as_me:$LINENO: result: $ac_res" >&5
38216 echo "${ECHO_T}$ac_res" >&6; }
38217 if test `eval echo '${'$as_ac_var'}'` = yes; then
38218   cat >>confdefs.h <<_ACEOF
38219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38220 _ACEOF
38221
38222 fi
38223 done
38224
38225
38226 for ac_func in fdatasync
38227 do
38228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38232   echo $ECHO_N "(cached) $ECHO_C" >&6
38233 else
38234   cat >conftest.$ac_ext <<_ACEOF
38235 /* confdefs.h.  */
38236 _ACEOF
38237 cat confdefs.h >>conftest.$ac_ext
38238 cat >>conftest.$ac_ext <<_ACEOF
38239 /* end confdefs.h.  */
38240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38242 #define $ac_func innocuous_$ac_func
38243
38244 /* System header to define __stub macros and hopefully few prototypes,
38245     which can conflict with char $ac_func (); below.
38246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38247     <limits.h> exists even on freestanding compilers.  */
38248
38249 #ifdef __STDC__
38250 # include <limits.h>
38251 #else
38252 # include <assert.h>
38253 #endif
38254
38255 #undef $ac_func
38256
38257 /* Override any GCC internal prototype to avoid an error.
38258    Use char because int might match the return type of a GCC
38259    builtin and then its argument prototype would still apply.  */
38260 #ifdef __cplusplus
38261 extern "C"
38262 #endif
38263 char $ac_func ();
38264 /* The GNU C library defines this for functions which it implements
38265     to always fail with ENOSYS.  Some functions are actually named
38266     something starting with __ and the normal name is an alias.  */
38267 #if defined __stub_$ac_func || defined __stub___$ac_func
38268 choke me
38269 #endif
38270
38271 int
38272 main ()
38273 {
38274 return $ac_func ();
38275   ;
38276   return 0;
38277 }
38278 _ACEOF
38279 rm -f conftest.$ac_objext conftest$ac_exeext
38280 if { (ac_try="$ac_link"
38281 case "(($ac_try" in
38282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38283   *) ac_try_echo=$ac_try;;
38284 esac
38285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38286   (eval "$ac_link") 2>conftest.er1
38287   ac_status=$?
38288   grep -v '^ *+' conftest.er1 >conftest.err
38289   rm -f conftest.er1
38290   cat conftest.err >&5
38291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38292   (exit $ac_status); } && {
38293          test -z "$ac_c_werror_flag" ||
38294          test ! -s conftest.err
38295        } && test -s conftest$ac_exeext &&
38296        $as_test_x conftest$ac_exeext; then
38297   eval "$as_ac_var=yes"
38298 else
38299   echo "$as_me: failed program was:" >&5
38300 sed 's/^/| /' conftest.$ac_ext >&5
38301
38302         eval "$as_ac_var=no"
38303 fi
38304
38305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38306       conftest$ac_exeext conftest.$ac_ext
38307 fi
38308 ac_res=`eval echo '${'$as_ac_var'}'`
38309                { echo "$as_me:$LINENO: result: $ac_res" >&5
38310 echo "${ECHO_T}$ac_res" >&6; }
38311 if test `eval echo '${'$as_ac_var'}'` = yes; then
38312   cat >>confdefs.h <<_ACEOF
38313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38314 _ACEOF
38315
38316 fi
38317 done
38318
38319
38320
38321 for ac_func in chflags
38322 do
38323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38324 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38327   echo $ECHO_N "(cached) $ECHO_C" >&6
38328 else
38329   cat >conftest.$ac_ext <<_ACEOF
38330 /* confdefs.h.  */
38331 _ACEOF
38332 cat confdefs.h >>conftest.$ac_ext
38333 cat >>conftest.$ac_ext <<_ACEOF
38334 /* end confdefs.h.  */
38335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38337 #define $ac_func innocuous_$ac_func
38338
38339 /* System header to define __stub macros and hopefully few prototypes,
38340     which can conflict with char $ac_func (); below.
38341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38342     <limits.h> exists even on freestanding compilers.  */
38343
38344 #ifdef __STDC__
38345 # include <limits.h>
38346 #else
38347 # include <assert.h>
38348 #endif
38349
38350 #undef $ac_func
38351
38352 /* Override any GCC internal prototype to avoid an error.
38353    Use char because int might match the return type of a GCC
38354    builtin and then its argument prototype would still apply.  */
38355 #ifdef __cplusplus
38356 extern "C"
38357 #endif
38358 char $ac_func ();
38359 /* The GNU C library defines this for functions which it implements
38360     to always fail with ENOSYS.  Some functions are actually named
38361     something starting with __ and the normal name is an alias.  */
38362 #if defined __stub_$ac_func || defined __stub___$ac_func
38363 choke me
38364 #endif
38365
38366 int
38367 main ()
38368 {
38369 return $ac_func ();
38370   ;
38371   return 0;
38372 }
38373 _ACEOF
38374 rm -f conftest.$ac_objext conftest$ac_exeext
38375 if { (ac_try="$ac_link"
38376 case "(($ac_try" in
38377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38378   *) ac_try_echo=$ac_try;;
38379 esac
38380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38381   (eval "$ac_link") 2>conftest.er1
38382   ac_status=$?
38383   grep -v '^ *+' conftest.er1 >conftest.err
38384   rm -f conftest.er1
38385   cat conftest.err >&5
38386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38387   (exit $ac_status); } && {
38388          test -z "$ac_c_werror_flag" ||
38389          test ! -s conftest.err
38390        } && test -s conftest$ac_exeext &&
38391        $as_test_x conftest$ac_exeext; then
38392   eval "$as_ac_var=yes"
38393 else
38394   echo "$as_me: failed program was:" >&5
38395 sed 's/^/| /' conftest.$ac_ext >&5
38396
38397         eval "$as_ac_var=no"
38398 fi
38399
38400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38401       conftest$ac_exeext conftest.$ac_ext
38402 fi
38403 ac_res=`eval echo '${'$as_ac_var'}'`
38404                { echo "$as_me:$LINENO: result: $ac_res" >&5
38405 echo "${ECHO_T}$ac_res" >&6; }
38406 if test `eval echo '${'$as_ac_var'}'` = yes; then
38407   cat >>confdefs.h <<_ACEOF
38408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38409 _ACEOF
38410
38411 fi
38412 done
38413
38414
38415
38416
38417
38418
38419 for ac_func in snprintf vsnprintf gethostid fseeko
38420 do
38421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38425   echo $ECHO_N "(cached) $ECHO_C" >&6
38426 else
38427   cat >conftest.$ac_ext <<_ACEOF
38428 /* confdefs.h.  */
38429 _ACEOF
38430 cat confdefs.h >>conftest.$ac_ext
38431 cat >>conftest.$ac_ext <<_ACEOF
38432 /* end confdefs.h.  */
38433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38435 #define $ac_func innocuous_$ac_func
38436
38437 /* System header to define __stub macros and hopefully few prototypes,
38438     which can conflict with char $ac_func (); below.
38439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38440     <limits.h> exists even on freestanding compilers.  */
38441
38442 #ifdef __STDC__
38443 # include <limits.h>
38444 #else
38445 # include <assert.h>
38446 #endif
38447
38448 #undef $ac_func
38449
38450 /* Override any GCC internal prototype to avoid an error.
38451    Use char because int might match the return type of a GCC
38452    builtin and then its argument prototype would still apply.  */
38453 #ifdef __cplusplus
38454 extern "C"
38455 #endif
38456 char $ac_func ();
38457 /* The GNU C library defines this for functions which it implements
38458     to always fail with ENOSYS.  Some functions are actually named
38459     something starting with __ and the normal name is an alias.  */
38460 #if defined __stub_$ac_func || defined __stub___$ac_func
38461 choke me
38462 #endif
38463
38464 int
38465 main ()
38466 {
38467 return $ac_func ();
38468   ;
38469   return 0;
38470 }
38471 _ACEOF
38472 rm -f conftest.$ac_objext conftest$ac_exeext
38473 if { (ac_try="$ac_link"
38474 case "(($ac_try" in
38475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38476   *) ac_try_echo=$ac_try;;
38477 esac
38478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38479   (eval "$ac_link") 2>conftest.er1
38480   ac_status=$?
38481   grep -v '^ *+' conftest.er1 >conftest.err
38482   rm -f conftest.er1
38483   cat conftest.err >&5
38484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38485   (exit $ac_status); } && {
38486          test -z "$ac_c_werror_flag" ||
38487          test ! -s conftest.err
38488        } && test -s conftest$ac_exeext &&
38489        $as_test_x conftest$ac_exeext; then
38490   eval "$as_ac_var=yes"
38491 else
38492   echo "$as_me: failed program was:" >&5
38493 sed 's/^/| /' conftest.$ac_ext >&5
38494
38495         eval "$as_ac_var=no"
38496 fi
38497
38498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38499       conftest$ac_exeext conftest.$ac_ext
38500 fi
38501 ac_res=`eval echo '${'$as_ac_var'}'`
38502                { echo "$as_me:$LINENO: result: $ac_res" >&5
38503 echo "${ECHO_T}$ac_res" >&6; }
38504 if test `eval echo '${'$as_ac_var'}'` = yes; then
38505   cat >>confdefs.h <<_ACEOF
38506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38507 _ACEOF
38508
38509 fi
38510 done
38511
38512
38513 { echo "$as_me:$LINENO: checking for va_copy" >&5
38514 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38515 if test "${ba_cv_va_copy+set}" = set; then
38516   echo $ECHO_N "(cached) $ECHO_C" >&6
38517 else
38518
38519        cat >conftest.$ac_ext <<_ACEOF
38520 /* confdefs.h.  */
38521 _ACEOF
38522 cat confdefs.h >>conftest.$ac_ext
38523 cat >>conftest.$ac_ext <<_ACEOF
38524 /* end confdefs.h.  */
38525
38526               #include <stdarg.h>
38527               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38528               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38529
38530 int
38531 main ()
38532 {
38533
38534               call_use_va_copy(1,2,3)
38535
38536   ;
38537   return 0;
38538 }
38539 _ACEOF
38540 rm -f conftest.$ac_objext conftest$ac_exeext
38541 if { (ac_try="$ac_link"
38542 case "(($ac_try" in
38543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38544   *) ac_try_echo=$ac_try;;
38545 esac
38546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38547   (eval "$ac_link") 2>conftest.er1
38548   ac_status=$?
38549   grep -v '^ *+' conftest.er1 >conftest.err
38550   rm -f conftest.er1
38551   cat conftest.err >&5
38552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38553   (exit $ac_status); } && {
38554          test -z "$ac_c_werror_flag" ||
38555          test ! -s conftest.err
38556        } && test -s conftest$ac_exeext &&
38557        $as_test_x conftest$ac_exeext; then
38558
38559               ba_cv_va_copy=yes,
38560
38561 else
38562   echo "$as_me: failed program was:" >&5
38563 sed 's/^/| /' conftest.$ac_ext >&5
38564
38565
38566               ba_cv_va_copy=no
38567
38568
38569 fi
38570
38571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38572       conftest$ac_exeext conftest.$ac_ext
38573
38574
38575 fi
38576 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38577 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38578 test $ba_cv_va_copy = yes &&
38579 cat >>confdefs.h <<\_ACEOF
38580 #define HAVE_VA_COPY 1
38581 _ACEOF
38582
38583
38584
38585
38586
38587
38588 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38589 do
38590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38594   echo $ECHO_N "(cached) $ECHO_C" >&6
38595 else
38596   cat >conftest.$ac_ext <<_ACEOF
38597 /* confdefs.h.  */
38598 _ACEOF
38599 cat confdefs.h >>conftest.$ac_ext
38600 cat >>conftest.$ac_ext <<_ACEOF
38601 /* end confdefs.h.  */
38602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38604 #define $ac_func innocuous_$ac_func
38605
38606 /* System header to define __stub macros and hopefully few prototypes,
38607     which can conflict with char $ac_func (); below.
38608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38609     <limits.h> exists even on freestanding compilers.  */
38610
38611 #ifdef __STDC__
38612 # include <limits.h>
38613 #else
38614 # include <assert.h>
38615 #endif
38616
38617 #undef $ac_func
38618
38619 /* Override any GCC internal prototype to avoid an error.
38620    Use char because int might match the return type of a GCC
38621    builtin and then its argument prototype would still apply.  */
38622 #ifdef __cplusplus
38623 extern "C"
38624 #endif
38625 char $ac_func ();
38626 /* The GNU C library defines this for functions which it implements
38627     to always fail with ENOSYS.  Some functions are actually named
38628     something starting with __ and the normal name is an alias.  */
38629 #if defined __stub_$ac_func || defined __stub___$ac_func
38630 choke me
38631 #endif
38632
38633 int
38634 main ()
38635 {
38636 return $ac_func ();
38637   ;
38638   return 0;
38639 }
38640 _ACEOF
38641 rm -f conftest.$ac_objext conftest$ac_exeext
38642 if { (ac_try="$ac_link"
38643 case "(($ac_try" in
38644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38645   *) ac_try_echo=$ac_try;;
38646 esac
38647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38648   (eval "$ac_link") 2>conftest.er1
38649   ac_status=$?
38650   grep -v '^ *+' conftest.er1 >conftest.err
38651   rm -f conftest.er1
38652   cat conftest.err >&5
38653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38654   (exit $ac_status); } && {
38655          test -z "$ac_c_werror_flag" ||
38656          test ! -s conftest.err
38657        } && test -s conftest$ac_exeext &&
38658        $as_test_x conftest$ac_exeext; then
38659   eval "$as_ac_var=yes"
38660 else
38661   echo "$as_me: failed program was:" >&5
38662 sed 's/^/| /' conftest.$ac_ext >&5
38663
38664         eval "$as_ac_var=no"
38665 fi
38666
38667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38668       conftest$ac_exeext conftest.$ac_ext
38669 fi
38670 ac_res=`eval echo '${'$as_ac_var'}'`
38671                { echo "$as_me:$LINENO: result: $ac_res" >&5
38672 echo "${ECHO_T}$ac_res" >&6; }
38673 if test `eval echo '${'$as_ac_var'}'` = yes; then
38674   cat >>confdefs.h <<_ACEOF
38675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38676 _ACEOF
38677
38678 fi
38679 done
38680
38681
38682 # If resolver functions are not in libc check for -lnsl or -lresolv.
38683 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38684 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38685 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38686   echo $ECHO_N "(cached) $ECHO_C" >&6
38687 else
38688   cat >conftest.$ac_ext <<_ACEOF
38689 /* confdefs.h.  */
38690 _ACEOF
38691 cat confdefs.h >>conftest.$ac_ext
38692 cat >>conftest.$ac_ext <<_ACEOF
38693 /* end confdefs.h.  */
38694 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38696 #define gethostbyname_r innocuous_gethostbyname_r
38697
38698 /* System header to define __stub macros and hopefully few prototypes,
38699     which can conflict with char gethostbyname_r (); below.
38700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38701     <limits.h> exists even on freestanding compilers.  */
38702
38703 #ifdef __STDC__
38704 # include <limits.h>
38705 #else
38706 # include <assert.h>
38707 #endif
38708
38709 #undef gethostbyname_r
38710
38711 /* Override any GCC internal prototype to avoid an error.
38712    Use char because int might match the return type of a GCC
38713    builtin and then its argument prototype would still apply.  */
38714 #ifdef __cplusplus
38715 extern "C"
38716 #endif
38717 char gethostbyname_r ();
38718 /* The GNU C library defines this for functions which it implements
38719     to always fail with ENOSYS.  Some functions are actually named
38720     something starting with __ and the normal name is an alias.  */
38721 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38722 choke me
38723 #endif
38724
38725 int
38726 main ()
38727 {
38728 return gethostbyname_r ();
38729   ;
38730   return 0;
38731 }
38732 _ACEOF
38733 rm -f conftest.$ac_objext conftest$ac_exeext
38734 if { (ac_try="$ac_link"
38735 case "(($ac_try" in
38736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38737   *) ac_try_echo=$ac_try;;
38738 esac
38739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38740   (eval "$ac_link") 2>conftest.er1
38741   ac_status=$?
38742   grep -v '^ *+' conftest.er1 >conftest.err
38743   rm -f conftest.er1
38744   cat conftest.err >&5
38745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746   (exit $ac_status); } && {
38747          test -z "$ac_c_werror_flag" ||
38748          test ! -s conftest.err
38749        } && test -s conftest$ac_exeext &&
38750        $as_test_x conftest$ac_exeext; then
38751   ac_cv_func_gethostbyname_r=yes
38752 else
38753   echo "$as_me: failed program was:" >&5
38754 sed 's/^/| /' conftest.$ac_ext >&5
38755
38756         ac_cv_func_gethostbyname_r=no
38757 fi
38758
38759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38760       conftest$ac_exeext conftest.$ac_ext
38761 fi
38762 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38763 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38764 if test $ac_cv_func_gethostbyname_r = yes; then
38765   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38766 echo "${ECHO_T}using libc's resolver" >&6; }
38767 else
38768
38769 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38770 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38771 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38772   echo $ECHO_N "(cached) $ECHO_C" >&6
38773 else
38774   ac_check_lib_save_LIBS=$LIBS
38775 LIBS="-lnsl  $LIBS"
38776 cat >conftest.$ac_ext <<_ACEOF
38777 /* confdefs.h.  */
38778 _ACEOF
38779 cat confdefs.h >>conftest.$ac_ext
38780 cat >>conftest.$ac_ext <<_ACEOF
38781 /* end confdefs.h.  */
38782
38783 /* Override any GCC internal prototype to avoid an error.
38784    Use char because int might match the return type of a GCC
38785    builtin and then its argument prototype would still apply.  */
38786 #ifdef __cplusplus
38787 extern "C"
38788 #endif
38789 char gethostbyname_r ();
38790 int
38791 main ()
38792 {
38793 return gethostbyname_r ();
38794   ;
38795   return 0;
38796 }
38797 _ACEOF
38798 rm -f conftest.$ac_objext conftest$ac_exeext
38799 if { (ac_try="$ac_link"
38800 case "(($ac_try" in
38801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38802   *) ac_try_echo=$ac_try;;
38803 esac
38804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38805   (eval "$ac_link") 2>conftest.er1
38806   ac_status=$?
38807   grep -v '^ *+' conftest.er1 >conftest.err
38808   rm -f conftest.er1
38809   cat conftest.err >&5
38810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38811   (exit $ac_status); } && {
38812          test -z "$ac_c_werror_flag" ||
38813          test ! -s conftest.err
38814        } && test -s conftest$ac_exeext &&
38815        $as_test_x conftest$ac_exeext; then
38816   ac_cv_lib_nsl_gethostbyname_r=yes
38817 else
38818   echo "$as_me: failed program was:" >&5
38819 sed 's/^/| /' conftest.$ac_ext >&5
38820
38821         ac_cv_lib_nsl_gethostbyname_r=no
38822 fi
38823
38824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38825       conftest$ac_exeext conftest.$ac_ext
38826 LIBS=$ac_check_lib_save_LIBS
38827 fi
38828 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38829 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38830 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38831   cat >>confdefs.h <<_ACEOF
38832 #define HAVE_LIBNSL 1
38833 _ACEOF
38834
38835   LIBS="-lnsl $LIBS"
38836
38837 fi
38838
38839
38840 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38841 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38842 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38843   echo $ECHO_N "(cached) $ECHO_C" >&6
38844 else
38845   ac_check_lib_save_LIBS=$LIBS
38846 LIBS="-lresolv  $LIBS"
38847 cat >conftest.$ac_ext <<_ACEOF
38848 /* confdefs.h.  */
38849 _ACEOF
38850 cat confdefs.h >>conftest.$ac_ext
38851 cat >>conftest.$ac_ext <<_ACEOF
38852 /* end confdefs.h.  */
38853
38854 /* Override any GCC internal prototype to avoid an error.
38855    Use char because int might match the return type of a GCC
38856    builtin and then its argument prototype would still apply.  */
38857 #ifdef __cplusplus
38858 extern "C"
38859 #endif
38860 char gethostbyname_r ();
38861 int
38862 main ()
38863 {
38864 return gethostbyname_r ();
38865   ;
38866   return 0;
38867 }
38868 _ACEOF
38869 rm -f conftest.$ac_objext conftest$ac_exeext
38870 if { (ac_try="$ac_link"
38871 case "(($ac_try" in
38872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38873   *) ac_try_echo=$ac_try;;
38874 esac
38875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38876   (eval "$ac_link") 2>conftest.er1
38877   ac_status=$?
38878   grep -v '^ *+' conftest.er1 >conftest.err
38879   rm -f conftest.er1
38880   cat conftest.err >&5
38881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38882   (exit $ac_status); } && {
38883          test -z "$ac_c_werror_flag" ||
38884          test ! -s conftest.err
38885        } && test -s conftest$ac_exeext &&
38886        $as_test_x conftest$ac_exeext; then
38887   ac_cv_lib_resolv_gethostbyname_r=yes
38888 else
38889   echo "$as_me: failed program was:" >&5
38890 sed 's/^/| /' conftest.$ac_ext >&5
38891
38892         ac_cv_lib_resolv_gethostbyname_r=no
38893 fi
38894
38895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38896       conftest$ac_exeext conftest.$ac_ext
38897 LIBS=$ac_check_lib_save_LIBS
38898 fi
38899 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38900 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38901 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38902   cat >>confdefs.h <<_ACEOF
38903 #define HAVE_LIBRESOLV 1
38904 _ACEOF
38905
38906   LIBS="-lresolv $LIBS"
38907
38908 fi
38909
38910 fi
38911
38912
38913
38914 for ac_func in inet_pton
38915 do
38916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38920   echo $ECHO_N "(cached) $ECHO_C" >&6
38921 else
38922   cat >conftest.$ac_ext <<_ACEOF
38923 /* confdefs.h.  */
38924 _ACEOF
38925 cat confdefs.h >>conftest.$ac_ext
38926 cat >>conftest.$ac_ext <<_ACEOF
38927 /* end confdefs.h.  */
38928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38930 #define $ac_func innocuous_$ac_func
38931
38932 /* System header to define __stub macros and hopefully few prototypes,
38933     which can conflict with char $ac_func (); below.
38934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38935     <limits.h> exists even on freestanding compilers.  */
38936
38937 #ifdef __STDC__
38938 # include <limits.h>
38939 #else
38940 # include <assert.h>
38941 #endif
38942
38943 #undef $ac_func
38944
38945 /* Override any GCC internal prototype to avoid an error.
38946    Use char because int might match the return type of a GCC
38947    builtin and then its argument prototype would still apply.  */
38948 #ifdef __cplusplus
38949 extern "C"
38950 #endif
38951 char $ac_func ();
38952 /* The GNU C library defines this for functions which it implements
38953     to always fail with ENOSYS.  Some functions are actually named
38954     something starting with __ and the normal name is an alias.  */
38955 #if defined __stub_$ac_func || defined __stub___$ac_func
38956 choke me
38957 #endif
38958
38959 int
38960 main ()
38961 {
38962 return $ac_func ();
38963   ;
38964   return 0;
38965 }
38966 _ACEOF
38967 rm -f conftest.$ac_objext conftest$ac_exeext
38968 if { (ac_try="$ac_link"
38969 case "(($ac_try" in
38970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38971   *) ac_try_echo=$ac_try;;
38972 esac
38973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38974   (eval "$ac_link") 2>conftest.er1
38975   ac_status=$?
38976   grep -v '^ *+' conftest.er1 >conftest.err
38977   rm -f conftest.er1
38978   cat conftest.err >&5
38979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38980   (exit $ac_status); } && {
38981          test -z "$ac_c_werror_flag" ||
38982          test ! -s conftest.err
38983        } && test -s conftest$ac_exeext &&
38984        $as_test_x conftest$ac_exeext; then
38985   eval "$as_ac_var=yes"
38986 else
38987   echo "$as_me: failed program was:" >&5
38988 sed 's/^/| /' conftest.$ac_ext >&5
38989
38990         eval "$as_ac_var=no"
38991 fi
38992
38993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38994       conftest$ac_exeext conftest.$ac_ext
38995 fi
38996 ac_res=`eval echo '${'$as_ac_var'}'`
38997                { echo "$as_me:$LINENO: result: $ac_res" >&5
38998 echo "${ECHO_T}$ac_res" >&6; }
38999 if test `eval echo '${'$as_ac_var'}'` = yes; then
39000   cat >>confdefs.h <<_ACEOF
39001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39002 _ACEOF
39003  cat >>confdefs.h <<\_ACEOF
39004 #define HAVE_INET_PTON 1
39005 _ACEOF
39006
39007 fi
39008 done
39009
39010
39011 for ac_func in inet_ntop
39012 do
39013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39017   echo $ECHO_N "(cached) $ECHO_C" >&6
39018 else
39019   cat >conftest.$ac_ext <<_ACEOF
39020 /* confdefs.h.  */
39021 _ACEOF
39022 cat confdefs.h >>conftest.$ac_ext
39023 cat >>conftest.$ac_ext <<_ACEOF
39024 /* end confdefs.h.  */
39025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39026    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39027 #define $ac_func innocuous_$ac_func
39028
39029 /* System header to define __stub macros and hopefully few prototypes,
39030     which can conflict with char $ac_func (); below.
39031     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39032     <limits.h> exists even on freestanding compilers.  */
39033
39034 #ifdef __STDC__
39035 # include <limits.h>
39036 #else
39037 # include <assert.h>
39038 #endif
39039
39040 #undef $ac_func
39041
39042 /* Override any GCC internal prototype to avoid an error.
39043    Use char because int might match the return type of a GCC
39044    builtin and then its argument prototype would still apply.  */
39045 #ifdef __cplusplus
39046 extern "C"
39047 #endif
39048 char $ac_func ();
39049 /* The GNU C library defines this for functions which it implements
39050     to always fail with ENOSYS.  Some functions are actually named
39051     something starting with __ and the normal name is an alias.  */
39052 #if defined __stub_$ac_func || defined __stub___$ac_func
39053 choke me
39054 #endif
39055
39056 int
39057 main ()
39058 {
39059 return $ac_func ();
39060   ;
39061   return 0;
39062 }
39063 _ACEOF
39064 rm -f conftest.$ac_objext conftest$ac_exeext
39065 if { (ac_try="$ac_link"
39066 case "(($ac_try" in
39067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39068   *) ac_try_echo=$ac_try;;
39069 esac
39070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39071   (eval "$ac_link") 2>conftest.er1
39072   ac_status=$?
39073   grep -v '^ *+' conftest.er1 >conftest.err
39074   rm -f conftest.er1
39075   cat conftest.err >&5
39076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39077   (exit $ac_status); } && {
39078          test -z "$ac_c_werror_flag" ||
39079          test ! -s conftest.err
39080        } && test -s conftest$ac_exeext &&
39081        $as_test_x conftest$ac_exeext; then
39082   eval "$as_ac_var=yes"
39083 else
39084   echo "$as_me: failed program was:" >&5
39085 sed 's/^/| /' conftest.$ac_ext >&5
39086
39087         eval "$as_ac_var=no"
39088 fi
39089
39090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39091       conftest$ac_exeext conftest.$ac_ext
39092 fi
39093 ac_res=`eval echo '${'$as_ac_var'}'`
39094                { echo "$as_me:$LINENO: result: $ac_res" >&5
39095 echo "${ECHO_T}$ac_res" >&6; }
39096 if test `eval echo '${'$as_ac_var'}'` = yes; then
39097   cat >>confdefs.h <<_ACEOF
39098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39099 _ACEOF
39100  cat >>confdefs.h <<\_ACEOF
39101 #define HAVE_INET_NTOP 1
39102 _ACEOF
39103
39104 fi
39105 done
39106
39107
39108 for ac_func in gethostbyname2
39109 do
39110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39111 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39114   echo $ECHO_N "(cached) $ECHO_C" >&6
39115 else
39116   cat >conftest.$ac_ext <<_ACEOF
39117 /* confdefs.h.  */
39118 _ACEOF
39119 cat confdefs.h >>conftest.$ac_ext
39120 cat >>conftest.$ac_ext <<_ACEOF
39121 /* end confdefs.h.  */
39122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39124 #define $ac_func innocuous_$ac_func
39125
39126 /* System header to define __stub macros and hopefully few prototypes,
39127     which can conflict with char $ac_func (); below.
39128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39129     <limits.h> exists even on freestanding compilers.  */
39130
39131 #ifdef __STDC__
39132 # include <limits.h>
39133 #else
39134 # include <assert.h>
39135 #endif
39136
39137 #undef $ac_func
39138
39139 /* Override any GCC internal prototype to avoid an error.
39140    Use char because int might match the return type of a GCC
39141    builtin and then its argument prototype would still apply.  */
39142 #ifdef __cplusplus
39143 extern "C"
39144 #endif
39145 char $ac_func ();
39146 /* The GNU C library defines this for functions which it implements
39147     to always fail with ENOSYS.  Some functions are actually named
39148     something starting with __ and the normal name is an alias.  */
39149 #if defined __stub_$ac_func || defined __stub___$ac_func
39150 choke me
39151 #endif
39152
39153 int
39154 main ()
39155 {
39156 return $ac_func ();
39157   ;
39158   return 0;
39159 }
39160 _ACEOF
39161 rm -f conftest.$ac_objext conftest$ac_exeext
39162 if { (ac_try="$ac_link"
39163 case "(($ac_try" in
39164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39165   *) ac_try_echo=$ac_try;;
39166 esac
39167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39168   (eval "$ac_link") 2>conftest.er1
39169   ac_status=$?
39170   grep -v '^ *+' conftest.er1 >conftest.err
39171   rm -f conftest.er1
39172   cat conftest.err >&5
39173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39174   (exit $ac_status); } && {
39175          test -z "$ac_c_werror_flag" ||
39176          test ! -s conftest.err
39177        } && test -s conftest$ac_exeext &&
39178        $as_test_x conftest$ac_exeext; then
39179   eval "$as_ac_var=yes"
39180 else
39181   echo "$as_me: failed program was:" >&5
39182 sed 's/^/| /' conftest.$ac_ext >&5
39183
39184         eval "$as_ac_var=no"
39185 fi
39186
39187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39188       conftest$ac_exeext conftest.$ac_ext
39189 fi
39190 ac_res=`eval echo '${'$as_ac_var'}'`
39191                { echo "$as_me:$LINENO: result: $ac_res" >&5
39192 echo "${ECHO_T}$ac_res" >&6; }
39193 if test `eval echo '${'$as_ac_var'}'` = yes; then
39194   cat >>confdefs.h <<_ACEOF
39195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39196 _ACEOF
39197  cat >>confdefs.h <<\_ACEOF
39198 #define HAVE_GETHOSTBYNAME2 1
39199 _ACEOF
39200
39201 fi
39202 done
39203
39204
39205 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39206 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39207 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39208   echo $ECHO_N "(cached) $ECHO_C" >&6
39209 else
39210
39211        cat >conftest.$ac_ext <<_ACEOF
39212 /* confdefs.h.  */
39213 _ACEOF
39214 cat confdefs.h >>conftest.$ac_ext
39215 cat >>conftest.$ac_ext <<_ACEOF
39216 /* end confdefs.h.  */
39217
39218               #include <sys/socket.h>
39219
39220 int
39221 main ()
39222 {
39223
39224               struct sockaddr s; s.sa_len;
39225
39226   ;
39227   return 0;
39228 }
39229 _ACEOF
39230 rm -f conftest.$ac_objext
39231 if { (ac_try="$ac_compile"
39232 case "(($ac_try" in
39233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39234   *) ac_try_echo=$ac_try;;
39235 esac
39236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39237   (eval "$ac_compile") 2>conftest.er1
39238   ac_status=$?
39239   grep -v '^ *+' conftest.er1 >conftest.err
39240   rm -f conftest.er1
39241   cat conftest.err >&5
39242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39243   (exit $ac_status); } && {
39244          test -z "$ac_c_werror_flag" ||
39245          test ! -s conftest.err
39246        } && test -s conftest.$ac_objext; then
39247
39248              ac_cv_struct_sockaddr_sa_len=yes
39249
39250 else
39251   echo "$as_me: failed program was:" >&5
39252 sed 's/^/| /' conftest.$ac_ext >&5
39253
39254         ac_cv_struct_sockaddr_sa_len=no
39255
39256
39257 fi
39258
39259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39260
39261
39262 fi
39263 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39264 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39265
39266 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39267
39268 cat >>confdefs.h <<\_ACEOF
39269 #define HAVE_SA_LEN 1
39270 _ACEOF
39271
39272 fi
39273
39274
39275 for ac_func in strftime
39276 do
39277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39281   echo $ECHO_N "(cached) $ECHO_C" >&6
39282 else
39283   cat >conftest.$ac_ext <<_ACEOF
39284 /* confdefs.h.  */
39285 _ACEOF
39286 cat confdefs.h >>conftest.$ac_ext
39287 cat >>conftest.$ac_ext <<_ACEOF
39288 /* end confdefs.h.  */
39289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39290    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39291 #define $ac_func innocuous_$ac_func
39292
39293 /* System header to define __stub macros and hopefully few prototypes,
39294     which can conflict with char $ac_func (); below.
39295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39296     <limits.h> exists even on freestanding compilers.  */
39297
39298 #ifdef __STDC__
39299 # include <limits.h>
39300 #else
39301 # include <assert.h>
39302 #endif
39303
39304 #undef $ac_func
39305
39306 /* Override any GCC internal prototype to avoid an error.
39307    Use char because int might match the return type of a GCC
39308    builtin and then its argument prototype would still apply.  */
39309 #ifdef __cplusplus
39310 extern "C"
39311 #endif
39312 char $ac_func ();
39313 /* The GNU C library defines this for functions which it implements
39314     to always fail with ENOSYS.  Some functions are actually named
39315     something starting with __ and the normal name is an alias.  */
39316 #if defined __stub_$ac_func || defined __stub___$ac_func
39317 choke me
39318 #endif
39319
39320 int
39321 main ()
39322 {
39323 return $ac_func ();
39324   ;
39325   return 0;
39326 }
39327 _ACEOF
39328 rm -f conftest.$ac_objext conftest$ac_exeext
39329 if { (ac_try="$ac_link"
39330 case "(($ac_try" in
39331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39332   *) ac_try_echo=$ac_try;;
39333 esac
39334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39335   (eval "$ac_link") 2>conftest.er1
39336   ac_status=$?
39337   grep -v '^ *+' conftest.er1 >conftest.err
39338   rm -f conftest.er1
39339   cat conftest.err >&5
39340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39341   (exit $ac_status); } && {
39342          test -z "$ac_c_werror_flag" ||
39343          test ! -s conftest.err
39344        } && test -s conftest$ac_exeext &&
39345        $as_test_x conftest$ac_exeext; then
39346   eval "$as_ac_var=yes"
39347 else
39348   echo "$as_me: failed program was:" >&5
39349 sed 's/^/| /' conftest.$ac_ext >&5
39350
39351         eval "$as_ac_var=no"
39352 fi
39353
39354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39355       conftest$ac_exeext conftest.$ac_ext
39356 fi
39357 ac_res=`eval echo '${'$as_ac_var'}'`
39358                { echo "$as_me:$LINENO: result: $ac_res" >&5
39359 echo "${ECHO_T}$ac_res" >&6; }
39360 if test `eval echo '${'$as_ac_var'}'` = yes; then
39361   cat >>confdefs.h <<_ACEOF
39362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39363 _ACEOF
39364
39365 else
39366   # strftime is in -lintl on SCO UNIX.
39367 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39368 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39369 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39370   echo $ECHO_N "(cached) $ECHO_C" >&6
39371 else
39372   ac_check_lib_save_LIBS=$LIBS
39373 LIBS="-lintl  $LIBS"
39374 cat >conftest.$ac_ext <<_ACEOF
39375 /* confdefs.h.  */
39376 _ACEOF
39377 cat confdefs.h >>conftest.$ac_ext
39378 cat >>conftest.$ac_ext <<_ACEOF
39379 /* end confdefs.h.  */
39380
39381 /* Override any GCC internal prototype to avoid an error.
39382    Use char because int might match the return type of a GCC
39383    builtin and then its argument prototype would still apply.  */
39384 #ifdef __cplusplus
39385 extern "C"
39386 #endif
39387 char strftime ();
39388 int
39389 main ()
39390 {
39391 return strftime ();
39392   ;
39393   return 0;
39394 }
39395 _ACEOF
39396 rm -f conftest.$ac_objext conftest$ac_exeext
39397 if { (ac_try="$ac_link"
39398 case "(($ac_try" in
39399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39400   *) ac_try_echo=$ac_try;;
39401 esac
39402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39403   (eval "$ac_link") 2>conftest.er1
39404   ac_status=$?
39405   grep -v '^ *+' conftest.er1 >conftest.err
39406   rm -f conftest.er1
39407   cat conftest.err >&5
39408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39409   (exit $ac_status); } && {
39410          test -z "$ac_c_werror_flag" ||
39411          test ! -s conftest.err
39412        } && test -s conftest$ac_exeext &&
39413        $as_test_x conftest$ac_exeext; then
39414   ac_cv_lib_intl_strftime=yes
39415 else
39416   echo "$as_me: failed program was:" >&5
39417 sed 's/^/| /' conftest.$ac_ext >&5
39418
39419         ac_cv_lib_intl_strftime=no
39420 fi
39421
39422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39423       conftest$ac_exeext conftest.$ac_ext
39424 LIBS=$ac_check_lib_save_LIBS
39425 fi
39426 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39427 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39428 if test $ac_cv_lib_intl_strftime = yes; then
39429   cat >>confdefs.h <<\_ACEOF
39430 #define HAVE_STRFTIME 1
39431 _ACEOF
39432
39433 LIBS="-lintl $LIBS"
39434 fi
39435
39436 fi
39437 done
39438
39439
39440 for ac_func in vprintf
39441 do
39442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39446   echo $ECHO_N "(cached) $ECHO_C" >&6
39447 else
39448   cat >conftest.$ac_ext <<_ACEOF
39449 /* confdefs.h.  */
39450 _ACEOF
39451 cat confdefs.h >>conftest.$ac_ext
39452 cat >>conftest.$ac_ext <<_ACEOF
39453 /* end confdefs.h.  */
39454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39456 #define $ac_func innocuous_$ac_func
39457
39458 /* System header to define __stub macros and hopefully few prototypes,
39459     which can conflict with char $ac_func (); below.
39460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39461     <limits.h> exists even on freestanding compilers.  */
39462
39463 #ifdef __STDC__
39464 # include <limits.h>
39465 #else
39466 # include <assert.h>
39467 #endif
39468
39469 #undef $ac_func
39470
39471 /* Override any GCC internal prototype to avoid an error.
39472    Use char because int might match the return type of a GCC
39473    builtin and then its argument prototype would still apply.  */
39474 #ifdef __cplusplus
39475 extern "C"
39476 #endif
39477 char $ac_func ();
39478 /* The GNU C library defines this for functions which it implements
39479     to always fail with ENOSYS.  Some functions are actually named
39480     something starting with __ and the normal name is an alias.  */
39481 #if defined __stub_$ac_func || defined __stub___$ac_func
39482 choke me
39483 #endif
39484
39485 int
39486 main ()
39487 {
39488 return $ac_func ();
39489   ;
39490   return 0;
39491 }
39492 _ACEOF
39493 rm -f conftest.$ac_objext conftest$ac_exeext
39494 if { (ac_try="$ac_link"
39495 case "(($ac_try" in
39496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39497   *) ac_try_echo=$ac_try;;
39498 esac
39499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39500   (eval "$ac_link") 2>conftest.er1
39501   ac_status=$?
39502   grep -v '^ *+' conftest.er1 >conftest.err
39503   rm -f conftest.er1
39504   cat conftest.err >&5
39505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39506   (exit $ac_status); } && {
39507          test -z "$ac_c_werror_flag" ||
39508          test ! -s conftest.err
39509        } && test -s conftest$ac_exeext &&
39510        $as_test_x conftest$ac_exeext; then
39511   eval "$as_ac_var=yes"
39512 else
39513   echo "$as_me: failed program was:" >&5
39514 sed 's/^/| /' conftest.$ac_ext >&5
39515
39516         eval "$as_ac_var=no"
39517 fi
39518
39519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39520       conftest$ac_exeext conftest.$ac_ext
39521 fi
39522 ac_res=`eval echo '${'$as_ac_var'}'`
39523                { echo "$as_me:$LINENO: result: $ac_res" >&5
39524 echo "${ECHO_T}$ac_res" >&6; }
39525 if test `eval echo '${'$as_ac_var'}'` = yes; then
39526   cat >>confdefs.h <<_ACEOF
39527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39528 _ACEOF
39529
39530 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39531 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39532 if test "${ac_cv_func__doprnt+set}" = set; then
39533   echo $ECHO_N "(cached) $ECHO_C" >&6
39534 else
39535   cat >conftest.$ac_ext <<_ACEOF
39536 /* confdefs.h.  */
39537 _ACEOF
39538 cat confdefs.h >>conftest.$ac_ext
39539 cat >>conftest.$ac_ext <<_ACEOF
39540 /* end confdefs.h.  */
39541 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39543 #define _doprnt innocuous__doprnt
39544
39545 /* System header to define __stub macros and hopefully few prototypes,
39546     which can conflict with char _doprnt (); below.
39547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39548     <limits.h> exists even on freestanding compilers.  */
39549
39550 #ifdef __STDC__
39551 # include <limits.h>
39552 #else
39553 # include <assert.h>
39554 #endif
39555
39556 #undef _doprnt
39557
39558 /* Override any GCC internal prototype to avoid an error.
39559    Use char because int might match the return type of a GCC
39560    builtin and then its argument prototype would still apply.  */
39561 #ifdef __cplusplus
39562 extern "C"
39563 #endif
39564 char _doprnt ();
39565 /* The GNU C library defines this for functions which it implements
39566     to always fail with ENOSYS.  Some functions are actually named
39567     something starting with __ and the normal name is an alias.  */
39568 #if defined __stub__doprnt || defined __stub____doprnt
39569 choke me
39570 #endif
39571
39572 int
39573 main ()
39574 {
39575 return _doprnt ();
39576   ;
39577   return 0;
39578 }
39579 _ACEOF
39580 rm -f conftest.$ac_objext conftest$ac_exeext
39581 if { (ac_try="$ac_link"
39582 case "(($ac_try" in
39583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39584   *) ac_try_echo=$ac_try;;
39585 esac
39586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39587   (eval "$ac_link") 2>conftest.er1
39588   ac_status=$?
39589   grep -v '^ *+' conftest.er1 >conftest.err
39590   rm -f conftest.er1
39591   cat conftest.err >&5
39592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593   (exit $ac_status); } && {
39594          test -z "$ac_c_werror_flag" ||
39595          test ! -s conftest.err
39596        } && test -s conftest$ac_exeext &&
39597        $as_test_x conftest$ac_exeext; then
39598   ac_cv_func__doprnt=yes
39599 else
39600   echo "$as_me: failed program was:" >&5
39601 sed 's/^/| /' conftest.$ac_ext >&5
39602
39603         ac_cv_func__doprnt=no
39604 fi
39605
39606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39607       conftest$ac_exeext conftest.$ac_ext
39608 fi
39609 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39610 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39611 if test $ac_cv_func__doprnt = yes; then
39612
39613 cat >>confdefs.h <<\_ACEOF
39614 #define HAVE_DOPRNT 1
39615 _ACEOF
39616
39617 fi
39618
39619 fi
39620 done
39621
39622
39623 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39624 # for constant arguments.  Useless!
39625 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39626 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39627 if test "${ac_cv_working_alloca_h+set}" = set; then
39628   echo $ECHO_N "(cached) $ECHO_C" >&6
39629 else
39630   cat >conftest.$ac_ext <<_ACEOF
39631 /* confdefs.h.  */
39632 _ACEOF
39633 cat confdefs.h >>conftest.$ac_ext
39634 cat >>conftest.$ac_ext <<_ACEOF
39635 /* end confdefs.h.  */
39636 #include <alloca.h>
39637 int
39638 main ()
39639 {
39640 char *p = (char *) alloca (2 * sizeof (int));
39641                           if (p) return 0;
39642   ;
39643   return 0;
39644 }
39645 _ACEOF
39646 rm -f conftest.$ac_objext conftest$ac_exeext
39647 if { (ac_try="$ac_link"
39648 case "(($ac_try" in
39649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39650   *) ac_try_echo=$ac_try;;
39651 esac
39652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39653   (eval "$ac_link") 2>conftest.er1
39654   ac_status=$?
39655   grep -v '^ *+' conftest.er1 >conftest.err
39656   rm -f conftest.er1
39657   cat conftest.err >&5
39658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39659   (exit $ac_status); } && {
39660          test -z "$ac_c_werror_flag" ||
39661          test ! -s conftest.err
39662        } && test -s conftest$ac_exeext &&
39663        $as_test_x conftest$ac_exeext; then
39664   ac_cv_working_alloca_h=yes
39665 else
39666   echo "$as_me: failed program was:" >&5
39667 sed 's/^/| /' conftest.$ac_ext >&5
39668
39669         ac_cv_working_alloca_h=no
39670 fi
39671
39672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39673       conftest$ac_exeext conftest.$ac_ext
39674 fi
39675 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39676 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39677 if test $ac_cv_working_alloca_h = yes; then
39678
39679 cat >>confdefs.h <<\_ACEOF
39680 #define HAVE_ALLOCA_H 1
39681 _ACEOF
39682
39683 fi
39684
39685 { echo "$as_me:$LINENO: checking for alloca" >&5
39686 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39687 if test "${ac_cv_func_alloca_works+set}" = set; then
39688   echo $ECHO_N "(cached) $ECHO_C" >&6
39689 else
39690   cat >conftest.$ac_ext <<_ACEOF
39691 /* confdefs.h.  */
39692 _ACEOF
39693 cat confdefs.h >>conftest.$ac_ext
39694 cat >>conftest.$ac_ext <<_ACEOF
39695 /* end confdefs.h.  */
39696 #ifdef __GNUC__
39697 # define alloca __builtin_alloca
39698 #else
39699 # ifdef _MSC_VER
39700 #  include <malloc.h>
39701 #  define alloca _alloca
39702 # else
39703 #  ifdef HAVE_ALLOCA_H
39704 #   include <alloca.h>
39705 #  else
39706 #   ifdef _AIX
39707  #pragma alloca
39708 #   else
39709 #    ifndef alloca /* predefined by HP cc +Olibcalls */
39710 char *alloca ();
39711 #    endif
39712 #   endif
39713 #  endif
39714 # endif
39715 #endif
39716
39717 int
39718 main ()
39719 {
39720 char *p = (char *) alloca (1);
39721                                     if (p) return 0;
39722   ;
39723   return 0;
39724 }
39725 _ACEOF
39726 rm -f conftest.$ac_objext conftest$ac_exeext
39727 if { (ac_try="$ac_link"
39728 case "(($ac_try" in
39729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39730   *) ac_try_echo=$ac_try;;
39731 esac
39732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39733   (eval "$ac_link") 2>conftest.er1
39734   ac_status=$?
39735   grep -v '^ *+' conftest.er1 >conftest.err
39736   rm -f conftest.er1
39737   cat conftest.err >&5
39738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39739   (exit $ac_status); } && {
39740          test -z "$ac_c_werror_flag" ||
39741          test ! -s conftest.err
39742        } && test -s conftest$ac_exeext &&
39743        $as_test_x conftest$ac_exeext; then
39744   ac_cv_func_alloca_works=yes
39745 else
39746   echo "$as_me: failed program was:" >&5
39747 sed 's/^/| /' conftest.$ac_ext >&5
39748
39749         ac_cv_func_alloca_works=no
39750 fi
39751
39752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39753       conftest$ac_exeext conftest.$ac_ext
39754 fi
39755 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39756 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39757
39758 if test $ac_cv_func_alloca_works = yes; then
39759
39760 cat >>confdefs.h <<\_ACEOF
39761 #define HAVE_ALLOCA 1
39762 _ACEOF
39763
39764 else
39765   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39766 # that cause trouble.  Some versions do not even contain alloca or
39767 # contain a buggy version.  If you still want to use their alloca,
39768 # use ar to extract alloca.o from them instead of compiling alloca.c.
39769
39770 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39771
39772 cat >>confdefs.h <<\_ACEOF
39773 #define C_ALLOCA 1
39774 _ACEOF
39775
39776
39777 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39778 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39779 if test "${ac_cv_os_cray+set}" = set; then
39780   echo $ECHO_N "(cached) $ECHO_C" >&6
39781 else
39782   cat >conftest.$ac_ext <<_ACEOF
39783 /* confdefs.h.  */
39784 _ACEOF
39785 cat confdefs.h >>conftest.$ac_ext
39786 cat >>conftest.$ac_ext <<_ACEOF
39787 /* end confdefs.h.  */
39788 #if defined CRAY && ! defined CRAY2
39789 webecray
39790 #else
39791 wenotbecray
39792 #endif
39793
39794 _ACEOF
39795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39796   $EGREP "webecray" >/dev/null 2>&1; then
39797   ac_cv_os_cray=yes
39798 else
39799   ac_cv_os_cray=no
39800 fi
39801 rm -f conftest*
39802
39803 fi
39804 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39805 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39806 if test $ac_cv_os_cray = yes; then
39807   for ac_func in _getb67 GETB67 getb67; do
39808     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39812   echo $ECHO_N "(cached) $ECHO_C" >&6
39813 else
39814   cat >conftest.$ac_ext <<_ACEOF
39815 /* confdefs.h.  */
39816 _ACEOF
39817 cat confdefs.h >>conftest.$ac_ext
39818 cat >>conftest.$ac_ext <<_ACEOF
39819 /* end confdefs.h.  */
39820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39822 #define $ac_func innocuous_$ac_func
39823
39824 /* System header to define __stub macros and hopefully few prototypes,
39825     which can conflict with char $ac_func (); below.
39826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39827     <limits.h> exists even on freestanding compilers.  */
39828
39829 #ifdef __STDC__
39830 # include <limits.h>
39831 #else
39832 # include <assert.h>
39833 #endif
39834
39835 #undef $ac_func
39836
39837 /* Override any GCC internal prototype to avoid an error.
39838    Use char because int might match the return type of a GCC
39839    builtin and then its argument prototype would still apply.  */
39840 #ifdef __cplusplus
39841 extern "C"
39842 #endif
39843 char $ac_func ();
39844 /* The GNU C library defines this for functions which it implements
39845     to always fail with ENOSYS.  Some functions are actually named
39846     something starting with __ and the normal name is an alias.  */
39847 #if defined __stub_$ac_func || defined __stub___$ac_func
39848 choke me
39849 #endif
39850
39851 int
39852 main ()
39853 {
39854 return $ac_func ();
39855   ;
39856   return 0;
39857 }
39858 _ACEOF
39859 rm -f conftest.$ac_objext conftest$ac_exeext
39860 if { (ac_try="$ac_link"
39861 case "(($ac_try" in
39862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39863   *) ac_try_echo=$ac_try;;
39864 esac
39865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39866   (eval "$ac_link") 2>conftest.er1
39867   ac_status=$?
39868   grep -v '^ *+' conftest.er1 >conftest.err
39869   rm -f conftest.er1
39870   cat conftest.err >&5
39871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39872   (exit $ac_status); } && {
39873          test -z "$ac_c_werror_flag" ||
39874          test ! -s conftest.err
39875        } && test -s conftest$ac_exeext &&
39876        $as_test_x conftest$ac_exeext; then
39877   eval "$as_ac_var=yes"
39878 else
39879   echo "$as_me: failed program was:" >&5
39880 sed 's/^/| /' conftest.$ac_ext >&5
39881
39882         eval "$as_ac_var=no"
39883 fi
39884
39885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39886       conftest$ac_exeext conftest.$ac_ext
39887 fi
39888 ac_res=`eval echo '${'$as_ac_var'}'`
39889                { echo "$as_me:$LINENO: result: $ac_res" >&5
39890 echo "${ECHO_T}$ac_res" >&6; }
39891 if test `eval echo '${'$as_ac_var'}'` = yes; then
39892
39893 cat >>confdefs.h <<_ACEOF
39894 #define CRAY_STACKSEG_END $ac_func
39895 _ACEOF
39896
39897     break
39898 fi
39899
39900   done
39901 fi
39902
39903 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39904 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39905 if test "${ac_cv_c_stack_direction+set}" = set; then
39906   echo $ECHO_N "(cached) $ECHO_C" >&6
39907 else
39908   if test "$cross_compiling" = yes; then
39909   ac_cv_c_stack_direction=0
39910 else
39911   cat >conftest.$ac_ext <<_ACEOF
39912 /* confdefs.h.  */
39913 _ACEOF
39914 cat confdefs.h >>conftest.$ac_ext
39915 cat >>conftest.$ac_ext <<_ACEOF
39916 /* end confdefs.h.  */
39917 $ac_includes_default
39918 int
39919 find_stack_direction ()
39920 {
39921   static char *addr = 0;
39922   auto char dummy;
39923   if (addr == 0)
39924     {
39925       addr = &dummy;
39926       return find_stack_direction ();
39927     }
39928   else
39929     return (&dummy > addr) ? 1 : -1;
39930 }
39931
39932 int
39933 main ()
39934 {
39935   return find_stack_direction () < 0;
39936 }
39937 _ACEOF
39938 rm -f conftest$ac_exeext
39939 if { (ac_try="$ac_link"
39940 case "(($ac_try" in
39941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39942   *) ac_try_echo=$ac_try;;
39943 esac
39944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39945   (eval "$ac_link") 2>&5
39946   ac_status=$?
39947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39949   { (case "(($ac_try" in
39950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39951   *) ac_try_echo=$ac_try;;
39952 esac
39953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39954   (eval "$ac_try") 2>&5
39955   ac_status=$?
39956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39957   (exit $ac_status); }; }; then
39958   ac_cv_c_stack_direction=1
39959 else
39960   echo "$as_me: program exited with status $ac_status" >&5
39961 echo "$as_me: failed program was:" >&5
39962 sed 's/^/| /' conftest.$ac_ext >&5
39963
39964 ( exit $ac_status )
39965 ac_cv_c_stack_direction=-1
39966 fi
39967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39968 fi
39969
39970
39971 fi
39972 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39973 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39974
39975 cat >>confdefs.h <<_ACEOF
39976 #define STACK_DIRECTION $ac_cv_c_stack_direction
39977 _ACEOF
39978
39979
39980 fi
39981
39982 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39983 # -lseq on Dynix/PTX, -lgen on Unixware.
39984 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39985 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39986 if test "${ac_cv_search_getmntent+set}" = set; then
39987   echo $ECHO_N "(cached) $ECHO_C" >&6
39988 else
39989   ac_func_search_save_LIBS=$LIBS
39990 cat >conftest.$ac_ext <<_ACEOF
39991 /* confdefs.h.  */
39992 _ACEOF
39993 cat confdefs.h >>conftest.$ac_ext
39994 cat >>conftest.$ac_ext <<_ACEOF
39995 /* end confdefs.h.  */
39996
39997 /* Override any GCC internal prototype to avoid an error.
39998    Use char because int might match the return type of a GCC
39999    builtin and then its argument prototype would still apply.  */
40000 #ifdef __cplusplus
40001 extern "C"
40002 #endif
40003 char getmntent ();
40004 int
40005 main ()
40006 {
40007 return getmntent ();
40008   ;
40009   return 0;
40010 }
40011 _ACEOF
40012 for ac_lib in '' sun seq gen; do
40013   if test -z "$ac_lib"; then
40014     ac_res="none required"
40015   else
40016     ac_res=-l$ac_lib
40017     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40018   fi
40019   rm -f conftest.$ac_objext conftest$ac_exeext
40020 if { (ac_try="$ac_link"
40021 case "(($ac_try" in
40022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40023   *) ac_try_echo=$ac_try;;
40024 esac
40025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40026   (eval "$ac_link") 2>conftest.er1
40027   ac_status=$?
40028   grep -v '^ *+' conftest.er1 >conftest.err
40029   rm -f conftest.er1
40030   cat conftest.err >&5
40031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40032   (exit $ac_status); } && {
40033          test -z "$ac_c_werror_flag" ||
40034          test ! -s conftest.err
40035        } && test -s conftest$ac_exeext &&
40036        $as_test_x conftest$ac_exeext; then
40037   ac_cv_search_getmntent=$ac_res
40038 else
40039   echo "$as_me: failed program was:" >&5
40040 sed 's/^/| /' conftest.$ac_ext >&5
40041
40042
40043 fi
40044
40045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40046       conftest$ac_exeext
40047   if test "${ac_cv_search_getmntent+set}" = set; then
40048   break
40049 fi
40050 done
40051 if test "${ac_cv_search_getmntent+set}" = set; then
40052   :
40053 else
40054   ac_cv_search_getmntent=no
40055 fi
40056 rm conftest.$ac_ext
40057 LIBS=$ac_func_search_save_LIBS
40058 fi
40059 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40060 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40061 ac_res=$ac_cv_search_getmntent
40062 if test "$ac_res" != no; then
40063   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40064   ac_cv_func_getmntent=yes
40065
40066 cat >>confdefs.h <<\_ACEOF
40067 #define HAVE_GETMNTENT 1
40068 _ACEOF
40069
40070 else
40071   ac_cv_func_getmntent=no
40072 fi
40073
40074
40075 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40076 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40077 if test "${ac_cv_func_closedir_void+set}" = set; then
40078   echo $ECHO_N "(cached) $ECHO_C" >&6
40079 else
40080   if test "$cross_compiling" = yes; then
40081   ac_cv_func_closedir_void=yes
40082 else
40083   cat >conftest.$ac_ext <<_ACEOF
40084 /* confdefs.h.  */
40085 _ACEOF
40086 cat confdefs.h >>conftest.$ac_ext
40087 cat >>conftest.$ac_ext <<_ACEOF
40088 /* end confdefs.h.  */
40089 $ac_includes_default
40090 #include <$ac_header_dirent>
40091 #ifndef __cplusplus
40092 int closedir ();
40093 #endif
40094
40095 int
40096 main ()
40097 {
40098 return closedir (opendir (".")) != 0;
40099   ;
40100   return 0;
40101 }
40102 _ACEOF
40103 rm -f conftest$ac_exeext
40104 if { (ac_try="$ac_link"
40105 case "(($ac_try" in
40106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40107   *) ac_try_echo=$ac_try;;
40108 esac
40109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40110   (eval "$ac_link") 2>&5
40111   ac_status=$?
40112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40113   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40114   { (case "(($ac_try" in
40115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40116   *) ac_try_echo=$ac_try;;
40117 esac
40118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40119   (eval "$ac_try") 2>&5
40120   ac_status=$?
40121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40122   (exit $ac_status); }; }; then
40123   ac_cv_func_closedir_void=no
40124 else
40125   echo "$as_me: program exited with status $ac_status" >&5
40126 echo "$as_me: failed program was:" >&5
40127 sed 's/^/| /' conftest.$ac_ext >&5
40128
40129 ( exit $ac_status )
40130 ac_cv_func_closedir_void=yes
40131 fi
40132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40133 fi
40134
40135
40136 fi
40137 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40138 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40139 if test $ac_cv_func_closedir_void = yes; then
40140
40141 cat >>confdefs.h <<\_ACEOF
40142 #define CLOSEDIR_VOID 1
40143 _ACEOF
40144
40145 fi
40146
40147 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40148 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40149 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40150   echo $ECHO_N "(cached) $ECHO_C" >&6
40151 else
40152   if test "$cross_compiling" = yes; then
40153   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40154 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40155    { (exit 1); exit 1; }; }
40156 else
40157   cat >conftest.$ac_ext <<_ACEOF
40158 /* confdefs.h.  */
40159 _ACEOF
40160 cat confdefs.h >>conftest.$ac_ext
40161 cat >>conftest.$ac_ext <<_ACEOF
40162 /* end confdefs.h.  */
40163 $ac_includes_default
40164 int
40165 main ()
40166 {
40167 /* If this system has a BSD-style setpgrp which takes arguments,
40168   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40169   exit successfully. */
40170   return setpgrp (1,1) != -1;
40171   ;
40172   return 0;
40173 }
40174 _ACEOF
40175 rm -f conftest$ac_exeext
40176 if { (ac_try="$ac_link"
40177 case "(($ac_try" in
40178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40179   *) ac_try_echo=$ac_try;;
40180 esac
40181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40182   (eval "$ac_link") 2>&5
40183   ac_status=$?
40184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40185   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40186   { (case "(($ac_try" in
40187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40188   *) ac_try_echo=$ac_try;;
40189 esac
40190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40191   (eval "$ac_try") 2>&5
40192   ac_status=$?
40193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40194   (exit $ac_status); }; }; then
40195   ac_cv_func_setpgrp_void=no
40196 else
40197   echo "$as_me: program exited with status $ac_status" >&5
40198 echo "$as_me: failed program was:" >&5
40199 sed 's/^/| /' conftest.$ac_ext >&5
40200
40201 ( exit $ac_status )
40202 ac_cv_func_setpgrp_void=yes
40203 fi
40204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40205 fi
40206
40207
40208 fi
40209 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40210 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40211 if test $ac_cv_func_setpgrp_void = yes; then
40212
40213 cat >>confdefs.h <<\_ACEOF
40214 #define SETPGRP_VOID 1
40215 _ACEOF
40216
40217 fi
40218             # AC_FUNC_FNMATCH    dnl use local version
40219
40220 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40221 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40222 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40223   echo $ECHO_N "(cached) $ECHO_C" >&6
40224 else
40225   ac_check_lib_save_LIBS=$LIBS
40226 LIBS="-lintl  $LIBS"
40227 cat >conftest.$ac_ext <<_ACEOF
40228 /* confdefs.h.  */
40229 _ACEOF
40230 cat confdefs.h >>conftest.$ac_ext
40231 cat >>conftest.$ac_ext <<_ACEOF
40232 /* end confdefs.h.  */
40233
40234 /* Override any GCC internal prototype to avoid an error.
40235    Use char because int might match the return type of a GCC
40236    builtin and then its argument prototype would still apply.  */
40237 #ifdef __cplusplus
40238 extern "C"
40239 #endif
40240 char gettext ();
40241 int
40242 main ()
40243 {
40244 return gettext ();
40245   ;
40246   return 0;
40247 }
40248 _ACEOF
40249 rm -f conftest.$ac_objext conftest$ac_exeext
40250 if { (ac_try="$ac_link"
40251 case "(($ac_try" in
40252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40253   *) ac_try_echo=$ac_try;;
40254 esac
40255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40256   (eval "$ac_link") 2>conftest.er1
40257   ac_status=$?
40258   grep -v '^ *+' conftest.er1 >conftest.err
40259   rm -f conftest.er1
40260   cat conftest.err >&5
40261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40262   (exit $ac_status); } && {
40263          test -z "$ac_c_werror_flag" ||
40264          test ! -s conftest.err
40265        } && test -s conftest$ac_exeext &&
40266        $as_test_x conftest$ac_exeext; then
40267   ac_cv_lib_intl_gettext=yes
40268 else
40269   echo "$as_me: failed program was:" >&5
40270 sed 's/^/| /' conftest.$ac_ext >&5
40271
40272         ac_cv_lib_intl_gettext=no
40273 fi
40274
40275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40276       conftest$ac_exeext conftest.$ac_ext
40277 LIBS=$ac_check_lib_save_LIBS
40278 fi
40279 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40280 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40281 if test $ac_cv_lib_intl_gettext = yes; then
40282   LIBS="$LIBS -lintl"
40283 fi
40284
40285
40286
40287 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40288 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40289 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40290   echo $ECHO_N "(cached) $ECHO_C" >&6
40291 else
40292   ac_check_lib_save_LIBS=$LIBS
40293 LIBS="-lsun  $LIBS"
40294 cat >conftest.$ac_ext <<_ACEOF
40295 /* confdefs.h.  */
40296 _ACEOF
40297 cat confdefs.h >>conftest.$ac_ext
40298 cat >>conftest.$ac_ext <<_ACEOF
40299 /* end confdefs.h.  */
40300
40301 /* Override any GCC internal prototype to avoid an error.
40302    Use char because int might match the return type of a GCC
40303    builtin and then its argument prototype would still apply.  */
40304 #ifdef __cplusplus
40305 extern "C"
40306 #endif
40307 char getpwnam ();
40308 int
40309 main ()
40310 {
40311 return getpwnam ();
40312   ;
40313   return 0;
40314 }
40315 _ACEOF
40316 rm -f conftest.$ac_objext conftest$ac_exeext
40317 if { (ac_try="$ac_link"
40318 case "(($ac_try" in
40319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40320   *) ac_try_echo=$ac_try;;
40321 esac
40322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40323   (eval "$ac_link") 2>conftest.er1
40324   ac_status=$?
40325   grep -v '^ *+' conftest.er1 >conftest.err
40326   rm -f conftest.er1
40327   cat conftest.err >&5
40328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40329   (exit $ac_status); } && {
40330          test -z "$ac_c_werror_flag" ||
40331          test ! -s conftest.err
40332        } && test -s conftest$ac_exeext &&
40333        $as_test_x conftest$ac_exeext; then
40334   ac_cv_lib_sun_getpwnam=yes
40335 else
40336   echo "$as_me: failed program was:" >&5
40337 sed 's/^/| /' conftest.$ac_ext >&5
40338
40339         ac_cv_lib_sun_getpwnam=no
40340 fi
40341
40342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40343       conftest$ac_exeext conftest.$ac_ext
40344 LIBS=$ac_check_lib_save_LIBS
40345 fi
40346 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40347 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40348 if test $ac_cv_lib_sun_getpwnam = yes; then
40349   cat >>confdefs.h <<_ACEOF
40350 #define HAVE_LIBSUN 1
40351 _ACEOF
40352
40353   LIBS="-lsun $LIBS"
40354
40355 fi
40356
40357
40358
40359 for ac_header in zlib.h
40360 do
40361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40363   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40366   echo $ECHO_N "(cached) $ECHO_C" >&6
40367 fi
40368 ac_res=`eval echo '${'$as_ac_Header'}'`
40369                { echo "$as_me:$LINENO: result: $ac_res" >&5
40370 echo "${ECHO_T}$ac_res" >&6; }
40371 else
40372   # Is the header compilable?
40373 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40375 cat >conftest.$ac_ext <<_ACEOF
40376 /* confdefs.h.  */
40377 _ACEOF
40378 cat confdefs.h >>conftest.$ac_ext
40379 cat >>conftest.$ac_ext <<_ACEOF
40380 /* end confdefs.h.  */
40381 $ac_includes_default
40382 #include <$ac_header>
40383 _ACEOF
40384 rm -f conftest.$ac_objext
40385 if { (ac_try="$ac_compile"
40386 case "(($ac_try" in
40387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40388   *) ac_try_echo=$ac_try;;
40389 esac
40390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40391   (eval "$ac_compile") 2>conftest.er1
40392   ac_status=$?
40393   grep -v '^ *+' conftest.er1 >conftest.err
40394   rm -f conftest.er1
40395   cat conftest.err >&5
40396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40397   (exit $ac_status); } && {
40398          test -z "$ac_c_werror_flag" ||
40399          test ! -s conftest.err
40400        } && test -s conftest.$ac_objext; then
40401   ac_header_compiler=yes
40402 else
40403   echo "$as_me: failed program was:" >&5
40404 sed 's/^/| /' conftest.$ac_ext >&5
40405
40406         ac_header_compiler=no
40407 fi
40408
40409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40411 echo "${ECHO_T}$ac_header_compiler" >&6; }
40412
40413 # Is the header present?
40414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40416 cat >conftest.$ac_ext <<_ACEOF
40417 /* confdefs.h.  */
40418 _ACEOF
40419 cat confdefs.h >>conftest.$ac_ext
40420 cat >>conftest.$ac_ext <<_ACEOF
40421 /* end confdefs.h.  */
40422 #include <$ac_header>
40423 _ACEOF
40424 if { (ac_try="$ac_cpp conftest.$ac_ext"
40425 case "(($ac_try" in
40426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40427   *) ac_try_echo=$ac_try;;
40428 esac
40429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40430   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40431   ac_status=$?
40432   grep -v '^ *+' conftest.er1 >conftest.err
40433   rm -f conftest.er1
40434   cat conftest.err >&5
40435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40436   (exit $ac_status); } >/dev/null && {
40437          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40438          test ! -s conftest.err
40439        }; then
40440   ac_header_preproc=yes
40441 else
40442   echo "$as_me: failed program was:" >&5
40443 sed 's/^/| /' conftest.$ac_ext >&5
40444
40445   ac_header_preproc=no
40446 fi
40447
40448 rm -f conftest.err conftest.$ac_ext
40449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40450 echo "${ECHO_T}$ac_header_preproc" >&6; }
40451
40452 # So?  What about this header?
40453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40454   yes:no: )
40455     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40459     ac_header_preproc=yes
40460     ;;
40461   no:yes:* )
40462     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40464     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40465 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40466     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40468     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40469 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40472     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40474
40475     ;;
40476 esac
40477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40480   echo $ECHO_N "(cached) $ECHO_C" >&6
40481 else
40482   eval "$as_ac_Header=\$ac_header_preproc"
40483 fi
40484 ac_res=`eval echo '${'$as_ac_Header'}'`
40485                { echo "$as_me:$LINENO: result: $ac_res" >&5
40486 echo "${ECHO_T}$ac_res" >&6; }
40487
40488 fi
40489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40490   cat >>confdefs.h <<_ACEOF
40491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40492 _ACEOF
40493
40494 fi
40495
40496 done
40497
40498 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40499 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40500 if test "${ac_cv_lib_z_deflate+set}" = set; then
40501   echo $ECHO_N "(cached) $ECHO_C" >&6
40502 else
40503   ac_check_lib_save_LIBS=$LIBS
40504 LIBS="-lz  $LIBS"
40505 cat >conftest.$ac_ext <<_ACEOF
40506 /* confdefs.h.  */
40507 _ACEOF
40508 cat confdefs.h >>conftest.$ac_ext
40509 cat >>conftest.$ac_ext <<_ACEOF
40510 /* end confdefs.h.  */
40511
40512 /* Override any GCC internal prototype to avoid an error.
40513    Use char because int might match the return type of a GCC
40514    builtin and then its argument prototype would still apply.  */
40515 #ifdef __cplusplus
40516 extern "C"
40517 #endif
40518 char deflate ();
40519 int
40520 main ()
40521 {
40522 return deflate ();
40523   ;
40524   return 0;
40525 }
40526 _ACEOF
40527 rm -f conftest.$ac_objext conftest$ac_exeext
40528 if { (ac_try="$ac_link"
40529 case "(($ac_try" in
40530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40531   *) ac_try_echo=$ac_try;;
40532 esac
40533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40534   (eval "$ac_link") 2>conftest.er1
40535   ac_status=$?
40536   grep -v '^ *+' conftest.er1 >conftest.err
40537   rm -f conftest.er1
40538   cat conftest.err >&5
40539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40540   (exit $ac_status); } && {
40541          test -z "$ac_c_werror_flag" ||
40542          test ! -s conftest.err
40543        } && test -s conftest$ac_exeext &&
40544        $as_test_x conftest$ac_exeext; then
40545   ac_cv_lib_z_deflate=yes
40546 else
40547   echo "$as_me: failed program was:" >&5
40548 sed 's/^/| /' conftest.$ac_ext >&5
40549
40550         ac_cv_lib_z_deflate=no
40551 fi
40552
40553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40554       conftest$ac_exeext conftest.$ac_ext
40555 LIBS=$ac_check_lib_save_LIBS
40556 fi
40557 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40558 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40559 if test $ac_cv_lib_z_deflate = yes; then
40560   FDLIBS="-lz"
40561 fi
40562
40563 have_zlib=no
40564 if test x$FDLIBS = x-lz; then
40565    cat >>confdefs.h <<\_ACEOF
40566 #define HAVE_LIBZ 1
40567 _ACEOF
40568
40569    have_zlib=yes
40570 fi
40571
40572 support_acl=yes
40573 # Check whether --enable-acl was given.
40574 if test "${enable_acl+set}" = set; then
40575   enableval=$enable_acl;
40576        if test x$enableval = xno; then
40577           support_acl=no
40578        fi
40579
40580
40581 fi
40582
40583
40584 have_acl=no
40585 have_extended_acl=no
40586 if test x$support_acl = xyes; then
40587    if test "${ac_cv_header_sys_acl_h+set}" = set; then
40588   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40589 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40590 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40591   echo $ECHO_N "(cached) $ECHO_C" >&6
40592 fi
40593 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40594 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40595 else
40596   # Is the header compilable?
40597 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40598 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40599 cat >conftest.$ac_ext <<_ACEOF
40600 /* confdefs.h.  */
40601 _ACEOF
40602 cat confdefs.h >>conftest.$ac_ext
40603 cat >>conftest.$ac_ext <<_ACEOF
40604 /* end confdefs.h.  */
40605 $ac_includes_default
40606 #include <sys/acl.h>
40607 _ACEOF
40608 rm -f conftest.$ac_objext
40609 if { (ac_try="$ac_compile"
40610 case "(($ac_try" in
40611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40612   *) ac_try_echo=$ac_try;;
40613 esac
40614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40615   (eval "$ac_compile") 2>conftest.er1
40616   ac_status=$?
40617   grep -v '^ *+' conftest.er1 >conftest.err
40618   rm -f conftest.er1
40619   cat conftest.err >&5
40620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40621   (exit $ac_status); } && {
40622          test -z "$ac_c_werror_flag" ||
40623          test ! -s conftest.err
40624        } && test -s conftest.$ac_objext; then
40625   ac_header_compiler=yes
40626 else
40627   echo "$as_me: failed program was:" >&5
40628 sed 's/^/| /' conftest.$ac_ext >&5
40629
40630         ac_header_compiler=no
40631 fi
40632
40633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40635 echo "${ECHO_T}$ac_header_compiler" >&6; }
40636
40637 # Is the header present?
40638 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40639 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40640 cat >conftest.$ac_ext <<_ACEOF
40641 /* confdefs.h.  */
40642 _ACEOF
40643 cat confdefs.h >>conftest.$ac_ext
40644 cat >>conftest.$ac_ext <<_ACEOF
40645 /* end confdefs.h.  */
40646 #include <sys/acl.h>
40647 _ACEOF
40648 if { (ac_try="$ac_cpp conftest.$ac_ext"
40649 case "(($ac_try" in
40650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40651   *) ac_try_echo=$ac_try;;
40652 esac
40653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40655   ac_status=$?
40656   grep -v '^ *+' conftest.er1 >conftest.err
40657   rm -f conftest.er1
40658   cat conftest.err >&5
40659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40660   (exit $ac_status); } >/dev/null && {
40661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40662          test ! -s conftest.err
40663        }; then
40664   ac_header_preproc=yes
40665 else
40666   echo "$as_me: failed program was:" >&5
40667 sed 's/^/| /' conftest.$ac_ext >&5
40668
40669   ac_header_preproc=no
40670 fi
40671
40672 rm -f conftest.err conftest.$ac_ext
40673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40674 echo "${ECHO_T}$ac_header_preproc" >&6; }
40675
40676 # So?  What about this header?
40677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40678   yes:no: )
40679     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40680 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40681     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40682 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40683     ac_header_preproc=yes
40684     ;;
40685   no:yes:* )
40686     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40687 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40688     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
40689 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
40690     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40691 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40692     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
40693 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
40694     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40695 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40696     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40697 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40698
40699     ;;
40700 esac
40701 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40702 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40703 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40704   echo $ECHO_N "(cached) $ECHO_C" >&6
40705 else
40706   ac_cv_header_sys_acl_h=$ac_header_preproc
40707 fi
40708 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40709 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40710
40711 fi
40712 if test $ac_cv_header_sys_acl_h = yes; then
40713
40714 cat >>confdefs.h <<\_ACEOF
40715 #define HAVE_SYS_ACL_H 1
40716 _ACEOF
40717
40718 fi
40719
40720
40721    { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40722 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40723 if test "${ac_cv_func_acl_get_file+set}" = set; then
40724   echo $ECHO_N "(cached) $ECHO_C" >&6
40725 else
40726   cat >conftest.$ac_ext <<_ACEOF
40727 /* confdefs.h.  */
40728 _ACEOF
40729 cat confdefs.h >>conftest.$ac_ext
40730 cat >>conftest.$ac_ext <<_ACEOF
40731 /* end confdefs.h.  */
40732 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40734 #define acl_get_file innocuous_acl_get_file
40735
40736 /* System header to define __stub macros and hopefully few prototypes,
40737     which can conflict with char acl_get_file (); below.
40738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40739     <limits.h> exists even on freestanding compilers.  */
40740
40741 #ifdef __STDC__
40742 # include <limits.h>
40743 #else
40744 # include <assert.h>
40745 #endif
40746
40747 #undef acl_get_file
40748
40749 /* Override any GCC internal prototype to avoid an error.
40750    Use char because int might match the return type of a GCC
40751    builtin and then its argument prototype would still apply.  */
40752 #ifdef __cplusplus
40753 extern "C"
40754 #endif
40755 char acl_get_file ();
40756 /* The GNU C library defines this for functions which it implements
40757     to always fail with ENOSYS.  Some functions are actually named
40758     something starting with __ and the normal name is an alias.  */
40759 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40760 choke me
40761 #endif
40762
40763 int
40764 main ()
40765 {
40766 return acl_get_file ();
40767   ;
40768   return 0;
40769 }
40770 _ACEOF
40771 rm -f conftest.$ac_objext conftest$ac_exeext
40772 if { (ac_try="$ac_link"
40773 case "(($ac_try" in
40774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40775   *) ac_try_echo=$ac_try;;
40776 esac
40777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40778   (eval "$ac_link") 2>conftest.er1
40779   ac_status=$?
40780   grep -v '^ *+' conftest.er1 >conftest.err
40781   rm -f conftest.er1
40782   cat conftest.err >&5
40783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40784   (exit $ac_status); } && {
40785          test -z "$ac_c_werror_flag" ||
40786          test ! -s conftest.err
40787        } && test -s conftest$ac_exeext &&
40788        $as_test_x conftest$ac_exeext; then
40789   ac_cv_func_acl_get_file=yes
40790 else
40791   echo "$as_me: failed program was:" >&5
40792 sed 's/^/| /' conftest.$ac_ext >&5
40793
40794         ac_cv_func_acl_get_file=no
40795 fi
40796
40797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40798       conftest$ac_exeext conftest.$ac_ext
40799 fi
40800 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40801 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40802 if test $ac_cv_func_acl_get_file = yes; then
40803
40804           have_acl=yes
40805
40806 else
40807
40808           { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40809 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40810 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40811   echo $ECHO_N "(cached) $ECHO_C" >&6
40812 else
40813   ac_check_lib_save_LIBS=$LIBS
40814 LIBS="-lacl  $LIBS"
40815 cat >conftest.$ac_ext <<_ACEOF
40816 /* confdefs.h.  */
40817 _ACEOF
40818 cat confdefs.h >>conftest.$ac_ext
40819 cat >>conftest.$ac_ext <<_ACEOF
40820 /* end confdefs.h.  */
40821
40822 /* Override any GCC internal prototype to avoid an error.
40823    Use char because int might match the return type of a GCC
40824    builtin and then its argument prototype would still apply.  */
40825 #ifdef __cplusplus
40826 extern "C"
40827 #endif
40828 char acl_get_file ();
40829 int
40830 main ()
40831 {
40832 return acl_get_file ();
40833   ;
40834   return 0;
40835 }
40836 _ACEOF
40837 rm -f conftest.$ac_objext conftest$ac_exeext
40838 if { (ac_try="$ac_link"
40839 case "(($ac_try" in
40840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40841   *) ac_try_echo=$ac_try;;
40842 esac
40843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40844   (eval "$ac_link") 2>conftest.er1
40845   ac_status=$?
40846   grep -v '^ *+' conftest.er1 >conftest.err
40847   rm -f conftest.er1
40848   cat conftest.err >&5
40849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850   (exit $ac_status); } && {
40851          test -z "$ac_c_werror_flag" ||
40852          test ! -s conftest.err
40853        } && test -s conftest$ac_exeext &&
40854        $as_test_x conftest$ac_exeext; then
40855   ac_cv_lib_acl_acl_get_file=yes
40856 else
40857   echo "$as_me: failed program was:" >&5
40858 sed 's/^/| /' conftest.$ac_ext >&5
40859
40860         ac_cv_lib_acl_acl_get_file=no
40861 fi
40862
40863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40864       conftest$ac_exeext conftest.$ac_ext
40865 LIBS=$ac_check_lib_save_LIBS
40866 fi
40867 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40868 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40869 if test $ac_cv_lib_acl_acl_get_file = yes; then
40870
40871                  have_acl=yes;
40872                  FDLIBS="-lacl $FDLIBS"
40873
40874 else
40875
40876                  { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40877 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40878 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40879   echo $ECHO_N "(cached) $ECHO_C" >&6
40880 else
40881   ac_check_lib_save_LIBS=$LIBS
40882 LIBS="-lpacl  $LIBS"
40883 cat >conftest.$ac_ext <<_ACEOF
40884 /* confdefs.h.  */
40885 _ACEOF
40886 cat confdefs.h >>conftest.$ac_ext
40887 cat >>conftest.$ac_ext <<_ACEOF
40888 /* end confdefs.h.  */
40889
40890 /* Override any GCC internal prototype to avoid an error.
40891    Use char because int might match the return type of a GCC
40892    builtin and then its argument prototype would still apply.  */
40893 #ifdef __cplusplus
40894 extern "C"
40895 #endif
40896 char acl_get_file ();
40897 int
40898 main ()
40899 {
40900 return acl_get_file ();
40901   ;
40902   return 0;
40903 }
40904 _ACEOF
40905 rm -f conftest.$ac_objext conftest$ac_exeext
40906 if { (ac_try="$ac_link"
40907 case "(($ac_try" in
40908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40909   *) ac_try_echo=$ac_try;;
40910 esac
40911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40912   (eval "$ac_link") 2>conftest.er1
40913   ac_status=$?
40914   grep -v '^ *+' conftest.er1 >conftest.err
40915   rm -f conftest.er1
40916   cat conftest.err >&5
40917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40918   (exit $ac_status); } && {
40919          test -z "$ac_c_werror_flag" ||
40920          test ! -s conftest.err
40921        } && test -s conftest$ac_exeext &&
40922        $as_test_x conftest$ac_exeext; then
40923   ac_cv_lib_pacl_acl_get_file=yes
40924 else
40925   echo "$as_me: failed program was:" >&5
40926 sed 's/^/| /' conftest.$ac_ext >&5
40927
40928         ac_cv_lib_pacl_acl_get_file=no
40929 fi
40930
40931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40932       conftest$ac_exeext conftest.$ac_ext
40933 LIBS=$ac_check_lib_save_LIBS
40934 fi
40935 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40936 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40937 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40938
40939                         have_acl=yes;
40940                         FDLIBS="-lpacl $FDLIBS"
40941
40942 else
40943
40944                         { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40945 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40946 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40947   echo $ECHO_N "(cached) $ECHO_C" >&6
40948 else
40949   ac_check_lib_save_LIBS=$LIBS
40950 LIBS="-lsec  $LIBS"
40951 cat >conftest.$ac_ext <<_ACEOF
40952 /* confdefs.h.  */
40953 _ACEOF
40954 cat confdefs.h >>conftest.$ac_ext
40955 cat >>conftest.$ac_ext <<_ACEOF
40956 /* end confdefs.h.  */
40957
40958 /* Override any GCC internal prototype to avoid an error.
40959    Use char because int might match the return type of a GCC
40960    builtin and then its argument prototype would still apply.  */
40961 #ifdef __cplusplus
40962 extern "C"
40963 #endif
40964 char acltotext ();
40965 int
40966 main ()
40967 {
40968 return acltotext ();
40969   ;
40970   return 0;
40971 }
40972 _ACEOF
40973 rm -f conftest.$ac_objext conftest$ac_exeext
40974 if { (ac_try="$ac_link"
40975 case "(($ac_try" in
40976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40977   *) ac_try_echo=$ac_try;;
40978 esac
40979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40980   (eval "$ac_link") 2>conftest.er1
40981   ac_status=$?
40982   grep -v '^ *+' conftest.er1 >conftest.err
40983   rm -f conftest.er1
40984   cat conftest.err >&5
40985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40986   (exit $ac_status); } && {
40987          test -z "$ac_c_werror_flag" ||
40988          test ! -s conftest.err
40989        } && test -s conftest$ac_exeext &&
40990        $as_test_x conftest$ac_exeext; then
40991   ac_cv_lib_sec_acltotext=yes
40992 else
40993   echo "$as_me: failed program was:" >&5
40994 sed 's/^/| /' conftest.$ac_ext >&5
40995
40996         ac_cv_lib_sec_acltotext=no
40997 fi
40998
40999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41000       conftest$ac_exeext conftest.$ac_ext
41001 LIBS=$ac_check_lib_save_LIBS
41002 fi
41003 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41004 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41005 if test $ac_cv_lib_sec_acltotext = yes; then
41006
41007                                have_acl=yes;
41008                                FDLIBS="-lsec $FDLIBS"
41009
41010                                { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41011 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41012 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41013   echo $ECHO_N "(cached) $ECHO_C" >&6
41014 else
41015   ac_check_lib_save_LIBS=$LIBS
41016 LIBS="-lsec  $LIBS"
41017 cat >conftest.$ac_ext <<_ACEOF
41018 /* confdefs.h.  */
41019 _ACEOF
41020 cat confdefs.h >>conftest.$ac_ext
41021 cat >>conftest.$ac_ext <<_ACEOF
41022 /* end confdefs.h.  */
41023
41024 /* Override any GCC internal prototype to avoid an error.
41025    Use char because int might match the return type of a GCC
41026    builtin and then its argument prototype would still apply.  */
41027 #ifdef __cplusplus
41028 extern "C"
41029 #endif
41030 char acl_totext ();
41031 int
41032 main ()
41033 {
41034 return acl_totext ();
41035   ;
41036   return 0;
41037 }
41038 _ACEOF
41039 rm -f conftest.$ac_objext conftest$ac_exeext
41040 if { (ac_try="$ac_link"
41041 case "(($ac_try" in
41042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41043   *) ac_try_echo=$ac_try;;
41044 esac
41045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41046   (eval "$ac_link") 2>conftest.er1
41047   ac_status=$?
41048   grep -v '^ *+' conftest.er1 >conftest.err
41049   rm -f conftest.er1
41050   cat conftest.err >&5
41051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41052   (exit $ac_status); } && {
41053          test -z "$ac_c_werror_flag" ||
41054          test ! -s conftest.err
41055        } && test -s conftest$ac_exeext &&
41056        $as_test_x conftest$ac_exeext; then
41057   ac_cv_lib_sec_acl_totext=yes
41058 else
41059   echo "$as_me: failed program was:" >&5
41060 sed 's/^/| /' conftest.$ac_ext >&5
41061
41062         ac_cv_lib_sec_acl_totext=no
41063 fi
41064
41065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41066       conftest$ac_exeext conftest.$ac_ext
41067 LIBS=$ac_check_lib_save_LIBS
41068 fi
41069 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41070 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41071 if test $ac_cv_lib_sec_acl_totext = yes; then
41072
41073                                       have_extended_acl=yes
41074
41075
41076 fi
41077
41078
41079
41080 fi
41081
41082
41083
41084 fi
41085
41086
41087
41088 fi
41089
41090
41091
41092 fi
41093
41094    if test $have_acl = yes; then
41095
41096 cat >>confdefs.h <<\_ACEOF
41097 #define HAVE_ACL
41098 _ACEOF
41099
41100    fi
41101
41102    if test $have_extended_acl = yes; then
41103
41104 cat >>confdefs.h <<\_ACEOF
41105 #define HAVE_EXTENDED_ACL
41106 _ACEOF
41107
41108    fi
41109 fi
41110
41111 support_xattr=yes
41112 # Check whether --enable-xattr was given.
41113 if test "${enable_xattr+set}" = set; then
41114   enableval=$enable_xattr;
41115        if test x$enableval = xno; then
41116           support_xattr=no
41117        fi
41118
41119
41120 fi
41121
41122
41123 have_xattr=no
41124 if test x$support_xattr = xyes; then
41125    if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41126   { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41127 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41128 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41129   echo $ECHO_N "(cached) $ECHO_C" >&6
41130 fi
41131 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41132 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41133 else
41134   # Is the header compilable?
41135 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41136 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41137 cat >conftest.$ac_ext <<_ACEOF
41138 /* confdefs.h.  */
41139 _ACEOF
41140 cat confdefs.h >>conftest.$ac_ext
41141 cat >>conftest.$ac_ext <<_ACEOF
41142 /* end confdefs.h.  */
41143 $ac_includes_default
41144 #include <sys/xattr.h>
41145 _ACEOF
41146 rm -f conftest.$ac_objext
41147 if { (ac_try="$ac_compile"
41148 case "(($ac_try" in
41149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41150   *) ac_try_echo=$ac_try;;
41151 esac
41152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41153   (eval "$ac_compile") 2>conftest.er1
41154   ac_status=$?
41155   grep -v '^ *+' conftest.er1 >conftest.err
41156   rm -f conftest.er1
41157   cat conftest.err >&5
41158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41159   (exit $ac_status); } && {
41160          test -z "$ac_c_werror_flag" ||
41161          test ! -s conftest.err
41162        } && test -s conftest.$ac_objext; then
41163   ac_header_compiler=yes
41164 else
41165   echo "$as_me: failed program was:" >&5
41166 sed 's/^/| /' conftest.$ac_ext >&5
41167
41168         ac_header_compiler=no
41169 fi
41170
41171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41173 echo "${ECHO_T}$ac_header_compiler" >&6; }
41174
41175 # Is the header present?
41176 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41177 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41178 cat >conftest.$ac_ext <<_ACEOF
41179 /* confdefs.h.  */
41180 _ACEOF
41181 cat confdefs.h >>conftest.$ac_ext
41182 cat >>conftest.$ac_ext <<_ACEOF
41183 /* end confdefs.h.  */
41184 #include <sys/xattr.h>
41185 _ACEOF
41186 if { (ac_try="$ac_cpp conftest.$ac_ext"
41187 case "(($ac_try" in
41188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41189   *) ac_try_echo=$ac_try;;
41190 esac
41191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41193   ac_status=$?
41194   grep -v '^ *+' conftest.er1 >conftest.err
41195   rm -f conftest.er1
41196   cat conftest.err >&5
41197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41198   (exit $ac_status); } >/dev/null && {
41199          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41200          test ! -s conftest.err
41201        }; then
41202   ac_header_preproc=yes
41203 else
41204   echo "$as_me: failed program was:" >&5
41205 sed 's/^/| /' conftest.$ac_ext >&5
41206
41207   ac_header_preproc=no
41208 fi
41209
41210 rm -f conftest.err conftest.$ac_ext
41211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41212 echo "${ECHO_T}$ac_header_preproc" >&6; }
41213
41214 # So?  What about this header?
41215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41216   yes:no: )
41217     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41218 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41219     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41220 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41221     ac_header_preproc=yes
41222     ;;
41223   no:yes:* )
41224     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41225 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41226     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&5
41227 echo "$as_me: WARNING: sys/xattr.h:     check for missing prerequisite headers?" >&2;}
41228     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41229 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41230     { echo "$as_me:$LINENO: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&5
41231 echo "$as_me: WARNING: sys/xattr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41232     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41233 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41234     { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41235 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41236
41237     ;;
41238 esac
41239 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41240 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41241 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41242   echo $ECHO_N "(cached) $ECHO_C" >&6
41243 else
41244   ac_cv_header_sys_xattr_h=$ac_header_preproc
41245 fi
41246 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41247 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41248
41249 fi
41250 if test $ac_cv_header_sys_xattr_h = yes; then
41251
41252 cat >>confdefs.h <<\_ACEOF
41253 #define HAVE_SYS_XATTR_H 1
41254 _ACEOF
41255
41256 fi
41257
41258
41259
41260
41261
41262 for ac_func in llistxattr lgetxattr lsetxattr
41263 do
41264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41268   echo $ECHO_N "(cached) $ECHO_C" >&6
41269 else
41270   cat >conftest.$ac_ext <<_ACEOF
41271 /* confdefs.h.  */
41272 _ACEOF
41273 cat confdefs.h >>conftest.$ac_ext
41274 cat >>conftest.$ac_ext <<_ACEOF
41275 /* end confdefs.h.  */
41276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41278 #define $ac_func innocuous_$ac_func
41279
41280 /* System header to define __stub macros and hopefully few prototypes,
41281     which can conflict with char $ac_func (); below.
41282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41283     <limits.h> exists even on freestanding compilers.  */
41284
41285 #ifdef __STDC__
41286 # include <limits.h>
41287 #else
41288 # include <assert.h>
41289 #endif
41290
41291 #undef $ac_func
41292
41293 /* Override any GCC internal prototype to avoid an error.
41294    Use char because int might match the return type of a GCC
41295    builtin and then its argument prototype would still apply.  */
41296 #ifdef __cplusplus
41297 extern "C"
41298 #endif
41299 char $ac_func ();
41300 /* The GNU C library defines this for functions which it implements
41301     to always fail with ENOSYS.  Some functions are actually named
41302     something starting with __ and the normal name is an alias.  */
41303 #if defined __stub_$ac_func || defined __stub___$ac_func
41304 choke me
41305 #endif
41306
41307 int
41308 main ()
41309 {
41310 return $ac_func ();
41311   ;
41312   return 0;
41313 }
41314 _ACEOF
41315 rm -f conftest.$ac_objext conftest$ac_exeext
41316 if { (ac_try="$ac_link"
41317 case "(($ac_try" in
41318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41319   *) ac_try_echo=$ac_try;;
41320 esac
41321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41322   (eval "$ac_link") 2>conftest.er1
41323   ac_status=$?
41324   grep -v '^ *+' conftest.er1 >conftest.err
41325   rm -f conftest.er1
41326   cat conftest.err >&5
41327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41328   (exit $ac_status); } && {
41329          test -z "$ac_c_werror_flag" ||
41330          test ! -s conftest.err
41331        } && test -s conftest$ac_exeext &&
41332        $as_test_x conftest$ac_exeext; then
41333   eval "$as_ac_var=yes"
41334 else
41335   echo "$as_me: failed program was:" >&5
41336 sed 's/^/| /' conftest.$ac_ext >&5
41337
41338         eval "$as_ac_var=no"
41339 fi
41340
41341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41342       conftest$ac_exeext conftest.$ac_ext
41343 fi
41344 ac_res=`eval echo '${'$as_ac_var'}'`
41345                { echo "$as_me:$LINENO: result: $ac_res" >&5
41346 echo "${ECHO_T}$ac_res" >&6; }
41347 if test `eval echo '${'$as_ac_var'}'` = yes; then
41348   cat >>confdefs.h <<_ACEOF
41349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41350 _ACEOF
41351
41352           have_xattr=yes
41353
41354 cat >>confdefs.h <<\_ACEOF
41355 #define HAVE_LLISTXATTR
41356 _ACEOF
41357
41358
41359 cat >>confdefs.h <<\_ACEOF
41360 #define HAVE_LGETXATTR
41361 _ACEOF
41362
41363
41364 cat >>confdefs.h <<\_ACEOF
41365 #define HAVE_LSETXATTR
41366 _ACEOF
41367
41368
41369
41370 fi
41371 done
41372
41373
41374    #
41375    # OSX specific
41376    #
41377    if test $have_xattr = no; then
41378
41379
41380
41381 for ac_func in listxattr getxattr setxattr
41382 do
41383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41387   echo $ECHO_N "(cached) $ECHO_C" >&6
41388 else
41389   cat >conftest.$ac_ext <<_ACEOF
41390 /* confdefs.h.  */
41391 _ACEOF
41392 cat confdefs.h >>conftest.$ac_ext
41393 cat >>conftest.$ac_ext <<_ACEOF
41394 /* end confdefs.h.  */
41395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41397 #define $ac_func innocuous_$ac_func
41398
41399 /* System header to define __stub macros and hopefully few prototypes,
41400     which can conflict with char $ac_func (); below.
41401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41402     <limits.h> exists even on freestanding compilers.  */
41403
41404 #ifdef __STDC__
41405 # include <limits.h>
41406 #else
41407 # include <assert.h>
41408 #endif
41409
41410 #undef $ac_func
41411
41412 /* Override any GCC internal prototype to avoid an error.
41413    Use char because int might match the return type of a GCC
41414    builtin and then its argument prototype would still apply.  */
41415 #ifdef __cplusplus
41416 extern "C"
41417 #endif
41418 char $ac_func ();
41419 /* The GNU C library defines this for functions which it implements
41420     to always fail with ENOSYS.  Some functions are actually named
41421     something starting with __ and the normal name is an alias.  */
41422 #if defined __stub_$ac_func || defined __stub___$ac_func
41423 choke me
41424 #endif
41425
41426 int
41427 main ()
41428 {
41429 return $ac_func ();
41430   ;
41431   return 0;
41432 }
41433 _ACEOF
41434 rm -f conftest.$ac_objext conftest$ac_exeext
41435 if { (ac_try="$ac_link"
41436 case "(($ac_try" in
41437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41438   *) ac_try_echo=$ac_try;;
41439 esac
41440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41441   (eval "$ac_link") 2>conftest.er1
41442   ac_status=$?
41443   grep -v '^ *+' conftest.er1 >conftest.err
41444   rm -f conftest.er1
41445   cat conftest.err >&5
41446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41447   (exit $ac_status); } && {
41448          test -z "$ac_c_werror_flag" ||
41449          test ! -s conftest.err
41450        } && test -s conftest$ac_exeext &&
41451        $as_test_x conftest$ac_exeext; then
41452   eval "$as_ac_var=yes"
41453 else
41454   echo "$as_me: failed program was:" >&5
41455 sed 's/^/| /' conftest.$ac_ext >&5
41456
41457         eval "$as_ac_var=no"
41458 fi
41459
41460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41461       conftest$ac_exeext conftest.$ac_ext
41462 fi
41463 ac_res=`eval echo '${'$as_ac_var'}'`
41464                { echo "$as_me:$LINENO: result: $ac_res" >&5
41465 echo "${ECHO_T}$ac_res" >&6; }
41466 if test `eval echo '${'$as_ac_var'}'` = yes; then
41467   cat >>confdefs.h <<_ACEOF
41468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41469 _ACEOF
41470
41471              have_xattr=yes
41472
41473 cat >>confdefs.h <<\_ACEOF
41474 #define HAVE_LLISTXATTR
41475 _ACEOF
41476
41477
41478 cat >>confdefs.h <<\_ACEOF
41479 #define HAVE_LGETXATTR
41480 _ACEOF
41481
41482
41483 cat >>confdefs.h <<\_ACEOF
41484 #define HAVE_LSETXATTR
41485 _ACEOF
41486
41487
41488
41489 fi
41490 done
41491
41492    fi
41493
41494    #
41495    # Solaris specific
41496    #
41497    if test $have_xattr = no; then
41498       if test "${ac_cv_header_sys_attr_h+set}" = set; then
41499   { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41500 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41501 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41502   echo $ECHO_N "(cached) $ECHO_C" >&6
41503 fi
41504 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41505 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41506 else
41507   # Is the header compilable?
41508 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
41509 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
41510 cat >conftest.$ac_ext <<_ACEOF
41511 /* confdefs.h.  */
41512 _ACEOF
41513 cat confdefs.h >>conftest.$ac_ext
41514 cat >>conftest.$ac_ext <<_ACEOF
41515 /* end confdefs.h.  */
41516 $ac_includes_default
41517 #include <sys/attr.h>
41518 _ACEOF
41519 rm -f conftest.$ac_objext
41520 if { (ac_try="$ac_compile"
41521 case "(($ac_try" in
41522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41523   *) ac_try_echo=$ac_try;;
41524 esac
41525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41526   (eval "$ac_compile") 2>conftest.er1
41527   ac_status=$?
41528   grep -v '^ *+' conftest.er1 >conftest.err
41529   rm -f conftest.er1
41530   cat conftest.err >&5
41531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41532   (exit $ac_status); } && {
41533          test -z "$ac_c_werror_flag" ||
41534          test ! -s conftest.err
41535        } && test -s conftest.$ac_objext; then
41536   ac_header_compiler=yes
41537 else
41538   echo "$as_me: failed program was:" >&5
41539 sed 's/^/| /' conftest.$ac_ext >&5
41540
41541         ac_header_compiler=no
41542 fi
41543
41544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41546 echo "${ECHO_T}$ac_header_compiler" >&6; }
41547
41548 # Is the header present?
41549 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
41550 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
41551 cat >conftest.$ac_ext <<_ACEOF
41552 /* confdefs.h.  */
41553 _ACEOF
41554 cat confdefs.h >>conftest.$ac_ext
41555 cat >>conftest.$ac_ext <<_ACEOF
41556 /* end confdefs.h.  */
41557 #include <sys/attr.h>
41558 _ACEOF
41559 if { (ac_try="$ac_cpp conftest.$ac_ext"
41560 case "(($ac_try" in
41561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41562   *) ac_try_echo=$ac_try;;
41563 esac
41564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41566   ac_status=$?
41567   grep -v '^ *+' conftest.er1 >conftest.err
41568   rm -f conftest.er1
41569   cat conftest.err >&5
41570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41571   (exit $ac_status); } >/dev/null && {
41572          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41573          test ! -s conftest.err
41574        }; then
41575   ac_header_preproc=yes
41576 else
41577   echo "$as_me: failed program was:" >&5
41578 sed 's/^/| /' conftest.$ac_ext >&5
41579
41580   ac_header_preproc=no
41581 fi
41582
41583 rm -f conftest.err conftest.$ac_ext
41584 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41585 echo "${ECHO_T}$ac_header_preproc" >&6; }
41586
41587 # So?  What about this header?
41588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41589   yes:no: )
41590     { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41591 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41592     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
41593 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
41594     ac_header_preproc=yes
41595     ;;
41596   no:yes:* )
41597     { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
41598 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
41599     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&5
41600 echo "$as_me: WARNING: sys/attr.h:     check for missing prerequisite headers?" >&2;}
41601     { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
41602 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
41603     { echo "$as_me:$LINENO: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41604 echo "$as_me: WARNING: sys/attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41605     { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
41606 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
41607     { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
41608 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
41609
41610     ;;
41611 esac
41612 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41613 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41614 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41615   echo $ECHO_N "(cached) $ECHO_C" >&6
41616 else
41617   ac_cv_header_sys_attr_h=$ac_header_preproc
41618 fi
41619 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41620 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41621
41622 fi
41623 if test $ac_cv_header_sys_attr_h = yes; then
41624
41625 cat >>confdefs.h <<\_ACEOF
41626 #define HAVE_SYS_ATTR_H 1
41627 _ACEOF
41628
41629 fi
41630
41631
41632       if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41633   { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41634 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41635 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41636   echo $ECHO_N "(cached) $ECHO_C" >&6
41637 fi
41638 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41639 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41640 else
41641   # Is the header compilable?
41642 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
41643 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
41644 cat >conftest.$ac_ext <<_ACEOF
41645 /* confdefs.h.  */
41646 _ACEOF
41647 cat confdefs.h >>conftest.$ac_ext
41648 cat >>conftest.$ac_ext <<_ACEOF
41649 /* end confdefs.h.  */
41650 $ac_includes_default
41651 #include <sys/nvpair.h>
41652 _ACEOF
41653 rm -f conftest.$ac_objext
41654 if { (ac_try="$ac_compile"
41655 case "(($ac_try" in
41656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41657   *) ac_try_echo=$ac_try;;
41658 esac
41659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41660   (eval "$ac_compile") 2>conftest.er1
41661   ac_status=$?
41662   grep -v '^ *+' conftest.er1 >conftest.err
41663   rm -f conftest.er1
41664   cat conftest.err >&5
41665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41666   (exit $ac_status); } && {
41667          test -z "$ac_c_werror_flag" ||
41668          test ! -s conftest.err
41669        } && test -s conftest.$ac_objext; then
41670   ac_header_compiler=yes
41671 else
41672   echo "$as_me: failed program was:" >&5
41673 sed 's/^/| /' conftest.$ac_ext >&5
41674
41675         ac_header_compiler=no
41676 fi
41677
41678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41680 echo "${ECHO_T}$ac_header_compiler" >&6; }
41681
41682 # Is the header present?
41683 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
41684 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
41685 cat >conftest.$ac_ext <<_ACEOF
41686 /* confdefs.h.  */
41687 _ACEOF
41688 cat confdefs.h >>conftest.$ac_ext
41689 cat >>conftest.$ac_ext <<_ACEOF
41690 /* end confdefs.h.  */
41691 #include <sys/nvpair.h>
41692 _ACEOF
41693 if { (ac_try="$ac_cpp conftest.$ac_ext"
41694 case "(($ac_try" in
41695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41696   *) ac_try_echo=$ac_try;;
41697 esac
41698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41699   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41700   ac_status=$?
41701   grep -v '^ *+' conftest.er1 >conftest.err
41702   rm -f conftest.er1
41703   cat conftest.err >&5
41704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41705   (exit $ac_status); } >/dev/null && {
41706          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41707          test ! -s conftest.err
41708        }; then
41709   ac_header_preproc=yes
41710 else
41711   echo "$as_me: failed program was:" >&5
41712 sed 's/^/| /' conftest.$ac_ext >&5
41713
41714   ac_header_preproc=no
41715 fi
41716
41717 rm -f conftest.err conftest.$ac_ext
41718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41719 echo "${ECHO_T}$ac_header_preproc" >&6; }
41720
41721 # So?  What about this header?
41722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41723   yes:no: )
41724     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
41725 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41726     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
41727 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
41728     ac_header_preproc=yes
41729     ;;
41730   no:yes:* )
41731     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
41732 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
41733     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&5
41734 echo "$as_me: WARNING: sys/nvpair.h:     check for missing prerequisite headers?" >&2;}
41735     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
41736 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
41737     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&5
41738 echo "$as_me: WARNING: sys/nvpair.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41739     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
41740 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
41741     { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
41742 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
41743
41744     ;;
41745 esac
41746 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41747 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41748 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41749   echo $ECHO_N "(cached) $ECHO_C" >&6
41750 else
41751   ac_cv_header_sys_nvpair_h=$ac_header_preproc
41752 fi
41753 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41754 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41755
41756 fi
41757 if test $ac_cv_header_sys_nvpair_h = yes; then
41758
41759 cat >>confdefs.h <<\_ACEOF
41760 #define HAVE_SYS_NVPAIR_H 1
41761 _ACEOF
41762
41763 fi
41764
41765
41766       if test "${ac_cv_header_attr_h+set}" = set; then
41767   { echo "$as_me:$LINENO: checking for attr.h" >&5
41768 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41769 if test "${ac_cv_header_attr_h+set}" = set; then
41770   echo $ECHO_N "(cached) $ECHO_C" >&6
41771 fi
41772 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41773 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41774 else
41775   # Is the header compilable?
41776 { echo "$as_me:$LINENO: checking attr.h usability" >&5
41777 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
41778 cat >conftest.$ac_ext <<_ACEOF
41779 /* confdefs.h.  */
41780 _ACEOF
41781 cat confdefs.h >>conftest.$ac_ext
41782 cat >>conftest.$ac_ext <<_ACEOF
41783 /* end confdefs.h.  */
41784 $ac_includes_default
41785 #include <attr.h>
41786 _ACEOF
41787 rm -f conftest.$ac_objext
41788 if { (ac_try="$ac_compile"
41789 case "(($ac_try" in
41790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41791   *) ac_try_echo=$ac_try;;
41792 esac
41793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41794   (eval "$ac_compile") 2>conftest.er1
41795   ac_status=$?
41796   grep -v '^ *+' conftest.er1 >conftest.err
41797   rm -f conftest.er1
41798   cat conftest.err >&5
41799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41800   (exit $ac_status); } && {
41801          test -z "$ac_c_werror_flag" ||
41802          test ! -s conftest.err
41803        } && test -s conftest.$ac_objext; then
41804   ac_header_compiler=yes
41805 else
41806   echo "$as_me: failed program was:" >&5
41807 sed 's/^/| /' conftest.$ac_ext >&5
41808
41809         ac_header_compiler=no
41810 fi
41811
41812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41814 echo "${ECHO_T}$ac_header_compiler" >&6; }
41815
41816 # Is the header present?
41817 { echo "$as_me:$LINENO: checking attr.h presence" >&5
41818 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
41819 cat >conftest.$ac_ext <<_ACEOF
41820 /* confdefs.h.  */
41821 _ACEOF
41822 cat confdefs.h >>conftest.$ac_ext
41823 cat >>conftest.$ac_ext <<_ACEOF
41824 /* end confdefs.h.  */
41825 #include <attr.h>
41826 _ACEOF
41827 if { (ac_try="$ac_cpp conftest.$ac_ext"
41828 case "(($ac_try" in
41829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41830   *) ac_try_echo=$ac_try;;
41831 esac
41832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41833   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41834   ac_status=$?
41835   grep -v '^ *+' conftest.er1 >conftest.err
41836   rm -f conftest.er1
41837   cat conftest.err >&5
41838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41839   (exit $ac_status); } >/dev/null && {
41840          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41841          test ! -s conftest.err
41842        }; then
41843   ac_header_preproc=yes
41844 else
41845   echo "$as_me: failed program was:" >&5
41846 sed 's/^/| /' conftest.$ac_ext >&5
41847
41848   ac_header_preproc=no
41849 fi
41850
41851 rm -f conftest.err conftest.$ac_ext
41852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41853 echo "${ECHO_T}$ac_header_preproc" >&6; }
41854
41855 # So?  What about this header?
41856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41857   yes:no: )
41858     { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41859 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41860     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
41861 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
41862     ac_header_preproc=yes
41863     ;;
41864   no:yes:* )
41865     { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
41866 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
41867     { echo "$as_me:$LINENO: WARNING: attr.h:     check for missing prerequisite headers?" >&5
41868 echo "$as_me: WARNING: attr.h:     check for missing prerequisite headers?" >&2;}
41869     { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
41870 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
41871     { echo "$as_me:$LINENO: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&5
41872 echo "$as_me: WARNING: attr.h:     section \"Present But Cannot Be Compiled\"" >&2;}
41873     { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
41874 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
41875     { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
41876 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
41877
41878     ;;
41879 esac
41880 { echo "$as_me:$LINENO: checking for attr.h" >&5
41881 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41882 if test "${ac_cv_header_attr_h+set}" = set; then
41883   echo $ECHO_N "(cached) $ECHO_C" >&6
41884 else
41885   ac_cv_header_attr_h=$ac_header_preproc
41886 fi
41887 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41888 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41889
41890 fi
41891 if test $ac_cv_header_attr_h = yes; then
41892
41893 cat >>confdefs.h <<\_ACEOF
41894 #define HAVE_ATTR_H 1
41895 _ACEOF
41896
41897 fi
41898
41899
41900
41901
41902
41903
41904
41905
41906 for ac_func in openat fstatat unlinkat fchownat futimesat
41907 do
41908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41912   echo $ECHO_N "(cached) $ECHO_C" >&6
41913 else
41914   cat >conftest.$ac_ext <<_ACEOF
41915 /* confdefs.h.  */
41916 _ACEOF
41917 cat confdefs.h >>conftest.$ac_ext
41918 cat >>conftest.$ac_ext <<_ACEOF
41919 /* end confdefs.h.  */
41920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41922 #define $ac_func innocuous_$ac_func
41923
41924 /* System header to define __stub macros and hopefully few prototypes,
41925     which can conflict with char $ac_func (); below.
41926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41927     <limits.h> exists even on freestanding compilers.  */
41928
41929 #ifdef __STDC__
41930 # include <limits.h>
41931 #else
41932 # include <assert.h>
41933 #endif
41934
41935 #undef $ac_func
41936
41937 /* Override any GCC internal prototype to avoid an error.
41938    Use char because int might match the return type of a GCC
41939    builtin and then its argument prototype would still apply.  */
41940 #ifdef __cplusplus
41941 extern "C"
41942 #endif
41943 char $ac_func ();
41944 /* The GNU C library defines this for functions which it implements
41945     to always fail with ENOSYS.  Some functions are actually named
41946     something starting with __ and the normal name is an alias.  */
41947 #if defined __stub_$ac_func || defined __stub___$ac_func
41948 choke me
41949 #endif
41950
41951 int
41952 main ()
41953 {
41954 return $ac_func ();
41955   ;
41956   return 0;
41957 }
41958 _ACEOF
41959 rm -f conftest.$ac_objext conftest$ac_exeext
41960 if { (ac_try="$ac_link"
41961 case "(($ac_try" in
41962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41963   *) ac_try_echo=$ac_try;;
41964 esac
41965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41966   (eval "$ac_link") 2>conftest.er1
41967   ac_status=$?
41968   grep -v '^ *+' conftest.er1 >conftest.err
41969   rm -f conftest.er1
41970   cat conftest.err >&5
41971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41972   (exit $ac_status); } && {
41973          test -z "$ac_c_werror_flag" ||
41974          test ! -s conftest.err
41975        } && test -s conftest$ac_exeext &&
41976        $as_test_x conftest$ac_exeext; then
41977   eval "$as_ac_var=yes"
41978 else
41979   echo "$as_me: failed program was:" >&5
41980 sed 's/^/| /' conftest.$ac_ext >&5
41981
41982         eval "$as_ac_var=no"
41983 fi
41984
41985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41986       conftest$ac_exeext conftest.$ac_ext
41987 fi
41988 ac_res=`eval echo '${'$as_ac_var'}'`
41989                { echo "$as_me:$LINENO: result: $ac_res" >&5
41990 echo "${ECHO_T}$ac_res" >&6; }
41991 if test `eval echo '${'$as_ac_var'}'` = yes; then
41992   cat >>confdefs.h <<_ACEOF
41993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41994 _ACEOF
41995
41996              have_xattr=yes
41997
41998 cat >>confdefs.h <<\_ACEOF
41999 #define HAVE_OPENAT
42000 _ACEOF
42001
42002
42003 cat >>confdefs.h <<\_ACEOF
42004 #define HAVE_FSTATAT
42005 _ACEOF
42006
42007
42008 cat >>confdefs.h <<\_ACEOF
42009 #define HAVE_UNLINKAT
42010 _ACEOF
42011
42012
42013 cat >>confdefs.h <<\_ACEOF
42014 #define HAVE_FCHOWNAT
42015 _ACEOF
42016
42017
42018 cat >>confdefs.h <<\_ACEOF
42019 #define HAVE_FUTIMESAT
42020 _ACEOF
42021
42022
42023
42024 fi
42025 done
42026
42027
42028       if test $have_xattr = yes; then
42029          { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42030 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42031 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42032   echo $ECHO_N "(cached) $ECHO_C" >&6
42033 else
42034   ac_check_lib_save_LIBS=$LIBS
42035 LIBS="-lnvpair  $LIBS"
42036 cat >conftest.$ac_ext <<_ACEOF
42037 /* confdefs.h.  */
42038 _ACEOF
42039 cat confdefs.h >>conftest.$ac_ext
42040 cat >>conftest.$ac_ext <<_ACEOF
42041 /* end confdefs.h.  */
42042
42043 /* Override any GCC internal prototype to avoid an error.
42044    Use char because int might match the return type of a GCC
42045    builtin and then its argument prototype would still apply.  */
42046 #ifdef __cplusplus
42047 extern "C"
42048 #endif
42049 char nvlist_next_nvpair ();
42050 int
42051 main ()
42052 {
42053 return nvlist_next_nvpair ();
42054   ;
42055   return 0;
42056 }
42057 _ACEOF
42058 rm -f conftest.$ac_objext conftest$ac_exeext
42059 if { (ac_try="$ac_link"
42060 case "(($ac_try" in
42061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42062   *) ac_try_echo=$ac_try;;
42063 esac
42064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42065   (eval "$ac_link") 2>conftest.er1
42066   ac_status=$?
42067   grep -v '^ *+' conftest.er1 >conftest.err
42068   rm -f conftest.er1
42069   cat conftest.err >&5
42070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42071   (exit $ac_status); } && {
42072          test -z "$ac_c_werror_flag" ||
42073          test ! -s conftest.err
42074        } && test -s conftest$ac_exeext &&
42075        $as_test_x conftest$ac_exeext; then
42076   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42077 else
42078   echo "$as_me: failed program was:" >&5
42079 sed 's/^/| /' conftest.$ac_ext >&5
42080
42081         ac_cv_lib_nvpair_nvlist_next_nvpair=no
42082 fi
42083
42084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42085       conftest$ac_exeext conftest.$ac_ext
42086 LIBS=$ac_check_lib_save_LIBS
42087 fi
42088 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42089 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42090 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42091
42092                 FDLIBS="-lnvpair $FDLIBS"
42093
42094
42095 fi
42096
42097       fi
42098    fi
42099
42100    if test $have_xattr = yes; then
42101
42102 cat >>confdefs.h <<\_ACEOF
42103 #define HAVE_XATTR
42104 _ACEOF
42105
42106    fi
42107 fi
42108
42109 PTHREAD_LIB=""
42110 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42111 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42112 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42113   echo $ECHO_N "(cached) $ECHO_C" >&6
42114 else
42115   ac_check_lib_save_LIBS=$LIBS
42116 LIBS="-lpthread  $LIBS"
42117 cat >conftest.$ac_ext <<_ACEOF
42118 /* confdefs.h.  */
42119 _ACEOF
42120 cat confdefs.h >>conftest.$ac_ext
42121 cat >>conftest.$ac_ext <<_ACEOF
42122 /* end confdefs.h.  */
42123
42124 /* Override any GCC internal prototype to avoid an error.
42125    Use char because int might match the return type of a GCC
42126    builtin and then its argument prototype would still apply.  */
42127 #ifdef __cplusplus
42128 extern "C"
42129 #endif
42130 char pthread_create ();
42131 int
42132 main ()
42133 {
42134 return pthread_create ();
42135   ;
42136   return 0;
42137 }
42138 _ACEOF
42139 rm -f conftest.$ac_objext conftest$ac_exeext
42140 if { (ac_try="$ac_link"
42141 case "(($ac_try" in
42142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42143   *) ac_try_echo=$ac_try;;
42144 esac
42145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42146   (eval "$ac_link") 2>conftest.er1
42147   ac_status=$?
42148   grep -v '^ *+' conftest.er1 >conftest.err
42149   rm -f conftest.er1
42150   cat conftest.err >&5
42151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42152   (exit $ac_status); } && {
42153          test -z "$ac_c_werror_flag" ||
42154          test ! -s conftest.err
42155        } && test -s conftest$ac_exeext &&
42156        $as_test_x conftest$ac_exeext; then
42157   ac_cv_lib_pthread_pthread_create=yes
42158 else
42159   echo "$as_me: failed program was:" >&5
42160 sed 's/^/| /' conftest.$ac_ext >&5
42161
42162         ac_cv_lib_pthread_pthread_create=no
42163 fi
42164
42165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42166       conftest$ac_exeext conftest.$ac_ext
42167 LIBS=$ac_check_lib_save_LIBS
42168 fi
42169 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42170 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42171 if test $ac_cv_lib_pthread_pthread_create = yes; then
42172   PTHREAD_LIB="-lpthread"
42173 else
42174
42175        { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42176 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42177 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42178   echo $ECHO_N "(cached) $ECHO_C" >&6
42179 else
42180   ac_check_lib_save_LIBS=$LIBS
42181 LIBS="-lpthreads  $LIBS"
42182 cat >conftest.$ac_ext <<_ACEOF
42183 /* confdefs.h.  */
42184 _ACEOF
42185 cat confdefs.h >>conftest.$ac_ext
42186 cat >>conftest.$ac_ext <<_ACEOF
42187 /* end confdefs.h.  */
42188
42189 /* Override any GCC internal prototype to avoid an error.
42190    Use char because int might match the return type of a GCC
42191    builtin and then its argument prototype would still apply.  */
42192 #ifdef __cplusplus
42193 extern "C"
42194 #endif
42195 char pthread_create ();
42196 int
42197 main ()
42198 {
42199 return pthread_create ();
42200   ;
42201   return 0;
42202 }
42203 _ACEOF
42204 rm -f conftest.$ac_objext conftest$ac_exeext
42205 if { (ac_try="$ac_link"
42206 case "(($ac_try" in
42207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42208   *) ac_try_echo=$ac_try;;
42209 esac
42210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42211   (eval "$ac_link") 2>conftest.er1
42212   ac_status=$?
42213   grep -v '^ *+' conftest.er1 >conftest.err
42214   rm -f conftest.er1
42215   cat conftest.err >&5
42216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42217   (exit $ac_status); } && {
42218          test -z "$ac_c_werror_flag" ||
42219          test ! -s conftest.err
42220        } && test -s conftest$ac_exeext &&
42221        $as_test_x conftest$ac_exeext; then
42222   ac_cv_lib_pthreads_pthread_create=yes
42223 else
42224   echo "$as_me: failed program was:" >&5
42225 sed 's/^/| /' conftest.$ac_ext >&5
42226
42227         ac_cv_lib_pthreads_pthread_create=no
42228 fi
42229
42230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42231       conftest$ac_exeext conftest.$ac_ext
42232 LIBS=$ac_check_lib_save_LIBS
42233 fi
42234 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42235 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42236 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42237   PTHREAD_LIB="-lpthreads"
42238 else
42239
42240               { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42241 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42242 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42243   echo $ECHO_N "(cached) $ECHO_C" >&6
42244 else
42245   ac_check_lib_save_LIBS=$LIBS
42246 LIBS="-lc_r  $LIBS"
42247 cat >conftest.$ac_ext <<_ACEOF
42248 /* confdefs.h.  */
42249 _ACEOF
42250 cat confdefs.h >>conftest.$ac_ext
42251 cat >>conftest.$ac_ext <<_ACEOF
42252 /* end confdefs.h.  */
42253
42254 /* Override any GCC internal prototype to avoid an error.
42255    Use char because int might match the return type of a GCC
42256    builtin and then its argument prototype would still apply.  */
42257 #ifdef __cplusplus
42258 extern "C"
42259 #endif
42260 char pthread_create ();
42261 int
42262 main ()
42263 {
42264 return pthread_create ();
42265   ;
42266   return 0;
42267 }
42268 _ACEOF
42269 rm -f conftest.$ac_objext conftest$ac_exeext
42270 if { (ac_try="$ac_link"
42271 case "(($ac_try" in
42272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42273   *) ac_try_echo=$ac_try;;
42274 esac
42275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42276   (eval "$ac_link") 2>conftest.er1
42277   ac_status=$?
42278   grep -v '^ *+' conftest.er1 >conftest.err
42279   rm -f conftest.er1
42280   cat conftest.err >&5
42281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42282   (exit $ac_status); } && {
42283          test -z "$ac_c_werror_flag" ||
42284          test ! -s conftest.err
42285        } && test -s conftest$ac_exeext &&
42286        $as_test_x conftest$ac_exeext; then
42287   ac_cv_lib_c_r_pthread_create=yes
42288 else
42289   echo "$as_me: failed program was:" >&5
42290 sed 's/^/| /' conftest.$ac_ext >&5
42291
42292         ac_cv_lib_c_r_pthread_create=no
42293 fi
42294
42295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42296       conftest$ac_exeext conftest.$ac_ext
42297 LIBS=$ac_check_lib_save_LIBS
42298 fi
42299 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
42300 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
42301 if test $ac_cv_lib_c_r_pthread_create = yes; then
42302   PTHREAD_LIB="-lc_r"
42303 else
42304
42305                      { echo "$as_me:$LINENO: checking for pthread_create" >&5
42306 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
42307 if test "${ac_cv_func_pthread_create+set}" = set; then
42308   echo $ECHO_N "(cached) $ECHO_C" >&6
42309 else
42310   cat >conftest.$ac_ext <<_ACEOF
42311 /* confdefs.h.  */
42312 _ACEOF
42313 cat confdefs.h >>conftest.$ac_ext
42314 cat >>conftest.$ac_ext <<_ACEOF
42315 /* end confdefs.h.  */
42316 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
42317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42318 #define pthread_create innocuous_pthread_create
42319
42320 /* System header to define __stub macros and hopefully few prototypes,
42321     which can conflict with char pthread_create (); below.
42322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42323     <limits.h> exists even on freestanding compilers.  */
42324
42325 #ifdef __STDC__
42326 # include <limits.h>
42327 #else
42328 # include <assert.h>
42329 #endif
42330
42331 #undef pthread_create
42332
42333 /* Override any GCC internal prototype to avoid an error.
42334    Use char because int might match the return type of a GCC
42335    builtin and then its argument prototype would still apply.  */
42336 #ifdef __cplusplus
42337 extern "C"
42338 #endif
42339 char pthread_create ();
42340 /* The GNU C library defines this for functions which it implements
42341     to always fail with ENOSYS.  Some functions are actually named
42342     something starting with __ and the normal name is an alias.  */
42343 #if defined __stub_pthread_create || defined __stub___pthread_create
42344 choke me
42345 #endif
42346
42347 int
42348 main ()
42349 {
42350 return pthread_create ();
42351   ;
42352   return 0;
42353 }
42354 _ACEOF
42355 rm -f conftest.$ac_objext conftest$ac_exeext
42356 if { (ac_try="$ac_link"
42357 case "(($ac_try" in
42358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42359   *) ac_try_echo=$ac_try;;
42360 esac
42361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42362   (eval "$ac_link") 2>conftest.er1
42363   ac_status=$?
42364   grep -v '^ *+' conftest.er1 >conftest.err
42365   rm -f conftest.er1
42366   cat conftest.err >&5
42367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42368   (exit $ac_status); } && {
42369          test -z "$ac_c_werror_flag" ||
42370          test ! -s conftest.err
42371        } && test -s conftest$ac_exeext &&
42372        $as_test_x conftest$ac_exeext; then
42373   ac_cv_func_pthread_create=yes
42374 else
42375   echo "$as_me: failed program was:" >&5
42376 sed 's/^/| /' conftest.$ac_ext >&5
42377
42378         ac_cv_func_pthread_create=no
42379 fi
42380
42381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42382       conftest$ac_exeext conftest.$ac_ext
42383 fi
42384 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
42385 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
42386
42387
42388
42389 fi
42390
42391
42392
42393 fi
42394
42395
42396
42397 fi
42398
42399
42400
42401 cat >>confdefs.h <<\_ACEOF
42402 #define FDLIBS 1
42403 _ACEOF
42404
42405
42406 CFLAGS=${CFLAGS--O}
42407
42408 if test x$have_gcc = xyes ; then
42409    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42410    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42411 fi
42412 LDFLAGS=${LDFLAGS--O}
42413 DB_LIBS="${SQL_LFLAGS}"
42414 CPPFLAGS="$CPPFLAGS"
42415 CFLAGS="$CFLAGS"
42416
42417
42418
42419
42420
42421
42422
42423
42424
42425
42426
42427
42428
42429
42430
42431
42432 OBJLIST=
42433
42434
42435 lld="lld"
42436 llu="llu"
42437
42438 WCFLAGS=
42439 WLDFLAGS=
42440
42441 PFILES="platforms/Makefile"
42442 PSCMD="ps -e"
42443 WIN32=
42444 MACOSX=
42445 hostname=`uname -n | cut -d '.' -f 1`
42446 if test x${hostname} = x ; then
42447    hostname="localhost"
42448 fi
42449 case "$DISTNAME" in
42450 aix)
42451    DISTVER=`uname -r`
42452    PSCMD="ps -e -o pid,comm"
42453    PFILES="${PFILES} \
42454       platforms/aix/Makefile"
42455    TAPEDRIVE="/dev/rmt0.1"
42456   ;;
42457 alpha)
42458    DISTVER=`uname -r`
42459    PTHREAD_LIB="-lpthread -lexc"
42460    if test "${CC}" = "gcc" ; then
42461       lld="lld"
42462       llu="llu"
42463    else
42464       lld="ld"
42465       llu="lu"
42466    fi
42467    TAPEDRIVE="/dev/nrmt0"
42468   ;;
42469 bsdi)
42470    DISTVER=`uname -a |awk '{print $3}'`
42471    TAPEDRIVE="/dev/nrmt0"
42472    PTHREAD_LIB="-pthread"
42473    CFLAGS="${CFLAGS} -pthread"
42474    PSCMD="ps -ax -o pid,command"
42475    lld="qd"
42476    llu="qu"
42477    PFILES="${PFILES} \
42478        platforms/bsdi/Makefile \
42479        platforms/bsdi/bacula-fd \
42480        platforms/bsdi/bacula-sd \
42481        platforms/bsdi/bacula-dir"
42482    largefile_support="yes"
42483   ;;
42484 cygwin)
42485    DISTVER=`uname -a |awk '{print $3}'`
42486    TAPEDRIVE="/dev/nrst0"
42487    WIN32=win32
42488    WCFLAGS="-mwindows"
42489    WLDFLAGS="-mwindows"
42490   ;;
42491 darwin)
42492    DISTVER=`uname -r`
42493    TAPEDRIVE="/dev/nst0"
42494    PSCMD="ps -e -o pid,command"
42495    MACOSX=macosx
42496    PFILES="${PFILES} \
42497       platforms/darwin/Makefile"
42498   ;;
42499 debian)
42500       ping -c 1 $hostname 2>&1 1>/dev/null
42501    if test ! $? = 0; then
42502       hostname="localhost"
42503    fi
42504    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
42505       DISTNAME="ubuntu"
42506    fi
42507    DISTVER=`cat /etc/debian_version`
42508    if test -f /etc/lsb-release ; then
42509       . /etc/lsb-release
42510       if test "x$DISTRIB_ID" != "x" ; then
42511          DISTNAME=$DISTRIB_ID
42512       fi
42513       if test "x$DISTRIB_RELEASE" != "x" ; then
42514          DISTVER=$DISTRIB_RELEASE
42515       fi
42516    fi
42517    if test "$DISTNAME" = "Ubuntu" ; then
42518       DISTNAME="ubuntu"
42519    fi
42520    TAPEDRIVE="/dev/nst0"
42521    PSCMD="ps -e -o pid,command"
42522    if test "$DISTNAME" = "ubuntu" ; then
42523       PFILES="${PFILES} \
42524          platforms/ubuntu/Makefile \
42525          platforms/ubuntu/bacula-fd \
42526          platforms/ubuntu/bacula-sd \
42527          platforms/ubuntu/bacula-dir"
42528    else
42529       PFILES="${PFILES} \
42530          platforms/debian/Makefile \
42531          platforms/debian/bacula-fd \
42532          platforms/debian/bacula-sd \
42533          platforms/debian/bacula-dir"
42534    fi
42535   ;;
42536 freebsd)
42537       ping -c 1 $hostname 2>&1 1>/dev/null
42538    if test ! $? = 0; then
42539       hostname="localhost"
42540    fi
42541    DISTVER=`uname -a |awk '{print $3}'`
42542    VER=`echo $DISTVER | cut -c 1`
42543    if test x$VER = x4 ; then
42544       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
42545       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
42546    fi
42547    lld="qd"
42548    llu="qu"
42549    TAPEDRIVE="/dev/nrsa0"
42550    PSCMD="ps -ax -o pid,command"
42551    PFILES="${PFILES} \
42552        platforms/freebsd/Makefile \
42553        platforms/freebsd/bacula-fd \
42554        platforms/freebsd/bacula-sd \
42555        platforms/freebsd/bacula-dir"
42556    largefile_support="yes"
42557   ;;
42558 hpux)
42559    PSCMD="UNIX95=1; ps -e -o pid,comm"
42560    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
42561    DISTVER=`uname -r`
42562    TAPEDRIVE="/dev/rmt/0hnb"
42563    PTHREAD_LIB="-lpthread"
42564    cat >>confdefs.h <<\_ACEOF
42565 #define _INCLUDE_LONGLONG 1
42566 _ACEOF
42567
42568   ;;
42569 irix)
42570    DISTVER=`uname -r`
42571    TAPEDRIVE="/dev/rmt/0cbn"
42572    PSCMD="ps -e -o pid,comm"
42573    PFILES="${PFILES} \
42574        platforms/irix/Makefile \
42575        platforms/irix/bacula-fd \
42576        platforms/irix/bacula-sd \
42577        platforms/irix/bacula-dir"
42578   ;;
42579 netbsd)
42580    DISTVER=`uname -a |awk '{print $3}'`
42581    lld="qd"
42582    llu="qu"
42583    TAPEDRIVE="/dev/nrst0"
42584    PSCMD="ps -ax -o pid,command"
42585    PTHREAD_LIB="-pthread"
42586    CFLAGS="${CFLAGS} -pthread"
42587   ;;
42588 openbsd)
42589    DISTVER=`uname -a |awk '{print $3}'`
42590    lld="qd"
42591    llu="qu"
42592    TAPEDRIVE="/dev/nrst0"
42593    PSCMD="ps -ax -o pid,command"
42594    PTHREAD_LIB="-pthread"
42595    CFLAGS="${CFLAGS} -pthread"
42596    PFILES="${PFILES} \
42597        platforms/openbsd/Makefile \
42598        platforms/openbsd/bacula-fd \
42599        platforms/openbsd/bacula-sd \
42600        platforms/openbsd/bacula-dir"
42601   ;;
42602 redhat)
42603       ping -c 1 $hostname 2>&1 1>/dev/null
42604    if test ! $? = 0; then
42605       hostname="localhost"
42606    fi
42607    if test -f /etc/whitebox-release ; then
42608       f=/etc/whitebox-release
42609    else
42610       f=/etc/redhat-release
42611    fi
42612    if test `cat $f | grep release |\
42613          cut -f 3 -d ' '`x = "Enterprise"x ; then
42614       DISTVER="Enterprise "`cat $f | grep release |\
42615           cut -f 6 -d ' '`
42616    else
42617        DISTVER=`cat /etc/redhat-release | grep release |\
42618            cut -f 5 -d ' '`
42619    fi
42620    TAPEDRIVE="/dev/nst0"
42621    PSCMD="ps -e -o pid,command"
42622    PFILES="${PFILES} \
42623        platforms/redhat/Makefile \
42624        platforms/redhat/bacula-fd \
42625        platforms/redhat/bacula-sd \
42626        platforms/redhat/bacula-dir \
42627        platforms/redhat/bacula.spec \
42628        "
42629   ;;
42630 mandrake)
42631       ping -c 1 $hostname 2>&1 1>/dev/null
42632    if test ! $? = 0; then
42633       hostname="localhost"
42634    fi
42635    DISTVER=`cat /etc/mandrake-release | grep release |\
42636       cut -f 5 -d ' '`
42637    TAPEDRIVE="/dev/nst0"
42638    PSCMD="ps -e -o pid,command"
42639    PFILES="${PFILES} \
42640        platforms/mandrake/Makefile \
42641        platforms/mandrake/bacula-fd \
42642        platforms/mandrake/bacula-sd \
42643        platforms/mandrake/bacula-dir \
42644        platforms/mandrake/bacula.spec \
42645        "
42646   ;;
42647 gentoo)
42648       ping -c 1 $hostname 2>&1 1>/dev/null
42649    if test ! $? = 0; then
42650       hostname="localhost"
42651    fi
42652    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
42653    TAPEDRIVE="/dev/nst0"
42654    PSCMD="ps -e -o pid,command"
42655    PFILES="${PFILES} \
42656        platforms/gentoo/Makefile \
42657     platforms/gentoo/bacula-init \
42658        platforms/gentoo/bacula-fd \
42659        platforms/gentoo/bacula-sd \
42660        platforms/gentoo/bacula-dir"
42661   ;;
42662 slackware)
42663       ping -c 1 $hostname 2>&1 1>/dev/null
42664    if test ! $? = 0; then
42665       hostname="localhost"
42666    fi
42667    DISTVER=`cat /etc/slackware-version`
42668    TAPEDRIVE="/dev/nst0"
42669    PSCMD="ps -e -o pid,command"
42670    PFILES="${PFILES} \
42671        platforms/slackware/Makefile \
42672        platforms/slackware/rc.bacula-fd \
42673        platforms/slackware/rc.bacula-sd \
42674        platforms/slackware/rc.bacula-dir\
42675        platforms/slackware/functions.bacula"
42676   ;;
42677 solaris)
42678    DISTVER=`uname -r`
42679    TAPEDRIVE="/dev/rmt/0cbn"
42680    PSCMD="ps -e -o pid,comm"
42681    PFILES="${PFILES} \
42682        platforms/solaris/Makefile \
42683        platforms/solaris/bacula-fd \
42684        platforms/solaris/bacula-sd \
42685        platforms/solaris/bacula-dir"
42686    if test x$DISTVER = x5.6 ; then
42687        cat >>confdefs.h <<\_ACEOF
42688 #define HAVE_OLD_SOCKOPT 1
42689 _ACEOF
42690
42691    fi
42692    LIBS="$LIBS -lresolv"
42693   ;;
42694 suse)
42695       ping -c 1 $hostname 2>&1 1>/dev/null
42696    if test ! $? = 0; then
42697       hostname="localhost"
42698    fi
42699    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
42700        cut -f 3 -d ' '`
42701    TAPEDRIVE="/dev/nst0"
42702    PSCMD="ps -e -o pid,command"
42703    PFILES="${PFILES} \
42704        platforms/suse/Makefile \
42705        platforms/suse/bacula-fd \
42706        platforms/suse/bacula-sd \
42707        platforms/suse/bacula-dir \
42708        platforms/suse/bacula \
42709        platforms/suse/bacula.spec"
42710   ;;
42711 suse5)
42712       ping -c 1 $hostname 2>&1 1>/dev/null
42713    if test ! $? = 0; then
42714       hostname="localhost"
42715    fi
42716    DISTNAME=suse
42717    DISTVER=5.x
42718    TAPEDRIVE="/dev/nst0"
42719    PSCMD="ps -e -o pid,command"
42720    PFILES="${PFILES} \
42721        platforms/suse/Makefile \
42722        platforms/suse/bacula-fd \
42723        platforms/suse/bacula-sd \
42724        platforms/suse/bacula-dir"
42725   ;;
42726 unknown)
42727    DISTVER=unknown
42728    TAPEDRIVE="/dev/nst0"
42729   ;;
42730 *)
42731   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
42732   ;;
42733 esac
42734
42735
42736
42737 LIBS="$PTHREAD_LIB $LIBS"
42738
42739 cat >>confdefs.h <<_ACEOF
42740 #define lld "$lld"
42741 _ACEOF
42742
42743 cat >>confdefs.h <<_ACEOF
42744 #define llu "$llu"
42745 _ACEOF
42746
42747
42748
42749
42750
42751
42752
42753
42754 MCOMMON=./autoconf/Make.common
42755
42756
42757 if test "x${subsysdir}" = "x${sbindir}" ; then
42758    echo " "
42759    echo " "
42760    echo "You have set both --sbindir and --with-subsys-dir"
42761    echo "  equal to: ${subsysdir} "
42762    echo "This is not permitted. Please reconfigure."
42763    echo " "
42764    echo "Aborting configuration ..."
42765    echo " "
42766    echo " "
42767    exit 1
42768 fi
42769
42770 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/gnome2-console/Makefile src/gnome2-console/bgnome-console.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"
42771
42772 ac_config_commands="$ac_config_commands default"
42773
42774 cat >confcache <<\_ACEOF
42775 # This file is a shell script that caches the results of configure
42776 # tests run on this system so they can be shared between configure
42777 # scripts and configure runs, see configure's option --config-cache.
42778 # It is not useful on other systems.  If it contains results you don't
42779 # want to keep, you may remove or edit it.
42780 #
42781 # config.status only pays attention to the cache file if you give it
42782 # the --recheck option to rerun configure.
42783 #
42784 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42785 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42786 # following values.
42787
42788 _ACEOF
42789
42790 # The following way of writing the cache mishandles newlines in values,
42791 # but we know of no workaround that is simple, portable, and efficient.
42792 # So, we kill variables containing newlines.
42793 # Ultrix sh set writes to stderr and can't be redirected directly,
42794 # and sets the high bit in the cache file unless we assign to the vars.
42795 (
42796   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42797     eval ac_val=\$$ac_var
42798     case $ac_val in #(
42799     *${as_nl}*)
42800       case $ac_var in #(
42801       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42802 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42803       esac
42804       case $ac_var in #(
42805       _ | IFS | as_nl) ;; #(
42806       *) $as_unset $ac_var ;;
42807       esac ;;
42808     esac
42809   done
42810
42811   (set) 2>&1 |
42812     case $as_nl`(ac_space=' '; set) 2>&1` in #(
42813     *${as_nl}ac_space=\ *)
42814       # `set' does not quote correctly, so add quotes (double-quote
42815       # substitution turns \\\\ into \\, and sed turns \\ into \).
42816       sed -n \
42817         "s/'/'\\\\''/g;
42818           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42819       ;; #(
42820     *)
42821       # `set' quotes correctly as required by POSIX, so do not add quotes.
42822       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42823       ;;
42824     esac |
42825     sort
42826 ) |
42827   sed '
42828      /^ac_cv_env_/b end
42829      t clear
42830      :clear
42831      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42832      t end
42833      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42834      :end' >>confcache
42835 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42836   if test -w "$cache_file"; then
42837     test "x$cache_file" != "x/dev/null" &&
42838       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42839 echo "$as_me: updating cache $cache_file" >&6;}
42840     cat confcache >$cache_file
42841   else
42842     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42843 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42844   fi
42845 fi
42846 rm -f confcache
42847
42848 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42849 # Let make expand exec_prefix.
42850 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42851
42852 DEFS=-DHAVE_CONFIG_H
42853
42854 ac_libobjs=
42855 ac_ltlibobjs=
42856 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42857   # 1. Remove the extension, and $U if already installed.
42858   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
42859   ac_i=`echo "$ac_i" | sed "$ac_script"`
42860   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
42861   #    will be set to the directory where LIBOBJS objects are built.
42862   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42863   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42864 done
42865 LIBOBJS=$ac_libobjs
42866
42867 LTLIBOBJS=$ac_ltlibobjs
42868
42869
42870
42871 : ${CONFIG_STATUS=./config.status}
42872 ac_clean_files_save=$ac_clean_files
42873 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42874 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42875 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42876 cat >$CONFIG_STATUS <<_ACEOF
42877 #! $SHELL
42878 # Generated by $as_me.
42879 # Run this file to recreate the current configuration.
42880 # Compiler output produced by configure, useful for debugging
42881 # configure, is in config.log if it exists.
42882
42883 debug=false
42884 ac_cs_recheck=false
42885 ac_cs_silent=false
42886 SHELL=\${CONFIG_SHELL-$SHELL}
42887 _ACEOF
42888
42889 cat >>$CONFIG_STATUS <<\_ACEOF
42890 ## --------------------- ##
42891 ## M4sh Initialization.  ##
42892 ## --------------------- ##
42893
42894 # Be more Bourne compatible
42895 DUALCASE=1; export DUALCASE # for MKS sh
42896 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42897   emulate sh
42898   NULLCMD=:
42899   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42900   # is contrary to our usage.  Disable this feature.
42901   alias -g '${1+"$@"}'='"$@"'
42902   setopt NO_GLOB_SUBST
42903 else
42904   case `(set -o) 2>/dev/null` in
42905   *posix*) set -o posix ;;
42906 esac
42907
42908 fi
42909
42910
42911
42912
42913 # PATH needs CR
42914 # Avoid depending upon Character Ranges.
42915 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42916 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42917 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42918 as_cr_digits='0123456789'
42919 as_cr_alnum=$as_cr_Letters$as_cr_digits
42920
42921 # The user is always right.
42922 if test "${PATH_SEPARATOR+set}" != set; then
42923   echo "#! /bin/sh" >conf$$.sh
42924   echo  "exit 0"   >>conf$$.sh
42925   chmod +x conf$$.sh
42926   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42927     PATH_SEPARATOR=';'
42928   else
42929     PATH_SEPARATOR=:
42930   fi
42931   rm -f conf$$.sh
42932 fi
42933
42934 # Support unset when possible.
42935 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42936   as_unset=unset
42937 else
42938   as_unset=false
42939 fi
42940
42941
42942 # IFS
42943 # We need space, tab and new line, in precisely that order.  Quoting is
42944 # there to prevent editors from complaining about space-tab.
42945 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
42946 # splitting by setting IFS to empty value.)
42947 as_nl='
42948 '
42949 IFS=" ""        $as_nl"
42950
42951 # Find who we are.  Look in the path if we contain no directory separator.
42952 case $0 in
42953   *[\\/]* ) as_myself=$0 ;;
42954   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42955 for as_dir in $PATH
42956 do
42957   IFS=$as_save_IFS
42958   test -z "$as_dir" && as_dir=.
42959   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42960 done
42961 IFS=$as_save_IFS
42962
42963      ;;
42964 esac
42965 # We did not find ourselves, most probably we were run as `sh COMMAND'
42966 # in which case we are not to be found in the path.
42967 if test "x$as_myself" = x; then
42968   as_myself=$0
42969 fi
42970 if test ! -f "$as_myself"; then
42971   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42972   { (exit 1); exit 1; }
42973 fi
42974
42975 # Work around bugs in pre-3.0 UWIN ksh.
42976 for as_var in ENV MAIL MAILPATH
42977 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42978 done
42979 PS1='$ '
42980 PS2='> '
42981 PS4='+ '
42982
42983 # NLS nuisances.
42984 for as_var in \
42985   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42986   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42987   LC_TELEPHONE LC_TIME
42988 do
42989   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42990     eval $as_var=C; export $as_var
42991   else
42992     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42993   fi
42994 done
42995
42996 # Required to use basename.
42997 if expr a : '\(a\)' >/dev/null 2>&1 &&
42998    test "X`expr 00001 : '.*\(...\)'`" = X001; then
42999   as_expr=expr
43000 else
43001   as_expr=false
43002 fi
43003
43004 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43005   as_basename=basename
43006 else
43007   as_basename=false
43008 fi
43009
43010
43011 # Name of the executable.
43012 as_me=`$as_basename -- "$0" ||
43013 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43014          X"$0" : 'X\(//\)$' \| \
43015          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43016 echo X/"$0" |
43017     sed '/^.*\/\([^/][^/]*\)\/*$/{
43018             s//\1/
43019             q
43020           }
43021           /^X\/\(\/\/\)$/{
43022             s//\1/
43023             q
43024           }
43025           /^X\/\(\/\).*/{
43026             s//\1/
43027             q
43028           }
43029           s/.*/./; q'`
43030
43031 # CDPATH.
43032 $as_unset CDPATH
43033
43034
43035
43036   as_lineno_1=$LINENO
43037   as_lineno_2=$LINENO
43038   test "x$as_lineno_1" != "x$as_lineno_2" &&
43039   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43040
43041   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43042   # uniformly replaced by the line number.  The first 'sed' inserts a
43043   # line-number line after each line using $LINENO; the second 'sed'
43044   # does the real work.  The second script uses 'N' to pair each
43045   # line-number line with the line containing $LINENO, and appends
43046   # trailing '-' during substitution so that $LINENO is not a special
43047   # case at line end.
43048   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43049   # scripts with optimization help from Paolo Bonzini.  Blame Lee
43050   # E. McMahon (1931-1989) for sed's syntax.  :-)
43051   sed -n '
43052     p
43053     /[$]LINENO/=
43054   ' <$as_myself |
43055     sed '
43056       s/[$]LINENO.*/&-/
43057       t lineno
43058       b
43059       :lineno
43060       N
43061       :loop
43062       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43063       t loop
43064       s/-\n.*//
43065     ' >$as_me.lineno &&
43066   chmod +x "$as_me.lineno" ||
43067     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43068    { (exit 1); exit 1; }; }
43069
43070   # Don't try to exec as it changes $[0], causing all sort of problems
43071   # (the dirname of $[0] is not the place where we might find the
43072   # original and so on.  Autoconf is especially sensitive to this).
43073   . "./$as_me.lineno"
43074   # Exit status is that of the last command.
43075   exit
43076 }
43077
43078
43079 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43080   as_dirname=dirname
43081 else
43082   as_dirname=false
43083 fi
43084
43085 ECHO_C= ECHO_N= ECHO_T=
43086 case `echo -n x` in
43087 -n*)
43088   case `echo 'x\c'` in
43089   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
43090   *)   ECHO_C='\c';;
43091   esac;;
43092 *)
43093   ECHO_N='-n';;
43094 esac
43095
43096 if expr a : '\(a\)' >/dev/null 2>&1 &&
43097    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43098   as_expr=expr
43099 else
43100   as_expr=false
43101 fi
43102
43103 rm -f conf$$ conf$$.exe conf$$.file
43104 if test -d conf$$.dir; then
43105   rm -f conf$$.dir/conf$$.file
43106 else
43107   rm -f conf$$.dir
43108   mkdir conf$$.dir
43109 fi
43110 echo >conf$$.file
43111 if ln -s conf$$.file conf$$ 2>/dev/null; then
43112   as_ln_s='ln -s'
43113   # ... but there are two gotchas:
43114   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43115   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43116   # In both cases, we have to default to `cp -p'.
43117   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43118     as_ln_s='cp -p'
43119 elif ln conf$$.file conf$$ 2>/dev/null; then
43120   as_ln_s=ln
43121 else
43122   as_ln_s='cp -p'
43123 fi
43124 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43125 rmdir conf$$.dir 2>/dev/null
43126
43127 if mkdir -p . 2>/dev/null; then
43128   as_mkdir_p=:
43129 else
43130   test -d ./-p && rmdir ./-p
43131   as_mkdir_p=false
43132 fi
43133
43134 if test -x / >/dev/null 2>&1; then
43135   as_test_x='test -x'
43136 else
43137   if ls -dL / >/dev/null 2>&1; then
43138     as_ls_L_option=L
43139   else
43140     as_ls_L_option=
43141   fi
43142   as_test_x='
43143     eval sh -c '\''
43144       if test -d "$1"; then
43145         test -d "$1/.";
43146       else
43147         case $1 in
43148         -*)set "./$1";;
43149         esac;
43150         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43151         ???[sx]*):;;*)false;;esac;fi
43152     '\'' sh
43153   '
43154 fi
43155 as_executable_p=$as_test_x
43156
43157 # Sed expression to map a string onto a valid CPP name.
43158 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43159
43160 # Sed expression to map a string onto a valid variable name.
43161 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43162
43163
43164 exec 6>&1
43165
43166 # Save the log message, to keep $[0] and so on meaningful, and to
43167 # report actual input values of CONFIG_FILES etc. instead of their
43168 # values after options handling.
43169 ac_log="
43170 This file was extended by $as_me, which was
43171 generated by GNU Autoconf 2.61.  Invocation command line was
43172
43173   CONFIG_FILES    = $CONFIG_FILES
43174   CONFIG_HEADERS  = $CONFIG_HEADERS
43175   CONFIG_LINKS    = $CONFIG_LINKS
43176   CONFIG_COMMANDS = $CONFIG_COMMANDS
43177   $ $0 $@
43178
43179 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43180 "
43181
43182 _ACEOF
43183
43184 cat >>$CONFIG_STATUS <<_ACEOF
43185 # Files that config.status was made for.
43186 config_files="$ac_config_files"
43187 config_headers="$ac_config_headers"
43188 config_commands="$ac_config_commands"
43189
43190 _ACEOF
43191
43192 cat >>$CONFIG_STATUS <<\_ACEOF
43193 ac_cs_usage="\
43194 \`$as_me' instantiates files from templates according to the
43195 current configuration.
43196
43197 Usage: $0 [OPTIONS] [FILE]...
43198
43199   -h, --help       print this help, then exit
43200   -V, --version    print version number and configuration settings, then exit
43201   -q, --quiet      do not print progress messages
43202   -d, --debug      don't remove temporary files
43203       --recheck    update $as_me by reconfiguring in the same conditions
43204   --file=FILE[:TEMPLATE]
43205                    instantiate the configuration file FILE
43206   --header=FILE[:TEMPLATE]
43207                    instantiate the configuration header FILE
43208
43209 Configuration files:
43210 $config_files
43211
43212 Configuration headers:
43213 $config_headers
43214
43215 Configuration commands:
43216 $config_commands
43217
43218 Report bugs to <bug-autoconf@gnu.org>."
43219
43220 _ACEOF
43221 cat >>$CONFIG_STATUS <<_ACEOF
43222 ac_cs_version="\\
43223 config.status
43224 configured by $0, generated by GNU Autoconf 2.61,
43225   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43226
43227 Copyright (C) 2006 Free Software Foundation, Inc.
43228 This config.status script is free software; the Free Software Foundation
43229 gives unlimited permission to copy, distribute and modify it."
43230
43231 ac_pwd='$ac_pwd'
43232 srcdir='$srcdir'
43233 INSTALL='$INSTALL'
43234 _ACEOF
43235
43236 cat >>$CONFIG_STATUS <<\_ACEOF
43237 # If no file are specified by the user, then we need to provide default
43238 # value.  By we need to know if files were specified by the user.
43239 ac_need_defaults=:
43240 while test $# != 0
43241 do
43242   case $1 in
43243   --*=*)
43244     ac_option=`expr "X$1" : 'X\([^=]*\)='`
43245     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43246     ac_shift=:
43247     ;;
43248   *)
43249     ac_option=$1
43250     ac_optarg=$2
43251     ac_shift=shift
43252     ;;
43253   esac
43254
43255   case $ac_option in
43256   # Handling of the options.
43257   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43258     ac_cs_recheck=: ;;
43259   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43260     echo "$ac_cs_version"; exit ;;
43261   --debug | --debu | --deb | --de | --d | -d )
43262     debug=: ;;
43263   --file | --fil | --fi | --f )
43264     $ac_shift
43265     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43266     ac_need_defaults=false;;
43267   --header | --heade | --head | --hea )
43268     $ac_shift
43269     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43270     ac_need_defaults=false;;
43271   --he | --h)
43272     # Conflict between --help and --header
43273     { echo "$as_me: error: ambiguous option: $1
43274 Try \`$0 --help' for more information." >&2
43275    { (exit 1); exit 1; }; };;
43276   --help | --hel | -h )
43277     echo "$ac_cs_usage"; exit ;;
43278   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43279   | -silent | --silent | --silen | --sile | --sil | --si | --s)
43280     ac_cs_silent=: ;;
43281
43282   # This is an error.
43283   -*) { echo "$as_me: error: unrecognized option: $1
43284 Try \`$0 --help' for more information." >&2
43285    { (exit 1); exit 1; }; } ;;
43286
43287   *) ac_config_targets="$ac_config_targets $1"
43288      ac_need_defaults=false ;;
43289
43290   esac
43291   shift
43292 done
43293
43294 ac_configure_extra_args=
43295
43296 if $ac_cs_silent; then
43297   exec 6>/dev/null
43298   ac_configure_extra_args="$ac_configure_extra_args --silent"
43299 fi
43300
43301 _ACEOF
43302 cat >>$CONFIG_STATUS <<_ACEOF
43303 if \$ac_cs_recheck; then
43304   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43305   CONFIG_SHELL=$SHELL
43306   export CONFIG_SHELL
43307   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43308 fi
43309
43310 _ACEOF
43311 cat >>$CONFIG_STATUS <<\_ACEOF
43312 exec 5>>config.log
43313 {
43314   echo
43315   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43316 ## Running $as_me. ##
43317 _ASBOX
43318   echo "$ac_log"
43319 } >&5
43320
43321 _ACEOF
43322 cat >>$CONFIG_STATUS <<_ACEOF
43323 #
43324 # INIT-COMMANDS
43325 #
43326
43327
43328 # The HP-UX ksh and POSIX shell print the target directory to stdout
43329 # if CDPATH is set.
43330 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43331
43332 sed_quote_subst='$sed_quote_subst'
43333 double_quote_subst='$double_quote_subst'
43334 delay_variable_subst='$delay_variable_subst'
43335 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
43336 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
43337 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
43338 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
43339 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
43340 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
43341 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
43342 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
43343 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
43344 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
43345 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
43346 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
43347 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
43348 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
43349 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
43350 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
43351 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
43352 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
43353 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
43354 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
43355 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
43356 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
43357 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
43358 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
43359 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
43360 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
43361 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
43362 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43363 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
43364 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
43365 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
43366 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
43367 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43368 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
43369 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
43370 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43371 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43372 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43373 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
43374 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43375 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
43376 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
43377 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
43378 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
43379 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"`'
43380 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"`'
43381 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
43382 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
43383 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
43384 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
43385 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
43386 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
43387 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
43388 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
43389 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
43390 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
43391 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
43392 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
43393 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
43394 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
43395 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
43396 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
43397 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43398 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43399 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
43400 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
43401 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43402 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43403 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
43404 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43405 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43406 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43407 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43408 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43409 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43410 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
43411 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43412 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43413 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43414 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
43415 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
43416 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
43417 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
43418 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
43419 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43420 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
43421 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
43422 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
43423 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
43424 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
43425 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43426 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43427 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43428 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43429 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
43430 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
43431 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
43432 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
43433 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
43434 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43435 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43436 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
43437 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43438 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
43439 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43440 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43441 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43442 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43443 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
43444 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
43445 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43446 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43447 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
43448 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
43449 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
43450 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
43451 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
43452 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
43453 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
43454 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43455 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43456 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
43457 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
43458 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
43459 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43460 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43461 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43462 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43463 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43464 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43465 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43466 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43467 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43468 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43469 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43470 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43471 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43472 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43473 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43474 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43475 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43476 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43477 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43478 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43479 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43480 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43481 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43482 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43483 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43484 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43485 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43486 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43487 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43488 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43489 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43490 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43491 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43492 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43493 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43494 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43495 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43496 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43497 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43498 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43499 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43500 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43501 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43502 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43503 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43504 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43505 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43506
43507 LTCC='$LTCC'
43508 LTCFLAGS='$LTCFLAGS'
43509 compiler='$compiler_DEFAULT'
43510
43511 # Quote evaled strings.
43512 for var in SED \
43513 GREP \
43514 EGREP \
43515 FGREP \
43516 LD \
43517 NM \
43518 LN_S \
43519 lt_SP2NL \
43520 lt_NL2SP \
43521 reload_flag \
43522 OBJDUMP \
43523 deplibs_check_method \
43524 file_magic_cmd \
43525 AR \
43526 AR_FLAGS \
43527 STRIP \
43528 RANLIB \
43529 CC \
43530 CFLAGS \
43531 compiler \
43532 lt_cv_sys_global_symbol_pipe \
43533 lt_cv_sys_global_symbol_to_cdecl \
43534 lt_cv_sys_global_symbol_to_c_name_address \
43535 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
43536 SHELL \
43537 ECHO \
43538 lt_prog_compiler_no_builtin_flag \
43539 lt_prog_compiler_wl \
43540 lt_prog_compiler_pic \
43541 lt_prog_compiler_static \
43542 lt_cv_prog_compiler_c_o \
43543 need_locks \
43544 DSYMUTIL \
43545 NMEDIT \
43546 LIPO \
43547 OTOOL \
43548 OTOOL64 \
43549 shrext_cmds \
43550 export_dynamic_flag_spec \
43551 whole_archive_flag_spec \
43552 compiler_needs_object \
43553 with_gnu_ld \
43554 allow_undefined_flag \
43555 no_undefined_flag \
43556 hardcode_libdir_flag_spec \
43557 hardcode_libdir_flag_spec_ld \
43558 hardcode_libdir_separator \
43559 fix_srcfile_path \
43560 exclude_expsyms \
43561 include_expsyms \
43562 file_list_spec \
43563 variables_saved_for_relink \
43564 libname_spec \
43565 library_names_spec \
43566 soname_spec \
43567 finish_eval \
43568 old_striplib \
43569 striplib \
43570 compiler_lib_search_dirs \
43571 predep_objects \
43572 postdep_objects \
43573 predeps \
43574 postdeps \
43575 compiler_lib_search_path \
43576 LD_CXX \
43577 compiler_CXX \
43578 lt_prog_compiler_no_builtin_flag_CXX \
43579 lt_prog_compiler_wl_CXX \
43580 lt_prog_compiler_pic_CXX \
43581 lt_prog_compiler_static_CXX \
43582 lt_cv_prog_compiler_c_o_CXX \
43583 export_dynamic_flag_spec_CXX \
43584 whole_archive_flag_spec_CXX \
43585 compiler_needs_object_CXX \
43586 with_gnu_ld_CXX \
43587 allow_undefined_flag_CXX \
43588 no_undefined_flag_CXX \
43589 hardcode_libdir_flag_spec_CXX \
43590 hardcode_libdir_flag_spec_ld_CXX \
43591 hardcode_libdir_separator_CXX \
43592 fix_srcfile_path_CXX \
43593 exclude_expsyms_CXX \
43594 include_expsyms_CXX \
43595 file_list_spec_CXX \
43596 compiler_lib_search_dirs_CXX \
43597 predep_objects_CXX \
43598 postdep_objects_CXX \
43599 predeps_CXX \
43600 postdeps_CXX \
43601 compiler_lib_search_path_CXX; do
43602     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43603     *[\\\\\\\`\\"\\\$]*)
43604       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
43605       ;;
43606     *)
43607       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43608       ;;
43609     esac
43610 done
43611
43612 # Double-quote double-evaled strings.
43613 for var in reload_cmds \
43614 old_postinstall_cmds \
43615 old_postuninstall_cmds \
43616 old_archive_cmds \
43617 extract_expsyms_cmds \
43618 old_archive_from_new_cmds \
43619 old_archive_from_expsyms_cmds \
43620 archive_cmds \
43621 archive_expsym_cmds \
43622 module_cmds \
43623 module_expsym_cmds \
43624 export_symbols_cmds \
43625 prelink_cmds \
43626 postinstall_cmds \
43627 postuninstall_cmds \
43628 finish_cmds \
43629 sys_lib_search_path_spec \
43630 sys_lib_dlsearch_path_spec \
43631 old_archive_cmds_CXX \
43632 old_archive_from_new_cmds_CXX \
43633 old_archive_from_expsyms_cmds_CXX \
43634 archive_cmds_CXX \
43635 archive_expsym_cmds_CXX \
43636 module_cmds_CXX \
43637 module_expsym_cmds_CXX \
43638 export_symbols_cmds_CXX \
43639 prelink_cmds_CXX; do
43640     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43641     *[\\\\\\\`\\"\\\$]*)
43642       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
43643       ;;
43644     *)
43645       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43646       ;;
43647     esac
43648 done
43649
43650 # Fix-up fallback echo if it was mangled by the above quoting rules.
43651 case \$lt_ECHO in
43652 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
43653   ;;
43654 esac
43655
43656 ac_aux_dir='$ac_aux_dir'
43657 xsi_shell='$xsi_shell'
43658 lt_shell_append='$lt_shell_append'
43659
43660 # See if we are running on zsh, and set the options which allow our
43661 # commands through without removal of \ escapes INIT.
43662 if test -n "\${ZSH_VERSION+set}" ; then
43663    setopt NO_GLOB_SUBST
43664 fi
43665
43666
43667     PACKAGE='$PACKAGE'
43668     VERSION='$VERSION'
43669     TIMESTAMP='$TIMESTAMP'
43670     RM='$RM'
43671     ofile='$ofile'
43672
43673
43674
43675
43676
43677 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
43678     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
43679     # from automake.
43680     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
43681     # Capture the value of LINGUAS because we need it to compute CATALOGS.
43682     LINGUAS="${LINGUAS-%UNSET%}"
43683
43684
43685 _ACEOF
43686
43687 cat >>$CONFIG_STATUS <<\_ACEOF
43688
43689 # Handling of arguments.
43690 for ac_config_target in $ac_config_targets
43691 do
43692   case $ac_config_target in
43693     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
43694     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
43695     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
43696     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
43697     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43698     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
43699     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
43700     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
43701     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
43702     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
43703     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
43704     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
43705     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
43706     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
43707     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
43708     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
43709     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
43710     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
43711     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
43712     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
43713     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
43714     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
43715     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
43716     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
43717     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
43718     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
43719     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
43720     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
43721     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
43722     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
43723     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
43724     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
43725     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
43726     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
43727     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
43728     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
43729     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
43730     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
43731     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
43732     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
43733     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
43734     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
43735     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
43736     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
43737     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
43738     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
43739     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
43740     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
43741     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
43742     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
43743     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
43744     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
43745     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
43746     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
43747     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
43748     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
43749     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
43750     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
43751     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
43752     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
43753     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
43754     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
43755     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
43756     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
43757     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
43758     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
43759     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
43760     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
43761     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
43762     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
43763     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
43764     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
43765     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
43766     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
43767     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
43768     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
43769     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
43770     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
43771     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
43772     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
43773     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
43774     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
43775     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
43776     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
43777     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
43778     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
43779     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
43780     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
43781     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
43782     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
43783     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
43784     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
43785     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
43786     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
43787     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
43788     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
43789     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
43790     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
43791     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
43792     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
43793     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
43794     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
43795     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
43796     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
43797     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
43798     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
43799     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
43800     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
43801     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
43802     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
43803     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
43804     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
43805     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
43806     "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
43807     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
43808     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
43809     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
43810     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
43811     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
43812     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43813
43814   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43815 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43816    { (exit 1); exit 1; }; };;
43817   esac
43818 done
43819
43820
43821 # If the user did not use the arguments to specify the items to instantiate,
43822 # then the envvar interface is used.  Set only those that are not.
43823 # We use the long form for the default assignment because of an extremely
43824 # bizarre bug on SunOS 4.1.3.
43825 if $ac_need_defaults; then
43826   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43827   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43828   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43829 fi
43830
43831 # Have a temporary directory for convenience.  Make it in the build tree
43832 # simply because there is no reason against having it here, and in addition,
43833 # creating and moving files from /tmp can sometimes cause problems.
43834 # Hook for its removal unless debugging.
43835 # Note that there is a small window in which the directory will not be cleaned:
43836 # after its creation but before its name has been assigned to `$tmp'.
43837 $debug ||
43838 {
43839   tmp=
43840   trap 'exit_status=$?
43841   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43842 ' 0
43843   trap '{ (exit 1); exit 1; }' 1 2 13 15
43844 }
43845 # Create a (secure) tmp directory for tmp files.
43846
43847 {
43848   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43849   test -n "$tmp" && test -d "$tmp"
43850 }  ||
43851 {
43852   tmp=./conf$$-$RANDOM
43853   (umask 077 && mkdir "$tmp")
43854 } ||
43855 {
43856    echo "$me: cannot create a temporary directory in ." >&2
43857    { (exit 1); exit 1; }
43858 }
43859
43860 #
43861 # Set up the sed scripts for CONFIG_FILES section.
43862 #
43863
43864 # No need to generate the scripts if there are no CONFIG_FILES.
43865 # This happens for instance when ./config.status config.h
43866 if test -n "$CONFIG_FILES"; then
43867
43868 _ACEOF
43869
43870 # Create sed commands to just substitute file output variables.
43871
43872 # Remaining file output variables are in a fragment that also has non-file
43873 # output varibles.
43874
43875
43876
43877 ac_delim='%!_!# '
43878 for ac_last_try in false false false false false :; do
43879   cat >conf$$subs.sed <<_ACEOF
43880 SHELL!$SHELL$ac_delim
43881 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43882 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
43883 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
43884 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
43885 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
43886 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
43887 exec_prefix!$exec_prefix$ac_delim
43888 prefix!$prefix$ac_delim
43889 program_transform_name!$program_transform_name$ac_delim
43890 bindir!$bindir$ac_delim
43891 sbindir!$sbindir$ac_delim
43892 libexecdir!$libexecdir$ac_delim
43893 datarootdir!$datarootdir$ac_delim
43894 datadir!$datadir$ac_delim
43895 sysconfdir!$sysconfdir$ac_delim
43896 sharedstatedir!$sharedstatedir$ac_delim
43897 localstatedir!$localstatedir$ac_delim
43898 includedir!$includedir$ac_delim
43899 oldincludedir!$oldincludedir$ac_delim
43900 docdir!$docdir$ac_delim
43901 infodir!$infodir$ac_delim
43902 htmldir!$htmldir$ac_delim
43903 dvidir!$dvidir$ac_delim
43904 pdfdir!$pdfdir$ac_delim
43905 psdir!$psdir$ac_delim
43906 libdir!$libdir$ac_delim
43907 localedir!$localedir$ac_delim
43908 mandir!$mandir$ac_delim
43909 DEFS!$DEFS$ac_delim
43910 ECHO_C!$ECHO_C$ac_delim
43911 ECHO_N!$ECHO_N$ac_delim
43912 ECHO_T!$ECHO_T$ac_delim
43913 LIBS!$LIBS$ac_delim
43914 build_alias!$build_alias$ac_delim
43915 host_alias!$host_alias$ac_delim
43916 target_alias!$target_alias$ac_delim
43917 BUILD_DIR!$BUILD_DIR$ac_delim
43918 TOP_DIR!$TOP_DIR$ac_delim
43919 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
43920 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
43921 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
43922 TRUEPRG!$TRUEPRG$ac_delim
43923 FALSEPRG!$FALSEPRG$ac_delim
43924 VERSION!$VERSION$ac_delim
43925 DATE!$DATE$ac_delim
43926 LSMDATE!$LSMDATE$ac_delim
43927 BACULA!$BACULA$ac_delim
43928 post_host!$post_host$ac_delim
43929 CC!$CC$ac_delim
43930 CFLAGS!$CFLAGS$ac_delim
43931 LDFLAGS!$LDFLAGS$ac_delim
43932 CPPFLAGS!$CPPFLAGS$ac_delim
43933 ac_ct_CC!$ac_ct_CC$ac_delim
43934 EXEEXT!$EXEEXT$ac_delim
43935 OBJEXT!$OBJEXT$ac_delim
43936 CXX!$CXX$ac_delim
43937 CXXFLAGS!$CXXFLAGS$ac_delim
43938 ac_ct_CXX!$ac_ct_CXX$ac_delim
43939 CPP!$CPP$ac_delim
43940 GREP!$GREP$ac_delim
43941 EGREP!$EGREP$ac_delim
43942 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
43943 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
43944 INSTALL_DATA!$INSTALL_DATA$ac_delim
43945 MV!$MV$ac_delim
43946 REMOVE!$REMOVE$ac_delim
43947 CP!$CP$ac_delim
43948 SED!$SED$ac_delim
43949 ECHO!$ECHO$ac_delim
43950 CMP!$CMP$ac_delim
43951 TBL!$TBL$ac_delim
43952 AR!$AR$ac_delim
43953 OPENSSL!$OPENSSL$ac_delim
43954 MTX!$MTX$ac_delim
43955 DD!$DD$ac_delim
43956 MKISOFS!$MKISOFS$ac_delim
43957 PYTHON!$PYTHON$ac_delim
43958 GROWISOFS!$GROWISOFS$ac_delim
43959 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
43960 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
43961 PKGCONFIG!$PKGCONFIG$ac_delim
43962 QMAKE!$QMAKE$ac_delim
43963 QMAKEQT4!$QMAKEQT4$ac_delim
43964 GMAKE!$GMAKE$ac_delim
43965 WXCONFIG!$WXCONFIG$ac_delim
43966 WXFLAGS!$WXFLAGS$ac_delim
43967 CDRECORD!$CDRECORD$ac_delim
43968 PIDOF!$PIDOF$ac_delim
43969 AWK!$AWK$ac_delim
43970 ARFLAGS!$ARFLAGS$ac_delim
43971 MAKE_SHELL!$MAKE_SHELL$ac_delim
43972 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
43973 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
43974 _ACEOF
43975
43976   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
43977     break
43978   elif $ac_last_try; then
43979     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43980 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43981    { (exit 1); exit 1; }; }
43982   else
43983     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43984   fi
43985 done
43986
43987 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43988 if test -n "$ac_eof"; then
43989   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43990   ac_eof=`expr $ac_eof + 1`
43991 fi
43992
43993 cat >>$CONFIG_STATUS <<_ACEOF
43994 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43996 /^[      ]*@MCOMMON@[    ]*$/{
43997 r $MCOMMON
43998 d
43999 }
44000 _ACEOF
44001 sed '
44002 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44003 s/^/s,@/; s/!/@,|#_!!_#|/
44004 :n
44005 t n
44006 s/'"$ac_delim"'$/,g/; t
44007 s/$/\\/; p
44008 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44009 ' >>$CONFIG_STATUS <conf$$subs.sed
44010 rm -f conf$$subs.sed
44011 cat >>$CONFIG_STATUS <<_ACEOF
44012 CEOF$ac_eof
44013 _ACEOF
44014
44015
44016 ac_delim='%!_!# '
44017 for ac_last_try in false false false false false :; do
44018   cat >conf$$subs.sed <<_ACEOF
44019 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
44020 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
44021 LIBTOOL!$LIBTOOL$ac_delim
44022 build!$build$ac_delim
44023 build_cpu!$build_cpu$ac_delim
44024 build_vendor!$build_vendor$ac_delim
44025 build_os!$build_os$ac_delim
44026 host!$host$ac_delim
44027 host_cpu!$host_cpu$ac_delim
44028 host_vendor!$host_vendor$ac_delim
44029 host_os!$host_os$ac_delim
44030 FGREP!$FGREP$ac_delim
44031 LD!$LD$ac_delim
44032 DUMPBIN!$DUMPBIN$ac_delim
44033 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
44034 NM!$NM$ac_delim
44035 LN_S!$LN_S$ac_delim
44036 OBJDUMP!$OBJDUMP$ac_delim
44037 STRIP!$STRIP$ac_delim
44038 RANLIB!$RANLIB$ac_delim
44039 lt_ECHO!$lt_ECHO$ac_delim
44040 DSYMUTIL!$DSYMUTIL$ac_delim
44041 NMEDIT!$NMEDIT$ac_delim
44042 LIPO!$LIPO$ac_delim
44043 OTOOL!$OTOOL$ac_delim
44044 OTOOL64!$OTOOL64$ac_delim
44045 CXXCPP!$CXXCPP$ac_delim
44046 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
44047 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
44048 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
44049 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
44050 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
44051 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
44052 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
44053 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
44054 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
44055 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
44056 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
44057 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
44058 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
44059 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
44060 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
44061 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
44062 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
44063 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
44064 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
44065 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
44066 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
44067 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
44068 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
44069 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
44070 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
44071 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
44072 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
44073 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
44074 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
44075 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
44076 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
44077 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
44078 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
44079 SET_MAKE!$SET_MAKE$ac_delim
44080 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
44081 USE_NLS!$USE_NLS$ac_delim
44082 MSGFMT!$MSGFMT$ac_delim
44083 GMSGFMT!$GMSGFMT$ac_delim
44084 XGETTEXT!$XGETTEXT$ac_delim
44085 MSGMERGE!$MSGMERGE$ac_delim
44086 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
44087 LIBICONV!$LIBICONV$ac_delim
44088 LTLIBICONV!$LTLIBICONV$ac_delim
44089 INTLLIBS!$INTLLIBS$ac_delim
44090 LIBINTL!$LIBINTL$ac_delim
44091 LTLIBINTL!$LTLIBINTL$ac_delim
44092 POSUB!$POSUB$ac_delim
44093 GLIBC2!$GLIBC2$ac_delim
44094 ALLOCA!$ALLOCA$ac_delim
44095 GLIBC21!$GLIBC21$ac_delim
44096 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
44097 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
44098 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
44099 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
44100 INTLBISON!$INTLBISON$ac_delim
44101 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
44102 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
44103 CATOBJEXT!$CATOBJEXT$ac_delim
44104 DATADIRNAME!$DATADIRNAME$ac_delim
44105 INSTOBJEXT!$INSTOBJEXT$ac_delim
44106 GENCAT!$GENCAT$ac_delim
44107 INTLOBJS!$INTLOBJS$ac_delim
44108 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
44109 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
44110 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
44111 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
44112 GNOME_LIBS!$GNOME_LIBS$ac_delim
44113 GNOME_DIR!$GNOME_DIR$ac_delim
44114 BAT_DIR!$BAT_DIR$ac_delim
44115 QWT_INC!$QWT_INC$ac_delim
44116 _ACEOF
44117
44118   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
44119     break
44120   elif $ac_last_try; then
44121     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44122 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44123    { (exit 1); exit 1; }; }
44124   else
44125     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44126   fi
44127 done
44128
44129 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44130 if test -n "$ac_eof"; then
44131   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44132   ac_eof=`expr $ac_eof + 1`
44133 fi
44134
44135 cat >>$CONFIG_STATUS <<_ACEOF
44136 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
44137 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44138 _ACEOF
44139 sed '
44140 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44141 s/^/s,@/; s/!/@,|#_!!_#|/
44142 :n
44143 t n
44144 s/'"$ac_delim"'$/,g/; t
44145 s/$/\\/; p
44146 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44147 ' >>$CONFIG_STATUS <conf$$subs.sed
44148 rm -f conf$$subs.sed
44149 cat >>$CONFIG_STATUS <<_ACEOF
44150 CEOF$ac_eof
44151 _ACEOF
44152
44153
44154 ac_delim='%!_!# '
44155 for ac_last_try in false false false false false :; do
44156   cat >conf$$subs.sed <<_ACEOF
44157 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
44158 QWT_LIB!$QWT_LIB$ac_delim
44159 QWT!$QWT$ac_delim
44160 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
44161 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
44162 WX_DIR!$WX_DIR$ac_delim
44163 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
44164 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
44165 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
44166 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
44167 STATIC_FD!$STATIC_FD$ac_delim
44168 STATIC_SD!$STATIC_SD$ac_delim
44169 STATIC_DIR!$STATIC_DIR$ac_delim
44170 STATIC_CONS!$STATIC_CONS$ac_delim
44171 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
44172 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
44173 ALL_DIRS!$ALL_DIRS$ac_delim
44174 DIRD_DIR!$DIRD_DIR$ac_delim
44175 DIR_TOOLS!$DIR_TOOLS$ac_delim
44176 STORED_DIR!$STORED_DIR$ac_delim
44177 CONS_INC!$CONS_INC$ac_delim
44178 CONS_OBJ!$CONS_OBJ$ac_delim
44179 CONS_SRC!$CONS_SRC$ac_delim
44180 CONS_LIBS!$CONS_LIBS$ac_delim
44181 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
44182 READLINE_SRC!$READLINE_SRC$ac_delim
44183 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
44184 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
44185 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
44186 OPENSSL_INC!$OPENSSL_INC$ac_delim
44187 working_dir!$working_dir$ac_delim
44188 archivedir!$archivedir$ac_delim
44189 scriptdir!$scriptdir$ac_delim
44190 plugindir!$plugindir$ac_delim
44191 dump_email!$dump_email$ac_delim
44192 job_email!$job_email$ac_delim
44193 smtp_host!$smtp_host$ac_delim
44194 piddir!$piddir$ac_delim
44195 subsysdir!$subsysdir$ac_delim
44196 baseport!$baseport$ac_delim
44197 dir_port!$dir_port$ac_delim
44198 fd_port!$fd_port$ac_delim
44199 sd_port!$sd_port$ac_delim
44200 dir_password!$dir_password$ac_delim
44201 fd_password!$fd_password$ac_delim
44202 sd_password!$sd_password$ac_delim
44203 mon_dir_password!$mon_dir_password$ac_delim
44204 mon_fd_password!$mon_fd_password$ac_delim
44205 mon_sd_password!$mon_sd_password$ac_delim
44206 db_name!$db_name$ac_delim
44207 db_user!$db_user$ac_delim
44208 db_password!$db_password$ac_delim
44209 db_port!$db_port$ac_delim
44210 dir_user!$dir_user$ac_delim
44211 dir_group!$dir_group$ac_delim
44212 sd_user!$sd_user$ac_delim
44213 sd_group!$sd_group$ac_delim
44214 fd_user!$fd_user$ac_delim
44215 fd_group!$fd_group$ac_delim
44216 SBINPERM!$SBINPERM$ac_delim
44217 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
44218 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
44219 SQL_BINDIR!$SQL_BINDIR$ac_delim
44220 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
44221 uncomment_dbi!$uncomment_dbi$ac_delim
44222 DB_PROG!$DB_PROG$ac_delim
44223 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
44224 cats!$cats$ac_delim
44225 DB_TYPE!$DB_TYPE$ac_delim
44226 GETCONF!$GETCONF$ac_delim
44227 XMKMF!$XMKMF$ac_delim
44228 X_CFLAGS!$X_CFLAGS$ac_delim
44229 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
44230 X_LIBS!$X_LIBS$ac_delim
44231 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
44232 LIBOBJS!$LIBOBJS$ac_delim
44233 FDLIBS!$FDLIBS$ac_delim
44234 DEBUG!$DEBUG$ac_delim
44235 DINCLUDE!$DINCLUDE$ac_delim
44236 DLIB!$DLIB$ac_delim
44237 DB_LIBS!$DB_LIBS$ac_delim
44238 WCFLAGS!$WCFLAGS$ac_delim
44239 WLDFLAGS!$WLDFLAGS$ac_delim
44240 WRAPLIBS!$WRAPLIBS$ac_delim
44241 OBJLIST!$OBJLIST$ac_delim
44242 hostname!$hostname$ac_delim
44243 TAPEDRIVE!$TAPEDRIVE$ac_delim
44244 PSCMD!$PSCMD$ac_delim
44245 WIN32!$WIN32$ac_delim
44246 MACOSX!$MACOSX$ac_delim
44247 DISTNAME!$DISTNAME$ac_delim
44248 DISTVER!$DISTVER$ac_delim
44249 LTLIBOBJS!$LTLIBOBJS$ac_delim
44250 _ACEOF
44251
44252   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
44253     break
44254   elif $ac_last_try; then
44255     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44256 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44257    { (exit 1); exit 1; }; }
44258   else
44259     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44260   fi
44261 done
44262
44263 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44264 if test -n "$ac_eof"; then
44265   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44266   ac_eof=`expr $ac_eof + 1`
44267 fi
44268
44269 cat >>$CONFIG_STATUS <<_ACEOF
44270 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
44271 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
44272 _ACEOF
44273 sed '
44274 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44275 s/^/s,@/; s/!/@,|#_!!_#|/
44276 :n
44277 t n
44278 s/'"$ac_delim"'$/,g/; t
44279 s/$/\\/; p
44280 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44281 ' >>$CONFIG_STATUS <conf$$subs.sed
44282 rm -f conf$$subs.sed
44283 cat >>$CONFIG_STATUS <<_ACEOF
44284 :end
44285 s/|#_!!_#|//g
44286 CEOF$ac_eof
44287 _ACEOF
44288
44289
44290 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44291 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44292 # trailing colons and then remove the whole line if VPATH becomes empty
44293 # (actually we leave an empty line to preserve line numbers).
44294 if test "x$srcdir" = x.; then
44295   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44296 s/:*\$(srcdir):*/:/
44297 s/:*\${srcdir}:*/:/
44298 s/:*@srcdir@:*/:/
44299 s/^\([^=]*=[     ]*\):*/\1/
44300 s/:*$//
44301 s/^[^=]*=[       ]*$//
44302 }'
44303 fi
44304
44305 cat >>$CONFIG_STATUS <<\_ACEOF
44306 fi # test -n "$CONFIG_FILES"
44307
44308
44309 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
44310 do
44311   case $ac_tag in
44312   :[FHLC]) ac_mode=$ac_tag; continue;;
44313   esac
44314   case $ac_mode$ac_tag in
44315   :[FHL]*:*);;
44316   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
44317 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
44318    { (exit 1); exit 1; }; };;
44319   :[FH]-) ac_tag=-:-;;
44320   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44321   esac
44322   ac_save_IFS=$IFS
44323   IFS=:
44324   set x $ac_tag
44325   IFS=$ac_save_IFS
44326   shift
44327   ac_file=$1
44328   shift
44329
44330   case $ac_mode in
44331   :L) ac_source=$1;;
44332   :[FH])
44333     ac_file_inputs=
44334     for ac_f
44335     do
44336       case $ac_f in
44337       -) ac_f="$tmp/stdin";;
44338       *) # Look for the file first in the build tree, then in the source tree
44339          # (if the path is not absolute).  The absolute path cannot be DOS-style,
44340          # because $ac_f cannot contain `:'.
44341          test -f "$ac_f" ||
44342            case $ac_f in
44343            [\\/$]*) false;;
44344            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44345            esac ||
44346            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44347 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44348    { (exit 1); exit 1; }; };;
44349       esac
44350       ac_file_inputs="$ac_file_inputs $ac_f"
44351     done
44352
44353     # Let's still pretend it is `configure' which instantiates (i.e., don't
44354     # use $as_me), people would be surprised to read:
44355     #    /* config.h.  Generated by config.status.  */
44356     configure_input="Generated from "`IFS=:
44357           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44358     if test x"$ac_file" != x-; then
44359       configure_input="$ac_file.  $configure_input"
44360       { echo "$as_me:$LINENO: creating $ac_file" >&5
44361 echo "$as_me: creating $ac_file" >&6;}
44362     fi
44363
44364     case $ac_tag in
44365     *:-:* | *:-) cat >"$tmp/stdin";;
44366     esac
44367     ;;
44368   esac
44369
44370   ac_dir=`$as_dirname -- "$ac_file" ||
44371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44372          X"$ac_file" : 'X\(//\)[^/]' \| \
44373          X"$ac_file" : 'X\(//\)$' \| \
44374          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44375 echo X"$ac_file" |
44376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44377             s//\1/
44378             q
44379           }
44380           /^X\(\/\/\)[^/].*/{
44381             s//\1/
44382             q
44383           }
44384           /^X\(\/\/\)$/{
44385             s//\1/
44386             q
44387           }
44388           /^X\(\/\).*/{
44389             s//\1/
44390             q
44391           }
44392           s/.*/./; q'`
44393   { as_dir="$ac_dir"
44394   case $as_dir in #(
44395   -*) as_dir=./$as_dir;;
44396   esac
44397   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44398     as_dirs=
44399     while :; do
44400       case $as_dir in #(
44401       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44402       *) as_qdir=$as_dir;;
44403       esac
44404       as_dirs="'$as_qdir' $as_dirs"
44405       as_dir=`$as_dirname -- "$as_dir" ||
44406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44407          X"$as_dir" : 'X\(//\)[^/]' \| \
44408          X"$as_dir" : 'X\(//\)$' \| \
44409          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44410 echo X"$as_dir" |
44411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44412             s//\1/
44413             q
44414           }
44415           /^X\(\/\/\)[^/].*/{
44416             s//\1/
44417             q
44418           }
44419           /^X\(\/\/\)$/{
44420             s//\1/
44421             q
44422           }
44423           /^X\(\/\).*/{
44424             s//\1/
44425             q
44426           }
44427           s/.*/./; q'`
44428       test -d "$as_dir" && break
44429     done
44430     test -z "$as_dirs" || eval "mkdir $as_dirs"
44431   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44432 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44433    { (exit 1); exit 1; }; }; }
44434   ac_builddir=.
44435
44436 case "$ac_dir" in
44437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44438 *)
44439   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44440   # A ".." for each directory in $ac_dir_suffix.
44441   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44442   case $ac_top_builddir_sub in
44443   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44444   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44445   esac ;;
44446 esac
44447 ac_abs_top_builddir=$ac_pwd
44448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44449 # for backward compatibility:
44450 ac_top_builddir=$ac_top_build_prefix
44451
44452 case $srcdir in
44453   .)  # We are building in place.
44454     ac_srcdir=.
44455     ac_top_srcdir=$ac_top_builddir_sub
44456     ac_abs_top_srcdir=$ac_pwd ;;
44457   [\\/]* | ?:[\\/]* )  # Absolute name.
44458     ac_srcdir=$srcdir$ac_dir_suffix;
44459     ac_top_srcdir=$srcdir
44460     ac_abs_top_srcdir=$srcdir ;;
44461   *) # Relative name.
44462     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44463     ac_top_srcdir=$ac_top_build_prefix$srcdir
44464     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44465 esac
44466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44467
44468
44469   case $ac_mode in
44470   :F)
44471   #
44472   # CONFIG_FILE
44473   #
44474
44475   case $INSTALL in
44476   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44477   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44478   esac
44479 _ACEOF
44480
44481 cat >>$CONFIG_STATUS <<\_ACEOF
44482 # If the template does not know about datarootdir, expand it.
44483 # FIXME: This hack should be removed a few years after 2.60.
44484 ac_datarootdir_hack=; ac_datarootdir_seen=
44485
44486 case `sed -n '/datarootdir/ {
44487   p
44488   q
44489 }
44490 /@datadir@/p
44491 /@docdir@/p
44492 /@infodir@/p
44493 /@localedir@/p
44494 /@mandir@/p
44495 ' $ac_file_inputs` in
44496 *datarootdir*) ac_datarootdir_seen=yes;;
44497 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44498   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44499 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44500 _ACEOF
44501 cat >>$CONFIG_STATUS <<_ACEOF
44502   ac_datarootdir_hack='
44503   s&@datadir@&$datadir&g
44504   s&@docdir@&$docdir&g
44505   s&@infodir@&$infodir&g
44506   s&@localedir@&$localedir&g
44507   s&@mandir@&$mandir&g
44508     s&\\\${datarootdir}&$datarootdir&g' ;;
44509 esac
44510 _ACEOF
44511
44512 # Neutralize VPATH when `$srcdir' = `.'.
44513 # Shell code in configure.ac might set extrasub.
44514 # FIXME: do we really want to maintain this feature?
44515 cat >>$CONFIG_STATUS <<_ACEOF
44516   sed "$ac_vpsub
44517 $extrasub
44518 _ACEOF
44519 cat >>$CONFIG_STATUS <<\_ACEOF
44520 :t
44521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44522 s&@configure_input@&$configure_input&;t t
44523 s&@top_builddir@&$ac_top_builddir_sub&;t t
44524 s&@srcdir@&$ac_srcdir&;t t
44525 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44526 s&@top_srcdir@&$ac_top_srcdir&;t t
44527 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44528 s&@builddir@&$ac_builddir&;t t
44529 s&@abs_builddir@&$ac_abs_builddir&;t t
44530 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44531 s&@INSTALL@&$ac_INSTALL&;t t
44532 $ac_datarootdir_hack
44533 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
44534
44535 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44536   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44537   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44538   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44539 which seems to be undefined.  Please make sure it is defined." >&5
44540 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44541 which seems to be undefined.  Please make sure it is defined." >&2;}
44542
44543   rm -f "$tmp/stdin"
44544   case $ac_file in
44545   -) cat "$tmp/out"; rm -f "$tmp/out";;
44546   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44547   esac
44548  ;;
44549   :H)
44550   #
44551   # CONFIG_HEADER
44552   #
44553 _ACEOF
44554
44555 # Transform confdefs.h into a sed script `conftest.defines', that
44556 # substitutes the proper values into config.h.in to produce config.h.
44557 rm -f conftest.defines conftest.tail
44558 # First, append a space to every undef/define line, to ease matching.
44559 echo 's/$/ /' >conftest.defines
44560 # Then, protect against being on the right side of a sed subst, or in
44561 # an unquoted here document, in config.status.  If some macros were
44562 # called several times there might be several #defines for the same
44563 # symbol, which is useless.  But do not sort them, since the last
44564 # AC_DEFINE must be honored.
44565 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44566 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44567 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44568 # PARAMS is the parameter list in the macro definition--in most cases, it's
44569 # just an empty string.
44570 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
44571 ac_dB='\\)[      (].*,\\1define\\2'
44572 ac_dC=' '
44573 ac_dD=' ,'
44574
44575 uniq confdefs.h |
44576   sed -n '
44577         t rset
44578         :rset
44579         s/^[     ]*#[    ]*define[       ][      ]*//
44580         t ok
44581         d
44582         :ok
44583         s/[\\&,]/\\&/g
44584         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44585         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44586   ' >>conftest.defines
44587
44588 # Remove the space that was appended to ease matching.
44589 # Then replace #undef with comments.  This is necessary, for
44590 # example, in the case of _POSIX_SOURCE, which is predefined and required
44591 # on some systems where configure will not decide to define it.
44592 # (The regexp can be short, since the line contains either #define or #undef.)
44593 echo 's/ $//
44594 s,^[     #]*u.*,/* & */,' >>conftest.defines
44595
44596 # Break up conftest.defines:
44597 ac_max_sed_lines=50
44598
44599 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44600 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44601 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44602 # et cetera.
44603 ac_in='$ac_file_inputs'
44604 ac_out='"$tmp/out1"'
44605 ac_nxt='"$tmp/out2"'
44606
44607 while :
44608 do
44609   # Write a here document:
44610     cat >>$CONFIG_STATUS <<_ACEOF
44611     # First, check the format of the line:
44612     cat >"\$tmp/defines.sed" <<\\CEOF
44613 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
44614 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
44615 b
44616 :def
44617 _ACEOF
44618   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44619   echo 'CEOF
44620     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44621   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44622   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44623   grep . conftest.tail >/dev/null || break
44624   rm -f conftest.defines
44625   mv conftest.tail conftest.defines
44626 done
44627 rm -f conftest.defines conftest.tail
44628
44629 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44630 cat >>$CONFIG_STATUS <<\_ACEOF
44631   if test x"$ac_file" != x-; then
44632     echo "/* $configure_input  */" >"$tmp/config.h"
44633     cat "$ac_result" >>"$tmp/config.h"
44634     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44635       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44636 echo "$as_me: $ac_file is unchanged" >&6;}
44637     else
44638       rm -f $ac_file
44639       mv "$tmp/config.h" $ac_file
44640     fi
44641   else
44642     echo "/* $configure_input  */"
44643     cat "$ac_result"
44644   fi
44645   rm -f "$tmp/out12"
44646  ;;
44647
44648   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44649 echo "$as_me: executing $ac_file commands" >&6;}
44650  ;;
44651   esac
44652
44653
44654   case $ac_file$ac_mode in
44655     "libtool":C)
44656
44657     # See if we are running on zsh, and set the options which allow our
44658     # commands through without removal of \ escapes.
44659     if test -n "${ZSH_VERSION+set}" ; then
44660       setopt NO_GLOB_SUBST
44661     fi
44662
44663     cfgfile="${ofile}T"
44664     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
44665     $RM "$cfgfile"
44666
44667     cat <<_LT_EOF >> "$cfgfile"
44668 #! $SHELL
44669
44670 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
44671 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
44672 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44673 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
44674 #
44675 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
44676 #                 2006, 2007, 2008 Free Software Foundation, Inc.
44677 #   Written by Gordon Matzigkeit, 1996
44678 #
44679 #   This file is part of GNU Libtool.
44680 #
44681 # GNU Libtool is free software; you can redistribute it and/or
44682 # modify it under the terms of the GNU General Public License as
44683 # published by the Free Software Foundation; either version 2 of
44684 # the License, or (at your option) any later version.
44685 #
44686 # As a special exception to the GNU General Public License,
44687 # if you distribute this file as part of a program or library that
44688 # is built using GNU Libtool, you may include this file under the
44689 # same distribution terms that you use for the rest of that program.
44690 #
44691 # GNU Libtool is distributed in the hope that it will be useful,
44692 # but WITHOUT ANY WARRANTY; without even the implied warranty of
44693 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
44694 # GNU General Public License for more details.
44695 #
44696 # You should have received a copy of the GNU General Public License
44697 # along with GNU Libtool; see the file COPYING.  If not, a copy
44698 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
44699 # obtained by writing to the Free Software Foundation, Inc.,
44700 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
44701
44702
44703 # The names of the tagged configurations supported by this script.
44704 available_tags="CXX "
44705
44706 # ### BEGIN LIBTOOL CONFIG
44707
44708 # Which release of libtool.m4 was used?
44709 macro_version=$macro_version
44710 macro_revision=$macro_revision
44711
44712 # Whether or not to build shared libraries.
44713 build_libtool_libs=$enable_shared
44714
44715 # Whether or not to build static libraries.
44716 build_old_libs=$enable_static
44717
44718 # What type of objects to build.
44719 pic_mode=$pic_mode
44720
44721 # Whether or not to optimize for fast installation.
44722 fast_install=$enable_fast_install
44723
44724 # The host system.
44725 host_alias=$host_alias
44726 host=$host
44727 host_os=$host_os
44728
44729 # The build system.
44730 build_alias=$build_alias
44731 build=$build
44732 build_os=$build_os
44733
44734 # A sed program that does not truncate output.
44735 SED=$lt_SED
44736
44737 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
44738 Xsed="\$SED -e 1s/^X//"
44739
44740 # A grep program that handles long lines.
44741 GREP=$lt_GREP
44742
44743 # An ERE matcher.
44744 EGREP=$lt_EGREP
44745
44746 # A literal string matcher.
44747 FGREP=$lt_FGREP
44748
44749 # A BSD- or MS-compatible name lister.
44750 NM=$lt_NM
44751
44752 # Whether we need soft or hard links.
44753 LN_S=$lt_LN_S
44754
44755 # What is the maximum length of a command?
44756 max_cmd_len=$max_cmd_len
44757
44758 # Object file suffix (normally "o").
44759 objext=$ac_objext
44760
44761 # Executable file suffix (normally "").
44762 exeext=$exeext
44763
44764 # whether the shell understands "unset".
44765 lt_unset=$lt_unset
44766
44767 # turn spaces into newlines.
44768 SP2NL=$lt_lt_SP2NL
44769
44770 # turn newlines into spaces.
44771 NL2SP=$lt_lt_NL2SP
44772
44773 # How to create reloadable object files.
44774 reload_flag=$lt_reload_flag
44775 reload_cmds=$lt_reload_cmds
44776
44777 # An object symbol dumper.
44778 OBJDUMP=$lt_OBJDUMP
44779
44780 # Method to check whether dependent libraries are shared objects.
44781 deplibs_check_method=$lt_deplibs_check_method
44782
44783 # Command to use when deplibs_check_method == "file_magic".
44784 file_magic_cmd=$lt_file_magic_cmd
44785
44786 # The archiver.
44787 AR=$lt_AR
44788 AR_FLAGS=$lt_AR_FLAGS
44789
44790 # A symbol stripping program.
44791 STRIP=$lt_STRIP
44792
44793 # Commands used to install an old-style archive.
44794 RANLIB=$lt_RANLIB
44795 old_postinstall_cmds=$lt_old_postinstall_cmds
44796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44797
44798 # A C compiler.
44799 LTCC=$lt_CC
44800
44801 # LTCC compiler flags.
44802 LTCFLAGS=$lt_CFLAGS
44803
44804 # Take the output of nm and produce a listing of raw symbols and C names.
44805 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44806
44807 # Transform the output of nm in a proper C declaration.
44808 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44809
44810 # Transform the output of nm in a C name address pair.
44811 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44812
44813 # Transform the output of nm in a C name address pair when lib prefix is needed.
44814 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
44815
44816 # The name of the directory that contains temporary libtool files.
44817 objdir=$objdir
44818
44819 # Shell to use when invoking shell scripts.
44820 SHELL=$lt_SHELL
44821
44822 # An echo program that does not interpret backslashes.
44823 ECHO=$lt_ECHO
44824
44825 # Used to examine libraries when file_magic_cmd begins with "file".
44826 MAGIC_CMD=$MAGIC_CMD
44827
44828 # Must we lock files when doing compilation?
44829 need_locks=$lt_need_locks
44830
44831 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
44832 DSYMUTIL=$lt_DSYMUTIL
44833
44834 # Tool to change global to local symbols on Mac OS X.
44835 NMEDIT=$lt_NMEDIT
44836
44837 # Tool to manipulate fat objects and archives on Mac OS X.
44838 LIPO=$lt_LIPO
44839
44840 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
44841 OTOOL=$lt_OTOOL
44842
44843 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
44844 OTOOL64=$lt_OTOOL64
44845
44846 # Old archive suffix (normally "a").
44847 libext=$libext
44848
44849 # Shared library suffix (normally ".so").
44850 shrext_cmds=$lt_shrext_cmds
44851
44852 # The commands to extract the exported symbol list from a shared archive.
44853 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44854
44855 # Variables whose values should be saved in libtool wrapper scripts and
44856 # restored at link time.
44857 variables_saved_for_relink=$lt_variables_saved_for_relink
44858
44859 # Do we need the "lib" prefix for modules?
44860 need_lib_prefix=$need_lib_prefix
44861
44862 # Do we need a version for libraries?
44863 need_version=$need_version
44864
44865 # Library versioning type.
44866 version_type=$version_type
44867
44868 # Shared library runtime path variable.
44869 runpath_var=$runpath_var
44870
44871 # Shared library path variable.
44872 shlibpath_var=$shlibpath_var
44873
44874 # Is shlibpath searched before the hard-coded library search path?
44875 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44876
44877 # Format of library name prefix.
44878 libname_spec=$lt_libname_spec
44879
44880 # List of archive names.  First name is the real one, the rest are links.
44881 # The last name is the one that the linker finds with -lNAME
44882 library_names_spec=$lt_library_names_spec
44883
44884 # The coded name of the library, if different from the real name.
44885 soname_spec=$lt_soname_spec
44886
44887 # Command to use after installation of a shared archive.
44888 postinstall_cmds=$lt_postinstall_cmds
44889
44890 # Command to use after uninstallation of a shared archive.
44891 postuninstall_cmds=$lt_postuninstall_cmds
44892
44893 # Commands used to finish a libtool library installation in a directory.
44894 finish_cmds=$lt_finish_cmds
44895
44896 # As "finish_cmds", except a single script fragment to be evaled but
44897 # not shown.
44898 finish_eval=$lt_finish_eval
44899
44900 # Whether we should hardcode library paths into libraries.
44901 hardcode_into_libs=$hardcode_into_libs
44902
44903 # Compile-time system search path for libraries.
44904 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44905
44906 # Run-time system search path for libraries.
44907 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44908
44909 # Whether dlopen is supported.
44910 dlopen_support=$enable_dlopen
44911
44912 # Whether dlopen of programs is supported.
44913 dlopen_self=$enable_dlopen_self
44914
44915 # Whether dlopen of statically linked programs is supported.
44916 dlopen_self_static=$enable_dlopen_self_static
44917
44918 # Commands to strip libraries.
44919 old_striplib=$lt_old_striplib
44920 striplib=$lt_striplib
44921
44922
44923 # The linker used to build libraries.
44924 LD=$lt_LD
44925
44926 # Commands used to build an old-style archive.
44927 old_archive_cmds=$lt_old_archive_cmds
44928
44929 # A language specific compiler.
44930 CC=$lt_compiler
44931
44932 # Is the compiler the GNU compiler?
44933 with_gcc=$GCC
44934
44935 # Compiler flag to turn off builtin functions.
44936 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
44937
44938 # How to pass a linker flag through the compiler.
44939 wl=$lt_lt_prog_compiler_wl
44940
44941 # Additional compiler flags for building library objects.
44942 pic_flag=$lt_lt_prog_compiler_pic
44943
44944 # Compiler flag to prevent dynamic linking.
44945 link_static_flag=$lt_lt_prog_compiler_static
44946
44947 # Does compiler simultaneously support -c and -o options?
44948 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
44949
44950 # Whether or not to add -lc for building shared libraries.
44951 build_libtool_need_lc=$archive_cmds_need_lc
44952
44953 # Whether or not to disallow shared libs when runtime libs are static.
44954 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
44955
44956 # Compiler flag to allow reflexive dlopens.
44957 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
44958
44959 # Compiler flag to generate shared objects directly from archives.
44960 whole_archive_flag_spec=$lt_whole_archive_flag_spec
44961
44962 # Whether the compiler copes with passing no objects directly.
44963 compiler_needs_object=$lt_compiler_needs_object
44964
44965 # Create an old-style archive from a shared archive.
44966 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
44967
44968 # Create a temporary old-style archive to link instead of a shared archive.
44969 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
44970
44971 # Commands used to build a shared archive.
44972 archive_cmds=$lt_archive_cmds
44973 archive_expsym_cmds=$lt_archive_expsym_cmds
44974
44975 # Commands used to build a loadable module if different from building
44976 # a shared archive.
44977 module_cmds=$lt_module_cmds
44978 module_expsym_cmds=$lt_module_expsym_cmds
44979
44980 # Whether we are building with GNU ld or not.
44981 with_gnu_ld=$lt_with_gnu_ld
44982
44983 # Flag that allows shared libraries with undefined symbols to be built.
44984 allow_undefined_flag=$lt_allow_undefined_flag
44985
44986 # Flag that enforces no undefined symbols.
44987 no_undefined_flag=$lt_no_undefined_flag
44988
44989 # Flag to hardcode \$libdir into a binary during linking.
44990 # This must work even if \$libdir does not exist
44991 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
44992
44993 # If ld is used when linking, flag to hardcode \$libdir into a binary
44994 # during linking.  This must work even if \$libdir does not exist.
44995 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
44996
44997 # Whether we need a single "-rpath" flag with a separated argument.
44998 hardcode_libdir_separator=$lt_hardcode_libdir_separator
44999
45000 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45001 # DIR into the resulting binary.
45002 hardcode_direct=$hardcode_direct
45003
45004 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45005 # DIR into the resulting binary and the resulting library dependency is
45006 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45007 # library is relocated.
45008 hardcode_direct_absolute=$hardcode_direct_absolute
45009
45010 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45011 # into the resulting binary.
45012 hardcode_minus_L=$hardcode_minus_L
45013
45014 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45015 # into the resulting binary.
45016 hardcode_shlibpath_var=$hardcode_shlibpath_var
45017
45018 # Set to "yes" if building a shared library automatically hardcodes DIR
45019 # into the library and all subsequent libraries and executables linked
45020 # against it.
45021 hardcode_automatic=$hardcode_automatic
45022
45023 # Set to yes if linker adds runtime paths of dependent libraries
45024 # to runtime path list.
45025 inherit_rpath=$inherit_rpath
45026
45027 # Whether libtool must link a program against all its dependency libraries.
45028 link_all_deplibs=$link_all_deplibs
45029
45030 # Fix the shell variable \$srcfile for the compiler.
45031 fix_srcfile_path=$lt_fix_srcfile_path
45032
45033 # Set to "yes" if exported symbols are required.
45034 always_export_symbols=$always_export_symbols
45035
45036 # The commands to list exported symbols.
45037 export_symbols_cmds=$lt_export_symbols_cmds
45038
45039 # Symbols that should not be listed in the preloaded symbols.
45040 exclude_expsyms=$lt_exclude_expsyms
45041
45042 # Symbols that must always be exported.
45043 include_expsyms=$lt_include_expsyms
45044
45045 # Commands necessary for linking programs (against libraries) with templates.
45046 prelink_cmds=$lt_prelink_cmds
45047
45048 # Specify filename containing input files.
45049 file_list_spec=$lt_file_list_spec
45050
45051 # How to hardcode a shared library path into an executable.
45052 hardcode_action=$hardcode_action
45053
45054 # The directories searched by this compiler when creating a shared library.
45055 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
45056
45057 # Dependencies to place before and after the objects being linked to
45058 # create a shared library.
45059 predep_objects=$lt_predep_objects
45060 postdep_objects=$lt_postdep_objects
45061 predeps=$lt_predeps
45062 postdeps=$lt_postdeps
45063
45064 # The library search path used internally by the compiler when linking
45065 # a shared library.
45066 compiler_lib_search_path=$lt_compiler_lib_search_path
45067
45068 # ### END LIBTOOL CONFIG
45069
45070 _LT_EOF
45071
45072   case $host_os in
45073   aix3*)
45074     cat <<\_LT_EOF >> "$cfgfile"
45075 # AIX sometimes has problems with the GCC collect2 program.  For some
45076 # reason, if we set the COLLECT_NAMES environment variable, the problems
45077 # vanish in a puff of smoke.
45078 if test "X${COLLECT_NAMES+set}" != Xset; then
45079   COLLECT_NAMES=
45080   export COLLECT_NAMES
45081 fi
45082 _LT_EOF
45083     ;;
45084   esac
45085
45086
45087 ltmain="$ac_aux_dir/ltmain.sh"
45088
45089
45090   # We use sed instead of cat because bash on DJGPP gets confused if
45091   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
45092   # text mode, it properly converts lines to CR/LF.  This bash problem
45093   # is reportedly fixed, but why not run on old versions too?
45094   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
45095     || (rm -f "$cfgfile"; exit 1)
45096
45097   case $xsi_shell in
45098   yes)
45099     cat << \_LT_EOF >> "$cfgfile"
45100
45101 # func_dirname file append nondir_replacement
45102 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45103 # otherwise set result to NONDIR_REPLACEMENT.
45104 func_dirname ()
45105 {
45106   case ${1} in
45107     */*) func_dirname_result="${1%/*}${2}" ;;
45108     *  ) func_dirname_result="${3}" ;;
45109   esac
45110 }
45111
45112 # func_basename file
45113 func_basename ()
45114 {
45115   func_basename_result="${1##*/}"
45116 }
45117
45118 # func_dirname_and_basename file append nondir_replacement
45119 # perform func_basename and func_dirname in a single function
45120 # call:
45121 #   dirname:  Compute the dirname of FILE.  If nonempty,
45122 #             add APPEND to the result, otherwise set result
45123 #             to NONDIR_REPLACEMENT.
45124 #             value returned in "$func_dirname_result"
45125 #   basename: Compute filename of FILE.
45126 #             value retuned in "$func_basename_result"
45127 # Implementation must be kept synchronized with func_dirname
45128 # and func_basename. For efficiency, we do not delegate to
45129 # those functions but instead duplicate the functionality here.
45130 func_dirname_and_basename ()
45131 {
45132   case ${1} in
45133     */*) func_dirname_result="${1%/*}${2}" ;;
45134     *  ) func_dirname_result="${3}" ;;
45135   esac
45136   func_basename_result="${1##*/}"
45137 }
45138
45139 # func_stripname prefix suffix name
45140 # strip PREFIX and SUFFIX off of NAME.
45141 # PREFIX and SUFFIX must not contain globbing or regex special
45142 # characters, hashes, percent signs, but SUFFIX may contain a leading
45143 # dot (in which case that matches only a dot).
45144 func_stripname ()
45145 {
45146   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
45147   # positional parameters, so assign one to ordinary parameter first.
45148   func_stripname_result=${3}
45149   func_stripname_result=${func_stripname_result#"${1}"}
45150   func_stripname_result=${func_stripname_result%"${2}"}
45151 }
45152
45153 # func_opt_split
45154 func_opt_split ()
45155 {
45156   func_opt_split_opt=${1%%=*}
45157   func_opt_split_arg=${1#*=}
45158 }
45159
45160 # func_lo2o object
45161 func_lo2o ()
45162 {
45163   case ${1} in
45164     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
45165     *)    func_lo2o_result=${1} ;;
45166   esac
45167 }
45168
45169 # func_xform libobj-or-source
45170 func_xform ()
45171 {
45172   func_xform_result=${1%.*}.lo
45173 }
45174
45175 # func_arith arithmetic-term...
45176 func_arith ()
45177 {
45178   func_arith_result=$(( $* ))
45179 }
45180
45181 # func_len string
45182 # STRING may not start with a hyphen.
45183 func_len ()
45184 {
45185   func_len_result=${#1}
45186 }
45187
45188 _LT_EOF
45189     ;;
45190   *) # Bourne compatible functions.
45191     cat << \_LT_EOF >> "$cfgfile"
45192
45193 # func_dirname file append nondir_replacement
45194 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
45195 # otherwise set result to NONDIR_REPLACEMENT.
45196 func_dirname ()
45197 {
45198   # Extract subdirectory from the argument.
45199   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
45200   if test "X$func_dirname_result" = "X${1}"; then
45201     func_dirname_result="${3}"
45202   else
45203     func_dirname_result="$func_dirname_result${2}"
45204   fi
45205 }
45206
45207 # func_basename file
45208 func_basename ()
45209 {
45210   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
45211 }
45212
45213
45214 # func_stripname prefix suffix name
45215 # strip PREFIX and SUFFIX off of NAME.
45216 # PREFIX and SUFFIX must not contain globbing or regex special
45217 # characters, hashes, percent signs, but SUFFIX may contain a leading
45218 # dot (in which case that matches only a dot).
45219 # func_strip_suffix prefix name
45220 func_stripname ()
45221 {
45222   case ${2} in
45223     .*) func_stripname_result=`$ECHO "X${3}" \
45224            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
45225     *)  func_stripname_result=`$ECHO "X${3}" \
45226            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
45227   esac
45228 }
45229
45230 # sed scripts:
45231 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
45232 my_sed_long_arg='1s/^-[^=]*=//'
45233
45234 # func_opt_split
45235 func_opt_split ()
45236 {
45237   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
45238   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
45239 }
45240
45241 # func_lo2o object
45242 func_lo2o ()
45243 {
45244   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
45245 }
45246
45247 # func_xform libobj-or-source
45248 func_xform ()
45249 {
45250   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
45251 }
45252
45253 # func_arith arithmetic-term...
45254 func_arith ()
45255 {
45256   func_arith_result=`expr "$@"`
45257 }
45258
45259 # func_len string
45260 # STRING may not start with a hyphen.
45261 func_len ()
45262 {
45263   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
45264 }
45265
45266 _LT_EOF
45267 esac
45268
45269 case $lt_shell_append in
45270   yes)
45271     cat << \_LT_EOF >> "$cfgfile"
45272
45273 # func_append var value
45274 # Append VALUE to the end of shell variable VAR.
45275 func_append ()
45276 {
45277   eval "$1+=\$2"
45278 }
45279 _LT_EOF
45280     ;;
45281   *)
45282     cat << \_LT_EOF >> "$cfgfile"
45283
45284 # func_append var value
45285 # Append VALUE to the end of shell variable VAR.
45286 func_append ()
45287 {
45288   eval "$1=\$$1\$2"
45289 }
45290
45291 _LT_EOF
45292     ;;
45293   esac
45294
45295
45296   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
45297     || (rm -f "$cfgfile"; exit 1)
45298
45299   mv -f "$cfgfile" "$ofile" ||
45300     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45301   chmod +x "$ofile"
45302
45303
45304     cat <<_LT_EOF >> "$ofile"
45305
45306 # ### BEGIN LIBTOOL TAG CONFIG: CXX
45307
45308 # The linker used to build libraries.
45309 LD=$lt_LD_CXX
45310
45311 # Commands used to build an old-style archive.
45312 old_archive_cmds=$lt_old_archive_cmds_CXX
45313
45314 # A language specific compiler.
45315 CC=$lt_compiler_CXX
45316
45317 # Is the compiler the GNU compiler?
45318 with_gcc=$GCC_CXX
45319
45320 # Compiler flag to turn off builtin functions.
45321 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
45322
45323 # How to pass a linker flag through the compiler.
45324 wl=$lt_lt_prog_compiler_wl_CXX
45325
45326 # Additional compiler flags for building library objects.
45327 pic_flag=$lt_lt_prog_compiler_pic_CXX
45328
45329 # Compiler flag to prevent dynamic linking.
45330 link_static_flag=$lt_lt_prog_compiler_static_CXX
45331
45332 # Does compiler simultaneously support -c and -o options?
45333 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
45334
45335 # Whether or not to add -lc for building shared libraries.
45336 build_libtool_need_lc=$archive_cmds_need_lc_CXX
45337
45338 # Whether or not to disallow shared libs when runtime libs are static.
45339 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
45340
45341 # Compiler flag to allow reflexive dlopens.
45342 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
45343
45344 # Compiler flag to generate shared objects directly from archives.
45345 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
45346
45347 # Whether the compiler copes with passing no objects directly.
45348 compiler_needs_object=$lt_compiler_needs_object_CXX
45349
45350 # Create an old-style archive from a shared archive.
45351 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
45352
45353 # Create a temporary old-style archive to link instead of a shared archive.
45354 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
45355
45356 # Commands used to build a shared archive.
45357 archive_cmds=$lt_archive_cmds_CXX
45358 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
45359
45360 # Commands used to build a loadable module if different from building
45361 # a shared archive.
45362 module_cmds=$lt_module_cmds_CXX
45363 module_expsym_cmds=$lt_module_expsym_cmds_CXX
45364
45365 # Whether we are building with GNU ld or not.
45366 with_gnu_ld=$lt_with_gnu_ld_CXX
45367
45368 # Flag that allows shared libraries with undefined symbols to be built.
45369 allow_undefined_flag=$lt_allow_undefined_flag_CXX
45370
45371 # Flag that enforces no undefined symbols.
45372 no_undefined_flag=$lt_no_undefined_flag_CXX
45373
45374 # Flag to hardcode \$libdir into a binary during linking.
45375 # This must work even if \$libdir does not exist
45376 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
45377
45378 # If ld is used when linking, flag to hardcode \$libdir into a binary
45379 # during linking.  This must work even if \$libdir does not exist.
45380 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
45381
45382 # Whether we need a single "-rpath" flag with a separated argument.
45383 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
45384
45385 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45386 # DIR into the resulting binary.
45387 hardcode_direct=$hardcode_direct_CXX
45388
45389 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45390 # DIR into the resulting binary and the resulting library dependency is
45391 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45392 # library is relocated.
45393 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
45394
45395 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45396 # into the resulting binary.
45397 hardcode_minus_L=$hardcode_minus_L_CXX
45398
45399 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45400 # into the resulting binary.
45401 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
45402
45403 # Set to "yes" if building a shared library automatically hardcodes DIR
45404 # into the library and all subsequent libraries and executables linked
45405 # against it.
45406 hardcode_automatic=$hardcode_automatic_CXX
45407
45408 # Set to yes if linker adds runtime paths of dependent libraries
45409 # to runtime path list.
45410 inherit_rpath=$inherit_rpath_CXX
45411
45412 # Whether libtool must link a program against all its dependency libraries.
45413 link_all_deplibs=$link_all_deplibs_CXX
45414
45415 # Fix the shell variable \$srcfile for the compiler.
45416 fix_srcfile_path=$lt_fix_srcfile_path_CXX
45417
45418 # Set to "yes" if exported symbols are required.
45419 always_export_symbols=$always_export_symbols_CXX
45420
45421 # The commands to list exported symbols.
45422 export_symbols_cmds=$lt_export_symbols_cmds_CXX
45423
45424 # Symbols that should not be listed in the preloaded symbols.
45425 exclude_expsyms=$lt_exclude_expsyms_CXX
45426
45427 # Symbols that must always be exported.
45428 include_expsyms=$lt_include_expsyms_CXX
45429
45430 # Commands necessary for linking programs (against libraries) with templates.
45431 prelink_cmds=$lt_prelink_cmds_CXX
45432
45433 # Specify filename containing input files.
45434 file_list_spec=$lt_file_list_spec_CXX
45435
45436 # How to hardcode a shared library path into an executable.
45437 hardcode_action=$hardcode_action_CXX
45438
45439 # The directories searched by this compiler when creating a shared library.
45440 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
45441
45442 # Dependencies to place before and after the objects being linked to
45443 # create a shared library.
45444 predep_objects=$lt_predep_objects_CXX
45445 postdep_objects=$lt_postdep_objects_CXX
45446 predeps=$lt_predeps_CXX
45447 postdeps=$lt_postdeps_CXX
45448
45449 # The library search path used internally by the compiler when linking
45450 # a shared library.
45451 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
45452
45453 # ### END LIBTOOL TAG CONFIG: CXX
45454 _LT_EOF
45455
45456  ;;
45457     "default-1":C)
45458     for ac_file in $CONFIG_FILES; do
45459       # Support "outfile[:infile[:infile...]]"
45460       case "$ac_file" in
45461         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
45462       esac
45463       # PO directories have a Makefile.in generated from Makefile.in.in.
45464       case "$ac_file" in */Makefile.in)
45465         # Adjust a relative srcdir.
45466         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
45467         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
45468         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
45469         # In autoconf-2.13 it is called $ac_given_srcdir.
45470         # In autoconf-2.50 it is called $srcdir.
45471         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
45472         case "$ac_given_srcdir" in
45473           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
45474           /*) top_srcdir="$ac_given_srcdir" ;;
45475           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
45476         esac
45477         # Treat a directory as a PO directory if and only if it has a
45478         # POTFILES.in file. This allows packages to have multiple PO
45479         # directories under different names or in different locations.
45480         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
45481           rm -f "$ac_dir/POTFILES"
45482           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
45483           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
45484           POMAKEFILEDEPS="POTFILES.in"
45485           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
45486           # on $ac_dir but don't depend on user-specified configuration
45487           # parameters.
45488           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
45489             # The LINGUAS file contains the set of available languages.
45490             if test -n "$OBSOLETE_ALL_LINGUAS"; then
45491               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
45492             fi
45493             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
45494             # Hide the ALL_LINGUAS assigment from automake.
45495             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
45496             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
45497           else
45498             # The set of available languages was given in configure.in.
45499             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
45500           fi
45501           # Compute POFILES
45502           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
45503           # Compute UPDATEPOFILES
45504           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
45505           # Compute DUMMYPOFILES
45506           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
45507           # Compute GMOFILES
45508           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
45509           case "$ac_given_srcdir" in
45510             .) srcdirpre= ;;
45511             *) srcdirpre='$(srcdir)/' ;;
45512           esac
45513           POFILES=
45514           UPDATEPOFILES=
45515           DUMMYPOFILES=
45516           GMOFILES=
45517           for lang in $ALL_LINGUAS; do
45518             POFILES="$POFILES $srcdirpre$lang.po"
45519             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
45520             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
45521             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
45522           done
45523           # CATALOGS depends on both $ac_dir and the user's LINGUAS
45524           # environment variable.
45525           INST_LINGUAS=
45526           if test -n "$ALL_LINGUAS"; then
45527             for presentlang in $ALL_LINGUAS; do
45528               useit=no
45529               if test "%UNSET%" != "$LINGUAS"; then
45530                 desiredlanguages="$LINGUAS"
45531               else
45532                 desiredlanguages="$ALL_LINGUAS"
45533               fi
45534               for desiredlang in $desiredlanguages; do
45535                 # Use the presentlang catalog if desiredlang is
45536                 #   a. equal to presentlang, or
45537                 #   b. a variant of presentlang (because in this case,
45538                 #      presentlang can be used as a fallback for messages
45539                 #      which are not translated in the desiredlang catalog).
45540                 case "$desiredlang" in
45541                   "$presentlang"*) useit=yes;;
45542                 esac
45543               done
45544               if test $useit = yes; then
45545                 INST_LINGUAS="$INST_LINGUAS $presentlang"
45546               fi
45547             done
45548           fi
45549           CATALOGS=
45550           if test -n "$INST_LINGUAS"; then
45551             for lang in $INST_LINGUAS; do
45552               CATALOGS="$CATALOGS $lang.gmo"
45553             done
45554           fi
45555           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
45556           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"
45557           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
45558             if test -f "$f"; then
45559               case "$f" in
45560                 *.orig | *.bak | *~) ;;
45561                 *) cat "$f" >> "$ac_dir/Makefile" ;;
45562               esac
45563             fi
45564           done
45565         fi
45566         ;;
45567       esac
45568     done ;;
45569     "default":C)
45570  ;;
45571
45572   esac
45573 done # for ac_tag
45574
45575
45576 { (exit 0); exit 0; }
45577 _ACEOF
45578 chmod +x $CONFIG_STATUS
45579 ac_clean_files=$ac_clean_files_save
45580
45581
45582 # configure is writing to config.log, and then calls config.status.
45583 # config.status does its own redirection, appending to config.log.
45584 # Unfortunately, on DOS this fails, as config.log is still kept open
45585 # by configure, so config.status won't be able to write to it; its
45586 # output is simply discarded.  So we exec the FD to /dev/null,
45587 # effectively closing config.log, so it can be properly (re)opened and
45588 # appended to by config.status.  When coming back to configure, we
45589 # need to make the FD available again.
45590 if test "$no_create" != yes; then
45591   ac_cs_success=:
45592   ac_config_status_args=
45593   test "$silent" = yes &&
45594     ac_config_status_args="$ac_config_status_args --quiet"
45595   exec 5>/dev/null
45596   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45597   exec 5>>config.log
45598   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45599   # would make configure fail if this is the last instruction.
45600   $ac_cs_success || { (exit 1); exit 1; }
45601 fi
45602
45603
45604 if test "${support_bat}" = "yes" ; then
45605    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
45606       echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
45607       exit 1
45608    fi
45609
45610    QMAKEBIN="qmake"
45611
45612    if test "x$QMAKEQT4" != "xnone"; then
45613        QMAKEBIN=qmake-qt4
45614    fi
45615
45616    cd src/qt-console
45617    echo "Creating bat Makefile"
45618    $QMAKEBIN
45619    make clean
45620    cd ${BUILD_DIR}
45621 fi
45622
45623 if test X"$GCC" = "Xyes" ; then
45624   echo "Doing make of dependencies"
45625   ${MAKE:-make} depend
45626 fi
45627
45628 cd src/qt-console
45629 chmod 755 install_conf_file build-depkgs-qt-console
45630 cd ${BUILD_DIR}
45631
45632 cd scripts
45633 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
45634 chmod 755 dvd-handler dvd-simulator
45635 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
45636 cd ..
45637
45638 c=updatedb
45639 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
45640 chmod 755 $c/update_postgresql_tables_10_to_11   $c/update_sqlite_tables_10_to_11
45641
45642 c=src/cats
45643
45644 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
45645 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
45646
45647 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
45648 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
45649
45650 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
45651 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
45652
45653 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
45654 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
45655
45656 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
45657 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
45658
45659 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
45660 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
45661
45662 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
45663 chmod 755 $c/sqlite
45664 chmod 755 $c/mysql
45665
45666 chmod 755 src/win32/build-depkgs-mingw32
45667
45668 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
45669    largefile_support="yes"
45670 fi
45671
45672 if test X"$GCC" = "Xyes" ; then
45673                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45674    if test "x${CCVERSION}" = "x" ; then
45675       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45676    fi
45677    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45678    if test x"${CXXVERSION}" = x ; then
45679       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45680    fi
45681 fi
45682
45683 # clean up any old junk
45684 echo " "
45685 echo "Cleaning up"
45686 echo " "
45687 make clean
45688
45689 if test "x${db_type}" = "xInternal" ; then
45690    echo " "
45691    echo " "
45692    echo "You have not specified either --enable-client-only or one of the"
45693    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
45694    echo "  This is not permitted. Please reconfigure."
45695    echo " "
45696    echo "Aborting the configuration ..."
45697    echo " "
45698    echo " "
45699    exit 1
45700 fi
45701
45702 echo "
45703 Configuration on `date`:
45704
45705    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
45706    Bacula version:          ${BACULA} ${VERSION} (${DATE})
45707    Source code location:    ${srcdir}
45708    Install binaries:        ${sbindir}
45709    Install libraries:       ${libdir}
45710    Install config files:    ${sysconfdir}
45711    Scripts directory:       ${scriptdir}
45712    Archive directory:       ${archivedir}
45713    Working directory:       ${working_dir}
45714    PID directory:           ${piddir}
45715    Subsys directory:        ${subsysdir}
45716    Man directory:           ${mandir}
45717    Data directory:          ${datarootdir}
45718    Plugin directory:        ${plugindir}
45719    C Compiler:              ${CC} ${CCVERSION}
45720    C++ Compiler:            ${CXX} ${CXXVERSION}
45721    Compiler flags:          ${WCFLAGS} ${CFLAGS}
45722    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
45723    Libraries:               ${LIBS}
45724    Statically Linked Tools: ${support_static_tools}
45725    Statically Linked FD:    ${support_static_fd}
45726    Statically Linked SD:    ${support_static_sd}
45727    Statically Linked DIR:   ${support_static_dir}
45728    Statically Linked CONS:  ${support_static_cons}
45729    Database type:           ${db_type}
45730    Database port:           ${db_port}
45731    Database lib:            ${DB_LIBS}
45732    Database name:           ${db_name}
45733    Database user:           ${db_user}
45734
45735    Job Output Email:        ${job_email}
45736    Traceback Email:         ${dump_email}
45737    SMTP Host Address:       ${smtp_host}
45738
45739    Director Port:           ${dir_port}
45740    File daemon Port:        ${fd_port}
45741    Storage daemon Port:     ${sd_port}
45742
45743    Director User:           ${dir_user}
45744    Director Group:          ${dir_group}
45745    Storage Daemon User:     ${sd_user}
45746    Storage DaemonGroup:     ${sd_group}
45747    File Daemon User:        ${fd_user}
45748    File Daemon Group:       ${fd_group}
45749
45750    SQL binaries Directory   ${SQL_BINDIR}
45751
45752    Large file support:      $largefile_support
45753    Bacula conio support:    ${got_conio} ${CONS_LIBS}
45754    readline support:        ${got_readline} ${PRTREADLINE_SRC}
45755    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
45756    TLS support:             ${support_tls}
45757    Encryption support:      ${support_crypto}
45758    ZLIB support:            ${have_zlib}
45759    enable-smartalloc:       ${support_smartalloc}
45760    enable-lockmgr:          ${support_lockmgr}
45761    bat support:             ${support_bat} ${QWT_LDFLAGS}
45762    enable-gnome:            ${support_gnome} ${gnome_version}
45763    enable-bwx-console:      ${support_wx_console} ${wx_version}
45764    enable-tray-monitor:     ${support_tray_monitor}
45765    client-only:             ${build_client_only}
45766    build-dird:              ${build_dird}
45767    build-stored:            ${build_stored}
45768    ACL support:             ${have_acl}
45769    XATTR support:           ${have_xattr}
45770    Python support:          ${support_python} ${PYTHON_LIBS}
45771    Batch insert enabled:    ${support_batch_insert}
45772
45773   " > config.out
45774
45775 cat config.out